/* =====================================================================
   EVENT PAGES (практикум, марафон) · uses only tokens from tokens.css
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-text);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: var(--fs-xl); line-height: 1.08; text-transform: uppercase; }
h3 { font-size: var(--fs-md); line-height: var(--lh-snug); }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

.container { max-width: var(--container); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.section { padding-block: var(--section-y); position: relative; }
.section--tint { background: var(--c-accent-soft); }
.section--tint-2 { background: color-mix(in srgb, var(--c-positive) 12%, var(--c-bg)); }
.center { text-align: center; }
.center h2, .center .lead { margin-inline: auto; }
.eyebrow { display: inline-block; font: 600 var(--fs-xs)/1.2 var(--font-body); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--c-accent); }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--c-muted); max-width: 58ch; }
.hl { color: var(--c-accent); }
.mark { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--c-accent) 30%, transparent) 58%); padding-inline: .08em; }
.head { margin-bottom: var(--sp-8); display: grid; gap: var(--sp-4); }
.head h2 { max-width: 20ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  font: 700 1rem/1.15 var(--font-body); letter-spacing: .04em; text-transform: uppercase; text-align: center;
  padding: 20px 30px; border-radius: var(--radius-pill); text-decoration: none; border: 0; cursor: pointer;
  background: var(--brand-accent); color: #fff;
  box-shadow: 0 18px 36px -16px color-mix(in srgb, var(--brand-accent) 80%, transparent);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2), background var(--dur-1);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 24px 44px -16px color-mix(in srgb, var(--brand-accent) 90%, transparent); }
.btn .arr { font-size: 1.3em; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }
.btn--dark { background: var(--c-btn-bg); color: var(--c-btn-text); box-shadow: var(--shadow-2); }
.btn--ghost { background: transparent; color: var(--c-text); border: 1.5px solid var(--c-line); box-shadow: none; text-transform: none; letter-spacing: 0; font-weight: 600; padding: 14px 22px; }
.btn--ghost:hover { border-color: var(--c-text); box-shadow: none; }
.btn--sm { padding: 12px 20px; font-size: 13px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.btn-note { font-size: var(--fs-sm); color: var(--c-muted); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: var(--z-header); background: color-mix(in srgb, var(--c-bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--c-line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__name { font: 500 17px/1.1 var(--font-display); white-space: nowrap; }
.brand__tag { font-size: 11px; line-height: 1.25; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; padding-left: 12px; border-left: 1px solid var(--c-line); }
@media (max-width: 560px) { .brand__tag { display: none; } .top .btn { padding: 11px 16px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(32px, 6vw, 88px) clamp(56px, 8vw, 112px); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0; pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -120px; top: -120px; background: color-mix(in srgb, var(--c-positive) 28%, transparent); }
.hero::after { width: 420px; height: 420px; left: -160px; bottom: -160px; background: color-mix(in srgb, var(--brand-accent) 22%, transparent); }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero__text { display: grid; gap: var(--sp-5); justify-items: start; }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 4.2vw, 4.6rem); line-height: 1.02; text-transform: uppercase; letter-spacing: -0.035em; }
.hero h1 .hl { display: block; }
.hero__sub { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 600; line-height: 1.35; max-width: 30ch; }
.hero__get { display: grid; gap: 6px; padding: var(--sp-5) var(--sp-6); border-radius: var(--radius-m); background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-1); max-width: 46ch; }
.hero__get b { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.hero__get p { color: var(--c-muted); font-size: .97rem; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 380px; width: 100%; justify-self: center; }
}

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: var(--radius-pill); background: var(--c-btn-bg); color: var(--c-btn-text); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.pill svg { width: 18px; height: 18px; flex: none; }
.kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--c-muted); }

/* Arch photo */
.arch { position: relative; aspect-ratio: 4 / 5; }
.arch__frame { position: absolute; inset: 0; border-radius: 999px 999px var(--radius-l) var(--radius-l); overflow: hidden; background: var(--c-accent-soft); box-shadow: var(--shadow-2); }
.arch__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.arch__ring { position: absolute; inset: -14px; border-radius: 999px 999px 44px 44px; border: 1.5px solid color-mix(in srgb, var(--c-positive) 60%, transparent); pointer-events: none; }
.badge { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-m); background: var(--c-surface); box-shadow: var(--shadow-2); font-size: 14px; line-height: 1.25; animation: float 6s var(--ease-in-out) infinite; }
.badge b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.badge__dot { width: 10px; height: 10px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 0 #E5484D; animation: live 1.8s infinite; flex: none; }
.badge--a { left: -22px; top: 18%; }
.badge--b { right: -18px; bottom: 12%; animation-delay: -3s; }
@media (max-width: 860px) { .badge--a { left: -8px; } .badge--b { right: -8px; } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes live { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Countdown ---------- */
.count { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.count__cell { min-width: 64px; padding: 10px 10px 8px; border-radius: var(--radius-s); background: var(--c-surface); border: 1px solid var(--c-line); text-align: center; }
.count__cell b { display: block; font: 500 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.count__cell span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.count-wrap { display: grid; gap: 8px; }
.count-wrap .kicker { font-size: 11px; }

/* ---------- "Тебе сюда, если" ---------- */
.pains { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.pains > * { min-width: 0; }
.pain { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-6); border-radius: var(--radius-m); background: var(--c-surface); border: 1px solid var(--c-line); }
.pain__ic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-positive); }
.pain__ic svg { width: 20px; height: 20px; }
.pain p { font-size: 1.02rem; }
.pain--cta { background: var(--c-btn-bg); color: var(--c-btn-text); border-color: transparent; flex-direction: column; justify-content: center; }
.pain--cta h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); text-transform: uppercase; line-height: 1.1; }
.pain--cta .btn { margin-top: var(--sp-3); }
@media (max-width: 760px) { .pains { grid-template-columns: 1fr; } }

/* ---------- Gifts ---------- */
.gifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.gifts > * { min-width: 0; }
.gift { position: relative; display: grid; gap: var(--sp-3); align-content: start; padding: var(--sp-7); border-radius: var(--radius-l); background: var(--c-surface); border: 1px solid var(--c-line); overflow: hidden; }
.gift__when { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-positive); }
.gift h3 { text-transform: uppercase; font-size: 1.2rem; }
.gift p { color: var(--c-muted); font-size: .97rem; }
.gift__ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-accent); margin-bottom: var(--sp-2); }
.gift__ic svg { width: 28px; height: 28px; }
@media (max-width: 900px) { .gifts { grid-template-columns: 1fr; } }

