/* Product Builder Marathon — стили. Токены совпадают с casesociety.kz (index.html):
   белый фон, текст #111, вторичный #666, линии #e7e7e7, плашки #f7f7f7, акцент #34C759, Inter. */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5f5f5f;          /* чуть темнее #666 сайта: контраст 6.4:1 на белом */
  --line: #e7e7e7;
  --soft: #f7f7f7;
  --green: #34C759;          /* фирменный акцент: заливки, кнопки */
  --green-ink: #1f7a3a;      /* зелёный для текста на светлом фоне (AA) */
  --mint: #e6f6ea;
  --dark: #111111;
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --gutter: 16px;
  --wrap: 1180px;
  --sec: 72px;
  --shadow: 0 1px 2px rgba(17,17,17,.04), 0 12px 32px rgba(17,17,17,.06);
  --hdr: 64px;
}
@media (min-width: 768px) { :root { --gutter: 24px; --sec: 104px; --hdr: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 Inter, Arial, sans-serif; font-feature-settings: "cv11", "ss01"; overflow-x: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- типографика ---------- */
.h2 { font-size: clamp(30px, 5.2vw, 54px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 700; max-width: 18ch; text-wrap: balance; }
.h2--narrow { max-width: 20ch; }
.h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 700; }
.text { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 60ch; }
@media (min-width: 768px) { .text { font-size: 19px; } }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); font: 600 16px/1 Inter, Arial, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--green); border-color: var(--green); color: #fff; }
.btn--accent:hover { background: #2fb350; border-color: #2fb350; }
.btn--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
/* зелёный с белым текстом: делаем текст жирнее и крупнее — крупный текст, AA 3:1 */
.btn--accent { font-size: 17px; font-weight: 700; text-shadow: 0 1px 0 rgba(0,0,0,.08); }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr__in { display: flex; align-items: center; gap: 16px; height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { width: 46px; height: auto; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__word { font-weight: 700; letter-spacing: -0.03em; font-size: 19px; }
.logo__tag { margin-top: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.nav { display: none; }
.hdr__cta { margin-left: auto; }
.burger { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav.open { display: flex; position: absolute; top: calc(100% + 6px); left: var(--gutter); right: var(--gutter); flex-direction: column; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); }
.nav.open a { padding: 14px 14px; border-radius: 10px; text-decoration: none; font-size: 17px; font-weight: 500; }
.nav.open a:hover { background: var(--soft); }
/* на телефоне шапка: логотип + меню; кнопку заявки берут на себя первый экран и закреплённая панель снизу */
@media (max-width: 559px) { .logo__tag { display: none; } .hdr__cta { display: none; } .burger { margin-left: auto; } }
@media (min-width: 1024px) {
  .burger { display: none; }
  .nav { display: flex; gap: 30px; margin-left: auto; font-size: 15px; }
  .nav a { text-decoration: none; color: var(--muted); transition: color .15s; }
  .nav a:hover, .nav a.is-active { color: var(--ink); }
  .hdr__cta { margin-left: 18px; }
  .logo__mark { width: 54px; } .logo__word { font-size: 21px; }
}

/* ---------- hero ---------- */
.hero { padding: 36px 0 var(--sec); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; gap: 44px; }
.pill { display: inline-flex; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); }
.hero__title { margin-top: 22px; font-size: clamp(46px, 12.5vw, 104px); line-height: .9; letter-spacing: -0.065em; font-weight: 800; max-width: 9.5ch; }
.hero__offer { margin-top: 22px; font-size: clamp(21px, 2.6vw, 28px); line-height: 1.22; letter-spacing: -0.025em; font-weight: 600; max-width: 27ch; text-wrap: balance; }
.hero__lead { margin-top: 16px; color: var(--muted); font-size: 17px; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__actions .btn { flex: 1 1 200px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.facts li { padding: 9px 14px; background: var(--soft); border-radius: 999px; font-size: 15px; }
.facts b { font-weight: 600; }
@media (min-width: 768px) { .hero { padding-top: 64px; } .hero__actions .btn { flex: 0 0 auto; } .hero__lead { font-size: 19px; } }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 56px; }
}

/* лаборатория на первом экране */
.lab { position: relative; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--soft); box-shadow: var(--shadow); overflow: hidden; }
.lab__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.lab__dots { display: inline-flex; gap: 6px; }
.lab__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.lab__title { font-size: 13px; color: var(--muted); }
.lab__path { display: flex; gap: 6px; padding: 14px 16px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.lab__path li { flex: none; padding: 6px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.lab__path li.done { color: var(--green-ink); background: var(--mint); border-color: transparent; }
.lab__path li.now { color: #fff; background: var(--ink); border-color: var(--ink); }
.lab__board { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px; }
.note, .scope, .flow { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.note__k { font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; }
.note__meta { font-size: 12.5px; color: var(--muted); }
.tag-ok { align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--green-ink); background: var(--mint); padding: 3px 8px; border-radius: 999px; }
.sk { display: block; height: 8px; border-radius: 999px; background: #e9e9e9; }
.sk--dark { background: #d4d4d4; height: 10px; }
.sk--90 { width: 90%; } .sk--80 { width: 80%; } .sk--70 { width: 70%; } .sk--60 { width: 60%; } .sk--50 { width: 50%; } .sk--40 { width: 40%; }
.flow { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 6px; flex-wrap: nowrap; }
.flow__n { flex: none; font-size: 12.5px; font-weight: 600; padding: 7px 10px; border-radius: 10px; border: 1px dashed #cfcfcf; color: var(--muted); }
.flow__n--on { border: 1px solid var(--ink); color: var(--ink); background: #fff; }
.flow__a { flex: 1 1 8px; min-width: 8px; height: 2px; background: repeating-linear-gradient(90deg, #bdbdbd 0 5px, transparent 5px 9px); position: relative; }
.flow__a::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: #bdbdbd; border-right: 0; }
.scope { gap: 9px; }
.chk { position: relative; padding-left: 24px; font-size: 12.5px; color: var(--muted); }
.chk::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #cfcfcf; background: #fff; }
.chk.on { color: var(--ink); }
.chk.on::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; border-color: var(--green); }
.phone { display: flex; flex-direction: column; gap: 9px; padding: 22px 12px 14px; background: #fff; border: 1px solid var(--ink); border-radius: 22px; position: relative; }
.phone__notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 34px; height: 5px; border-radius: 999px; background: var(--ink); }
.phone__card { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 12px; background: var(--soft); }
.phone__btn { height: 30px; border-radius: 999px; background: var(--green); margin-top: 2px; }
@media (min-width: 560px) {
  .lab__board { grid-template-columns: 1fr 1fr 0.8fr; grid-template-areas: "p h ph" "f f ph" "s s ph"; }
  .note--problem { grid-area: p; } .note--hyp { grid-area: h; } .flow { grid-area: f; } .scope { grid-area: s; } .phone { grid-area: ph; }
}
@media (max-width: 559px) {
  .phone { display: none; } .lab__path li:nth-child(-n+2) { display: none; }
  .scope { grid-column: 1 / -1; }
  .flow__n:first-child, .flow__a:nth-child(2) { display: none; }
}
/* единственная «живая» деталь страницы: текущий этап мягко пульсирует */
@keyframes nowpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(52,199,89,.0); } 50% { box-shadow: 0 0 0 5px rgba(52,199,89,.25); } }
.lab__path li.now { animation: nowpulse 2.4s ease-in-out infinite; }

/* ---------- общие секции ---------- */
.sec { padding: var(--sec) 0; border-bottom: 1px solid var(--line); }

/* why */
.split { display: grid; gap: 32px; }
.needs { background: var(--soft); border-radius: var(--r-lg); padding: 24px; }
.needs__lead { font-weight: 600; margin-bottom: 14px; }
.needs__list { counter-reset: n; display: grid; gap: 2px; }
.needs__list li { counter-increment: n; display: flex; gap: 14px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); font-size: 17px; }
.needs__list li:first-child { border-top: 0; }
.needs__list li::before { content: counter(n); flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 13px; font-weight: 700; background: #fff; border: 1px solid var(--line); transform: translateY(-1px); }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 48px; }
.chain__s { position: relative; display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 16px; background: #fff; }
.chain__s + .chain__s::before { content: ""; width: 18px; height: 2px; background: var(--ink); position: absolute; left: -13px; top: 50%; }
.chain__s--key { background: var(--ink); color: #fff; border-color: var(--ink); }
.chain__s--end { background: var(--green); color: #fff; border-color: var(--green); }
.why__sum { margin-top: 24px; font-size: 18px; font-weight: 500; max-width: 46ch; }
@media (max-width: 559px) {
  .chain { flex-direction: column; align-items: stretch; gap: 14px; }
  .chain__s { justify-content: center; }
  .chain__s + .chain__s::before { width: 2px; height: 14px; left: 50%; top: -15px; }
}
@media (min-width: 1024px) { .split { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; } .needs { padding: 28px 32px; } }

/* build */
.kinds { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 40px; }
.kind { display: flex; flex-direction: column; gap: 12px; }
.kind figcaption { font-weight: 600; font-size: 16px; }
.kind__ui { aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--soft); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.ui-chat { justify-content: flex-end; }
.bub { display: block; height: 22px; border-radius: 12px; background: #fff; border: 1px solid var(--line); width: 70%; }
.bub--out { align-self: flex-end; background: var(--mint); border-color: transparent; width: 58%; }
.bub--s { width: 44%; }
.ui-chat__keys { display: flex; gap: 6px; } .ui-chat__keys i { flex: 1; height: 22px; border-radius: 8px; background: var(--ink); opacity: .85; }
.ui-ai { justify-content: space-between; }
.ui-ai__ans { display: flex; flex-direction: column; gap: 7px; padding: 10px; background: #fff; border-radius: 12px; border: 1px solid var(--line); }
.ui-ai__input { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; background: #fff; border-radius: 999px; border: 1px solid var(--ink); }
.ui-ai__input .sk { flex: 1; } .ui-ai__input i { width: 22px; height: 22px; border-radius: 50%; background: var(--green); flex: none; }
.ui-saas { flex-direction: row; gap: 10px; }
.ui-saas__side { width: 22%; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.ui-saas__main { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 6px; } .bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: #dcdcdc; } .bars i:nth-child(4) { background: var(--green); }
.ui-market { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ui-market i { border-radius: 10px; background: #fff; border: 1px solid var(--line); position: relative; }
.ui-market i::after { content: ""; position: absolute; left: 8px; right: 30%; bottom: 8px; height: 7px; border-radius: 999px; background: #e3e3e3; }
.ui-market i:first-child { background: var(--mint); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--muted); }
.chips li:last-child { color: var(--ink); border-style: dashed; border-color: #bdbdbd; }
@media (min-width: 900px) { .kinds { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; } }

/* program */
.weeks { display: grid; gap: 14px; margin-top: 40px; counter-reset: w; }
.week { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.week__head { display: flex; flex-direction: column; gap: 6px; }
.week__n { display: inline-flex; align-self: flex-start; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.week__t { font-size: 24px; line-height: 1.12; letter-spacing: -0.035em; font-weight: 700; }
.week__goal { font-size: 17px; font-weight: 500; }
.week__tasks { display: grid; gap: 7px; color: var(--muted); font-size: 15.5px; }
.week__tasks li { position: relative; padding-left: 16px; }
.week__tasks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #c8c8c8; }
.week__out { margin-top: auto; padding: 14px; border-radius: var(--r-sm); background: var(--mint); font-size: 15px; font-weight: 600; line-height: 1.35; }
.week__out span { display: block; font-size: 13px; font-weight: 600; color: var(--green-ink); margin-bottom: 4px; }
.caveat { margin-top: 24px; padding: 16px 18px; border-left: 3px solid var(--ink); background: var(--soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 15.5px; color: var(--muted); max-width: 78ch; }
@media (min-width: 768px) { .weeks { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1100px) {
  .weeks { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
  .week { border: 0; border-radius: 0; border-left: 1px solid var(--line); padding: 28px 24px; }
  .week:first-child { border-left: 0; }
  /* дорожка: этапы читаются как одна линия слева направо */
  .weeks::before { content: none; }
  .week__head::after { content: ""; display: block; height: 3px; margin: 14px -24px 0; background: linear-gradient(90deg, var(--ink) 0 100%); opacity: .08; }
  .week:last-child .week__n { background: var(--green); }
  .week__head { min-height: 92px; justify-content: flex-start; }
}

/* ai */
.ai__rows { margin-top: 40px; border-top: 1px solid var(--ink); }
.ai__row { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ai__row dt { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.ai__row dd { color: var(--muted); font-size: 16.5px; }
.tools { display: grid; gap: 14px; margin-top: 32px; }
.tools__lead { color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.tools__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tools__list li { padding: 9px 16px; border-radius: 10px; background: var(--soft); font-weight: 600; font-size: 15px; }
@media (min-width: 768px) {
  .ai__row { grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; padding: 22px 0; }
  .ai__row dt { font-size: 21px; } .ai__row dd { font-size: 18px; }
}
@media (min-width: 1024px) { .tools { grid-template-columns: 1fr auto; align-items: center; } }

/* how */
.cycle { display: grid; gap: 10px; margin-top: 40px; counter-reset: c; }
.cycle li { counter-increment: c; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; padding: 16px 18px; border-radius: var(--r-md); background: var(--soft); }
.cycle li::before { content: counter(c); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; align-self: start; }
.cycle b { font-size: 19px; letter-spacing: -0.02em; }
.cycle span { color: var(--muted); font-size: 15.5px; }
.cycle li:last-child::after { content: "и снова к шагу 1"; grid-column: 2; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--green-ink); }
.rhythm { margin-top: 40px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.rhythm__list { margin-top: 14px; }
.rhythm__list div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.rhythm__list dt { font-weight: 500; }
.rhythm__list dd { color: var(--muted); text-align: right; white-space: nowrap; }
@media (max-width: 420px) { .rhythm__list div { flex-direction: column; gap: 2px; } .rhythm__list dd { text-align: left; white-space: normal; } }
@media (min-width: 1024px) {
  .cycle { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; }
  .cycle li { grid-template-columns: 1fr; row-gap: 8px; padding: 20px; position: relative; }
  .cycle li::before { grid-row: auto; margin-bottom: 8px; }
  .cycle li + li::after { content: ""; position: absolute; left: -12px; top: 34px; width: 12px; height: 2px; background: var(--ink); }
  .cycle li:last-child::after { content: "и снова к шагу 1"; position: static; width: auto; height: auto; background: none; grid-column: auto; }
  .rhythm { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 32px; }
  .rhythm__list { margin-top: 0; }
  .rhythm__list div:first-child { border-top: 0; padding-top: 0; }
}

/* get */
.get__grid { display: grid; gap: 40px; }
.plus { display: grid; gap: 10px; margin-top: 28px; }
.plus li { position: relative; padding-left: 30px; font-size: 17px; }
.plus li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%231f7a3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.files { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; counter-reset: f; }
.files li { counter-increment: f; position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 112px; padding: 14px 14px 16px; border-radius: 14px 26px 14px 14px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15.5px; line-height: 1.25; box-shadow: 0 1px 0 var(--line), 0 3px 0 -1px #fff, 0 4px 0 -1px var(--line); }
.files li::before { content: counter(f, decimal-leading-zero); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.files li::after { content: ""; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px; border-radius: 0 26px 0 10px; background: linear-gradient(225deg, var(--bg) 50%, var(--soft) 50%); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.files__key { background: var(--ink) !important; color: #fff; border-color: var(--ink) !important; }
.files__key::before { color: #bdbdbd !important; }
.files__key::after { background: linear-gradient(225deg, var(--bg) 50%, #333 50%) !important; border-color: var(--ink) !important; }
@media (min-width: 640px) { .files { grid-template-columns: repeat(3, minmax(0,1fr)); } .files li:last-child { grid-column: 1 / -1; min-height: 96px; } }
@media (min-width: 1024px) { .get__grid { grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; } .files { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* who */
.roles { margin-top: 40px; border-top: 1px solid var(--line); }
.roles li { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.roles b { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 700; }
.roles span { color: var(--muted); font-size: 16.5px; }
@media (min-width: 768px) { .roles li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: baseline; } .roles span { font-size: 18px; } }
.need { display: grid; gap: 20px; margin-top: 40px; padding: 26px; border-radius: var(--r-lg); background: var(--soft); }
.need__list { display: grid; gap: 8px; margin-top: 14px; }
.need__list li { position: relative; padding-left: 22px; } .need__list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; border-radius: 3px; background: var(--green); }
.need__note { padding: 18px 20px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); color: var(--muted); }
.need__note b { display: block; color: var(--ink); font-size: 19px; letter-spacing: -0.02em; margin-bottom: 4px; }
@media (min-width: 1024px) { .need { grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px; align-items: center; } }

/* mentor */
.mentor__grid { display: grid; gap: 32px; }
.mentor__photo { display: block; border-radius: var(--r-xl); overflow: hidden; background: var(--soft); border: 1px solid var(--line); max-width: 420px; aspect-ratio: 4 / 5; }
.mentor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.mentor__name { margin-top: 28px; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.mentor__title { color: var(--muted); font-size: 16px; margin-top: 2px; }
.mentor__bio { margin-top: 16px; font-size: 17px; max-width: 60ch; }
.mentor__role { margin-top: 16px; padding: 16px 18px; border-radius: var(--r-md); background: var(--mint); font-size: 16.5px; max-width: 62ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; }
.link-out { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.link-out::after { content: "↗"; text-decoration: none; display: inline-block; }
@media (min-width: 900px) { .mentor__grid { grid-template-columns: minmax(280px, 400px) 1fr; gap: 64px; align-items: start; } .mentor__photo { position: sticky; top: calc(var(--hdr) + 24px); } }

/* pricing */
.offer { display: grid; border-radius: var(--r-xl); background: var(--dark); color: #fff; overflow: hidden; }
.offer__main { padding: 28px 24px; }
.offer__ed { color: #b9b9b9; font-size: 15px; font-weight: 500; }
.offer__title { margin-top: 6px; font-size: clamp(36px, 6vw, 64px); line-height: 1; letter-spacing: -0.055em; font-weight: 800; }
.offer__params { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 26px; }
.offer__params li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 16.5px; }
.offer__params li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.offer__side { display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 28px; background: #1c1c1c; }
.offer__price { font-size: clamp(44px, 7vw, 68px); line-height: 1; letter-spacing: -0.05em; font-weight: 800; }
.offer__note { color: #d6d6d6; font-weight: 500; }
.offer__seats, .offer__start { color: #b9b9b9; font-size: 15px; }
.offer__side .btn { margin-top: 14px; }
@media (min-width: 640px) { .offer__params { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
@media (min-width: 1024px) { .offer { grid-template-columns: 1.4fr 1fr; } .offer__main { padding: 44px; } .offer__side { padding: 44px 40px; justify-content: center; } }
.steps { display: grid; gap: 10px; margin-top: 18px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.steps li::before { content: counter(st); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.steps b { font-size: 16px; } .steps span { color: var(--muted); font-size: 14.5px; }
.steps li:nth-child(4) { border-color: var(--green); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, minmax(0,1fr)); } .steps li { grid-template-columns: 1fr; row-gap: 4px; } .steps li::before { grid-row: auto; margin-bottom: 8px; } }

/* apply */
.apply { background: var(--soft); }
.apply__grid { display: grid; gap: 32px; }
.apply__small { margin-top: 18px; font-size: 15px; color: var(--muted); max-width: 46ch; padding-left: 14px; border-left: 3px solid var(--green); }
.apply__box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px 18px; box-shadow: var(--shadow); }
.apply__box--closed { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
@media (min-width: 768px) { .apply__box { padding: 36px; } }
@media (min-width: 1024px) { .apply__grid { grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; } .apply__intro { position: sticky; top: calc(var(--hdr) + 32px); } }
.form { display: grid; gap: 30px; }
.group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 22px; }
.group + .group { padding-top: 30px; box-shadow: 0 -1px 0 var(--line); }
.group__title { padding: 0; margin-bottom: 4px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.field { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field__label { padding: 0; font-weight: 600; font-size: 16px; }
.field__hint { margin-top: -4px; color: var(--muted); font-size: 14.5px; }
.req { color: var(--green-ink); }
.opt-tag { font-weight: 500; font-size: 13.5px; color: var(--muted); margin-left: 4px; }
.ctl { display: flex; align-items: stretch; border: 1.5px solid #d6d6d6; border-radius: var(--r-sm); background: #fff; transition: border-color .15s, box-shadow .15s; }
.ctl:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(52,199,89,.35); }
.ctl input, .ctl textarea { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; padding: 13px 14px; font: 400 16px/1.45 Inter, Arial, sans-serif; color: var(--ink); border-radius: var(--r-sm); }
.ctl textarea { resize: vertical; min-height: 112px; }
.ctl__pre { display: grid; place-items: center; padding-left: 14px; color: var(--muted); font-weight: 600; }
.ctl--prefix input { padding-left: 4px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 15px; border: 1.5px solid #d6d6d6; border-radius: 999px; font-size: 15px; line-height: 1.25; background: #fff; transition: border-color .15s, background .15s; cursor: pointer; }
.opt:hover span { border-color: #9a9a9a; }
.opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.field.is-invalid .ctl, .field.is-invalid .opt span { border-color: #c4321f; }
.err { color: #b42318; font-size: 14px; font-weight: 500; min-height: 0; }
.err:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--muted); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); cursor: pointer; }
.check a { color: var(--ink); text-underline-offset: 3px; }
.ts:empty { display: none; }
.form__foot { display: grid; gap: 12px; }
.form__submit { min-height: 58px; position: relative; }
.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form.is-loading .spinner { display: inline-block; }
.form.is-loading .form__submit { pointer-events: none; opacity: .85; }
.form__status { font-size: 15px; }
.form__status.is-error { padding: 14px 16px; border-radius: var(--r-sm); background: #fef3f2; color: #8a1c0f; border: 1px solid #fecdca; }
.form__status a { color: inherit; font-weight: 600; }
.done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; outline: none; }
.done__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; }
.done__icon svg { width: 28px; height: 28px; }
.done__title { font-size: 30px; letter-spacing: -0.04em; font-weight: 800; line-height: 1.1; }
.done__text { color: var(--muted); font-size: 17px; max-width: 52ch; }
.done__steps { counter-reset: d; display: grid; gap: 10px; margin: 6px 0 8px; }
.done__steps li { counter-increment: d; display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 16px; }
.done__steps li::before { content: counter(d); width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--green-ink); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.done:not([hidden]) { animation: doneIn .35s ease-out; }
@keyframes doneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* faq */
.faq__grid { display: grid; gap: 28px; }
.faq__list { border-top: 1px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa__q { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; min-height: 56px; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.qa__q::-webkit-details-marker { display: none; }
.qa__i { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); transition: background .15s, transform .2s; }
.qa__i::before, .qa__i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.qa__i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
.qa[open] .qa__i { background: var(--ink); } .qa[open] .qa__i::before { background: #fff; } .qa[open] .qa__i::after { transform: translate(-50%, -50%) rotate(0); background: #fff; }
.qa__q:hover .qa__i { border-color: var(--ink); }
.qa__a { padding: 0 48px 22px 0; color: var(--muted); font-size: 16.5px; max-width: 70ch; }
@media (min-width: 1024px) { .faq__grid { grid-template-columns: .7fr 1.3fr; gap: 56px; align-items: start; } .faq__grid .h2 { position: sticky; top: calc(var(--hdr) + 32px); } }

/* final */
.final { padding: calc(var(--sec) + 8px) 0; }
.final__title { font-size: clamp(36px, 7.4vw, 88px); line-height: .96; letter-spacing: -0.06em; font-weight: 800; max-width: 14ch; text-wrap: balance; }
.final__text { margin-top: 22px; max-width: 46ch; font-size: 19px; color: var(--muted); }
.final .btn { margin-top: 30px; min-width: 240px; }

/* footer */
.ftr { border-top: 1px solid var(--line); padding: 40px 0 calc(110px + env(safe-area-inset-bottom, 0px)); }
.ftr__in { display: grid; gap: 28px; }
.ftr__name { margin-top: 16px; font-weight: 600; } .ftr__name span { font-weight: 400; color: var(--muted); }
.ftr__links { display: grid; gap: 4px; }
.ftr__links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--muted); text-decoration: none; } .ftr__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ftr__copy { color: var(--muted); font-size: 14px; }
.ftr__copy a { color: inherit; }
@media (min-width: 768px) { .ftr { padding-bottom: 40px; } .ftr__in { grid-template-columns: 1fr auto; align-items: start; } .ftr__copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); } }

/* закреплённая кнопка на телефоне */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease; }
.dock.show { transform: none; }
@media (min-width: 768px) { .dock { display: none; } }

/* служебные страницы */
.doc-page .hdr__in { justify-content: space-between; }
.doc { padding: 40px var(--gutter) 72px; max-width: 760px; }
.doc .h3 { margin-top: 36px; margin-bottom: 10px; }
.doc p { margin-top: 10px; color: #333; }
.doc a { text-underline-offset: 3px; }
.doc__date { color: var(--muted) !important; }
.ftr--doc { padding-bottom: 40px; }
.nf { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding-top: 40px; padding-bottom: 40px; }
