#poradnik #main {
  margin: 0 auto;
  padding-right: 2%;
  float: unset;
  width: 100%;
  max-width: 1200px;
}

/* Widok podsumowania */

#poradnik #main > h1 {
  text-align: center;
}

#poradnik .entries {
  display: grid;
  gap: 1rem;
  grid-gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: -1rem;
}

#poradnik .entries .blog_entry {
  width: 100%;
  position: relative;
  margin-top: 1rem;
}

#poradnik .entries .blog_entry figure {
  width: 100%;
  height: 0;
  padding-bottom: calc(9 / 16 * 100%);
  position: relative;
}

#poradnik .entries .blog_entry figure a {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: block;
}

#poradnik .entries .blog_entry figure img {
  object-position: center top;
  object-fit: cover;
  max-height: 100%;
  width: 100%;
  border-radius: 0;
}

#poradnik .entries .blog_summary {
  position: absolute;
  right: 0;
  bottom: -1rem;
  background-color: #2f80b2;
  margin: 0;
  max-width: 70%;
}

#poradnik .entries .blog_summary a h2 {
  color: #fff;
  font-size: 16px !important;
  line-height: 150% !important;
  text-transform: unset !important;
  padding: 0.7rem 1.2rem !important;
}

#poradnik
  .entries
  .blog_summary
  :is(.CGBlogSummaryContent, .CGBlogSummarySummary, a:last-of-type) {
  display: none;
}

@media screen and (min-width: 700px) {
  #poradnik .entries {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    grid-gap: 2rem;
    margin-top: 0;
  }

  #poradnik .entries .blog_entry {
    margin-top: 0;
  }
}

@media screen and (min-width: 1400px) {
  #poradnik .entries {
    grid-template-columns: repeat(3, 1fr);
  }

  #poradnik .entries .blog_entry:first-child {
    grid-column: 1/3;
    grid-row: 1/3;
  }

  #poradnik .entries .blog_entry:first-child figure {
    height: 100%;
    min-height: 400px;
    padding-bottom: 0;
  }

  #poradnik .entries .blog_entry:first-child .blog_summary a h2 {
    font-size: 28px !important;
  }
}

/* Widok szczegółowy */

#poradnik .blog_here > h1 {
  font-weight: 500;
  line-height: 133%;
  font-size: 54px;
  padding-left: 1rem;
  padding-right: 1rem;
}

#poradnik .blog_here .blog_cover {
  margin-bottom: 1rem;
  height: 0;
  min-height: 0;
  max-height: 0;
  border-radius: 0;
  padding-bottom: calc(9 / 16 * 100%);
  /* background-attachment: fixed; */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

#poradnik .blog_here .blog_cover.mb {
  margin-bottom: 2rem;
}

#poradnik .blog_here .blog_date {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

#poradnik .blog_here .blog_date > * {
  margin-right: 1rem;
  padding: 1rem 1.5rem;
  background-color: #2f80b2;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.45px;
  font-size: 1.3em;
}

#poradnik .blog_here .blog_date > *:last-child {
  background-color: #53a834;
  margin-right: 0;
}

#poradnik .blog_here .blog_desc {
  max-width: 800px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 175%;
}

#poradnik .blog_here .blog_desc :is(p, strong, li) {
  font-size: inherit !important;
  line-height: inherit !important;
}

#poradnik .blog_here .blog_desc :is(h1, h2, h3, h4, h5, h6) {
  text-align: left !important;
  margin-top: 2rem;
  font-size: 155% !important;
  font-weight: 600 !important;
  line-height: 175% !important;
  color: rgba(47, 128, 178, 1);
}

#poradnik .blog_here .blog_desc img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 900px) {
  #poradnik .blog_here > h1 {
    font-size: 30px;
    padding-left: 0;
    padding-right: 0;
  }

  #poradnik .blog_here .blog_date > * {
    font-size: 0.9em;
  }

  #poradnik .blog_here .blog_desc :is(p, strong, li) {
    font-size: 16px !important;
  }

  #poradnik .blog_here .blog_desc li {
    padding-bottom: 0 !important;
    margin-left: 2rem !important;
  }

  #poradnik .blog_here .blog_desc :is(h1, h2, h3, h4, h5, h6) {
    font-size: 120% !important;
    margin-top: 1rem;
  }
}
