/* Hallmark · custom (brand: MT WASH, colours sampled from owner photos 2026-11-18) · genre atmospheric · job: visit · signature: wash this screen, the bay's five programs clean the glass · deal: custom */
/* critique: one idea per screen; real photos and facts only; the +10% offer set huge because it is the offer */
/* waive 47b: Instagram stills are stand-ins until the owner sends originals */
/* answered F-motion: canvas foam and drops are the one moving material; sections fade up once */
/* answered F15: two-column sections share one 48px gap; tile and photo grids use 24px as item grids, not columns */
/* answered F7: every pill is a control (skip link, language switch and its options, program buttons) */

@font-face { font-family: "Unbounded"; src: url("/assets/unbounded-cyrillic-e30bf6a606.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; src: url("/assets/unbounded-latin-22f9b928aa.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Manrope"; src: url("/assets/manrope-cyrillic-c268b459a9.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("/assets/manrope-latin-a30ddcd349.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  /* Sampled: graphite cladding #1c2831, foam #db49d1/#ec5bdb, sign violet #170247, logo blue #2e71c6. */
  --graphite-950: #0d1117;
  --graphite-900: #141b23;
  --graphite-800: #1c2831;
  --graphite-600: #46505d;
  --graphite-300: #b9c0ca;
  --foam-500: #db49d1;
  --foam-400: #ec5bdb;
  --foam-200: #f7c4f0;
  --foam-700: #a3239a;
  --violet-950: #170247;
  --blue-500: #2e71c6;
  --blue-300: #8fb8ff;
  --red-400: #ff8a8a;
  --red-700: #b42318;
  --white: #fdfaff;
  --paper: #f5f3f8;
  --grime: #6b6157;
  /* Logo sign (sampled #5b7196 / #964479 on an overcast photo, brought back to sign saturation). */
  --logo-blue: #2d4f9e;
  --logo-blue-light: #8fa9f0;
  --logo-pink: #c2307a;
  --logo-pink-light: #f07ab8;
  --logo-disc: #fdfaff;
  /* Water and foam materials (from the owner's references: clear drop on sky, glossy pink foam). */
  --water-deep: #0b3a8c;
  --water-light: #cfe6ff;
  --foam-100: #ffe3fa;
  /* Payment acceptance marks (Visa from simple-icons CC0; Mastercard circles in the official colours). */
  --visa-blue: #1a1f71;
  --mc-red: #eb001b;
  --mc-yellow: #f79e1b;
  --mc-orange: #ff5f00;

  --bg: var(--graphite-950);
  --bg-alt: var(--graphite-900);
  --surface: var(--graphite-900);
  --panel: var(--graphite-800);
  --ink: #f3f1f6;
  --ink-soft: #d6dbe2;
  --brand-mt: var(--logo-blue-light);
  --brand-wash: var(--logo-pink-light);
  --line: #2c3540;
  --line-strong: #6b7684;
  --accent: var(--foam-400);
  --accent-ink: #1a0418;
  --focus: var(--blue-300);
  --error: var(--red-400);
  --photo-dim: .5;
  --veil: var(--graphite-950);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-control: 999px;
  --radius-panel: 28px;
  --radius-media: 20px;
  --container: 1280px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: var(--paper);
  --bg-alt: var(--white);
  --surface: var(--white);
  --panel: var(--white);
  --ink: #15121c;
  --ink-soft: #322d3c;
  --brand-mt: var(--logo-blue);
  --brand-wash: var(--logo-pink);
  --line: #d8d2e0;
  --line-strong: #857d92;
  --accent: var(--foam-700);
  --accent-ink: var(--white);
  --focus: var(--blue-500);
  --error: var(--red-700);
  --photo-dim: .72;
  --veil: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: var(--space-6); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
a { color: var(--accent); }
h1, h2, h3 { overflow-wrap: break-word; min-width: 0; text-wrap: balance; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 3px; transition: none;
}
.skip {
  position: absolute; left: var(--space-4); top: var(--space-4); z-index: 50;
  padding: var(--space-3) var(--space-4); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-control); transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* ── Hero: the glass ───────────────────────────────────────── */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
/* The glass dissolves softly into the next section instead of ending on a hard edge. */
.stage {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, var(--graphite-950) 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, var(--graphite-950) 72%, transparent 100%);
}
.stage .photo {
  position: absolute; inset: 0 0 0 auto; width: min(64%, 920px); height: 100%;
  object-fit: cover; object-position: 50% 30%;
  filter: brightness(var(--photo-dim)) saturate(.85) blur(3px);
  transform: scale(1.04);
  transition: filter .9s var(--ease-out);
}
.stage .photo.is-foamed { filter: brightness(calc(var(--photo-dim) + .04)) saturate(.95) blur(1.8px); }
.stage .photo.is-rinsed { filter: brightness(var(--photo-dim)) saturate(1) blur(1px); }
.stage .photo.is-waxed { filter: brightness(calc(var(--photo-dim) + .08)) saturate(1.25) blur(.5px); }
.stage .photo.is-clear { filter: brightness(calc(var(--photo-dim) + .1)) saturate(1.2) blur(0); }
.stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--veil) 0%, color-mix(in oklch, var(--veil) 88%, transparent) 38%, color-mix(in oklch, var(--veil) 10%, transparent) 72%, transparent 100%);
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
/* Foam bubbles melt into one glossy mass through the goo filter (blur + alpha threshold). */
.stage .layer-foam { z-index: 2; filter: url(#goo); }
.stage .layer-fx { z-index: 3; }
.stage .defs { position: absolute; width: 0; height: 0; }
.sheen {
  position: absolute; inset: -10% 0; z-index: 4; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, color-mix(in oklch, var(--white) 32%, transparent) 50%, transparent 62%);
  transform: translateX(-110%);
}

/* ── Chrome ────────────────────────────────────────────────── */
.wrap { width: min(100% - 2 * clamp(16px, 5vw, 64px), var(--container)); margin-inline: auto; }
.nav { display: flex; align-items: center; gap: var(--space-6); padding-block: var(--space-4); }
/* Brand: round sign + name in the sign's two colours, slanted like the lettering on the building. */
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; flex: none; }
.brand-mark { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 2px 6px color-mix(in oklch, var(--graphite-950) 40%, transparent)); }
.brand-mark .lm-disc { fill: var(--logo-disc); }
.brand-mark .lm-ring { stroke: var(--logo-pink); }
.brand-mark text { font-family: var(--font-display); font-weight: 900; transform: skewX(-10deg); transform-origin: 24px 24px; }
.brand-mark .lm-mt { fill: var(--logo-blue); font-size: 17px; letter-spacing: -1px; }
.brand-mark .lm-wash { fill: var(--logo-pink); font-size: 10px; }
.brand-name { display: inline-flex; align-items: baseline; gap: var(--space-1); font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1; white-space: nowrap; transform: skewX(-8deg); }
.bn-mt { color: var(--brand-mt); letter-spacing: -1px; }
.bn-wash { color: var(--brand-wash); }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-mark { transition: transform .4s var(--ease-out); }
.nav ul { display: flex; gap: var(--space-6); list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav ul a { color: var(--ink-soft); text-decoration: none; font-size: 15px; padding-block: var(--space-3); }
.nav ul a:hover { color: var(--ink); }

/* Language: segmented UA | EN pill. The highlight sits under the current language and slides
   toward the other one on hover (Kokonut morphic-navbar idea, CSS only). */
.langs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; flex: none;
  padding: var(--space-1); border: 1px solid var(--line); border-radius: var(--radius-control);
  background: color-mix(in oklch, var(--bg) 70%, transparent); backdrop-filter: blur(8px);
}
.langs a {
  position: relative; z-index: 1; display: grid; place-items: center;
  min-width: 44px; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-control);
  font-family: var(--font-display); font-weight: 600; font-size: 13px; text-decoration: none;
  color: var(--ink-soft); transition: color .25s var(--ease-out);
}
.langs a.is-current { color: var(--accent-ink); }
.langs a:not(.is-current):hover { color: var(--ink); }
.langs .pill {
  position: absolute; top: var(--space-1); bottom: var(--space-1); left: var(--space-1);
  width: calc(50% - var(--space-1)); border-radius: var(--radius-control); background: var(--accent);
  transition: transform .35s var(--ease-out), background-color .25s var(--ease-out);
}
.langs:has(a:last-child.is-current) .pill { transform: translateX(100%); }
.langs:has(a:last-child:not(.is-current):hover) .pill { transform: translateX(14%); background: var(--foam-200); }
.langs:has(a:first-child:not(.is-current):hover) .pill { transform: translateX(86%); background: var(--foam-200); }
.langs:has(a:not(.is-current):hover) a.is-current { color: var(--violet-950); }

