/* DAOCODE · ПРОТОТИП v3
   Один шрифт — Onest. Контент на всю ширину экрана, по краям только поле --g.
   Светлые страницы — рисовая бумага и тушь; страница Lab — та же палитра в инверсии
   (класс .ink на <body> подменяет токены). */

:root {
  --paper: #F2F1E9;
  --paper2: #EAE8DD;
  --card: #FAF9F3;
  --ink: #23251D;
  --ink2: #4F5142;
  --ink3: #7A7A68;
  --ink4: #B9B8A6;
  --sage: #647049;
  --gold: #A98B5B;
  --seal: #B5492F;
  --line: rgba(35, 37, 29, .14);
  --line2: rgba(35, 37, 29, .07);
  --p1: #647049;
  --p2: #A98B5B;
  --p3: #5E6F78;
  --on-accent: #F2F1E9;

  --g: clamp(16px, 3.4vw, 64px);
  --font: 'Onest', system-ui, sans-serif;
  --brush: 'Brush', serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* Отступ секции — от ширины, но не больше доли высоты окна: на ноутбуке
     блок должен помещаться в экран целиком */
  --sec: min(clamp(80px, 10vw, 168px), clamp(44px, 8svh, 120px));
  color-scheme: light;
}

/* Lab: тёмно-зелёная страница — шалфей бренда, уведённый в глубину */
.grove {
  --paper: #26311F;
  --paper2: #2C3824;
  --card: #313E28;
  --ink: #EEEDE2;
  --ink2: #CBCFBA;
  --ink3: #9AA488;
  --ink4: #627056;
  --sage: #BCCB97;
  --gold: #DDBF88;
  --seal: #EC7655;
  --line: rgba(238, 237, 226, .17);
  --line2: rgba(238, 237, 226, .08);
  --p1: #BCCB97;
  --p2: #DDBF88;
  --p3: #A9BEC8;
  --on-accent: #26311F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 18px/1.55 var(--font); font-feature-settings: 'ss01';
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.grove { line-height: 1.62; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sage); color: var(--on-accent); }

.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.seal { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; background: var(--seal); color: var(--paper); font: 400 20px/1 var(--brush); letter-spacing: 0; text-transform: none; }
.grove .seal, .labband .seal { color: #26311F; }
/* Крупный знак раздела — тушью в правом верхнем углу секции */
.sec[data-g] { position: relative; isolation: isolate; overflow: hidden; }
.sec[data-g]::after { content: attr(data-g); position: absolute; z-index: -1; top: clamp(24px, 4vw, 64px); right: var(--g); font: 400 clamp(180px, 22vw, 380px)/1 var(--brush); color: var(--ink); opacity: .045; pointer-events: none; }
.tag { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .02em; padding: 2px 8px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink3); vertical-align: middle; }

/* ── КНОПКИ ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 28px;
  border-radius: 99px; background: var(--ink); color: var(--paper);
  font-size: 17px; font-weight: 500; white-space: nowrap;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover { background: var(--sage); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--light { background: var(--ink); color: var(--paper); }
.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .4s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ── ШАПКА ──────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; padding: 0 var(--g);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-solid, .nav.is-open { background: color-mix(in oklab, var(--paper) 94%, transparent); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; letter-spacing: -.02em; }
.logo svg { width: 28px; height: 28px; color: var(--sage); }
.logo b { font-weight: 600; }
.menu { display: flex; gap: clamp(16px, 2.2vw, 36px); font-size: 16px; }
.menu a { color: var(--ink2); transition: color .2s; }
.menu a:hover { color: var(--ink); }
.nav__right { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.cab { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ink2); transition: color .2s; }
.cab svg { width: 20px; height: 20px; }
.cab:hover { color: var(--ink); }

/* Кнопка Lab: по контуру бежит отрезок киновари, точка «эфир» дышит */
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.labbtn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 16px 0 14px; border-radius: 99px;
  background: #647049; color: #F2F1E9; font-size: 15px; white-space: nowrap;
  transition: transform .3s var(--ease);
}
.labbtn b { font-weight: 600; letter-spacing: .01em; }
.labbtn small { font-size: 13px; opacity: .75; padding-left: 9px; border-left: 1px solid rgba(242, 241, 233, .3); font-variant-numeric: tabular-nums; }
.labbtn__ring {
  position: absolute; inset: -2px; border-radius: inherit; padding: 2px; z-index: -1;
  background: conic-gradient(from var(--a), transparent 0 62%, rgba(221, 191, 136, .5) 78%, #DDBF88 88%, #F6E7C8 93%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: lab-run 3.6s linear infinite;
}
.labbtn__dot { width: 7px; height: 7px; border-radius: 50%; background: #EC7655; box-shadow: 0 0 0 0 #EC7655; animation: lab-dot 2s var(--ease) infinite; }
.labbtn:hover { transform: translateY(-1px); }
.labbtn:hover .labbtn__ring { animation-duration: 1.4s; }
.labbtn.is-here { background: #4E5938; }
.labbtn:hover { background: #56613D; }
@keyframes lab-run { to { --a: 360deg; } }
@keyframes lab-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--seal) 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 7px transparent; }
}

.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 23px; }
.is-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.is-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.drawer { display: none; }

