/*
 * Artykuły Strefy Wiedzy 1.10.23.
 * Układ odizolowany klasą body.odns-knowledge-article.
 */

body.odns-knowledge-article .odns-article-main,
body.odns-knowledge-article .odns-article-main * {
  box-sizing: border-box;
}

body.odns-knowledge-article {
  margin: 0;
  color: #33485a;
  background-color: #fbf8f1;
  background-image: url("../textures/cream-paper-seamless.webp");
  background-repeat: repeat;
  background-size: 2508px 2508px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 400;
}

body.odns-knowledge-article #main-content.odns-article-main {
  position: relative;
  overflow: clip;
  color: #33485a;
  background-color: #fbf8f1;
  background-image: url("../textures/cream-paper-seamless.webp");
  background-repeat: repeat;
  background-size: 2508px 2508px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.72;
}

body.odns-knowledge-article #main-content.odns-article-main::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background-image: url("../textures/paper-overlay-seamless.webp");
  background-repeat: repeat;
  background-size: 2508px 2508px;
  opacity: .1;
  pointer-events: none;
}

body.odns-knowledge-article .odns-article-main img {
  display: block;
  max-width: 100%;
}

body.odns-knowledge-article .odns-article-main h1,
body.odns-knowledge-article .odns-article-main h2,
body.odns-knowledge-article .odns-article-main h3 {
  margin-top: 0;
  color: #173b63;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}

body.odns-knowledge-article .odns-article-main p {
  margin-top: 0;
}

body.odns-knowledge-article .odns-article-main a {
  color: #4f7563;
  text-decoration: none;
}

body.odns-knowledge-article .odns-article-main a:focus-visible {
  outline: 3px solid rgba(214, 166, 82, .62);
  outline-offset: 3px;
}

/* HERO */
.odns-article-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background-color: #eef4ea;
  background-image:
    linear-gradient(90deg, rgba(239, 245, 235, .96), rgba(251, 248, 241, .72)),
    url("../textures/sage-paper-seamless.webp");
  background-repeat: repeat;
  background-size: auto, 2508px 2508px;
}

.odns-article-hero::after,
.odns-article-related::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background-image: url("../textures/paper-overlay-seamless.webp");
  background-repeat: repeat;
  background-size: 2508px 2508px;
  opacity: .1;
  pointer-events: none;
}

.odns-article-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(calc(100% - 80px), 1400px);
  min-height: 580px;
  margin-inline: auto;
  padding: 58px 0 48px;
  grid-template-columns: minmax(0, 58%) minmax(340px, 42%);
  align-items: center;
  gap: 24px;
}

.odns-article-hero-copy {
  min-width: 0;
  padding-left: 8px;
}

.odns-article-breadcrumbs {
  display: flex;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  color: #4f7563;
  font-size: 10.5px;
  font-weight: 500;
}

.odns-article-breadcrumbs a {
  color: #4f7563;
}

.odns-article-breadcrumbs span[aria-hidden="true"] {
  padding-inline: 8px;
  color: #d6a652;
}

.odns-article-meta {
  margin-bottom: 11px;
  color: #4f7563;
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .115em;
  text-transform: uppercase;
}

body.odns-knowledge-article .odns-article-hero h1 {
  max-width: 735px;
  margin-bottom: 4px;
  font-size: clamp(52px, 4.25vw, 68px);
  font-weight: 500;
  line-height: 1.09;
  letter-spacing: -.018em;
  text-wrap: balance;
}

.odns-article-separator {
  width: 176px;
  height: auto;
  margin: 12px 0 15px;
  object-fit: contain;
}

body.odns-knowledge-article .odns-article-lead {
  max-width: 690px;
  margin-bottom: 21px;
  color: #173b63;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.36;
}

.odns-article-author-line {
  display: flex;
  max-width: 680px;
  color: #6d7f7b;
  font-size: 10.5px;
  line-height: 1.45;
  align-items: center;
  gap: 10px;
}

.odns-article-author-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(214, 166, 82, .62);
  border-radius: 50%;
  place-items: center;
  color: #4f7563;
  background: rgba(255, 253, 250, .75);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

.odns-article-hero-art {
  position: relative;
  min-width: 0;
}

