/* Henryk Adamczyk — okulista dziecięcy
   World: the trial-lens case. Chrome rims, velvet slots, engraved values,
   one red (minus-lens rim) for action. */

:root {
  --paper: #F4F5F7;
  --paper-2: #EBEDF0;
  --white: #FFFFFF;
  --ink: #0E0F12;
  --ink-2: #3B4049;
  --ink-3: #5E6570;
  --line: #D5D9DF;
  --chrome: #C9CED6;
  --chrome-hi: #F7F8FA;
  --chrome-lo: #858C97;
  --velvet: #14161D;
  --velvet-2: #1C1F28;
  --velvet-ink: #E9EBEF;
  --velvet-ink-2: #A9AFBB;
  --red: #D7262E;
  --red-deep: #B01C23;
  --red-ink: #FFFFFF;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 220ms;
  --t-mid: 520ms;
  --t-slow: 1100ms;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Onest", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --sec: clamp(88px, 12vw, 176px);
  --radius: 22px;

  --velvet-tex: url("assets/img/velvet.jpg");
  --icon-lens: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2.4'%3E%3Ccircle cx='12' cy='14' r='8.5'/%3E%3Cpath d='M20.5 14h8' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--chrome-lo) var(--paper-2); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--chrome-lo); border-radius: 12px; border: 3px solid var(--paper-2); }
input { caret-color: var(--red); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 560;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2--xl { font-size: clamp(2.8rem, 7.2vw, 6rem); }
.h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 108;
  font-weight: 580;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.muted { color: var(--ink-3); }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--red); }
.link:hover { color: var(--red-deep); }

/* ---------- Lens raster primitives ----------
   Every lens is the produced trial-lens cutout (assets/img/lens-*.png).
   Geometry of the cutout, as fractions of the image width:
   circle centre 38.5% / 30.97%, outer radius 25.9%, glass radius 22.5%. */
.brand__lens { width: 48px; height: auto; flex: none; }
.brand__lens--lg { width: 84px; }

.plate { position: absolute; pointer-events: none; }
.plate__img { width: 100%; height: auto; display: block; }
/* A plate sized for a lens of diameter --d: image width = d / .518 */
.plate {
  width: calc(var(--d) * 1.931);
  left: calc(var(--d) * -0.243);
  top: calc(var(--d) * -0.098);
  transform-origin: 38.5% 46.45%;
  transform: rotate(var(--rot, 0deg));
}
.plate--open .plate__img, .plate--hero .plate__img, .plate--eye .plate__img, .plate--map .plate__img {
  -webkit-mask: radial-gradient(circle at 38.5% 46.45%, transparent calc(var(--d) * .43), #000 calc(var(--d) * .438));
          mask: radial-gradient(circle at 38.5% 46.45%, transparent calc(var(--d) * .43), #000 calc(var(--d) * .438));
  filter: drop-shadow(0 calc(var(--d) * .04) calc(var(--d) * .06) rgba(14, 15, 18, .3));
}

/* Button: a lens handle tab — chrome-rimmed red pill with an engraved ring */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 24px 0 18px;
  border: 0; border-radius: 999px;
  font: 600 .98rem/1 var(--text); letter-spacing: .005em;
  text-decoration: none; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-mid) var(--ease), background-color var(--t-fast) var(--ease);
}
.btn--tab {
  background: var(--red); color: var(--red-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 -2px 0 rgba(0,0,0,.18) inset, 0 6px 16px -8px rgba(14, 15, 18, .45);
}
.btn--tab::before {
  content: ""; width: 26px; height: 26px; flex: none;
  background: currentColor;
  -webkit-mask: var(--icon-lens) center / contain no-repeat;
          mask: var(--icon-lens) center / contain no-repeat;
  transition: transform var(--t-mid) var(--ease);
}
.btn--tab:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 -2px 0 rgba(0,0,0,.2) inset, 0 12px 22px -10px rgba(14, 15, 18, .5); }
.btn--tab:hover::before { transform: translateX(2px); }
.btn--tab:active { transform: translateY(1px); }
.btn--lg { --h: 58px; padding: 0 30px 0 22px; font-size: 1.05rem; }
.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.nav.is-solid { background: rgba(244, 245, 247, .97); box-shadow: 0 1px 0 var(--line); }
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--display); font-variation-settings: "wdth" 115; font-weight: 640; font-size: 1.06rem; letter-spacing: -0.01em; }
.brand__role { font-size: .8rem; color: var(--ink-3); margin-top: 3px; }
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  position: relative; text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-2); padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--red); transform: scale(0); transition: transform var(--t-mid) var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scale(1); }
.nav__cta { --h: 44px; font-size: .93rem; }
.nav__toggle { display: none; }
.menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(680px, 100svh); overflow: hidden;
  display: grid; align-items: center;
  background: #e9ebee;
}
.hero__media { position: absolute; inset: 0; }
.hero__blur, .hero__sharp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 40%; }
.hero__blur { filter: blur(16px) saturate(.92); transform: scale(1.06); }
.hero__sharp {
  --lx: 70%; --ly: 42%; --lr: 0px;
  clip-path: circle(var(--lr) at var(--lx) var(--ly));
  transform-origin: var(--lx) var(--ly);
  transform: scale(1.05);
  will-change: clip-path;
}
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(244,245,247,.92) 0%, rgba(244,245,247,.78) 32%, rgba(244,245,247,0) 58%);
  pointer-events: none;
}
.trial {
  --d: 0px;
  position: absolute; left: 0; top: 0; width: var(--d); height: var(--d);
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  pointer-events: none;
  will-change: transform;
}
.plate--hero { --rot: calc(32deg + var(--spin, 0deg)); }
.plate__power {
  position: absolute; left: 77%; top: 47.6%;
  transform: translate(-50%, -50%);
  font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 700;
  font-size: calc(var(--d) * .05); letter-spacing: .06em; white-space: nowrap;
  color: #3E434B; text-shadow: 0 1px 0 rgba(255,255,255,.7);
  font-variant-numeric: tabular-nums;
  mix-blend-mode: multiply;
}