/* ── ПЕРВЫЙ ЭКРАН ───────────────────────────────────────── */
.hero {
  position: relative; min-height: max(560px, 100svh); padding: 100px var(--g) 130px;
  display: grid; grid-template-columns: minmax(0, 56%) 1fr; align-items: center; overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: url('/assets/bg/hero.jpg') 22% 50% / cover no-repeat;
  transform: scaleX(-1);
  animation: hero-in 2.4s var(--ease) both;
}
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 36%, color-mix(in oklab, var(--paper) 72%, transparent) 60%, color-mix(in oklab, var(--paper) 45%, transparent)); }
@keyframes hero-in { from { opacity: 0; } }
.hero__text { grid-column: 1; display: grid; gap: 28px; justify-items: start; }
.hero__h { font-size: clamp(40px, 5.6vw, 108px); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.hero__h span { color: var(--sage); }
.hero__h > span, .hero__h > i { display: block; white-space: nowrap; font-style: normal; }
.hero__h > i { color: inherit; }
.hero__sub { font-size: clamp(19px, 1.5vw, 23px); color: var(--ink2); max-width: 30ch; }
.hero__cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.hero__facts {
  position: absolute; left: var(--g); right: var(--g); bottom: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line);
}
.hero__facts div { padding: 16px 0 0; }
.hero__facts dt { font-size: 13px; color: var(--ink3); }
.hero__facts dd { font-size: 18px; font-weight: 500; }

/* ── СЕКЦИИ ─────────────────────────────────────────────── */
.sec { padding: var(--sec) var(--g); }
.sec--paper2 { background: var(--paper2); }
.sec__head { display: grid; gap: 16px; justify-items: start; margin-bottom: min(clamp(40px, 5vw, 80px), 5svh); max-width: 60rem; }
.sec__head h2, .final h2, .labband h2, .lform h2 { font-size: clamp(32px, min(4.2vw, 7.5svh), 72px); font-weight: 500; line-height: 1.04; letter-spacing: -.035em; white-space: nowrap; }
.sec__lead { font-size: 19px; color: var(--ink2); max-width: 60ch; }

