/* =====================================================================
   BAESILVY FIT — дизайн-система v2. Подключается последней на всех страницах.
   Два стиля: «Бургунди» (по умолчанию, модная палитра 2025–26) и «Классика».
   Оба работают в светлой и тёмной теме.
   ===================================================================== */

/* ---------- 0. Общая база «Классики» ----------
   Витрина, оформление и презентация задают свои токены сами; эти — подстраховка, чтобы ни один
   тёмный блок (подбор формата, «18 из 18») и ни один статус не остались без цвета в «Классике». */
:root {
  --stone-2: #d9d1c7;
  --dark: #3a2a22; --dark-2: #4a372d; --dark-ink: #ede2d5;
  --good: #2f5a3a; --photo-ink: #e9dccd;
}

/* ---------- 1. Стиль «Бургунди»: бургунди + Mocha Mousse, пудра, сливочное масло, вишня ---------- */
:root[data-style="burgundy"] {
  --bg: #f5ede7;           /* кремовая пудра */
  --sheet: #fcf8f4;        /* молочный лист */
  --stone: #f0e2da;        /* пудра */
  --stone-2: #e5d0c5;
  --ink: #2a1117;          /* бургунди-чёрный */
  --muted: #6d4a50;
  --accent: #7b1e34;       /* бургунди */
  --accent-press: #63162a;
  --accent-ink: #fff5ef;
  --photo-field: #3a141e;  /* оксблад */
  --photo-ink: #f6e5dc;
  --dark: #3c1420;
  --dark-2: #521c2c;
  --dark-ink: #f9e9e1;
  --night: #2a1117;
  --night-ink: #fbefe8;
  --field: #fffdfb;
  --good: #2f5a3a; --good-bg: #e1ebdc; --warn: #7a4b12; --warn-bg: #f6e8c4; --bad: #8a2236; --bad-bg: #f6dde0;
  /* модные акценты */
  --mocha: #a47864;        /* Pantone 2025 Mocha Mousse */
  --blush: #f3cfd3;        /* розовая пудра */
  --butter: #f2e3a6;       /* сливочное масло */
  --cherry: #a51f38;       /* вишня */
  --hair: rgba(42, 17, 23, .09);
  --hair-strong: rgba(42, 17, 23, .16);
}
:root[data-style="burgundy"][data-theme="dark"] {
  --bg: #12080b; --sheet: #1d0e13; --stone: #2a151c; --stone-2: #3a1d27;
  --ink: #f8e9e3; --muted: #cba9ad;
  --accent: #e3909f; --accent-press: #eba3b0; --accent-ink: #1f0a10;
  --photo-field: #2a0f17; --photo-ink: #f6e5dc;
  --dark: #2a1019; --dark-2: #3d1823; --dark-ink: #f9e9e1;
  --night: #0b0406; --night-ink: #f8e9e3; --field: #251219;
  --good: #9fd0a8; --good-bg: #1d3324; --warn: #ecc27a; --warn-bg: #3b2c14; --bad: #f2a0ab; --bad-bg: #3f1820;
  --mocha: #c49a84; --blush: #5a2a35; --butter: #5b4c22; --cherry: #f07c90;
  --hair: rgba(248, 233, 227, .08); --hair-strong: rgba(248, 233, 227, .16);
}
@media (prefers-color-scheme: dark) {
  :root[data-style="burgundy"]:not([data-theme="light"]) {
    --bg: #12080b; --sheet: #1d0e13; --stone: #2a151c; --stone-2: #3a1d27;
    --ink: #f8e9e3; --muted: #cba9ad;
    --accent: #e3909f; --accent-press: #eba3b0; --accent-ink: #1f0a10;
    --photo-field: #2a0f17; --photo-ink: #f6e5dc;
    --dark: #2a1019; --dark-2: #3d1823; --dark-ink: #f9e9e1;
    --night: #0b0406; --night-ink: #f8e9e3; --field: #251219;
    --good: #9fd0a8; --good-bg: #1d3324; --warn: #ecc27a; --warn-bg: #3b2c14; --bad: #f2a0ab; --bad-bg: #3f1820;
    --mocha: #c49a84; --blush: #5a2a35; --butter: #5b4c22; --cherry: #f07c90;
    --hair: rgba(248, 233, 227, .08); --hair-strong: rgba(248, 233, 227, .16);
  }
}
/* «Классика» — прежняя спокойная палитра; добавляем только недостающие токены */
:root:not([data-style="burgundy"]) {
  --mocha: #8a6a58; --blush: #e8d6cf; --butter: #efe3c4; --cherry: #8a2a35;
  --hair: rgba(42, 30, 24, .08); --hair-strong: rgba(42, 30, 24, .15);
}
:root:not([data-style="burgundy"])[data-theme="dark"] { --hair: rgba(240, 230, 219, .08); --hair-strong: rgba(240, 230, 219, .15); --blush: #3a2a25; --butter: #3a3220; }

:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.22, 1, .36, 1);
  --t-fast: .2s; --t-mid: .45s; --t-slow: 1.1s;
  --h-btn: 52px; --h-btn-s: 46px; --h-badge: 28px;
}

/* Поверхности, которые раньше были жёстко прописаны */
:root[data-style="burgundy"] .extras li,
:root[data-style="burgundy"] .plan.vip .status { background: var(--dark-2); }
:root[data-style="burgundy"] .fit-phase-buttons button:not([aria-selected="true"]) { background: var(--dark-2); }
:root[data-style="burgundy"] .fit-phone { background: var(--night); }
:root[data-style="burgundy"] .plan.mid { background: var(--field); }

