/* VICTORYMIND — главная sportpsy174.ru, V2 (холодный трафик → узнавание → тест / материалы).
   Лист тёплого белого, 12-колоночная сетка, редакционные колонки и линейки вместо карточек.
   Модуль 2×2 из знака — структурный приём (hero, цифры, факты, финальный блок).
   Графит — две паузы, обе про тест. Зелёный — «О центре» и «стало». Оранжевый — только действие. */

/* ---------- Fonts (локально, OFL) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/inter-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../assets/fonts/inter-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/onest-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: "Onest"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../assets/fonts/onest-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/onest-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: "Onest"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../assets/fonts/onest-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/onest-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: "Onest"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../assets/fonts/onest-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #F7F7F4;
  --paper-2: #EFEFEA;
  --card: #FFFFFF;
  --graphite: #343A3E;
  --graphite-900: #1F2326;
  --ink: #1B1F22;
  --green: #03805D;
  --green-700: #026B4E;
  --green-on-dark: #4CC79B;
  --green-tint: #E2F0EA;
  --orange: #FC5604;
  --orange-hover: #FF6B21;
  --grey: #B1B1AE;
  --line: #DCDCD6;
  --line-dark: #4A5156;
  --muted: #62676A;
  --on-dark: #F7F7F4;
  --on-dark-muted: #B1B1AE;

  --font-display: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-body: "Onest", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;

  --fs-h1: clamp(2rem, 0.9rem + 3.5vw, 4.25rem);
  --fs-h2: clamp(1.625rem, 1.1rem + 2.1vw, 2.75rem);
  --fs-kpi: clamp(2rem, 1.5rem + 1.7vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 1.08rem + 0.6vw, 1.625rem);
  --fs-lead: clamp(1.125rem, 1.02rem + 0.4vw, 1.3125rem);
  --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  --fs-quote: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --fs-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --fs-label: clamp(0.75rem, 0.73rem + 0.08vw, 0.8125rem);

  --container: 1240px;
  --gutter: 32px;
  --col-gap: clamp(16px, 2vw, 32px);
  --section-y: clamp(64px, 3.5rem + 3vw, 112px);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --btn-r: 8px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--graphite);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, figure, blockquote, dl, dd { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.section--green :focus-visible { outline-color: #FFFFFF; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: 12px 18px; border-radius: var(--btn-r);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--graphite); color: var(--on-dark); }
.section--green { background: var(--green); color: #FFFFFF; }

/* ---------- Type ---------- */
.h1, .h2, .btn { font-family: var(--font-display); font-weight: 700; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.02em; text-transform: uppercase; }
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.015em; text-transform: uppercase; max-width: 22ch; }
.h2--wide { max-width: 28ch; }
.lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 34em; }
.text { max-width: 36em; }
.small { font-size: var(--fs-small); line-height: 1.5; }
.muted { color: var(--muted); }
.section--dark .muted { color: var(--on-dark-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-label);
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.section--dark .eyebrow { color: var(--on-dark-muted); }
.section--green .eyebrow { color: #FFFFFF; }
/* 2×2 glyph: one quadrant is filled, it moves clockwise section by section */
.eyebrow .q { display: inline-grid; grid-template-columns: 5px 5px; grid-template-rows: 5px 5px; gap: 2px; flex: none; }
.eyebrow .q i { display: block; border-radius: 1px; background: currentColor; opacity: .32; }
.eyebrow .q[data-q="1"] i:nth-child(1),
.eyebrow .q[data-q="2"] i:nth-child(2),
.eyebrow .q[data-q="3"] i:nth-child(4),
.eyebrow .q[data-q="4"] i:nth-child(3) { background: var(--orange); opacity: 1; }
.section--green .eyebrow .q i { opacity: .45; }
.section--green .eyebrow .q[data-q] i:nth-child(1) { background: #FFFFFF; opacity: 1; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 2rem + 2vw, 64px); }
.section-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px var(--col-gap); align-items: end; }
.section-head--split > div { display: grid; gap: 18px; }
.section-head--split .text { padding-bottom: 4px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: var(--btn-r);
  font-size: 0.9375rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none;
  line-height: 1.15; text-align: center; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .18s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: var(--ink); }
.btn--primary:hover { background: var(--orange-hover); }
.btn--primary:hover svg { transform: translateY(2px); }
.btn--secondary { background: transparent; color: var(--graphite); border-color: var(--graphite); }
.btn--secondary:hover { background: var(--graphite); color: var(--on-dark); }
.btn--secondary:hover svg { transform: translateX(3px); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 0.8125rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  font-weight: 600; text-decoration: none; min-height: 44px;
  background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1.5px;
  background-repeat: no-repeat; background-position: 0 calc(50% + .85em);
}
.link-arrow:hover { color: var(--green-700); }
.link-arrow span { transition: transform .18s var(--ease); }
.link-arrow:hover span { transform: translateX(3px); }
.section--dark .link-arrow:hover { color: var(--green-on-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 247, 244, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; text-decoration: none; min-height: 44px; }
.brand__mark { height: 36px; width: 36px; }
.brand__word { height: 14px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(16px, 2vw, 32px); }
.nav a {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--graphite); padding: 12px 0; position: relative;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 1.5px; background: var(--graphite); transition: right .2s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { right: 0; }
.header-cta { flex: none; }
.menu-toggle { display: none; }

@media (max-width: 1023px) {
  :root { --header-h: 60px; }
  .nav { display: none; }
  .brand__mark { height: 32px; width: 32px; }
  .brand__word { height: 13px; }
  .header-inner { gap: 12px; }
  .header-cta { margin-left: auto; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1.5px solid var(--graphite); border-radius: var(--btn-r);
    background: transparent; cursor: pointer;
  }
  .menu-toggle svg { width: 20px; height: 20px; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: var(--paper);
  padding: calc(env(safe-area-inset-top, 0px) + 8px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 24px);
  display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
}
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.mobile-menu > ul:first-of-type { display: grid; border-top: 1px solid var(--line); }
.mobile-menu > ul:first-of-type a {
  display: flex; align-items: center; justify-content: space-between; min-height: 58px;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; text-transform: uppercase; letter-spacing: -0.01em;
}
.mobile-menu__secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.mobile-menu__secondary a { display: flex; align-items: center; min-height: 44px; font-size: var(--fs-small); color: var(--muted); text-decoration: none; }

/* ---------- Frames ---------- */
.frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--graphite); max-width: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font-size: var(--fs-small); line-height: 1.45; color: var(--muted); margin-top: 10px; }

/* ---------- 01 Hero ---------- */
.hero { padding-block: clamp(28px, 1rem + 3vw, 72px) clamp(56px, 2.5rem + 3vw, 104px); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--col-gap); align-items: center; }
.hero__copy { grid-column: 1 / span 7; display: grid; gap: 28px; min-width: 0; }
.hero__visual { grid-column: 8 / span 5; min-width: 0; }
/* H1 подогнан по ширине колонки: самая длинная строка «НА СОРЕВНОВАНИЯХ —» ≈ 11,9em */
.hero__title { font-size: min(4rem, calc((min(100vw, 1304px) - 2 * var(--gutter)) * 0.0465)); }
.hero__title .line { display: block; }
.hero__title .line + .line { margin-top: .1em; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.5; max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* 2×2: photo = три клетки, четвёртая — зелёная (как квадрант знака) */
.module { position: relative; }
.module__photo { aspect-ratio: 4 / 5; }
.module__photo img { object-position: 55% 40%; }
.module__cell {
  position: absolute; right: 0; bottom: 0; width: 40%; aspect-ratio: 1 / 1;
  background: var(--green); color: #FFFFFF; border-radius: var(--r-lg) 0 var(--r-lg) 0;
  box-shadow: 0 0 0 8px var(--paper);
  display: grid; align-content: end; gap: 6px; padding: clamp(14px, 1.6vw, 22px);
}
.module__cell b { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-kpi); line-height: 1; letter-spacing: -0.02em; }
.module__cell span { font-size: var(--fs-small); line-height: 1.35; font-weight: 500; }

/* ---------- 02 Situations ---------- */
.situations { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); align-items: start; }
.situation--main {
  grid-column: 1 / span 7; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0 var(--col-gap);
  border-top: 2px solid var(--graphite); padding-top: 28px; align-items: start;
}
.situation__media { aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--graphite); }
.situation__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.situation__body { display: grid; gap: 16px; align-content: start; }
.situation__num { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; letter-spacing: .04em; color: var(--muted); }
.situation__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.015em; }
.situation--main .situation__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); }
.situation__note { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 600; color: var(--green-700); }
.situation__note::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--green); flex: none; }
.situations__side { grid-column: 9 / span 4; display: grid; gap: 0; }
.situations__side .situation { display: grid; gap: 12px; border-top: 1px solid var(--line); padding: 28px 0 32px; }
.situations__side .situation:first-child { border-top: 2px solid var(--graphite); }
.situations__cta { margin-top: 8px; width: 100%; padding: 14px 22px; }