.hero__content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 120px var(--gutter) 96px;
}
.hero__title {
  margin-top: 0; max-width: 12.5ch;
  font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 600;
  font-size: clamp(2.7rem, 6.4vw, 6rem); line-height: .98; letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero__lead { margin-top: 26px; max-width: 34ch; font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--ink-2); line-height: 1.55; }
.hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero__phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.hero__phone svg, .dock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.hero__phone span { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color var(--t-fast) var(--ease); }
.hero__phone:hover span { border-color: var(--red); }
.hero__hint {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 28px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; color: var(--ink-2); background: rgba(244,245,247,.85); padding: 8px 14px; border-radius: 999px;
  transition: opacity var(--t-slow) var(--ease);
}
.hero__hint-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero.is-touched .hero__hint { opacity: 0; }

/* ---------- Case (velvet) ---------- */
.case__photo {
  position: relative; margin: calc(var(--sec) * -1) 0 clamp(56px, 7vw, 104px); height: clamp(320px, 52vw, 720px); overflow: hidden;
}
.case__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.08); transition: transform 2.2s var(--ease), filter 1.6s var(--ease); filter: blur(6px) brightness(.8); }
.case__photo.is-in img { transform: scale(1); filter: none; }
.case__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,29,0) 55%, var(--velvet) 100%); }
.case__photo figcaption {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(20px, 3vw, 40px);
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  font-size: .86rem; color: var(--velvet-ink-2);
}
.case {
  position: relative;
  background: radial-gradient(120% 90% at 20% 0%, rgba(40,46,62,.35), rgba(20,22,29,0) 60%), var(--velvet-tex) 0 0 / 420px, var(--velvet);
  color: var(--velvet-ink);
  padding: var(--sec) 0;
}
.case__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.case__lead { margin-top: 22px; max-width: 46ch; color: var(--velvet-ink-2); font-size: 1.08rem; }
.lenses {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px);
}
.lens {
  position: relative; display: grid; gap: 10px; text-align: left;
  border: 0; padding: 0; background: none; color: inherit; cursor: pointer; font: inherit;
}
/* The fitted slot: a round recess pressed into the continuous velvet,
   sized to the rim of the lens cutout (centre 38.5% / 46.45%, rim 51.8% of width). */