.odns-article-hero-art::before {
  position: absolute;
  z-index: -1;
  inset: 5% 4%;
  content: "";
  border-radius: 48% 52% 44% 56%;
  background: rgba(255, 253, 250, .36);
  filter: blur(12px);
}

.odns-article-hero-art img {
  width: 100%;
  max-height: 490px;
  margin-inline: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: saturate(.9) contrast(.98);
}

/* TREŚĆ */
.odns-article-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(calc(100% - 80px), 1180px);
  margin: 0 auto;
  padding: 74px 0 58px;
  grid-template-columns: minmax(0, 770px) 300px;
  gap: 60px;
  align-items: start;
}

.odns-article-content {
  min-width: 0;
}

body.odns-knowledge-article .odns-article-intro {
  margin-bottom: 42px;
  color: #173b63;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.45;
}

.odns-article-section {
  margin-bottom: 43px;
  scroll-margin-top: 22px;
}

body.odns-knowledge-article .odns-article-section h2 {
  margin-bottom: 5px;
  font-size: 41px;
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -.012em;
}

.odns-article-mini-separator {
  width: 118px;
  height: auto;
  margin: 4px 0 19px;
  object-fit: contain;
}

.odns-article-section p {
  margin-bottom: 18px;
}

.odns-article-section ul {
  display: grid;
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
  gap: 11px;
}

.odns-article-section li {
  position: relative;
  padding-left: 31px;
}

.odns-article-section li::before {
  position: absolute;
  top: -.08em;
  left: 0;
  content: "♡";
  color: #d6a652;
  font-family: Georgia, serif;
  font-size: 20px;
}

.odns-article-callout {
  position: relative;
  margin: 7px 0 46px;
  padding: 29px 30px 29px 47px;
  overflow: hidden;
  border: 1px solid rgba(214, 166, 82, .55);
  border-radius: 20px;
  background: rgba(255, 253, 250, .78);
  box-shadow: 0 8px 18px rgba(23, 59, 99, .04);
}

.odns-article-callout::before {
  position: absolute;
  top: 29px;
  bottom: 29px;
  left: 18px;
  width: 4px;
  content: "";
  border-radius: 999px;
  background: #e1b75f;
}

.odns-article-callout p {
  margin-bottom: 0;
}

.odns-article-callout .odns-article-callout-label {
  margin-bottom: 7px;
  color: #4f7563;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.odns-article-callout p:last-child {
  color: #173b63;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.38;
}

.odns-article-author-card {
  display: grid;
  margin-top: 8px;
  padding: 26px 29px;
  border: 1px solid rgba(214, 166, 82, .48);
  border-radius: 20px;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  background: rgba(255, 253, 250, .66);
}

.odns-article-author-card > img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.odns-article-author-card span {
  color: #4f7563;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.odns-knowledge-article .odns-article-author-card h3 {
  margin-bottom: 4px;
  font-size: 28px;
  line-height: 1.12;
}

.odns-article-author-card p {
  margin-bottom: 0;
  font-size: 11px;
  line-height: 1.58;
}

/* SPIS TREŚCI */
.odns-article-sidebar {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 20px;
}

.odns-article-side-card {
  padding: 27px 24px;
  border: 1px solid rgba(214, 166, 82, .55);
  border-radius: 20px;
  background: rgba(255, 253, 250, .74);
  box-shadow: 0 8px 18px rgba(23, 59, 99, .04);
}

body.odns-knowledge-article .odns-article-side-card h2 {
  margin-bottom: 15px;
  font-size: 29px;
  font-weight: 500;
  line-height: 1.08;
}

.odns-article-toc {
  display: grid;
}

.odns-article-toc a {
  display: grid;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(214, 166, 82, .32);
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  color: #33485a !important;
  font-size: 11px;
  line-height: 1.45;
}

.odns-article-toc a:last-child {
  border-bottom: 0;
}

.odns-article-toc strong {
  display: block;
  width: 30px;
  color: #d6a652;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  text-align: right;
}

.odns-article-toc span {
  min-width: 0;
}

.odns-article-remember {
  text-align: center;
  background-color: rgba(231, 240, 231, .74);
  background-image: url("../textures/sage-paper-seamless.webp");
  background-repeat: repeat;
  background-size: 2508px 2508px;
}

