/* nastia.world — визуальный язык лендинга практикума: Cormorant Garamond + Manrope, бордовый, бежевый фон,
   скруглённые карточки. Мобильная версия — основная. Inline-стилей нет (CSP), переменные ставятся через CSSOM. */
:root {
  --cream: #F3E7DA;
  --cream-deep: #EADACA;
  --wine: #A52F32;
  --wine-deep: #8A2629;
  --rose: #F2A9AE;
  --ink: #33302F;
  --ink-soft: #5E5654;
  --white: #FFFFFF;
  --line: rgba(165, 47, 50, .28);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r: 22px;
  --maxw: 1160px;
  --gutter: 16px;
  --bar-h: 64px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 8px); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.sec { padding-block: 44px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 7vw, 3.6rem); color: var(--wine); text-transform: uppercase; letter-spacing: .005em; }
h3 { font-size: clamp(1.45rem, 4.6vw, 1.9rem); }
p { margin: 0; }
em { font-style: italic; color: var(--wine); font-weight: 500; }
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--wine); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; flex: none; }
.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 60ch; }
.lead.mt { margin-top: 18px; }
.sec-head { display: grid; gap: 12px; margin-bottom: 26px; }
.sec-head .eyebrow { margin-bottom: 0; }

/* ---------- Появление при скролле ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
[data-reveal].in { opacity: 1; transform: none; }
.no-anim [data-reveal] { transition: none !important; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  font: 700 .88rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; background: var(--wine); color: var(--white);
  box-shadow: 0 10px 26px -12px rgba(165, 47, 50, .7); transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--wine-deep); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--light { background: var(--white); color: var(--wine); box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .5); }
.btn--light:hover { background: var(--cream); }
.btn--ghost { background: transparent; color: var(--wine); box-shadow: none; border: 1.5px solid var(--wine); }
.btn--ghost:hover { background: rgba(165, 47, 50, .06); }
.btn--block { width: 100%; }
.btn.sm { min-height: 46px; padding: 0 18px; font-size: .78rem; letter-spacing: .08em; }
.btn.loading { opacity: .6; pointer-events: none; }
@media (max-width: 420px) { .btn { letter-spacing: .06em; padding: 0 20px; font-size: .82rem; } }

/* ---------- Шапка ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: calc(var(--bar-h) + env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  transition: background .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent;
}
.top.solid { background: rgba(243, 231, 218, .96); border-color: var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.logo { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.5rem; color: var(--wine); text-decoration: none; letter-spacing: .01em; }
.top-link { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 10px 2px; border-bottom: 1px solid var(--line); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--bar-h) + env(safe-area-inset-top) + 12px) 0 36px; position: relative; }
.hero-grid { display: grid; gap: 24px; grid-template-areas: "kicker" "title" "visual" "info"; }
.hero-kicker { grid-area: kicker; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip { background: var(--rose); color: var(--wine-deep); padding: 8px 14px; border-radius: 999px; letter-spacing: .12em; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); min-height: 32px; }
.hero h1 { grid-area: title; font-size: clamp(2.5rem, 11.5vw, 5.6rem); font-weight: 600; color: var(--ink); line-height: .98; }
.hero-visual { grid-area: visual; position: relative; padding-bottom: 56px; min-width: 0; }
.hero-info { grid-area: info; display: grid; gap: 20px; min-width: 0; }
.arch { position: relative; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--cream-deep); margin-left: auto; width: 88%; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.arch--round { border-radius: 50%; aspect-ratio: 1; width: 78%; margin: 0 auto; }
.home-hero .hero-visual { padding-bottom: 20px; }
.cover-card { position: absolute; left: 0; bottom: 0; width: 62%; transform: rotate(-4deg); background: var(--white); padding: 6px; border-radius: 6px; box-shadow: 0 22px 40px -18px rgba(51, 48, 47, .55); }
.cover-card img { border-radius: 3px; width: 100%; height: auto; aspect-ratio: 1100 / 536; object-fit: cover; }
.cover-card::before { content: ""; position: absolute; top: -12px; left: 38%; width: 70px; height: 22px; background: rgba(242, 169, 174, .85); transform: rotate(3deg); }
.seal { position: absolute; top: 4%; left: 0; width: 104px; height: 104px; color: var(--wine); }
.seal svg { width: 100%; height: 100%; animation: spin 26s linear infinite; font-family: var(--serif); }
.seal span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.9rem; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Стопка слайдов (B2 Beruf) */
.stack { position: relative; aspect-ratio: 4 / 4.2; width: 92%; margin: 0 auto; }
.stack img { position: absolute; width: 70%; border-radius: 10px; background: var(--white); padding: 5px; box-shadow: 0 22px 40px -18px rgba(51, 48, 47, .55); object-fit: cover; aspect-ratio: 4 / 4.6; object-position: top; }
.stack .stack-0 { left: 0; top: 8%; transform: rotate(-6deg); z-index: 1; }
.stack .stack-1 { right: 0; top: 0; transform: rotate(5deg); z-index: 2; width: 62%; }
.stack .stack-2 { left: 18%; bottom: 0; transform: rotate(-2deg); z-index: 3; width: 64%; }
.when { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.when > div { padding: 14px clamp(10px, 3.5vw, 18px) 14px 0; margin-right: clamp(10px, 3.5vw, 18px); border-right: 1px solid var(--line); display: grid; min-width: 0; }
.when > div:last-child { border-right: 0; margin-right: 0; }
.when b { font-family: var(--serif); font-size: clamp(1.5rem, 7vw, 2.2rem); white-space: nowrap; line-height: 1; color: var(--wine); font-weight: 600; font-variant-numeric: lining-nums; }
.when small { font-size: clamp(.6rem, 2.6vw, .72rem); white-space: nowrap; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-top: 6px; }
.hero-text { display: grid; gap: 12px; max-width: 58ch; }
.hero-text p { color: var(--ink-soft); }
.hero-text strong { color: var(--ink); }
.hero-text .accent { font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.25; color: var(--wine); }
.price-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.price-line .from { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.price-line .now { font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--wine); font-weight: 700; }
.price-line .old { font-size: .9rem; color: var(--ink-soft); }
.price-line s { font-family: var(--serif); font-size: 1.5rem; color: var(--ink-soft); opacity: .8; }
.hero-cta { display: grid; gap: 10px; justify-items: start; }

/* ---------- Карточки предложений ---------- */
.minis { display: grid; gap: 14px; }
.mini { display: flex; min-height: 150px; background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: 0 12px 30px -24px rgba(51, 48, 47, .5); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .2s; }
.mini:active { transform: scale(.985); }
.mini-art { position: relative; flex: none; width: 112px; display: block; background: var(--cream-deep); }
.mini-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 14px 16px; }
.mini-tag { font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
.mini-title { text-decoration: none; color: var(--ink); }
.mini-title h3 { font-size: 1.4rem; line-height: 1.08; }
.mini-meta { font-size: .8rem; color: var(--ink-soft); }
.mini-row { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-price { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--wine); white-space: nowrap; }
.mini-price small { font-family: var(--sans); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); }
.mini-price.tg { font-family: var(--sans); font-size: .8rem; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.mini-price.tg svg { width: 18px; height: 18px; }
.mini .btn.sm { padding: 0 14px; font-size: .7rem; }

/* ---------- Бордовая полоса (Для кого) ---------- */
.band { background: var(--wine); color: var(--cream); }
.band h2 { color: var(--white); }
.band .eyebrow { color: var(--rose); }
.who { display: grid; gap: 32px; }
.who-list { list-style: none; margin: 0; padding: 0; display: grid; }
.who-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(243, 231, 218, .25); font-size: 1.06rem; line-height: 1.5; }
.who-list li:first-child { border-top: 1px solid rgba(243, 231, 218, .25); }
.who-list .heart { color: var(--rose); font-size: 1.4rem; line-height: 1.05; }
.gift { margin-top: 22px; font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.3; color: var(--white); }
.topics { display: grid; gap: 12px; margin-top: 28px; grid-template-columns: 1fr 1fr; }
.topic { background: rgba(255, 255, 255, .08); border: 1px solid rgba(242, 169, 174, .4); border-radius: 18px; padding: 18px 16px; display: grid; gap: 8px; }
.topic small { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--rose); }
.topic h3 { color: var(--white); font-size: 1.3rem; text-wrap: pretty; overflow-wrap: anywhere; }

