/* GymBuddy: Coach's Sight — site styles, v3 "Air".
   White space first, green accents on white, editorial serif + mono labels,
   thin hairlines and soft shadows. References: Càphê Roasters (centred logo, stamp badge, side labels),
   Money in Check (giant green serif, inline drawings), Marble / Dan Mall (huge word with a figure in front),
   Sutéra (hairline grid, crosshairs, numbered rows, line drawings).
   Everything is self-hosted: no external fonts, scripts, analytics or cookies. */

@font-face { font-family: "Playfair"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/playfair-display-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/playfair-display-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/playfair-display-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/playfair-display-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair"; font-weight: 500; font-style: italic; font-display: swap; src: url("/assets/fonts/playfair-display-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/playfair-display-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/playfair-display-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/playfair-display-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/playfair-display-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; font-weight: 500; font-style: italic; font-display: swap; src: url("/assets/fonts/playfair-display-cyrillic-500-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --white: #ffffff;
  --paper: #f7f9f8;
  --ink: #0f172a;
  --text: #1e293b;
  --body: #3b4757;
  --muted: #56657a;
  --hair: rgba(15, 23, 42, 0.09);
  --hair-strong: rgba(15, 23, 42, 0.16);
  --green: #047857;
  --green-deep: #064e3b;
  --mint: #e8f6ef;
  --mint-2: #d1fae5;
  --shadow: 0 30px 60px -30px rgba(6, 78, 59, 0.28), 0 10px 24px -14px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 18px 40px -26px rgba(15, 23, 42, 0.25);
  --serif: "Playfair", "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: "Plex Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --wrap: 1240px;
  --gap: clamp(96px, 12vw, 168px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
img, video { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--mint-2); }

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

.wrap { width: min(var(--wrap), 100% - 64px); margin: 0 auto; }

/* ---------- Header: centred logo (Càphê) ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s ease;
}
.header.scrolled { border-bottom-color: var(--hair); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 76px; }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); align-items: center; }
.nav a, .nav-right a {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap;
}
.nav a:hover, .nav-right a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); justify-self: center; }
.logo img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px var(--hair), 0 6px 14px -8px rgba(15, 23, 42, 0.35); }
.logo span { font-family: var(--serif); font-size: 1.32rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.logo small { display: block; margin-top: -4px; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--hair-strong); border-radius: 999px; }
.lang button { min-width: 38px; min-height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; }
.lang button.active { background: var(--green); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  border: 1px solid transparent; border-radius: 999px; padding: 12px 26px;
  font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn.green { background: var(--green); color: #fff; box-shadow: 0 14px 30px -14px rgba(4, 120, 87, 0.7); }
.btn.green:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn.ghost { border-color: var(--hair-strong); color: var(--ink); background: #fff; }
.btn.ghost:hover { border-color: var(--green); color: var(--green); }
.btn.small { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.link { color: var(--green); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(4, 120, 87, 0.3); }
.link:hover { border-bottom-color: var(--green); }

/* ---------- Type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green);
}
.label::before { content: "["; color: var(--muted); }
.label::after { content: "]"; color: var(--muted); }
.label.plain::before, .label.plain::after { content: none; }
h1, h2, h3 { color: var(--ink); }
h2 { margin: 18px 0 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.9rem); line-height: 1.06; letter-spacing: -0.02em; }
h2 em, h1 em, .serif em { font-style: italic; color: var(--green); }
h3 { margin: 0 0 8px; font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { color: var(--body); margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--body); max-width: 620px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.section { padding-top: var(--gap); scroll-margin-top: 80px; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }

/* Hairline grid (Sutéra) */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: calc(100% / 6) 160px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}
.cross { position: absolute; width: 14px; height: 14px; color: var(--hair-strong); pointer-events: none; }
.cross::before, .cross::after { content: ""; position: absolute; background: currentColor; }
.cross::before { left: 6px; top: 0; width: 1.5px; height: 14px; }
.cross::after { top: 6px; left: 0; height: 1.5px; width: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(28px, 4vw, 48px) 0 0; text-align: center; }
.hero-sides { display: flex; justify-content: flex-start; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.wordmark .wm { position: relative; display: inline-block; }
.wordmark .perch { position: absolute; z-index: 3; height: 0.8em; width: auto; right: 0.04em; top: -0.36em; filter: drop-shadow(0 12px 16px rgba(6, 78, 59, 0.14)); pointer-events: none; }
.hero-sides .label { font-size: 0.72rem; }
.hero-stage { position: relative; margin-top: clamp(8px, 2vw, 20px); }
.wordmark {
  position: relative; z-index: 1; margin: 0; padding: 0 0 0.02em;
  font-family: var(--serif); font-weight: 400; color: var(--green);
  font-size: clamp(3.6rem, 13.2vw, 12.4rem); line-height: 0.92; letter-spacing: -0.035em; white-space: nowrap;
}
.wordmark i { font-style: italic; font-weight: 400; }
.hero-figures { position: relative; z-index: 2; height: clamp(300px, 34vw, 470px); margin-top: calc(clamp(3.6rem, 13.2vw, 12.4rem) * -0.62); pointer-events: none; }
.hero-figures .timur { position: absolute; left: 50%; bottom: 0; height: 112%; width: auto; transform: translateX(-56%); filter: drop-shadow(0 24px 30px rgba(6, 78, 59, 0.16)); }
.hero-figures .phone { position: absolute; left: 50%; bottom: 4%; width: clamp(130px, 13vw, 190px); transform: translateX(28%) rotate(6deg); }
.hero-ground { height: 1px; background: var(--hair-strong); margin: 0 auto; }
.hero-copy { max-width: 720px; margin: clamp(28px, 4vw, 44px) auto 0; }
.tagline { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.12; color: var(--ink); letter-spacing: -0.015em; }
.tagline em { color: var(--green); }
.hero-copy .lead { margin: 0 auto 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.hero .cross.c1 { left: 0; top: 52%; } .hero .cross.c2 { right: 0; top: 52%; }

/* Rotating stamp (Càphê) */
.stamp {
  position: absolute; z-index: 3; right: clamp(0px, 3vw, 40px); top: clamp(120px, 18vw, 250px);
  width: clamp(104px, 11vw, 148px); aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; background: var(--green); color: #fff; box-shadow: var(--shadow);
  text-decoration: none;
}
.stamp svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.stamp text { font-family: var(--mono); font-size: 10.2px; letter-spacing: 2.2px;
}
html[lang="ru"] .stamp text { letter-spacing: 4.9px; font-size: 10.6px;
}
.stamp text { text-transform: uppercase; fill: #fff; }
.stamp b { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 2.6vw, 2.6rem); line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Doodles (Money in Check) */
.doodle { position: absolute; color: var(--green); opacity: 0.55; pointer-events: none; }
.doodle svg { display: block; width: 100%; height: auto; }

/* ---------- Manifesto with inline pictures ---------- */
.manifesto { max-width: 1060px; margin: 0 auto; text-align: center; font-family: var(--serif); font-size: clamp(1.75rem, 3.5vw, 3.1rem); line-height: 1.32; color: var(--ink); letter-spacing: -0.015em; }
.manifesto .muted-text { color: #7b8594; } /* large text, 3.7:1 on white */
.manifesto em { color: var(--green); }
.pic { display: inline-block; vertical-align: middle; height: 1.15em; width: auto; margin: -0.2em 0.12em 0; border-radius: 999px; }
.pic.round { width: 1.15em; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 6px 14px -6px rgba(15, 23, 42, 0.4); }
.pic.pill { height: 1.05em; padding: 0 0.42em; display: inline-flex; align-items: center; gap: 0.2em; border-radius: 999px; background: var(--mint); color: var(--green); font-family: var(--mono); font-size: 0.42em; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.35em; }
.pic.icon { height: 1em; width: 1em; padding: 0.16em; border-radius: 50%; background: var(--green); color: #fff; }
.pic.icon svg { width: 100%; height: 100%; display: block; }

/* ---------- Split (Càphê green half) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; border-radius: 32px; overflow: hidden; }
.split-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 88px); background: var(--green-deep); color: #fff; }
.split-text h2 { color: #fff; margin-top: 14px; }
.split-text h2 em { color: #6ee7b7; }
.split-text .label { color: #6ee7b7; } .split-text .label::before, .split-text .label::after { color: rgba(255,255,255,0.45); }
.split-text li, .split-text p { color: #d1fae5; }
.split-media { position: relative; background: var(--paper); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-media .caption { position: absolute; left: 20px; bottom: 20px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.versus h3 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 12px; }
.versus ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.versus li { position: relative; padding-left: 22px; font-size: 0.98rem; line-height: 1.5; }
.versus li::before { content: "—"; position: absolute; left: 0; color: rgba(255,255,255,0.45); }
.versus .yes li::before { content: "✓"; color: #6ee7b7; }

/* ---------- Steps (Sutéra numbered rows + sticky phone) ---------- */
.steps-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair-strong); }
.step { position: relative; display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 4px 20px; padding: 30px 0 32px; border-bottom: 1px solid var(--hair-strong); cursor: default; transition: background 0.3s ease; }
.step .num { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); padding-top: 10px; }
.step .tag { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.12; letter-spacing: -0.015em; margin-bottom: 10px; transition: color 0.3s ease; }
.step p { margin: 0; max-width: 520px; }
.step .hatch { grid-column: 2; height: 10px; margin-top: 18px; border-radius: 2px; background: repeating-linear-gradient(-55deg, var(--green) 0 2px, transparent 2px 7px); transform-origin: left; transform: scaleX(0.18); opacity: 0.35; transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease; }
.step.active h3 { color: var(--green); }
.step.active .hatch { transform: scaleX(1); opacity: 1; }
.step .inline-shot { display: none; }
.steps-phone { position: sticky; top: 110px; display: grid; justify-items: center; }
.phone {
  position: relative; display: block; width: 100%; aspect-ratio: 600 / 1209; border-radius: 40px; padding: 9px;
  background: #0f172a; box-shadow: var(--shadow);
}
.phone::after { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 7px; margin-left: -35px; border-radius: 7px; background: #0f172a; }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; background: #faf9f6; }
.steps-phone .phone { width: min(300px, 100%); }
.steps-phone .phone img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); opacity: 0; transition: opacity 0.5s ease; }
.steps-phone .phone img.on { opacity: 1; }
.clip-dot { position: absolute; right: -6%; bottom: 10%; width: 36%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--mint); box-shadow: 0 0 0 6px #fff, var(--shadow-soft); }
.clip-dot video { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-dot video:not(.on) { display: none; }
.reticle { position: absolute; z-index: -1; left: 50%; top: 46%; width: 150%; transform: translate(-50%, -50%); color: var(--green); opacity: 0.22; pointer-events: none; }

/* ---------- Features (hairline cells) ---------- */
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair-strong); border-left: 1px solid var(--hair-strong); }
.cell { position: relative; padding: clamp(28px, 3vw, 40px); border-right: 1px solid var(--hair-strong); border-bottom: 1px solid var(--hair-strong); background: #fff; transition: background 0.3s ease; }
.cell:hover { background: var(--paper); }
.cell .ico { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 22px; border-radius: 50%; background: var(--mint); color: var(--green); }
.cell .ico svg { width: 22px; height: 22px; }
.cell p { margin: 0; font-size: 0.98rem; }
.cell .k { position: absolute; right: 22px; top: 22px; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.cell.wide { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: end; overflow: hidden; background: var(--mint); padding-bottom: 0; }
.cell.wide > div { align-self: center; padding-bottom: clamp(28px, 3vw, 40px); }
.cell.wide .art { display: block; width: 100%; max-width: 380px; margin: 0 auto; }
.cell.wide:hover { background: var(--mint); }
.cell.wide .phone { width: 230px; margin-bottom: -120px; transform: rotate(4deg); }
.cell .big { font-family: var(--serif); font-size: clamp(4rem, 7vw, 6rem); line-height: 0.9; color: var(--green); margin-bottom: 10px; }

/* ---------- Coaches (Dan Mall: name behind figure) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.coach { position: relative; overflow: hidden; border-radius: 32px; background: var(--paper); padding: clamp(28px, 3vw, 40px) clamp(28px, 3vw, 40px) 0; min-height: 560px; display: flex; flex-direction: column; }
.coach.alt { background: var(--mint); }
.coach .name { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(5rem, 12vw, 10.5rem); line-height: 1; color: var(--green); opacity: 0.16; letter-spacing: -0.04em; pointer-events: none; }
.coach .bust { position: relative; z-index: 1; display: block; margin: auto auto 0; height: clamp(320px, 33vw, 440px); width: auto; max-width: 100%; object-fit: contain; }
.coach .meta { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.coach h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin: 0; }
.coach blockquote { position: relative; z-index: 2; margin: 14px 0 0; max-width: 420px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.45; color: var(--body); }

.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 18px; margin-top: 28px; padding-bottom: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--hair-strong) transparent; }
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 22px; background: var(--paper); }
.strip figcaption { margin-top: 10px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Sight (reticle around the clip) ---------- */
.sight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.scope { position: relative; width: min(100%, 520px); margin: 0 auto; aspect-ratio: 1; display: grid; place-items: center; }
.scope svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--green); }
.scope .lens { width: 72%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--mint); box-shadow: var(--shadow); }
.scope .lens video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scope .ring-spin { animation: spin 60s linear infinite; transform-origin: 50% 50%; }

