/* Шрифты хранятся на сайте (не зависят от Google): Literata и Golos Text, кириллица и латиница */
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/golostext-normal-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/golostext-normal-latin.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: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/golostext-normal-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/golostext-normal-latin.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: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/golostext-normal-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Golos Text'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/golostext-normal-latin.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: 'Literata'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/literata-italic-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/literata-italic-latin.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: 'Literata'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/literata-normal-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/literata-normal-latin.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: 'Literata'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/literata-normal-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/literata-normal-latin.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; }

/* ==========================================================
   Герман Тренин — внутренняя планка дохода
   Зелёная тема: овёс, шалфей, хвоя + золото из логотипа.
   ========================================================== */

:root {
  --oat: #ECE8E0;        /* основной фон */
  --surface: #F6F4EF;    /* светлые секции */
  --pine: #23302A;       /* текст и тёмные секции */
  --pine-2: #2C3B33;     /* тёмная поверхность */
  --pine-3: #1B2520;     /* подвал */
  --sage: #7D9482;       /* линии, дуги */
  --sage-deep: #3F5A4C;  /* кнопки */
  --gold: #A9843E;       /* золото логотипа на светлом */
  --gold-light: #D2AE63; /* золото логотипа на тёмном */
  --muted: #59645E;
  --line: #D9DED6;
  --on-dark: #ECE8E0;
  --on-dark-muted: rgba(236, 232, 224, .76);

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --space: clamp(72px, 10vw, 136px);
  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; background: var(--oat); color: var(--pine); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--surface); color: var(--pine); }
