/* Сайт «Здоровый рацион от Камилы Цейтлиной» — стиль мини-аппа «Шалфей» (resources/miniapp/css/app.css). */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/onest-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/onest-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/unbounded-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/unbounded-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --font-head: 'Unbounded', system-ui, sans-serif; --font-body: 'Onest', system-ui, sans-serif;
  --bg: #F6F3EC; --surface: #FFFFFF; --surface-2: #EEEADF;
  --text: #2D3127; --muted: #6E7366; --line: rgba(45,49,39,.09); --line-strong: rgba(45,49,39,.22);
  --accent: #62804F; --accent-ink: #FFFFFF; --accent-soft: #E3EAD9; --accent-deep: #3F5631;
  --danger: #B3402F; --danger-soft: #F6E1DC;
  --hero-1: #7E9C69; --hero-2: #5B7849; --hero-3: #4B6640;
  /* Тени — несколько слоёв с оливковым оттенком (приём Josh Comeau / Tobias Ahlin): мягче и «дороже» одной серой. */
  --shadow-sm: 0 1px 1px hsl(95 20% 30% / .06), 0 2px 4px -1px hsl(95 20% 30% / .06), 0 8px 18px -6px hsl(95 20% 30% / .1);
  --shadow-md: 0 1px 1px hsl(95 20% 30% / .06), 0 4px 8px -2px hsl(95 20% 30% / .07), 0 14px 26px -8px hsl(95 20% 30% / .13), 0 26px 44px -16px hsl(95 20% 30% / .12);
  --shadow-lg: 0 2px 2px hsl(95 20% 30% / .06), 0 8px 16px -4px hsl(95 20% 30% / .08), 0 22px 38px -10px hsl(95 20% 30% / .16), 0 40px 64px -20px hsl(95 20% 30% / .18);
  --ring: 0 0 0 4px rgba(98,128,79,.2);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1E18; --surface: #252921; --surface-2: #2F342A;
    --text: #EEF0E8; --muted: #A4A99A; --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.22);
    --accent: #A3BE8F; --accent-ink: #1B1E18; --accent-soft: #33402C; --accent-deep: #CFE2BF;
    --danger: #F08A78; --danger-soft: #3D2622;
    --shadow-sm: 0 1px 1px rgba(0,0,0,.22), 0 2px 4px -1px rgba(0,0,0,.22), 0 8px 18px -6px rgba(0,0,0,.35);
    --shadow-md: 0 1px 1px rgba(0,0,0,.22), 0 4px 8px -2px rgba(0,0,0,.24), 0 14px 26px -8px rgba(0,0,0,.4), 0 26px 44px -16px rgba(0,0,0,.4);
    --shadow-lg: 0 2px 2px rgba(0,0,0,.22), 0 8px 16px -4px rgba(0,0,0,.28), 0 22px 38px -10px rgba(0,0,0,.45), 0 40px 64px -20px rgba(0,0,0,.5);
    --ring: 0 0 0 4px rgba(163,190,143,.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent-deep); }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(22px, 5vw, 30px); margin-bottom: 18px; }
h3 { font-size: 17px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 520px; }
main { flex: 1; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

/* ---------- Шапка ---------- */
/* Шапка прилипает и становится «матовым стеклом»; тень — когда страницу прокрутили (site.js → .scrolled). */
.top { position: sticky; top: 0; z-index: 20; padding: 12px 0; background: var(--bg); transition: box-shadow .3s ease, background-color .3s ease; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top { background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
}
.top.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(0,0,0,.35); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; background: linear-gradient(165deg, var(--hero-1), var(--hero-2)); }
.logo-mark svg { width: 26px; height: 26px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.logo-text b { font-family: var(--font-head); font-size: 14px; text-transform: uppercase; }
.logo-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-link { flex: none; font-weight: 600; font-size: 15px; text-decoration: none; padding: 9px 16px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); color: var(--text); }

/* ---------- Кнопки и формы ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 18px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; box-shadow: 0 12px 26px -12px var(--accent); transition: transform .25s var(--ease-out), box-shadow .25s ease, filter .2s ease; }
/* Блик пробегает по кнопке при наведении. */
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%); transform: translateX(-110%); transition: transform .7s var(--ease-out); pointer-events: none; }
@media (hover: hover) {
  .btn:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--accent); }
  .btn:hover::after { transform: translateX(110%); }
  .btn.light:hover { box-shadow: 0 18px 32px -14px rgba(0,0,0,.5); }
  .btn.ghost:hover { box-shadow: var(--shadow-sm); }
}
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn:focus-visible, .top-link:focus-visible, .link-btn:focus-visible, .faq summary:focus-visible, details.promo summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn.block { display: flex; width: 100%; }
.btn.light { background: #fff; color: var(--hero-3); box-shadow: 0 12px 26px -14px rgba(0,0,0,.45); }
.btn.ghost { background: var(--surface-2); color: var(--text); box-shadow: none; }
.btn[disabled] { opacity: .6; cursor: default; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-deep); text-decoration: underline; cursor: pointer; font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 15px; }
.field small { font-size: 13px; }
.input { width: 100%; height: 54px; padding: 0 16px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: 17px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.input.code { font-family: var(--font-head); font-size: 26px; letter-spacing: .3em; text-align: center; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin-bottom: 18px; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--accent); }
.row-form { display: flex; gap: 10px; }
.row-form .input { flex: 1; min-width: 0; height: 50px; font-size: 16px; }
.row-form .btn { min-height: 50px; padding: 0 18px; }