/* ---------- 03 Reframe ---------- */
.reframe { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); align-items: start; }
.reframe__head { grid-column: 1 / span 5; display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 32px); }
.pairs { grid-column: 7 / span 6; }
.pairs__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); padding-bottom: 12px; border-bottom: 2px solid var(--graphite); }
.pairs__head span { font-size: var(--fs-label); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pair__seen { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.2; letter-spacing: -0.01em; position: relative; padding-right: 28px; }
.pair__seen::after { content: "→"; position: absolute; right: 0; top: 0; font-family: var(--font-body); font-weight: 400; color: var(--green); }
.pair__maybe { font-size: 1.0625rem; line-height: 1.5; }
.reframe__note { grid-column: 7 / span 6; font-size: var(--fs-small); color: var(--muted); padding-left: 16px; border-left: 3px solid var(--green); max-width: 40em; }

/* ---------- 04 Test placeholder ---------- */
.test { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); align-items: start; }
.test__intro { grid-column: 1 / span 4; display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 32px); }
.test__intro .h2 { color: var(--on-dark); font-size: clamp(1.625rem, 1.05rem + 1.5vw, 2.375rem); }
.test__slot { grid-column: 5 / span 8; min-width: 0; }
.ph {
  min-height: 560px; border: 2px dashed var(--grey); border-radius: var(--r-lg);
  background: rgba(247, 247, 244, .04); padding: clamp(24px, 3vw, 48px);
  display: grid; align-content: start; gap: 14px;
}
.ph__label { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); letter-spacing: .08em; color: var(--on-dark); }
.ph__text { font-size: var(--fs-lead); line-height: 1.45; color: var(--on-dark); max-width: 30em; }
.ph__ref { font-size: var(--fs-small); color: var(--on-dark-muted); }
.ph__ref a { color: var(--on-dark); font-weight: 600; text-underline-offset: 3px; }
.ph__wire { margin-top: 18px; padding: 24px; border-radius: var(--r-md); background: rgba(31, 35, 38, .55); display: grid; gap: 14px; }
.ph__progress { height: 6px; border-radius: 3px; background: var(--line-dark); overflow: hidden; }
.ph__progress span { display: block; width: 14%; height: 100%; background: var(--grey); }
.ph__q { height: 18px; width: 82%; border-radius: 4px; background: var(--line-dark); margin-top: 8px; }
.ph__q--short { width: 54%; margin-top: 0; }
.ph__opts { display: grid; gap: 10px; margin-top: 8px; }
.ph__opts li { height: 52px; border-radius: 10px; border: 1.5px dashed var(--line-dark); }
.ph__caption { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); text-align: center; }
.ph__foot { font-size: var(--fs-small); color: var(--on-dark-muted); margin-top: 6px; }