/* ---------- Программа: аккордеон ---------- */
.program-grid { display: grid; gap: 32px; }
.acc { display: grid; gap: 12px; }
.acc-item { background: var(--white); border-radius: var(--r); overflow: hidden; transition: box-shadow .25s; }
.acc-item[open] { box-shadow: 0 16px 40px -26px rgba(165, 47, 50, .6); }
.acc-item summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px; min-height: 64px; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-num { font-family: var(--serif); font-size: 2.6rem; line-height: .8; color: var(--rose); font-weight: 700; width: 1.1ch; text-align: center; }
.acc-title { display: grid; gap: 4px; min-width: 0; }
.acc-title small { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--wine); }
.acc-title span { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; font-weight: 600; }
.plus { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--wine); transition: transform .3s, background .3s, color .3s; flex: none; }
.plus svg { width: 16px; height: 16px; }
.acc-item[open] .plus { transform: rotate(45deg); background: var(--wine); color: var(--white); border-color: var(--wine); }
.acc-item::details-content { height: 0; overflow: clip; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
.acc-item[open]::details-content { height: auto; }
.acc-body { padding: 0 20px 22px; display: grid; gap: 14px; }
.acc-body p { color: var(--ink-soft); }
.faq-item summary { grid-template-columns: 1fr auto; }
.acc-q { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; font-weight: 600; }
.pairs { display: flex; flex-wrap: wrap; gap: 8px; }
.pairs span { font-family: var(--serif); font-size: 1.15rem; background: var(--cream); border-radius: 999px; padding: 4px 14px; color: var(--ink); }
.panel { background: var(--white); border-radius: var(--r); padding: 24px 22px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.45; font-weight: 500; }
.checks li::before { content: "♡"; color: var(--wine); font-size: 1.05rem; line-height: 1.35; }

/* ---------- Превью материалов ---------- */
.preview { margin-top: 44px; }
.preview-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.preview-head h3 { color: var(--ink); }
.preview-head p { color: var(--ink-soft); max-width: 46ch; }
.preview-head .eyebrow { margin-bottom: 8px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 300px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; scrollbar-color: var(--rose) transparent; -webkit-overflow-scrolling: touch; align-items: start; }
.rail > * { scroll-snap-align: start; }
.slide-card { margin: 0; background: var(--white); border-radius: 14px; padding: 8px; display: grid; gap: 10px; align-content: start; cursor: zoom-in; border: 0; text-align: left; font: inherit; color: inherit; }
.slide-card img { border-radius: 8px; width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: top; }
.slide-card .cap { font-size: .82rem; color: var(--ink-soft); padding: 0 6px 6px; }
.rail-hint { font-size: .74rem; color: var(--ink-soft); letter-spacing: .1em; text-transform: uppercase; }

/* Видео: круглая заметка и вертикальное 9:16, запуск по нажатию */
.vc { margin: 0; display: grid; gap: 12px; justify-items: center; text-align: center; }
.vc--circle { background: var(--rose); border-radius: 14px; padding: 18px; align-content: center; height: 100%; }
.vc--circle .vc-frame { width: 100%; max-width: 230px; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 6px var(--white); }
.vc--circle figcaption { font-size: .85rem; color: var(--wine-deep); font-weight: 600; }
.vc--tall .vc-frame { width: 100%; aspect-ratio: 9 / 16; border-radius: 24px; box-shadow: 0 0 0 6px var(--white), 0 26px 50px -28px rgba(138, 38, 41, .7); }
.vc--tall figcaption { font-size: .85rem; color: var(--ink-soft); padding: 0 8px; }
.vc-frame { position: relative; overflow: hidden; background: var(--cream-deep); }
.vc-frame video { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(51, 48, 47, .18); border: 0; cursor: pointer; transition: background .2s; border-radius: inherit; }
.play span { width: 60px; height: 60px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--wine); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); }
.play svg { width: 22px; height: 22px; margin-left: 4px; }
.playing .play { background: transparent; }
.playing .play span, .playing .vc-sound { opacity: 0; }
.vc-sound { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .92); color: var(--wine); font-size: .72rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; transition: opacity .2s; pointer-events: none; }
.vc--circle .vc-sound { display: none; }
.speak-grid { display: grid; gap: 32px; justify-items: center; }
.speak-grid .vc { width: min(100%, 300px); }
.speak-text { display: grid; gap: 18px; min-width: 0; }
.speak-text h2 { font-size: clamp(1.9rem, 6.6vw, 3.2rem); }