/* Theme: a switch track with stars at night; the knob carries a sun that folds into a moon. */
.theme-switch {
  position: relative; flex: none; width: 72px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-control); cursor: pointer;
  background: transparent; color: var(--ink);
}
.theme-switch .track {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background: var(--violet-950);
  transition: opacity .4s var(--ease-out);
}
.theme-switch .stars {
  position: absolute; width: 2px; height: 2px; left: 14px; top: 10px; border-radius: 50%;
  background: var(--white);
  box-shadow: 10px 12px 0 var(--white), 22px 3px 0 0 var(--foam-200), 4px 20px 0 var(--white), 30px 16px 0 var(--white);
  transition: transform .6s var(--ease-out);
}
.theme-switch .knob {
  position: absolute; top: 4px; left: 4px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--graphite-900); color: var(--foam-200);
  box-shadow: 0 2px 8px color-mix(in oklch, var(--graphite-950) 50%, transparent);
  transform: translateX(28px);
  transition: transform .5s var(--ease-out), background-color .4s var(--ease-out), color .4s var(--ease-out);
}
.theme-switch svg { width: 20px; height: 20px; overflow: visible; }
.theme-switch .bite { transition: transform .5s var(--ease-out); }
.theme-switch .rays { transform-box: fill-box; transform-origin: center; transform: scale(0) rotate(-90deg); transition: transform .5s var(--ease-out); }
.theme-switch .disc { transform-box: fill-box; transform-origin: center; transform: scale(1.5); transition: transform .5s var(--ease-out); }
.theme-switch:hover .knob { box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 35%, transparent); }
.theme-switch:active .knob { scale: .92; }
.theme-switch:disabled { opacity: .5; cursor: not-allowed; }
html:not(.js) .theme-switch { display: none; }

