/* ==========================================================================
   Elitoptic, static site styles (v2)
   Palette from the trade's materials: lens-clear chalk, stone, havana
   acetate (ink), honey acetate (accent), sage for the children's pages.
   Type: Noto Serif Display (display) + Jost (text, UI).
   No UI gradients, no rounded boxes. Pictures and type carry the page.
   ========================================================================== */

:root {
  --chalk: #F3F3EF;
  --stone: #E6E4DD;
  --titanium: #A8A69E;
  --graphite: #5C5851;
  --ink: #22170F;
  --honey: #B5782F;
  --sage: #D5DACB;
  --line: rgba(34, 23, 15, .16);
  --line-light: rgba(243, 243, 239, .18);

  --serif: "Noto Serif Display", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4.6vw, 72px);
  --pad: max(var(--gutter), calc((100vw - 1560px) / 2));
  --header-h: 64px;
  --section: clamp(96px, 13vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 960px) {
  :root { --header-h: 78px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; }

:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--chalk);
  text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Type ---------- */

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5.6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.lead {
  max-width: 40ch;
  font-size: clamp(1.06rem, 1.25vw, 1.18rem);
  color: var(--graphite);
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .85rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  font: 500 .95rem/1.15 var(--sans);
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--solid { background: var(--ink); color: var(--chalk); }
.btn--solid:hover { background: #3F2C1F; border-color: #3F2C1F; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--chalk); }
.btn--light { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.btn--light:hover { background: #FFFFFF; border-color: #FFFFFF; }

.link {
  display: inline-block;
  padding: .5rem 0;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .4em;
  transition: text-decoration-color .25s;
}
.link:hover { text-decoration-color: var(--honey); }

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(243, 243, 239, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled,
.menu-open .header { border-bottom-color: var(--line); }

.header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-inline: var(--pad);
}
.brand {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  text-decoration: none;
}

.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: clamp(1rem, 1.9vw, 2rem); }
.nav a {
  font-size: .93rem;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .3s var(--ease);
}
.nav a:hover { background-size: 100% 1px; }

.header__tools { display: flex; align-items: center; gap: 1rem; margin-left: auto; }

.lang { display: flex; align-items: center; }
.lang button {
  padding: .45rem .35rem;
  background: none;
  border: 0;
  color: var(--graphite);
  font-size: .88rem;
  letter-spacing: .04em;
  cursor: pointer;
}
.lang button + button::before {
  content: "/";
  display: inline-block;
  margin-right: .7rem;
  color: var(--titanium);
}
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 500; }

.burger {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 44px;
  padding: 0 0 0 .5rem;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: .92rem;
}
.burger__lines { position: relative; width: 22px; height: 8px; }
.burger__lines::before,
.burger__lines::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger__lines::before { top: 0; }
.burger__lines::after { top: 6.5px; }
.burger[aria-expanded="true"] .burger__lines::before { top: 3.25px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { top: 3.25px; transform: rotate(-45deg); }
@media (max-width: 380px) { .burger__label { display: none; } }

@media (min-width: 1180px) {
  .nav { display: block; }
  .header__tools { margin-left: clamp(1.5rem, 2.5vw, 3rem); }
  .burger { display: none; }
}

/* ---------- Mobile menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.5rem;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--chalk);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s var(--ease), visibility 0s linear .3s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.menu__links a {
  display: block;
  padding: .1em 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 8.4vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  text-decoration: none;
}
.menu__meta { display: grid; gap: .5rem; color: var(--graphite); }
.menu__meta a { text-decoration: none; }
.menu__meta strong { font-weight: 500; color: var(--ink); margin-right: .4rem; }
.lang--menu { margin-top: .8rem; margin-left: -.35rem; }
.lang--menu button { font-size: 1rem; letter-spacing: 0; }
@media (min-width: 1180px) { .menu { display: none; } }

/* ---------- Status line ---------- */

.status { font-size: .95rem; color: var(--graphite); }
.status::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: .6em;
  border-radius: 50%;
  background: var(--titanium);
  vertical-align: .1em;
}
.status.is-open::before { background: #5B7F52; }
.status:empty { display: none; }

/* ---------- Media (placeholders now, photographs later) ---------- */

.media {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}
.media > svg,
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media::after {
  /* fine grain so the drawn placeholders read closer to photographs */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .13 0 0 0 0 .09 0 0 0 0 .06 .7 0 0 0 -.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .26;
  mix-blend-mode: multiply;
}

.svg-optotype { font-family: var(--sans); font-weight: 500; fill: var(--ink); }
.svg-plate { font-family: var(--serif); font-size: 28px; fill: var(--ink); }

/* The one scroll motif: pictures come into focus as they arrive */
@media (prefers-reduced-motion: no-preference) {
  .js .media[data-focus] > svg,
  .js .media[data-focus] > img {
    filter: blur(14px);
    transform: scale(1.035);
    transition: filter 1.2s var(--ease), transform 1.5s var(--ease);
  }
  .js .media[data-focus].is-in > svg,
  .js .media[data-focus].is-in > img { filter: none; transform: none; }
}

/* ==========================================================================
   1. Hero
   ========================================================================== */

.hero {
  display: grid;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
.hero__title {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 7vw, 48px) var(--gutter) clamp(24px, 6vw, 40px);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.1rem, 14.2vw, 5.2rem);
  line-height: .92;
  letter-spacing: -.035em;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__title span + span { padding-left: .55em; }

.hero__media { aspect-ratio: 4 / 5; max-height: 78svh; width: 100%; }

.hero__bottom {
  display: grid;
  gap: 2rem;
  padding: clamp(28px, 7vw, 40px) var(--gutter) clamp(56px, 12vw, 80px);
}
.hero__lead { max-width: 36ch; font-size: 1.1rem; color: var(--graphite); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; }
.hero__places {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.hero__places a { display: grid; gap: .15rem; text-decoration: none; color: var(--graphite); font-size: .93rem; }
.hero__places a:hover .hero__district { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.hero__district { font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; color: var(--ink); }

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr auto;
    min-height: max(100svh, 720px);
    padding-top: 0;
  }
  .hero__media {
    grid-column: 2;
    grid-row: 1 / 4;
    aspect-ratio: auto;
    max-height: none;
    min-height: 0;
  }
  .hero__media > svg,
  .hero__media > img { position: absolute; inset: 0; }
  .hero__title {
    grid-column: 1;
    grid-row: 1;
    width: max-content;
    padding: calc(var(--header-h) + clamp(32px, 7vh, 96px)) 0 0 var(--pad);
    font-size: clamp(4.4rem, 8.1vw, 9.4rem);
  }
  .hero__bottom {
    grid-column: 1;
    grid-row: 3;
    padding: 2rem clamp(32px, 4vw, 64px) clamp(40px, 6vh, 64px) var(--pad);
  }
}

/* ==========================================================================
   2. Brand introduction
   ========================================================================== */

.intro {
  display: grid;
  gap: clamp(40px, 8vw, 64px);
  padding-block: var(--section) 0;
}
.intro__media { aspect-ratio: 4 / 5; width: 88%; }
.intro__text { display: grid; gap: 1.5rem; justify-items: start; padding-inline: var(--gutter); }
.intro__statement {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 3.3rem);
  line-height: 1.16;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.intro__body { max-width: 44ch; color: var(--graphite); }

@media (min-width: 960px) {
  .intro {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    column-gap: clamp(48px, 7vw, 128px);
  }
  .intro__media { width: 100%; }
  .intro__text { padding: 0 var(--pad) 0 0; }
}

/* ==========================================================================
   3. Eyewear & style
   ========================================================================== */

.eyewear { padding-block: var(--section); }

.eyewear__top { display: grid; gap: clamp(40px, 8vw, 64px); }
.eyewear__head {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding-inline: var(--gutter);
}
.eyewear__media { aspect-ratio: 4 / 5; width: 88%; justify-self: end; }

@media (min-width: 960px) {
  .eyewear__top {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: end;
    column-gap: clamp(48px, 7vw, 128px);
  }
  .eyewear__head { padding: 0 0 clamp(24px, 4vw, 64px) var(--pad); }
  .eyewear__media { width: 100%; aspect-ratio: 5 / 6; }
}

.traits {
  display: grid;
  gap: 2rem;
  margin-top: clamp(64px, 9vw, 128px);
  padding-inline: var(--pad);
}
.traits > div { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.traits dt {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.15;
}
.traits dd { margin-top: .5rem; color: var(--graphite); font-size: 1rem; max-width: 34ch; }
@media (min-width: 640px) { .traits { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
@media (min-width: 1100px) { .traits { grid-template-columns: repeat(4, 1fr); } }

.lineup {
  margin-top: clamp(80px, 10vw, 150px);
  padding-block: clamp(40px, 5vw, 72px);
  background: var(--stone);
}
.lineup__label { padding-inline: var(--pad); font-size: .92rem; color: var(--graphite); }
.lineup__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 58%);
  gap: 24px;
  margin-top: 2rem;
  padding-inline: var(--pad);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.lineup__list::-webkit-scrollbar { display: none; }
.lineup__list li { scroll-snap-align: start; }
.lineup__list svg { width: 100%; height: auto; overflow: visible; }
.lineup__list span { display: block; margin-top: 1rem; font-size: .95rem; }
@media (min-width: 900px) {
  .lineup__list {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 56px);
    overflow: visible;
  }
}

/* ==========================================================================
   4. Services
   ========================================================================== */

.services { padding: var(--section) var(--pad); border-top: 1px solid var(--line); }

.services__head { display: grid; gap: 1.25rem; margin-bottom: clamp(48px, 7vw, 96px); }
@media (min-width: 960px) {
  .services__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: end;
  }
  .services__head .h2 { grid-column: 1 / span 8; }
  .services__head .lead { grid-column: 9 / span 4; }
}

.services__body { display: grid; gap: 40px; }
.svc-stage { display: none; position: relative; }
.svc-stage__fig { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.svc-stage__fig.is-active { opacity: 1; }

@media (min-width: 960px) {
  .services__body {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 6vw, 112px);
    align-items: start;
  }
  .svc-stage { display: block; position: sticky; top: calc(var(--header-h) + 32px); aspect-ratio: 5 / 6; }
}

.svc__group { padding-bottom: .9rem; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--graphite); }
.svc__link {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: .4rem;
  padding: clamp(1.25rem, 2.2vw, 1.8rem) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.svc__num { padding-top: .6em; font-size: .9rem; color: var(--graphite); font-variant-numeric: tabular-nums; }
.svc__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.7rem, 2.9vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  transition: opacity .35s var(--ease);
}
.svc__desc { grid-column: 2; max-width: 48ch; color: var(--graphite); }
.svc__list--more { margin-top: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line); }
@media (hover: hover) and (min-width: 960px) {
  .svc:hover .svc__title { opacity: .4; }
  .svc .svc__link:hover .svc__title,
  .svc .svc__link:focus-visible .svc__title { opacity: 1; }
}
.svc__extra { margin-top: 2rem; max-width: 52ch; color: var(--graphite); }

/* ==========================================================================
   5. Vision examination (with the interactive chart)
   ========================================================================== */

.exam {
  padding: var(--section) var(--pad);
  background: var(--ink);
  color: var(--chalk);
}
.exam .lead { color: rgba(243, 243, 239, .76); }
.exam__grid { display: grid; gap: 48px; }
.exam__text { display: grid; gap: 1.5rem; align-content: center; }

@media (min-width: 960px) {
  .exam__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(48px, 7vw, 128px);
    align-items: center;
  }
}