/* ── ПУТИ: строка раскрывается вниз ─────────────────────── */
.paths { border-bottom: 1px solid var(--line); }
.prow { border-top: 1px solid var(--line); }
.prow:last-child { border-bottom: 1px solid var(--line); }
.prow summary {
  position: relative; list-style: none; cursor: pointer; display: grid; grid-template-columns: clamp(64px, 6vw, 112px) minmax(0, 1fr) minmax(0, 1fr) 44px;
  gap: 24px; align-items: center; padding: clamp(18px, 1.8vw, 26px) 0;
}
.prow summary::-webkit-details-marker { display: none; }
.prow__no { font-size: clamp(36px, 3.4vw, 60px); font-weight: 300; line-height: 1; letter-spacing: -.05em; color: var(--c); }
.prow__t b { display: block; font-size: clamp(24px, 2vw, 34px); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.prow__t small { font-size: 15px; color: var(--ink3); }
.prow__res { font-size: 17px; color: var(--ink2); max-width: 44ch; }
.prow__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, box-shadow .3s; }
.prow__go i { position: relative; width: 16px; height: 16px; }
.prow__go i::before, .prow__go i::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1.6px; background: currentColor; transition: transform .4s var(--ease); }
.prow__go i::after { transform: rotate(90deg); }
.prow[open] .prow__go { background: var(--c); color: var(--on-accent); box-shadow: none; }
.prow[open] .prow__go i::after { transform: rotate(0); }
.prow summary:hover .prow__go { box-shadow: inset 0 0 0 1px var(--c); }
.prow summary:hover .prow__t b { color: var(--c); }
.pbody { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 3vw, 56px); padding: 4px 0 clamp(28px, 3vw, 44px) calc(clamp(64px, 6vw, 112px) + 24px); animation: fade .5s var(--ease); }
.pbody__main { display: grid; gap: 20px; align-content: start; }
.ic { width: 22px; height: 22px; flex: none; }
.req { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 8px; background: #F3E3B5; color: #3D3418; }
.req .ic { color: #8A6A1F; margin-top: 2px; }
.req small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8A6A1F; }
.req span { font-size: 17px; font-weight: 500; }
.req--open { background: color-mix(in oklab, var(--sage) 14%, var(--paper)); color: var(--ink); }
.req--open .ic, .req--open small { color: var(--sage); }
.make { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.make li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); font-size: 16px; line-height: 1.3; }
.make .ic { color: var(--c); }
.pbody__cap { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-bottom: -12px; }
.pbody__prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 20px; counter-reset: m; }
.pbody__prog li { display: flex; gap: 8px; padding: 8px 0; font-size: 15px; line-height: 1.35; color: var(--ink2); border-top: 1px solid var(--line2); }
.pbody__prog span { color: var(--c); font-weight: 600; font-variant-numeric: tabular-nums; }
.pbody__buy { display: grid; gap: 4px; align-content: start; justify-items: start; padding: 22px; border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); }
.pbody__buy small { font-size: 13px; color: var(--ink3); }
.pbody__date { font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.pbody__buy > span { color: var(--ink2); font-size: 15px; }
.pbody__price { margin: 10px 0 8px; font-size: 24px !important; font-weight: 500; color: var(--ink) !important; }
.pbody__buy .link { margin-top: 8px; font-size: 15px; }
.pbody__wait { color: var(--ink3); }

/* ── РАБОТЫ УЧАСТНИКОВ ──────────────────────────────────── */
.cases {
  --per: 3; display: grid; grid-auto-flow: column; grid-template-rows: repeat(5, auto);
  grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); --gap: clamp(20px, 2.4vw, 40px); gap: 0 var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.cases::-webkit-scrollbar { display: none; }
.case { grid-row: span 5; display: grid; grid-template-rows: subgrid; row-gap: 12px; scroll-snap-align: start; }
.case__shot { margin: 0 0 6px; height: clamp(160px, 30svh, 320px); overflow: hidden; border-radius: 6px; background: var(--card); box-shadow: 0 0 0 1px var(--line2); }
.case__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.case:hover .case__shot img { transform: scale(1.03); }
.case__meta { font-size: 14px; color: var(--ink3); }
.case__t { font-size: clamp(21px, 1.6vw, 26px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.case__q { font-size: 16px; line-height: 1.5; color: var(--ink2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.case__by { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.slider__nav { display: flex; align-items: center; gap: 16px; }
/* Стрелки слайдера — справа от заголовка, а не строкой под карточками */
#cases .sec__head { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
#cases .sec__head > :not(.slider__nav) { grid-column: 1; }
#cases .sec__head .slider__nav { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.slider__btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, opacity .25s; }
.slider__btn svg { width: 20px; height: 20px; }
.slider__btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.slider__btn:disabled { opacity: .3; cursor: default; }
.slider__count { min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; color: var(--ink3); font-size: 15px; }
.case__av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--sage); color: var(--on-accent); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

/* ── МЕТОД: открытый шаг растягивается, остальные сжимаются ── */
.mswap { display: grid; gap: 8px; }
.mswap p { padding: 14px 18px; border-radius: 6px; background: var(--paper); font-size: 17px; }
.mswap p:first-child { color: var(--ink3); text-decoration: line-through; text-decoration-color: var(--seal); }
.mswap small { display: block; font-size: 12px; color: var(--ink3); text-decoration: none; }
.mnotes { display: grid; padding: 8px 18px; border-radius: 6px; background: var(--paper); }
.mnotes li { padding: 7px 0; border-bottom: 1px solid var(--line2); font-size: 16px; }
.mnotes li:last-child { border: 0; }
.mio { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mio div { padding: 12px 16px; border-radius: 6px; background: var(--paper); }
.mio dt { font-size: 13px; color: var(--ink3); }
.mio dd { font-size: 17px; font-weight: 500; }
.mchecks { display: grid; gap: 8px; }
.mchecks li { display: grid; grid-template-columns: 22px 150px 1fr; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 6px; background: var(--paper); font-size: 16px; }
.mchecks .ic { color: var(--sage); }
.mchecks span { color: var(--ink2); }
.mres { display: grid; gap: 12px; }
.mres__time { display: flex; align-items: baseline; gap: 16px; font-size: 32px; font-weight: 500; letter-spacing: -.02em; }
.mres__time s { font-size: 20px; color: var(--ink3); text-decoration-color: var(--seal); }
.mtab { border-collapse: collapse; width: 100%; font-size: 16px; }
.mtab th { text-align: left; font-size: 13px; font-weight: 500; color: var(--ink3); padding: 0 0 6px; }
.mtab td { padding: 8px 12px 8px 0; border-top: 1px solid var(--line2); }
.mtab td.ask { color: var(--seal); font-weight: 500; }

/* ── LAB-ПОЛОСА: тот же тёмно-зелёный мир, что и страница Lab ── */
.labband { position: relative; isolation: isolate; overflow: hidden; min-height: 76svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); align-items: center; gap: 40px; padding: var(--sec) var(--g); background: var(--paper); color: var(--ink); }
.labband__in { display: grid; gap: 24px; justify-items: start; }
.labband__sub { font-size: clamp(19px, 1.5vw, 23px); color: var(--ink2); max-width: 34ch; }
.labband__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 17px; color: var(--ink3); }
.labband__meta span { display: inline-flex; align-items: center; gap: 8px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--seal); animation: lab-dot 2s var(--ease) infinite; }
.ensomark { position: relative; justify-self: center; width: min(100%, 500px); aspect-ratio: 1; color: var(--ink); }
.ensomark svg { width: 100%; height: 100%; overflow: visible; }
.enso-reveal { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ensomark.is-drawn .enso-reveal { animation: draw 2.6s cubic-bezier(.55, .1, .35, 1) forwards; }
.ensomark__stamp { position: absolute; right: 4%; bottom: 4%; width: 22%; aspect-ratio: 1; border-radius: 8%; display: grid; place-items: center; background: #D9603F; color: var(--paper); font: 400 clamp(48px, 6vw, 92px)/1 var(--brush); opacity: 0; transform: scale(1.25) rotate(-4deg); }
.ensomark.is-drawn .ensomark__stamp { animation: stamp .5s var(--ease) 2.4s forwards; }
@keyframes stamp { to { opacity: 1; transform: rotate(-4deg); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── АВТОР ──────────────────────────────────────────────── */
.author__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(14px, 2.4svh, 32px) clamp(32px, 5vw, 96px); align-items: start; }
/* Цитата и цифры — слева, рассказ — справа: раньше цифры шли отдельной строкой
   на всю ширину, и блок на ноутбуке не помещался в экран */
.author__q { grid-column: 1; font-size: clamp(24px, min(2.6vw, 5.2svh), 44px); font-weight: 400; line-height: 1.14; letter-spacing: -.03em; }
.author__q::before { content: '«'; color: var(--sage); }
.author__q::after { content: '»'; color: var(--sage); }
.author__side { grid-column: 2; grid-row: 1; display: grid; gap: 12px; font-size: clamp(16px, 2.4svh, 18px); color: var(--ink2); }
.author__stats { grid-column: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: clamp(12px, 2.2svh, 20px); border-top: 1px solid var(--line); }
.author__stats dt { font-size: clamp(30px, min(3.2vw, 6svh), 56px); font-weight: 300; letter-spacing: -.04em; line-height: 1; color: var(--sage); }
.author__stats dd { font-size: 15px; color: var(--ink3); margin-top: 6px; max-width: 18ch; }
.author__areas { grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.author__areas li { padding: clamp(12px, 2svh, 18px) 20px; border-radius: 8px; background: var(--paper2); display: grid; gap: 6px; align-content: start; transition-delay: var(--d); }
.author__areas b { font-size: 20px; font-weight: 500; }
.author__areas span { color: var(--ink2); font-size: 16px; }
.author__creds { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; padding-top: clamp(12px, 2.2svh, 20px); border-top: 1px solid var(--line); }
.author__creds div:last-child { grid-column: 1 / -1; }
.author__creds dt { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.author__creds dd { font-size: 16px; margin-top: 4px; }

/* ── РАСПИСАНИЕ ЗАНЯТИЙ: развилка + ближайшая дата по каждому пути ── */
.sch__empty { color: var(--ink3); }
.fork { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: min(clamp(28px, 3vw, 48px), 4svh); max-width: 920px; }
.fork button { display: grid; gap: 2px; text-align: left; padding: 16px 20px; border-radius: 10px; transition: background .3s, color .3s; }
.fork b { font-size: 20px; font-weight: 500; }
.fork span { font-size: 15px; color: var(--ink3); }
.fork button:hover { background: var(--line2); }
.fork button[aria-selected=true] { background: var(--ink); color: var(--paper); }
.fork button[aria-selected=true] span { color: color-mix(in oklab, var(--paper) 70%, transparent); }
.srows { border-bottom: 1px solid var(--line); }
.srow { display: grid; grid-template-columns: minmax(64px, .3fr) 1.3fr 1.6fr .6fr .6fr auto; gap: 24px; align-items: center; padding: clamp(14px, 2.6svh, 28px) 0; border-top: 1px solid var(--line); animation: fade .45s var(--ease); }
.srow__no { font-size: 44px; font-weight: 300; letter-spacing: -.05em; line-height: 1; color: var(--c); }
.srow__t b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.srow__more { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.srow__more button { font-size: 14px; padding: 4px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); }
.srow__more button[aria-pressed=true] { background: var(--c); color: var(--on-accent); box-shadow: none; }
.srow__when b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.srow__when small { font-size: 15px; color: var(--ink3); }
.srow__seats { font-size: 17px; color: var(--ink2); white-space: nowrap; }
.srow__price { font-size: 20px; font-weight: 500; white-space: nowrap; }
.srow.is-empty .srow__when { grid-column: 3 / 6; }
.dots { display: flex; gap: 6px; margin-top: 10px; }
.dots i { position: relative; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--c); }
.dots i.is-done { background: var(--c); }
.dots i.is-gate { margin-left: 8px; }
.dots i.is-gate::after { content: ''; position: absolute; left: -8px; top: -3px; bottom: -3px; width: 1.5px; background: var(--seal); }
.srow.is-closed .srow__t, .srow.is-closed .srow__when b { color: var(--ink3); }
.srow.is-closed .srow__no { opacity: .45; }
.sch__legend { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--ink3); }
.sch__legend .dots { margin: 0; }
.sch__gate { width: 1.5px; height: 14px; background: var(--seal); margin-left: 18px; }
.srow__cta.link { font-size: 16px; white-space: nowrap; justify-self: end; }
.srow__cta.link svg { width: 16px; height: 16px; }

/* ── ВОПРОСЫ ────────────────────────────────────────────── */
.faq__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 80px); }
.qa { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; font-size: clamp(19px, 1.5vw, 23px); font-weight: 500; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; width: 22px; height: 22px; position: relative; margin-top: 4px; }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 3px; right: 3px; top: 10px; height: 1.6px; background: currentColor; transition: transform .35s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa p { padding: 0 0 26px; color: var(--ink2); max-width: 54ch; animation: fade .4s var(--ease); }

/* ── ФИНАЛ И ФОРМЫ ──────────────────────────────────────── */
.final { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 120px); align-items: start; border-top: 1px solid var(--line); padding-block: clamp(64px, 7vw, 112px); }
.final__sub { font-size: 19px; color: var(--ink2); max-width: 40ch; }
.final__form { grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.final__form .wide { grid-column: 1 / -1; }
.form__foot { display: flex; align-items: center; gap: 20px; }
.form__foot .btn { margin: 0; }
.final__l { display: grid; gap: 24px; align-content: start; }
.final__cta { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.form { display: grid; gap: 18px; }
.form__title { font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.field { display: grid; gap: 4px; }
.field span { font-size: 14px; color: var(--ink3); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0;
  border-bottom: 1px solid var(--line); border-radius: 0; padding: 6px 0; resize: vertical; transition: border-color .25s;
}
.field select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--ink3) 50%) calc(100% - 10px) 55% / 6px 6px no-repeat, linear-gradient(-45deg, transparent 50%, var(--ink3) 50%) calc(100% - 4px) 55% / 6px 6px no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
[data-bad] input, [data-bad] textarea, [data-bad] select { border-color: var(--seal); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink2); }
.check input { margin-top: 4px; accent-color: var(--sage); width: 16px; height: 16px; flex: none; }
.check a { text-decoration: underline; text-underline-offset: 2px; }
[data-bad].check { color: var(--seal); }
.form .btn { justify-self: start; margin-top: 6px; }
.form__msg { font-size: 15px; color: var(--ink3); min-height: 1.5em; }
.form__msg.is-bad { color: var(--seal); }
.hp { position: absolute; left: -9999px; }
.done { display: grid; gap: 10px; justify-items: start; padding: 28px 0; border-top: 1px solid var(--line); animation: fade .5s var(--ease); }
.done svg { width: 40px; color: var(--sage); }
.done b { font-size: 22px; font-weight: 500; }
.done small { color: var(--ink3); }

/* ── ПОДВАЛ ─────────────────────────────────────────────── */
.foot { padding: 56px var(--g) 32px; border-top: 1px solid var(--line); display: grid; gap: 40px; }
.foot__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot__top nav { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--ink2); }
.foot__top nav a:hover { color: var(--ink); }
.foot__legal { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink3); }
.foot__legal span { display: flex; gap: 20px; flex-wrap: wrap; }
.foot__legal a:hover { color: var(--ink); }
.proto-badge { position: fixed; right: 12px; bottom: 12px; z-index: 60; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--seal); padding: 4px 10px; border-radius: 99px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--seal); }