/* ---------- Privacy list ---------- */
.privacy { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.privacy .portrait { position: relative; max-width: 360px; }
.privacy .portrait img { display: block; width: 100%; border-radius: 28px; box-shadow: var(--shadow); }
.privacy .portrait .note-tag { position: absolute; left: -18px; bottom: 28px; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-soft); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.rows { margin: 28px 0 32px; padding: 0; list-style: none; border-top: 1px solid var(--hair-strong); }
.rows li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair-strong); }
.rows .n { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); padding-top: 3px; }
.rows strong { display: block; color: var(--ink); font-weight: 650; }
.rows span { color: var(--body); }

/* ---------- Free ---------- */
.free { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(36px, 5vw, 64px); border-radius: 32px; background: var(--paper); }
.free .five { display: grid; place-items: center; width: clamp(160px, 18vw, 230px); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: var(--shadow); text-align: center; }
.free .five b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(5rem, 9vw, 7.4rem); line-height: 0.85; color: var(--green); }
.free .five span { display: block; margin-top: 18px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.free h2 { margin-top: 0; }
.free-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.free-notes p { margin: 0; font-size: 0.98rem; }
.free-notes strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* ---------- Early access (Marble: big word, one action) ---------- */
.early-word { margin: 0; text-align: center; font-family: var(--serif); font-weight: 400; color: var(--green); font-size: clamp(3.4rem, 11.5vw, 10.6rem); line-height: 0.95; letter-spacing: -0.035em; }
.early-word i { font-style: italic; }
.early-photo { position: relative; z-index: 1; width: min(1060px, 100%); margin: clamp(-26px, -1.6vw, -10px) auto 0; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); }
.early-photo img { display: block; width: 100%; height: clamp(260px, 36vw, 470px); object-fit: cover; object-position: center 40%; }
.early-photo .caption { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,0.94); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.form-card { position: relative; z-index: 2; width: min(860px, 100% - 32px); margin: clamp(-120px, -8vw, -60px) auto 0; padding: clamp(28px, 4vw, 52px); border-radius: 28px; background: #fff; box-shadow: 0 40px 80px -40px rgba(15, 23, 42, 0.35), 0 0 0 1px var(--hair); }
.form-card h2 { margin-top: 10px; font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.form { display: grid; gap: 18px; margin-top: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span:first-child { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; border: 0; border-bottom: 1px solid var(--hair-strong); border-radius: 0; padding: 10px 2px;
  background: transparent; color: var(--ink); font: inherit; font-size: 1.05rem; transition: border-color 0.2s ease;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom: 2px solid var(--green); }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.92rem; line-height: 1.55; color: var(--body); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.check a, .form-note a { color: var(--green); font-weight: 600; }
.form .btn { justify-self: start; }
.form-note { margin: 0; color: var(--muted); font-size: 0.86rem; }
.hidden-field { display: none; }

/* ---------- FAQ (hairline accordion) ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--hair-strong); }
.faq-item { border-bottom: 1px solid var(--hair-strong); }
.faq-item summary { position: relative; padding: 24px 56px 24px 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.3; color: var(--ink); list-style: none; cursor: pointer; transition: color 0.2s ease; }
.faq-item summary:hover { color: var(--green); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--green), var(--green)) center / 14px 1.5px no-repeat, linear-gradient(var(--green), var(--green)) center / 1.5px 14px no-repeat; transition: transform 0.3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 56px 22px 0; }
.faq-answer p { margin: 0 0 10px; }
.faq-answer a { color: var(--green); font-weight: 600; }
.note { margin-top: 34px; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--body); }

/* ---------- Media frame + replay ---------- */
.media-frame { position: relative; overflow: hidden; border-radius: 28px; background: var(--mint); box-shadow: var(--shadow); }
.media-frame video, .media-frame img { display: block; width: 100%; height: auto; }
.replay {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; min-height: 34px; align-items: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 4px 14px; background: rgba(255,255,255,0.94); color: var(--green);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0; transition: opacity 0.2s ease;
}
.media-frame.ended .replay, .lens.ended .replay, .replay:focus-visible { opacity: 1; }
.lens { position: relative; }
.lens .replay { right: 50%; transform: translateX(50%); bottom: 16px; }

/* ---------- Legal pages ---------- */
.legal-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: clamp(48px, 6vw, 80px) 0 32px; border-bottom: 1px solid var(--hair-strong); }
.legal-hero h1 { margin: 16px 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -0.025em; }
.legal-title-app, .legal-title-doc { display: block; }
.legal-title-app { margin-bottom: 6px; font-family: var(--mono); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.legal-tagline { margin: 0 0 10px; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.3; color: var(--green); }
.legal-hero p { max-width: 680px; }
.legal-hero .legal-art { width: clamp(150px, 17vw, 230px); aspect-ratio: 1; object-fit: contain; object-position: center bottom; padding: 14px 10px 0; border-radius: 50%; background: var(--mint); box-shadow: var(--shadow-soft); }
.legal-document { max-width: 860px; margin: 40px auto 0; }
.legal-locale[hidden] { display: none; }
.legal-document h2 { margin: 48px 0 12px; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.2; }
.legal-document h2:first-of-type { margin-top: 12px; }
.legal-document h3 { margin-top: 24px; }
.legal-document ul, .legal-document ol { padding-left: 1.3rem; }
.legal-document li { margin: 6px 0; color: var(--body); }
.legal-document a { color: var(--green); font-weight: 600; overflow-wrap: anywhere; }
.legal-callout { margin: 0 0 28px; padding: 16px 20px; border-radius: 16px; background: var(--mint); }
.legal-callout p { margin: 0; color: var(--green-deep); font-weight: 500; }
.legal-meta { color: var(--muted); font-size: 0.92rem; }
.legal-table-wrap { margin: 18px 0 26px; overflow-x: auto; }
.legal-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.95rem; }
.legal-table th, .legal-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--hair-strong); text-align: left; vertical-align: top; color: var(--body); }
.legal-table th { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.path-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.path-cards .card { padding: 28px; border-radius: 24px; background: var(--paper); }
.path-cards .card:first-child { background: var(--mint); }
.path-cards .card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; }
.path-cards ol { margin: 12px 0 0; }