.odns-article-remember-mark {
  display: grid;
  width: 57px;
  height: 57px;
  margin: 0 auto 15px;
  border: 1px solid rgba(214, 166, 82, .62);
  border-radius: 50%;
  place-items: center;
  color: #d6a652;
  background: rgba(255, 253, 250, .8);
  font-size: 27px;
}

body.odns-knowledge-article .odns-article-remember h2 {
  max-width: 210px;
  margin-inline: auto;
  font-size: 30px;
}

.odns-article-remember p {
  margin-bottom: 18px;
  font-size: 11px;
  line-height: 1.55;
}

.odns-article-text-link {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
}

/* ARTYKUŁY POWIĄZANE */
.odns-article-related {
  position: relative;
  z-index: 1;
  padding: 58px 0 66px;
  background-color: #e8f0e7;
  background-image: url("../textures/sage-paper-seamless.webp");
  background-repeat: repeat;
  background-size: 2508px 2508px;
}

.odns-article-section-heading {
  position: relative;
  z-index: 2;
  margin: 0 auto 31px;
  text-align: center;
}

.odns-article-section-heading p {
  margin-bottom: 4px;
  color: #4f7563;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.odns-knowledge-article .odns-article-section-heading h2 {
  margin-bottom: 1px;
  font-size: 48px;
  line-height: 1.08;
}

.odns-article-section-heading img {
  width: 150px;
  height: auto;
  margin-inline: auto;
}

.odns-article-related-grid {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(calc(100% - 80px), 1180px);
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.odns-article-related-card {
  display: flex;
  min-width: 0;
  min-height: 322px;
  overflow: hidden;
  border: 1px solid rgba(214, 166, 82, .52);
  border-radius: 20px;
  flex-direction: column;
  background: rgba(255, 253, 250, .92);
  box-shadow: 0 7px 18px rgba(23, 59, 99, .04);
}

.odns-article-related-card > img {
  width: 100%;
  height: 145px;
  flex: 0 0 145px;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}

.odns-article-related-copy {
  display: flex;
  min-height: 0;
  padding: 19px 21px 20px;
  flex: 1;
  flex-direction: column;
}

.odns-article-related-copy .odns-article-meta {
  margin-bottom: 8px;
  font-size: 8px;
}

body.odns-knowledge-article .odns-article-related-copy h3 {
  margin-bottom: 15px;
  font-size: 26px;
  line-height: 1.12;
}

.odns-article-related-copy a {
  margin-top: auto;
  font-size: 10px;
  font-weight: 600;
}

/* CTA */
.odns-article-contact {
  position: relative;
  z-index: 1;
  padding: 63px 0 67px;
}

.odns-article-contact-card {
  display: grid;
  width: min(calc(100% - 80px), 1180px);
  min-height: 376px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(214, 166, 82, .52);
  border-radius: 24px;
  grid-template-columns: 46% 54%;
  background: rgba(255, 253, 250, .82);
  box-shadow: 0 9px 21px rgba(23, 59, 99, .04);
}

.odns-article-contact-art {
  min-width: 0;
  overflow: hidden;
}

.odns-article-contact-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}