/* ── ПОЯВЛЕНИЕ ──────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.hero .rv:nth-child(2) { --d: 90ms; } .hero .rv:nth-child(3) { --d: 180ms; } .hero .rv:nth-child(4) { --d: 260ms; }

/* ════ СТРАНИЦА ПУТИ ════════════════════════════════════ */
.phero { position: relative; isolation: isolate; min-height: 88svh; padding: 140px var(--g) 56px; display: grid; align-content: end; gap: 28px; overflow: hidden; }
.phero__bg { position: absolute; inset: 0; z-index: -1; background: var(--img) center / cover; animation: hero-in 2.4s var(--ease) both; }
.phero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in oklab, var(--paper) 30%, transparent), color-mix(in oklab, var(--paper) 88%, transparent) 70%); }
.phero__no { font-size: clamp(90px, 14vw, 240px); font-weight: 200; line-height: .8; letter-spacing: -.06em; color: var(--c); }
.phero h1 { font-size: clamp(46px, 6vw, 108px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.phero__sub { font-size: clamp(19px, 1.6vw, 24px); color: var(--ink2); }
.phero__facts { display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 24px; align-items: end; padding-top: 24px; border-top: 1px solid var(--line); }
.phero__facts dt { font-size: 13px; color: var(--ink3); }
.phero__facts dd { font-size: 19px; font-weight: 500; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 56px); border-top: 1px solid var(--line); }
.cols3 li { padding-top: 24px; font-size: clamp(20px, 1.7vw, 26px); font-weight: 500; letter-spacing: -.015em; line-height: 1.25; }
.cols3 li small { display: block; font-size: 14px; font-weight: 600; color: var(--c, var(--sage)); margin-bottom: 8px; }
.entry { margin-top: 40px; display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; font-size: 19px; color: var(--ink2); }
.entry b { color: var(--ink); font-weight: 600; }
.prog { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.mod { border-top: 2px solid var(--c); padding-top: 20px; }
.mod h3 { font-size: 15px; font-weight: 600; color: var(--c); margin-bottom: 14px; }
.mod li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line2); font-size: 18px; }
.mod li span { width: 26px; flex: none; color: var(--ink4); font-variant-numeric: tabular-nums; }
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 80px); }
.tools h3 { font-size: 15px; font-weight: 600; color: var(--ink3); margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.tools li { padding: 12px 0; border-bottom: 1px solid var(--line2); font-size: 18px; }

/* ════ СТРАНИЦА LAB (инверсия) ══════════════════════════ */
.lhero { position: relative; min-height: max(560px, 100svh); padding: 100px var(--g) 48px; display: grid; grid-template-columns: minmax(0, 58%) 1fr; align-items: center; gap: 40px; }
.lhero__text { display: grid; gap: 28px; justify-items: start; }
.lhero h1 { font-size: clamp(44px, 5.6vw, 100px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.lhero h1 span { color: var(--sage); }
.lhero__sub { font-size: clamp(19px, 1.5vw, 23px); color: var(--ink2); max-width: 34ch; }
.lhero__cta { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.lhero__get { align-self: center; padding: clamp(24px, 3vw, 40px); border-radius: 10px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); }
.lhero__gett { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); margin-bottom: 8px; }
.lhero__get ol { counter-reset: g; }
.lhero__get li { counter-increment: g; display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; padding: 18px 0; border-bottom: 1px solid var(--line2); }
.lhero__get li:last-child { border: 0; padding-bottom: 0; }
.lhero__get li::before { content: '0' counter(g); grid-row: span 2; font-size: 15px; font-weight: 600; color: var(--sage); padding-top: 3px; }
.lhero__get b { font-size: 20px; font-weight: 500; }
.lhero__get span { font-size: 16px; color: var(--ink2); }
.stagebody__in { margin-top: min(clamp(32px, 4vw, 56px), 3svh); }
/* Выпуск — самый плотный блок Lab: заголовок чуть меньше общего, чтобы
   этап целиком помещался в экран вместе со шкалой этапов */
#issue .sec__head { margin-bottom: min(clamp(24px, 3vw, 48px), 3svh); gap: 10px; }
#issue .sec__head h2 { font-size: clamp(30px, min(3.6vw, 6.4svh), 64px); }
.intake { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 64px); align-items: start; }
/* Правила приёма — двумя столбцами, форма — полями попарно: этап целиком
   помещается в экран вместе с заголовком и шкалой этапов */
.intake__rules { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 2.4vw, 40px); }
.intake .form { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.intake .form > :not(.field):not(.hp), .intake .field--wide { grid-column: 1 / -1; }
.intake h3 { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink3); margin: 0 0 6px; }

