:root {
  --about-ink: #2c211b;
  --about-muted: #6d6259;
  --about-paper: #fffaf3;
  --about-paper-2: #f6eee1;
  --about-aubergine: #5b2867;
  --about-wine: #913158;
  --about-coral: #e9744a;
  --about-line: rgba(62, 43, 32, 0.14);
}

html {
  scroll-behavior: smooth;
}

.about-page {
  width: min(100%, 1800px);
  max-width: 1800px;
  padding-right: clamp(68px, 4.2vw, 80px);
  padding-left: clamp(18px, 2.5vw, 48px);
}

.about-article {
  color: var(--about-ink);
}

.about-hero {
  position: relative;
  min-height: min(900px, 84vh);
  padding: clamp(42px, 6vw, 96px);
  background:
    linear-gradient(108deg, rgba(22, 16, 12, 0.99) 0 48%, rgba(22, 16, 12, 0.78) 76%, rgba(22, 16, 12, 0.96) 100%),
    radial-gradient(circle at 82% 22%, #d9a96b, transparent 34%),
    #211711;
}

.about-hero::before {
  content: "WIEDZA / DZIECKO";
  z-index: 5;
  top: 50%;
  right: clamp(10px, 1.3vw, 22px);
  padding: 14px 8px;
  border: 1px solid rgba(255, 243, 222, 0.22);
  border-radius: 999px;
  background: rgba(22, 16, 12, 0.54);
  color: rgba(255, 243, 222, 0.86);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.17em;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.about-hero::after {
  border-color: rgba(217, 169, 107, 0.3);
  box-shadow:
    0 0 0 32px rgba(217, 169, 107, 0.04),
    0 0 0 78px rgba(217, 169, 107, 0.025);
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}

.about-hero.is-ready::after {
  transform: translate3d(-16px, -12px, 0);
}

.about-hero h1 {
  position: relative;
  z-index: 2;
  max-width: min(56%, 910px);
}

.about-hero > .article-eyebrow,
.about-hero > .article-subtitle {
  position: relative;
  z-index: 2;
  max-width: min(54%, 860px);
}

.about-hero__portrait-art {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(68%, 1160px);
  overflow: hidden;
  border-radius: 0 0 76px 0;
  background: transparent;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 8%,
    rgba(0, 0, 0, 0.48) 21%,
    #000 39%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.08) 8%,
    rgba(0, 0, 0, 0.48) 21%,
    #000 39%,
    #000 100%
  );
  pointer-events: none;
}

.about-hero__portrait-art::before,
.about-hero__portrait-art::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.about-hero__portrait-art::before {
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(90deg, #16100c 0%, rgba(22, 16, 12, 0.98) 15%, rgba(46, 29, 20, 0.77) 31%, rgba(58, 36, 24, 0.34) 48%, rgba(22, 16, 12, 0.1) 68%, rgba(22, 16, 12, 0.16) 100%),
    linear-gradient(180deg, rgba(22, 16, 12, 0.38) 0%, transparent 24%, transparent 72%, rgba(22, 16, 12, 0.48) 100%);
}

.about-hero__portrait-art::after {
  z-index: 4;
  top: -20%;
  right: -34%;
  bottom: -20%;
  left: 16%;
  background: linear-gradient(
    106deg,
    transparent 40%,
    rgba(255, 255, 255, 0.018) 45%,
    rgba(255, 255, 255, 0.075) 49%,
    rgba(255, 255, 255, 0.018) 54%,
    transparent 60%
  );
  transform: translateX(-48%);
  animation: about-glass-sweep 13s ease-in-out infinite;
}

.about-hero__portrait-art img {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 63% center;
  opacity: 0.58;
  filter:
    saturate(0.76)
    contrast(1.02)
    brightness(0.72);
}

@keyframes about-glass-sweep {
  0%,
  24% {
    opacity: 0;
    transform: translateX(-48%);
  }

  48% {
    opacity: 0.7;
  }

  72%,
  100% {
    opacity: 0;
    transform: translateX(48%);
  }
}

.about-statement {
  position: relative;
  z-index: 2;
  max-width: min(53%, 850px);
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 248, 236, 0.16);
}

.about-statement p {
  margin: 0;
  color: rgba(255, 248, 236, 0.74);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.72;
}

.about-author {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  margin-top: 34px;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(255, 248, 236, 0.15);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.055);
  text-decoration: none;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.about-author:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 169, 107, 0.55);
  background: rgba(255, 248, 236, 0.09);
}