/* ---------- 05 Loops (continuous path) ---------- */
.loop { margin: 0; }
.loop + .loop { margin-top: clamp(48px, 3rem + 1.5vw, 80px); }
.loop__cap { margin: 0 0 28px; font-size: var(--fs-label); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.loop__cap b { font-weight: 600; color: var(--graphite); }
.path { --n: 6; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); position: relative; }
.path::before {
  content: ""; position: absolute; top: 8px; height: 2px; background: var(--graphite);
  left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2);
}
.path__node { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; padding: 0 10px; text-align: center; min-width: 0; }
.path__dot { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 4px; background: var(--paper); border: 2px solid var(--graphite); transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.path__node.is-on .path__dot { background: var(--green); border-color: var(--green); }
.path__node:last-child .path__dot { background: var(--graphite); }
.path__node.is-on:last-child .path__dot { background: var(--green); }
.path__num { font-family: var(--font-display); font-weight: 700; font-size: .8125rem; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.path__label { font-weight: 600; font-size: clamp(.9375rem, .9rem + .2vw, 1.0625rem); line-height: 1.3; max-width: 15ch; }
.path__back {
  position: relative; height: 40px; margin: 22px calc(100% / 12) 0;
  border: 2px dashed var(--grey); border-top: 0; border-radius: 0 0 22px 22px;
}
.path__back::before {
  content: ""; position: absolute; left: -8px; top: -10px; width: 0; height: 0;
  border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 10px solid var(--grey);
}
.path__back span {
  position: absolute; left: 50%; bottom: -.8em; transform: translateX(-50%);
  background: var(--paper); padding: 0 14px; white-space: nowrap;
  font-size: var(--fs-small); font-weight: 600; color: var(--muted);
}
.loop--minor .path::before { background: var(--grey); }
.loop--minor .path__dot { border-color: var(--grey); width: 14px; height: 14px; margin-top: 2px; }
.loop--minor .path__node:last-child .path__dot { background: var(--grey); }
.loop--minor .path__label { font-weight: 500; }
.loop__note { margin-top: clamp(40px, 2.5rem + 1vw, 64px); max-width: 44em; font-size: var(--fs-lead); line-height: 1.5; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- 06 Desired state ---------- */
.better { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); align-items: center; }
.better__media { grid-column: 1 / span 5; }
.better__media .frame { aspect-ratio: 4 / 5; }
.better__media .frame img { object-position: 64% 50%; }
.better__copy { grid-column: 7 / span 6; display: grid; gap: 24px; min-width: 0; }
.outcomes { border-top: 2px solid var(--graphite); }
.outcomes li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 1.0625rem; line-height: 1.45; }
.outcomes li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--green); transform: translateY(-1px); }