.chart {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #EDECE7;
  container-type: inline-size;
  touch-action: pan-y;
  --lx: 36%; --rx: 64%; --ly: 48%; --r: 60px;
}
@media (min-width: 960px) { .chart { aspect-ratio: 5 / 6; } }

.chart__rows {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8cqi;
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
}
@media (min-width: 960px) { .chart__rows { gap: 2.3cqi; } }
.chart__rows p { font-size: calc(var(--s) * 1cqi); letter-spacing: .5em; padding-left: .5em; }
.chart__rows--sharp { display: none; }
.js .chart__rows--blur { filter: blur(3.6px); opacity: .8; }
.js .chart__rows--sharp {
  display: flex;
  -webkit-mask-image:
    radial-gradient(circle var(--r) at var(--lx) var(--ly), #000 97%, transparent 100%),
    radial-gradient(circle var(--r) at var(--rx) var(--ly), #000 97%, transparent 100%);
  mask-image:
    radial-gradient(circle var(--r) at var(--lx) var(--ly), #000 97%, transparent 100%),
    radial-gradient(circle var(--r) at var(--rx) var(--ly), #000 97%, transparent 100%);
}
.chart__glasses {
  position: absolute;
  left: 0; top: 0;
  width: 72%;
  height: auto;
  overflow: visible;
  pointer-events: none;
  will-change: transform;
}
html:not(.js) .chart__glasses { left: 14%; top: 36%; }
.js .chart__glasses { opacity: 0; transition: opacity .9s var(--ease); }
.js .chart.is-ready .chart__glasses { opacity: 1; }
.chart__hint { margin-top: .9rem; font-size: .88rem; color: rgba(243, 243, 239, .62); }
html:not(.js) .chart__hint { display: none; }

.steps { margin-top: .5rem; border-top: 1px solid var(--line-light); }
.steps li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: .3rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line-light);
}
.steps__n { padding-top: .45em; font-size: .9rem; color: rgba(243, 243, 239, .6); }
.steps h3 { font-family: var(--serif); font-weight: 300; font-size: 1.6rem; line-height: 1.15; }
.steps p { grid-column: 2; color: rgba(243, 243, 239, .74); }

.exam__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1rem; }
.exam__phone { color: rgba(243, 243, 239, .74); }
.exam__phone a { color: var(--chalk); text-decoration: underline; text-underline-offset: .3em; white-space: nowrap; }

/* ==========================================================================
   6. Children
   ========================================================================== */

.kids { padding-block: var(--section) 0; }
.kids__media { aspect-ratio: 4 / 3; }
@media (min-width: 700px) { .kids__media { aspect-ratio: 16 / 7; } }
.kids__text {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  padding: clamp(40px, 6vw, 72px) var(--pad) 0;
}
@media (min-width: 960px) {
  .kids__text {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: start;
  }
  .kids__text .h2 { grid-column: 1 / span 5; }
  .kids__text .lead { grid-column: 7 / span 5; }
  .kids__text .link { grid-column: 7 / span 5; }
}

/* ==========================================================================
   7. Why Elitoptic
   ========================================================================== */

.why {
  display: grid;
  gap: 2.5rem 24px;
  padding: var(--section) var(--pad);
}
.why__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(7rem, 22vw, 15rem);
  line-height: .8;
  letter-spacing: -.05em;
  font-variant-numeric: lining-nums;
}
.why__caption { margin-top: 1rem; max-width: 26ch; font-size: 1.1rem; }
.why__item { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.why__item h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; }
.why__item p { margin-top: .5rem; max-width: 36ch; color: var(--graphite); }