.intake li { display: grid; gap: 2px; padding: clamp(8px, 1.6svh, 14px) 0; border-bottom: 1px solid var(--line2); }
.intake li b { font-size: clamp(17px, 2.6svh, 20px); font-weight: 500; }
.intake li span { color: var(--ink2); font-size: 15px; line-height: 1.45; }
.intake .form { gap: clamp(10px, 1.8svh, 18px) 24px; padding: clamp(20px, min(2.4vw, 3.4svh), 40px); border-radius: 10px; background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); }
.vote__note { color: var(--ink2); margin-bottom: clamp(12px, 2.2svh, 24px); }
.cand { grid-template-rows: auto auto auto 1fr auto auto; }
.cand__who { font-size: 15px; color: var(--ink3); margin-top: -10px; }
.cand__now { color: var(--ink2); }
.cand__more { justify-self: start; font-size: 15px; }
.case-dlg { width: min(760px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: clamp(28px, 4vw, 48px); border: 0; border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: auto; }
.case-dlg[open] { display: grid; gap: 20px; animation: dlg .45s var(--ease); }
.case-dlg::backdrop { background: rgba(14, 18, 11, .7); backdrop-filter: blur(4px); }
@keyframes dlg { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.case-dlg__x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.case-dlg__x::before, .case-dlg__x::after { content: ''; position: absolute; left: 12px; right: 12px; top: 19px; height: 1.6px; background: currentColor; transform: rotate(45deg); }
.case-dlg__x::after { transform: rotate(-45deg); }
.case-dlg__lt { font-size: 14px; color: var(--ink3); padding-right: 48px; }
.case-dlg h3 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.case-dlg__full { font-size: 18px; color: var(--ink2); }
.case-dlg__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.case-dlg small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 8px; }
.case-dlg li { position: relative; padding: 6px 0 6px 18px; font-size: 16px; color: var(--ink2); }
.case-dlg li::before { content: ''; position: absolute; left: 0; top: 1.05em; width: 7px; height: 1.5px; background: var(--c); }
.case-dlg__foot:not(:empty) { display: grid; gap: 10px; }
.case-dlg__foot .btn { justify-self: start; }
.cand__foot { display: grid; gap: 10px; padding-top: 6px; }
.cand__vote { width: 100%; justify-content: center; }
.cand__res { font-size: 14px; color: var(--ink3); }
.cand.is-mine { box-shadow: inset 0 0 0 1.5px var(--sage); }
.cand.is-mine .cand__res { color: var(--sage); font-weight: 600; }
.winner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 72px); padding: clamp(22px, min(3vw, 4svh), 48px); border-radius: 10px; background: var(--paper2); box-shadow: inset 0 0 0 1.5px var(--c); }
.winner__l { display: grid; gap: clamp(8px, 1.4svh, 14px); align-content: start; justify-items: start; }
.winner__tag { font-size: 14px; font-weight: 600; color: var(--paper); background: var(--c); padding: 4px 12px; border-radius: 99px; }
.winner h3 { font-size: clamp(28px, min(3vw, 5.6svh), 52px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.winner__l p { color: var(--ink2); font-size: 19px; }
.winner__r { display: grid; gap: clamp(8px, 1.6svh, 16px); }
.winner__r dt { font-size: 13px; color: var(--ink3); }
.winner__r dd { font-size: 18px; }
.others { margin-top: auto; padding-top: 8px; display: grid; justify-self: stretch; }
.winner__l { grid-template-rows: auto auto auto auto auto 1fr; }
.others li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--line2); color: var(--ink2); }
.others b { font-weight: 500; color: var(--ink3); }
.lform__sub { margin-top: 16px; color: var(--ink2); font-size: 19px; }
.lform > div:first-child { display: grid; gap: 20px; align-content: start; }
.lform .form { grid-template-columns: 1fr !important; max-width: 40rem; }
.grove .btn { background: var(--ink); color: var(--paper); }
.grove .btn:hover { background: var(--sage); }
.count { display: inline-flex; gap: 6px; align-items: baseline; font-variant-numeric: tabular-nums; color: var(--ink2); }
.count b { font-size: 22px; font-weight: 500; color: var(--ink); }