[data-theme="light"] .theme-switch .track { background: linear-gradient(135deg, var(--foam-200), var(--paper)); }
[data-theme="light"] .theme-switch .stars { transform: translateY(8px) scale(0); }
[data-theme="light"] .theme-switch .knob { transform: translateX(0); background: var(--white); color: var(--foam-700); }
[data-theme="light"] .theme-switch .bite { transform: translate(10px, -10px); }
[data-theme="light"] .theme-switch .rays { transform: scale(1) rotate(0deg); }
[data-theme="light"] .theme-switch .disc { transform: scale(1); }

/* ── Hero copy and board ───────────────────────────────────── */
.main { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: center; padding-block: var(--space-8); }
.copy { display: grid; gap: var(--space-6); justify-items: start; }
.head { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: clamp(44px, 7.2vw, 108px); line-height: .98; margin: 0; }
.head .line { display: block; }
/* Foam slides behind the text; a soft halo in the background colour keeps letters readable on it. */
.head, .lede, .clock, .brand-name {
  text-shadow: 0 0 1px var(--veil), 0 1px 3px var(--veil), 0 2px 18px color-mix(in oklch, var(--veil) 85%, transparent);
}
.head .pink { color: var(--accent); }
.lede { font-size: clamp(20px, 1.7vw, 25px); font-weight: 600; line-height: 1.45; color: var(--ink); margin: 0; max-width: 34ch; }
.lede .hl { color: var(--accent); font-weight: 800; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 56px; padding: 0 var(--space-8); border-radius: var(--radius-control);
  font-family: var(--font-body); font-weight: 800; font-size: 17px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--foam-200); color: var(--violet-950); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: color-mix(in oklch, var(--bg) 60%, transparent); }
.btn-ghost:hover { border-color: var(--accent); }
.btn:active { filter: brightness(.95); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex: none; }

