/* youkey — премиум светлая тема. Чистый CSS, без зависимостей. */
:root {
  --bg: #fafaf8;
  --bg-soft: #f6f6f3;
  --bg-tint: rgba(170, 255, 0, 0.08);
  --ink: #141414;
  --ink-2: #2a2a2a;
  --muted: #666666;
  --muted-2: #767676; /* было #8f8f8f — контраст 3.4:1, ниже AA (4.5:1) для мелкого текста */
  --line: rgba(0, 0, 0, 0.06);
  --line-2: rgba(0, 0, 0, 0.1);
  --brand: #aaff00;        /* лайм — заливки, glow, точки */
  --brand-2: #95e000;      /* чуть темнее — нижняя точка градиента кнопок */
  --brand-ink: #5f8f00;    /* читаемый текст-акцент (лайм на белом нечитаем) */
  --brand-deep: #6a9f00;   /* для текст-градиентов заголовков */
  --ok: #16a34a;
  --radius: 22px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.035), 0 16px 50px -28px rgba(0, 0, 0, 0.18);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 80px -30px rgba(0, 0, 0, 0.22);
  --shadow-brand: 0 14px 36px -8px rgba(170, 255, 0, 0.45);
  --container: 1160px;
  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', 'Inter Tight', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  /* фирменная точечная лаймовая сетка (как в макете Сергея) */
  background-image: radial-gradient(rgba(170, 255, 0, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; letter-spacing: -0.05em; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 19px; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  padding: 15px 26px;
  border-radius: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
  background: var(--brand);
  color: #111;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -10px rgba(170, 255, 0, 0.6); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #d8d8e4; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* Бейдж-пилюля */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-ink);
  background: var(--bg-tint);
  border: 1px solid rgba(170, 255, 0, 0.35);
  padding: 7px 14px;
  border-radius: 999px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(170, 255, 0, 0.2); }

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: -0.04em; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand);
  display: grid; place-items: center; color: #111; font-weight: 900; font-size: 18px;
  box-shadow: 0 0 20px rgba(170, 255, 0, 0.5);
}
.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 14px; transition: color 0.15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 700; }
.nav-links a.active::after { content: ''; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 8px rgba(170, 255, 0, 0.6); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% -10%, rgba(170, 255, 0, 0.18), transparent 60%),
    radial-gradient(50% 50% at 10% 0%, rgba(170, 255, 0, 0.1), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 850; margin-top: 24px; text-wrap: balance; overflow-wrap: break-word; }