.skip-link:focus { top: 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.h2 { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.08; margin-bottom: 20px; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 36em; margin: 0; }
.link { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 5px; }
.link:hover { color: var(--sage-deep); }

/* Пометка для данных, которые ещё не заполнены. Перед запуском их не должно остаться. */
.todo { outline: 1px dashed var(--gold); outline-offset: 2px; color: var(--gold); padding: 0 .2em; }
.final .todo, .footer .todo { color: var(--gold-light); outline-color: var(--gold-light); }

/* ---------- Кнопки ---------- */
.btn { display: inline-block; background: var(--sage-deep); color: #F6F4EF; padding: 16px 26px; border: 0; border-radius: 6px; font-weight: 500; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.btn:hover { background: #34503F; }
.btn--gold { background: var(--gold-light); color: var(--pine); }
.btn--gold:hover { background: #DDBC78; }
.btn--ghost { background: transparent; border: 1px solid rgba(246, 244, 239, .45); padding: 15px 24px; }
.btn--ghost:hover { background: transparent; border-color: var(--gold-light); }
.btn--small { padding: 11px 18px; font-size: 15px; }

.mark { width: 34px; height: 34px; color: var(--gold); flex: none; }

/* ---------- Шапка: тёмная, как фон логотипа, чтобы его золото и свечение работали ---------- */
.header { position: sticky; top: 0; z-index: 20; background: rgba(24, 33, 28, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid rgba(210, 174, 99, .14); color: var(--on-dark); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { position: relative; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-compact { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 54px; width: auto; flex: none; }
/* Главная: знак логотипа вверху крупный и выходит из шапки на обложку (фон у них одного цвета),
   при прокрутке уменьшается до размера шапки. Надпись — текстом справа от знака. */
/* Знак стоит отдельным элементом слева от надписи (не поверх неё) и свисает вниз на обложку */
.header--cover .brand { align-self: flex-start; height: var(--header-h); gap: 18px; }
.header--cover .brand-mark { flex: none; align-self: flex-start; width: 230px; margin-top: 6px; transition: width .35s ease, margin-top .35s ease; }
.header--cover.is-scrolled .brand-mark, .header--cover.menu-open .brand-mark { width: 120px; margin-top: 11px; }
.brand-name-ru { display: none !important; }
.header--cover:not(.is-scrolled) { background: #1A241F; border-bottom-color: transparent; }
.brand-text b { font: 500 17px/1.1 var(--serif); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.brand-text small { font-size: 12px; letter-spacing: .03em; color: var(--on-dark-muted); opacity: 1; margin-top: 6px; white-space: nowrap; }
.brand b { display: block; font: 500 19px/1.1 var(--serif); white-space: nowrap; color: #F3EFE7; }
.brand small { display: block; font-size: 12.5px; color: var(--gold-light); opacity: .85; margin-top: 3px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; white-space: nowrap; }
.nav a { text-decoration: none; color: var(--on-dark-muted); }
.nav a:hover { color: #fff; }
.nav .nav-cta { display: none; }
.menu-toggle { display: none; margin-left: auto; padding: 10px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--on-dark); transition: transform .25s, opacity .25s; }
.menu-toggle span + span { margin-top: 6px; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Обложка (первый экран) ---------- */
/* Тёмно-зелёная обложка в тон логотипу; мягкий тёплый свет за фото — как свечение в логотипе */
.cover { position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(ellipse 55% 70% at 78% 72%, rgba(210, 174, 99, .16), transparent 70%),
    radial-gradient(ellipse 80% 70% at 25% 55%, #2B3B32, transparent 70%),
    #1A241F; }
/* Под крупным логотипом заголовок начинается ниже */
.header--cover ~ main .cover-title { padding-top: 72px; }
.cover-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); grid-template-areas: "title title" "text photo"; column-gap: clamp(32px, 5vw, 72px); }
.cover-title { grid-area: title; padding-top: clamp(44px, 5vw, 72px); font-size: clamp(38px, 4.7vw, 64px); line-height: 1.05; letter-spacing: -0.01em; max-width: 15.5em; color: #F3EFE7; }
.cover-text { grid-area: text; align-self: start; padding: 30px 0 clamp(56px, 7vw, 96px); }
.cover .lead { color: var(--on-dark-muted); margin: 0 0 34px; }
/* Первая фраза подзаголовка — крючок: светлее и чуть крупнее основного текста */
.cover .lead--hook { margin-bottom: 14px; color: #F3EFE7; font: italic 400 clamp(20px, 1.9vw, 24px)/1.4 var(--serif); }
/* Фото начинается сразу под заголовком, чуть правее, и уходит в нижний край обложки */
.cover-photo { grid-area: photo; position: relative; margin: 0; padding: 0 12% 0 14%; align-self: end; }
.cover-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 999px 999px 0 0; filter: saturate(.9);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.cover .arc path { stroke: var(--gold-light); opacity: .8; }
.cover .arc { height: 84%; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta-note { font-size: 14px; color: var(--muted); }
.cover .cta-note { color: var(--on-dark-muted); }
.proof { display: flex; align-items: center; gap: 14px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(236, 232, 224, .14); }
.proof .link { text-decoration-color: var(--gold-light); }
.faces { display: flex; flex: none; }
.faces button { padding: 0; border: 2px solid #1A241F; border-radius: 50%; margin-left: -10px; background: none; cursor: pointer; transition: transform .2s; }
.faces button:first-child { margin-left: 0; }
.faces button:hover { transform: translateY(-3px); position: relative; z-index: 1; }
.faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.proof p { margin: 0; font-size: 15px; line-height: 1.45; }
.creds { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 18px; font-size: 14px; color: var(--on-dark-muted); }
.creds span::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-light); margin-right: 8px; vertical-align: middle; }

/* Фото в арке и две дуги-скобки вокруг: «открытая скобка» из метода */
.arch { position: relative; padding: 0 8%; }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: 999px 999px 0 0; box-shadow: 0 40px 70px -40px rgba(35, 48, 42, .55); }
.arc { position: absolute; top: 10%; height: 90%; width: 54px; overflow: visible; }
.arc path { fill: none; stroke: var(--sage); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.arc--l { left: 0; } .arc--r { right: 0; }
/* Единственное движение при загрузке: дуги прорисовываются вокруг фото, текст виден сразу */
.cover .arc path { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.6s cubic-bezier(.6, 0, .2, 1) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Узнаёте себя ---------- */
.pain { background: var(--surface); }
.pain-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.pain-list li { border-top: 1px solid var(--line); padding: 20px 0 20px 30px; position: relative; font-size: 18px; }
.pain-list li::before { content: ""; position: absolute; left: 0; top: 33px; width: 14px; height: 1.5px; background: var(--gold); }
.pain-turn { margin: 48px 0 0; font: italic 400 clamp(21px, 2.2vw, 28px)/1.4 var(--serif); max-width: 30em; }

/* ---------- Вы по адресу: «сейчас → после работы» ---------- */
.solution { background: var(--surface); }
.brand-intro { display: none; }

/* Боли: крупно и контрастно — человек должен узнать себя и задержаться */
.pain-title { max-width: 18em; }
.pain-lead { color: var(--pine); font-size: clamp(18px, 1.6vw, 21px); }
.pains { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.pains li { position: relative; padding: 18px 0 18px 30px; border-top: 1px solid var(--line); font: 400 clamp(18px, 1.6vw, 21px)/1.45 var(--serif); color: var(--pine); }
.pains li::before { content: ""; position: absolute; left: 0; top: 31px; width: 16px; height: 2px; background: var(--gold); }
/* Результаты: отдельный спокойный подблок после вывода */
.gains { margin-top: 48px; padding: 32px clamp(20px, 4vw, 44px); background: var(--oat); border-radius: 4px; }
.gains-title { font: 500 22px/1.3 var(--serif); color: var(--sage-deep); margin-bottom: 16px; }
.gains-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 48px; }
.gains-list li { position: relative; padding-left: 26px; font-size: 16px; color: var(--muted); }
.gains-cta { margin-top: 28px; }
.gains-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--sage-deep); }

/* ---------- Почему знания не помогают ---------- */
.why .lead + .lead { margin-top: 18px; }
/* Абзац про диагностику выделен золотой линией слева — тот же приём, что у цитаты в «Обо мне» */
.why .why-note { margin-top: 28px; padding-left: 22px; border-left: 2px solid var(--gold); }
.why .why-note .lead { color: var(--pine); }
.why .why-note .lead + .lead { margin-top: 14px; }
.why-cta { margin-top: 32px; }

/* ---------- Как это работает ---------- */
.how { background: var(--pine); color: var(--on-dark); }
.how .lead { color: var(--on-dark-muted); }
.phases { display: grid; grid-template-columns: 1fr 1.25fr 1fr; margin-top: 56px; align-items: stretch; }
.phase { padding: 32px 28px; }
.phase .n { font-size: 15px; color: var(--gold-light); }
.phase h3 { font-size: 24px; line-height: 1.2; margin: 10px 0 12px; }
.phase p { margin: 0; color: var(--on-dark-muted); font-size: 16px; }
.phase--mid { position: relative; background: var(--pine-2); border-radius: 4px; padding: 32px 52px; }
.phase--mid svg { position: absolute; top: -6%; height: 112%; width: 34px; }
.phase--mid svg path { fill: none; stroke: var(--gold-light); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.phase--mid .l { left: 6px; } .phase--mid .r { right: 6px; }

/* ---------- Отзывы: облако и мини-плеер ---------- */
.reviews { overflow: hidden; }
.reviews-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.cloud-hint { margin-top: 14px; font-size: 16px; }
.cloud { margin-top: 44px; display: grid; gap: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cloud-row { display: flex; width: max-content; align-items: center; gap: 22px; animation: drift-left 70s linear infinite; }
.cloud-row[data-dir="right"] { animation-name: drift-right; animation-duration: 85s; padding-left: 60px; }
.cloud:hover .cloud-row, .cloud:focus-within .cloud-row { animation-play-state: paused; }
@keyframes drift-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes drift-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.bubble { position: relative; flex: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.bubble img { width: var(--s, 96px); height: var(--s, 96px); border-radius: 50%; object-fit: cover; box-shadow: 0 14px 30px -16px rgba(35, 48, 42, .6); transition: transform .3s ease; }
.bubble::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid transparent; transition: border-color .3s; }
.bubble:hover img, .bubble:focus-visible img { transform: scale(1.07); }
.bubble:hover::after, .bubble.is-playing::after { border-color: var(--gold); }
.bubble:focus-visible { outline: none; }
.bubble:focus-visible::after { border-color: var(--sage-deep); border-width: 2px; }
.bubble .pl { position: absolute; right: 2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.bubble .pl::after { content: ""; border-left: 9px solid var(--sage-deep); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 2px; }
.bubble.is-playing .pl { background: var(--gold); }
.bubble.is-playing .pl::after { border-left-color: #fff; }

.mini { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 250px; border-radius: 14px; overflow: hidden; background: var(--pine); color: var(--on-dark); box-shadow: 0 30px 60px -20px rgba(20, 28, 24, .6); animation: mini-in .35s ease; }
.mini[hidden] { display: none; }
@keyframes mini-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.mini video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: #000; }
.mini-bar { display: flex; align-items: center; gap: 6px; padding: 10px 10px 12px 14px; }
.mini-who { flex: 1; min-width: 0; font-size: 13px; line-height: 1.3; }
.mini-who b { display: block; font-weight: 600; }
.mini-who[hidden] + .mini-btn { margin-left: auto; } /* без подписи кнопки ‹ › уходят вправо */
.mini-who span { color: var(--on-dark-muted); }
.mini-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(236, 232, 224, .3); background: none; font-size: 20px; line-height: 1; cursor: pointer; }
.mini-btn:hover { border-color: var(--gold-light); color: var(--gold-light); }
.mini-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(20, 28, 24, .6); color: #fff; font-size: 20px; cursor: pointer; }

/* ---------- Обо мне ---------- */
.about { background: var(--surface); }
.about .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-photo { position: sticky; top: calc(var(--header-h) + 26px); }
.about-photo img { width: 100%; border-radius: 4px; }
.about-text p { margin: 0 0 16px; max-width: 34em; }
.mission { margin: 28px 0 0; padding-left: 22px; border-left: 2px solid var(--gold); font: italic 400 clamp(20px, 2vw, 25px)/1.45 var(--serif); max-width: 26em; }
.mission-cta { margin-top: 24px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts b { display: block; font: 500 30px/1.1 var(--serif); }
.facts span { font-size: 14px; color: var(--muted); }
.diplomas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.diploma { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: #fff; cursor: zoom-in; overflow: hidden; }
.diploma img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; transition: transform .3s; }
.diploma:hover img { transform: scale(1.04); }
.diplomas-cap { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

.viewer { max-width: min(92vw, 900px); max-height: 92vh; padding: 16px; border: 0; border-radius: 6px; background: var(--surface); color: var(--pine); }
.viewer::backdrop { background: rgba(27, 37, 32, .86); }
.viewer img { max-height: 76vh; width: auto; margin: 0 auto; }
.viewer p { margin: 12px 0 0; font-size: 15px; }
.viewer .btn { margin-top: 12px; }

/* ---------- Как начать ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 52px; position: relative; list-style: none; padding: 0; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: var(--sage); opacity: .5; }
.step { position: relative; padding-top: 46px; }
.step .n { position: absolute; top: 0; width: 27px; height: 27px; border-radius: 50%; background: var(--oat); border: 1.5px solid var(--sage); display: grid; place-items: center; font-size: 13px; color: var(--sage-deep); }
.step h3 { font-size: 24px; margin-bottom: 4px; }
.step .meta { font-weight: 600; color: var(--sage-deep); margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); }
.steps-cta { margin-top: 48px; }

/* ---------- Вопросы ---------- */
.faq { background: var(--surface); }
.faq .wrap { max-width: 880px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 400 21px/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font: 300 28px var(--sans); color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 40em; }

/* ---------- Запись ---------- */
.final { background: var(--pine); color: var(--on-dark); }
.final .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.final .arch { padding: 0 12%; }
.final .arch img { object-position: 50% 15%; box-shadow: none; }
.final .arc path { stroke: var(--gold-light); }
.final h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; margin-bottom: 18px; }
.final p { color: var(--on-dark-muted); max-width: 32em; margin: 0 0 30px; }
.final .note { font-size: 14px; margin: 18px 0 0; }
/* QR-код WhatsApp: нужен только на компьютере, на телефоне есть кнопка */
.qr { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(236, 232, 224, .14); }
.qr img { width: auto; height: 112px; border-radius: 10px; flex: none; }
.final .qr p { margin: 0; font-size: 14px; max-width: 22em; }
.footer a { color: rgba(236, 232, 224, .85); }
@media (max-width: 900px) { .qr { display: none; } }

/* ---------- Подвал ---------- */
.footer { background: var(--pine-3); color: rgba(236, 232, 224, .7); padding: 48px 0; font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: auto 1fr 1fr; gap: 40px; align-items: center; }
.footer-logo { width: 240px; }
.footer-brand b { display: block; font: 500 20px/1.2 var(--serif); color: #F3EFE7; }
.footer-brand span { color: var(--gold-light); opacity: .85; }
.footer p { margin: 0 0 6px; }
.legal { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.legal a { color: rgba(236, 232, 224, .85); }

/* ---------- Служебные страницы ---------- */
.doc { background: var(--surface); padding: clamp(48px, 8vw, 96px) 0; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.1; margin-bottom: 18px; }
.doc h2 { font: 500 22px/1.3 var(--serif); margin: 40px 0 12px; }
.doc p, .doc li { max-width: 40em; }
.doc .intro { color: var(--muted); font-size: 18px; }
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li { position: relative; padding: 14px 0 14px 28px; border-top: 1px solid var(--line); }
.doc-list li::before { content: ""; position: absolute; left: 0; top: 27px; width: 14px; height: 1.5px; background: var(--gold); }
.doc-note { margin-top: 40px; padding: 22px 24px; background: var(--oat); border-left: 2px solid var(--gold); }
.doc-note p { margin: 0 0 8px; }
.draft { margin-bottom: 32px; padding: 16px 20px; border: 1px dashed var(--gold); color: var(--gold); }

/* ---------- Ноутбуки и планшеты: меню прячется в кнопку, чтобы шапка с логотипом и надписью не теснилась ---------- */
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .header .btn { margin-left: 0; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: #18211C; border-bottom: 1px solid rgba(210, 174, 99, .2); font-size: 18px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(236, 232, 224, .1); color: var(--on-dark); }
}

/* ---------- Планшеты ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .about .wrap, .final .wrap { grid-template-columns: 1fr; }
  /* Телефон: заголовок, под ним фото со смещением вправо, затем текст и кнопка */
  .cover-grid { grid-template-columns: 1fr; grid-template-areas: "title" "photo" "text"; }
  .cover-title { padding-top: 32px; }
  .cover-photo { margin: 18px 0 0 auto; width: 62%; max-width: 320px; padding: 0 6%; }
  .cover-text { padding-top: 8px; }
  .phases { grid-template-columns: 1fr; gap: 16px; }
  .about-photo { position: static; }
  .footer .wrap { grid-template-columns: 1fr; }
}

/* ---------- Телефоны ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header .wrap { gap: 10px; }
  .brand small { display: none; }
  .brand b { font-size: 16px; }
  .brand-logo { height: 40px; }
  /* Телефон: знак логотипа по центру шапки, крупный вверху и маленький при прокрутке;
     надпись переезжает на второй экран (блок .brand-intro) */
  .header--cover .brand { position: absolute; left: 50%; top: 0; transform: translateX(-50%); gap: 8px; align-items: center; }
  .header--cover .brand-mark { width: 110px; margin-top: 0; align-self: center; }
  .header--cover.is-scrolled .brand-mark, .header--cover.menu-open .brand-mark { width: 92px; margin-top: 0; }
  /* Телефон: рядом со знаком — имя по-русски, подпись скрыта */
  .header--cover .brand-name-lat, .header--cover .brand-text small { display: none; }
  .header--cover .brand-name-ru { display: block !important; font: 500 16px/1.1 var(--serif); letter-spacing: 0; text-transform: none; color: #F3EFE7; white-space: nowrap; }
  .header--cover ~ main .cover-title { padding-top: 36px; }  .brand-intro { display: block; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
  .brand-intro b { display: block; font: 500 20px/1.2 var(--serif); letter-spacing: .14em; text-transform: uppercase; color: #7E5F26; }
  .brand-intro span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
  /* На телефоне кнопка записи переезжает в меню: на обложке есть большая кнопка */
  .header .btn--small { display: none; }
  .nav .nav-cta { display: block; margin-top: 12px; padding: 14px; border: 0; border-radius: 6px; background: var(--gold-light); color: var(--pine); text-align: center; font-weight: 500; }
  .header .btn--small { padding: 9px 12px; font-size: 14px; }
  .menu-toggle { padding: 8px; }
  .mark { width: 28px; height: 28px; }
  .pain-list, .steps, .facts, .pains, .gains-list { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step { padding-top: 0; padding-left: 44px; }
  .step .n { left: 0; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { text-align: center; }
  /* Одиночные кнопки после блоков — по центру */
  .why-cta, .gains-cta, .steps-cta, .mission-cta { text-align: center; }
  .cta-note { text-align: center; }
  .diplomas { grid-template-columns: repeat(2, 1fr); }
  .phase--mid { padding: 28px 40px; }
  .bubble img { width: calc(var(--s, 96px) * .72); height: calc(var(--s, 96px) * .72); }
  .cloud-row { gap: 14px; }
  .mini { right: 12px; bottom: 12px; width: 168px; }
  .mini-who { font-size: 12px; }
  .mini-btn { width: 28px; height: 28px; font-size: 17px; }
}

/* ---------- Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .cloud { overflow-x: auto; }
  .cloud-row { animation: none !important; }
}

/* Подвал: полный логотип и строка прав */
.footer-logo { width: 220px; height: auto; }
.copyright { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid rgba(236, 232, 224, .1); font-size: 13px; text-align: center; color: rgba(236, 232, 224, .55); }
@media (max-width: 900px) { .footer-logo { width: min(320px, 86vw); margin: 0 auto 8px; } }

/* Золотые нейросети по краям (js/circuits.js): поверх фона секций, под шапкой, не ловят клики */
.circuits { position: fixed; inset: 0; z-index: 5; pointer-events: none; }

/* ---------- Статьи: список и страница статьи ---------- */
.crumbs { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.blog .wrap { max-width: 1100px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; margin: 40px 0; }
.posts:not(:has(.post-card)) { display: none; }
.posts:has(.post-card) ~ .posts-empty { display: none; }
.post-card a { display: block; height: 100%; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card a:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(35, 48, 42, .5); }
.post-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-card-body { padding: 18px 20px 22px; }
.post-card time { font-size: 13px; color: var(--muted); }
.post-card h2 { font: 400 22px/1.25 var(--serif); margin: 6px 0 8px; color: var(--pine); }
.post-card p { margin: 0; font-size: 15px; color: var(--muted); }
.posts-empty { margin: 36px 0 20px; color: var(--muted); }

.article .wrap { max-width: 760px; }
.article h1 { font-size: clamp(30px, 4vw, 44px); }
.article-meta { margin: -6px 0 24px; font-size: 14px; color: var(--muted); }
.article figure { margin: 28px 0; }
.article figure img { width: 100%; height: auto; border-radius: 6px; }
.article figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.article p, .article li { line-height: 1.75; }
.article h2 { font: 400 clamp(24px, 3vw, 30px)/1.2 var(--serif); margin: 44px 0 14px; }
.article blockquote { margin: 28px 0; padding-left: 22px; border-left: 2px solid var(--gold); font: italic 400 21px/1.5 var(--serif); }
.toc { margin: 28px 0; padding: 18px 22px; background: var(--oat); border-radius: 6px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.article-cta { margin: 52px 0 24px; padding: 30px clamp(20px, 4vw, 36px); background: var(--pine); color: var(--on-dark); border-radius: 6px; }
.article-cta h2 { margin: 0 0 10px; color: #F3EFE7; }
.article-cta p { color: var(--on-dark-muted); margin: 0 0 20px; }