/* ---------- Про Настю ---------- */
.about-grid { display: grid; gap: 44px; }
.portrait { position: relative; max-width: 480px; width: 100%; margin-bottom: 28px; }
.portrait-frame { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream-deep); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.portrait::after { content: ""; position: absolute; inset: 18px -14px -14px 18px; border: 1px solid var(--wine); border-radius: var(--r); z-index: -1; }
.portrait-ig { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .94); color: var(--wine); text-decoration: none; font-weight: 700; font-size: .86rem; padding: 10px 16px 10px 12px; border-radius: 999px; box-shadow: 0 10px 24px -12px rgba(51, 48, 47, .6); min-height: 44px; }
.portrait-ig svg { width: 20px; height: 20px; }
.portrait-profile { position: absolute; right: -6px; bottom: -30px; width: 68%; background: var(--white); padding: 6px; border-radius: 14px; box-shadow: 0 18px 36px -16px rgba(51, 48, 47, .55); transform: rotate(2.5deg); transition: transform .25s; display: block; }
.portrait-profile:hover { transform: rotate(0) translateY(-3px); }
.portrait-profile img { width: 100%; height: auto; border-radius: 9px; }
.about-text { display: grid; gap: 16px; min-width: 0; }
.about-text h2 { font-size: clamp(1.8rem, 6vw, 3rem); }
.hello { font-family: var(--serif); font-size: 2rem; font-style: italic; color: var(--ink); line-height: 1.1; }
.about-text p { color: var(--ink-soft); max-width: 60ch; }
.about-text strong { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-block: 6px; }
.facts div { padding: 16px 10px 14px 0; display: grid; gap: 4px; }
.facts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.facts b { font-family: var(--serif); font-size: clamp(1.9rem, 7vw, 2.8rem); line-height: 1; color: var(--wine); font-weight: 700; }
.facts small { font-size: .72rem; line-height: 1.35; color: var(--ink-soft); font-weight: 600; }
.about-text .sign { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--wine); }