@media (min-width: 700px) {
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__title { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .why { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: clamp(56px, 6vw, 96px); }
  .why__title { grid-column: 1 / span 4; grid-row: 1; }
  .why__figure:nth-of-type(1) { grid-column: 5 / span 4; grid-row: 1; }
  .why__figure:nth-of-type(2) { grid-column: 9 / span 4; grid-row: 1; }
  .why__item:nth-of-type(3) { grid-column: 5 / span 4; grid-row: 2; }
  .why__item:nth-of-type(4) { grid-column: 9 / span 4; grid-row: 2; }
}

/* ==========================================================================
   8. Locations
   ========================================================================== */

.locations {
  padding: var(--section) var(--pad);
  background: var(--stone);
}
.locations__head { display: grid; gap: 1.25rem; margin-bottom: clamp(56px, 8vw, 120px); }
@media (min-width: 960px) {
  .locations__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: end;
  }
  .locations__head .h2 { grid-column: 1 / span 8; }
  .locations__head .lead { grid-column: 9 / span 4; }
}

.locations__grid { display: grid; gap: clamp(88px, 14vw, 120px); }
@media (min-width: 720px) {
  .locations__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(56px, 8vw, 144px);
    align-items: start;
  }
  .place--offset { margin-top: clamp(96px, 14vw, 220px); }
}