.hero h1 .grad { background: linear-gradient(90deg, #141414, var(--brand-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 22px auto 0; max-width: 640px; font-size: 20px; color: var(--muted); }
.hero-cta { margin-top: 38px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 44px; display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; color: var(--muted-2); font-size: 14px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .ic { color: var(--brand-ink); }

/* Цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(34px, 4vw, 46px); font-weight: 900; letter-spacing: -0.06em; background: linear-gradient(90deg, #141414, var(--brand-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { margin-top: 6px; color: var(--muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* Сетки/карточки */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e3e3ee; }
.card .ico {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--bg-tint); color: var(--brand-ink);
}
.card h3 { font-size: 20px; font-weight: 750; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Шаги */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { position: relative; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step .n {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 18px; color: #111;
  background: var(--brand); box-shadow: var(--shadow-brand);
}
.step h3 { margin-top: 18px; font-size: 19px; font-weight: 750; }
.step p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* Тарифы */
/* auto-fit + justify-content: при 1-2 товарах карточки по центру, а не прижаты влево */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 370px)); justify-content: center; gap: 26px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); position: relative; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow), 0 20px 50px -20px rgba(170, 255, 0, 0.35); border-color: rgba(170, 255, 0, 0.5); }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-brand); }
.plan-mark { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-width: 54px; height: 54px; padding: 0 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(170, 255, 0, 0.25), rgba(170, 255, 0, 0.08)); border: 1px solid rgba(170, 255, 0, 0.45); color: var(--brand-ink); font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -0.02em; margin-bottom: 16px; }
.plan .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #111; font-family: var(--font-display); font-size: 12px; font-weight: 800; padding: 7px 16px; border-radius: 999px; box-shadow: 0 8px 22px -8px rgba(170, 255, 0, 0.6); }
.plan .name { font-weight: 700; color: var(--ink-2); font-size: 19px; }
.plan .price { font-family: var(--font-display); margin-top: 10px; font-size: 40px; font-weight: 900; letter-spacing: -0.06em; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; margin: 22px 0; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 13px; }
.plan li { display: flex; gap: 11px; align-items: flex-start; color: var(--ink-2); font-size: 16px; }
.plan li .ck { color: var(--brand-ink); flex: 0 0 auto; margin-top: 2px; }
.plan .btn { width: 100%; justify-content: center; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.stars { color: #f59e0b; letter-spacing: 2px; }
.review p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.review .who { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.review .av { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #111; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.review .who b { display: block; font-size: 15px; }
.review .who span { color: var(--muted); font-size: 13px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand-ink); font-size: 24px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin-top: 12px; color: var(--muted); }

/* CTA-баннер */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 64px 40px; text-align: center; color: #111; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 24px 70px -24px rgba(170, 255, 0, 0.6); }
.cta-band::before { content: ''; position: absolute; width: 320px; height: 320px; right: -60px; top: -120px; background: rgba(255, 255, 255, 0.35); border-radius: 50%; filter: blur(20px); }
.cta-band h2 { position: relative; font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.cta-band p { position: relative; margin: 14px auto 0; max-width: 540px; opacity: 0.78; font-size: 18px; }
.cta-band .btn { position: relative; margin-top: 28px; background: #141414; color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.35); }
.cta-band .btn:hover { transform: translateY(-2px); }

/* Подвал */
.site-footer { background: var(--bg-soft); color: var(--muted); padding: 70px 0 36px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid .brand { color: var(--ink); }
.footer-grid .brand + p { margin-top: 14px; color: var(--muted); max-width: 280px; font-size: 15px; }
.footer-col h4 { color: var(--ink); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: var(--muted); font-size: 15px; transition: color 0.15s; }
.footer-col a:hover { color: var(--brand-ink); }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted-2); font-size: 14px; }

/* ===== Анимации: живой hero, влетающие буквы, ротатор, парящие символы ===== */

/* Буквы заголовка влетают снизу с поворотом */
.anim-char { display: inline-block; }
/* Слово целиком не переносится по буквам — перенос только между словами */
.word { display: inline-block; white-space: nowrap; }
.anim-ready .anim-char {
  opacity: 0;
  transform: translateY(46px) rotateX(-90deg) scale(0.7);
  transform-origin: 50% 100%;
  animation: charIn 0.7s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.04s);
}
.anim-char.space { width: 0.32em; }
@keyframes charIn {
  to { opacity: 1; transform: none; }
}

/* Плавное появление блоков hero */
.anim-ready .hero-rise { opacity: 0; transform: translateY(26px); animation: rise 0.8s 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.anim-ready .hero-rise.d2 { animation-delay: 0.7s; }
.anim-ready .hero-rise.d3 { animation-delay: 0.85s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Меняющееся слово-ротатор */
.rotator {
  display: inline-block;
  min-width: 0;
  font-weight: 850;
  background: linear-gradient(90deg, #141414, var(--brand-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.3s, transform 0.4s;
}
.rotator.flip { opacity: 0; transform: translateY(-14px) rotateX(80deg); }

/* Парящие крутящиеся символы на фоне hero */
.float-field { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.float-field span {
  position: absolute;
  font-weight: 800;
  color: var(--brand-ink);
  opacity: 0.13;
  left: var(--x);
  top: var(--y);
  font-size: var(--s, 40px);
  animation: floaty var(--dur, 9s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
  will-change: transform;
}
@keyframes floaty {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-34px) rotate(180deg); }
  100% { transform: translateY(0) rotate(360deg); }
}
.hero-inner { z-index: 1; }

/* Появление секций при прокрутке */
.anim-ready .reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.anim-ready .reveal.in { opacity: 1; transform: none; }
.anim-ready .reveal.stagger-up { transition-delay: calc(var(--si, 0) * 0.08s); }

/* Лёгкое «дыхание» акцентной кнопки */
.btn-primary.pulse { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: var(--shadow-brand); }
  50% { box-shadow: 0 18px 50px -10px rgba(170, 255, 0, 0.7); }
}

/* Прогресс-бар прокрутки */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100; background: linear-gradient(90deg, var(--brand), var(--brand-deep)); box-shadow: 0 0 12px rgba(170, 255, 0, 0.7); transition: width 0.1s linear; }

/* Кнопка «наверх» */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 14px; border: 0; cursor: pointer; display: grid; place-items: center; color: #111; background: var(--brand); box-shadow: var(--shadow-brand); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }

/* Шапка уплотняется при прокрутке */
.site-header.scrolled { box-shadow: 0 8px 28px -18px rgba(16, 18, 34, 0.35); }
.site-header.scrolled .nav { height: 62px; }

/* Лента логотипов нейросетей (бесконечная) */
.logos-band { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; }
.logos-cap { text-align: center; color: var(--muted-2); font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scrollx 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .logo { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: #b6b9c8; letter-spacing: -0.02em; white-space: nowrap; transition: color 0.2s; }
.marquee-track .logo:hover { color: var(--brand-ink); }
.marquee-track .logo .d { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: 0.6; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* Tilt-карточки (3D-наклон за курсором) */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* SVG-иконки */
.ico svg { width: 26px; height: 26px; }
.chk { display: inline-flex; width: 18px; height: 18px; color: var(--brand-ink); flex: 0 0 auto; }
.chk svg { width: 100%; height: 100%; }
.hero-trust .ic svg { width: 16px; height: 16px; vertical-align: -3px; }

@media (prefers-reduced-motion: reduce) {
  .anim-ready .anim-char, .anim-ready .hero-rise, .anim-ready .reveal { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
  .float-field span, .btn-primary.pulse, .marquee-track { animation: none !important; }
}

/* Пока каталог не загрузился из Пульта, динамические блоки скрыты — иначе
   посетитель на миг видит запасные (устаревшие) цены. Класс cat-wait ставит
   и снимает main.js; страховочный таймер 3.5с гарантирует показ фоллбэка. */
.cat-wait #catalogPricing, .cat-wait #catalogShowcase, .cat-wait #catalogPopular { opacity: 0; }
#catalogPricing, #catalogShowcase, #catalogPopular { transition: opacity 0.25s ease; }

/* Адаптив */
@media (max-width: 920px) {
  .grid-3, .steps, .plans, .reviews { grid-template-columns: 1fr; }
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Шапка: полному меню (8 пунктов + 2 кнопки) нужно ~1030px — до этой ширины
   бургер, иначе на планшетах 761-920 меню вылезало за экран (гориз. скролл). */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 22px; gap: 16px;
  }
  .nav-links.open a { font-size: 16px; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  /* Компактная шапка на мобиле */
  .nav { height: 58px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand .mark { width: 28px; height: 28px; font-size: 16px; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions { gap: 8px; }
  /* «Выбрать доступ» в шапке — маленькая, чтобы не занимала пол-экрана */
  .nav-actions .btn-primary { padding: 9px 13px; font-size: 12px; border-radius: 11px; }
  .hero { padding: 56px 0 48px; }
  .page-hero { padding: 52px 0 26px; }
  /* Крупные кнопки (hero / CTA-баннер) — компактнее на мобиле */
  .btn-lg { padding: 13px 20px; font-size: 15px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  /* Совсем узко — в шапке только лого + бургер; CTA есть в меню и в hero */
  .nav-actions .btn-primary { display: none; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ===== Под-страницы: компактный hero ===== */
.page-hero { position: relative; overflow: hidden; padding: 76px 0 36px; text-align: center; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 60% at 80% -20%, rgba(170, 255, 0, 0.16), transparent 60%),
    radial-gradient(50% 50% at 8% 0%, rgba(170, 255, 0, 0.1), transparent 60%);
}
.page-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(32px, 5vw, 54px); margin-top: 18px; }
.page-hero h1 .grad { background: linear-gradient(90deg, #141414, var(--brand-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero p { margin: 18px auto 0; max-width: 600px; color: var(--muted); font-size: 19px; }

/* ===== Калькулятор ===== */
.calc { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 26px; align-items: start; }
.calc-grid { display: grid; gap: 12px; }
.calc-item {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  font-family: var(--font); transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s, background 0.18s;
}
.calc-item:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.calc-item.on { border-color: var(--brand); background: var(--bg-tint); box-shadow: var(--shadow-brand); }
.calc-check { position: relative; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); flex: 0 0 auto; transition: 0.2s; }
.calc-item.on .calc-check { background: var(--brand); border-color: var(--brand); }
.calc-item.on .calc-check::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #111; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.calc-item-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.calc-item-body b { font-size: 16px; }
.calc-item-body span { color: var(--muted); font-size: 13px; }
.calc-item-price { font-family: var(--font-display); font-weight: 800; white-space: nowrap; }
.calc-item-price small { color: var(--muted); font-weight: 600; font-size: 11px; }
.calc-summary { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.calc-term-label { font-weight: 700; margin-bottom: 10px; }
.calc-terms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 4px; }
.calc-term { cursor: pointer; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft); font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--ink-2); transition: 0.15s; }
.calc-term:hover { border-color: var(--brand); }
.calc-term.active { border-color: var(--brand); background: var(--bg-tint); color: var(--brand-ink); font-weight: 800; }
.calc-lines { display: flex; flex-direction: column; gap: 10px; min-height: 40px; padding: 16px 0; margin-top: 14px; border-top: 1px solid var(--line); }
.calc-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-2); }
.calc-empty { color: var(--muted-2); font-size: 14px; }
.calc-total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.calc-total-row span { color: var(--muted); font-weight: 600; }
.calc-total { font-family: var(--font-display); font-size: 30px; font-weight: 900; letter-spacing: -0.04em; }
.calc-save { color: var(--brand-ink); font-weight: 700; font-size: 14px; margin-top: 6px; min-height: 18px; }
.calc-go { width: 100%; justify-content: center; margin-top: 16px; }
.calc-note { color: var(--muted-2); font-size: 12px; margin-top: 12px; line-height: 1.45; }

/* ── Калькулятор оплаты ($→₽) — премиум ───────────────────────────── */
/* #paycalc сам НЕ грид — иначе ловит .calc-сетку старого калькулятора (1.3fr/0.9fr)
   и схлопывается в ~60% ширины. Сетку держит внутренний .paycalc. */
#paycalc { display: block; }
.paycalc { display: grid; gap: 20px; align-items: start; max-width: 920px; margin: 0 auto; }
@media (min-width: 820px) { .paycalc { grid-template-columns: 1fr 1fr; } }

.pc-panel { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.pc-panel--sum { background: linear-gradient(160deg, var(--bg-tint), #fff 62%); overflow: hidden; justify-content: center; }
.pc-panel--sum::before {
  content: ''; position: absolute; top: -70px; right: -70px; width: 220px; height: 220px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 70%); opacity: 0.16; pointer-events: none;
}
/* В левой панели подсказку прижимаем вниз — панели одинаковой высоты, дышат. */
.pc-panel:not(.pc-panel--sum) .pc-hint:last-child { margin-top: auto; padding-top: 20px; }

.pc-label { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.pc-badge { font-family: var(--font-display); font-weight: 900; font-size: 11px; letter-spacing: 0.06em; color: #0a0a0a; background: var(--brand); border-radius: 8px; padding: 4px 9px; box-shadow: 0 6px 16px -8px var(--brand); }

.pc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pc-chip { cursor: pointer; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); font-family: var(--font); font-weight: 700; font-size: 15px; color: var(--ink-2); transition: 0.15s; }
.pc-chip:hover { border-color: var(--brand); transform: translateY(-1px); }
.pc-chip.active { background: var(--brand); border-color: var(--brand); color: #0a0a0a; box-shadow: 0 8px 20px -10px var(--brand); }

.pc-input { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 18px; padding: 6px 22px; background: #fff; transition: 0.15s; }
.pc-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--bg-tint); }
.pc-cur { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--muted); }
.pc-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--ink); padding: 16px 0; letter-spacing: -0.03em; -moz-appearance: textfield; }
.pc-input input::-webkit-outer-spin-button, .pc-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pc-hint { color: var(--muted-2); font-size: 13px; margin-top: 18px; line-height: 1.55; }

.pc-rate { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; margin-bottom: 22px; }
.pc-rate b { color: var(--ink); font-weight: 800; }

.pc-lines { display: flex; flex-direction: column; gap: 16px; }
.pc-line { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.pc-line span:last-child { font-weight: 800; color: var(--ink); white-space: nowrap; }
.pc-divider { height: 1px; background: var(--line); margin: 24px 0; }
.pc-total { display: flex; flex-direction: column; gap: 4px; }
.pc-total > span { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--muted); }
.pc-total b { font-family: var(--font-display); font-size: clamp(30px, 5vw, 42px); font-weight: 900; letter-spacing: -0.03em; color: var(--brand-ink); line-height: 1.05; }
.pc-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.pc-actions .btn { width: 100%; justify-content: center; }
.pc-empty { color: var(--muted-2); font-size: 16px; text-align: center; padding: 60px 10px; line-height: 1.5; }
.pc-empty small { color: var(--muted-2); font-size: 14px; }
.pc-empty-ico { display: block; font-family: var(--font-display); font-weight: 900; font-size: 48px; color: var(--brand); opacity: 0.5; margin-bottom: 12px; }

/* ===== Витрина ===== */
.showcase-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.showcase-filters button { cursor: pointer; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--ink-2); transition: 0.18s; }
.showcase-filters button:hover { border-color: var(--brand); }
.showcase-filters button.active { background: var(--brand); border-color: var(--brand); color: #111; box-shadow: var(--shadow-brand); }
.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card { position: relative; overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.product-card::after { content: ''; position: absolute; width: 220px; height: 220px; right: -80px; top: -80px; background: var(--bg-tint); filter: blur(45px); border-radius: 50%; pointer-events: none; }
.product-visual { position: relative; height: 150px; border-radius: 20px; margin-bottom: 20px; display: grid; place-items: center; border: 1px solid var(--line); background: radial-gradient(circle at 30% 25%, rgba(170, 255, 0, 0.6), transparent 30%), linear-gradient(135deg, #f8f8f4, #fff); }
.product-visual span { font-family: var(--font-display); font-size: 38px; font-weight: 900; letter-spacing: -0.08em; color: #141414; text-shadow: 0 0 36px rgba(170, 255, 0, 0.55); }
.product-badge { position: absolute; z-index: 1; top: 18px; right: 18px; background: var(--brand); color: #111; font-family: var(--font-display); font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.product-card h3 { position: relative; font-size: 20px; }
.product-card .p-desc { position: relative; margin-top: 8px; color: var(--muted); font-size: 15px; flex: 1; }
.product-card .p-foot { position: relative; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card .p-price { font-family: var(--font-display); font-size: 24px; font-weight: 900; letter-spacing: -0.04em; }
.product-card .p-price small { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ===== Контакты ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); text-align: center; }
.contact-card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 16px; background: var(--bg-tint); color: var(--brand-ink); }
.contact-card .ico svg { width: 26px; height: 26px; }
.contact-card h3 { font-size: 18px; }
.contact-card p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.contact-card .c-link { display: inline-block; margin-top: 14px; font-family: var(--font-display); font-weight: 700; color: var(--brand-ink); }

/* ===== Текстовые страницы (О нас / правовое) ===== */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 42px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); margin-bottom: 16px; font-size: 17px; }
.prose ul { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { display: flex; gap: 10px; color: var(--ink-2); }
.prose ul li::before { content: '✦'; color: var(--brand-ink); flex: 0 0 auto; }

/* ===== Адаптив новых блоков ===== */
@media (max-width: 920px) {
  .calc { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
  .showcase, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) and (min-width: 921px) {
  .showcase { grid-template-columns: repeat(2, 1fr); }
}