/* ---------- Тарифы ---------- */
.pricing { background: var(--cream-deep); }
.deadline { display: inline-flex; align-items: center; gap: 10px; background: var(--white); border-radius: 999px; padding: 10px 16px; font-size: .86rem; font-weight: 600; justify-self: start; color: var(--wine-deep); }
.deadline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 4px rgba(165, 47, 50, .18); }
.plans { display: grid; gap: 20px; }
.plan { border-radius: 28px; padding: 30px 22px; display: grid; gap: 20px; align-content: start; position: relative; min-width: 0; background: var(--white); }
.plan-name { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-name h3 { font-size: 2rem; letter-spacing: .04em; }
.badge { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: var(--rose); color: var(--wine-deep); white-space: nowrap; }
.plan-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.plan-price .now { font-family: var(--serif); font-weight: 700; font-size: 4.2rem; line-height: .9; font-variant-numeric: lining-nums; white-space: nowrap; }
.plan-price s { font-family: var(--serif); font-size: 1.8rem; opacity: .6; white-space: nowrap; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; line-height: 1.45; }
.plan li::before { content: "✓"; color: var(--wine); font-weight: 700; line-height: 1.4; }
.plan .incl { font-weight: 700; }
.plan .incl::before { content: "+"; }
.plan .note { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.35; }
.stages { border-radius: 16px; padding: 6px 16px; background: var(--cream); }
.stages-title { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: 12px 0 4px; color: var(--ink-soft); }
.stage { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.stage:nth-of-type(2) { border-top: 0; }
.stage b { font-family: var(--serif); font-size: 1.4rem; }
.stage.past { opacity: .45; text-decoration: line-through; }
.stage.active { font-weight: 700; color: var(--wine); }
.stage i { font-style: normal; margin-left: 8px; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; background: var(--wine); color: var(--white); padding: 3px 7px; border-radius: 999px; vertical-align: 2px; }
.plan .btn { margin-top: auto; }
.plan--pro { background: var(--wine); color: var(--white); box-shadow: 0 30px 60px -30px rgba(138, 38, 41, .8); }
.plan--pro::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(242, 169, 174, .55); border-radius: 20px; pointer-events: none; }
.plan--pro li::before { color: var(--rose); }
.plan--pro .stages { background: rgba(255, 255, 255, .1); }
.plan--pro .stages-title { color: var(--rose); }
.plan--pro .stage { border-color: rgba(242, 169, 174, .4); }
.plan--pro .stage.active { color: var(--white); }
.plan--pro .stage i { background: var(--rose); color: var(--wine-deep); }
.plan--pro .badge { background: var(--white); color: var(--wine); }
.terms { margin-top: 26px; display: grid; gap: 10px; font-size: .9rem; color: var(--ink-soft); max-width: 70ch; }
.pay-info { display: grid; gap: 8px; margin-top: 6px; }
.pay-info small { font-size: .78rem; }
.pay { display: flex; gap: 6px; flex-wrap: wrap; }
.pay span { border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-weight: 600; font-size: .7rem; color: var(--ink-soft); background: var(--white); }
.hint { font-size: .85rem; background: var(--white); border: 1px dashed var(--wine); border-radius: 14px; padding: 12px 14px; color: var(--ink); }

/* ---------- Отзывы: лента со снапом, стеклянные стрелки, бесшовный цикл ---------- */
.reviews-box { position: relative; --rv-w: min(78vw, 320px); }
.reviews { display: flex; gap: 12px; align-items: center; margin: 0 calc(-1 * var(--gutter)); padding: 0 calc((100% + 2 * var(--gutter) - var(--rv-w)) / 2); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.reviews::-webkit-scrollbar { display: none; }
.reviews .rv { flex: 0 0 var(--rv-w); scroll-snap-align: center; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); background: var(--white); }
.reviews .rv button { all: unset; display: block; cursor: zoom-in; width: 100%; }
.reviews .rv img { width: 100%; height: auto; display: block; }
.rv-btn { position: absolute; top: calc(50% - 14px); translate: 0 -50%; z-index: 1; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .75); background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .25) 100%); -webkit-backdrop-filter: blur(5px) saturate(1.4); backdrop-filter: blur(5px) saturate(1.4); color: var(--wine); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), inset 0 -1px 2px rgba(0, 0, 0, .06), 0 6px 16px -6px rgba(0, 0, 0, .28); transition: scale .2s ease-out, background .3s ease; -webkit-tap-highlight-color: transparent; }
.rv-btn.prev { left: 0; }
.rv-btn.next { right: 0; }
.rv-btn svg { width: 18px; height: 18px; }
.rv-btn:hover { background: rgba(255, 255, 255, .65); }
.rv-btn:active { scale: .92; }
.rv-btn:focus { outline: none; }
.rv-btn:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.rv-count { display: block; text-align: center; margin-top: 10px; height: 18px; font-size: .8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
.faq-aside p { color: var(--ink-soft); margin-top: 14px; max-width: 36ch; }
.faq-aside a { color: var(--wine); font-weight: 700; }

/* ---------- Финальный призыв ---------- */
.final { padding-block: 8px 56px; }
.final-card { background: var(--white); border-radius: 32px; padding: 40px 22px; display: grid; gap: 30px; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(2.2rem, 8.5vw, 4.2rem); line-height: .98; }
.final-text { display: grid; gap: 18px; min-width: 0; }
.final-text p { color: var(--ink-soft); max-width: 56ch; }
.final-photo { position: relative; justify-self: center; width: min(100%, 320px); }
.final-photo .circle { aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 10px var(--rose); }
.final-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.stamp { position: absolute; left: -6px; bottom: 6px; background: var(--wine); color: var(--white); border-radius: 50%; width: 104px; height: 104px; display: grid; place-content: center; text-align: center; transform: rotate(-10deg); font-family: var(--serif); line-height: 1; }
.stamp b { font-size: 1.8rem; white-space: nowrap; }
.stamp small { font-family: var(--sans); font-size: .66rem; letter-spacing: .14em; font-weight: 700; margin-top: 4px; }
.final .when { max-width: 520px; }
.final .push { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--wine); }