/* ---------- Day program ---------- */
.day { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.day > * { min-width: 0; }
.day + .day { margin-top: var(--section-y); }
.day__label { display: inline-flex; gap: 0; white-space: pre; align-items: center; padding: 8px 16px; border-radius: var(--radius-pill); background: var(--c-accent); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.day__head { display: grid; gap: var(--sp-5); justify-items: start; position: sticky; top: 96px; }
.day__head h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); }
.steps { display: grid; gap: var(--sp-4); counter-reset: s; }
.step { display: grid; grid-template-columns: clamp(52px, 30px + 3vw, 76px) 1fr; gap: var(--sp-5); padding: var(--sp-6); border-radius: var(--radius-m); background: var(--c-surface); border: 1px solid var(--c-line); }
.step > * { min-width: 0; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 500 clamp(2rem, 1.6rem + 1.2vw, 2.8rem)/1 var(--font-display); color: var(--c-accent); }
.step p { color: var(--c-muted); }
.step b { color: var(--c-text); }
@media (max-width: 860px) { .day { grid-template-columns: 1fr; } .day__head { position: static; } }

/* Guest */
.guest { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-5); align-items: center; padding: var(--sp-5); border-radius: var(--radius-m); background: var(--c-btn-bg); color: var(--c-btn-text); width: 100%; }
.guest > * { min-width: 0; }
.guest__ph { width: 96px; height: 96px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-support), var(--brand-accent)); display: grid; place-items: center; font: 500 30px/1 var(--font-display); color: #fff; overflow: hidden; }
.guest__ph img { width: 100%; height: 100%; object-fit: cover; }
.guest__k { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.guest__name { font: 500 1.35rem/1.15 var(--font-display); margin: 4px 0 6px; }
.guest__role { font-size: .95rem; opacity: .85; }

/* ---------- Timeline (марафон) ---------- */
.tl { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); }
.tl > * { min-width: 0; }
.tl__d { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6) var(--sp-5); border-radius: var(--radius-m); background: var(--c-surface); border: 1px solid var(--c-line); position: relative; }
.tl__n { font: 500 13px/1 var(--font-body); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-accent); }
.tl__d h3 { font-size: 1.08rem; text-transform: uppercase; }
.tl__d p { font-size: .93rem; color: var(--c-muted); }
.tl__bar { height: 6px; border-radius: 3px; background: var(--c-line); overflow: hidden; margin-top: auto; }
.tl__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-support), var(--brand-accent)); border-radius: inherit; }
@media (max-width: 1000px) { .tl { grid-template-columns: 1fr 1fr; } .tl__d:last-child { grid-column: 1 / -1; } }
@media (max-width: 560px) { .tl { grid-template-columns: 1fr; } }