/* ---------- Сообщения ---------- */
.note { padding: 14px 16px; border-radius: 16px; font-size: 15px; margin-bottom: 18px; background: var(--accent-soft); color: var(--text); }
.note.error { background: var(--danger-soft); color: var(--danger); }
.note b { display: block; margin-bottom: 2px; }
.errors { list-style: none; }

/* ---------- Карточки ---------- */
.card { background: var(--surface); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 14px; }
.features > .card, .steps > .card, .tariffs > .card { margin-top: 0; }
.lead { color: var(--muted); margin-bottom: 18px; }
.card h1 { font-size: clamp(22px, 6vw, 28px); margin-bottom: 10px; }
.card p + p { margin-top: 10px; }
.page-card { margin-top: 18px; }

/* ---------- Главная: первый экран ---------- */
.hero { position: relative; overflow: hidden; margin-top: 4px; border-radius: 28px; padding: 40px 22px 34px; color: #fff; background: linear-gradient(165deg, var(--hero-1), var(--hero-2) 58%, var(--hero-3)); }
.hero-f { position: absolute; width: 120px; height: 120px; opacity: .35; pointer-events: none; }
.hero-f.f1 { top: -40px; right: 8%; }
.hero-f.f2 { bottom: -56px; right: -40px; }
.hero-in { position: relative; max-width: 560px; }
.hero small { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; margin-bottom: 10px; font-weight: 600; }
.hero h1 { font-size: clamp(34px, 10vw, 58px); text-transform: uppercase; line-height: .98; margin-bottom: 16px; }
.hero p { font-size: 17px; opacity: .92; margin-bottom: 24px; max-width: 460px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-facts span { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 40px; background: rgba(255,255,255,.18); }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 0; }
.photos figure { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.photos img { width: 100%; height: 100%; object-fit: cover; }

section.block { margin-top: 48px; }
.features { display: grid; gap: 12px; grid-template-columns: 1fr; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-ic { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; background: var(--accent-soft); }
.feature h3 { margin-bottom: 4px; }
.feature p { font-size: 15px; color: var(--muted); }

.steps { counter-reset: step; display: grid; gap: 12px; }
.step { position: relative; padding-left: 58px; min-height: 44px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 5px var(--accent-soft); }
.step b { display: block; margin-bottom: 2px; }
.step span { color: var(--muted); font-size: 15px; }
/* Шаг в карточке: кружок внутри рамки, текст правее (отступ карточки на широком экране его не перебивает). */
.card.step { padding: 20px 20px 20px 78px; }
.card.step::before { left: 20px; top: 18px; }

/* «Раньше оформляли в боте?» под первым экраном */
.card.moved { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; }
.moved-ic { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; background: var(--accent-soft); }
.moved b { display: block; margin-bottom: 4px; }
.moved p { font-size: 15px; color: var(--muted); }

/* ---------- Тарифы ---------- */
.tariffs { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tariff { display: flex; flex-direction: column; gap: 10px; }
/* Плашка не помещается рядом с длинным названием — переносится строкой ниже, а не вылезает за карточку. */
.tariff-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 10px; }
.tariff-top h3 { min-width: 0; overflow-wrap: anywhere; }
.tariff-top .badge { flex: none; }
.tariff h3 { font-size: 19px; }
.tariff-note { font-size: 14px; font-weight: 600; color: var(--accent-deep); margin-top: -4px; }
.tariff.best { background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.tariff-price { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--accent-deep); line-height: 1; }
.tariff-price s { font-family: var(--font-body); font-size: 17px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.tariff-desc { font-size: 15px; color: var(--muted); white-space: pre-line; flex: 1; }
.tariff .btn { margin-top: 4px; }
.tariff.current { outline: 2px solid var(--accent); }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 30px; background: var(--accent-soft); color: var(--accent-deep); }

/* ---------- Вопросы ---------- */
.faq details { background: var(--surface); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.faq details + details { margin-top: 10px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
/* «+» поворачивается в «×», когда вопрос открыт. */
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--accent); flex: none; transition: transform .35s var(--ease-pop); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-top: 10px; color: var(--muted); font-size: 15px; }
.faq .help { margin-top: 18px; }
.help b { display: block; font-size: 17px; margin-bottom: 4px; }
.help p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }

/* ---------- Промокод на оформлении: свёрнут, пока не нужен ---------- */
details.promo { margin-bottom: 18px; }
details.promo summary { cursor: pointer; font-weight: 600; font-size: 15px; color: var(--accent-deep); list-style: none; }
details.promo summary::-webkit-details-marker { display: none; }
details.promo summary::before { content: '+ '; }
details.promo[open] summary::before { content: '− '; }
details.promo form { padding-top: 12px; }

/* ---------- Оферта и политика ---------- */
.narrow-text { max-width: 760px; }
.legal { overflow-wrap: anywhere; }
.legal h2 { font-size: 18px; margin: 26px 0 10px; }
.legal h3 { font-size: 16px; margin: 18px 0 8px; }
.legal p { font-size: 15px; margin-top: 10px; }
.legal ul { margin: 10px 0 0 20px; font-size: 15px; }
.legal li + li { margin-top: 6px; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal td { border: 1px solid var(--line-strong); padding: 8px 10px; vertical-align: top; }

/* ---------- Кабинет и оформление ---------- */
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.kv:first-of-type { border-top: 0; }
.kv span { color: var(--muted); }
.kv b { text-align: right; overflow-wrap: anywhere; }
.status { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 30px; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 10px; }
.status.off { background: var(--surface-2); color: var(--muted); }
.options { display: grid; gap: 10px; margin-bottom: 18px; }
.option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.option-main { flex: 1; min-width: 0; }
.option-main b { display: block; }
.option-main small { color: var(--muted); font-size: 13px; }
.option-price { font-weight: 700; white-space: nowrap; }
.legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.waiting { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; margin-top: 14px; }

/* ---------- Подвал ---------- */
.foot { padding: 28px 0 34px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot .wrap { display: flex; flex-direction: column; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--muted); }

@media (min-width: 720px) {
  .hero { padding: 64px 48px 54px; }
  .photos { grid-template-columns: repeat(6, 1fr); }
  .features { grid-template-columns: 1fr 1fr; gap: 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .tariffs { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .tariffs.stack { grid-template-columns: 1fr; }
  .card { padding: 28px 28px; }
  .actions { flex-direction: row; }
}

/* ---------- Движение ----------
   Источники приёмов: тени — joshwcomeau.com/css/designing-shadows; плавные вопросы — ::details-content
   + interpolate-size (developer.chrome.com/blog/styling-details); появление при прокрутке — как в sal.js /
   scroll-out, но своим IntersectionObserver на 30 строк (site.js). Анимируются только transform и opacity. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html { scroll-padding-top: 76px; }

.card { transition: transform .35s var(--ease-out), box-shadow .35s ease; }
.top-link { transition: transform .25s var(--ease-out), box-shadow .25s ease; }
.logo-mark { transition: transform .5s var(--ease-pop); }
.feature-ic, .moved-ic { transition: transform .45s var(--ease-pop); }
.photos img { transition: transform .8s var(--ease-out); }

/* Бессрочный тариф: мягкое свечение рамки и блик на плашке «Навсегда». */
.tariff.best { --glow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: var(--shadow-md), var(--glow); }
.tariff.best .badge { background: linear-gradient(100deg, transparent 38%, rgba(255,255,255,.5) 50%, transparent 62%) 100% 0 / 250% 100% no-repeat, var(--accent-soft); animation: badge-shine 3.2s ease-in-out infinite; }
@keyframes badge-shine { 0%, 55% { background-position: 100% 0, 0 0; } 100% { background-position: 0 0, 0 0; } }

@media (hover: hover) {
  .tariff:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .tariff.best:hover { box-shadow: var(--shadow-lg), var(--glow); }
  .faq details:hover { box-shadow: var(--shadow-md); }
  .top-link:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .logo:hover .logo-mark { transform: rotate(-12deg) scale(1.05); }
  .feature:hover .feature-ic, .moved:hover .moved-ic { transform: rotate(-8deg) scale(1.1); }
  .photos figure:hover img { transform: scale(1.07); }
}

/* Первый экран: текст выплывает по очереди, цветки медленно вращаются, по зелени гуляет мягкий свет. */
.hero::before { content: ''; position: absolute; width: 70%; aspect-ratio: 1; top: -35%; left: -15%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.2), transparent); pointer-events: none; animation: hero-light 14s ease-in-out infinite alternate; }
@keyframes hero-light { to { transform: translate(55%, 35%) scale(1.15); } }
.hero-f { transform-origin: 50% 50%; animation: flower-spin 70s linear infinite; }
.hero-f.f2 { animation-duration: 95s; animation-direction: reverse; }
@keyframes flower-spin { to { transform: rotate(360deg); } }
/* backwards, не both: после анимации transform снова свой — наведение на кнопку работает. */
.hero-in > * { animation: rise .8s var(--ease-out) backwards; }
.hero-in > :nth-child(2) { animation-delay: .06s; }
.hero-in > :nth-child(3) { animation-delay: .12s; }
.hero-in > :nth-child(4) { animation-delay: .2s; }
.hero-in > :nth-child(5) { animation-delay: .28s; }
.hero-facts span { animation: pop .6s var(--ease-pop) backwards; }
.hero-facts span:nth-child(1) { animation-delay: .4s; }
.hero-facts span:nth-child(2) { animation-delay: .48s; }
.hero-facts span:nth-child(3) { animation-delay: .56s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes pop { from { opacity: 0; transform: scale(.8); } }

/* Внутренние страницы и сообщения появляются мягко. */
.page-card, .narrow > .block, .narrow > .card { animation: rise .6s var(--ease-out) backwards; }
.narrow > .block { animation-delay: .08s; }
.narrow > .card:last-child { animation-delay: .14s; }
.note, [data-login-wait]:not([hidden]) { animation: rise .45s var(--ease-out) backwards; }
.option { transition: border-color .2s, background-color .2s, box-shadow .25s, transform .15s; }
.option:has(input:checked) { box-shadow: var(--shadow-sm); }
.option:active { transform: scale(.99); }

/* Появление при прокрутке: site.js метит блоки [data-r] и добавляет html.reveal. Без скрипта и при
   «уменьшить движение» класса нет — всё видно сразу. translate, а не transform: не спорит с наведением. */
.reveal [data-r]:not(.in) { opacity: 0; translate: 0 22px; }
.reveal [data-r] { transition: opacity .7s ease var(--d, 0s), translate .8s var(--ease-out) var(--d, 0s); }
.reveal .card[data-r] { transition: transform .35s var(--ease-out), box-shadow .35s ease, opacity .7s ease var(--d, 0s), translate .8s var(--ease-out) var(--d, 0s); }
.reveal .step[data-r]::before { transition: transform .6s var(--ease-pop) calc(var(--d, 0s) + .15s); }
.reveal .step[data-r]:not(.in)::before { transform: scale(.4); }

/* Вопросы и промокод раскрываются плавно (Chrome, Edge; в остальных — сразу, как раньше). */
@supports selector(::details-content) {
  .faq details, details.promo { interpolate-size: allow-keywords; }
  .faq details::details-content, details.promo::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .4s var(--ease-out), opacity .3s ease, content-visibility .4s allow-discrete; }
  .faq details[open]::details-content, details.promo[open]::details-content { block-size: auto; opacity: 1; }
}

@media print { .reveal [data-r] { opacity: 1 !important; translate: none !important; } .top { position: static; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Снег (с 30.11.2026, только в сезон — App\Support\SnowSeason) ---------- */
/* Слой поверх страницы, нажатиям не мешает; на светлом фоне снежинке нужна тень. */
.snow { position: fixed; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.sn { position: absolute; top: 0; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 3px rgba(110,130,155,.65); opacity: var(--o); animation: snowFall var(--d) linear var(--delay) infinite; }
@keyframes snowFall { from { transform: translate3d(0, -12px, 0); } 50% { transform: translate3d(var(--sway), 50vh, 0); } to { transform: translate3d(0, calc(100vh + 12px), 0); } }
@media (prefers-reduced-motion: reduce) { .snow { display: none; } }

/* ---------- Себе / в подарок на странице оформления (30.11.2026) ---------- */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 16px; background: var(--surface-2); }
.seg-i { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none; transition: background-color .2s, color .2s, box-shadow .2s; }
.seg-i.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.gift-row { padding: 14px 0; border-top: 1px solid var(--line); }
.gift-row:first-of-type { border-top: 0; }
.gift-row .row-form { margin-top: 10px; }
.gift-row .input { font-size: 14px; }