.lens__slot {
  position: relative; display: block; aspect-ratio: 1.5;
  container-type: inline-size;
}
.lens__slot::before {
  content: ""; position: absolute; left: 38.5%; top: 46.45%; width: 54%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  box-shadow: inset 0 7px 10px rgba(0,0,0,.75), inset 0 -2px 3px rgba(255,255,255,.07), 0 1px 0 rgba(255,255,255,.05);
}
.lens__img {
  position: absolute; left: 0; top: 0; width: 100%; height: auto;
  transform: translateY(2%) scale(.98);
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.6)) brightness(.9);
  /* Clear glass: the velvet shows through, only a trace of the glass and its highlight stays */
  -webkit-mask: radial-gradient(circle at 38.5% 46.45%, rgba(0,0,0,.32) 22cqw, #000 22.6cqw);
          mask: radial-gradient(circle at 38.5% 46.45%, rgba(0,0,0,.32) 22cqw, #000 22.6cqw);
  transition: transform var(--t-mid) var(--ease), filter var(--t-mid) var(--ease);
}
.lens__power {
  position: absolute; left: 77%; top: 49.4%; transform: translate(-50%, -50%);
  font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 700;
  font-size: clamp(10px, 4.1cqw, 13px); letter-spacing: .02em; white-space: nowrap;
  color: #33373E; text-shadow: 0 1px 0 rgba(255,255,255,.55);
  transition: transform var(--t-mid) var(--ease);
  font-variant-numeric: tabular-nums;
}
.lens__name {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-variation-settings: "wdth" 108; font-weight: 600;
  font-size: clamp(.98rem, 1.2vw, 1.12rem); line-height: 1.2; letter-spacing: -0.01em;
  color: var(--velvet-ink);
}
.lens__name::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
  box-shadow: inset 0 0 0 1.5px var(--velvet-ink-2);
  transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.lens__power small { font-size: .72em; margin-right: .2em; }
.lens:hover .lens__img, .lens:focus-visible .lens__img { transform: translateY(-2%) scale(1); filter: drop-shadow(0 14px 14px rgba(0,0,0,.65)) brightness(1); }
.lens:hover .lens__power, .lens:focus-visible .lens__power { transform: translate(-50%, calc(-50% - 4%)); }
.lens.is-active .lens__img { transform: translateY(-5%) scale(1.03); filter: drop-shadow(0 22px 18px rgba(0,0,0,.75)) brightness(1.05); }
.lens.is-active .lens__power { transform: translate(-50%, -50%) translateY(-8%); }
.lens.is-active .lens__name { color: #fff; }
.lens.is-active .lens__name::before { background: var(--red); box-shadow: none; }
.lens:focus-visible { outline: none; }
.lens:focus-visible .lens__slot::before { box-shadow: inset 0 10px 16px rgba(0,0,0,.8), 0 0 0 2px var(--red); }

.case__panel { position: relative; padding-top: clamp(0px, 7vw, 120px); }
.panel {
  position: relative;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -40px rgba(0,0,0,.8);
}
.panel.is-entering { animation: focusIn var(--t-mid) var(--ease) both; }
.panel__title {
  font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 600;
  font-size: clamp(1.7rem, 2.8vw, 2.45rem); line-height: 1.05; letter-spacing: -0.03em;
  text-wrap: balance;
}
.panel__lead { margin-top: 18px; color: var(--velvet-ink); font-size: 1.08rem; line-height: 1.6; max-width: 52ch; }
.panel__cols { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); }
.panel h4 { font-family: var(--display); font-variation-settings: "wdth" 118; font-weight: 650; font-size: .86rem; letter-spacing: .02em; color: #fff; margin-bottom: 12px; }
.panel li { position: relative; padding-left: 20px; color: var(--velvet-ink-2); font-size: .98rem; line-height: 1.5; }
.panel li + li { margin-top: 9px; }
.panel li::before { content: ""; position: absolute; left: 0; top: .52em; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--chrome); }

@keyframes focusIn {
  from { opacity: .25; filter: blur(8px); transform: translateY(8px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

/* ---------- Visit ---------- */
.visit { padding: var(--sec) 0; }
.visit__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.visit__media { position: sticky; top: 104px; }
.visit__figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--paper-2); }
.visit__figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.visit__duration { margin-top: 22px; display: flex; align-items: baseline; gap: 16px; color: var(--ink-2); max-width: 36ch; }
.visit__duration-num {
  font-family: var(--display); font-variation-settings: "wdth" 125; font-weight: 600;
  font-size: 2.6rem; letter-spacing: -0.03em; color: var(--ink); line-height: 1; flex: none;
  font-variant-numeric: tabular-nums;
}
.visit__lead { margin-top: 22px; max-width: 48ch; color: var(--ink-2); font-size: 1.1rem; }
.steps { margin-top: 48px; position: relative; }
.steps::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.step { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 26px; padding: 0 0 34px; }
.step:last-child { padding-bottom: 0; }
.step h3 { font-family: var(--display); font-variation-settings: "wdth" 110; font-weight: 600; font-size: 1.32rem; letter-spacing: -0.015em; line-height: 1.2; }
.step p { margin-top: 8px; color: var(--ink-2); max-width: 54ch; }
.step__mark {
  position: relative; width: 28px; height: 28px; border-radius: 50%; margin-top: 1px;
  background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-3);
}
.step__mark::after {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--red);
  transform: scale(0); transition: transform var(--t-mid) var(--ease);
}
.step.is-seen .step__mark::after { transform: scale(1); }