/* Result strip */
.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.results > * { min-width: 0; }
.res { padding: var(--sp-7); border-radius: var(--radius-l); background: var(--c-scene); color: var(--c-inverse-text); display: grid; gap: var(--sp-2); }
.res b { font: 500 clamp(2.4rem, 1.8rem + 2vw, 3.6rem)/1 var(--font-display); color: var(--c-inverse-accent); letter-spacing: -0.03em; }
.res p { color: var(--c-inverse-muted); }
@media (max-width: 860px) { .results { grid-template-columns: 1fr; } }
.disclaimer { margin-top: var(--sp-5); font-size: 13px; color: var(--c-muted); max-width: 80ch; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about > * { min-width: 0; }
.about__ph { border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-2); }
.about__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.about h2 { margin-block: var(--sp-3) var(--sp-2); }
.about__role { font-weight: 600; color: var(--c-accent); margin-bottom: var(--sp-5); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.ticks li::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--c-positive) 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='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.stat-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.stat { padding: 14px 18px; border-radius: var(--radius-m); background: var(--c-accent-soft); }
.stat b { display: block; font: 500 1.6rem/1 var(--font-display); }
.stat span { font-size: 13px; color: var(--c-muted); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__ph { max-width: 420px; } }

/* ---------- Offer ---------- */
.offer { display: grid; grid-template-columns: 1.3fr .7fr; border-radius: var(--radius-l); overflow: hidden; background: var(--c-surface); border: 1px solid var(--c-line); box-shadow: var(--shadow-2); }
.offer > * { min-width: 0; }
.offer__body { padding: clamp(24px, 4vw, 48px); display: grid; gap: var(--sp-5); align-content: start; }
.offer__body h2 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); }
.offer__price { padding: clamp(24px, 4vw, 48px); background: var(--c-btn-bg); color: var(--c-btn-text); display: grid; gap: var(--sp-4); align-content: center; text-align: center; }
.offer__price .k { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.offer__price .old { text-decoration: line-through; opacity: .55; font-size: 1.1rem; }
.offer__price .now { font: 500 clamp(3rem, 2.2rem + 3vw, 4.6rem)/1 var(--font-display); letter-spacing: -0.04em; }
.offer__price .btn { width: 100%; }
.offer__price small { font-size: 13px; opacity: .7; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.reviews > * { min-width: 0; }
.review { display: grid; gap: var(--sp-4); align-content: start; padding: var(--sp-7); border-radius: var(--radius-l); background: var(--c-surface); border: 1px solid var(--c-line); }
.review::before { content: "“"; font: 500 64px/0.6 var(--font-display); color: var(--c-accent); height: 28px; }
.review p { font-size: .98rem; }
.review__who { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); font-weight: 700; }
.review__who span { font-weight: 500; font-size: 12px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--sp-3); max-width: 860px; margin-inline: auto; }
.faq details { border-radius: var(--radius-m); background: var(--c-surface); border: 1px solid var(--c-line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--sp-5) var(--sp-6); font-weight: 700; display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--font-display); color: var(--c-accent); transition: transform var(--dur-2); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 var(--sp-6) var(--sp-5); color: var(--c-muted); }

/* ---------- Final ---------- */
.final { background: var(--c-scene); color: var(--c-inverse-text); overflow: hidden; }
.final::before { content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -260px; border-radius: 50%; background: color-mix(in srgb, var(--brand-accent) 30%, transparent); filter: blur(80px); }
.final__in { position: relative; display: grid; gap: var(--sp-6); justify-items: center; text-align: center; }
.final h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.2rem); max-width: 18ch; }
.final .lead { color: var(--c-inverse-muted); }
.final .chips { justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip { padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--c-inverse-line); font-size: 14px; }
.final .pill { background: var(--c-inverse-accent); color: var(--brand-primary); }