.board {
  justify-self: end; width: min(100%, 380px);
  background: color-mix(in oklch, var(--panel) 86%, transparent);
  border: 1px solid var(--line); border-radius: var(--radius-panel);
  padding: var(--space-6); backdrop-filter: blur(10px);
}
.board h2 { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink-soft); margin: 0 0 var(--space-4); }
.board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.prog {
  width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: var(--space-4);
  min-height: 56px; padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1);
  background: transparent; border: 1px solid transparent; border-radius: var(--radius-control);
  color: var(--ink); text-align: left; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.n {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 2px solid var(--accent); color: var(--accent); font-family: var(--font-display); font-weight: 600; font-size: 18px;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.prog:hover { border-color: var(--line); }
.prog[aria-pressed="true"] { background: color-mix(in oklch, var(--accent) 14%, transparent); border-color: var(--accent); }
.prog[aria-pressed="true"] .n { background: var(--accent); color: var(--accent-ink); }
.prog:disabled { opacity: .5; cursor: not-allowed; }
.status { min-height: 3.2em; margin: var(--space-4) 0 0; font-size: 16px; font-weight: 600; color: var(--ink); }

.strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); padding-block: var(--space-6) var(--space-8); border-top: 1px solid var(--line); }
.clock { display: flex; align-items: center; gap: var(--space-3); font-size: 15px; color: var(--ink-soft); margin: 0; }
.flaps { display: inline-flex; gap: var(--space-1); perspective: 400px; }
.flap {
  display: inline-grid; place-items: center; min-width: 30px; height: 40px; padding: 0 var(--space-1);
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink);
}
.flap.sep { min-width: 12px; background: transparent; border: 0; }
.open { color: var(--accent); font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.facts > li {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 17px; font-weight: 700; color: var(--ink);
  min-height: 48px; padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  background: color-mix(in oklch, var(--bg) 60%, transparent); backdrop-filter: blur(10px);
  border: 1px solid color-mix(in oklch, var(--accent) 40%, var(--line)); border-radius: var(--radius-control);
}
.facts > li > svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding-block: var(--space-24); }
.section:nth-of-type(even) { background: var(--bg-alt); }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.05; margin: 0 0 var(--space-4); }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.2; margin: var(--space-8) 0 var(--space-2); }

.how-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: var(--space-12); align-items: center; }
.steps { list-style: none; padding: 0; margin: var(--space-8) 0; display: grid; gap: var(--space-4); }
.steps li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.steps h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: var(--space-1) 0 0; }
.steps p { margin: 0; color: var(--ink); font-size: 18px; }
.pay { margin: 0; padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-panel); background: color-mix(in oklch, var(--panel) 70%, transparent); }
.pay h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 0 0 var(--space-2); }
.pay p { margin: 0 0 var(--space-4); font-size: 19px; font-weight: 500; color: var(--ink); }

/* Payment badges: light plates like acceptance stickers, readable on both themes. */
.pay-icons { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.pay-badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 44px; min-width: 64px; padding: 0 var(--space-3); justify-content: center;
  background: var(--logo-disc); border: 1px solid var(--line); border-radius: 10px;
  color: var(--violet-950); font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 14px -8px var(--graphite-950);
}
.pay-badge svg { height: 24px; width: auto; }
.pi-visa { fill: var(--visa-blue); height: 18px; }
.mc-r { fill: var(--mc-red); }
.mc-y { fill: var(--mc-yellow); }
.mc-o { fill: var(--mc-orange); }
.pi-ink { color: var(--violet-950); }
.pay-icons.mini { gap: var(--space-1); margin-left: var(--space-1); }
.pay-icons.mini .pay-badge { min-height: 28px; min-width: 38px; padding: 0 var(--space-1); border-radius: 6px; box-shadow: none; }
.pay-icons.mini svg { height: 16px; }
.pay-icons.mini .pi-visa { height: 11px; }
.how-photo { justify-self: center; width: min(100%, 280px); }
.how-photo img { border-radius: var(--radius-media); width: 100%; }

.after .lede { margin-bottom: var(--space-12); }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.tile { padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--bg); }
.tile svg { width: 36px; height: 36px; color: var(--accent); }
.tile h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: var(--space-4) 0 var(--space-2); }
.tile p { margin: 0; color: var(--ink-soft); }