.prep {
  margin-top: 56px; padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius); background: var(--white);
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -36px rgba(14,15,18,.35);
}
.prep__title { font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 620; font-size: 1.2rem; letter-spacing: -0.01em; }
.prep__list { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.prep__list li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.prep__list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--red); }

/* ---------- Ages ---------- */
.ages { padding: var(--sec) 0; background: var(--white); }
.ages__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.ages__lead { color: var(--ink-2); max-width: 46ch; font-size: 1.08rem; }
.track { position: relative; margin-top: clamp(48px, 6vw, 88px); }
.track__rail { position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line); border-radius: 2px; }
.track__lens {
  position: absolute; top: 50%; left: 0; width: 64px; height: auto; margin: -20px 0 0 -25px;
  transform: translateX(var(--p, 0px));
  transition: transform 700ms var(--ease);
  filter: drop-shadow(0 6px 8px rgba(14,15,18,.25));
}
.track__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.age { position: relative; padding-top: 52px; }
.age::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 2px var(--ink-3);
  transition: box-shadow var(--t-mid) var(--ease), background-color var(--t-mid) var(--ease);
}
.age__when {
  display: block;
  font-family: var(--display); font-variation-settings: "wdth" 115; font-weight: 620;
  font-size: clamp(1.15rem, 1.6vw, 1.42rem); letter-spacing: -0.015em; line-height: 1.15;
}
.age p { margin-top: 10px; color: var(--ink-2); font-size: .98rem; line-height: 1.55; }
.age.is-focus::before { background: var(--red); box-shadow: inset 0 0 0 2px var(--red); }

