/* Лендинг холодного трафика (TikTok/Instagram/YouTube).
   Отдельный файл, а не правка style.css: у остальных страниц сайта
   спокойная «текстовая» вёрстка, а здесь первый экран должен работать
   на телефоне за три секунды. Палитра совпадает с обложками роликов
   и аватаром канала — графит + одно жёлтое пятно, чтобы человек,
   пришедший с ролика, узнал то же самое место. */

:root {
  --ink: #131417;
  --panel: #191b20;
  --panel-2: #1f2228;
  --line: #2b2f37;
  --text: #ECECEE;
  --muted: #9ba0aa;
  --acc: #FFD400;
  --acc-ink: #1C1C1E;
  --r: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  /* липкая шапка не должна накрывать заголовок при переходе по якорю */
  scroll-padding-top: 72px;
  /* 23.09: страница не двигается вбок ни при каких условиях — одна ширина
     сверху донизу. Если что-то внутри окажется шире экрана, оно переносится,
     а не растягивает сайт. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: inherit; }

/* ── шапка: намеренно почти пустая, уводить со страницы некуда ── */
.top {
  border-bottom: 1px solid var(--line);
  background: rgba(19, 20, 23, 0.9);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.top .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 58px; gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; letter-spacing: .01em;
}
.logo .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--acc); flex: none;
}
/* Ссылки в шапке — жёлтым: это единственный вход в инструменты,
   серым они терялись. Пилюля с обводкой, на телефоне не ломается. */
.top nav { display: flex; gap: 8px; flex-wrap: wrap; }
.top nav a {
  color: var(--acc); text-decoration: none; font-size: 15px;
  font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(255, 212, 0, .35);
  background: rgba(255, 212, 0, .08);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.top nav a:hover { background: var(--acc); color: var(--acc-ink); }
@media (max-width: 560px) {
  .top nav a { font-size: 14px; padding: 4px 9px; }
  /* пять пилюль на телефоне уезжают во вторую строку и делают липкую шапку
     в полтора экрана. Второстепенные ссылки на телефоне прячем — они есть
     в подвале и в тексте страницы. */
  .top nav a.opt { display: none; }
}

/* ── первый экран ── */
.hero { position: relative; overflow: hidden; }
.hero::before {
  /* жёлтая дуга — тот же приём, что на аватаре канала */
  content: "";
  position: absolute; right: -300px; top: -300px;
  width: 700px; height: 700px; border-radius: 50%;
  border: 64px solid var(--acc); opacity: .09;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 48px; align-items: center;
  padding-top: 64px; padding-bottom: 64px;
}
.eyebrow {
  display: inline-block; margin: 0 0 18px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--acc);
}
h1 {
  font-size: clamp(30px, 5.2vw, 50px);
  line-height: 1.12; letter-spacing: -.02em;
  font-weight: 680; margin: 0 0 20px;
}
h1 .hl {
  background: linear-gradient(transparent 62%, rgba(255, 212, 0, .28) 62%);
  padding: 0 2px;
}
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 30em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 620; font-size: 17px; text-decoration: none;
  border: 1px solid var(--line); color: var(--text);
  transition: transform .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-acc { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.btn-acc:hover { background: #ffdf3a; }
.btn-ghost:hover { border-color: var(--muted); }
.note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

.portrait {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4 / 5;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(transparent, rgba(19, 20, 23, .75));
}
.portrait .cap {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  font-size: 14px; color: #dcdee2;
}

/* ── секции ── */
section { padding: 60px 0; border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(24px, 3.6vw, 32px); line-height: 1.2;
  letter-spacing: -.01em; margin: 0 0 10px; font-weight: 660;
}
.sub { color: var(--muted); margin: 0 0 30px; max-width: 34em; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 20px;
}
.card svg { width: 26px; height: 26px; stroke: var(--acc); fill: none; stroke-width: 1.6; }
.card h3 { font-size: 18px; margin: 14px 0 8px; font-weight: 620; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* шаги */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.step {
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 20px; position: relative;
}
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--acc); color: var(--acc-ink);
  font-weight: 700; font-size: 15px; margin-bottom: 12px;
}
.step h3 { font-size: 17px; margin: 0 0 7px; font-weight: 620; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── раскрывающиеся блоки (23.09) ───────────────────────────────────────
   Длинные части страницы не читают сверху вниз — их пролистывают. Поэтому
   всё, что нужно не каждому (условия, скидка, порядок работы), лежит
   закрытым: заголовок + одна строка сути, остальное по нажатию. Наверху
   остаётся только то, ради чего человек пришёл. */
.folds { display: grid; gap: 12px; }
.fold {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 0;
}
.fold > summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px;
  position: relative; display: block;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h3 {
  margin: 0; font-size: 19px; font-weight: 640; line-height: 1.3;
}
.fold > summary .hint {
  display: block; margin-top: 6px; color: var(--muted); font-size: 15px;
}
.fold > summary::after {
  content: ""; position: absolute; right: 22px; top: 27px;
  width: 11px; height: 11px; border-right: 2px solid var(--acc);
  border-bottom: 2px solid var(--acc); transform: rotate(45deg);
  transition: transform .15s ease;
}
.fold[open] > summary::after { transform: rotate(-135deg); top: 31px; }
.fold[open] > summary { padding-bottom: 8px; }
.fold[open] > summary .hint { display: none; }
.fold > summary:hover h3 { color: var(--acc); }
.fold .in { padding: 0 22px 24px; }
.fold .in > :first-child { margin-top: 0; }
.fold .steps { grid-template-columns: repeat(3, 1fr); }
.fold .note:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .fold > summary { padding: 17px 46px 17px 18px; }
  .fold > summary h3 { font-size: 17px; }
  .fold .in { padding: 0 18px 20px; }
}

/* 23.09: раскрытая строка не имеет права раздвигать страницу вбок.
   Колонки сетки внутри неё считаются от ширины родителя, а не от
   содержимого, длинные слова переносятся. */
.folds, .fold, .fold .in, .steps, .grid, .step, .card { min-width: 0; }
.step h3, .step p, .card h3, .card p,
.fold > summary h3, .fold > summary .hint { overflow-wrap: anywhere; }

/* про меня */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.about img {
  width: 100%; height: auto; border-radius: 20px; display: block;
  border: 1px solid var(--line);
}
.facts { list-style: none; padding: 0; margin: 0 0 22px; }
.facts li {
  padding: 9px 0 9px 26px; position: relative;
  border-bottom: 1px dashed var(--line); color: var(--text);
}
.facts li:last-child { border-bottom: 0; }
.facts li::before {
  content: ""; position: absolute; left: 4px; top: 19px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--acc);
}