/* ---------- 07 Voices ---------- */
.voices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); align-items: start; }
.voices__head { grid-column: 1 / span 4; display: grid; gap: 18px; }
.voices__photo { aspect-ratio: 4 / 5; max-width: 320px; margin-top: 12px; }
.voices__list { grid-column: 6 / span 7; border-top: 2px solid var(--graphite); }
.voices__list li { padding: clamp(18px, 1.2rem + .6vw, 28px) 0; border-bottom: 1px solid var(--line); }
.voices__list blockquote { font-weight: 500; font-size: var(--fs-quote); line-height: 1.32; letter-spacing: -0.005em; text-indent: -0.42em; }
.voices__list blockquote::before { content: "«"; }
.voices__list blockquote::after { content: "»"; }
.voices__src { grid-column: 6 / span 7; font-size: var(--fs-small); color: var(--muted); margin-top: -20px; }

/* ---------- 08 Stories ---------- */
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.story { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2vw, 30px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.story__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.story__meta b { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .03em; text-transform: uppercase; }
.story__meta span { font-size: var(--fs-small); color: var(--muted); }
.story__row { display: grid; gap: 6px; }
.story__k { font-family: var(--font-body); font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.story__row--after { background: var(--green-tint); border-radius: var(--r-sm); padding: 14px 16px; margin-inline: -4px; }
.story__row--after .story__k { color: var(--green-700); }
.story__row--after p { font-weight: 500; }
.story__quote { font-weight: 500; font-size: 1.0625rem; line-height: 1.4; padding-left: 14px; border-left: 3px solid var(--graphite); }
.story__link { margin-top: auto; }

/* ---------- 09 About (green) ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); align-items: start; }
.about__copy { grid-column: 1 / span 6; display: grid; gap: 20px; min-width: 0; }
.about__copy .h2 { color: #FFFFFF; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 12px; border-radius: var(--r-lg); overflow: hidden; background: rgba(255, 255, 255, .28); }
.figures > div { background: var(--green); padding: 20px 22px 22px 0; display: grid; gap: 6px; align-content: start; min-width: 0; }
.figures > div:nth-child(even) { padding-left: 22px; }
.figures > div:nth-child(n+3) { padding-top: 22px; }
.figures dt { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-kpi); line-height: 1; letter-spacing: -0.02em; }
.figures > div:last-child dt { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); padding-top: .3em; }
.figures dd { font-size: var(--fs-small); line-height: 1.45; overflow-wrap: anywhere; }
.about__media { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .35); }
.about__media-grid { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; min-width: 0; }
.about__fig { margin: 0; min-width: 0; }
.about__fig figcaption { color: #FFFFFF; }
.about__fig--wide { grid-column: 1 / -1; }
.about__fig--wide .frame { aspect-ratio: 3 / 2; }
.about__fig:not(.about__fig--wide) .frame { aspect-ratio: 4 / 5; }
.about__partners { display: grid; gap: 14px; align-content: start; min-width: 0; padding-top: 4px; }
.about__partners-title { font-size: var(--fs-label); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.partners { display: grid; gap: 4px; }
.partners a { display: inline-flex; align-items: center; min-height: 48px; opacity: .92; transition: opacity .2s var(--ease); }
.partners a:hover { opacity: 1; }
.partners img { height: 26px; width: auto; filter: brightness(0) invert(1); }
.partners img.tall { height: 40px; }

/* ---------- 10 Team ---------- */
.person { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); align-items: start; }
.person__photo { grid-column: 1 / span 5; }
.person__photo .frame { aspect-ratio: 4 / 5; background: var(--paper-2); }
.person__body { grid-column: 7 / span 6; display: grid; gap: 22px; min-width: 0; }
.person__id { display: grid; gap: 6px; padding-top: 8px; }
.person__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -0.015em; }
.person__role { font-size: var(--fs-label); font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--green-700); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.facts > div { background: var(--card); padding: 20px 22px 22px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.facts dt { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: var(--fs-small); line-height: 1.5; }

/* ---------- 11 Parents ---------- */
.parents { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); align-items: center; }
.parents__copy { grid-column: 1 / span 6; display: grid; gap: 22px; min-width: 0; }
.questions { border-top: 2px solid var(--graphite); counter-reset: none; }
.questions li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.35; }
.questions li span { font-family: var(--font-display); font-weight: 700; font-size: .875rem; color: var(--green-700); }
.parents__fig { grid-column: 8 / span 5; margin: 0; }
.parents__fig .frame { aspect-ratio: 4 / 5; }
.parents__fig .frame img { object-position: 30% 50%; }