.signs { margin-top: clamp(88px, 10vw, 150px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 100px); align-items: center; }
.signs__figure { margin: 0; border-radius: 50% 50% var(--radius) var(--radius); overflow: hidden; aspect-ratio: 3 / 3.8; background: var(--paper-2); }
.signs__figure img { width: 100%; height: 100%; object-fit: cover; }
.signs__list { margin-top: 28px; border-top: 1px solid var(--line); }
.signs__list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 16px; align-items: baseline;
  padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.04rem;
}
.signs__list li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ink-3); transform: translateY(1px); }
.signs__urgent { margin-top: 24px; padding: 18px 22px; border-radius: 14px; background: #FBEAEA; color: #6E1015; font-size: 1rem; }
.signs__urgent strong { color: var(--red-deep); }

/* ---------- Doctor ---------- */
.doctor { padding: var(--sec) 0; }
.doctor__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.doctor__media { position: relative; padding-bottom: 12%; }
.doctor__room { margin: 0; width: 82%; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--paper-2); }
.doctor__room img { width: 100%; height: 100%; object-fit: cover; }
.doctor__eye {
  position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 30px 50px -24px rgba(14,15,18,.5);
}
.doctor__eye { overflow: visible; }
.doctor__eye-clip img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transform: scale(1.9); transition: transform 1.6s var(--ease); }
.doctor__eye.is-in .doctor__eye-clip img { transform: scale(1.45); }
.doctor__eye-clip { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.doctor__eye { --d: 0px; }
.plate--eye { --rot: 140deg; }
.doctor__role { margin-top: 16px; font-size: 1.15rem; color: var(--ink-2); }
.doctor__text { margin-top: 30px; display: grid; gap: 16px; max-width: 58ch; color: var(--ink-2); }
.principles { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 34px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: start; }
.principles h3 { font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 620; font-size: 1.1rem; letter-spacing: -0.01em; }
.principles p { color: var(--ink-3); margin-top: 4px; font-size: .98rem; }
.principles__icon {
  width: 30px; height: 30px; margin-top: -3px; background: var(--red);
  -webkit-mask: var(--icon-lens) center / contain no-repeat;
          mask: var(--icon-lens) center / contain no-repeat;
}

/* ---------- Prices ---------- */
.prices { padding: var(--sec) 0; background: var(--paper-2); }
.prices__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.prices__lead { margin-top: 20px; color: var(--ink-2); max-width: 32ch; }
.pricelist { margin: 0; border-top: 1px solid #C7CCD3; }
.price { display: flex; align-items: baseline; gap: 24px; padding: 22px 0; border-bottom: 1px solid #C7CCD3; }
.price dt { flex: 1; font-weight: 500; font-size: 1.08rem; line-height: 1.35; }
.price dt span { display: block; margin-top: 4px; color: var(--ink-3); font-weight: 400; font-size: .92rem; }
.price dd {
  margin: 0; flex: none;
  font-family: var(--display); font-variation-settings: "wdth" 120; font-weight: 600;
  font-size: 1.35rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}

/* ---------- FAQ ---------- */
.faq { padding: var(--sec) 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 1fr 30px; gap: 20px; align-items: center;
  padding: 22px 0; font-weight: 500; font-size: 1.1rem; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; width: 30px; height: 30px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.6px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.6px 12px no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--chrome-lo);
  transition: transform var(--t-mid) var(--ease), background-color var(--t-fast) var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); background-color: #fff; box-shadow: inset 0 0 0 1.5px var(--red); }
.qa summary:hover { color: var(--red-deep); }
.qa p { padding: 0 50px 24px 0; color: var(--ink-2); max-width: 62ch; }
.qa[open] p { animation: focusIn var(--t-mid) var(--ease) both; }

/* ---------- Contact ---------- */
.contact {
  padding: var(--sec) 0;
  background: radial-gradient(120% 90% at 80% 0%, rgba(40,46,62,.35), rgba(20,22,29,0) 60%), var(--velvet-tex) 0 0 / 420px, var(--velvet);
  color: var(--velvet-ink);
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__phone {
  display: inline-block; margin-top: 26px; text-decoration: none;
  font-family: var(--display); font-variation-settings: "wdth" 120; font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 3rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  border-bottom: 2px solid var(--red); padding-bottom: 4px;
  transition: color var(--t-fast) var(--ease);
}
.contact__phone:hover { color: #fff; }
.contact__note { margin-top: 14px; color: var(--velvet-ink-2); }
.contact__cols { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.12); }
.contact h3 { font-family: var(--display); font-variation-settings: "wdth" 118; font-weight: 650; font-size: .88rem; letter-spacing: .02em; color: #fff; margin-bottom: 12px; }
.contact p { color: var(--velvet-ink); font-size: 1rem; }
.contact .muted { color: var(--velvet-ink-2); margin-top: 10px; font-size: .93rem; }
.contact .link { text-decoration-color: var(--red); }
.contact .link:hover { color: #fff; }
.hours { border-collapse: collapse; width: 100%; font-size: .96rem; font-variant-numeric: tabular-nums; }
.hours th { text-align: left; font-weight: 400; color: var(--velvet-ink-2); padding: 3px 12px 3px 0; }
.hours td { text-align: right; padding: 3px 0; color: var(--velvet-ink); white-space: nowrap; }

.contact__side { display: grid; gap: 36px; justify-items: center; }
.maplens { position: relative; width: min(100%, 340px); aspect-ratio: 1; }
.maplens iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 50%; filter: grayscale(1) contrast(1.05) brightness(.95); }
.maplens { --d: 0px; }
.plate--map { --rot: 34deg; }
.maplens__credit { margin-top: -18px; font-size: .82rem; color: var(--velvet-ink-2); }

.callback {
  width: 100%; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 70px -40px rgba(0,0,0,.8);
}
.callback__title { font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 620; font-size: 1.35rem; letter-spacing: -0.015em; }
.callback__hint { margin-top: 6px; color: var(--ink-3); font-size: .96rem; }
.field { margin-top: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.opt { font-weight: 400; color: var(--ink-3); }
.field input {
  width: 100%; height: 50px; padding: 0 16px;
  font: 400 1rem var(--text); color: var(--ink);
  background: var(--white); border: 1px solid #C2C7CF; border-radius: 12px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input::placeholder { color: #737A85; }
.field input:hover { border-color: var(--chrome-lo); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(215, 38, 46, .22); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field__error { margin-top: 6px; color: var(--red-deep); font-size: .88rem; }
.callback .btn { margin-top: 24px; }
.callback__status { margin-top: 14px; font-size: .93rem; color: var(--ink-2); min-height: 1.4em; }

/* ---------- Footer ---------- */
.foot { background: #0C0D12; color: var(--velvet-ink-2); padding: 64px 0 120px; }
.foot__grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; align-items: start; }
.foot__name { margin-top: 18px; color: #fff; font-family: var(--display); font-variation-settings: "wdth" 115; font-weight: 640; font-size: 1.2rem; }
.foot__role { margin-top: 4px; font-size: .92rem; }
.foot__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.foot__nav a, .foot__meta a { text-decoration: none; color: var(--velvet-ink); }
.foot__nav a:hover, .foot__meta a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .2em; }
.foot__meta { display: grid; gap: 14px; font-size: .95rem; }
.foot__small { font-size: .82rem; color: #8B919C; }

/* Mobile call dock */
.dock {
  position: fixed; z-index: 40; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: center; gap: 10px;
  height: 54px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 14px 30px -10px rgba(14, 15, 18, .55);
  transform: translateY(140%); transition: transform var(--t-mid) var(--ease);
}
.dock.is-shown { transform: none; }

/* ---------- Focus-in reveals (JS adds .js on <html>) ---------- */
.js [data-focus] { transition: filter 1s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-focus]:not(.is-in) { filter: blur(10px); opacity: .35; transform: translateY(14px); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 18px; }
  .nav__links a { font-size: .9rem; }
  .track__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .track__rail { display: none; }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--white); box-shadow: 0 1px 0 var(--line), 0 6px 16px -10px rgba(14,15,18,.4);
  }
  .nav__bars, .nav__bars::before { display: block; width: 18px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform var(--t-mid) var(--ease); }
  .nav__bars { position: relative; transform: translateY(-3px); }
  .nav__bars::before { content: ""; position: absolute; top: 6px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { transform: rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(-6px) rotate(-90deg); }
  .menu:not([hidden]) {
    display: grid; gap: 4px; padding: 8px var(--gutter) 24px; background: var(--paper); box-shadow: 0 1px 0 var(--line);
    animation: focusIn var(--t-mid) var(--ease) both;
  }
  .menu a { text-decoration: none; font-family: var(--display); font-variation-settings: "wdth" 112; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.02em; padding: 8px 0; }
  .menu .menu__phone { margin-top: 10px; color: var(--red-deep); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
  .nav.is-open { background: var(--paper); }

  .case__grid, .visit__grid, .ages__head, .signs, .doctor__grid, .prices__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .case__panel { padding-top: 0; }
  .visit__media { position: relative; top: 0; }
  .visit__figure { aspect-ratio: 4 / 3; }
  .signs__figure { max-width: 420px; }
  .doctor__media { max-width: 560px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__meta { grid-column: 1 / -1; }
  .dock { display: flex; transform: none; }
  body { padding-bottom: 84px; }
  .foot { padding-bottom: 64px; }
  .hero__hint { display: none; }
  .hero { min-height: 0; display: block; background: var(--paper); }
  .hero__media { position: absolute; inset: 0 0 auto 0; height: 58svh; min-height: 400px; overflow: hidden; }
  .hero__blur, .hero__sharp { object-position: 70% 20%; }
  .hero__veil { background: linear-gradient(0deg, var(--paper) 0%, rgba(244,245,247,0) 30%); }
  .hero__content { padding: calc(max(58svh, 400px) + 8px) var(--gutter) 56px; }
  .hero__title { max-width: 14ch; }
  .hero__actions { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .age { padding: 0 0 0 34px; }
  .age::before { top: .3em; }
  .hero__title { font-size: clamp(2.3rem, 10.4vw, 3rem); }
  .hero__lead { margin-top: 16px; }
  .hero__actions { margin-top: 26px; }
  .lenses { grid-template-columns: 1fr; gap: 6px; }
  .lens { grid-template-columns: 62% 1fr; align-items: center; gap: 4px; }
  .lens__power { font-variation-settings: "wdth" 96; letter-spacing: 0; }
  .lens__name { font-size: 1rem; }
  .panel__cols, .prep__list { grid-template-columns: 1fr; }
  .track__list { grid-template-columns: 1fr; row-gap: 28px; }
  .contact__cols { grid-template-columns: 1fr; }
  .price { flex-direction: column; gap: 6px; }
  .foot__grid { grid-template-columns: 1fr; }
  .qa p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-focus]:not(.is-in) { filter: none; opacity: 1; transform: none; }
}

/* Callback form sits on paper inside the velvet section */
.contact .callback__title { color: var(--ink); font-size: 1.35rem; letter-spacing: -0.015em; margin: 0; }
.contact .callback__hint { color: var(--ink-3); }
.contact .callback__status { color: var(--ink-2); }
.contact .field__error { color: var(--red-deep); }

/* ---------- Callback states ---------- */
.callback { position: relative; }
.callback__form[hidden], .callback__done[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.chips { border: 0; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; padding: 0; margin-bottom: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--white); box-shadow: inset 0 0 0 1px #C2C7CF; font-size: .92rem; color: var(--ink-2);
  transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.chip:hover span { box-shadow: inset 0 0 0 1px var(--chrome-lo); }
.chip input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.consent { margin-top: 18px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .88rem; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 6px;
  background: var(--white); box-shadow: inset 0 0 0 1.5px #A9AFB8; cursor: pointer; display: grid; place-items: center;
  transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.check input::after {
  content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform var(--t-fast) var(--ease);
}
.check input:checked { background: var(--red); box-shadow: none; }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.check input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--red); }

.contact .callback__status[data-tone="error"] { color: var(--red-deep); }

/* Sending: the lens icon in the button focuses back and forth */
.callback.is-sending .callback__submit { cursor: progress; opacity: 1; }
.callback.is-sending .callback__submit::before { animation: lensFocus 900ms var(--ease) infinite alternate; }
@keyframes lensFocus { from { transform: scale(.82); opacity: .55; } to { transform: scale(1.08); opacity: 1; } }
.callback.is-sending input, .callback.is-sending .chip span { opacity: .6; }

/* Done */
.callback__done { text-align: center; padding: 10px 0 4px; }
.callback.is-done .callback__done { animation: focusIn var(--t-slow) var(--ease) both; }
.callback__lens { width: 120px; height: auto; margin: 0 auto 18px; transform: translateX(10%); }
.callback.is-done .callback__lens { animation: lensSeat 900ms var(--ease) both; }
@keyframes lensSeat { from { transform: translate(10%, -18px) rotate(-14deg); opacity: 0; } to { transform: translateX(10%); opacity: 1; } }
.callback__done .callback__title { outline: none; }
.contact .callback__thanks { margin: 12px auto 0; max-width: 34ch; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.callback__thanks strong { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.contact .callback__urgent { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .92rem; }
.contact .callback__urgent .link:hover { color: var(--red-deep); }
.callback__again {
  margin-top: 18px; border: 0; background: none; padding: 8px 4px; cursor: pointer;
  font: 600 .95rem var(--text); color: var(--ink); text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--red);
}
.callback__again:hover { color: var(--red-deep); }
@media (prefers-reduced-motion: reduce) {
  .callback.is-sending .callback__submit::before, .callback.is-done .callback__lens, .callback.is-done .callback__done { animation: none; }
}
/* Generic .field input rules must not reach the checkbox and chips */
.field .check { display: grid; margin: 0; font-weight: 400; font-size: .88rem; color: var(--ink-2); }
.field .check input { width: 22px; height: 22px; padding: 0; border: 0; }
.field .chip input { width: auto; height: auto; padding: 0; border: 0; }

/* Dock leads to the contact numbers; hidden once they are on screen */
.dock.is-away { transform: translateY(140%) !important; }
.contact__phone { transform-origin: left center; }
.contact__phone.is-flagged { animation: telFlag 1.6s var(--ease) .5s both; }
@keyframes telFlag {
  0%, 100% { transform: none; color: var(--velvet-ink); }
  30% { transform: scale(1.06); color: #fff; }
}
@media (prefers-reduced-motion: reduce) { .contact__phone { transform-origin: left center; }
.contact__phone.is-flagged { animation: none; } }