.card-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.big { margin: var(--space-6) 0; font-size: 22px; color: var(--ink-soft); line-height: 1.2; }
.big span { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(88px, 14vw, 200px); line-height: .9; color: var(--accent); }
.terms { padding-left: var(--space-6); margin: 0 0 var(--space-6); }
.terms li { margin-block: var(--space-2); }
.how-get { color: var(--ink); font-weight: 600; font-size: 18px; margin: 0; max-width: 46ch; }

.form { display: grid; gap: var(--space-4); padding: var(--space-8); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-panel); }
.form h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: 0; }
.field { display: grid; gap: var(--space-1); }
.field label { font-weight: 600; }
.field input[type="text"], .field input[type="tel"] {
  min-height: 52px; padding: 0 var(--space-4); border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink);
  transition: border-color .2s var(--ease-out);
}
.field input:hover { border-color: var(--graphite-600); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field input:disabled { background: var(--bg-alt); color: var(--ink-soft); border-style: dashed; cursor: not-allowed; }
.check { grid-template-columns: 24px minmax(0, 1fr); align-items: start; column-gap: var(--space-3); }
.check { min-height: 44px; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--accent); }
.check label { font-weight: 600; font-size: 16px; color: var(--ink); }
.check label a { font-weight: 700; }
.check .err { grid-column: 2; }
.hint { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.err, .form-error { margin: 0; font-size: 15px; color: var(--error); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

.gallery { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
/* Every small photo has the same box and every caption reserves two lines, so rows line up. */
.gallery li:first-child { grid-row: span 2; }
.gallery figure { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-media); }
.gallery li:first-child img { height: 100%; aspect-ratio: auto; }
.gallery figcaption { min-height: calc(2lh + var(--space-2)); }
figcaption { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--ink); margin-top: var(--space-3); }

.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-12); }
.qa details { border-bottom: 1px solid var(--line); border-left: 4px solid transparent; padding-inline: var(--space-4); border-radius: 0 16px 16px 0; transition: background-color .25s var(--ease-out), border-color .25s var(--ease-out); }
.qa details[open] { background: color-mix(in oklch, var(--accent) 9%, transparent); border-left-color: var(--accent); }
.qa summary {
  cursor: pointer; list-style: none; padding: var(--space-6) var(--space-12) var(--space-6) 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.8vw, 24px);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--accent); transition: rotate .2s var(--ease-out);
}
.qa details[open] summary::after { rotate: 45deg; }
.qa .answer { padding-bottom: var(--space-6); display: grid; gap: var(--space-4); }
.qa .answer p { margin: 0; font-size: 19px; font-weight: 500; line-height: 1.55; color: var(--ink); max-width: 60ch; }

.contacts-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: stretch; }
.addr { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 36px); line-height: 1.15; margin: var(--space-6) 0 var(--space-2); }
.hours { color: var(--accent); font-weight: 700; margin: 0 0 var(--space-4); }
.contacts .actions { margin-top: var(--space-6); }
.links { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-3); }
.links .btn { min-height: 48px; padding: 0 var(--space-6); font-size: 15px; }
.map {
  min-height: 360px; border-radius: var(--radius-panel); border: 1px solid var(--line); background: var(--panel);
  display: grid; place-content: center; justify-items: center; gap: var(--space-3); padding: var(--space-6); text-align: center; overflow: hidden;
}
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map.is-loaded { padding: 0; display: block; position: relative; }
/* Route button sits on the map, bottom centre. */
.map-route {
  position: absolute; left: 50%; bottom: var(--space-12); translate: -50% 0;
  box-shadow: 0 12px 30px -10px var(--graphite-950);
  white-space: nowrap;
}