/* ---------- 2. Тонкие детали: шум плёнки и линии в 1 пиксель ---------- */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2147483000; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: .035; }
.sheet, .plan, .tile, .quest, .ba, .notes li, .extras li, .faq, .compare, .calc-fields, .acc details, .fit-steps > li, .roles div, .week, .methods button, .pick button, .ex, .locked-list li {
  box-shadow: inset 0 0 0 1px var(--hair);
}
.plan.mid { box-shadow: inset 0 0 0 2px var(--accent), 0 24px 60px -34px color-mix(in srgb, var(--accent) 70%, transparent); }
hr, .rule { border: 0; border-top: 1px solid var(--hair-strong); }

/* ---------- 3. Кнопки: одна система ---------- */
.cta, .btn, .tb-buy, .fit-next, .tg-main {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--h-btn); padding: 0 26px; border-radius: 999px !important;
  font: 600 1rem/1.15 var(--f-text); letter-spacing: .005em; text-decoration: none; text-align: center;
  position: relative; overflow: hidden; isolation: isolate; cursor: pointer; border: 0;
  transition: transform var(--t-mid) var(--ease-out), background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-mid) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn { min-height: var(--h-btn-s); padding: 0 22px; }
/* Главные — с бликом сверху и мягкой тенью цвета */
.cta:not(.quiet):not(.light), .btn:not(.quiet):not(.ghost):not(.dark), .fit-next, .tg-main {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 12px 28px -16px color-mix(in srgb, var(--accent) 90%, transparent);
}
.cta:not(.quiet):not(.light):hover, .btn:not(.quiet):not(.ghost):not(.dark):hover, .fit-next:hover {
  background: var(--accent-press);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 18px 34px -16px color-mix(in srgb, var(--accent) 95%, transparent);
}
/* Тихие — пудра с тонкой линией */
.cta.quiet, .btn.quiet { background: var(--stone); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.cta.quiet:hover, .btn.quiet:hover { background: var(--stone-2); }
.cta.light { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.btn.ghost { box-shadow: none; text-underline-offset: 4px; }
/* Блик, пробегающий при наведении */
.cta::after, .btn:not(.ghost)::after, .tb-buy::after, .fit-next::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .34) 48%, rgba(255, 255, 255, .08) 56%, transparent 70%); /* taste-skill-ignore: блик на кнопке, а не фон */
  transform: translateX(-130%); transition: transform .9s var(--ease-out);
}
.cta:hover::after, .btn:hover::after, .tb-buy:hover::after, .fit-next:hover::after { transform: translateX(130%); }
.cta:hover, .btn:not([disabled]):hover, .fit-next:hover { transform: translateY(-2px); }
.cta:active, .btn:active, .tb-buy:active, .fit-next:active, .tg-main:active { transform: translateY(0) scale(.97); transition-duration: .12s; }
.cta:focus-visible, .btn:focus-visible, .tb-buy:focus-visible, .fit-next:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Капля от нажатия */
.rip { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; background: currentColor; opacity: .18; transform: scale(0); animation: rip .65s var(--ease-out) forwards; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }

/* ---------- 4. Иконки ---------- */
.ico { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-end { transition: transform var(--t-mid) var(--ease-out); }
a:hover > .ico-end, button:hover > .ico-end { transform: translateX(4px); }
.ico.draw path, .ico.draw circle, .ico.draw rect, .ico.draw polyline, .ico.draw line { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 1s var(--ease-out) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* Маркеры списков — аккуратные галочки вместо квадратов */
.dots li::before, .plan ul.incl li::before {
  content: ""; width: 16px; height: 16px; top: .28em; border-radius: 0; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dots li { padding-left: 26px; }
.plan ul.incl li.no::before {
  background: var(--muted);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
}
.plan.vip ul.incl li::before { background: var(--butter); }
:root:not([data-style="burgundy"]) .plan.vip ul.incl li::before { background: var(--photo-ink); }

/* ---------- 5. Бейджи и метки: одна высота, одна форма ---------- */
.pill, .badge, .off, .mark-wk, .chips span, .q-gift .pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: var(--h-badge); padding: 0 12px;
  border-radius: 999px; font: 600 .8125rem/1 var(--f-text); letter-spacing: .02em; white-space: nowrap;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent);
}
.chips span { font-weight: 500; font-size: .875rem; }
.pill .ico, .badge .ico, .chips .ico { width: 14px; height: 14px; vertical-align: 0; }
/* Статусы: точка; пульсирует только «ждём оплату» — это и правда меняющееся состояние */
.pill.good::before, .pill.warn::before, .pill.bad::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.warn[data-status="pending"]::before { animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
/* Модные цвета в бургунди */
:root[data-style="burgundy"] .plan.mid .badge { background: var(--butter); color: #3a2a06; }
:root[data-style="burgundy"] .plan.vip .badge { background: var(--blush); color: #3a1018; }
:root[data-style="burgundy"] .off { background: var(--cherry); color: #fff5ef; }
:root[data-style="burgundy"] .plan.vip .off { background: var(--butter); color: #3a2a06; }
:root[data-style="burgundy"][data-theme="dark"] .plan.mid .badge,
:root[data-style="burgundy"][data-theme="dark"] .plan.vip .off { color: #fff3d2; }
:root[data-style="burgundy"][data-theme="dark"] .plan.vip .badge { color: #ffe4e8; }
:root[data-style="burgundy"][data-theme="dark"] .off { color: #1f0a10; }
:root[data-style="burgundy"] .mark-wk { background: var(--accent); color: var(--accent-ink); }
:root[data-style="burgundy"] .ribbon span::after { background: var(--butter); opacity: 1; }
.badge { animation: badgeIn .7s var(--ease-out) both; }
@keyframes badgeIn { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }

/* ---------- 6. Картинки: тонкая рамка, проявление маской, глубина ---------- */
.photo-slot img, .focus-grid li.has-photo img, .author-photos img, .final-photo, .start-photo, .video.has-poster, .fit-video {
  outline: 1px solid rgba(255, 255, 255, .1); outline-offset: -1px;
}
.author-photos img.reveal, .final-photo.reveal, .start-photo.reveal {
  clip-path: inset(9% 9% 9% 9% round var(--r, 24px));
  transition: clip-path 1.3s var(--ease-out), transform 1.3s var(--ease-out), opacity .9s var(--ease-out);
}
.author-photos img.reveal.in, .final-photo.reveal.in, .start-photo.reveal.in { clip-path: inset(0 0 0 0 round var(--r, 24px)); }
.focus-grid li.has-photo.reveal img { transform: scale(1.14); transition: transform 1.8s var(--ease-out); }
.focus-grid li.has-photo.reveal.in:not(:hover) img { transform: scale(1); }
:root[data-style="burgundy"] .focus-grid li.has-photo::after {
  background: linear-gradient(to top, rgba(42, 10, 18, .9) 0%, rgba(58, 20, 30, .42) 45%, rgba(58, 20, 30, 0) 72%); /* taste-skill-ignore: подложка под текстом на фото */
}
/* ---------- 7. Карточки и общая пластика ---------- */
.plan, .tile, .quest, .ba, .extras li, .methods button { transition: transform var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out), background-color var(--t-fast); }
@media (hover: hover) {
  .tile:hover, .quest:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--hair-strong), 0 16px 32px -24px rgba(42, 17, 23, .45); }
}
.sheet h2, .sec-head h2, .tariffs h2 { text-wrap: balance; }
.reveal { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }

/* ---------- 8. Выравнивание ---------- */
/* Карточки тарифов: одинаковая линия заголовков, кнопки на одной высоте */
@media (min-width: 821px) {
  .plan:not(:has(> .badge))::before { content: ""; display: block; height: calc(var(--h-badge) + 14px); }
}
.plan .badge { margin: 0 0 14px; }
.plan .cta { width: 100%; }
.price-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row { align-items: center; }
.chips { align-items: center; }
.between { align-items: center; }
.ex-name small, .q-body small { margin-top: 2px; }
.methods button { min-height: 76px; }

/* ---------- 9. Меньше движения — по просьбе системы ---------- */
@media (prefers-reduced-motion: reduce) {
  .cta::after, .btn::after, .tb-buy::after, .fit-next::after { display: none; }
  .ico.draw path, .ico.draw circle, .ico.draw rect, .ico.draw polyline, .ico.draw line { animation: none; stroke-dashoffset: 0; }
  .badge, .pill.warn::before, .rip { animation: none; }
  .author-photos img.reveal, .final-photo.reveal, .start-photo.reveal { clip-path: none; }
  .focus-grid li.has-photo.reveal img { transform: none; }
}

.methods button { position: relative; overflow: hidden; isolation: isolate; }

/* ---------- Большие цветные поля: в тёмной теме — глубокий бургунди, а не розовый ---------- */
:root { --wine: var(--accent); --wine-ink: var(--accent-ink); }
:root[data-theme="dark"] { --wine: #4a1d26; --wine-ink: #f6ebe2; }
:root[data-style="burgundy"][data-theme="dark"] { --wine: #5a1a2c; --wine-ink: #fbe9e3; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --wine: #4a1d26; --wine-ink: #f6ebe2; }
  :root[data-style="burgundy"]:not([data-theme="light"]) { --wine: #5a1a2c; --wine-ink: #fbe9e3; }
}
footer, section.calc, .ribbon, .focus-grid li:nth-child(4), .slide.wine, .tile.wine, .stamp, .order li:last-child, .share .k { background: var(--wine); color: var(--wine-ink); }
:root[data-theme="dark"] footer .credit { color: var(--wine-ink); }
footer .social i { background: var(--wine-ink); color: var(--wine); }
:root[data-theme="dark"] .ribbon span::after { background: var(--wine-ink); }
:root[data-style="burgundy"][data-theme="dark"] .ribbon span::after { background: var(--butter); }

/* Кнопка «плей» на обложке видна в обеих темах */
.play { background: var(--field); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--hair); }
:root[data-theme="dark"] .play { background: #f8ece6; }
:root[data-theme="dark"] .play::after { border-left-color: #7b1e34; }
:root[data-theme="dark"] .play::before { border-color: #f8ece6; }
:root[data-theme="dark"] .wine .price-line s { color: var(--wine-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wine .price-line s { color: var(--wine-ink); } }

/* ---------- 10. Тёмная тема: подсветка, чтобы тёмное не тонуло в тёмном ---------- */
:root[data-theme="dark"] {
  --glow: 0 30px 70px -38px rgba(227, 144, 159, .32);
  --edge: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(255, 255, 255, .075);
}
:root[data-theme="dark"] .focus-grid li, :root[data-theme="dark"] .plan, :root[data-theme="dark"] .extras, :root[data-theme="dark"] .extras li,
:root[data-theme="dark"] .become, :root[data-theme="dark"] .fit-stage, :root[data-theme="dark"] .tile.dark, :root[data-theme="dark"] .quest.ok,
:root[data-theme="dark"] .sim, :root[data-theme="dark"] .video, :root[data-theme="dark"] .compare, :root[data-theme="dark"] .faq,
:root[data-theme="dark"] .sheet, :root[data-theme="dark"] .calc-fields, :root[data-theme="dark"] .tile, :root[data-theme="dark"] .quest,
:root[data-theme="dark"] .ba, :root[data-theme="dark"] .col, :root[data-theme="dark"] .final, :root[data-theme="dark"] .slide, :root[data-theme="dark"] .ex {
  box-shadow: var(--edge), var(--glow);
}
:root[data-theme="dark"] .plan.mid { box-shadow: inset 0 0 0 2px var(--accent), 0 30px 80px -34px rgba(227, 144, 159, .5); }
:root[data-theme="dark"] .topbar, :root[data-theme="dark"] header.top, :root[data-theme="dark"] .sticky-plan, :root[data-theme="dark"] .bar,
:root[data-theme="dark"] .demo-bar, :root[data-theme="dark"] .rest-timer, :root[data-theme="dark"] .prefs-menu, :root[data-theme="dark"] .consent {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 44px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(0, 0, 0, .5);
}
/* Фото в тёмной теме не притемняем — подложка под текстом и так есть */
:root[data-theme="dark"] img { filter: none; }
:root[data-theme="dark"] .photo-slot img, :root[data-theme="dark"] .focus-grid li.has-photo img { filter: saturate(1.05) brightness(1.04); }
/* Вторичный текст в тёмной теме светлее */
:root[data-theme="dark"] .muted, :root[data-theme="dark"] .small.muted { color: var(--muted); opacity: 1; }
:root[data-theme="dark"] .focus-grid li span, :root[data-theme="dark"] .plan .plan-for { opacity: .92; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img { filter: none; }
}

/* ---------- 11. Поверхности браузера в палитре ---------- */
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: var(--ink); }
:root { caret-color: var(--accent); accent-color: var(--accent); scrollbar-color: color-mix(in srgb, var(--accent) 55%, var(--stone)) var(--bg); }
html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: var(--bg); }
html::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 50%, var(--stone)); border-radius: 999px; border: 3px solid var(--bg); }
a { text-underline-offset: .22em; text-decoration-thickness: 1px; }
.price, .kcal-big, .norm b, [data-num], .rest-timer b, .cd-num b, td { font-variant-numeric: tabular-nums; }

/* ---------- 12. Значки, нарисованные SVG, вместо символов ---------- */
.week li.done::after {
  content: ""; background: var(--good);
  -webkit-mask: none; mask: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
.acc summary::after {
  content: ""; background-color: var(--sheet);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b1e34' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
  background-size: 16px; background-position: center; background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px var(--hair-strong);
}
.acc details[open] summary::after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b1e34' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E");
}
:root[data-theme="dark"] .acc summary::after { background-color: var(--stone); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3909f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .acc details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3909f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }

/* Способы оплаты: ровный список, одинаковая высота, бейдж справа */
.methods { grid-template-columns: 1fr !important; align-items: stretch; }
.methods button { min-height: 72px; padding-right: 16px; }
.methods button:has(.pill) { padding-right: 132px; }
.methods .m-text .pill { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); margin: 0; }
@media (max-width: 560px) {
  .methods button:has(.pill) { padding-right: 16px; }
  .methods .m-text .pill { top: 8px; right: 8px; transform: none; min-height: 22px; padding: 0 8px; font-size: .6875rem; }
}

/* «Как ты увидишь результат»: три карточки в ряд, пока помещаются; без «сироты» */
@media (min-width: 900px) { .ba-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 641px) and (max-width: 899px) { .ba-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- 13. Всплывающие сообщения: всегда в одном месте, под шапкой, и сами исчезают ---------- */
#app > .toast {
  position: fixed; z-index: 90; left: 50%; top: calc(84px + env(safe-area-inset-top));
  width: max-content; max-width: min(520px, calc(100% - 24px)); margin: 0;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--night); color: var(--night-ink); font-weight: 600; font-size: .9375rem; line-height: 1.35;
  box-shadow: 0 18px 40px -14px rgba(20, 8, 12, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
  transform: translateX(-50%);
  animation: toastDrop .55s var(--ease-out) both, toastAway .45s var(--ease-out) 4.2s forwards;
}
#app > .toast::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background-color: var(--good);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}
@keyframes toastDrop { from { opacity: 0; transform: translate(-50%, -16px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastAway { to { opacity: 0; transform: translate(-50%, -10px); visibility: hidden; } }
html.tg #app > .toast { top: 120px; }
@media (max-width: 640px) { #app > .toast { top: calc(70px + env(safe-area-inset-top)); border-radius: 18px; } }
@media (prefers-reduced-motion: reduce) { #app > .toast { animation: toastAway .2s linear 4.2s forwards; } }

/* Подвал: кнопки соцсетей ровной сеткой */
footer .social { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; max-width: 640px; }
footer .social a { justify-content: flex-start; }

/* Пары цветов, которые не должны зависеть от того, как включена тёмная тема */
.weeks li.opt { background: var(--stone-2); color: var(--ink); }
footer .credit { color: var(--wine-ink); opacity: .9; }
/* Пружина мягче: лёгкий «доезд» без резиновой отдачи */
:root { --spring: cubic-bezier(.22, 1, .36, 1); }

/* ---------- 14. После аудита Impeccable v4.12 ---------- */
/* Без «висящих» слов в последней строке абзаца */
p, li, dd, figcaption, small, .lead, .q-body small { text-wrap: pretty; }
h1, h2, h3, .sec-head h2 { text-wrap: balance; }
/* Таблицы: текст не прижат к краю ячейки */
.table-scroll th, .table-scroll td { padding: 10px 12px; }
.table-scroll tbody tr:hover td { background: var(--field); }
/* Закрытые квесты: без полупрозрачности (она съедала контраст), замок и пунктирная рамка вместо неё */
.quest.locked { opacity: 1; background: var(--bg); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.quest.locked .q-body b, .quest.locked .q-gift { color: var(--muted); }
.quest.locked .q-body small, .quest.locked .q-gift small { opacity: 1; color: var(--muted); }
.q-body small, .q-gift small { opacity: 1; color: var(--muted); }
.quest.ok .q-body small, .quest.ok .q-gift small { color: var(--dark-ink); opacity: .9; }
.quest.locked .q-lock { color: var(--ink); font-weight: 600; }

/* ---------- 15. Таблица «Сравнить форматы» ---------- */
.compare table { border-collapse: separate; border-spacing: 0; table-layout: fixed; width: 100%; }
.compare col.c-label { width: 34%; }
.compare th, .compare td { background: none; border-radius: 0; padding: 14px 16px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--hair); font-weight: 500; hyphens: manual; overflow-wrap: normal; }
.compare tbody th, .compare tfoot th { text-align: left; font-weight: 500; }
.compare th small { display: block; margin-top: 2px; font-size: .8125rem; font-weight: 400; color: var(--muted); }
/* Группы строк */
.compare tr.grp th { padding: 28px 16px 10px; border-bottom: 1px solid var(--hair-strong); font: 500 1.375rem/1.1 var(--f-display); color: var(--accent); text-align: left; }
.compare tbody:first-of-type tr.grp th { padding-top: 12px; }
/* Значки «есть / нет» */
.cmp-ico { width: 30px; height: 30px; padding: 6px; border-radius: 50%; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.compare td.yes .cmp-ico { stroke: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.compare td.no .cmp-ico { stroke: color-mix(in srgb, var(--muted) 70%, transparent); }
.compare td.yes .cmp-ico path { stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .6s var(--ease-out); }
.compare.in td.yes .cmp-ico path, .compare:not(.reveal) td.yes .cmp-ico path { stroke-dashoffset: 0; }
.compare tbody tr:nth-child(2) .cmp-ico path { transition-delay: .05s; } .compare tbody tr:nth-child(3) .cmp-ico path { transition-delay: .1s; }
.compare tbody tr:nth-child(4) .cmp-ico path { transition-delay: .15s; } .compare tbody tr:nth-child(5) .cmp-ico path { transition-delay: .2s; }
/* Заголовки колонок: название и цена; липкие при прокрутке */
.compare thead th { position: static; background: var(--sheet); padding: 0 6px 10px; border-bottom: 1px solid var(--hair-strong); vertical-align: bottom; }
.compare thead button {
  display: grid; gap: 4px; justify-items: center; width: 100%; padding: 12px 8px; border: 0; border-radius: 16px;
  background: transparent; color: var(--ink); cursor: pointer; font: inherit; box-shadow: inset 0 0 0 1px var(--hair-strong);
  transition: background-color .25s, color .25s, box-shadow .25s, transform .35s var(--ease-out);
}
.compare thead button b { font: 500 1.5rem/1 var(--f-display); }
.compare thead button .c-price { font-size: .875rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.compare thead button:hover { background: var(--stone); transform: translateY(-1px); }
.compare thead button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.compare thead button[aria-pressed="true"] .c-price { color: var(--accent-ink); opacity: .85; }
.compare thead button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.c-rec { display: inline-flex; margin-bottom: 8px; min-height: 24px; align-items: center; padding: 0 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; background: var(--butter); color: #3a2a06; }
:root[data-theme="dark"] .c-rec { color: #fff3d2; }
/* Рекомендуемая колонка — мягкая подсветка по всей высоте */
.compare td[data-col="mid"], .compare th.rec { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.compare thead th.rec { background: color-mix(in srgb, var(--accent) 6%, var(--sheet)); border-radius: 18px 18px 0 0; padding-top: 10px; }
.compare tfoot td[data-col="mid"] { border-radius: 0 0 18px 18px; }
/* Выбранная колонка */
.compare td.on { background: color-mix(in srgb, var(--accent) 15%, transparent); color: inherit; }
.compare td.on.no { opacity: 1; }
/* Наведение на строку */
.compare tbody tr:not(.grp):hover > * { background-image: linear-gradient(var(--hair), var(--hair)); }
/* Итог: цена и кнопка в каждой колонке */
.compare tfoot th, .compare tfoot td { border-bottom: 0; padding-top: 22px; padding-bottom: 22px; }
.compare tfoot td b { display: block; font: 500 1.75rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.compare tfoot td .c-go { margin-top: 12px; min-height: 42px; padding: 0 18px; width: 100%; font-size: .9375rem; }


@media (max-width: 640px) {
  .compare tfoot { display: block; }
  .compare colgroup { display: none; }
  .compare tr.grp { display: block; margin: 0; }
  .compare tr.grp th { display: block; padding: 18px 4px 8px; font-size: 1.25rem; }
  .compare thead th { position: static; padding: 0 2px 8px; border-bottom: 0; }
  .compare thead th.rec { padding-top: 6px; }
  .compare thead button { padding: 10px 4px; }
  .compare thead button b { font-size: 1.125rem; }
  .compare thead button .c-price { font-size: .75rem; }
  .c-rec { font-size: .6875rem; padding: 0 7px; margin-bottom: 4px; }
  .compare tbody th, .compare tfoot th { grid-column: 1 / -1; padding: 10px 4px 2px; border-bottom: 0; }
  .compare td { padding: 8px 2px 12px; }
  .compare tfoot td b { font-size: 1.125rem; }
  .compare tfoot td .c-go { padding: 0 6px; min-height: 40px; font-size: .8125rem; }
  .compare tfoot td .c-go .ico { display: none; }
}
@media (max-width: 640px) { .compare thead tr { align-items: end; } }
/* Нижняя плашка «Купить» на телефоне — всегда тёмная, в любой теме */
.sticky-plan:not([hidden]) { background: var(--night); color: var(--night-ink); }

/* ---------- 16. Подбор формата ---------- */
.quiz-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }
.quiz-link::after { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat; }
.quiz { margin-top: clamp(32px, 4vw, 56px); background: var(--sheet); border-radius: var(--r); padding: clamp(24px, 3vw, 44px); display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; scroll-margin-top: 96px; box-shadow: inset 0 0 0 1px var(--hair); }
.quiz-head { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.quiz-head h3 { font: 400 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1.05 var(--f-display); margin: 0; }
.quiz-head p { margin: 0; color: var(--muted); max-width: 32rem; }
.quiz-form { display: grid; gap: 18px; }
.quiz-form .seg { margin: 0; }
.quiz-form .seg legend { font-weight: 600; font-size: 1rem; margin-bottom: 10px; }
.quiz-form .seg label { flex: 1 1 0; min-width: 9.5rem; text-align: center; padding: 10px 14px; min-height: 48px; font-size: .9375rem; line-height: 1.25; background: var(--bg); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.quiz-form .seg label:hover { background: var(--stone); }
.quiz-form .seg label:has(input:checked) { background: var(--accent); color: var(--accent-ink); box-shadow: none; transform: none; }
.quiz-out { border-radius: 20px; min-height: 100%; background: var(--bg); box-shadow: inset 0 0 0 1px var(--hair); display: grid; align-content: center; padding: clamp(20px, 2.4vw, 32px); }
.quiz-wait { margin: 0; text-align: center; color: var(--muted); }
.quiz-out.ready { background: var(--dark); color: var(--dark-ink); box-shadow: 0 24px 48px -30px rgba(42, 10, 18, .55); align-content: start; }
.quiz-for { margin: 0; font-size: .875rem; font-weight: 600; opacity: .8; }
.quiz-name { margin: 4px 0 0; font: 400 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--f-display); }
.quiz-price { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.quiz-price b { font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.quiz-price span { font-size: .875rem; opacity: .8; }
.quiz-why { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.quiz-why li { position: relative; padding-left: 26px; }
.quiz-why li::before { content: ""; position: absolute; left: 0; top: .25em; width: 16px; height: 16px; background: var(--butter);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center/contain no-repeat; }
:root:not([data-style="burgundy"]) .quiz-why li::before { background: var(--dark-ink); }
.quiz-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); font-size: .9375rem; line-height: 1.45; }
.quiz-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.quiz-go .cta { flex: 1 1 auto; min-height: 48px; padding: 0 20px; font-size: .9375rem; }
.quiz-out.ready .cta:not(.quiet) { background: var(--dark-ink); color: var(--dark); box-shadow: none; }
.quiz-out.ready .cta.quiet { background: transparent; color: var(--dark-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.quiz-out.pop-in .quiz-res { animation: quizIn .6s var(--ease-out) both; }
@keyframes quizIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@media (max-width: 900px) { .quiz { grid-template-columns: 1fr; } .quiz-out { min-height: 0; } }
@media (max-width: 640px) { .quiz-form .seg label { min-width: 100%; } }

/* ---------- 17. Места VIP ---------- */
.seats { margin-top: 20px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.seats .between span { font-size: .875rem; opacity: .85; }
.seats [data-seats-left] { font-variant-numeric: tabular-nums; }
.seats-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 10px; }
.seats-bar i { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .22); transition: background-color .5s var(--ease-out); }
.seats-bar i.taken { background: var(--butter); }
:root:not([data-style="burgundy"]) .seats-bar i.taken { background: var(--photo-ink); }
.seats .status { margin: 10px 0 0; padding: 0; background: none; font-size: .875rem; }
.seats.low .status { color: var(--butter); font-weight: 600; }
.seats.low .status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: .1em; }
.seats.full .seats-bar i { background: rgba(255, 255, 255, .45); }
.seats .between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
/* На тёмной карточке VIP и в результате подбора — яркое «сливочное масло» в обеих темах */
:root { --butter-bright: #f2e3a6; }
.seats-bar i.taken, .quiz-why li::before { background: var(--butter-bright); }
.seats.low .status { color: var(--butter-bright); }

/* Без «карточки в карточке»: места VIP — разделителем, подбор — без внешней подложки */
.seats { background: none; box-shadow: none; border-radius: 0; padding: 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.quiz { background: none; box-shadow: none !important; border-radius: 0; padding: clamp(28px, 3vw, 40px) 0 0; border-top: 1px solid var(--hair-strong); }
.plan.vip .seats .status { background: none; padding: 0; margin-top: 10px; border-radius: 0; }

/* ---------- 18. Вторичные кнопки (.ghost) и ряды действий в окнах ---------- */
.ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--h-btn); padding: 0 22px; border-radius: 999px !important; border: 0;
  background: transparent; color: var(--ink); font: 600 1rem/1.15 var(--f-text); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--hair-strong); transition: background-color .2s, transform .35s var(--ease-out);
}
.ghost:hover { background: var(--stone); transform: translateY(-1px); }
.ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.dlg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dlg-actions > * { margin: 0 !important; }
.dlg-actions > * { flex: 1 1 0; min-width: 12rem; }
.dlg { position: relative; }
.dlg-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--stone); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-strong); transition: background-color .2s, transform .35s var(--ease-out); }
.dlg-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.dlg-x:hover { background: var(--stone-2); transform: rotate(90deg); }
.dlg-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dlg h2 { padding-right: 52px; }
.btn.ghost { min-height: var(--h-btn-s); padding: 0 16px; box-shadow: none; text-decoration: underline; text-underline-offset: .25em; }
.dlg-actions .cta { flex: 1 1 auto; white-space: nowrap; } .dlg-actions .ghost { flex: 0 1 auto; white-space: nowrap; } @media (max-width: 520px) { .dlg-actions .cta, .dlg-actions .ghost { flex: 1 1 100%; } }
.dlg-actions { display: grid; grid-template-columns: 1fr; gap: 10px; } .dlg-actions > * { width: 100%; min-width: 0; }

/* ---------- 19. Тарифы: «Кумуш лично», бонусы, раздел «Дойди до конца» ---------- */
/* Якорный тариф — широкая полоса над карточками */
.private { margin-bottom: var(--gap); border-radius: var(--r); padding: clamp(24px, 3vw, 44px); display: grid; gap: clamp(20px, 3vw, 40px); grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center;
  background: #1a0a0f; color: #f6e9e1; box-shadow: inset 0 0 0 1px rgba(242, 227, 166, .28), 0 30px 70px -40px rgba(26, 10, 15, .6); }
.private h3 { font: 400 clamp(2rem, 1.5rem + 1.6vw, 3rem)/1 var(--f-display); margin: 6px 0 0; color: #f2e3a6; }
.pv-badge { display: inline-flex; min-height: 26px; align-items: center; padding: 0 12px; border-radius: 999px; background: #f2e3a6; color: #3a2a06; font-size: .75rem; font-weight: 700; letter-spacing: .02em; margin: 0; }
.pv-for { margin: 8px 0 0; opacity: .85; }
.private .price-row { margin-top: 14px; }
.private .price-row s { color: rgba(246, 233, 225, .7); }
.private .off { background: #f2e3a6; color: #3a2a06; }
.private .price { margin: 6px 0 0; font: 500 clamp(1.75rem, 1.4rem + 1vw, 2.5rem)/1.05 var(--f-display); }
.private .price small { display: block; font: 500 .8125rem var(--f-text); opacity: .8; margin-top: 4px; }
.pv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pv-list li { position: relative; padding-left: 26px; }
.pv-list li::before { content: ""; position: absolute; left: 0; top: .28em; width: 16px; height: 16px; background: #f2e3a6;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center/contain no-repeat; }
.pv-go { display: grid; gap: 10px; justify-items: stretch; min-width: 220px; }
.pv-go .cta { background: #f2e3a6 !important; color: #2a1117 !important; }
.pv-note { margin: 0; font-size: .8125rem; opacity: .8; text-align: center; max-width: 16rem; }
@media (max-width: 1100px) { .private { grid-template-columns: 1fr 1fr; } .pv-go { grid-column: 1 / -1; justify-items: start; } .pv-note { text-align: left; max-width: none; } }
@media (max-width: 640px) { .private { grid-template-columns: 1fr; } .pv-go { justify-items: stretch; } }

/* Бонусы в карточках */
.plan-perks { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair-strong); }
.perks-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; font-size: .875rem; letter-spacing: .02em; }
.pk-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); }
.plan.vip .pk-ico { color: var(--butter-bright); }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9375rem; }
.perks li { position: relative; padding-left: 18px; line-height: 1.4; }
.perks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); }
.plan.vip .perks li::before, .plan-perks.gold .perks li::before { background: var(--butter-bright); }
.plan.vip .plan-perks { border-top-color: rgba(255, 255, 255, .16); }
.sheet .perks-title { margin-top: 20px; }

/* Таблица: текстовые ячейки бонусов */
.compare td.txt { font-size: .875rem; font-weight: 600; line-height: 1.3; }
@media (max-width: 640px) { .compare td.txt { font-size: .75rem; } }

/* Раздел «Дойди до конца — получи больше» */
.bonus { padding: clamp(72px, 9vw, 140px) var(--pad) 0; max-width: 1180px; margin: 0 auto; }
.ladder { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(28px, 3vw, 48px); }
.ladder > div { border-radius: var(--r); padding: clamp(22px, 2.6vw, 36px); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--hair); }
.ladder .step-b { background: var(--dark); color: var(--dark-ink); }
.lad-num { margin: 0; font: 400 clamp(3rem, 2.4rem + 2vw, 4.5rem)/1 var(--f-display); color: var(--accent); }
.step-b .lad-num { color: var(--butter-bright); }
.lad-num span { font: 600 .875rem var(--f-text); margin-left: 8px; color: var(--muted); }
.step-b .lad-num span { color: var(--dark-ink); opacity: .8; }
.lad-name { margin: 6px 0 0; font-weight: 700; font-size: 1.125rem; }
.ladder ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ladder li { position: relative; padding-left: 22px; }
.ladder li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); }
.step-b li::before { background: var(--butter-bright); }
.face { margin-top: var(--gap); border-radius: var(--r); padding: clamp(24px, 3vw, 44px); display: grid; gap: clamp(20px, 3vw, 48px); grid-template-columns: 1.2fr 1fr; align-items: center;
  background: color-mix(in srgb, var(--blush) 55%, var(--sheet)); box-shadow: inset 0 0 0 1px var(--hair); }
.face-tag { margin: 0; display: inline-flex; min-height: 26px; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--sheet); font-size: .75rem; font-weight: 700; box-shadow: inset 0 0 0 1px var(--hair-strong); }
.face h3 { font: 400 clamp(2rem, 1.6rem + 1.4vw, 3rem)/1.02 var(--f-display); margin: 12px 0 0; }
.face-text p:last-child { margin: 12px 0 0; max-width: 34rem; }
.face-when { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; padding: 6px 0 6px clamp(20px, 3vw, 44px); border-left: 1px solid var(--hair-strong); }
.face-when dt { color: var(--muted); }
.face-when dd { margin: 0; font-weight: 600; }
.give { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: var(--gap); }
.give-card { border-radius: var(--r); padding: clamp(24px, 3vw, 40px); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--hair); display: grid; gap: 14px; align-content: start; }
.give-card h3 { font: 400 clamp(1.75rem, 1.4rem + 1vw, 2.5rem)/1.05 var(--f-display); margin: 0; }
.give-card p { margin: 0; max-width: 32rem; }
.give-card .cta { justify-self: start; }
#gift { background: var(--wine); color: var(--wine-ink); }
#gift .cta { background: var(--wine-ink) !important; color: var(--wine) !important; box-shadow: none; }
:root[data-theme="dark"] .face, :root[data-theme="dark"] .ladder > div, :root[data-theme="dark"] .give-card { box-shadow: var(--edge), var(--glow); }
@media (max-width: 820px) { .bonus { padding: 72px 16px 0; } .ladder, .give, .face { grid-template-columns: 1fr; } .face-when { border-left: 0; border-top: 1px solid var(--hair-strong); padding: 20px 0 0; } }

/* Оформление: приглашение, ссылки на подарок */
.ref-note { margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent); }
.gift-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 24px 0 0; }
.gift-links a { font-weight: 600; color: var(--accent); }

/* Подарочная открытка */
.gift-card { position: relative; overflow: hidden; border-radius: 26px; padding: 26px 26px 22px; min-height: 280px; display: grid; align-content: space-between; gap: 10px;
  background: var(--wine); color: var(--wine-ink); box-shadow: 0 28px 60px -30px rgba(42, 10, 18, .65), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.gift-card.gold { background: #1a0a0f; color: #f6e9e1; box-shadow: 0 28px 60px -30px rgba(26, 10, 15, .7), inset 0 0 0 1px rgba(242, 227, 166, .35); }
.gift-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 0 0 26px rgba(255, 255, 255, .04), 0 0 0 52px rgba(255, 255, 255, .03); }
.gc-top, .gc-bottom { display: flex; justify-content: space-between; gap: 12px; font-size: .8125rem; position: relative; z-index: 1; }
.gc-brand { font: 500 1.125rem/1 var(--f-display); letter-spacing: .08em; }
.gc-kind { opacity: .85; }
.gc-plan { margin: 0; font: 400 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--f-display); position: relative; z-index: 1; }
.gift-card.gold .gc-plan { color: #f2e3a6; }
.gc-sub { margin: 0; opacity: .85; }
.gc-msg { margin: 6px 0 0; font: italic 400 1.25rem/1.35 var(--f-display); }
.gc-from { margin: 0; font-size: .9375rem; }
.gc-code { letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.gift-url { overflow-wrap: anywhere; font-weight: 600; }
.field textarea { width: 100%; min-height: 96px; padding: 12px; font: 500 1rem/1.4 var(--f-text); color: var(--ink); background: var(--field, #fff); border: 2px solid var(--stone-2); border-radius: 14px; resize: vertical; }
.field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lead-s { font-size: 1.0625rem; max-width: 38rem; }

/* ---------- 20. Кабинет: бонусы ---------- */
.up-list { display: grid; gap: 8px; }
.up-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-s); background: var(--bg); box-shadow: inset 0 0 0 1px var(--hair); }
.up-item span b { display: block; }
.up-item span small { color: var(--muted); }
.face-card.open { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
.face-days { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 6px; }
.face-days li { padding: 10px 12px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--hair); }
.face-days li span { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; }
.face-days li b { font-weight: 600; font-size: .9375rem; line-height: 1.3; }
@media (max-width: 560px) { .face-days { grid-template-columns: 1fr 1fr; } .face-days li { padding: 9px 10px; } .face-days li b { font-size: .875rem; } }
.cert { position: relative; overflow: hidden; border-radius: 20px; padding: 24px 22px; text-align: center; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--hair-strong), inset 0 0 0 8px var(--bg), inset 0 0 0 9px var(--hair-strong); }
.cert.gold { background: #1a0a0f; color: #f6e9e1; box-shadow: inset 0 0 0 1px rgba(242, 227, 166, .5), inset 0 0 0 8px #1a0a0f, inset 0 0 0 9px rgba(242, 227, 166, .35); }
.cert-brand { font: 500 1rem/1 var(--f-display); letter-spacing: .1em; }
.cert-name { margin: 10px 0 0; font: 400 clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem)/1.05 var(--f-display); }
.cert.gold .cert-name { color: #f2e3a6; }
.cert-sub { margin: 8px 0 0; }
.cert-meta { margin: 6px 0 0; font-size: .8125rem; opacity: .8; font-variant-numeric: tabular-nums; }
.cert-seal { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #f2e3a6; color: #3a2a06; font: 700 .75rem var(--f-text); letter-spacing: .06em; transform: rotate(-12deg); }
.ref-box { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 10px 10px 14px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.ref-url { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; font-weight: 600; font-size: .9375rem; }

/* ---------- 21. Калькулятор (витрина и кабинет): темп, приёмы пищи, день тренировки и отдыха ---------- */
.calc-lose { display: grid; gap: 18px; }
.calc-lose[hidden] { display: none; }
.calc-macro { display: flex; height: 8px; border-radius: 8px; overflow: hidden; margin-top: 10px; gap: 2px; }
.calc-macro i { flex: 1 1 0; transition: flex-grow .5s var(--amb-ease, ease); }
.calc-macro [data-bar="protein"] { background: var(--accent); }
.calc-macro [data-bar="fat"] { background: #e3909f; }
.calc-macro [data-bar="carbs"] { background: #e8cf86; }
.calc-more { margin-top: 14px; display: grid; gap: 12px; }
.calc-days { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.calc-days div { background: var(--stone); border-radius: var(--r-s, 14px); padding: 12px; }
.calc-days span { display: block; font-size: .875rem; color: var(--muted); }
.calc-days b { font: 500 1.375rem/1.1 var(--f-display); }
.calc-meals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.calc-meals li { border-radius: var(--r-s, 14px); padding: 10px 12px; box-shadow: inset 0 0 0 1px var(--hair-strong); }
.calc-meals b { display: block; font-weight: 600; font-size: .9375rem; }
.calc-meals span { display: block; font-size: .8125rem; line-height: 1.35; color: var(--muted); }
.calc-goal, .calc-water, .calc-floor { margin: 0; font-size: .9375rem; line-height: 1.45; }
.calc-goal span { font-weight: 600; }
.calc-goal small { display: block; color: var(--muted); font-size: .875rem; margin-top: 2px; }
.calc-floor { color: var(--accent); font-weight: 600; }
@media (max-width: 640px) {
  .calc-meals { grid-template-columns: 1fr 1fr; }
}

.calc-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); }
.calc-grid > .field, .calc-grid > .field:has(select) { grid-column: auto; }

/* ---------- 22. Перенос текста: без одиноких слов, переносы по слогам на узких экранах, цены не рвутся ---------- */
h1, h2, h3, .plan h3, .pv-for, .plan-for { text-wrap: balance; }
p, li, dd, dt, small, summary, .lead { text-wrap: pretty; }
@media (max-width: 520px) {
  main p, main li, main dd, main summary { -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3; }
}
.price, .c-price, .tb-price, .sticky-label, .cw b, .facts b, .price-row s, .calc-kcal b, [data-out] { white-space: nowrap; }