.about-author > span {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: block;
  overflow: hidden;
  padding: 2px;
  border-radius: 50%;
  background: #d9a96b;
  box-shadow: 0 0 0 1px rgba(255, 248, 236, .22);
}

.about-author__portrait img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  object-position: 50% 30%;
}

.about-author p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.about-author small {
  color: rgba(255, 248, 236, 0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.about-author strong {
  color: #fff8ec;
  font-size: 13px;
  line-height: 1.35;
}

.article-body {
  --article-gutter: clamp(22px, 5.4vw, 96px);
  padding: clamp(54px, 7vw, 112px) var(--article-gutter);
  background:
    linear-gradient(90deg, rgba(91, 40, 103, .025) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--about-paper);
}

.article-body > section,
.article-body > aside,
.article-body > footer {
  width: min(100%, 1420px);
  margin-inline: auto;
}

.article-body > section {
  position: relative;
  width: auto;
  max-width: none;
  margin-inline: calc(var(--article-gutter) * -1);
  padding: clamp(48px, 6vw, 88px) var(--article-gutter);
  border-top: 1px solid var(--about-line);
}

.article-body > section:first-of-type {
  border-top: 0;
}

.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5 {
  color: var(--about-ink);
  line-height: 1.08;
  text-wrap: balance;
}

.article-body h2 {
  width: auto;
  max-width: none;
  margin:
    0
    calc(var(--article-gutter) * -1)
    clamp(34px, 4vw, 56px);
  padding:
    clamp(28px, 4vw, 52px)
    calc(var(--article-gutter) + clamp(12px, 2vw, 34px));
  border-left: 6px solid var(--section-accent, var(--about-coral));
  background: var(--section-band, #f8eee8);
  font-size: clamp(34px, 4.3vw, 70px);
  letter-spacing: -.045em;
}

#dlaczego-to-wazne {
  --section-accent: #9b355d;
  --section-band: linear-gradient(100deg, #f5e7ec 0%, #fff7f2 76%);
}

#profilaktyka-i-objawy {
  --section-accent: #de744d;
  --section-band: linear-gradient(100deg, #f9e6dc 0%, #fff7ec 76%);
}

#dobre-widzenie {
  --section-accent: #537b70;
  --section-band: linear-gradient(100deg, #e4efea 0%, #f7f7ed 76%);
}

#definicja-i-przyczyny {
  --section-accent: #694b7a;
  --section-band: linear-gradient(100deg, #ece5f0 0%, #faf4f5 76%);
}

#leczenie {
  --section-accent: #b97932;
  --section-band: linear-gradient(100deg, #f5e6ce 0%, #fff6e8 76%);
}

#bibliografia {
  --section-accent: #813b63;
  --section-band: linear-gradient(100deg, #eadde5 0%, #f9f0ea 76%);
}

#autorzy-zrodel {
  --section-accent: #416c62;
  --section-band: linear-gradient(100deg, #dfece8 0%, #f5f4e9 76%);
}

.article-body h3 {
  margin: 52px 0 22px;
  font-size: clamp(25px, 3vw, 42px);
  letter-spacing: -.03em;
}

.article-body h4 {
  margin: 42px 0 18px;
  color: var(--about-aubergine);
  font-size: clamp(21px, 2vw, 30px);
}

.article-body h5 {
  margin: 32px 0 12px;
  font-size: 19px;
}

.article-body p,
.article-body li {
  color: var(--about-muted);
  font-size: clamp(16px, 1.18vw, 18px);
  line-height: 1.78;
}

.article-body p {
  max-width: 1120px;
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  max-width: 1120px;
  margin: 22px 0 28px;
  padding-left: 1.35em;
}

.article-body li {
  margin-bottom: 10px;
  padding-left: .3em;
}

.article-body a {
  color: var(--about-aubergine);
  text-decoration-color: rgba(91, 40, 103, .35);
  text-underline-offset: .18em;
}

.article-body a:hover {
  text-decoration-thickness: 2px;
}

.medical-note {
  position: relative;
  margin-bottom: 24px;
  padding: 22px 26px 22px 68px;
  border: 1px solid rgba(145, 49, 88, .2);
  border-radius: 18px;
  background: linear-gradient(100deg, #fff2ed, #fffaf3 72%);
}

.medical-note::before {
  content: "!";
  position: absolute;
  left: 22px;
  top: 21px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--about-coral);
  color: #fff;
  font-weight: 900;
}

.medical-note,
.medical-note strong {
  color: #55392f;
}

.treatment-block {
  margin-top: 54px;
  padding: clamp(30px, 4vw, 54px);
  border-left: 4px solid var(--about-aubergine);
  background: rgba(91, 40, 103, .035);
}

.treatment-block + .treatment-block {
  margin-top: 28px;
  border-left-color: var(--about-coral);
  background: rgba(233, 116, 74, .045);
}

.treatment-block > h3:first-child {
  margin-top: 0;
}

.source-callout {
  margin-top: 30px !important;
  padding: 18px 22px;
  border-left: 4px solid var(--about-wine);
  background: #f5eaf0;
  color: #583a48 !important;
}

.citation {
  font-size: .72em;
}

.refraction-chart {
  position: relative;
  margin: clamp(42px, 6vw, 82px) 0 12px;
  padding: clamp(24px, 4vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(91, 40, 103, .16);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(60, 34, 64, .11);
}

.refraction-chart::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 21%;
  pointer-events: none;
  opacity: .13;
  background: linear-gradient(118deg, transparent 0 21%, #6d2d84 22% 38%, transparent 39% 45%, #be386d 46% 64%, #813494 65% 79%, #bb315d 80%);
  clip-path: polygon(42% 0, 100% 0, 100% 100%, 0 100%, 55% 55%);
}

.refraction-chart h3 {
  position: relative;
  z-index: 2;
  max-width: 930px;
  margin: 0 0 34px;
  color: #592663;
  font-size: clamp(25px, 3.5vw, 54px);
}

.chart-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 445px;
}

.chart-y-axis {
  position: relative;
  height: 350px;
  color: #5f5a60;
  font-size: 13px;
}

.chart-y-axis span {
  position: absolute;
  right: 13px;
  top: calc((70 - var(--tick)) / 70 * 100%);
  transform: translateY(-50%);
  white-space: nowrap;
}

.chart-plot {
  position: relative;
  height: 445px;
  min-width: 0;
}

.chart-grid {
  position: absolute;
  inset: 0 0 95px;
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  border-bottom: 1px solid #d5d1d6;
}

.chart-grid i {
  border-top: 1px solid #dedbdf;
}

.chart-groups {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  gap: clamp(6px, 1.3vw, 22px);
}

.chart-group {
  min-width: 0;
  display: grid;
  grid-template-rows: 350px 95px;
  align-items: end;
}

.chart-bars {
  height: 350px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: clamp(5px, .7vw, 10px);
}

.chart-bar-wrap {
  position: relative;
  width: clamp(32px, 4.2vw, 62px);
  height: 100%;
  display: flex;
  align-items: end;
}

.chart-bar {
  width: 100%;
  height: var(--bar-height, 0%);
  transform: scaleY(1);
  transform-origin: bottom;
  opacity: .98;
  box-shadow: 3px 0 6px rgba(0, 0, 0, .17);
  will-change: transform;
}

.refraction-chart.chart-motion-ready .chart-bar {
  transform: scaleY(0);
}

.refraction-chart.chart-motion-ready.is-visible .chart-bar {
  transform: scaleY(1);
  transition: transform var(--bar-duration, 1200ms) cubic-bezier(.18, .8, .24, 1) var(--bar-delay, 0ms);
}

.chart-value {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar-height, 0%) + 7px);
  z-index: 3;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #3f3c40;
  font-size: clamp(13px, 1.25vw, 19px);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.chart-category {
  align-self: start;
  padding-top: 13px;
  color: #8d2b51;
  font-weight: 850;
  text-align: center;
  line-height: 1.15;
  font-size: clamp(13px, 1.4vw, 17px);
}

.chart-group--purple .chart-bar--before { background: #7030a0; }
.chart-group--purple .chart-bar--after { background: #86479b; }
.chart-group--orange .chart-bar--before { background: #ff8738; }
.chart-group--orange .chart-bar--after { background: #e96500; }
.chart-group--rose .chart-bar--before { background: #bd3868; }
.chart-group--rose .chart-bar--after { background: #bc3567; }
.chart-group--navy .chart-bar--before { background: #6b2aa0; }
.chart-group--navy .chart-bar--after { background: #092762; }
.chart-group--yellow .chart-bar--before,
.chart-group--yellow .chart-bar--after {
  border: 1px solid #ded500;
  background: #fff500;
}

.chart-legend {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
  color: #5e5960;
  font-size: 15px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chart-legend i {
  width: 12px;
  height: 12px;
  display: inline-block;
}

.legend-before { background: #7030a0; }
.legend-after { background: #bd3868; }

.refraction-chart figcaption {
  position: relative;
  z-index: 2;
  max-width: 1050px;
  margin: 20px 0 0;
  color: var(--about-muted);
  font-size: 14px;
  line-height: 1.65;
}

.references {
  background: linear-gradient(130deg, rgba(91, 40, 103, .055), transparent 52%);
}

.references ol {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-left: 0;
  list-style: none;
  counter-reset: references;
}

.references li {
  position: relative;
  counter-increment: references;
  margin: 0;
  padding: 25px 25px 25px 68px;
  border-top: 1px solid var(--about-line);
  background: rgba(255, 255, 255, .52);
}

.references li::before {
  content: counter(references, decimal-leading-zero);
  position: absolute;
  left: 22px;
  top: 24px;
  color: var(--about-coral);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
}

.reference-links,
.author-links {
  font-size: .92em;
}

.bibliography-note,
.author-alt {
  color: var(--about-muted);
  font-size: 14px !important;
}

.source-authors > ul {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.source-authors > ul > li {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--about-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .65);
}

.source-authors > ul > li:first-child {
  grid-column: 1 / -1;
  padding: clamp(26px, 3vw, 42px);
  border-color: rgba(145, 49, 88, .25);
  background: linear-gradient(110deg, #fff0eb, #f6eaf4);
}

.source-authors > ul > li strong {
  color: var(--about-ink);
}

.article-footer {
  margin-top: 20px;
  padding: 28px 0 20px;
  border-top: 1px solid var(--about-line);
}

.article-footer p {
  font-size: 14px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1100px) {
  .source-authors > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .refraction-chart {
    overflow-x: auto;
  }

  .chart-shell,
  .chart-legend,
  .refraction-chart figcaption {
    min-width: 820px;
  }

  .chart-legend {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .about-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .about-hero {
    min-height: 760px;
    padding: 34px 24px;
  }

  .about-hero h1,
  .about-hero > .article-eyebrow,
  .about-hero > .article-subtitle,
  .about-statement {
    max-width: 100%;
  }

  .about-hero__portrait-art {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    order: 10;
    width: 100%;
    min-height: clamp(280px, 66vw, 440px);
    margin: 34px 0 -16px;
    border-radius: 28px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  }

  .about-hero__portrait-art img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: none;
    object-position: 70% center;
  }

  .about-hero::before {
    display: none;
  }

  .about-author {
    align-items: flex-start;
    border-radius: 20px;
  }

  .article-body {
    --article-gutter: 18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .article-body h2 {
    font-size: clamp(32px, 10vw, 48px);
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .refraction-chart h3 {
    min-width: 0;
    padding-right: 6px;
    font-size: clamp(24px, 7.5vw, 32px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .treatment-block {
    padding: 26px 20px;
  }

  .references ol,
  .source-authors > ul {
    grid-template-columns: 1fr;
  }

  .source-authors > ul > li:first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .about-hero::after,
  .about-author,
  .about-hero__portrait-art img,
  .about-hero__portrait-art::after,
  .chart-bar {
    animation: none !important;
    transition: none !important;
  }
  .refraction-chart.chart-motion-ready .chart-bar {
    transform: scaleY(1);
  }
}