/* ---------- Contact + footer ---------- */
.ask { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-5); padding: var(--sp-7); border-radius: var(--radius-l); background: var(--c-surface); border: 1px solid var(--c-line); }
.ask h3 { font-size: 1.5rem; }
.ask p { color: var(--c-muted); }
.foot { padding-block: var(--sp-7) calc(var(--sp-7) + 76px); font-size: 13px; color: var(--c-muted); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--c-text); }
@media (min-width: 861px) { .foot { padding-bottom: var(--sp-7); } }

/* ---------- Sticky mobile CTA ---------- */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-header); padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter); background: color-mix(in srgb, var(--c-bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--c-line); display: flex; gap: var(--sp-3); align-items: center; transform: translateY(110%); transition: transform var(--dur-2) var(--ease-out); }
.sticky.is-on { transform: none; }
.sticky__meta { font-size: 13px; line-height: 1.25; color: var(--c-muted); min-width: 0; }
.sticky__meta b { display: block; color: var(--c-text); font-size: 15px; }
.sticky .btn { margin-left: auto; padding: 14px 20px; font-size: 13px; }
@media (min-width: 861px) { .sticky { display: none; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: var(--z-overlay); display: grid; place-items: center; padding: var(--sp-4); background: color-mix(in srgb, #000 50%, transparent); }
.modal__box { width: min(480px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--c-surface); color: var(--c-text); border-radius: var(--radius-l); padding: var(--sp-7); display: grid; gap: var(--sp-4); box-shadow: var(--shadow-2); position: relative; }
.modal__box h3 { font-size: 1.4rem; text-transform: uppercase; padding-right: 32px; }
.modal__box p { color: var(--c-muted); font-size: .97rem; }
.modal__x { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line); background: transparent; color: var(--c-text); font-size: 22px; cursor: pointer; }
.modal__sum { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-m); background: var(--c-accent-soft); }
.modal__sum b { font: 500 1.6rem/1 var(--font-display); }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input { font: 500 16px/1.2 var(--font-body); padding: 14px 16px; border-radius: var(--radius-s); border: 1.5px solid var(--c-line); background: var(--c-bg); color: var(--c-text); width: 100%; }
.field input:focus { outline: none; border-color: var(--c-accent); }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13px; color: var(--c-muted); align-items: start; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand-accent); }
.test-note { font-size: 12px; color: var(--c-muted); text-align: center; }

/* ---------- Reveal ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* Dark mode tweaks */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn--dark, :root:not([data-theme="light"]) .pill, :root:not([data-theme="light"]) .guest, :root:not([data-theme="light"]) .pain--cta, :root:not([data-theme="light"]) .offer__price { background: var(--c-surface-2); color: var(--c-text); border: 1px solid var(--c-line); }
}
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: var(--sp-2); } .step::before { font-size: 1.8rem; } }

/* ---------- Index (выбор страницы) ---------- */
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
.pick > * { min-width: 0; }
.pick a { display: grid; gap: var(--sp-3); padding: var(--sp-7); border-radius: var(--radius-l); background: var(--c-surface); border: 1px solid var(--c-line); text-decoration: none; transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2); }
.pick a:hover { transform: translateY(-4px); border-color: var(--c-accent); }
.pick h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.pick p { color: var(--c-muted); }
@media (max-width: 760px) { .pick { grid-template-columns: 1fr; } }

/* =====================================================================
   MAIN SITE (главная, каталог)
   ===================================================================== */
.nav { display: flex; gap: var(--sp-6); font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--c-muted); }
.nav a:hover, .nav a[aria-current] { color: var(--c-text); }
@media (max-width: 960px) { .nav { display: none; } }