/* знакомство: текст рядом с портретом */
.bio { margin: 0 0 14px; color: var(--text); }
.bio b { font-weight: 640; }

/* цифры вместо денег: социальное доказательство, которое не нарушает бриф */
.numbers {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.numbers li {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 14px; text-align: center;
}
.numbers b {
  display: block; font-size: 28px; line-height: 1.1;
  font-weight: 680; color: var(--acc); letter-spacing: -.02em;
}
.numbers span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* карусель */
.gal { position: relative; margin-top: 26px; }
.gal-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 4px;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-track figure {
  margin: 0; flex: 0 0 auto; width: 248px; scroll-snap-align: start;
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
}
.gal-track img { display: block; width: 100%; height: 310px; object-fit: cover; }
.gal-track figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2;
  font-size: 13px; color: #e4e6ea; text-shadow: 0 1px 6px rgba(0,0,0,.65);
}
.gal-track figure::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(transparent, rgba(19,20,23,.8));
}
.gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(25,27,32,.9); color: var(--text);
  border: 1px solid var(--line); font-size: 22px; line-height: 1;
  transition: opacity .15s ease;
}
.gal-nav.prev { left: -6px; }
.gal-nav.next { right: -6px; }
.gal-nav.off { opacity: 0; pointer-events: none; }

/* финальный призыв */
.final {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; padding: 44px 32px; text-align: center;
}
.final h2 { margin-bottom: 12px; }
.final .sub { margin: 0 auto 26px; }
.final .cta-row { justify-content: center; }

footer {
  border-top: 1px solid var(--line); padding: 26px 0 100px;
  color: var(--muted); font-size: 14px;
}
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* липкая кнопка на телефоне: почти весь трафик идёт с ролика,
   а до низа страницы доходит меньшинство */
.sticky-cta { display: none; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 34px; padding-bottom: 40px; }
  .hero::before { right: -240px; top: -280px; }
  .portrait { max-width: 340px; margin: 0 auto; }
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  /* внутри раскрывающейся строки правило .fold .steps сильнее общего —
     без этой строки блоки 1-2-3 оставались в три колонки и растягивали
     телефон по горизонтали */
  .fold .steps, .fold .grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about img { max-width: 320px; margin: 0 auto; }

  /* на телефоне цифры в два ряда, карусель листается пальцем — стрелки убираем */
  .numbers { grid-template-columns: repeat(2, 1fr); margin-top: 26px; }
  .numbers b { font-size: 24px; }
  .gal-nav { display: none; }
  .gal-track figure { width: 62vw; max-width: 260px; }
  .gal-track img { height: 300px; }
  section { padding: 44px 0; }
  .final { padding: 32px 20px; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; }

  /* карточка болей: на телефоне иконка уходит в строку с заголовком,
     иначе шесть карточек растягивают экран вдвое */
  .card { padding: 18px 16px; display: grid; grid-template-columns: 26px 1fr; gap: 6px 12px; }
  .card svg { grid-row: 1; margin-top: 3px; }
  .card h3 { grid-column: 2; margin: 0; }
  .card p { grid-column: 2; }

  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(19, 20, 23, .94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
    transform: translateY(120%);
    transition: transform .22s ease;
  }
  /* показываем только когда кнопка первого экрана уехала вверх —
     иначе на первом экране две одинаковые жёлтые кнопки подряд */
  .sticky-cta.on { transform: none; }
  .sticky-cta .btn { margin: 0; }
}

/* соцсети в подвале */
.social { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}

.social a:hover,
.social a:focus-visible {
  background: var(--acc);
  border-color: var(--acc);
  color: var(--acc-ink);
}

.social svg { width: 17px; height: 17px; fill: currentColor; display: block; }

/* вход владельца в закрытый раздел (см. /vhod.html) */
.priv a { color: var(--acc, #FFD400); text-decoration: none; font-weight: 600; white-space: nowrap; }
.priv a:hover { text-decoration: underline; }