.place { min-width: 0; container-type: inline-size; }
.place__media { position: relative; }
.place__photo { aspect-ratio: 4 / 5; }
.place__inset { display: none; }
@media (min-width: 600px) {
  .place__inset {
    display: block;
    position: absolute;
    top: 46%;
    left: -5%;
    width: 42%;
    aspect-ratio: 5 / 4;
    box-shadow: 0 0 0 10px var(--stone);
  }
  .place--offset .place__inset { left: auto; right: -5%; }
}

.place__district {
  position: relative;
  z-index: 1;
  margin-top: -.42em;
  padding-left: .03em;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4.2rem, 10vw, 9.4rem);
  line-height: .9;
  letter-spacing: -.045em;
}
/* Longer district name in Russian: scale to the column so it never spills */
html[lang="ru"] .place__district { font-size: min(clamp(4rem, 10vw, 9.4rem), 18.5cqi); }
.place__name { margin-top: .75rem; font-size: 1rem; font-weight: 500; }

.place__info {
  display: grid;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
/* Info layout follows the width of each store column, not the viewport */
@container (min-width: 420px) {
  .place__info { grid-template-columns: 1fr 1fr; }
  .place__hours { grid-column: 1 / -1; }
}
@container (min-width: 560px) {
  .place__info { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .place__hours { grid-column: 2; grid-row: 1 / span 2; }
}
.place__label { font-size: .88rem; color: var(--graphite); }
.place__value { margin-top: .3rem; font-size: 1.08rem; }
.place__tel { font-family: var(--serif); font-size: 1.45rem; text-decoration: none; white-space: nowrap; }
.place__tel:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

.hours { width: 100%; max-width: 400px; margin-top: .2rem; }
.hours th,
.hours td {
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
  vertical-align: baseline;
}
.hours td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours tr.is-today th,
.hours tr.is-today td { font-weight: 500; }
.hours .today-tag { margin-left: .5em; font-size: .8rem; font-weight: 400; color: var(--graphite); }
.place__hours .status { margin-top: .8rem; }

.place__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
@media (max-width: 599px) {
  /* Phones: directions full width, secondary actions share one row */
  .place__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .place__actions .btn { justify-content: center; text-align: center; }
  .place__actions .btn:first-child,
  .place__actions .btn:nth-child(2):last-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   9. Visit / appointment
   ========================================================================== */

.contact { display: grid; gap: 2.5rem; padding: var(--section) var(--pad); }
.contact__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 12.5vw, 9.6rem);
  line-height: .92;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.contact__body { display: grid; gap: 1.75rem; justify-items: start; }
.contact__phone {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  white-space: nowrap;
}
.contact__phone:hover { border-bottom-color: var(--honey); }
.contact__note { margin-top: .5rem; font-size: .9rem; color: var(--graphite); }
.contact__places {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--graphite);
}
.contact__places > div { min-width: 0; }
@media (max-width: 479px) { .contact__places { grid-template-columns: 1fr; } }
.contact__district { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; color: var(--ink); }
@media (min-width: 960px) {
  .contact {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
    align-items: end;
  }
  .contact__title { grid-column: 1 / span 7; }
  .contact__body { grid-column: 8 / span 5; }
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

.footer {
  padding: clamp(64px, 8vw, 112px) var(--pad) calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--ink);
  color: var(--chalk);
}
.footer__brand {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.6rem, 15vw, 13rem);
  line-height: .85;
  letter-spacing: -.045em;
}
.footer__tagline { margin-top: min(max(1.25rem, 3.8vw), 3.4rem); color: rgba(243, 243, 239, .7); }
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem 2rem;
  margin-top: clamp(48px, 6vw, 88px);
  font-size: .98rem;
}
.footer__h { margin-bottom: .9rem; font-size: .88rem; font-weight: 400; color: rgba(243, 243, 239, .6); }
.footer__sub { color: rgba(243, 243, 239, .7); }
.footer ul { display: grid; gap: .05rem; }
.footer ul a { display: inline-block; padding: .2rem 0; }
.footer p + p { margin-top: .6rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.hours--footer { max-width: 260px; }
.hours--footer th,
.hours--footer td { padding: .28rem 0; border: 0; }
.lang--footer { margin-left: -.35rem; }
.lang--footer button { color: rgba(243, 243, 239, .6); font-size: .98rem; letter-spacing: 0; }
.lang--footer button[aria-pressed="true"] { color: var(--chalk); }
.lang--footer button + button::before { color: rgba(243, 243, 239, .3); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-light);
  font-size: .85rem;
  color: rgba(243, 243, 239, .6);
}

/* ==========================================================================
   Sticky bar (phones)
   ========================================================================== */

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(243, 243, 239, .95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .4s var(--ease);
}
.dock.is-visible { transform: none; }
.dock__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 50px;
  padding: 0 .75rem;
  border: 1px solid var(--ink);
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.dock__btn span { overflow: hidden; text-overflow: ellipsis; }
.dock__btn--solid { background: var(--ink); color: var(--chalk); }
.dock__btn svg { flex: none; }
@media (min-width: 960px) { .dock { display: none; } }
@media (max-width: 959px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Print ---------- */

@media print {
  .header, .menu, .dock, .chart, .chart__hint, .svc-stage { display: none !important; }
  body { background: #fff; }
}