.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.topics > * { min-width: 0; }
.topic { display: grid; gap: var(--sp-2); padding: var(--sp-6); border-radius: var(--radius-m); background: var(--c-surface); border: 1px solid var(--c-line); }
.topic h3 { font-size: 1.1rem; }
.topic p { color: var(--c-muted); font-size: .95rem; }
.topic__ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-positive); margin-bottom: var(--sp-2); }
.topic__ic svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .topics { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .topics { grid-template-columns: 1fr; } }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); counter-reset: f; }
.flow > * { min-width: 0; }
.flow__s { display: grid; gap: var(--sp-3); align-content: start; padding-top: var(--sp-5); border-top: 2px solid var(--c-text); }
.flow__s::before { counter-increment: f; content: "Шаг " counter(f); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); }
.flow__s h3 { font-size: 1.15rem; }
.flow__s p { color: var(--c-muted); font-size: .95rem; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); align-items: stretch; }
.plans > * { min-width: 0; }
.plan { display: flex; flex-direction: column; gap: var(--sp-4); padding: var(--sp-7); border-radius: var(--radius-l); background: var(--c-surface); border: 1px solid var(--c-line); }
.plan--hot { background: var(--c-btn-bg); color: var(--c-btn-text); border-color: transparent; box-shadow: var(--shadow-2); }
.plan__k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); }
.plan--hot .plan__k { color: var(--brand-accent-dark); }
.plan h3 { font-size: 1.35rem; }
.plan__price { font: 500 2.4rem/1 var(--font-display); letter-spacing: -0.03em; }
.plan__price small { font: 500 14px/1 var(--font-body); opacity: .7; letter-spacing: 0; }
.plan > p { color: var(--c-muted); font-size: .95rem; }
.plan--hot > p { color: var(--c-inverse-muted); }
.plan .ticks { font-size: .95rem; }
.plan .btn { margin-top: auto; }
.plan--hot .ticks li::before { background-color: var(--brand-accent); }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.products > * { min-width: 0; }
.product { display: flex; flex-direction: column; border-radius: var(--radius-l); background: var(--c-surface); border: 1px solid var(--c-line); overflow: hidden; text-decoration: none; transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2), box-shadow var(--dur-2); }
a.product:hover { transform: translateY(-4px); border-color: var(--c-accent); box-shadow: var(--shadow-2); }
.product__cover { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: end start; padding: var(--sp-5); color: #fff; overflow: hidden; }
.product__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, #000 45%, transparent)); }
.product__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.product__cover b { position: relative; z-index: 1; font: 500 clamp(1.25rem, 1.05rem + .7vw, 1.6rem)/1.08 var(--font-display); text-transform: uppercase; letter-spacing: -0.02em; text-wrap: balance; }
.cv-1 { background: linear-gradient(135deg, #5E9472, #1E3A2F); }
.cv-2 { background: linear-gradient(135deg, #F2A27C, #E0703F); }
.cv-3 { background: linear-gradient(135deg, #B8893A, #1D1714); }
.cv-4 { background: linear-gradient(135deg, #8FB8C9, #3E6B7E); }
.cv-5 { background: linear-gradient(135deg, #C98FA6, #7E3E5A); }
.cv-6 { background: linear-gradient(135deg, #9CCBAA, #5E9472); }
.product__tags { position: absolute; z-index: 2; top: var(--sp-4); left: var(--sp-4); display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 5px 10px; border-radius: var(--radius-pill); background: color-mix(in srgb, #fff 92%, transparent); color: var(--brand-primary); font-size: 12px; font-weight: 700; }
.tag--live { background: #E5484D; color: #fff; }
.tag--soon { background: var(--brand-primary); color: #fff; }
.product__body { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); flex: 1; }
.product__body p { color: var(--c-muted); font-size: .95rem; }
.product__meta { font-size: 13px; font-weight: 600; color: var(--c-muted); display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.product__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--c-line); }
.product__price { font: 500 1.5rem/1 var(--font-display); }
.product__go { font-weight: 700; font-size: 14px; color: var(--c-accent); }
.product--soon .product__price { font-size: 1rem; font-family: var(--font-body); font-weight: 700; color: var(--c-muted); }
@media (max-width: 960px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .products { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-7); }
.filters button { font: 600 14px/1 var(--font-body); padding: 11px 18px; border-radius: var(--radius-pill); border: 1.5px solid var(--c-line); background: var(--c-surface); color: var(--c-text); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--c-btn-bg); color: var(--c-btn-text); border-color: transparent; }

.hero--home h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); }
.page-head { padding-block: clamp(40px, 6vw, 80px) var(--sp-7); }
.page-head h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem); text-transform: uppercase; line-height: 1.02; letter-spacing: -0.035em; }
.page-head .lead { margin-top: var(--sp-4); }
.link-more { font-weight: 700; color: var(--c-accent); text-decoration: none; }
.link-more:hover { text-decoration: underline; }
.split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--sp-5); margin-bottom: var(--sp-8); }
.split-head > * { min-width: 0; }
.split-head .head { margin: 0; }
