/* Зачётка — сайт: тема «Полночь».

   Дизайн-система (страницы сайта, класс .page-site; общие токены тёмной темы — в theme.css):
   - фон — глубокий тёмно-синий, плотный текст лежит на спокойных панелях с тонкой рамкой;
   - один акцент — синий (--accent); главный предмет первого экрана — объёмная 3D-визитка;
   - шрифты: заголовки и название — узкий Oswald (заглавными), текст — Figtree + Manrope;
   - кнопки — «таблетки» со стрелкой в кружке; карточки 22–28px; тонкие линии вместо тяжёлых теней;
   - движение: визитка крутится и слегка поворачивается при прокрутке, разделы проявляются один раз;
     при «уменьшить движение» всё статично. */

:root:has(> body.page-site) { scroll-padding-top: 90px; }

.page-site {
  --bg: #070b16;
  --surface: #0d1426;
  --surface-2: #111a30;
  --text: #eef2fb;
  --muted: #929cb5;
  --faint: #7883a0;
  --line: rgba(238, 242, 251, .10);
  --line-strong: rgba(238, 242, 251, .24);
  --accent: #4d7dff;
  --accent-hi: #6890ff;
  --accent-text: #8aabff;
  --card-grad: linear-gradient(140deg, #5a8bff 0%, #2f5df0 45%, #1a3cc4 100%);
  --nav-h: 76px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);

  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-text: var(--text);
  --color-accent: var(--accent);
  --color-divider: var(--line);
  --color-panel: var(--surface);
  --color-raised: var(--surface-2);

  background: var(--bg);
  color: var(--text);
}
.page-site ::selection { background: var(--accent); color: #fff; }
.page-site a { color: var(--text); }
.page-site a:hover { color: var(--accent-text); }

/* — кнопки: «таблетки», у главных — стрелка в кружке — */
.page-site .btn {
  border-radius: 999px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), color .2s var(--ease-out), transform .14s var(--ease-out);
}
.page-site .btn:active:not([disabled]) { transform: scale(.98); }
.page-site .btn-primary, .page-site .btn-primary:active { background: var(--accent); color: #fff; border: 0; }
.page-site .btn-primary:hover { background: var(--accent-hi); color: #fff; }
.page-site .btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.page-site .btn-secondary:hover { border-color: var(--text); color: var(--text); background: transparent; }
.btn-ico {
  width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 17px; line-height: 1;
  background: #fff; color: var(--accent); transition: transform .25s var(--ease-out);
}
.btn-secondary .btn-ico { background: var(--text); color: var(--bg); }
@media (hover: hover) { .btn:hover .btn-ico { transform: translateX(3px); } }
.btn-xl { padding: 16px 28px; font-size: 16px; gap: 14px; }
.btn-xl:has(.btn-ico) { padding: 7px 7px 7px 26px; }

/* — поля и прочие общие элементы — */
.page-site .input { background: #0a1020; border: 1.5px solid var(--line-strong); color: var(--text); border-radius: 14px; }
.page-site .input:hover { border-color: rgba(238, 242, 251, .4); }
.page-site .input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(77, 125, 255, .22); outline: none; }
.page-site .input-area, .page-site textarea.input { border-radius: 16px; }
.page-site select.input {
  padding-right: 44px; background-repeat: no-repeat; background-position: right 16px center; background-size: 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c9d2e6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.page-site .field > label, .page-site .field-set > legend { color: var(--text); font-weight: 600; }
.page-site :focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.page-site .tag { border-radius: 999px; background: transparent; border: 1px solid var(--line-strong); color: var(--accent-text); font-weight: 600; }
.page-site .card { border-radius: 22px; }
.page-site input[type="range"], .page-site input[type="checkbox"] { accent-color: var(--accent); }

.btn-secondary.btn-busy::after { color: var(--text); }
.site { max-width: 100%; overflow-x: clip; }
section[id], .calc[id] { scroll-margin-top: 90px; }
@media (max-width: 1180px) and (pointer: coarse) { .site-links a:not(.nav-cta) { padding: 10px 4px; } }
.wrap { max-width: 1240px; margin: 0 auto; }
.wrap-narrow { max-width: 920px; }
.skip-link {
  position: absolute; left: 12px; top: 8px; z-index: 60; padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700; transform: translateY(-160%);
}
.skip-link:focus-visible { transform: none; color: #fff; }
main:focus { outline: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; }
.glass { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; }

/* — шапка — */
.site-nav {
  position: sticky; top: 0; z-index: 40; gap: 32px; min-height: var(--nav-h);
  padding: 14px var(--page-pad);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-links { display: flex; align-items: center; gap: 30px; }
.site-links a { font-size: 15px; font-weight: 600; color: var(--text); }
.site-links a:not(.nav-cta):hover, .nav a[aria-current="true"]:not(.nav-cta) { color: var(--accent-text); }
.nav a.nav-cta, .nav a.nav-cta:hover { color: #fff; padding: 5px 5px 5px 18px; font-size: 15px; gap: 10px; }
.nav-cta .btn-ico { width: 32px; height: 32px; font-size: 14px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle-bars { display: grid; gap: 5px; width: 18px; }
.nav-toggle-bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease-out), opacity .2s var(--ease-out); }
.site-nav.is-open .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.brand {
  display: flex; align-items: center; gap: 12px; margin-right: auto;
  font-family: var(--font-heading); font-weight: 600; font-size: 24px; color: var(--text); text-decoration: none;
}
.nav a.brand, .nav a.brand:hover { color: var(--text); font-size: 24px; font-weight: 600; }
.brand-mark { position: relative; width: 36px; height: 36px; flex: none; }
.brand-back { display: none; }
.brand-front {
  position: absolute; inset: 0; border-radius: 10px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; transition: transform .4s var(--ease-out);
}
@media (hover: hover) { .brand:hover .brand-front { transform: rotate(-8deg); } }
.brand-dot { display: none; }
.brand-sm { font-size: 20px; gap: 10px; margin-right: 0; }
.brand-sm .brand-mark { width: 30px; height: 30px; }
.brand-sm .brand-front { font-size: 15px; border-radius: 8px; }

/* — первый экран — */
.hero { position: relative; padding: 0 var(--page-pad); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(46% 52% at 55% 52%, rgba(64, 110, 255, .2), transparent 70%), radial-gradient(30% 30% at 8% 95%, rgba(64, 110, 255, .07), transparent 70%);
}
.hero-stage {
  position: relative; max-width: 1340px; margin: 0 auto; min-height: clamp(640px, calc(100svh - var(--nav-h)), 960px);
  display: flex; flex-direction: column; padding: 30px 0 92px;
}
.hero-labels { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 20px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
/* огромное название на фоне — декор, читается как фактура */
.hero-word {
  /* по центру экрана и по ширине самого слова: иначе на широких экранах оно шире колонки и обрезается */
  position: absolute; left: 50%; top: 58px; width: max-content; transform: translateX(-50%); z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-heading); font-weight: 700; font-size: min(24vw, 400px); line-height: 1; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(180deg, #1a2747 0%, #0b1122 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-grid {
  position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "visual visual" "copy side"; align-items: end; gap: 28px 48px;
}
.hero-grid-single { grid-template-areas: "copy side"; }
.hero-visual { grid-area: visual; position: relative; justify-self: center; align-self: center; width: min(100%, 540px); margin-top: clamp(36px, 8vh, 96px); }
.hero-visual::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -46px; height: 80px; border-radius: 50%; z-index: -1;
  background: rgba(40, 90, 255, .35); filter: blur(30px); pointer-events: none;
}
.hero-copy { grid-area: copy; max-width: 600px; }
.hero-title {
  margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.04;
  text-transform: uppercase; letter-spacing: 0; color: var(--text); text-wrap: balance;
}
.accent-word { color: var(--accent-text); }
.hero-sub { margin: 14px 0 0; max-width: 46ch; font-size: 16.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-side { grid-area: side; display: grid; justify-items: end; gap: 14px; padding-bottom: 6px; }
.hero-promo {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 7px 7px 18px; border-radius: 999px; cursor: copy;
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--text); font: 600 14.5px var(--font-body);
  transition: border-color .2s var(--ease-out);
}
.hero-promo b { padding: 7px 13px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; letter-spacing: .03em; }
@media (hover: hover) { .hero-promo:hover { border-color: var(--text); } }
.hero-promo:active { transform: scale(.98); }
.hero-hint { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.hero-hint i { font-style: normal; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 16px; color: var(--text); }

/* невысокие ноутбуки (1366×768): визитка меньше, чтобы кнопки помещались на первом экране */
@media (min-width: 961px) and (max-height: 820px) {
  .hero-visual { width: min(100%, 430px); margin-top: 28px; }
  .hero-word { font-size: min(21vw, 300px); top: 52px; }
  .hero-stage { padding-bottom: 72px; }
}

/* — 3D-визитка (логика в site.js) — */
.hero-card { position: relative; animation: pop .9s var(--ease-out) .1s both; }
.card3d {
  width: 100%; aspect-ratio: 1.62 / 1; perspective: 1600px;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; border-radius: 26px;
}
.card3d.is-dragging { cursor: grabbing; }
.card3d:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 10px; }
.card3d-stage, .card3d-inner { width: 100%; height: 100%; transform-style: preserve-3d; }
.card3d-stage { transform: rotateZ(-4deg); }
.card3d-inner { position: relative; will-change: transform; }
.card3d-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 26px; padding: 30px 34px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.card3d-front {
  background: linear-gradient(118deg, rgba(255, 255, 255, .36) 0%, rgba(255, 255, 255, 0) 38%), var(--card-grad); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 #1734a8, 0 6px 0 #0f2373, 0 60px 90px -40px rgba(0, 0, 0, .85), 0 24px 40px -24px rgba(0, 0, 0, .8);
}
.card3d-back {
  transform: rotateY(180deg); color: var(--text);
  background: radial-gradient(70% 80% at 0% 0%, rgba(77, 125, 255, .35), transparent 60%), linear-gradient(150deg, #151e38, #0b1122);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 3px 0 #0a1020, 0 50px 80px -40px rgba(0, 0, 0, .9);
}
/* видна только сторона, обращённая к зрителю (класс is-back ставит site.js): в Сафари backface-visibility
   прячет фон стороны, но не надписи на ней — они просвечивали зеркально */
.card3d.is-back .card3d-front, .card3d:not(.is-back) .card3d-back { visibility: hidden; }
.card3d-shine { position: absolute; top: -40%; left: 0; width: 34%; height: 180%; background: rgba(255, 255, 255, .22); animation: shine 6s ease-in-out infinite; filter: blur(14px); pointer-events: none; }
.card3d-blot, .card3d-blot-back { display: none; }
.card3d-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card3d-brand { font-family: var(--font-heading); font-weight: 600; font-size: 26px; }
.card3d-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .85; text-align: right; }
.card3d-mid { position: relative; }
.card3d-title { font-family: var(--font-heading); font-weight: 600; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; }
.card3d-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.card3d-tags span { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 5px 14px; font-size: 13.5px; font-weight: 600; }
.card3d-hint { position: relative; font-size: 12.5px; opacity: .85; }
.card3d-back-kicker { position: relative; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.card3d-list { position: relative; display: grid; gap: 10px; font-size: 15px; list-style: none; margin: 0; padding: 0; }
.card3d-list li { display: flex; gap: 12px; align-items: baseline; }
.card3d-list li span { color: var(--accent-text); font-weight: 700; }
.card3d-back-title { position: relative; font-family: var(--font-heading); font-weight: 600; font-size: 20px; }

/* визитка и название мягко «уходят» при прокрутке (где браузер умеет scroll-driven анимации) */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .card3d-stage { animation: heroCardScroll linear both; animation-timeline: scroll(root); animation-range: 0 75vh; }
    .hero-word { animation: heroWordScroll linear both; animation-timeline: scroll(root); animation-range: 0 75vh; }
  }
}
@keyframes heroCardScroll { from { transform: rotateZ(-4deg); } to { transform: translateY(70px) rotateZ(7deg) rotateX(14deg) scale(.94); } }
@keyframes heroWordScroll { from { transform: translateX(-50%); opacity: 1; } to { transform: translate(-50%, 90px); opacity: .35; } }

/* — цифры под первым экраном — */
.stats-strip { padding: 0 var(--page-pad); }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-row .stat { padding: 24px 26px; border-left: 1px solid var(--line); }
.stats-row .stat:first-child { border-left: 0; padding-left: 0; }
.stat-rating { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stat-value { font-family: var(--font-heading); font-weight: 600; font-size: 36px; line-height: 1.2; color: var(--text); }
.stat-label { font-size: 14.5px; color: var(--muted); }
.stars { color: var(--accent); }

/* — калькулятор — */
.section-calc { padding-top: clamp(64px, 8vw, 110px); }
.calc {
  position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(24px, 3.6vw, 48px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 30px;
}
.calc::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; }
@keyframes calcflash { from { box-shadow: 0 0 0 0 rgba(77, 125, 255, .55); } to { box-shadow: 0 0 0 18px rgba(77, 125, 255, 0); } }
.calc.is-flash::after { animation: calcflash 1.1s var(--ease-out) .35s both; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(24px, 3.6vw, 52px); align-items: center; }
.calc-title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.04; margin: 0 0 10px; text-transform: uppercase; font-weight: 600; }
.calc-sub { margin: 0 0 30px; font-size: 16px; color: var(--muted); max-width: 42em; }
.calc-fields { display: grid; gap: 28px; }
.calc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 28px; }
.calc-label { display: block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; }
.calc-label b { color: var(--text); font-weight: 700; font-size: 15px; letter-spacing: 0; text-transform: none; margin-left: 6px; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.page-site .chip { padding: 10px 18px; font-size: 15px; border: 1.5px solid var(--line-strong); background: transparent; color: var(--text); min-height: 44px; }
@media (hover: hover) { .page-site .chip:hover { border-color: var(--text); } }
.page-site .chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.range { width: 100%; height: 28px; margin: 0; cursor: pointer; }
@media (pointer: coarse) { .range { height: 40px; } }
.seg-full { display: flex; width: 100%; }
.seg-full .seg-opt { flex: 1; justify-content: center; font-size: 14px; text-align: center; }
.seg-lg .seg-opt { font-size: 15px; padding: 12px; min-height: 46px; }
.page-site .seg { border: 1.5px solid var(--line-strong); border-radius: 999px; }
.page-site .seg-opt + .seg-opt { border-left: 1.5px solid var(--line); }
.page-site .seg-opt:has(input:checked) { background: var(--accent); color: #fff; }

/* итог — синяя карта, как визитка */
.calc-result {
  position: relative; display: flex; flex-direction: column; gap: 6px; overflow: hidden;
  background: linear-gradient(118deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 40%), var(--card-grad); color: #fff;
  border-radius: 24px; padding: 30px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 30px 60px -30px rgba(26, 60, 196, .7);
}
.calc-result-label { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.calc-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; }
.calc-price { font-family: var(--font-heading); font-weight: 600; font-size: clamp(42px, 4.6vw, 60px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-old { font-family: var(--font-heading); font-size: clamp(20px, 2.2vw, 26px); color: rgba(255, 255, 255, .6); text-decoration-thickness: 2px; font-variant-numeric: tabular-nums; }
.calc-note { font-size: 15px; color: rgba(255, 255, 255, .82); }
.calc-promo { display: grid; gap: 6px; margin-top: 14px; }
.calc-promo-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.page-site .calc-promo-input { min-height: 46px; font-size: 16px; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .32); color: #fff; }
.page-site .calc-promo-input::placeholder { color: rgba(255, 255, 255, .62); }
.page-site .calc-promo-input:focus-visible { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); }
.calc-promo-status { font-size: 14px; font-weight: 600; }
.calc-promo-status:empty { display: none; }
.calc-result .is-ok { color: #c9ffe4; }
.calc-result .is-bad { color: #ffd2d2; }
.calc-divider { height: 1px; background: rgba(255, 255, 255, .22); margin: 16px 0 10px; }
.calc-per { font-size: 15px; color: rgba(255, 255, 255, .82); }
.calc-cta { margin-top: 18px; padding: 16px 24px; font-size: 16px; width: 100%; }
.page-site .calc-result .btn-primary { background: #fff; color: var(--accent); }
.page-site .calc-result .btn-primary:hover { background: #e9efff; color: var(--accent); }
.page-site .calc-result :focus-visible { outline-color: #fff; }
.is-ok { color: #7ee0b0; }
.is-bad { color: var(--color-danger); }

/* — разделы — */
.section { padding: clamp(80px, 10vw, 140px) var(--page-pad) 0; }
.section-title { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; margin: 0 0 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0; text-wrap: balance; }
.section-title-spaced { margin-bottom: 44px; }
.section-title-faq { margin-bottom: 32px; }
.section-sub { margin: 0 0 40px; font-size: 18px; color: var(--muted); max-width: 44em; text-wrap: pretty; }

/* — цены — */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.price-card {
  position: relative; padding: 28px; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s var(--ease-out), border-color .25s var(--ease-out);
}
.price-card.is-clickable { cursor: pointer; }
@media (hover: hover) { .price-card:hover { transform: translateY(-4px); border-color: rgba(77, 125, 255, .5); } }
.price-card.is-highlight { background: linear-gradient(160deg, rgba(77, 125, 255, .24), rgba(77, 125, 255, .05)), var(--surface); border-color: rgba(77, 125, 255, .45); }
.price-card .tag { align-self: flex-start; font-size: 12px; padding: 3px 12px; }
.price-card .card-title { font-family: var(--font-heading); font-weight: 600; font-size: 27px; line-height: 1.12; margin: 0; }
.price-card .card-body { font-size: 15.5px; color: var(--muted); opacity: 1; }
.price-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.price-card-price { font-family: var(--font-heading); font-weight: 600; font-size: 31px; font-variant-numeric: tabular-nums; }
.price-card-cta { padding: 10px 18px; font-size: 14.5px; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { color: var(--accent-text); }
.card-link:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 6px; }

/* — как это работает — */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 28px; }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--line-strong); }
/* цифры шагов — градиент сверху вниз, как у синей карточки */
.step { border-top-color: #3d63d6; }
.step-num {
  display: inline-block; font-family: var(--font-heading); font-weight: 700; font-size: 64px; line-height: 1;
  background: linear-gradient(180deg, #a9c2ff 0%, #4d7dff 55%, #2f5df0 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step.is-highlight { border-top-color: var(--accent); }
/* на ярко-синем фоне темы «Синий» синий градиент не виден — там цифры белые */
.theme-sinij .step { border-top-color: rgba(255, 255, 255, .45); }
.theme-sinij .step-num { background-image: linear-gradient(180deg, #ffffff 0%, #c9d4ff 100%); }
.step-title { font-family: var(--font-heading); font-weight: 600; font-size: 25px; margin: 18px 0 8px; text-transform: uppercase; }
.step-text { margin: 0; font-size: 16px; color: var(--muted); max-width: 32ch; }

/* — гарантии — */
.guarantees { padding: clamp(28px, 4.6vw, 60px); }
.guarantees .section-sub { max-width: 42em; }
.guarantee-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
/* по три в ряд; неполный последний ряд растягивается на всю ширину */
@media (min-width: 961px) {
  .guarantee-grid > .guarantee { grid-column: span 2; }
  .guarantee-grid > .guarantee:nth-child(3n+1):nth-last-child(2), .guarantee-grid > .guarantee:nth-child(3n+2):nth-last-child(1) { grid-column: span 3; }
  .guarantee-grid > .guarantee:nth-child(3n+1):nth-last-child(1) { grid-column: span 6; }
}
.guarantee { position: relative; padding: 22px 22px 22px 70px; border-radius: 18px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.guarantee-icon {
  position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
}
.guarantee-title { font-family: var(--font-heading); font-weight: 600; font-size: 22px; margin: 2px 0 6px; }
.guarantee p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* — авторы — */
#authors .section-sub { max-width: 42em; }
.author-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.author-card { padding: 26px; background: var(--surface); border: 1px solid var(--line); }
.author-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.author-mono { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--accent-text); font-family: var(--font-heading); font-size: 40px; line-height: 1; }
.author-card .card-title { font-size: 22px; margin: 4px 0 0; }
.author-card .card-body { font-size: 15px; opacity: 1; color: var(--muted); }
.author-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.author-tags .tag { font-size: 12px; }

/* — отзывы (раздел появляется, только когда в админке есть отзывы) — */
.section-reviews { padding: clamp(80px, 10vw, 120px) 0 0; overflow: hidden; }
.section-reviews > .section-title { margin: 0 auto 30px; padding: 0 var(--page-pad); max-width: calc(1240px + 2 * var(--page-pad)); }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-speed, 46s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 18px; padding-left: 18px; }
.review-card { width: 380px; padding: 26px; margin: 0; background: var(--surface); border: 1px solid var(--line); }
.review-card.is-highlight { background: var(--surface-2); }
.review-card .card-body { font-size: 16px; opacity: 1; margin: 0; }
.review-card .card-meta { font-size: 13px; margin: 0; color: var(--muted); }

/* — акция — */
.promo {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 36px; align-items: center;
  padding: clamp(30px, 4.6vw, 60px); border-radius: 30px; border: 1px solid rgba(77, 125, 255, .4);
  background: radial-gradient(60% 120% at 100% 50%, rgba(77, 125, 255, .35), transparent 70%), var(--surface);
}
.promo-copy, .promo-side { position: relative; z-index: 1; }
.promo-tag { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.promo-title { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; margin: 18px 0 12px; text-transform: uppercase; font-weight: 600; }
.promo-text { margin: 0; font-size: 17px; max-width: 32em; color: var(--muted); }
.promo-side { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.promo-code {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; cursor: copy;
  padding: 16px 24px; border-radius: 20px; border: 1.5px dashed rgba(238, 242, 251, .35); background: rgba(255, 255, 255, .03); color: var(--text);
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(26px, 2.8vw, 34px); letter-spacing: .04em; transition: border-color .2s var(--ease-out);
}
.promo-code:hover { border-color: var(--text); }
.promo-code:active { transform: scale(.99); }
.promo-code-k { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.promo-cta { padding: 16px 24px; font-size: 16px; }

/* — вопросы — */
.faq { display: grid; border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  font-family: var(--font-heading); font-weight: 500; font-size: clamp(19px, 1.9vw, 24px); list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-text); }
.faq-icon {
  position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; color: var(--text);
  border: 1.5px solid var(--line-strong); transition: transform .25s var(--ease-out), background-color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; }
.faq-item p { margin: 0 0 26px; font-size: 16.5px; line-height: 1.6; color: var(--muted); max-width: 72ch; animation: faqIn .3s var(--ease-out) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* — заявка — */
.section-last { padding-bottom: clamp(80px, 10vw, 130px); }
.order-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.order-copy { position: sticky; top: calc(var(--nav-h) + 32px); }
.order-copy .section-title { margin-bottom: 14px; }
.order-copy .section-sub { margin-bottom: 28px; max-width: 34em; }
.order-bullets { display: grid; gap: 16px; font-size: 16.5px; color: var(--text); list-style: none; margin: 0; padding: 0; }
.order-bullets li { display: flex; gap: 14px; align-items: center; }
.bullet-check { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(77, 125, 255, .18); color: var(--accent-text); font-size: 13px; font-weight: 700; }
.order-card { padding: clamp(24px, 3vw, 40px); border-radius: 30px; min-width: 0; }
.order-form { display: grid; gap: 18px; }
.order-form .field > label { font-size: 14.5px; margin-bottom: 6px; }
.order-form .input-area { min-height: 124px; padding: 13px 16px; font-size: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.input-code { text-transform: uppercase; letter-spacing: .04em; }
.input-code::placeholder { text-transform: none; letter-spacing: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-hint { color: var(--faint); font-weight: 500; }
.field-error { margin: -10px 0 0; font-size: 14px; font-weight: 600; color: var(--color-danger); }
.field-error::before { content: "! "; }
.form-error { background: var(--color-danger-bg); color: var(--color-danger-text); border-radius: 16px; padding: 12px 16px; font-size: 15px; border: 1px solid color-mix(in srgb, var(--color-danger) 35%, transparent); }
.btn-submit { padding: 18px 28px; font-size: 17px; margin-top: 4px; }
.form-consent { font-size: 13px; color: var(--faint); }
.fixed-price {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  background: rgba(77, 125, 255, .12); border: 1px solid rgba(77, 125, 255, .4); border-radius: 18px; padding: 14px 16px; animation: pop .3s var(--ease-out) both;
}
.fixed-price-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.fixed-price-value { font-family: var(--font-heading); font-weight: 600; font-size: 28px; line-height: 1.2; margin-top: 2px; }
.fixed-price-note { font-size: 14px; color: var(--muted); }
.fixed-price-old { font-size: 20px; color: var(--muted); text-decoration-thickness: 2px; margin-right: 4px; }
.page-site .fixed-price-x { border: 1.5px solid var(--line-strong); border-radius: 50%; font-size: 22px; font-family: var(--font-body); line-height: 1; color: var(--muted); width: 44px; height: 44px; background: transparent; }
.page-site .fixed-price-x:hover { border-color: var(--text); color: var(--text); }
.agree { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.45; cursor: pointer; color: var(--text); }
.agree input { flex: none; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.agree input[aria-invalid="true"] { outline: 2px solid var(--color-danger); outline-offset: 2px; border-radius: 4px; }
.agree a, .form-consent a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

.order-success { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; animation: pop .45s var(--ease-out) both; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--font-heading); font-size: 28px; }
.success-title { font-family: var(--font-heading); font-weight: 600; font-size: 30px; margin: 0; outline: none; text-transform: uppercase; }
.success-text { margin: 0; font-size: 16px; color: var(--muted); }
.ticket { color: var(--text); font-weight: 700; white-space: nowrap; }
.success-divider { width: 100%; height: 1px; background: var(--line); margin: 6px 0; }
.success-prompt { margin: 0; font-size: 15px; color: var(--muted); }
.rate { display: flex; gap: 6px; }
.rate-star { background: none; border: none; padding: 4px; cursor: pointer; line-height: 0; border-radius: 10px; transition: transform .2s var(--ease-out); }
.rate-star svg { width: 34px; height: 34px; display: block; }
.rate-star svg polygon { fill: transparent; stroke: var(--faint); transition: fill .15s var(--ease-out), stroke .15s var(--ease-out); }
.rate-star.is-on svg polygon { fill: var(--accent); stroke: var(--accent); }
.rate-star.is-hover { transform: scale(1.12); }
.rate-thanks { font-size: 15px; color: var(--accent-text); animation: pop .35s var(--ease-out) both; }
.rate-thanks-muted { color: var(--muted); }
.rate-comment { display: grid; gap: 10px; width: 100%; }
.rate-comment label { font-size: 14px; color: var(--text); font-weight: 600; }
.rate-comment .input-area { min-height: 90px; }
.rate-comment .btn { justify-self: start; padding: 12px 20px; font-size: 15px; }
.btn-again { padding: 14px 22px; font-size: 15px; margin-top: 4px; }

/* — подвал — */
.site-footer { padding: 36px var(--page-pad) 96px; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-legal { margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.footer-legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* — согласие на cookie Яндекс Метрики: слева внизу, кнопка чата остаётся справа — */
.zk-cookie {
  position: fixed; z-index: 61; left: max(18px, env(safe-area-inset-left, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  width: min(440px, calc(100vw - 116px)); padding: 18px 18px 16px; border-radius: 22px;
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text);
  box-shadow: 0 18px 44px rgba(0, 2, 8, .55); font-size: 14px; line-height: 1.5;
}
.zk-cookie p { margin: 0 0 14px; color: var(--muted); }
.zk-cookie a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.zk-cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.page-site .zk-cookie .btn { padding: 10px 20px; font-size: 14px; min-height: 0; }
@media (max-width: 560px) {
  .zk-cookie { left: 12px; right: 12px; width: auto; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .zk-cookie-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .zk-cookie { animation: zkCookieIn .35s var(--ease-out) both; }
  @keyframes zkCookieIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
.footer-services { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; padding-bottom: 22px; margin-bottom: 26px; border-bottom: 1px solid var(--line); font-size: 14px; }
.footer-services-title { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 600; }
.footer-services a { color: var(--text); }
.footer-services a:hover, .footer-services a[aria-current="page"] { color: var(--accent-text); }

/* — появление разделов: один раз, когда до раздела доскроллили (класс .zk-reveal ставит site.js) — */
.page-site [data-reveal] { animation: none; }
html.zk-reveal [data-reveal] { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
html.zk-reveal [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
html.zk-reveal .steps[data-reveal]:not(.is-in), html.zk-reveal .price-grid[data-reveal]:not(.is-in) { opacity: 1; transform: none; }
html.zk-reveal .steps .step, html.zk-reveal .price-grid .price-card {
  transition: opacity .6s var(--ease-out) calc(.08s + var(--i, 0) * .08s), transform .6s var(--ease-out) calc(.08s + var(--i, 0) * .08s), border-color .25s var(--ease-out);
}
html.zk-reveal .steps:not(.is-in) .step, html.zk-reveal .price-grid:not(.is-in) .price-card { opacity: 0; transform: translateY(16px); }

/* — адаптив — */
@media (max-width: 1080px) { .site-links { gap: 20px; } }
@media (max-width: 960px) {
  .hero-stage { min-height: 0; padding-bottom: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "visual" "copy" "side"; gap: 34px; }
  .hero-grid-single { grid-template-areas: "copy" "side"; }
  .hero-visual { width: min(100%, 480px); margin-top: clamp(50px, 14vw, 120px); }
  .hero-side { justify-items: start; }
  .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .calc-result { align-self: stretch; }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 36px; }
  .guarantee-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .guarantee-grid > .guarantee:nth-child(odd):last-child { grid-column: 1 / -1; }
  .order-grid { grid-template-columns: minmax(0, 1fr); }
  .order-copy { position: static; }
}
@media (max-width: 880px) {
  .site-nav { gap: 12px; }
  .nav-toggle { display: inline-flex; }
  .site-links {
    position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-strong);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .18s var(--ease-out), transform .2s var(--ease-out), visibility 0s linear .2s;
  }
  .site-nav.is-open .site-links { visibility: visible; opacity: 1; transform: none; transition: opacity .18s var(--ease-out), transform .2s var(--ease-out), visibility 0s; }
  .site-links a { padding: 14px 16px; border-radius: 16px; font-size: 17px; }
  .site-links a:not(.nav-cta):hover { background: rgba(255, 255, 255, .05); }
  .nav a.nav-cta { margin-top: 8px; justify-content: space-between; padding: 6px 6px 6px 20px; font-size: 16px; }
}
@media (max-width: 720px) {
  .promo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .site-nav { padding-top: 10px; padding-bottom: 10px; min-height: 64px; }
  .brand, .nav a.brand, .nav a.brand:hover { font-size: 21px; }
  .hero-stage { padding-top: 20px; }
  .hero-labels span + span { display: none; }
  .hero-labels { font-size: 11px; letter-spacing: .12em; }
  .hero-word { top: 50px; font-size: 24vw; }
  .hero-visual { margin-top: 30vw; }
  .hero-title { font-size: 31px; }
  .hero-sub { font-size: 16px; }
  .hero-actions .btn { width: 100%; justify-content: space-between; }
  .card3d-face { padding: 18px 20px; border-radius: 20px; }
  .card3d { border-radius: 20px; }
  .card3d-brand { font-size: 20px; }
  .card3d-kicker { font-size: 9.5px; letter-spacing: .12em; }
  .card3d-title { font-size: 22px; }
  .card3d-tags { margin-top: 10px; gap: 6px; }
  .card3d-tags span { padding: 3px 10px; font-size: 11.5px; }
  .card3d-hint { font-size: 11.5px; }
  .card3d-list { gap: 6px; font-size: 13px; }
  .card3d-back-title { font-size: 17px; }
  .stats-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stats-row .stat { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stats-row .stat:first-child { border-top: 0; }
  .stats-row .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stats-row .stat:has(.stat-rating) { grid-column: 1 / -1; }
  .stats-row .stat:has(.stat-rating) ~ .stat:nth-child(even) { padding-left: 0; border-left: 0; }
  .stats-row .stat:has(.stat-rating) ~ .stat:nth-child(odd) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stats-row .stat:has(.stat-rating) ~ .stat:last-child:nth-child(even) { grid-column: 1 / -1; }
  .stat-value { font-size: 30px; }
  .calc { border-radius: 24px; }
  .calc-result { padding: 24px 20px; border-radius: 20px; }
  .seg-full .seg-opt { padding: 10px 6px; font-size: 13px; }
  .seg-lg .seg-opt { padding: 12px 6px; font-size: 14px; }
  .page-site .chip { padding: 10px 14px; font-size: 14px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step-num { font-size: 52px; }
  .guarantee-grid { grid-template-columns: minmax(0, 1fr); }
  .guarantee { padding: 20px 18px 20px 64px; }
  .review-card { width: min(300px, 78vw); }
  .order-card { padding: 22px 18px; border-radius: 24px; }
  .promo { border-radius: 24px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media print {
  html.zk-reveal [data-reveal], .steps .step, .price-grid .price-card { opacity: 1 !important; transform: none !important; }
  .site-nav, .nav-toggle, .marquee-group[aria-hidden="true"], .hero-word, .hero-side { display: none; }
  .page-site { background: #fff; color: #10151b; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .marquee-track { animation: none !important; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .review-card { scroll-snap-align: start; }
  .card3d-shine, .hero-card { animation: none !important; }
}

/* — документы: политика и согласие — */
.doc-nav { justify-content: space-between; }
.doc-back { padding: 11px 20px; font-size: 14px; }
.doc-wrap { padding: clamp(28px, 5vw, 64px) var(--page-pad) clamp(48px, 7vw, 96px); }
.doc-body { max-width: 780px; margin: 0 auto; }
.doc-wrap .doc-body { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4.4vw, 56px); }
.doc-title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; margin: 0 0 26px; text-transform: uppercase; font-weight: 600; }
.doc-body h2 { font-size: clamp(21px, 2.2vw, 26px); margin: 36px 0 10px; }
.doc-body h3 { font-size: clamp(18px, 1.8vw, 21px); margin: 26px 0 8px; }
.doc-body p, .doc-body li { font-size: 17px; line-height: 1.65; color: var(--color-neutral-200); }
.doc-body p { margin: 0 0 14px; }
.doc-body ul { margin: 0 0 14px; padding-left: 22px; }
.doc-body ol { margin: 0 0 14px; padding-left: 24px; }
.doc-body li { margin-bottom: 6px; }
.doc-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.doc-other { margin-top: 36px !important; padding-top: 22px; border-top: 1px solid var(--line); }
@media print { .doc-nav, .doc-other, .site-footer { display: none; } .doc-wrap .doc-body { border: 0; background: #fff; } .doc-body p, .doc-body li { color: #111; } }

/* — бегущая строка с промокодом (включается в админке) — */
.ticker {
  position: relative; display: flex; align-items: center; gap: 10px; overflow: hidden;
  padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  background: var(--accent); color: #fff; font-weight: 600; font-size: 14.5px; min-height: 42px;
}
.ticker.is-promo { cursor: pointer; }
.ticker-scroll {
  flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 28px), transparent);
}
.ticker-track { display: flex; width: max-content; animation: tickerRun var(--ticker-speed, 30s) linear infinite; }
.ticker-row { display: flex; align-items: center; gap: 0; white-space: nowrap; }
.ticker-item { padding: 11px 0; }
.ticker-item::after { content: "/"; padding: 0 18px; opacity: .55; }
@keyframes tickerRun { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-note { flex: none; font-size: 12px; font-weight: 500; opacity: .8; white-space: nowrap; }
.ticker-close { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; font-size: 19px; line-height: 1; background: rgba(255, 255, 255, .16); color: inherit; }
.ticker-close:hover { background: rgba(255, 255, 255, .26); }
.ticker-copied { position: absolute; inset: 0; display: grid; place-items: center; background: inherit; font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
  .ticker { font-size: 13.5px; min-height: 38px; }
  .ticker-note { display: none; }
  .ticker-item::after { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; overflow-x: auto; } }

/* — методичка — */
.guide-wrap { padding: clamp(24px, 5vw, 56px) var(--page-pad) clamp(48px, 7vw, 90px); }
.guide { max-width: 820px; margin: 0 auto; }
.guide-kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.guide-title { font-size: clamp(32px, 5vw, 56px); line-height: 1.04; margin: 0 0 14px; text-transform: uppercase; font-weight: 600; }
.guide-sub { font-size: clamp(17px, 2vw, 20px); color: var(--color-neutral-200); margin: 0 0 10px; }
.guide-intro { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 30px; }
.guide-promo { border-radius: 26px; padding: clamp(20px, 3vw, 30px); margin: 0 0 24px; color: #fff; background: linear-gradient(118deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 40%), var(--card-grad); }
.guide-promo-tag { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.guide-promo-code {
  margin: 0 0 10px; font-family: var(--font-heading); font-weight: 600; font-size: clamp(26px, 5.4vw, 46px); line-height: 1.05; letter-spacing: .03em; cursor: copy;
  display: inline-block; padding: 8px 22px; border-radius: 18px; background: rgba(255, 255, 255, .14); border: 1.5px dashed rgba(255, 255, 255, .5);
}
@media (hover: hover) { .guide-promo-code:hover { background: rgba(255, 255, 255, .22); } }
.guide-promo-text { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 500; max-width: 60ch; }
.guide-free { border: 1px solid rgba(77, 125, 255, .4); background: rgba(77, 125, 255, .1); border-radius: 22px; padding: 20px 24px; margin: 0 0 30px; }
.guide-free h2 { margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 26px); color: var(--accent-text); }
.guide-free p { margin: 0; color: var(--color-neutral-100); font-size: 16px; line-height: 1.55; }
.guide-blocks { display: grid; gap: 14px; margin: 0 0 30px; }
.guide-block { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px 24px; position: relative; }
.guide-num { font-family: var(--font-heading); font-size: 13px; letter-spacing: .12em; color: var(--accent-text); }
.guide-block h2 { margin: 4px 0 8px; font-size: clamp(19px, 2.2vw, 24px); }
.guide-block p { margin: 0; color: var(--color-neutral-200); font-size: 16px; line-height: 1.6; }
.guide-list { margin: 0 0 30px; }
.guide-list h2 { font-size: clamp(21px, 2.6vw, 28px); margin: 0 0 14px; }
.guide-check, .guide-bad { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.guide-check li, .guide-bad li { position: relative; padding-left: 36px; color: var(--color-neutral-200); font-size: 16px; line-height: 1.5; }
.guide-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(77, 125, 255, .18); color: var(--accent-text); font-size: 13px; font-weight: 700;
}
.guide-bad li::before {
  content: "!"; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--color-danger) 18%, transparent); color: var(--color-danger); font-size: 13px; font-weight: 700;
}
.guide-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px 26px; }
.guide-cta-title { margin: 0 0 4px; font-family: var(--font-heading); font-weight: 600; font-size: clamp(19px, 2.2vw, 24px); }
.guide-cta-site { margin: 0; color: var(--accent-text); font-size: 15px; }
.guide-print { margin: 22px 0 0; color: var(--faint); font-size: 13.5px; }
@media print {
  .doc-nav, .site-footer, .guide-print, .guide-cta .btn, .zk-sup-btn, .zk-sup, .ticker { display: none !important; }
  .guide-wrap { padding: 0; }
  .guide, .guide-block, .guide-free, .guide-promo, .guide-cta { background: #fff !important; color: #111 !important; border-color: #ccc !important; }
  .guide-title, .guide-block h2, .guide-list h2, .guide-cta-title { color: #0b1b3a !important; }
  .guide-sub, .guide-intro, .guide-block p, .guide-check li, .guide-bad li, .guide-free p { color: #222 !important; }
  .guide-promo { border: 2px solid #0b1b3a !important; }
  .guide-promo-code { background: #eef3ff !important; color: #0b1b3a !important; }
  .guide-block, .guide-list, .guide-free, .guide-promo { break-inside: avoid; }
}

/* — страницы услуг (/uslugi/…) — */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--accent-text); }
.hero-service .hero-stage { min-height: 0; padding: clamp(40px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); }
.hero-service .hero-grid { grid-template-areas: "copy"; grid-template-columns: minmax(0, 1fr); }
.hero-service .hero-copy { max-width: 52rem; }
.hero-title-service { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.02; }
.hero-service .hero-sub { max-width: 46em; font-size: 18px; }
.service-text { max-width: none; padding: clamp(24px, 4vw, 52px); }
.service-text h2:first-child { margin-top: 0; }
.price-table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.price-table th, .price-table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table tbody th { font-weight: 600; color: var(--text); }
.price-table td { color: var(--muted); white-space: nowrap; }
.price-table-sum { font-family: var(--font-heading); font-weight: 600; font-size: 22px; color: var(--text) !important; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.more-card {
  padding: 22px 24px; min-height: 120px; justify-content: space-between; color: var(--text); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  transition: transform .25s var(--ease-out), border-color .2s var(--ease-out);
}
.more-card:hover { transform: translateY(-4px); border-color: rgba(77, 125, 255, .5); color: var(--text); }
.more-card:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
.more-title { font-family: var(--font-heading); font-weight: 600; font-size: 21px; line-height: 1.2; }
.more-price { font-size: 15px; color: var(--accent-text); }
@media (max-width: 560px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody { display: block; }
  .price-table tr { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 6px 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .price-table tbody tr:last-child { border-bottom: 0; }
  .price-table th, .price-table td { padding: 0; border: 0; font-size: 14px; }
  .price-table tbody th { grid-column: 1 / -1; font-size: 15px; }
  .price-table td.price-table-sum { font-size: 20px; text-align: right; }
  .footer-services { flex-direction: column; gap: 10px; }
}

/* ───────────── темы «Синий» и «Белый» (админка → «Сайт» → «Название сайта» → «Оформление сайта») ─────────────
   Общее (.theme-grotesk): гротеск Figtree + Manrope строчными вместо узкого Oswald, огромное название сплошным цветом,
   чёрная графитовая визитка заходит на нижнюю половину названия, стрелка на кнопках — просто знак.
   Палитры: «Синий» (.theme-sinij) — ярко-синий фон, название, текст и кнопки белые;
            «Белый» (.theme-belyj) — наоборот: белый фон, всё синее. Визитка в обеих одинаковая.
   Только для экрана: при печати остаётся белая версия. */
@media screen {
  .page-site.theme-sinij {
    --bg: #2346ff; --surface: #1c39d8; --surface-2: #1832c4;
    --text: #ffffff; --muted: #d6ddff; --faint: #b9c4ff;
    --line: rgba(255, 255, 255, .18); --line-strong: rgba(255, 255, 255, .45);
    --accent: #ffffff; --accent-hi: #e8ecff; --accent-text: #ffffff; --on-accent: #2346ff;
    --word: #ffffff; --ground: rgba(5, 10, 60, .5); --shadow-tint: rgba(5, 10, 60, .6);
    --glow: radial-gradient(50% 55% at 60% 50%, rgba(255, 255, 255, .12), transparent 70%);
    --input-bg: #152eb0; --input-line: rgba(255, 255, 255, .3); --input-line-hover: rgba(255, 255, 255, .55);
    --placeholder: rgba(255, 255, 255, .62); --focus-ring: rgba(255, 255, 255, .22);
    --tint: rgba(255, 255, 255, .16); --tint-soft: rgba(255, 255, 255, .1); --hl-line: rgba(255, 255, 255, .5);
    --ok: #b8ffd9;
    --color-neutral-100: #ffffff; --color-neutral-200: #e6eaff;
    --color-danger: #ffd6cc; --color-danger-text: #ffe9e4; --color-danger-bg: #1630a8;
  }
  .page-site.theme-belyj {
    --bg: #ffffff; --surface: #f3f5ff; --surface-2: #e9edff;
    --text: #2346ff; --muted: #3d55d6; --faint: #5a6fd8;
    --line: rgba(35, 70, 255, .16); --line-strong: rgba(35, 70, 255, .4);
    --accent: #2346ff; --accent-hi: #1a37e0; --accent-text: #2346ff; --on-accent: #ffffff;
    --word: #2346ff; --ground: rgba(20, 40, 160, .28); --shadow-tint: rgba(20, 40, 160, .28);
    --glow: radial-gradient(50% 55% at 60% 50%, rgba(35, 70, 255, .08), transparent 70%);
    --input-bg: #ffffff; --input-line: rgba(35, 70, 255, .28); --input-line-hover: rgba(35, 70, 255, .55);
    --placeholder: rgba(35, 70, 255, .5); --focus-ring: rgba(35, 70, 255, .18);
    --tint: rgba(35, 70, 255, .1); --tint-soft: rgba(35, 70, 255, .06); --hl-line: rgba(35, 70, 255, .45);
    --ok: #0d7a45;
    /* шкала нейтральных перевёрнута: компоненты рассчитаны на тёмный фон (100 — текст, 900 — фон) */
    --color-neutral-100: #0b1a7a; --color-neutral-200: #1f36b8; --color-neutral-300: #3d55d6; --color-neutral-400: #5a6fd8;
    --color-neutral-500: #8a98e0; --color-neutral-600: #b3bdee; --color-neutral-700: #d5dbf7; --color-neutral-800: #eef1fd; --color-neutral-900: #ffffff;
    --color-danger: #c62a12; --color-danger-text: #8f1d0b; --color-danger-bg: #fdeae6;
  }
  .page-site.theme-grotesk {
    --card-grad: linear-gradient(145deg, #1b1e2c 0%, #0f111a 60%, #07080d 100%);
    --font-heading: "Figtree", "ZK Text Cyrillic", system-ui, sans-serif;
  }
  .theme-grotesk ::selection { background: var(--accent); color: var(--on-accent); }

  /* типографика: строчные гротесковые заголовки вместо узких заглавных */
  .theme-grotesk .hero-title, .theme-grotesk .section-title, .theme-grotesk .calc-title, .theme-grotesk .promo-title,
  .theme-grotesk .step-title, .theme-grotesk .success-title, .theme-grotesk .doc-title, .theme-grotesk .guide-title {
    text-transform: none; letter-spacing: -.035em;
  }
  .theme-grotesk .hero-title { font-weight: 500; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.1; }
  .theme-grotesk .section-title, .theme-grotesk .promo-title, .theme-grotesk .guide-title { font-weight: 600; letter-spacing: -.04em; line-height: 1.04; }
  .theme-grotesk .brand, .theme-grotesk .nav a.brand { font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
  .theme-grotesk .accent-word { color: inherit; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .18em; }

  /* кнопки: главная — «таблетка» цвета акцента, стрелка — просто знак, без кружка */
  .page-site.theme-grotesk .btn-primary, .page-site.theme-grotesk .btn-primary:active { background: var(--accent); color: var(--on-accent); }
  .page-site.theme-grotesk .btn-primary:hover { background: var(--accent-hi); color: var(--on-accent); }
  .page-site.theme-grotesk .btn-secondary { border-color: var(--line-strong); color: var(--text); }
  .page-site.theme-grotesk .btn-secondary:hover { border-color: var(--text); color: var(--text); }
  .theme-grotesk .btn-ico, .theme-grotesk .btn-secondary .btn-ico { width: auto; height: auto; background: transparent; color: inherit; font-size: 17px; }
  .theme-grotesk .btn-xl:has(.btn-ico) { padding: 16px 26px; }
  .theme-grotesk .nav a.nav-cta, .theme-grotesk .nav a.nav-cta:hover { background: transparent; border: 1.5px solid var(--line-strong); color: var(--text); padding: 12px 20px; }
  .theme-grotesk .nav a.nav-cta:hover { border-color: var(--text); }
  .theme-grotesk .nav-cta .btn-ico { width: auto; height: auto; }

  /* элементы с фоном цвета акцента: текст на них — «обратного» цвета */
  .theme-grotesk .brand-front, .theme-grotesk .hero-promo b, .page-site.theme-grotesk .chip.is-active, .page-site.theme-grotesk .seg-opt:has(input:checked),
  .theme-grotesk .guarantee-icon, .theme-grotesk .promo-tag, .theme-grotesk .faq-item[open] .faq-icon, .theme-grotesk .success-icon,
  .theme-grotesk .skip-link, .theme-grotesk .skip-link:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
  /* внутри графитовой карточки цены кнопка всегда белая с синим текстом */
  .page-site.theme-grotesk .calc-result .btn-primary, .page-site.theme-grotesk .calc-result .btn-primary:hover { background: #fff; color: #2346ff; }

  /* поля (поле промокода в графитовой карточке цены остаётся своим) */
  .page-site.theme-grotesk .input:not(.calc-promo-input) { background-color: var(--input-bg); border-color: var(--input-line); }
  .page-site.theme-grotesk .input:not(.calc-promo-input)::placeholder { color: var(--placeholder); }
  .page-site.theme-grotesk .input:not(.calc-promo-input):hover { border-color: var(--input-line-hover); }
  .page-site.theme-grotesk .input:not(.calc-promo-input):focus-visible { border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus-ring); }
  .page-site.theme-belyj select.input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232346ff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }

  /* первый экран */
  .theme-grotesk .hero::before { background: var(--glow); }
  .theme-grotesk .hero-word {
    font-family: var(--font-heading); font-weight: 700; font-size: min(18.6vw, 330px); letter-spacing: -.065em; top: 72px;
    background: none; color: var(--word); -webkit-text-fill-color: var(--word);
  }
  .theme-grotesk .hero-visual::after { background: var(--ground); filter: blur(26px); }
  .theme-grotesk .card3d-front {
    background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 38%), var(--card-grad);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 3px 0 #05060a, 0 6px 0 #000, 0 60px 90px -40px var(--shadow-tint), 0 24px 40px -24px var(--shadow-tint);
  }
  .theme-grotesk .card3d-back { color: #fff; background: radial-gradient(70% 80% at 0% 0%, rgba(143, 166, 255, .22), transparent 60%), linear-gradient(150deg, #1b1e2c, #07080d); }
  .theme-grotesk .card3d-kicker, .theme-grotesk .card3d-back-kicker, .theme-grotesk .card3d-list li span { color: #8fa6ff; opacity: 1; }
  .theme-grotesk .card3d-brand { font-weight: 700; letter-spacing: -.03em; }
  .theme-grotesk .card3d-title { letter-spacing: -.035em; }
  .theme-grotesk .card3d-tags span { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
  .theme-grotesk .card3d-shine { background: rgba(255, 255, 255, .1); }

  /* разделы */
  .theme-grotesk .price-card.is-highlight { background: linear-gradient(160deg, var(--tint), var(--tint-soft)), var(--surface); border-color: var(--hl-line); }
  @media (hover: hover) {
    .theme-grotesk .price-card:hover, .theme-grotesk .more-card:hover { border-color: var(--hl-line); }
  }
  .theme-grotesk .promo { border-color: var(--line-strong); background: radial-gradient(60% 120% at 100% 50%, var(--tint), transparent 70%), var(--surface); }
  .theme-grotesk .promo-code { border-color: var(--line-strong); background: var(--tint-soft); }
  .theme-grotesk .bullet-check, .theme-grotesk .guide-check li::before { background: var(--tint); color: var(--text); }
  .theme-grotesk .fixed-price, .theme-grotesk .guide-free { background: var(--tint-soft); border-color: var(--hl-line); }
  .theme-grotesk .calc-result { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 30px 60px -30px var(--shadow-tint); }
  .theme-grotesk .is-ok { color: var(--ok); }
  .theme-grotesk .calc-result .is-ok { color: #c9ffe4; }
  .theme-grotesk .ticker { background: #0f111a; color: #fff; }
  .theme-grotesk .site-links { box-shadow: 0 30px 60px -20px var(--shadow-tint); }
  .theme-belyj .site-links a:not(.nav-cta):hover { background: var(--tint-soft); }
  .theme-sinij .zk-sup-btn { background: #fff; color: #2346ff; box-shadow: 0 10px 28px rgba(5, 10, 60, .45), 0 0 0 6px rgba(255, 255, 255, .16); }
  .theme-grotesk .zk-cookie { box-shadow: 0 18px 44px var(--shadow-tint); }
}

/* «Синий» и «Белый» на компьютере: визитка чуть меньше и ниже — заходит на нижнюю половину названия, как в макете.
   Опускаем её отступом, а не сдвигом поверх: заголовок и кнопки всегда стоят под визиткой и не перекрываются */
@media screen and (min-width: 961px) {
  .theme-grotesk .hero-word { top: 44px; }
  .theme-grotesk .hero-visual { width: min(100%, 470px); margin-top: clamp(64px, 12vh, 130px); }
}
@media screen and (min-width: 1200px) {
  .theme-grotesk .hero-visual { transform: translateX(clamp(0px, 3vw, 50px)); }
}
/* на невысоких ноутбуках: название и визитка меньше, внутри визитки отступы плотнее */
@media screen and (min-width: 961px) and (max-height: 820px) {
  .theme-grotesk .hero-word { font-size: min(17vw, 260px); top: 40px; }
  .theme-grotesk .hero-visual { width: min(100%, 410px); margin-top: clamp(36px, 7vh, 72px); }
  .theme-grotesk .card3d-face { padding: 24px 28px; }
  .theme-grotesk .card3d-title { font-size: 26px; }
  .theme-grotesk .card3d-tags { margin-top: 12px; }
  .theme-grotesk .card3d-tags span { padding: 4px 12px; font-size: 13px; }
}

/* «Белый»: всё, что в «Синем» чёрное (визитка, карточка цены, бегущая строка), здесь синее.
   Светлая схема для полей, галочек и полос прокрутки — иначе браузер рисует их тёмными. */
@media screen {
  :root:has(> body.theme-belyj) { color-scheme: light; }
  .page-site.theme-belyj {
    color-scheme: light;
    --card-grad: linear-gradient(145deg, #4f72ff 0%, #2346ff 50%, #1631d6 100%);
  }
  .theme-belyj .card3d-front {
    background: linear-gradient(118deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, 0) 38%), var(--card-grad);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 3px 0 #1734a8, 0 6px 0 #0f2373, 0 60px 90px -40px var(--shadow-tint), 0 24px 40px -24px var(--shadow-tint);
  }
  .theme-belyj .card3d-back {
    background: radial-gradient(70% 80% at 0% 0%, rgba(255, 255, 255, .2), transparent 60%), linear-gradient(150deg, #2a4cff, #1530c8);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 3px 0 #1734a8, 0 50px 80px -40px var(--shadow-tint);
  }
  .theme-belyj .card3d-kicker, .theme-belyj .card3d-back-kicker, .theme-belyj .card3d-list li span { color: #d6deff; }
  .theme-belyj .card3d-tags span { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); }
  .theme-belyj .card3d-shine { background: rgba(255, 255, 255, .22); }
  .theme-belyj .ticker { background: var(--accent); }
}

/* ───────────── первый экран «Веер карточек» (админка → «Визитка на первом экране» → «Что на первом экране») ─────────────
   Заголовок и кнопки слева, справа веер из трёх карточек с ценами услуг, огромное название обрезано внизу.
   Цвета карточек — из «Полночи»: светло-голубая, тёмно-синяя и фирменная синяя. Кто сверху — pos-0…pos-2 (site.js). */
.hero.hero-fan .hero-grid-fan {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); grid-template-areas: "copy visual";
  align-items: start; gap: 40px; padding-top: clamp(16px, 6vh, 72px);
}
.hero-fan .hero-copy { display: grid; gap: 22px; justify-items: start; max-width: 620px; }
.hero-fan .hero-labels { display: block; }
.hero-fan .hero-title { font-size: clamp(40px, 4.4vw, 66px); line-height: 1.02; }
.hero-fan .hero-sub { margin: 0; }
.hero-fan .hero-actions { margin-top: 2px; }
.hero.hero-fan .hero-visual { grid-area: visual; width: 100%; margin: 0; transform: none; justify-self: stretch; display: grid; justify-items: center; gap: 14px; }
.hero.hero-fan .hero-visual::after { display: none; }
.hero.hero-fan .hero-word { top: auto; bottom: -.3em; }

.fan { position: relative; width: min(100%, 600px); aspect-ratio: 1.18; container-type: inline-size; }
.fan-card {
  --x: 0%; --y: 0%; --r: 0deg; --lift: 0px; --dx: 0px;
  position: absolute; left: 18%; top: 24%; width: 64%; aspect-ratio: 1.6; border-radius: 24px; cursor: pointer; outline: none;
  transform: translate(calc(var(--x) + var(--dx)), calc(var(--y) - var(--lift))) rotate(var(--r));
  transition: transform .85s cubic-bezier(.22, .8, .24, 1); will-change: transform; touch-action: pan-y; -webkit-tap-highlight-color: transparent; perspective: 1200px;
}
.fan-card.pos-0 { --x: -26%; --y: 4%; --r: -14deg; z-index: 1; }
.fan-card.pos-1 { --x: -2%; --y: -10%; --r: -3deg; z-index: 2; }
.fan-card.pos-2 { --x: 22%; --y: 14%; --r: 9deg; z-index: 3; }
@media (hover: hover) {
  .fan:hover .fan-card.pos-0 { --x: -38%; --y: 0%; --r: -18deg; }
  .fan:hover .fan-card.pos-1 { --y: -14%; }
  .fan:hover .fan-card.pos-2 { --x: 34%; --y: 18%; --r: 13deg; }
  .fan-card:hover { --lift: 12px; }
}
.fan-card:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 6px; }
/* автолистание: верхняя карточка сначала уходит в сторону (ещё сверху), потом site.js отправляет её под колоду */
.fan .fan-card.is-out { --x: 64%; --y: -6%; --r: 20deg; --lift: 0px; transition-duration: .45s; transition-timing-function: cubic-bezier(.45, 0, .55, 1); }
.fan-card.is-dragging { transition: none; }
.fan-tilt { width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .6s cubic-bezier(.22, .8, .24, 1); }
.fan-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .95s cubic-bezier(.45, .05, .25, 1); }
.fan-card.is-flipped .fan-inner { transform: rotateY(180deg); }
.fan-face {
  position: absolute; inset: 0; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column;
  padding: clamp(16px, 1.8vw, 26px) clamp(18px, 2vw, 30px); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
/* Сафари прячет у отвернувшейся стороны только фон, а надписи просвечивают — скрываем сторону сами, на середине поворота */
.fan-front { transition: visibility 0s linear .47s; }
.fan-back { transform: rotateY(180deg); visibility: hidden; transition: visibility 0s linear .47s; }
.fan-card.is-flipped .fan-front { visibility: hidden; }
.fan-card.is-flipped .fan-back { visibility: visible; }

/* цвета карточек */
.fan-card-1 .fan-face {
  background: linear-gradient(118deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 40%), linear-gradient(145deg, #e3eaff, #b9cbff 55%, #8aabff); color: #0b1430;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 3px 0 #6f8fe6, 0 6px 0 #5274cc, 0 40px 70px -30px rgba(0, 0, 0, .85);
}
.fan-card-1 .fan-kicker, .fan-card-1 .fan-list li::before { color: #2f5df0; }
.fan-card-2 .fan-face {
  background: radial-gradient(70% 80% at 0% 0%, rgba(77, 125, 255, .3), transparent 60%), linear-gradient(150deg, #1a2547, #0d1426); color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 3px 0 #0a1020, 0 6px 0 #050913, 0 40px 70px -30px rgba(0, 0, 0, .9);
}
.fan-card-2 .fan-kicker, .fan-card-2 .fan-list li::before { color: var(--accent-text); }
.fan-card-3 .fan-face {
  background: linear-gradient(118deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, 0) 38%), var(--card-grad); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 #1734a8, 0 6px 0 #0f2373, 0 40px 70px -30px rgba(0, 0, 0, .85);
}
.fan-card-3 .fan-kicker, .fan-card-3 .fan-list li::before { color: #cdd9ff; }

/* содержимое */
.fan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fan-name { font-family: var(--font-heading); font-weight: 600; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.1; text-transform: uppercase; }
.fan-kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.fan-price { margin: auto 0; font-family: var(--font-heading); font-weight: 600; font-size: clamp(32px, 3.5vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.fan-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.fan-tag { opacity: .8; }
.fan-desc { margin: 8px 0 8px; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.fan-list { margin: 0 0 auto; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 13px; line-height: 1.35; }
.fan-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* размеры внутри карточек — от ширины веера (cqw), чтобы на любом телефоне всё помещалось; без поддержки — пиксели выше */
.fan-face { padding: clamp(12px, 3.4cqw, 26px) clamp(14px, 4cqw, 30px); }
.fan-name { font-size: clamp(14px, 4.3cqw, 26px); }
.fan-kicker { font-size: clamp(8.5px, 1.9cqw, 11.5px); letter-spacing: .12em; }
.fan-price { font-size: clamp(24px, 8.6cqw, 52px); }
.fan-foot { font-size: clamp(10px, 2.2cqw, 13px); }
.fan-desc { margin: clamp(4px, 1.2cqw, 8px) 0; font-size: clamp(10px, 2.35cqw, 14px); line-height: 1.35; }
.fan-list { gap: clamp(1px, .5cqw, 3px); font-size: clamp(9.5px, 2.2cqw, 13px); }
.fan-list li::before { content: "✓"; margin-right: 8px; font-weight: 700; }
.fan-hint-touch { display: none; }
@media (hover: none) { .fan-hint-touch { display: inline; } .fan-hint-mouse { display: none; } }

@media (max-width: 960px) {
  .hero.hero-fan .hero-grid-fan { grid-template-columns: minmax(0, 1fr); grid-template-areas: "visual" "copy"; gap: 18px; padding-top: 0; }
  .hero.hero-fan .hero-visual { margin-top: 4px; }
  .fan { width: min(100%, 460px); aspect-ratio: 1.1; }
  .fan-card { width: 74%; left: 13%; top: 22%; }
  .fan-card.pos-0 { --x: -12%; --y: 2%; --r: -9deg; }
  .fan-card.pos-1 { --x: -2%; --y: -10%; --r: -2deg; }
  .fan-card.pos-2 { --x: 10%; --y: 12%; --r: 6deg; }
  .fan .fan-card.is-out { --x: 40%; --y: -4%; --r: 16deg; }
  .hero.hero-fan .hero-word { bottom: -.25em; }
}
@media (prefers-reduced-motion: reduce) {
  .fan-card, .fan-tilt, .fan-inner, .fan-front, .fan-back { transition: none; }
}

/* ───────────── шрифты «Полночи»: Unbounded + Onest (выбраны 14 октября) ─────────────
   Огромное «ЗАЧЁТКА» и заголовки — широкий Unbounded строчными буквами, текст — Onest, цены и цифры — Onest 800.
   Unbounded примерно вдвое шире прежнего узкого Oswald, поэтому заголовки меньше и без сплошных заглавных.
   Темы «Синий» и «Белый» (.theme-grotesk) оставляют свои заголовки; админка и логотип — по-прежнему Oswald. */
.page-site { --font-body: "Onest", "ZK Text Cyrillic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.page-site:not(.theme-grotesk) {
  --font-heading: "Unbounded", "Onest", Arial, sans-serif;
  --font-num: "Onest", "ZK Text Cyrillic", system-ui, sans-serif;
}
.page-site:not(.theme-grotesk) :is(.hero-title, .section-title, .calc-title, .promo-title, .step-title, .success-title, .doc-title, .guide-title, .fan-name) {
  text-transform: none; letter-spacing: -.02em;
}
.page-site:not(.theme-grotesk) .hero-title { font-weight: 700; font-size: clamp(27px, 2.9vw, 44px); line-height: 1.14; }
.page-site:not(.theme-grotesk) .section-title { font-weight: 700; font-size: clamp(25px, 3vw, 44px); line-height: 1.12; }
.page-site:not(.theme-grotesk) .calc-title { font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; }
.page-site:not(.theme-grotesk) .promo-title { font-weight: 700; font-size: clamp(23px, 2.7vw, 38px); line-height: 1.12; }
.page-site:not(.theme-grotesk) :is(.doc-title, .guide-title) { font-weight: 700; font-size: clamp(23px, 3vw, 40px); line-height: 1.15; }
.page-site:not(.theme-grotesk) .doc-body h2 { font-size: clamp(18px, 1.9vw, 22px); }
.page-site:not(.theme-grotesk) .doc-body h3 { font-size: clamp(16px, 1.6vw, 18px); }
.page-site:not(.theme-grotesk) .step-title { font-weight: 700; font-size: 18px; margin: 16px 0 8px; }
.page-site:not(.theme-grotesk) .success-title { font-size: 23px; }
.page-site:not(.theme-grotesk) :is(.brand, .nav a.brand, .nav a.brand:hover) { font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.page-site:not(.theme-grotesk) .brand-sm { font-size: 17px; }
.page-site:not(.theme-grotesk) .card3d-brand { font-weight: 700; font-size: 20px; }
.page-site:not(.theme-grotesk) .card3d-title { font-weight: 700; font-size: clamp(17px, 1.8vw, 25px); line-height: 1.18; }
.page-site:not(.theme-grotesk) .card3d-back-title { font-size: 15px; }
.page-site:not(.theme-grotesk) .price-card .card-title { font-weight: 700; font-size: 19px; line-height: 1.22; }
.page-site:not(.theme-grotesk) .guarantee-title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.page-site:not(.theme-grotesk) .more-title { font-size: 16px; line-height: 1.3; }
.page-site:not(.theme-grotesk) .guide-cta-title { font-size: clamp(16px, 1.7vw, 19px); }
.page-site:not(.theme-grotesk) .promo-code { font-size: clamp(19px, 2.1vw, 26px); letter-spacing: .01em; }
.page-site:not(.theme-grotesk) .guide-promo-code { font-size: clamp(20px, 4.2vw, 36px); letter-spacing: .01em; }
.page-site:not(.theme-grotesk) .author-mono { font-size: 30px; }
.page-site:not(.theme-grotesk) .fan-name { font-weight: 700; font-size: clamp(13px, 3.6cqw, 21px); }
/* вопросы FAQ длинные — их удобнее читать текстовым Onest */
.page-site:not(.theme-grotesk) .faq-item summary { font-family: var(--font-body); font-weight: 600; font-size: clamp(17px, 1.7vw, 21px); }
/* цены и цифры — Onest 800: у Unbounded слишком широкие цифры */
.page-site:not(.theme-grotesk) :is(.stat-value, .calc-price, .calc-old, .price-card-price, .step-num, .fixed-price-value, .price-table-sum, .fan-price, .success-icon) {
  font-family: var(--font-num); font-weight: 800; letter-spacing: -.02em;
}
.page-site:not(.theme-grotesk) .step-num { font-size: 58px; }
.page-site:not(.theme-grotesk) .calc-price { font-size: clamp(36px, 4vw, 54px); }
.page-site:not(.theme-grotesk) .price-card-price { font-size: 28px; }
.page-site:not(.theme-grotesk) .fan-price { font-size: clamp(22px, 7.4cqw, 44px); }
/* огромное название: Unbounded почти вдвое шире — размер меньше, чтобы слово целиком помещалось в экран */
.page-site:not(.theme-grotesk) .hero-word { font-weight: 800; font-size: min(13.4vw, 230px); letter-spacing: -.02em; }
.page-site:not(.theme-grotesk) .hero-fan .hero-word { font-size: min(14vw, 250px); }
