/* Blogger Sans — © 2014 Sergiy S. Tkachenko, CC BY-ND 4.0 (см. /static/fonts/LICENSE.txt) */
@font-face { font-family: "Blogger Sans"; src: url("/static/fonts/BloggerSans-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Blogger Sans"; src: url("/static/fonts/BloggerSans-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Blogger Sans"; src: url("/static/fonts/BloggerSans-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Blogger Sans"; src: url("/static/fonts/BloggerSans-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* «Дым и свет»: палитра взята с картинки — графитово-синий туман, пепельная роза, золото корней.
   Синий и красный — только полушария. */
:root {
  --void: #1d232c;
  --deep: #232c38;
  --surface: #2b3542;
  --text: #f3ede6;
  --muted: #b9b0ab;
  --line: rgba(243, 237, 230, .1);
  --line-strong: rgba(243, 237, 230, .24);
  --blue: #5a8ce0;
  --red: #d9505a;
  --gold: #e6bc6c;
  --gold-deep: #b8873e;
  --rose: #c9a29d;
  /* Шалфей и хвоя — спокойствие и доверие */
  --sage: #a6c2ad;
  --sage-deep: #5f8c74;
  --pine: #26372f;
  --mind: linear-gradient(90deg, var(--blue), var(--gold), var(--red));
  --display: "Blogger Sans", "Jost", system-ui, sans-serif;
  --sans: "Blogger Sans", "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--void); }
body { margin: 0; background: var(--void); color: var(--text); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color .2s; }
a:hover { text-decoration-color: var(--gold); }
::selection { background: var(--gold); color: var(--void); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: var(--text); color: var(--void); padding: 8px 12px; }

h1, h2, h3 { margin: 0; font-weight: 400; font-family: var(--display); }
p { margin: 0 0 16px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 14px 30px; border-radius: 999px;
  background: linear-gradient(135deg, #f4d898, var(--gold) 45%, var(--gold-deep)); color: #1d1a16; font: 500 16px/1.2 var(--sans);
  text-decoration: none; border: 1px solid rgba(244, 216, 152, .6); box-shadow: 0 0 0 rgba(230, 188, 108, 0);
  transition: box-shadow .4s var(--ease), filter .2s; }
.btn:hover { color: #1d1a16; filter: brightness(1.06); box-shadow: 0 0 36px -4px rgba(230, 188, 108, .65); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--text); border-color: var(--gold); box-shadow: none; filter: none; }
.btn--small { min-height: 42px; padding: 9px 20px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 40px 0 24px; }

/* Шапка: прозрачная над первым экраном, плотная при прокрутке */
.header { position: fixed; inset: 0 0 auto; z-index: 20; transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(29, 35, 44, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-size: 24px; font-weight: 400; }
.brand img { border-radius: 50%; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--text); }

/* Первый экран: фон — продолжение тумана с картинки, картинка растворяется по краям */
.hero { position: relative; min-height: min(100svh, 1000px); display: flex; align-items: center; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 70% at 72% 40%, #4a5664 0%, transparent 70%),
    radial-gradient(45% 55% at 8% 95%, rgba(95, 140, 116, .26), transparent 70%),
    linear-gradient(180deg, #252e38 0%, #2b363d 45%, #33363a 100%); }
.hero__visual { position: absolute; z-index: -2; top: 54%; right: -7vw; height: min(100%, 1000px); aspect-ratio: 1; transform: translateY(-50%);
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
.hero__visual { translate: var(--px, 0) var(--py, 0); }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; animation: breathe 10s ease-in-out infinite; transform-origin: 50% 60%; }
@keyframes breathe {
  0%, 100% { transform: scale(1); filter: brightness(.94) saturate(1); }
  50% { transform: scale(1.03); filter: brightness(1.1) saturate(1.1); }
}
/* Дым медленно плывёт поверх фона */
.hero__smoke { position: absolute; inset: -20%; z-index: -1; pointer-events: none; opacity: .55;
  background:
    radial-gradient(28% 18% at 20% 70%, rgba(214, 206, 204, .22), transparent 70%),
    radial-gradient(22% 14% at 60% 80%, rgba(201, 162, 157, .2), transparent 70%),
    radial-gradient(30% 20% at 85% 30%, rgba(214, 206, 204, .14), transparent 70%);
  filter: blur(20px); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-3%, 2%, 0) scale(1); } to { transform: translate3d(4%, -3%, 0) scale(1.08); } }
.hero__in { width: 100%; padding-top: 120px; padding-bottom: 80px; }
.hero__title { font-size: clamp(46px, 5.8vw, 92px); line-height: 1; letter-spacing: -.01em; max-width: 15ch; }
/* Слева туман чуть плотнее, чтобы текст читался поверх картинки */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(37, 46, 56, .92) 0%, rgba(37, 46, 56, .55) 38%, transparent 60%); }
.hero__who { display: block; font: 400 16px/1.4 var(--sans); letter-spacing: .01em; color: var(--muted); margin-bottom: 28px; }
.hero__lead { font-size: 19px; color: var(--muted); max-width: 44ch; margin-top: 32px; }
.hero__meta { font-size: 14px; color: var(--muted); }

/* Два полушария */
.split { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background:
  radial-gradient(50% 120% at 0% 0%, rgba(90, 140, 224, .2), transparent 60%),
  radial-gradient(50% 120% at 100% 100%, rgba(217, 80, 90, .18), transparent 60%),
  radial-gradient(30% 80% at 50% 100%, rgba(230, 188, 108, .12), transparent 70%), #363334; }
.split__in { display: grid; grid-template-columns: 1fr 1fr; }
.split__half { margin: 0; padding: 88px 48px 64px 0; font-family: var(--display); font-size: clamp(30px, 3.4vw, 50px); line-height: 1.12; position: relative; }
.split__half b { font-weight: 500; display: block; }
.split__half--blue b { color: #7ea6ec; text-shadow: 0 0 28px rgba(90, 140, 224, .6); }
.split__half--red { padding-left: 48px; padding-right: 0; border-left: 1px solid var(--line); }
.split__half--red b { color: #ec7a80; text-shadow: 0 0 28px rgba(217, 80, 90, .55); }
.split__bridge { grid-column: 1 / -1; margin: 0; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); max-width: 64ch; }

/* Блоки */
.block { padding: 128px 0; border-bottom: 1px solid var(--line); }
.block__title { font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.015em; margin-bottom: 56px; }

.prose { color: var(--text); }
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose h2 { font-size: 38px; margin: 56px 0 16px; }
.prose h3 { font-size: 28px; margin: 36px 0 12px; }
.prose strong, .prose b { font-weight: 500; }
.prose blockquote { margin: 32px 0; padding-left: 24px; border-left: 1px solid var(--gold); font-family: var(--display); font-size: 28px; line-height: 1.3; }
.prose--story p { color: var(--muted); }
.prose--story p:first-child { font-family: var(--display); font-size: clamp(26px, 2.5vw, 34px); line-height: 1.28; color: var(--text); }

/* С чем работаю: строки с подсветкой */
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.topics__item { position: relative; padding: 32px 0; border-top: 1px solid var(--line); }
.topics__item::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--mind); transition: width .6s var(--ease); }
.topics__item:hover::before { width: 100%; }
.topics__item h3 { font-size: 34px; line-height: 1.1; margin-bottom: 12px; }
.topics__item h3 a { text-decoration: none; }
.topics__item p { color: var(--muted); margin: 0; max-width: 46ch; }
.more { margin-top: 32px; }

/* Обо мне */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.about__visual { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; }
.about__visual img { width: 100%; height: 100%; object-fit: cover; }
.about__text .block__title { margin-bottom: 36px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-family: var(--display); font-size: 23px; line-height: 1.2; }

/* Метод: четыре шага, линия от синего к красному */
.method { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; }
.method .block__title { margin: 0; }
.path { list-style: none; margin: 112px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; position: relative; }
.path::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--mind); box-shadow: 0 0 18px rgba(230, 188, 108, .5); }
.path li { counter-increment: step; position: relative; padding-top: 44px; display: flex; flex-direction: column; gap: 10px; }
.path li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px 3px rgba(230, 188, 108, .6); }
.path li::after { content: counter(step); position: absolute; top: -52px; left: 0; font-family: var(--display); font-size: 30px; color: var(--muted); }
.path b { font-family: var(--display); font-weight: 400; font-size: 27px; line-height: 1.15; }
.path span { color: var(--muted); font-size: 16px; }

/* Цены */
.prices { list-style: none; margin: 0; padding: 0; }
.prices__item { display: grid; grid-template-columns: minmax(0, 1fr) 170px 170px 170px; gap: 24px; align-items: center; padding: 32px 0; border-top: 1px solid var(--line); }
.prices__item:last-child { border-bottom: 1px solid var(--line); }
.prices__item--free { background: radial-gradient(60% 140% at 0% 50%, rgba(95, 140, 116, .24), transparent 70%); }
.prices__what h3 { font-size: 32px; line-height: 1.1; }
.prices__what p { margin: 8px 0 0; color: var(--muted); max-width: 52ch; }
.prices__time { margin: 0; color: var(--muted); font-size: 15px; }
.prices__cost { margin: 0; font-family: var(--display); font-size: 32px; line-height: 1; white-space: nowrap; }
.prices__item .btn { justify-self: end; }
.online { margin-top: 64px; display: grid; grid-template-columns: 5fr 7fr; gap: 72px; }
.online h3 { font-size: 32px; }
.online .prose p { color: var(--muted); }

.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.reviews figure { margin: 0; }
.reviews blockquote { margin: 0 0 16px; font-family: var(--display); font-size: 28px; line-height: 1.3; }
.reviews figcaption { color: var(--muted); font-size: 15px; }

/* Вопросы и противопоказания */
.faq-wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.faq-wrap .block__title { position: sticky; top: 112px; margin: 0; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 26px 48px 26px 0; position: relative; font-family: var(--display); font-size: 26px; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 18px; height: 1px; background: var(--text); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0); }
.faq p { color: var(--muted); padding-right: 48px; margin-bottom: 28px; max-width: 62ch; }
#safety .prose { color: var(--muted); }
.crisis { margin-top: 36px; padding: 28px 32px; border-radius: 20px; background: rgba(217, 80, 90, .09); border: 1px solid rgba(217, 80, 90, .4); }
.crisis h3 { font-size: 28px; margin-bottom: 10px; }
.crisis p { margin: 0; }

/* Финальный призыв */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.cta { background: linear-gradient(180deg, var(--void), #2c2a2b); }
.cta__glow { position: absolute; z-index: -1; inset: 0; background:
  radial-gradient(35% 55% at 32% 55%, rgba(90, 140, 224, .3), transparent 70%),
  radial-gradient(35% 55% at 68% 55%, rgba(217, 80, 90, .26), transparent 70%),
  radial-gradient(25% 45% at 50% 85%, rgba(230, 188, 108, .3), transparent 70%),
  radial-gradient(40% 40% at 50% 15%, rgba(95, 140, 116, .22), transparent 70%); }
.cta__in { padding-top: 160px; padding-bottom: 160px; display: flex; flex-direction: column; align-items: center; }
.cta h2 { font-size: clamp(44px, 6.4vw, 96px); line-height: 1; letter-spacing: -.02em; max-width: 13ch; }
.cta p { color: var(--muted); font-size: 19px; max-width: 46ch; margin: 28px 0 40px; }

/* Подвал */
.footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.footer__in { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; padding-top: 56px; padding-bottom: 40px; }
.footer__name { font-family: var(--display); font-size: 30px; color: var(--text); margin: 0 0 4px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__note { grid-column: 1 / -1; max-width: 72ch; margin: 24px 0 0; }
.footer__legal { grid-column: 1 / -1; margin: 0; font-size: 13px; color: rgba(255, 255, 255, .4); }

/* Статьи и служебные страницы */
.page { padding: 160px 0 112px; }
.page__head { max-width: 900px; margin-bottom: 64px; }
.page h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1; letter-spacing: -.02em; }
.page__meta { color: var(--muted); font-size: 15px; margin-top: 24px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.article { max-width: 720px; }
.article .prose { font-size: 18px; line-height: 1.75; }
.article .prose p { color: #dcd4cd; }
.article .prose > p:first-child { font-family: var(--display); font-size: 30px; line-height: 1.32; color: var(--text); }
.h3-like { font-size: 34px; line-height: 1.1; }
.h3-like a { text-decoration: none; }
.article__faq { font-size: 44px; margin: 64px 0 16px; }
.cover { width: 100%; border-radius: 24px; margin-bottom: 48px; }
.invite { margin: 72px 0 32px; padding: 44px; border-radius: 28px; border: 1px solid var(--line-strong);
  background: radial-gradient(60% 120% at 0% 0%, rgba(90, 140, 224, .2), transparent 60%), radial-gradient(60% 120% at 100% 100%, rgba(230, 188, 108, .18), transparent 60%), var(--deep); }
.invite h2 { font-size: 40px; line-height: 1.05; }
.invite p { color: var(--muted); margin: 14px 0 28px; }
.disclaimer { color: var(--muted); font-size: 14px; }
.empty { padding: 56px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty p { font-family: var(--display); font-size: 32px; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines__item { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.lines__item:last-child { border-bottom: 1px solid var(--line); }
.lines__item p { color: var(--muted); margin: 0 0 8px; }
.lines__item h3 { font-size: 30px; line-height: 1.12; }
.lines__item h3 a { text-decoration: none; }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; }
.row__title { font-size: clamp(36px, 4vw, 56px); line-height: 1; }

/* ---------- Светлые блоки: те же компоненты, другие переменные ---------- */
/* Светлые блоки — пепельная роза, как светлый дым на картинке */
.block--light { --text: #26303c; --muted: #6d625f; --line: rgba(38, 48, 60, .13); --line-strong: rgba(38, 48, 60, .3);
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(166, 194, 173, .55), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(230, 188, 108, .14), transparent 70%), #e7ede8;
  color: var(--text); border-bottom: 0; }
.block--light { --muted: #5d6a63; }
.block--light .btn { background: var(--text); border-color: var(--text); color: #f3ede6; }
.block--light .btn:hover { box-shadow: 0 0 30px -6px rgba(184, 135, 62, .6); }
.block--light .btn--ghost { background: transparent; color: var(--text); }
.block--light a:hover { text-decoration-color: var(--gold-deep); }
.block--light .faq summary:hover { color: #8a5a3a; }
.block--light .path::before { box-shadow: none; }
.block--light .topics__item::before { background: linear-gradient(90deg, var(--sage-deep), var(--gold)); }
.block--light .faq summary::after, .block--light .faq summary::before { background: var(--sage-deep); }
.block--light .path li::before { background: var(--gold-deep); box-shadow: 0 0 0 4px rgba(184, 135, 62, .2); }

/* ---------- Первый экран: нейросеть и появление текста ---------- */
.hero__net { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: -1; background: linear-gradient(transparent, var(--void)); pointer-events: none; }
.js .in { opacity: 0; transform: translateY(26px); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--d, 0s) + .2s); }
.js .hero__visual { opacity: 0; animation: glow-in 1.8s ease forwards .1s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes glow-in { from { opacity: 0; filter: blur(18px); } to { opacity: 1; filter: none; } }

/* ---------- Появление при прокрутке ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .about__visual[data-reveal] { transform: scale(.94); clip-path: inset(8% 8% 8% 8% round 28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease), clip-path 1.2s var(--ease); }
.js .about__visual[data-reveal].is-visible { transform: none; clip-path: inset(0 round 28px); }
.about__visual img { transition: transform 6s ease; }
.about__visual:hover img { transform: scale(1.06); }

/* Полушария вспыхивают при появлении */
.split__half b { transition: text-shadow 1.4s ease .4s; }
.split__half--blue:not(.is-visible) b, .split__half--red:not(.is-visible) b { text-shadow: none; }
.split__half::after { content: ""; position: absolute; left: 0; bottom: 40px; height: 1px; width: 0; transition: width 1.4s var(--ease) .5s; }
.split__half--blue::after { background: linear-gradient(90deg, var(--blue), var(--gold), transparent); }
.split__half--red::after { left: 48px; background: linear-gradient(90deg, var(--red), var(--gold), transparent); }
.split__half.is-visible::after { width: 60%; }

/* Линия метода прорисовывается, шаги загораются по очереди */
.js .path[data-reveal] { opacity: 1; transform: none; }
.js .path::before { transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.js .path.is-visible::before { transform: none; }
.js .path li { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .path.is-visible li { opacity: 1; transform: none; }
.js .path.is-visible li:nth-child(2) { transition-delay: .35s; }
.js .path.is-visible li:nth-child(3) { transition-delay: .7s; }
.js .path.is-visible li:nth-child(4) { transition-delay: 1.05s; }

/* Цены: строка подсвечивается при наведении */
.prices__item { position: relative; transition: background-color .3s; }
.prices__item::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--mind); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.prices__item:hover::after { transform: none; }
.prices__item:hover { background-color: rgba(255, 255, 255, .025); }

/* Финальный призыв: свечение медленно перетекает */
.cta__glow { animation: aurora 14s ease-in-out infinite alternate; }
@keyframes aurora {
  0% { transform: translateX(-6%) scale(1); }
  50% { transform: translateX(4%) scale(1.12); }
  100% { transform: translateX(8%) scale(1); }
}

/* ---------- Мобильное меню ---------- */
.burger { display: none; width: 44px; height: 44px; margin-left: 4px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 15; padding: 104px 20px 32px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(80% 50% at 0% 0%, rgba(90, 140, 224, .22), transparent 70%), radial-gradient(80% 50% at 100% 100%, rgba(230, 188, 108, .2), transparent 70%), var(--void);
  opacity: 0; transition: opacity .35s ease; }
.menu.is-open { opacity: 1; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { font-family: var(--display); font-size: 40px; line-height: 1.15; padding: 8px 0; text-decoration: none; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .04s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .08s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .12s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .16s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: .2s; }
.menu .btn { width: 100%; }
body.menu-open { overflow: hidden; }
body.menu-open .header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }

/* Нижняя кнопка на телефоне */
.dock { display: none; }

@media (max-width: 1100px) {
  .prices__item { grid-template-columns: minmax(0, 1fr) 140px 140px; }
  .prices__item .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .header__cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .dock { display: flex; position: fixed; z-index: 12; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 28px -4px rgba(230, 188, 108, .6);
    transform: translateY(140%); transition: transform .45s var(--ease); }
  .dock.is-on { transform: none; }
  body.menu-open .dock { transform: translateY(140%); }
  .footer { padding-bottom: 88px; }
  .hero__net { opacity: .5; }
  .split__half::after { bottom: 24px; }
  .split__half--red::after { left: 0; }
  .hero { min-height: 0; display: block; }
  .hero__visual { position: relative; top: auto; right: auto; transform: none; width: 100%; height: auto; max-width: 560px; margin: 64px auto -56px; }
  .hero::before { background: linear-gradient(180deg, transparent 40%, rgba(37, 46, 56, .7) 70%); }
  .hero__in { padding-top: 0; padding-bottom: 72px; }
  .hero__title { max-width: none; }
  .split__in { grid-template-columns: 1fr; }
  .split__half { padding: 48px 0 40px; }
  .split__half--red { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .block { padding: 88px 0; }
  .block__title { margin-bottom: 40px; }
  .topics { grid-template-columns: 1fr; }
  .about, .method, .online, .faq-wrap, .row, .lines__item { grid-template-columns: 1fr; gap: 40px; }
  .about__visual { aspect-ratio: 4 / 3; border-radius: 20px; }
  .faq-wrap .block__title { position: static; }
  .facts { grid-template-columns: 1fr; gap: 16px; }
  .path { grid-template-columns: 1fr; gap: 40px; margin-top: 64px; padding-left: 28px; }
  .path::before { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--blue), var(--gold), var(--red)); }
  .path li { padding-top: 0; }
  .path li::before { left: -32px; top: 10px; }
  .path li::after { position: static; order: -1; font-size: 24px; }
  .prices__item { grid-template-columns: 1fr auto; gap: 12px 16px; }
  .prices__what, .prices__item .btn { grid-column: 1 / -1; }
  .prices__item--free { background: radial-gradient(90% 100% at 0% 50%, rgba(95, 140, 116, .24), transparent 70%); }
  .reviews { grid-template-columns: 1fr; }
  .cta__in { padding-top: 112px; padding-bottom: 112px; }
  .footer__in { grid-template-columns: 1fr; }
  .page { padding-top: 120px; }
  .invite { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__visual img, .cta__glow, .hero__smoke, .js .in { animation: none; opacity: 1; transform: none; }
  .js .hero__visual { animation: none; opacity: 1; }
  .hero__net { display: none; }
  * { transition: none !important; }
}

/* Тёмные блоки тоже в тумане — продолжение картинки */
.block:not(.block--light) { background:
  radial-gradient(45% 55% at 100% 0%, rgba(90, 140, 224, .08), transparent 70%),
  radial-gradient(50% 60% at 0% 100%, rgba(95, 140, 116, .18), transparent 70%), var(--void); }
#about.block--light { background:
  radial-gradient(40% 70% at 20% 50%, rgba(230, 188, 108, .22), transparent 70%),
  radial-gradient(60% 70% at 100% 0%, rgba(201, 162, 157, .35), transparent 70%), #ece4e0; }

/* ---------- Страницы услуг ---------- */
.service { position: relative; overflow: clip; isolation: isolate; }
.service__glow { position: absolute; z-index: -1; inset: 0 0 auto; height: 720px; pointer-events: none;
  background: radial-gradient(40% 60% at 80% 20%, rgba(230, 188, 108, .16), transparent 70%),
    radial-gradient(40% 60% at 10% 0%, rgba(90, 140, 224, .14), transparent 70%); }
.service__lead { font-size: clamp(19px, 1.8vw, 23px); color: var(--muted); max-width: 52ch; margin-top: 24px; }
.service__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; align-items: start; }
.service__side { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 20px; }
.side-card { padding: 28px; border-radius: 24px; border: 1px solid var(--line-strong);
  background: radial-gradient(80% 80% at 100% 0%, rgba(230, 188, 108, .14), transparent 70%), var(--deep); }
.side-card__label { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.side-card__price { font-family: var(--display); font-size: 40px; line-height: 1; margin-bottom: 10px; }
.side-card__note { font-size: 15px; color: var(--muted); }
.side-links { display: flex; flex-direction: column; gap: 10px; padding: 0 4px; }
.side-links a { text-decoration: none; color: var(--text); }
.side-links a:hover { color: var(--gold); }
.prose ol { padding-left: 22px; }
.prose ol li::marker { color: var(--gold); font-weight: 500; }

/* Карточки услуг на главной */
.services-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.services-list a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 28px; border-radius: 24px; text-decoration: none;
  border: 1px solid var(--line); background: rgba(243, 237, 230, .03); transition: border-color .3s, background-color .3s, transform .3s var(--ease); }
.services-list a:hover { border-color: rgba(230, 188, 108, .55); background: rgba(230, 188, 108, .06); transform: translateY(-3px); }
.services-list b { font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1.1; }
.services-list span { color: var(--muted); font-size: 16px; }
.services-list em { margin-top: auto; padding-top: 8px; font-style: normal; color: var(--gold); font-size: 15px; }

@media (max-width: 960px) {
  .service__grid { grid-template-columns: 1fr; gap: 48px; }
  .service__side { position: static; }
}
.path__title { font-size: 28px; margin-top: 96px; }
.path__title + .path { margin-top: 88px; }
@media (max-width: 960px) { .path__title { margin-top: 64px; } .path__title + .path { margin-top: 40px; } }
/* 5 услуг: первая (самый частый запрос) крупнее — ровно два ряда */
.services-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.services-list li:first-child { grid-column: span 2; }
.services-list li:first-child a { background: radial-gradient(70% 90% at 100% 0%, rgba(230, 188, 108, .14), transparent 70%), rgba(243, 237, 230, .03); }
.services-list li:first-child b { font-size: 36px; }
@media (max-width: 960px) { .services-list { grid-template-columns: 1fr; } .services-list li:first-child { grid-column: auto; } }

/* ---------- Метод «Собери себя»: дерево собирается от корней к кроне ---------- */
@property --ty { syntax: "<percentage>"; inherits: true; initial-value: 88%; }
/* overflow: clip, а не hidden: hidden делает блок прокручиваемым и ломает sticky у дерева */
.method-block { position: relative; overflow: clip; isolation: isolate; }
.method-block__glow { position: absolute; z-index: -1; inset: 0; pointer-events: none; background:
  radial-gradient(35% 40% at 20% 45%, rgba(230, 188, 108, .14), transparent 70%),
  radial-gradient(45% 50% at 85% 55%, rgba(95, 140, 116, .2), transparent 70%),
  radial-gradient(40% 40% at 90% 10%, rgba(90, 140, 224, .1), transparent 70%),
  radial-gradient(40% 40% at 90% 90%, rgba(217, 80, 90, .1), transparent 70%), var(--void); }

.tree { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; margin-top: 96px; align-items: start; --ty: 88%;
  --tree-h: min(78vh, 820px); }
.tree[data-stage="2"] { --ty: 64%; }
.tree[data-stage="3"] { --ty: 30%; }
/* Дерево держится по центру экрана, пока листаются этапы (36px — поправка на шапку) */
.tree__visual { position: sticky; top: calc((100vh - var(--tree-h)) / 2 + 36px); margin: 0; height: var(--tree-h); max-width: 100%;
  aspect-ratio: 4 / 5; justify-self: center; border-radius: 32px; overflow: hidden;
  transition: --ty 1.1s var(--ease); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.tree__visual img { width: 100%; height: 100%; object-fit: cover; }
/* Затемняем всё, кроме активной части дерева */
.tree__visual::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 26% at 50% var(--ty), transparent 0%, rgba(20, 24, 31, .62) 100%); }
.tree__light { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(45% 16% at 50% var(--ty), rgba(255, 214, 140, .45), transparent 70%);
  animation: glow-pulse 4s ease-in-out infinite; }
@keyframes glow-pulse { 50% { opacity: .65; } }
.tree__mark { position: absolute; right: 20px; z-index: 1; font-size: 14px; color: rgba(243, 237, 230, .55); padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(243, 237, 230, .2); background: rgba(20, 24, 31, .45); backdrop-filter: blur(6px); transition: color .4s, border-color .4s, box-shadow .4s; }
.tree__mark--3 { top: 26%; }
.tree__mark--2 { top: 60%; }
.tree__mark--1 { top: 84%; }
.tree[data-stage="1"] .tree__mark--1, .tree[data-stage="2"] .tree__mark--2, .tree[data-stage="3"] .tree__mark--3 {
  color: #1d1a16; background: var(--gold); border-color: var(--gold); box-shadow: 0 0 24px rgba(230, 188, 108, .6); }

.tree__stages { list-style: none; margin: 0; padding: 0; }
.stage { min-height: 60vh; padding: 40px 0 40px 40px; position: relative; border-left: 1px solid var(--line);
  opacity: .38; transition: opacity .6s var(--ease); }
.stage:first-child { padding-top: 18vh; }
.stage::before { content: ""; position: absolute; left: -5px; top: calc(40px + 10px); width: 9px; height: 9px; border-radius: 50%;
  background: var(--line-strong); transition: background-color .4s, box-shadow .4s; }
.stage:first-child::before { top: calc(18vh + 10px); }
.stage__name { font-size: 15px; color: var(--gold); margin-bottom: 10px; }
.stage h3 { font-size: clamp(30px, 3vw, 44px); line-height: 1.08; margin-bottom: 18px; }
.stage p:last-child { color: var(--muted); font-size: 18px; max-width: 46ch; }
.tree[data-stage="1"] [data-stage-step="1"], .tree[data-stage="2"] [data-stage-step="2"], .tree[data-stage="3"] [data-stage-step="3"] { opacity: 1; }
.tree[data-stage="1"] [data-stage-step="1"]::before, .tree[data-stage="2"] [data-stage-step="2"]::before, .tree[data-stage="3"] [data-stage-step="3"]::before {
  background: var(--gold); box-shadow: 0 0 16px 3px rgba(230, 188, 108, .6); }
/* золотая нить вдоль этапов «растёт» вслед за активным шагом */
.tree__stages { position: relative; }
.tree__stages::before { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: calc(var(--fill, 0) * 100%);
  background: linear-gradient(var(--gold), rgba(230, 188, 108, .2)); box-shadow: 0 0 10px rgba(230, 188, 108, .5); transition: height 1s var(--ease); z-index: 1; }
.tree[data-stage="1"] .tree__stages { --fill: .33; }
.tree[data-stage="2"] .tree__stages { --fill: .66; }
.tree[data-stage="3"] .tree__stages { --fill: 1; }

.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 96px; }
.contrast__col { padding: 36px; border-radius: 28px; border: 1px solid var(--line); background: rgba(243, 237, 230, .025); }
.contrast__col--gold { border-color: rgba(166, 194, 173, .45);
  background: radial-gradient(80% 80% at 100% 0%, rgba(95, 140, 116, .26), transparent 70%), rgba(243, 237, 230, .03); }
.contrast__head { font-family: var(--display); font-size: 32px; margin-bottom: 20px; }
.contrast__col:not(.contrast__col--gold) .contrast__head { color: var(--muted); }
.contrast ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contrast li { position: relative; padding-left: 28px; color: var(--muted); }
.contrast li::before { content: "—"; position: absolute; left: 0; color: var(--line-strong); }
.contrast__col--gold li { color: var(--text); }
.contrast__col--gold li::before { content: ""; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 10px rgba(166, 194, 173, .8); }

.method-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 96px; padding: 32px 36px;
  border-radius: 28px; border: 1px solid var(--line-strong); background: linear-gradient(120deg, rgba(90, 140, 224, .12), rgba(230, 188, 108, .14), rgba(217, 80, 90, .12)); }
.method-cta p { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); }

@media (max-width: 960px) {
  .tree { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .tree { --tree-h: min(52vh, 100vw - 40px); }
  .tree__visual { top: 76px; z-index: 2; aspect-ratio: 1; width: var(--tree-h); border-radius: 20px; }
  .tree__mark { font-size: 12px; right: 12px; }
  .stage { min-height: 0; padding: 32px 0 32px 28px; }
  .stage:first-child { padding-top: 32px; }
  .stage:first-child::before { top: 42px; }
  .contrast { grid-template-columns: 1fr; margin-top: 64px; }
  .contrast__col { padding: 28px; }
  .method-cta { margin-top: 64px; padding: 24px; }
  .method-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tree__light { animation: none; }
  .tree__visual { transition: none; }
}

/* ---------- Картинки от Грока ---------- */
/* Направления: карточки с иллюстрацией */
.dir-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dir-card { display: flex; flex-direction: column; gap: 12px; }
.dir-card__img { display: block; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; margin-bottom: 8px;
  box-shadow: 0 24px 50px -30px rgba(38, 48, 60, .55); }
.dir-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dir-card:hover .dir-card__img img { transform: scale(1.06); }
.dir-card h3 { font-size: 30px; line-height: 1.1; }
.dir-card p { color: var(--muted); margin: 0; }

/* Услуги на главной: картинка сверху карточки */
.services-list a { padding: 0; overflow: hidden; }
.services-list a > b, .services-list a > span:not(.services-list__img), .services-list a > em { padding-left: 28px; padding-right: 28px; }
.services-list a > em { padding-bottom: 28px; }
.services-list a > b { padding-top: 24px; }
.services-list__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.services-list__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.services-list a:hover .services-list__img img { transform: scale(1.05); filter: saturate(1.1); }
.services-list li:first-child .services-list__img { aspect-ratio: 21 / 9; }

/* Карточки статей */
.post-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); background: rgba(243, 237, 230, .03); transition: border-color .3s, transform .4s var(--ease); }
.post-card:hover { border-color: rgba(230, 188, 108, .5); transform: translateY(-3px); }
.post-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.post-card__body b { font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.15; }
.post-card__body span { color: var(--muted); font-size: 15px; }
.block--light .post-card { background: rgba(255, 255, 255, .5); }

/* Шапка страницы услуги */
.service__visual { margin: 0 0 64px; border-radius: 32px; overflow: hidden; aspect-ratio: 21 / 9;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.service__visual img { width: 100%; height: 100%; object-fit: cover; }
.cover { aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .7); }

/* Финальный призыв на фоне туманной долины */
.cta__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .55;
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
  animation: slow-zoom 30s ease-in-out infinite alternate; }
@keyframes slow-zoom { to { transform: scale(1.08); } }

@media (max-width: 960px) {
  .dir-cards { grid-template-columns: 1fr 1fr; }
  .service__visual { aspect-ratio: 16 / 10; border-radius: 20px; margin-bottom: 40px; }
  .services-list li:first-child .services-list__img { aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) { .dir-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cta__bg { animation: none; } }

/* Видео первого экрана поверх постера: появляется плавно, когда реально заиграло */
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero__video.is-on { opacity: 1; }
.hero__video.is-on ~ img, .hero__visual:has(.hero__video.is-on) img { animation: none; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }

/* ---------- Подвал с контактами ---------- */
.footer { position: relative; overflow: clip; isolation: isolate; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #232a35, #1a1f27); color: var(--muted); font-size: 15px; }
.footer__glow { position: absolute; z-index: -1; inset: 0; pointer-events: none; background:
  radial-gradient(40% 70% at 0% 0%, rgba(230, 188, 108, .1), transparent 70%),
  radial-gradient(35% 60% at 100% 100%, rgba(95, 140, 116, .14), transparent 70%); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr .8fr; gap: 48px; padding: 80px 0 56px; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer__brand .brand { font-size: 30px; }
.footer__brand p { margin: 0; max-width: 30ch; font-size: 16px; }
.footer__h { color: var(--text); font-family: var(--display); font-size: 22px; margin: 0 0 18px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col > a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer__col > a:hover { color: var(--gold); }
.footer__text { margin: 0 0 6px; line-height: 1.55; }

.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contacts a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; margin: 0 -12px; border-radius: 14px; text-decoration: none;
  transition: background-color .25s; }
.contacts a:hover { background: rgba(243, 237, 230, .05); }
.contacts svg { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; fill: var(--gold);
  background: rgba(230, 188, 108, .1); border: 1px solid rgba(230, 188, 108, .25); transition: background-color .25s, fill .25s; }
.contacts a:hover svg { background: var(--gold); fill: #1d1a16; }
.contacts span { display: flex; flex-direction: column; line-height: 1.3; }
.contacts b { color: var(--text); font-weight: 500; }
.contacts small { color: var(--muted); font-size: 14px; }

.footer__bottom { border-top: 1px solid var(--line); padding: 28px 0 36px; display: grid; gap: 10px; }
.footer__bottom p { margin: 0; max-width: 90ch; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13px; color: rgba(243, 237, 230, .45); }
.footer__meta a { color: rgba(243, 237, 230, .65); }

@media (max-width: 1100px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .footer__top { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .footer__brand .btn { width: 100%; }
}