/* Этапы выпуска: шкала из пяти шагов, она же переключатель в прототипе */
.stages { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.stage { position: relative; padding: clamp(10px, 1.8svh, 18px) 12px 0 0; text-align: left; display: grid; gap: 2px; color: var(--ink4); transition: color .3s; }
.stage::before { content: ''; position: absolute; top: -1px; left: 0; right: 12px; height: 2px; background: var(--ink4); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease); }
.stage small { font-size: 13px; }
.stage b { font-size: 18px; font-weight: 500; }
.stage.is-past { color: var(--ink3); } .stage.is-past::before { transform: none; }
.stage.is-now { color: var(--ink); } .stage.is-now::before { transform: none; background: var(--seal); height: 3px; }
.stage.is-now small { color: var(--seal); font-weight: 600; }
.stage:hover { color: var(--ink2); }

.cands { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.cand { display: grid; gap: clamp(10px, 1.8svh, 18px); align-content: start; padding: clamp(18px, min(2vw, 3.4svh), 28px); border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); }
.cand__lt { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink3); }
.cand__lt b { font-size: 40px; font-weight: 300; letter-spacing: -.04em; color: var(--ink); }
.cand h3 { font-size: clamp(22px, 1.8vw, 28px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.cand dl { display: grid; gap: 12px; }
.cand dt { font-size: 13px; color: var(--ink3); }
.cand dd { font-size: 16px; color: var(--ink2); }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--v); background: var(--c); transform-origin: left; animation: grow 1.4s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.cand.is-win { box-shadow: inset 0 0 0 1.5px var(--sage); }
.stagebody { min-height: clamp(260px, 42svh, 420px); }
.player { position: relative; height: clamp(240px, 40svh, 520px); border-radius: 8px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; gap: 12px; text-align: center; }
.player__in { display: grid; gap: 14px; justify-items: center; }
.player__in b { font-size: clamp(24px, 2.4vw, 36px); font-weight: 500; letter-spacing: -.02em; }
.player__in span { color: var(--ink3); }
.player .live { width: 12px; height: 12px; }
.arts { margin-top: 20px; color: var(--ink2); }
.arts dt { font-size: 13px; color: var(--ink3); }
.arts dd { font-size: 18px; font-weight: 500; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 56px); border-top: 1px solid var(--line); }
.rules li { padding-top: 24px; display: grid; gap: 8px; }
.rules b { font-size: clamp(22px, 1.9vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.rules span { color: var(--ink2); }
.arch { border-top: 1px solid var(--line); }
.arow { border-bottom: 1px solid var(--line); }
.arow summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 80px 2fr 1fr 1fr auto 40px; gap: 24px; align-items: center; padding: 24px 0; }
.arow summary::-webkit-details-marker { display: none; }
.arow summary b { font-size: 36px; font-weight: 300; color: var(--ink3); letter-spacing: -.04em; }
.arow summary strong { font-size: 22px; font-weight: 500; }
.arow summary span { color: var(--ink2); }
.arow summary i { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.arow summary i::before, .arow summary i::after { content: ''; position: absolute; left: 13px; right: 13px; top: 19px; height: 1.6px; background: currentColor; transition: transform .35s var(--ease); }
.arow summary i::after { transform: rotate(90deg); }
.arow[open] summary i::after { transform: rotate(0); }
.arow summary:hover strong { color: var(--sage); }
.arow__body { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 3vw, 56px); padding: 0 0 36px 104px; animation: fade .45s var(--ease); }
.arow__body .player { height: auto; aspect-ratio: 16 / 9; }
.arow__side { display: grid; gap: 24px; align-content: start; }
.arow__side > p { color: var(--ink2); }
.arow__side small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); margin-bottom: 6px; }
.times li { display: flex; gap: 14px; padding: 6px 0; border-bottom: 1px solid var(--line2); font-size: 16px; }
.times span { font-variant-numeric: tabular-nums; color: var(--sage); font-weight: 500; }
.files { display: grid; gap: 8px; }
.files a { display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 8px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); font-size: 16px; transition: background .25s; }
.files a:hover { background: var(--paper2); }
.files svg { width: 20px; height: 20px; color: var(--sage); }
.files em { font-style: normal; font-size: 12px; color: var(--ink3); }
.lform { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(40px, 6vw, 120px); }
.lform .form { grid-template-columns: 1fr 1fr; column-gap: 32px; }
.lform .form .wide { grid-column: 1 / -1; }