/* ---------- 12 Articles ---------- */
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 12px; min-height: 248px; min-width: 0; position: relative; }
.article__cat { font-size: .6875rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--green-700); }
.article__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.125rem, 1.02rem + .4vw, 1.3125rem); line-height: 1.22; letter-spacing: -0.01em; }
.article__desc { font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.article__meta { font-size: .8125rem; color: var(--muted); }
.article__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-size: .875rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.article__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.article:has(.article__link):hover { border-color: var(--graphite); }
.article:has(.article__link:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }
.article__link:focus-visible { outline: none; }
.article--ph { background: transparent; border: 1.5px dashed var(--grey); }
.article__ph { margin-top: auto; padding-top: 12px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-top: 1px dashed var(--grey); }
.materials__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.materials__all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-size: .875rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.materials__all em { font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: .75rem; letter-spacing: .06em; }
.materials__channels { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: var(--fs-small); color: var(--muted); }
.materials__channels .link-arrow { color: var(--graphite); font-size: .9375rem; }

/* ---------- 12a Free diagnostic + form ---------- */
.diag { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--col-gap); align-items: center; }
.diag__copy { grid-column: 1 / span 6; display: grid; gap: 22px; min-width: 0; }
.diag__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.diag__facts li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: var(--fs-small); font-weight: 500; }
.diag__facts li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--green); flex: none; }
.diag__alt { display: grid; gap: 2px; font-size: var(--fs-small); color: var(--muted); }
.diag__alt a { color: var(--graphite); font-weight: 600; display: inline-flex; align-items: center; min-height: 36px; text-underline-offset: 3px; }
.form-card { grid-column: 8 / span 5; background: var(--card); color: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 34px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.form-card__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.125rem; letter-spacing: .01em; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-small); font-weight: 600; }
.field input {
  width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: var(--btn-r); background: var(--paper);
  padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--graphite);
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--graphite); background: var(--card); }
.field input:focus-visible { box-shadow: 0 0 0 3px rgba(252, 86, 4, .35); }
.field input[aria-invalid="true"] { border-color: #C2410C; }
.field__err { font-size: .8125rem; color: #B23A0A; }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; min-height: 44px; font-size: .8125rem; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--graphite); }
.consent a { color: var(--graphite); }
.form-status { font-size: var(--fs-small); border-radius: var(--r-sm); padding: 12px 14px; background: var(--green-tint); color: var(--ink); }
.form-status a { font-weight: 600; }

/* ---------- 13 Restart ---------- */
.restart__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--col-gap); align-items: center; }
.restart__mark { grid-column: 1 / span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 6%; width: min(100%, 220px); aspect-ratio: 1 / 1; }
.restart__mark i { display: block; border-radius: 12%; }
.restart__mark i:nth-child(1) { background: var(--on-dark); }
.restart__mark i:nth-child(2) { background: var(--grey); }
.restart__mark i:nth-child(3) { background: var(--green); }
.restart__mark i:nth-child(4) { background: var(--orange); }
.restart__copy { grid-column: 5 / span 8; display: grid; gap: 22px; justify-items: start; }
.restart__copy .h2 { color: var(--on-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--graphite-900); color: var(--on-dark); padding-block: clamp(56px, 3rem + 3vw, 88px) 28px; }
.footer__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--col-gap); padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer__brand { grid-column: 1 / span 4; display: grid; gap: 16px; align-content: start; }
.footer__brand img { height: 60px; width: auto; }
.footer__brand p { color: var(--on-dark-muted); font-size: var(--fs-small); max-width: 30ch; }
.footer__contacts { display: grid; gap: 0; }
.footer__contacts a { font-size: var(--fs-small); color: var(--on-dark); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer__col { grid-column: span 2; display: grid; gap: 12px; align-content: start; min-width: 0; }
.footer__col--wide { grid-column: span 4; }
.footer__col h2 { font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.footer__col .footer__h-gap { margin-top: 16px; }
.footer__col ul { display: grid; gap: 0; }
.footer__col a, .footer__a11y { font-size: var(--fs-small); text-decoration: none; color: var(--on-dark); display: inline-flex; min-height: 36px; align-items: center; }
.footer__a11y { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-dark); }
.footer__col a:hover, .footer__a11y:hover, .footer__contacts a:hover { color: var(--green-on-dark); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; font-size: .8125rem; color: var(--on-dark-muted); }
.footer__legal p { max-width: 70ch; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .situation--main { grid-column: 1 / span 7; }
  .situations__side { grid-column: 8 / span 5; }
  .test__intro { grid-column: 1 / span 5; }
  .test__slot { grid-column: 6 / span 7; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col { grid-column: span 4; }
  .footer__col--wide { grid-column: span 4; }
}

@media (max-width: 1023px) {
  .hero__copy { grid-column: 1 / span 7; }
  .hero__visual { grid-column: 8 / span 5; }
  .situation--main, .situations__side { grid-column: 1 / -1; }
  .situation--main { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .situations__side { grid-template-columns: 1fr 1fr; gap: 0 var(--col-gap); }
  .situations__side .situation:nth-child(2) { border-top: 2px solid var(--graphite); }
  .situations__cta { grid-column: 1 / -1; width: auto; justify-self: start; }
  .reframe__head, .pairs, .reframe__note { grid-column: 1 / -1; }
  .reframe__head { position: static; }
  .test__intro, .test__slot { grid-column: 1 / -1; }
  .test__intro { position: static; }
  .stories { grid-template-columns: 1fr 1fr; }
  .stories .story:last-child { grid-column: 1 / -1; }
  .articles { grid-template-columns: 1fr 1fr; }
  .about__copy, .about__media-grid { grid-column: 1 / -1; }
  .diag__copy { grid-column: 1 / span 6; }
  .form-card { grid-column: 7 / span 6; }
  .voices__head { grid-column: 1 / span 5; }
  .voices__list, .voices__src { grid-column: 6 / span 7; }
}

@media (max-width: 959px) {
  .hero__copy, .hero__visual { grid-column: 1 / -1; }
  .hero__visual { max-width: 520px; }
  .hero__title { font-size: min(3.5rem, calc((100vw - 2 * var(--gutter)) / 12.4)); }
  .better__media, .better__copy, .person__photo, .person__body, .parents__copy, .parents__fig,
  .voices__head, .voices__list, .voices__src { grid-column: 1 / -1; }
  .better__media { max-width: 520px; }
  .person__photo { max-width: 440px; }
  .parents__fig { max-width: 560px; }
  .parents__fig .frame { aspect-ratio: 16 / 9; }
  .voices__head { grid-template-columns: minmax(0, 1fr) 160px; align-items: end; column-gap: var(--col-gap); }
  .voices__head .eyebrow, .voices__head .h2 { grid-column: 1; }
  .voices__photo { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; max-width: none; }
  .voices__src { margin-top: -24px; }
  .section-head--split { grid-template-columns: 1fr; }
  .restart__mark { grid-column: 1 / span 3; }
  .restart__copy { grid-column: 4 / span 9; }
  .diag__copy, .form-card { grid-column: 1 / -1; }
  .form-card { max-width: 560px; }
}

@media (max-width: 639px) {
  :root { --gutter: 20px; --section-y: 64px; }
  .hero { padding-top: 16px; }
  .hero__copy { gap: 22px; }
  .hero__actions { gap: 6px 20px; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { max-width: none; }
  .module__cell { width: 44%; box-shadow: 0 0 0 6px var(--paper); }
  .situation--main { grid-template-columns: 1fr; gap: 20px; }
  .situation__media { aspect-ratio: 4 / 3; }
  .situation__media img { object-position: 50% 40%; }
  .situations__side { grid-template-columns: 1fr; }
  .situations__side .situation:nth-child(2) { border-top: 1px solid var(--line); }
  .situations__cta { width: 100%; }
  .pairs__head { display: none; }
  .pairs { border-top: 2px solid var(--graphite); }
  .pair { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .pair__seen { padding-right: 0; }
  .pair__seen::after { content: "↓"; position: static; margin-left: 10px; }
  .ph { min-height: 440px; }
  .ph__wire { padding: 18px; }
  .ph__opts li { height: 46px; }

  /* loop — вертикальная траектория */
  .path { grid-template-columns: 1fr; }
  .path::before { top: 9px; bottom: 24px; left: 8px; right: auto; width: 2px; height: auto; }
  .path__node { grid-template-columns: 18px 28px minmax(0, 1fr); justify-items: start; align-items: center; gap: 0 14px; padding: 0 0 22px; text-align: left; }
  .path__num { margin-top: 0; }
  .path__label { max-width: none; }
  .loop--minor .path__node { grid-template-columns: 18px 28px minmax(0, 1fr); }
  .loop--minor .path__dot { margin: 0 2px; }
  .path__back { height: auto; margin: 0; border: 0; padding-left: 0; }
  .path__back::before { display: none; }
  .path__back span { position: static; transform: none; padding: 0; background: none; display: inline-flex; gap: 10px; }
  .path__back span::before { content: "↺"; color: var(--green); font-size: 1.125rem; line-height: 1; }

  .outcomes li { font-size: 1rem; }
  .voices__head { grid-template-columns: minmax(0, 1fr) 104px; }
  .voices__list blockquote { text-indent: 0; }

  /* stories — свайп */
  .stories {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .stories::-webkit-scrollbar { display: none; }
  .stories .story { scroll-snap-align: start; }
  .stories .story:last-child { grid-column: auto; }

  .figures > div { padding: 18px 14px 18px 0; }
  .figures > div:nth-child(even) { padding-left: 14px; }
  .about__media-grid { gap: 16px 12px; }
  .partners img { height: 22px; }
  .partners img.tall { height: 34px; }
  .facts { grid-template-columns: 1fr; }
  .articles { grid-template-columns: 1fr; }
  .article { min-height: 0; }
  .materials__foot { flex-direction: column; align-items: flex-start; }
  .restart__grid { gap: 24px; }
  .restart__mark { grid-column: 1 / -1; width: 88px; }
  .restart__copy { grid-column: 1 / -1; }
  .restart__copy .btn { width: 100%; }
  .footer__col, .footer__col--wide { grid-column: span 6; }
  .footer__col--wide { grid-column: 1 / -1; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand__mark { height: 30px; width: 30px; }
  .brand__word { height: 11px; }
  .header-cta .btn--sm { padding: 0 12px; font-size: .75rem; letter-spacing: .03em; }
  .module__cell b { font-size: 1.75rem; }
}

/* Простая версия для слабовидящих (до подключения виджета lidrekon) */
html.a11y-large { font-size: 125%; }
