:root {
  --ink: #2b1b2f;
  --ink-2: #5c4a5e;
  --cream: #fbf5ef;
  --blush: #f4ddd3;
  --blush-2: #f9ebe4;
  --coral: #e4604a;
  --coral-d: #c8472f;
  --gold: #c99a3e;
  --romance: #d94b6a;
  --passion: #e4604a;
  --depth: #5a5bc8;
  --game: #1f9985;
  --activity: #c99a3e;
  --line: rgba(43, 27, 47, 0.12);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar-h: 56px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
a { color: inherit; }
b { font-weight: 700; }

/* ---------- Шапка, прогресс, навигация ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar-h); z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; background: rgba(251, 245, 239, 0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 22px; }
.logo { width: 30px; height: 30px; color: var(--coral); stroke: var(--coral); }
.bar-right { display: flex; align-items: center; gap: 16px; }
.counter { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bar-cta { font-size: 14px; font-weight: 700; text-decoration: none; background: var(--ink); color: var(--cream); padding: 8px 16px; border-radius: 999px; }
.bar-cta:hover { background: var(--coral); }
.progress { position: fixed; top: var(--bar-h); left: 0; right: 0; height: 3px; background: var(--line); z-index: 20; }
.progress i { display: block; height: 100%; width: 0; background: var(--coral); transition: width .3s; }

.nav {
  position: fixed; inset: auto 0 0 0; height: var(--nav-h); z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.nav-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  display: grid; place-items: center; cursor: pointer; font-size: 20px; color: var(--ink);
}
.nav-btn:hover:not(:disabled) { border-color: var(--coral); color: var(--coral); }
.nav-btn:disabled { opacity: .35; cursor: default; }
#prev svg { transform: rotate(180deg); }
.dots { display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(43, 27, 47, .2); cursor: pointer; transition: width .25s, background .25s; }
.dots button.on { width: 24px; background: var(--coral); }
.foot { position: fixed; right: 20px; bottom: 22px; font-size: 12px; color: var(--ink-2); z-index: 21; }

/* ---------- Сцена 1280×720, масштабируется в JS ---------- */
.viewport { position: fixed; top: calc(var(--bar-h) + 3px); bottom: var(--nav-h); left: 0; right: 0; display: grid; place-items: center; }
.stage { position: relative; width: 1280px; height: 720px; transform-origin: center center; }
.slide {
  position: absolute; inset: 0; padding: 56px 72px;
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
  background: #fff; border-radius: 28px; box-shadow: 0 30px 80px -40px rgba(43, 27, 47, .35);
  opacity: 0; visibility: hidden; transform: translateX(30px); transition: opacity .35s, transform .35s, visibility .35s;
  overflow: hidden;
}
.slide.on { opacity: 1; visibility: visible; transform: none; }
.slide.left { transform: translateX(-30px); }

h1 { font-family: var(--serif); font-size: 104px; line-height: 1; font-weight: 700; letter-spacing: -1px; }
h2 { font-family: var(--serif); font-size: 50px; line-height: 1.08; font-weight: 700; letter-spacing: -.5px; max-width: 980px; }
h3 { font-size: 22px; font-weight: 800; line-height: 1.25; }
.eyebrow { font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.lead { font-size: 30px; line-height: 1.3; color: var(--ink-2); max-width: 560px; }
.sub { font-size: 16px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.note { font-size: 20px; color: var(--ink-2); border-left: 3px solid var(--coral); padding-left: 16px; }
.key {
  margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--ink);
  display: flex; align-items: center; gap: 14px;
}
.key::before { content: ""; width: 40px; height: 2px; background: var(--coral); flex-shrink: 0; }

.btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--coral); color: #fff; border: 0; border-radius: 999px; padding: 16px 28px;
  font: 700 18px var(--sans); text-decoration: none; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--coral-d); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }

/* Картинки */
.art { border-radius: 22px; overflow: hidden; background: var(--blush-2); position: relative; }
.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art.empty { background: radial-gradient(circle at 60% 40%, #f6cfc1, var(--blush-2) 60%); }
.art.empty img { display: none; }

/* 1. Обложка */
.s-cover { flex-direction: row; align-items: stretch; gap: 40px; padding: 0 0 0 72px; background: linear-gradient(120deg, #fff 45%, var(--blush-2)); }
.cover-text { display: flex; flex-direction: column; justify-content: center; gap: 24px; flex: 0 0 560px; }
.cover-art { flex: 1; border-radius: 0; background: transparent; }
.cover-art img { object-position: 40% 60%; }
.chips { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.chips li { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; }
.chips svg { font-size: 26px; color: var(--coral); }

/* 2. Проблема */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pain { background: var(--blush-2); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.pain-art { height: 170px; border-radius: 16px; background: #fff; display: grid; place-items: center; overflow: hidden; position: relative; }
.pain-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pain-ico { font-size: 64px; color: var(--coral); stroke-width: 1.4; }
.tag { font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.quote { font-family: var(--serif); font-size: 25px; line-height: 1.25; }

/* 3. Сегменты */
.seg-list { display: flex; flex-direction: column; gap: 16px; }
.seg { display: flex; gap: 26px; align-items: center; padding: 22px 28px; border-radius: 20px; background: var(--blush-2); }
.seg-main { background: var(--ink); color: var(--cream); }
.seg-main p { color: rgba(251, 245, 239, .8) !important; }
.seg-n { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--coral); width: 64px; }
.seg h3 { font-size: 26px; }
.seg h3 em { font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--coral); color: #fff; padding: 4px 10px; border-radius: 99px; margin-left: 10px; vertical-align: 4px; }
.seg p { font-size: 20px; color: var(--ink-2); margin-top: 4px; }

/* Сплит-слайды */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; }
.split > div:first-child { display: flex; flex-direction: column; gap: 22px; }
.split .art { height: 100%; max-height: 560px; }
.art.contain img { object-fit: contain; }
.split .art.contain { height: auto; background: transparent; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 14px; font-size: 22px; line-height: 1.35; }
.checks svg { font-size: 26px; color: #fff; background: var(--coral); border-radius: 50%; padding: 5px; stroke-width: 2.6; margin-top: 2px; }
.examples { display: flex; flex-wrap: wrap; gap: 10px; }
.examples span { background: var(--blush-2); border-radius: 12px; padding: 10px 16px; font-size: 18px; font-weight: 600; }

/* Схема согласия */
.consent { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; position: relative; }
.mini-phone { background: var(--ink); border-radius: 26px; padding: 18px; color: var(--cream); display: flex; flex-direction: column; gap: 12px; }
.mp-name { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.card-mini { background: #3d2a42; border-radius: 12px; padding: 12px; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.kb { display: flex; flex-direction: column; gap: 6px; }
.kb span { text-align: center; font-size: 15px; font-weight: 700; padding: 9px; border-radius: 10px; background: #3d2a42; }
.kb span.on { background: var(--coral); }
.consent-merge { grid-column: 1 / -1; display: grid; place-items: center; font-size: 30px; color: var(--coral); }
.consent-merge svg { transform: rotate(90deg); }
.unlock { grid-column: 1 / -1; background: var(--blush); border-radius: 18px; padding: 18px 22px; text-align: center; }
.unlock-t { font-size: 22px; font-weight: 800; }
.unlock p:last-child { color: var(--ink-2); font-size: 17px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; flex-shrink: 0; }

/* 5. Шаги */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 40px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--coral) 0 8px, transparent 8px 16px); }
.steps li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; position: relative; }
.st-ico { width: 80px; height: 80px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; font-size: 36px; color: var(--coral); border: 6px solid #fff; }
.steps li:nth-child(3) .st-ico { background: var(--coral); color: #fff; }
.steps b { font-size: 23px; }
.steps p { font-size: 18px; color: var(--ink-2); }

/* 6. Измерения */
.dims { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.dims article { border-radius: 20px; padding: 20px 18px; background: color-mix(in srgb, var(--c) 10%, #fff); border-top: 5px solid var(--c); display: flex; flex-direction: column; gap: 8px; }
.dims svg { font-size: 38px; color: var(--c); }
.dims h3 { font-size: 21px; }
.dims p { font-size: 16px; color: var(--ink-2); }
.formats { display: flex; gap: 12px; flex-wrap: wrap; }
.formats span { font-size: 19px; font-weight: 700; padding: 12px 20px; border-radius: 99px; border: 2px solid var(--ink); }

/* Телефон с чатом */
.phone {
  justify-self: center; width: 360px; max-height: 600px; background: #e8dfe6; border-radius: 38px; border: 10px solid var(--ink);
  display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(43, 27, 47, .5);
}
.ph-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.ph-top b { display: block; font-size: 16px; }
.ph-top small { font-size: 12px; color: var(--ink-2); }
.ph-av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font-size: 24px; color: var(--coral); stroke: var(--coral); }
.chat { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end;
  background: radial-gradient(circle at 20% 20%, rgba(228, 96, 74, .08), transparent 40%), #efe6ec; }
.msg { background: #fff; border-radius: 14px 14px 14px 4px; padding: 11px 13px; font-size: 14.5px; line-height: 1.4; display: flex; flex-direction: column; gap: 4px; max-width: 94%; }
.msg.secret { background: var(--ink); color: var(--cream); }
.m-cat { font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.msg.secret .m-cat { color: var(--gold); }
.m-title { font-weight: 800; font-size: 16px; }
.m-q { font-weight: 700; }
.ikb { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 8px; max-width: 94%; }
.ikb span { background: rgba(255, 255, 255, .72); text-align: center; border-radius: 9px; padding: 8px 6px; font-size: 13.5px; font-weight: 700; }
.ikb span.pressed { background: var(--coral); color: #fff; }
.ikb .wide { grid-column: 1 / -1; }

/* 8. Вечер */
.parts { display: flex; flex-direction: column; gap: 12px; }
.part { border-left: 5px solid var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); border-radius: 0 16px 16px 0; padding: 16px 20px; }
.part b { font-size: 21px; }
.part p { font-size: 19px; color: var(--ink-2); margin-top: 4px; }

/* 9. Уровни */
.levels { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 21px; }
.levels li { display: flex; align-items: center; gap: 12px; }
.lv { width: 16px; height: 16px; border-radius: 50%; background: var(--c); }

/* 10. Неделя */
.week { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.week li { background: var(--blush-2); border-radius: 18px; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.week span { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--coral); }
.week b { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.week p { font-size: 18px; font-weight: 600; line-height: 1.3; }
.week li:nth-child(odd):not(.final) { background: var(--ink); color: var(--cream); }
.week li:nth-child(odd):not(.final) b { color: var(--gold); }
.week .final { background: var(--coral); color: #fff; }
.week .final b { color: #fff; }
.quests { display: flex; gap: 12px; }
.quests span { font-family: var(--serif); font-size: 22px; font-style: italic; }
.quests span + span::before { content: "·"; margin-right: 12px; color: var(--coral); font-style: normal; }

/* 11/14. Карточки-основания */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.basis { display: flex; gap: 18px; padding: 24px; border-radius: 20px; background: var(--blush-2); align-items: flex-start; }
.basis > svg { font-size: 44px; color: var(--coral); background: #fff; border-radius: 14px; padding: 9px; width: 62px; height: 62px; stroke-width: 1.6; }
.basis h3 { font-size: 23px; }
.basis p { font-size: 18px; color: var(--ink-2); margin-top: 6px; }

/* 12. Тарифы */
.plans { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 18px; align-items: stretch; }
.plan { border-radius: 22px; padding: 26px; border: 2px solid var(--line); display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan-name { font-size: 16px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.plan-name span { font-size: 12px; background: var(--gold); color: #fff; padding: 3px 9px; border-radius: 99px; margin-left: 6px; vertical-align: 2px; }
.price { font-family: var(--serif); font-size: 48px; font-weight: 700; line-height: 1.1; }
.price small { font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--ink-2); margin-left: 6px; }
.plan-d { font-size: 18px; color: var(--ink-2); margin-bottom: 8px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 18px; }
.plan li::before { content: "✓"; color: var(--coral); font-weight: 800; margin-right: 10px; }
.plan-hot { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.plan-hot .plan-name, .plan-hot .plan-d, .plan-hot .price small { color: rgba(251, 245, 239, .75); }
.badge { position: absolute; top: -15px; left: 26px; background: var(--coral); color: #fff; font-size: 14px; font-weight: 800; padding: 6px 14px; border-radius: 99px; }
.plan-plus { background: var(--blush-2); border-color: transparent; }

/* 13. Переформулировщик */
.rephrase { display: flex; flex-direction: column; gap: 10px; background: var(--blush-2); border-radius: 26px; padding: 30px; }
.rp-label { font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.bubble { border-radius: 18px 18px 18px 4px; padding: 16px 20px; font-size: 20px; line-height: 1.4; }
.bubble.raw { background: #d9d2d6; color: #4a3f47; text-decoration: line-through; text-decoration-color: rgba(228, 96, 74, .7); }
.bubble.soft { background: #fff; border: 2px solid var(--coral); }
.rp-mid { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--coral); font-size: 17px; padding: 8px 0; }
.rp-mid svg { font-size: 26px; }

/* 15. Предзапись */
.s-cta { flex-direction: row; align-items: center; gap: 48px; background: var(--ink); color: var(--cream); }
.cta-text { flex: 1; display: flex; flex-direction: column; gap: 22px; }
.s-cta h2 { font-size: 46px; }
.checks.light svg { background: var(--coral); }
.joined { font-size: 18px; color: var(--gold); font-weight: 700; }
.form { flex: 0 0 470px; background: var(--cream); color: var(--ink); border-radius: 24px; padding: 26px 28px; display: flex; flex-direction: column; gap: 9px; }
.f-label { font-size: 15px; font-weight: 700; margin-top: 4px; }
.form input[type=text], .form input:not([type]) {
  font: 500 17px var(--sans); padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); outline: none;
}
.form input:focus { border-color: var(--coral); }
.hp { position: absolute; left: -9999px; }
.radios { display: grid; gap: 7px; }
.r4 { grid-template-columns: repeat(4, 1fr); }
.r2 { grid-template-columns: 1fr 1fr; }
.radios label { cursor: pointer; }
.radios input { position: absolute; opacity: 0; }
.radios span { display: block; text-align: center; padding: 10px 6px; border-radius: 11px; border: 2px solid var(--line); font-weight: 700; font-size: 15px; background: #fff; transition: all .15s; }
.radios input:checked + span { border-color: var(--coral); background: var(--coral); color: #fff; }
.radios input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.form .btn { align-self: stretch; justify-content: center; margin-top: 8px; }
.f-msg { font-size: 15px; font-weight: 700; min-height: 1em; }
.f-msg.err { color: var(--coral-d); }
.f-msg.ok { color: var(--game); }
.f-legal { font-size: 12px; color: var(--ink-2); line-height: 1.35; }

/* ---------- Мобильный режим: слайды лентой ---------- */
body.flow { overflow: auto; }
body.flow .viewport { position: static; display: block; padding: calc(var(--bar-h) + 19px) 16px 32px; }
body.flow .stage { width: auto; height: auto; transform: none !important; display: flex; flex-direction: column; gap: 16px; }
body.flow .slide {
  position: relative; inset: auto; opacity: 1; visibility: visible; transform: none;
  padding: 28px 20px; gap: 16px; border-radius: 22px; min-height: 0;
}
body.flow .nav, body.flow .counter, body.flow .foot { display: none; }
body.flow .foot { display: block; position: static; text-align: center; padding: 0 0 24px; }
body.flow h1 { font-size: 64px; }
body.flow h2 { font-size: 30px; }
body.flow .lead { font-size: 21px; }
body.flow .key { font-size: 19px; margin-top: 4px; }
body.flow .note { font-size: 17px; }
body.flow .checks li { font-size: 18px; }
body.flow .s-cover { flex-direction: column; padding: 28px 20px 0; }
body.flow .cover-text { flex: none; }
body.flow .cover-art { height: 260px; margin: 0 -20px; }
body.flow .chips li { font-size: 17px; }
body.flow .grid3, body.flow .grid2, body.flow .plans, body.flow .split { grid-template-columns: 1fr; }
body.flow .split { display: flex; flex-direction: column; gap: 22px; }
body.flow .split .art { height: 240px; width: 100%; }
body.flow .pain-art { height: 90px; }
body.flow .pain-ico { font-size: 44px; }
body.flow .levels li { display: block; font-size: 18px; }
body.flow .lv { display: inline-block; vertical-align: -1px; margin-right: 8px; }
body.flow .btn { font-size: 16px; padding: 14px 22px; }
body.flow .split .art.contain { height: auto; }
body.flow .quote { font-size: 21px; }
body.flow .seg { padding: 18px; gap: 14px; align-items: flex-start; }
body.flow .seg-n { font-size: 30px; width: 40px; }
body.flow .seg h3 { font-size: 20px; }
body.flow .seg h3 em { display: inline-block; margin: 6px 0 0; }
body.flow .seg p { font-size: 16px; }
body.flow .steps { grid-template-columns: 1fr; gap: 12px; }
body.flow .steps::before { display: none; }
body.flow .steps li { flex-direction: row; text-align: left; align-items: center; gap: 14px; }
body.flow .steps li > b { min-width: 0; }
body.flow .st-ico { width: 56px; height: 56px; font-size: 26px; border-width: 0; flex-shrink: 0; }
body.flow .steps p { display: none; }
body.flow .dims { grid-template-columns: 1fr 1fr; }
body.flow .dims article:last-child { grid-column: 1 / -1; }
body.flow .formats span { font-size: 15px; padding: 8px 14px; }
body.flow .phone { width: 100%; max-width: 340px; height: auto; }
body.flow .week { grid-template-columns: 1fr 1fr; }
body.flow .week .final { grid-column: 1 / -1; }
body.flow .quests { flex-direction: column; gap: 4px; }
body.flow .quests span + span::before { display: none; }
body.flow .price { font-size: 38px; }
body.flow .plan-hot { margin-top: 10px; }
body.flow .s-cta { flex-direction: column; align-items: stretch; }
body.flow .s-cta h2 { font-size: 30px; }
body.flow .form { flex: none; padding: 20px 16px; }
body.flow .r4 { grid-template-columns: 1fr 1fr; }
body.flow .consent { gap: 10px; }
body.flow .mini-phone { padding: 12px; }
body.flow .card-mini { font-size: 14px; }
body.flow .kb span { font-size: 13px; }
body.flow .basis { padding: 18px; }
body.flow .basis h3 { font-size: 19px; }
body.flow .basis p { font-size: 16px; }
body.flow .bar-cta { padding: 7px 12px; }
body.flow .brand { font-size: 20px; }

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}