/* ---------- Занятия: текст для Telegram ---------- */
.contact-sec { padding-top: 0; }
.dm-card { background: var(--white); border-radius: 28px; padding: 28px 22px; display: grid; gap: 18px; max-width: 640px; }
.dm-note { font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.3; color: var(--wine); }
.dm-text { background: var(--cream); border-radius: 16px; padding: 16px 18px; font-size: 1.02rem; line-height: 1.5; border: 1px dashed var(--line); }
.dm-row { display: grid; gap: 10px; }
.dm-row .btn svg { width: 18px; height: 18px; }

/* ---------- Подвал ---------- */
.foot { background: var(--wine); color: var(--cream); padding-block: 52px calc(40px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; gap: 32px; }
.foot .logo { color: var(--white); font-size: 2rem; }
.foot .tagline { margin-top: 10px; opacity: .85; }
.foot h4 { margin: 0 0 12px; font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rose); font-weight: 700; }
.foot p, .foot a { font-size: .96rem; }
.foot a { text-decoration: none; border-bottom: 1px solid rgba(243, 231, 218, .35); padding-bottom: 2px; }
.foot a:hover { border-color: var(--rose); }
.foot .logo { border: 0; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 12px; min-width: 0; }
.contact-row a { word-break: break-all; }
.copy { background: transparent; border: 1px solid rgba(243, 231, 218, .4); color: var(--cream); border-radius: 999px; padding: 6px 12px; font: 600 .7rem var(--sans); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; min-height: 34px; }
.soc { display: grid; gap: 10px; justify-items: start; }
.ig { display: inline-flex; align-items: center; gap: 10px; border: 0 !important; }
.ig svg { width: 22px; height: 22px; flex: none; }
.legal { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(243, 231, 218, .2); font-size: .78rem; color: rgba(243, 231, 218, .75); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
/* Место под липкую полосу */
body:has(.sticky:not([hidden])) .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

/* ---------- Липкая полоса покупки (одна): цена и срок слева, кнопка справа ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 12px; align-items: center; justify-content: space-between; background: rgba(243, 231, 218, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -16px rgba(165, 47, 50, .5); padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); transition: transform .35s var(--ease), opacity .35s var(--ease); }
.sticky.away { transform: translateY(110%); opacity: 0; pointer-events: none; }
.s-info { display: grid; line-height: 1.15; min-width: 0; }
.s-info b { font-family: var(--serif); font-size: 1.5rem; color: var(--wine); white-space: nowrap; }
.s-info b s { font-size: 1rem; opacity: .6; color: var(--ink); margin-left: 4px; }
.s-info small { font-size: .72rem; color: var(--ink-soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky .btn { flex: none; }

/* ---------- Страница после оплаты ---------- */
.done { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--bar-h) + 40px) var(--gutter) 40px; }
.done-card { width: 100%; max-width: 480px; text-align: center; padding: 36px 22px 28px; border-radius: 32px; background: var(--white); box-shadow: 0 30px 80px -40px rgba(51, 48, 47, .5); }
.done-card h1 { font-size: 2.6rem; line-height: 1; margin: 18px 0 12px; color: var(--wine); }
.done-card p { color: var(--ink-soft); margin: 0 0 22px; }
.done-card .tag { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); margin-top: 16px; }
.done-card .next { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); display: grid; gap: 12px; text-align: left; }
.done-card .next h3 { font-size: 1.4rem; }
.done-card .next p { margin: 0; }
.check { width: 84px; height: 84px; margin: 0 auto; color: var(--wine); }
.check circle, .check path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 1s var(--ease) forwards; }
.check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s var(--ease) .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ring { width: 64px; height: 64px; margin: 10px auto; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--wine); animation: spin 1s linear infinite; }
.link { display: inline-block; margin-top: 18px; font-weight: 600; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Лайтбокс и тост ---------- */
dialog.lb { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 90vh; }
dialog.lb::backdrop { background: rgba(51, 48, 47, .82); }
dialog.lb img { max-height: 84vh; max-width: 92vw; width: auto; border-radius: 12px; margin: 0 auto; }
.lb-close { position: fixed; top: calc(14px + env(safe-area-inset-top)); right: calc(14px + env(safe-area-inset-right)); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--white); color: var(--wine); font-size: 1.6rem; cursor: pointer; }
.toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 76px); z-index: 60; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 999px; font-size: .9rem; transition: opacity .4s var(--ease), transform .4s var(--ease); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Переходы между страницами ---------- */
::view-transition-old(root) { animation: .18s ease-out both vt-out; }
::view-transition-new(root) { animation: .28s ease-out both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Планшет и десктоп ---------- */
@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .minis { grid-template-columns: 1fr 1fr; gap: 18px; }
  .plans { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .plan { padding: 40px 36px; }
  .topics { grid-template-columns: repeat(3, 1fr); }
  .dm-row { grid-template-columns: auto auto; justify-content: start; }
  .final-card { padding: 56px 48px; }
}
@media (min-width: 900px) {
  .sec { padding-block: 72px; }
  .hero { padding-bottom: 72px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; grid-template-areas: "kicker visual" "title visual" "info visual"; column-gap: 64px; row-gap: 28px; align-items: start; }
  .hero-visual { padding-bottom: 80px; margin-top: 8px; }
  .home-hero .hero-visual { padding-bottom: 24px; }
  .hero h1 { font-size: clamp(3rem, 6vw, 5.6rem); }
  .seal { width: 132px; height: 132px; left: -8%; }
  .who { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
  .program-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
  .about-grid { grid-template-columns: .95fr 1.05fr; gap: 80px; align-items: center; }
  .portrait-ig { left: -18px; top: 28px; }
  .portrait-profile { right: -40px; bottom: -36px; width: 62%; }
  .speak-grid { grid-template-columns: auto 1fr; gap: 72px; align-items: center; justify-items: start; }
  .faq-grid { grid-template-columns: .75fr 1.25fr; gap: 72px; align-items: start; }
  .final-card { grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; padding: 72px; }
  .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; }
  .rail-hint { display: none; }
  .sticky { justify-content: center; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .check circle, .check path { stroke-dashoffset: 0; }
}