.odns-article-contact-copy {
  display: flex;
  padding: 42px 39px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.odns-article-contact-copy .odns-article-meta {
  margin-bottom: 11px;
}

body.odns-knowledge-article .odns-article-contact-copy h2 {
  max-width: 570px;
  margin-bottom: 0;
  font-size: 43px;
  line-height: 1.1;
  letter-spacing: -.012em;
}

.odns-article-contact-copy .odns-article-separator {
  width: 145px;
  margin: 11px auto 15px;
}

.odns-article-contact-copy > p:not(.odns-article-meta) {
  margin-bottom: 19px;
  font-size: 11px;
  line-height: 1.55;
}

.odns-article-primary-button {
  display: inline-flex;
  min-height: 44px;
  padding: 11px 24px;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  color: #fffdfa !important;
  background: #4f7563;
  box-shadow: 0 8px 18px rgba(79, 117, 99, .18);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 1180px) {
  .odns-article-hero-inner {
    width: min(calc(100% - 48px), 1120px);
    grid-template-columns: minmax(0, 56%) minmax(330px, 44%);
  }

  .odns-article-shell {
    width: calc(100% - 64px);
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 38px;
  }

  .odns-article-related-grid,
  .odns-article-contact-card {
    width: calc(100% - 64px);
  }
}

@media (max-width: 900px) {
  .odns-article-hero-inner {
    width: calc(100% - 56px);
    padding: 50px 0 42px;
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .odns-article-hero-copy {
    padding-left: 0;
  }

  .odns-article-hero-art img {
    max-height: 410px;
  }

  .odns-article-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .odns-article-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .odns-article-related-grid {
    gap: 15px;
  }

  .odns-article-related-card {
    min-height: 365px;
  }

  .odns-article-contact-card {
    grid-template-columns: 43% 57%;
  }
}

@media (max-width: 700px) {
  body.odns-knowledge-article #main-content.odns-article-main {
    font-size: 14px;
    line-height: 1.68;
  }

  .odns-article-hero-inner {
    width: calc(100% - 30px);
    min-height: auto;
    padding: 42px 0 34px;
    gap: 24px;
  }

  .odns-article-breadcrumbs {
    justify-content: center;
    margin-bottom: 16px;
    font-size: 9px;
  }

  .odns-article-hero-copy {
    text-align: center;
  }

  .odns-article-hero-copy .odns-article-meta {
    text-align: center;
  }

  body.odns-knowledge-article .odns-article-hero h1 {
    margin-inline: auto;
    font-size: clamp(42px, 12.8vw, 52px);
    line-height: 1.08;
    letter-spacing: -.014em;
  }

  .odns-article-hero-copy .odns-article-separator {
    margin-inline: auto;
  }

  body.odns-knowledge-article .odns-article-lead {
    margin-inline: auto;
    font-size: 22px;
    line-height: 1.36;
  }

  .odns-article-author-line {
    justify-content: center;
    font-size: 9px;
    line-height: 1.45;
  }

  .odns-article-author-line > span:last-child {
    max-width: 265px;
  }

  .odns-article-hero-art img {
    max-height: 315px;
  }

  .odns-article-shell {
    width: calc(100% - 32px);
    padding: 48px 0 42px;
    gap: 36px;
  }

  body.odns-knowledge-article .odns-article-intro {
    font-size: 24px;
    line-height: 1.42;
  }

  .odns-article-section {
    margin-bottom: 36px;
  }

  body.odns-knowledge-article .odns-article-section h2 {
    font-size: 35px;
    line-height: 1.12;
  }

  .odns-article-callout {
    padding: 26px 23px 26px 35px;
  }

  .odns-article-callout::before {
    left: 14px;
  }

  .odns-article-callout p:last-child {
    font-size: 24px;
  }

  .odns-article-author-card {
    padding: 23px;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
  }

  .odns-article-author-card > img {
    width: 68px;
    height: 68px;
  }

  .odns-article-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .odns-article-toc a {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 11px;
    font-size: 12px;
  }

  .odns-article-toc strong {
    width: 32px;
    font-size: 19px;
  }

  body.odns-knowledge-article .odns-article-section-heading h2 {
    font-size: 39px;
  }

  .odns-article-related {
    padding: 47px 0 51px;
  }

  .odns-article-related-grid {
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .odns-article-related-card {
    min-height: 392px;
  }

  .odns-article-related-card > img {
    height: 176px;
    flex-basis: 176px;
  }

  body.odns-knowledge-article .odns-article-related-copy h3 {
    font-size: 27px;
  }

  .odns-article-contact {
    padding: 50px 0;
  }

  .odns-article-contact-card {
    width: calc(100% - 32px);
    grid-template-columns: minmax(0, 1fr);
  }

  .odns-article-contact-art {
    height: 238px;
  }

  .odns-article-contact-copy {
    padding: 34px 23px 37px;
  }

  body.odns-knowledge-article .odns-article-contact-copy h2 {
    font-size: 36px;
    line-height: 1.1;
  }
}

@media (max-width: 390px) {
  .odns-article-breadcrumbs {
    font-size: 8px;
  }

  body.odns-knowledge-article .odns-article-hero h1 {
    font-size: clamp(40px, 12.8vw, 49px);
  }

  .odns-article-author-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .odns-article-author-card > img {
    width: 58px;
    height: 58px;
  }
}