.footer { padding-block: var(--space-12); border-top: 1px solid var(--line); }
.footer-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-12); align-items: start; }
.footer p { margin: 0; color: var(--ink); font-weight: 600; font-size: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.footer-links a { color: var(--ink); font-size: 17px; font-weight: 600; }
.fine { font-size: 15px; font-weight: 600; color: var(--ink-soft); grid-column: 1 / -1; }

/* Inner pages */
.inner .nav { border-bottom: 1px solid var(--line); }
.page { padding-block: var(--space-12) var(--space-24); max-width: 760px; min-height: 60svh; }
.page-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 7vw, 64px); hyphens: auto; overflow-wrap: normal; line-height: 1.02; margin: var(--space-6) 0; }
.page .lede { margin-bottom: var(--space-8); }
.page p { color: var(--ink-soft); }
.also { margin-top: var(--space-16); padding-top: var(--space-8); border-top: 1px solid var(--line); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: 0; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: var(--space-2); color: var(--line); }
.crumbs a { color: var(--ink-soft); }

/* ── Instagram button: bottom right, a soft pulse ring ───── */
.ig-fab {
  position: fixed; right: var(--space-6); bottom: var(--space-6); z-index: 25;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 22px -10px var(--graphite-950);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out), background-color .25s var(--ease-out);
}
.ig-fab svg { width: 28px; height: 28px; }
.ig-fab::before, .ig-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent);
  animation: ig-pulse 2.4s var(--ease-out) 3; pointer-events: none;
}
.ig-fab::after { animation-delay: 1.2s; }
.ig-fab:hover { transform: scale(1.08); background: var(--foam-200); color: var(--violet-950); }
.ig-fab:active { transform: scale(.96); }
.ig-fab:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
@media (min-width: 961px) {
  .ig-fab.is-tucked { transform: scale(.4); opacity: 0; pointer-events: none; }
}
@keyframes ig-pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ── Mobile dock ───────────────────────────────────────────── */
.dock {
  display: none; position: fixed; inset: auto 0 0 0; z-index: 20;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: color-mix(in oklch, var(--surface) 92%, transparent); border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.dock.has-call { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .7fr); }
.dock .btn { min-height: 48px; padding: 0 var(--space-3); font-size: 15px; }

@media (max-width: 960px) {
  .nav ul { display: none; }
  .langs { margin-left: auto; }
  .nav { gap: var(--space-3); }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand { gap: var(--space-2); }
  .main, .how-in, .card-in, .faq-in, .contacts-in { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .stage .photo { width: 100%; height: 62%; inset: auto 0 0 0; }
  .stage::after { background: linear-gradient(180deg, var(--veil) 30%, color-mix(in oklch, var(--veil) 70%, transparent) 60%, color-mix(in oklch, var(--veil) 20%, transparent) 100%); }
  .board { justify-self: stretch; width: 100%; }
  .board ol { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .copy .actions .btn-ghost { display: none; }
  /* narrower body face at 15px so "Осмос" and "Пауза" never touch on a 375px screen */
  .prog { font-family: var(--font-body); font-weight: 800; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; font-size: 15px; padding: var(--space-2) 0; border-radius: 16px; gap: var(--space-1); }
  .section { padding-block: var(--space-16); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-photo { max-width: 420px; }
  .footer-in { grid-template-columns: minmax(0, 1fr); }
  body { padding-bottom: 80px; }
  html { scroll-padding-bottom: 96px; }
  /* On phones the button joins the bottom dock at its right end, so it covers nothing. */
  .ig-fab { right: var(--space-4); bottom: calc(var(--space-3) + env(safe-area-inset-bottom)); width: 48px; height: 48px; }
  .ig-fab svg { width: 24px; height: 24px; }
  .dock { padding-right: calc(var(--space-16) + var(--space-3)); }
  .dock { display: grid; }
}
@media (max-width: 560px) {
  .tiles, .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery li:first-child { grid-row: auto; }
  .gallery li:first-child img { aspect-ratio: 4 / 5; height: auto; }
  .form { padding: var(--space-6); }
}

/* Intro and reveals hide only after JS arms them; content is visible without scripts. */
.js-armed [data-intro] { opacity: 0; }
.js-armed [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js-armed [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-armed [data-intro], .js-armed [data-reveal] { opacity: 1; transform: none; transition: none; }
  .stage .photo, .btn, .prog, .n, .qa summary::after, .field input,
  .langs a, .langs .pill, .theme-switch *, .ig-fab, .brand-mark { transition: none; }
  .ig-fab::before, .ig-fab::after { animation: none; opacity: 0; }
}