/* Simple pages (thanks, 404) */
.simple { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(56px, 8vw, 110px) 0 0; }
.simple h1 { margin: 16px 0 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5.4vw, 4.8rem); line-height: 1.02; letter-spacing: -0.025em; }
.simple h1 em { color: var(--green); }
.simple .cta-row { justify-content: flex-start; margin-top: 26px; }
.simple .media-frame { max-width: 380px; margin: 0 auto; }

/* ---------- Footer ---------- */
.footer { margin-top: var(--gap); padding: clamp(56px, 7vw, 88px) 0 32px; background: var(--paper); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.6fr)); gap: 32px; }
.footer h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--green); }
.footer .pitch { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.25; color: var(--ink); max-width: 460px; }
.footer-social-wrap { margin-top: 28px; }
.footer-social-label { margin: 0 0 10px; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: inline-grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--hair-strong); border-radius: 50%; background: #fff; color: var(--ink); transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--green); border-color: var(--green); transform: translateY(-2px); }
.footer-word { position: relative; margin: clamp(64px, 8vw, 110px) 0 0; padding-bottom: 0.2em; font-family: var(--serif); font-size: clamp(4rem, 15vw, 14rem); line-height: 0.8; letter-spacing: -0.04em; color: var(--green); text-align: center; white-space: nowrap; user-select: none; }
.footer-word i { font-style: italic; }
.footer-word img { position: absolute; right: 4.5%; bottom: 0.8em; width: clamp(80px, 9vw, 140px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--hair-strong); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.footer-bottom a { color: var(--green); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stamp svg, .scope .ring-spin { animation: none; }
  .step .hatch { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell.wide { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 920px) {
  .wrap { width: min(var(--wrap), 100% - 40px); }
  .header-inner { grid-template-columns: auto 1fr; min-height: 64px; }
  .logo { justify-self: start; grid-row: 1; }
  .nav { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-right { grid-row: 1; grid-column: 2; }
  .nav-right .hide-sm { display: none; }
  .split, .steps-wrap, .sight, .privacy, .faq, .duo { grid-template-columns: minmax(0, 1fr); }
  .split-media { min-height: 340px; }
  .steps-phone { display: none; }
  .step .inline-shot { display: block; grid-column: 2; width: min(220px, 70%); margin-top: 20px; }
  .privacy .portrait { max-width: 280px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .simple { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--wrap), 100% - 32px); }
  .logo span { font-size: 1.12rem; }
  .logo small { display: none; }
  .hero-sides { flex-direction: column; gap: 4px; }
  .hero-figures { height: 300px; }
  .hero-figures .phone { width: 112px; transform: translateX(34%) rotate(6deg); }
    .stamp, .doodle { display: none; }
    .hero-figures .timur { transform: translateX(-50%); height: 108%; }
  .versus, .form-row, .free-notes, .path-cards { grid-template-columns: minmax(0, 1fr); }
  .cells { grid-template-columns: minmax(0, 1fr); }
  .cell.wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .cell.wide .phone { width: 170px; margin: 0 auto -150px; }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; }
  .free { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .coach { min-height: 480px; }
  .legal-hero { grid-template-columns: minmax(0, 1fr); }
  .legal-hero .legal-art { order: -1; width: 110px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .early-word { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .early-photo { margin-top: 14px; }
  .early-photo .caption { white-space: normal; text-align: center; width: max-content; max-width: 86%; }
}

/* Closed testing (17.10): long RU word, fields with hints stay aligned */
html[lang="ru"] .early-word { font-size: clamp(2.1rem, 7.1vw, 6.6rem); }
/* The title sits above the photo, never behind it (long "Closed testing" / "Закрытое тестирование" with descenders) */
.early-word { padding-bottom: 0.12em; }
.early-photo { margin-top: clamp(16px, 2.4vw, 34px); }
.form-row { align-items: start; }