/* ── АДАПТИВ ────────────────────────────────────────────── */
/* ── DAO CORP: обучение команд ───────────────────────────── */
.chero h1 { font-size: clamp(42px, min(5.2vw, 9svh), 96px); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.chero h1 span { color: var(--sage); }
.cgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); border-top: 1px solid var(--line); }
.cget { display: grid; gap: 10px; align-content: start; padding-top: clamp(18px, 3svh, 32px); transition-delay: var(--d); }
.cget__no { font-size: clamp(36px, min(3.4vw, 6svh), 60px); font-weight: 300; letter-spacing: -.05em; line-height: 1; color: var(--sage); }
.cget b { font-size: clamp(20px, 1.6vw, 26px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.cget p { color: var(--ink2); font-size: 17px; }
.cpaths { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px); }
.cpath { display: grid; gap: 12px; align-content: start; padding: clamp(22px, min(2.4vw, 4svh), 36px); border-radius: 10px; background: var(--paper); box-shadow: inset 0 3px 0 var(--c), inset 0 0 0 1px var(--line); transition-delay: var(--d); }
.cpath__no { font-size: clamp(40px, min(4vw, 7svh), 72px); font-weight: 300; letter-spacing: -.05em; line-height: 1; color: var(--c); }
.cpath h3 { font-size: clamp(24px, 2vw, 34px); font-weight: 500; letter-spacing: -.025em; }
.cpath__sub { color: var(--ink3); font-size: 16px; }
.cpath__res { display: grid; gap: 4px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 18px; }
.cpath__res small { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.cnote { margin-top: clamp(18px, 3svh, 32px); color: var(--ink2); font-size: 18px; max-width: 60ch; }
.csteps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; }
.cstep { position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(18px, 3svh, 28px) clamp(16px, 2vw, 32px) 0 0; border-top: 1px solid var(--line); transition-delay: var(--d); }
.cstep::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.cstep__no { font-size: 14px; font-weight: 600; letter-spacing: .08em; color: var(--sage); }
.cstep b { font-size: clamp(22px, 1.8vw, 30px); font-weight: 500; letter-spacing: -.02em; }
.cstep p { color: var(--ink2); font-size: 17px; max-width: 26ch; }
@media (max-width: 1200px) { .cgets, .csteps { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 860px) { .cgets, .cpaths, .csteps { grid-template-columns: 1fr; } }

/* ── РЕЗИНОВАЯ ВЁРСТКА ПО ВЫСОТЕ ──────────────────────────
   Размеры заданы через clamp(минимум, доля ширины/высоты окна, максимум),
   поэтому блок сам подстраивается под экран. На невысоких ноутбучных окнах
   (до 820px видимой высоты) дополнительно ужимаются самые длинные блоки,
   чтобы каждый помещался в экран целиком под шапкой. */
/* ── КАЖДЫЙ БЛОК — ЭКРАН ───────────────────────────────────
   На компьютере секция занимает ровно видимую часть окна под шапкой
   (80px — это и высота шапки, и отступ прокрутки к якорю), содержимое
   стоит по центру. Так переход по меню показывает блок целиком, без
   «хвостов» соседних блоков, на любом мониторе */
@media (min-width: 861px) and (min-height: 560px) {
  /* Воздух между блоками: отступ сверху и снизу у каждой секции */
  :root { --sec: clamp(56px, 11svh, 140px); }
  .sec, .labband { min-height: calc(100svh - 80px); }
  .sec:not(.final):not(.lform) { display: flex; flex-direction: column; justify-content: center; }
  .final, .lform { align-content: center; }
  .final { padding-block: var(--sec); }
}

@media (min-width: 861px) and (max-height: 820px) {
  :root { --sec: clamp(48px, 8svh, 72px); }
  .author__areas li { padding: 12px 16px; gap: 4px; }
  .author__areas b { font-size: 18px; }
  .author__areas span { font-size: 15px; line-height: 1.45; }
  .author__side { font-size: 16px; }
  .case__q { -webkit-line-clamp: 2; }
  .author__q { font-size: clamp(24px, min(2.4vw, 4.6svh), 40px); }
  .author__stats dd { font-size: 14px; }
  #author .sec__head { margin-bottom: 3svh; }
}

@media (max-width: 1200px) {
  .menu { display: none; }
  .nav { grid-template-columns: auto 1fr; }
  .pbody { grid-template-columns: 1fr; padding-left: 0; }
  .pbody__prog { grid-template-columns: repeat(2, 1fr); }
  .cases { --per: 2; }
  .srow { grid-template-columns: 56px 1fr 1.3fr auto; }
  .srow__seats, .srow__price { grid-column: 3; }
  .srow__seats { grid-row: 2; } .srow__price { display: none; }
  .srow__cta { grid-column: 4; grid-row: 1 / 3; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .cab span { display: none; }
  .sec__head h2, .final h2, .labband h2, .lform h2 { white-space: normal; font-size: clamp(30px, 8vw, 44px); }
  .burger { display: block; }
  .labbtn small { display: none; }
  .drawer { display: grid; position: fixed; inset: 72px 0 auto; padding: 8px var(--g) 28px; background: var(--paper); box-shadow: 0 1px 0 var(--line); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: .3s var(--ease); }
  .drawer[data-open] { visibility: visible; opacity: 1; transform: none; }
  .drawer a { padding: 14px 0; font-size: 22px; border-bottom: 1px solid var(--line2); }
  .hero { grid-template-columns: 1fr; align-items: end; padding-bottom: 200px; }
  .hero__bg { background-position: 18% 64px; background-size: auto 46%; background-color: var(--paper); }
  .hero__bg::after { background: linear-gradient(180deg, transparent 26%, var(--paper) 46%); }
  .hero__text { gap: 20px; }
  .hero__facts { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .hero__facts div:last-child { grid-column: 1 / -1; }
  .sec[data-g]::after { font-size: 160px; opacity: .04; }
  .prow summary { grid-template-columns: 52px 1fr 44px; gap: 8px 14px; }
  .prow__no { font-size: 40px; align-self: start; }
  .prow__res { grid-column: 2; grid-row: 2; font-size: 16px; }
  .prow__go { width: 44px; height: 44px; grid-column: 3; grid-row: 1; }
  .pbody__prog, .make { grid-template-columns: 1fr; }
  .cases { --per: 1.15; --gap: 16px; }
  .mchecks li { grid-template-columns: 22px 1fr; }
  .mchecks span { grid-column: 2; }
  .labband, .lhero { grid-template-columns: 1fr; }
  .ensomark { width: 64%; grid-row: 1; }
  .author__grid, .author__areas, .author__creds { grid-template-columns: 1fr; }
  .author__q, .author__side, .author__stats, .author__creds, .author__areas { grid-column: auto; grid-row: auto; }
  .author__creds div:last-child { grid-column: auto; }
  #cases .sec__head { grid-template-columns: minmax(0, 1fr); }
  #cases .sec__head .slider__nav { grid-column: 1; grid-row: auto; }
  .author__stats { grid-template-columns: 1fr 1fr; }
  .final__form { grid-template-columns: 1fr; }
  .fork { grid-template-columns: 1fr; }
  .srow { grid-template-columns: 44px 1fr; gap: 6px 14px; }
  .srow__no { font-size: 34px; grid-row: span 4; align-self: start; }
  .srow > * { grid-column: 2 !important; grid-row: auto !important; }
  .srow__price { display: block; }
  .srow__cta { justify-self: start; margin-top: 10px; }
  .faq__list, .final, .lform, .lform .form, .rules, .cands, .stages, .arts, .intake, .winner, .intake__rules, .intake .form { grid-template-columns: 1fr; }
  .stages { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stage b { font-size: 13px; }
  .stage small { display: none; }
  .arow summary { grid-template-columns: 44px 1fr 40px; gap: 4px 14px; }
  .arow summary b { font-size: 28px; }
  .arow summary i { grid-column: 3; grid-row: 1; }
  .arow summary > span { grid-column: 2; }
  .arow__body, .case-dlg__cols { grid-template-columns: 1fr; padding-left: 0; }
  .player { height: auto; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
