/* шрифты Gemini: Google Sans Text — весь текст (кнопки, поля, подписи), Google Sans — заголовки */
:root {
  --font-text: "Google Sans Text", "Google Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Google Sans", "Google Sans Text", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* ================= Главная страница UaqytAI: видео на весь экран и «жидкое стекло» поверх ================= */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 16px/1.5 var(--font-text);
  color: #FFFFFF; background: #0B1120; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, .hero-logo, .sec-title, .big-stat b, .t-name, .t-price b, .p-name, .p-price b, .stat b { font-family: var(--font-display); }
button, input, select, textarea { font-family: inherit; }
svg { display: block; }

.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; overflow: hidden;
  background: #120E2E;
}

/* ===== фон: цветные пятна медленно плывут, как жидкость; слева, под текстом, фон темнее ===== */
.aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.aurora span {
  position: absolute; border-radius: 50%; will-change: transform;
  animation: drift 20s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) {  /* фиолетовое — главный цвет UaqytAI */
  width: 70vmax; height: 70vmax; left: 30%; top: -30%;
  background: radial-gradient(circle, rgba(34, 197, 94, .9), rgba(34, 197, 94, 0) 62%);
}
.aurora span:nth-child(2) {  /* розовое */
  width: 55vmax; height: 55vmax; left: 58%; top: 28%; animation-duration: 24s; animation-delay: -6s;
  background: radial-gradient(circle, rgba(21, 128, 61, .65), rgba(21, 128, 61, 0) 62%);
}
.aurora span:nth-child(3) {  /* синее */
  width: 60vmax; height: 60vmax; left: -18%; top: 38%; animation-duration: 28s; animation-delay: -12s;
  background: radial-gradient(circle, rgba(74, 222, 128, .45), rgba(74, 222, 128, 0) 62%);
}
.aurora span:nth-child(4) {  /* бирюзовый блик */
  width: 30vmax; height: 30vmax; left: 72%; top: -8%; animation-duration: 18s; animation-delay: -3s;
  background: radial-gradient(circle, rgba(134, 239, 172, .45), rgba(134, 239, 172, 0) 62%);
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-7%, 5%) scale(1.15); }
}
/* тонкие линии сетки и лёгкое «зерно» — без них градиент выглядит пластиково и полосит */
.hero-lines {
  --line: rgba(255, 255, 255, .13);
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
/* горизонтальная — между меню и плашкой; вертикальная (с 768 px) — на 2/3 ширины. Две отдельные линии,
   чтобы рисовались одновременно: горизонтальная слева направо, вертикальная сверху вниз, начинают и кончают вместе */
.hero-lines::before, .hero-lines::after { content: ""; position: absolute; background: var(--line); }
.hero-lines::before { left: 0; right: 0; top: 92px; height: 1px; transform-origin: left; }
.hero-lines::after { display: none; top: 0; bottom: 0; left: 66.6%; width: 1px; transform-origin: top; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { .aurora span, .hero-preview > * { animation: none !important; } }

/* ===== жидкое стекло: лёгкое размытие и светящаяся рамка-градиент ===== */
.liquid-glass {
  position: relative; overflow: hidden; border: none;
  background: rgba(255, 255, 255, .01); background-blend-mode: luminosity;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1);
}
.liquid-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45) 0%, rgba(255, 255, 255, .15) 20%,
    rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .15) 80%, rgba(255, 255, 255, .45) 100%);
  /* маска оставляет градиент только по краю — получается рамка */
  -webkit-mask: linear-gradient(#FFF 0 0) content-box, linear-gradient(#FFF 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ===== меню ===== */
.hero-nav {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 20px 0;
}
/* знак и название вместе — в стеклянной плашке (liquid-glass) */
.hero-logo { display: flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 14px 6px 8px; border-radius: 14px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.hero-logo b { font-weight: 700; color: #46C055; }  /* «AI» — зелёный, как в логотипе */
.logo-mark { display: grid; place-items: center; }
.hero-logo img { width: 28px; height: 28px; display: block; }  /* знак UaqytAI (static/brand) */

.nav-pill {
  display: none; align-items: center; gap: 32px; padding: 12px 32px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
}
.nav-pill a { color: rgba(255, 255, 255, .7); transition: color .2s; white-space: nowrap; }  /* пункт меню — в одну строку (на казахском они длинные) */
.nav-pill a:hover, .nav-pill a.current { color: #FFFFFF; }

.round-btn {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: rgba(255, 255, 255, .8);
}
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.desktop-only { display: none; }

/* язык сайта: Рус / Қаз / Eng в стеклянной капсуле, выбранный — светлее. В меню — справа, на телефоне — в меню ☰.
   Подписи — как в Gemini: Google Sans, средняя жирность, обычный регистр, без разрядки */
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-pill { display: flex; gap: 2px; padding: 4px; border-radius: 999px; }
.nav-right .lang-pill { display: none; }
.lang-pill button {
  padding: 6px 12px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .6);
  transition: color .2s, background .2s;
}
.lang-pill button:hover { color: #FFFFFF; }
.lang-pill button.active { color: #FFFFFF; background: rgba(255, 255, 255, .12); }
.lang-pill button:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 1px; }
.mobile-menu .lang-pill button { padding: 8px 16px; font-size: 14px; }

/* кнопка меню на телефоне: ☰ и ✕ сменяют друг друга с поворотом */
.menu-btn { z-index: 50; padding: 0; cursor: pointer; font: inherit; }
.menu-btn svg { position: absolute; transition: transform .3s, opacity .3s; }
.menu-btn .icon-close, .menu-open .menu-btn .icon-menu { transform: rotate(90deg) scale(0); opacity: 0; }
.menu-open .menu-btn .icon-close { transform: none; opacity: 1; }

/* ===== главный экран ===== */
.hero-main {
  position: relative; z-index: 10; flex: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 0 20px 32px; transition: opacity .5s ease-out;
}
.hero-top { margin-top: 56px; max-width: 600px; }

.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, .8);
}
.badge-icons { display: flex; }
.badge-icons span {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .35); background: #2A1F5C;
}
.badge-icons span + span { margin-left: -7px; }
.badge-icons svg { width: 12px; height: 12px; fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

h1 { margin: 0; font-size: 36px; font-weight: 400; line-height: 1.05; letter-spacing: -.05em; }
.hero-sub { margin: 16px 0 0; font-size: 14px; font-weight: 300; color: rgba(255, 255, 255, .7); }
/* «Начать работу» — главная кнопка страницы: яркий градиент сайта, свечение, стрелка; по ней время от времени
   пробегает блик (второй слой фона), свечение «дышит». Только фон и тень — без тяжёлых эффектов */
.cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 62px; margin-top: 30px; padding: 0 34px 0 38px; border-radius: 999px;
  font: 600 19px/1 var(--font-display); color: #FFFFFF; letter-spacing: 0; white-space: nowrap;
  background:
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .32) 50%, transparent 62%) 100% 0 / 250% 100% no-repeat,
    linear-gradient(135deg, #15803D 0%, #16A34A 50%, #166534 100%);
  text-shadow: 0 1px 2px rgba(40, 0, 70, .35);  /* надпись чётче на светлых местах градиента и под бликом */
  box-shadow: 0 14px 40px rgba(34, 197, 94, .45), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.cta-arrow { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; transition: translate .2s var(--ease); }
.cta:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(34, 197, 94, .65), inset 0 1px 0 rgba(255, 255, 255, .3); }
.cta:hover .cta-arrow { translate: 4px 0; }
.cta:active { transform: translateY(0) scale(.98); }
.cta:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
@keyframes cta-shine { 0%, 55% { background-position: 100% 0, 0 0; } 85%, 100% { background-position: 0% 0, 0 0; } }
@keyframes cta-glow { 50% { box-shadow: 0 14px 54px rgba(21, 128, 61, .55), inset 0 1px 0 rgba(255, 255, 255, .28); } }

/* ===== цифры внизу ===== */
.hero-stats { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: 20px; font-weight: 400; line-height: 1.2; }
.stat small { font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, .6); }
.stat-icon { position: relative; width: 20px; height: 20px; margin-bottom: 8px; }
.stat-icon.dots i { position: absolute; width: 2.5px; height: 2.5px; background: rgba(255, 255, 255, .6); }
.stat-icon.checks { display: grid; grid-template-columns: repeat(3, 4px); gap: 2px; align-content: center; }
.stat-icon.checks i { width: 4px; height: 4px; border-radius: 1px; background: rgba(255, 255, 255, .6); }
.stat-icon.checks i:nth-child(even) { background: transparent; }  /* шахматный порядок */

/* ===== карточки-примеры результата: на телефоне и планшете — одна викторина между кнопкой и цифрами,
         на широком экране — слайд, викторина и плашка КСП справа ===== */
.pv-slide, .pv-chip { display: none; }
@keyframes float { 50% { transform: translateY(-10px); } }  /* покачивание; запускается в разделе «появление» */
.pv-slide { top: 0; right: 0; width: 400px; padding: 9px; border-radius: 20px; }
.pv-slide-inner {
  position: relative; aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden; padding: 0 30px;
  display: flex; flex-direction: column; justify-content: center; background: #FBFDF7; color: #1B2E1A;
}
.pv-slide-inner b { position: relative; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.pv-slide-inner i { position: relative; width: 38px; height: 4px; margin: 12px 0 10px; border-radius: 2px; background: #2E7D32; }
.pv-slide-inner small { position: relative; font-size: 13px; color: #5F6F5E; }
.pv-leaf { position: absolute; border-radius: 50%; }
.pv-leaf.one { width: 130px; height: 50px; right: 6px; top: 46px; background: #2E7D32; transform: rotate(22deg); }
.pv-leaf.two { width: 96px; height: 36px; right: 38px; top: 16px; background: #F9A825; transform: rotate(-52deg); }
.pv-quiz {
  width: 100%; max-width: 360px; padding: 16px; border-radius: 20px;
  /* темнее обычного стекла: карточка заходит на белый слайд, и текст на ней должен читаться */
  background: rgba(18, 14, 46, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.pv-label { font-size: 11px; color: rgba(255, 255, 255, .6); margin-bottom: 6px; }
.pv-question { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.pv-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pv-options span {
  padding: 7px 10px; border-radius: 10px; font-size: 12px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
}
.pv-options .ok { background: rgba(34, 197, 94, .28); border-color: rgba(74, 222, 128, .75); }
.pv-chip {
  right: 18px; top: 392px; align-items: center; gap: 12px; padding: 10px 18px 10px 10px;
  border-radius: 999px; background: rgba(18, 14, 46, .45);
}
.pv-chip-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #16A34A; }
.pv-chip-icon svg { width: 18px; height: 18px; fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-chip b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.pv-chip small { display: block; font-size: 12px; color: rgba(255, 255, 255, .65); }
@media (min-width: 1200px) {
  .hero-preview { position: absolute; right: 6vw; top: 50%; width: 440px; height: 420px; transform: translateY(-50%); }
  .pv-slide, .pv-quiz, .pv-chip { position: absolute; }
  .pv-slide { display: block; }
  .pv-quiz { top: 212px; left: 0; width: 310px; }
  .pv-chip { display: flex; }
}

/* ===== появление страницы: элементы проявляются по очереди ===== */
/* Порядок: фон «включается» из темноты и прорисовываются линии → сверху опускается меню → значок → слова заголовка
   выезжают снизу → подзаголовок проявляется из размытия → кнопка (по ней пробегает блик) → карточки-примеры влетают
   справа → цифры внизу. Задержки слов заголовка и точек в значках цифр ставит скрипт страницы.
   Анимации только «до» (fill-mode backwards): после них у элементов обычные стили, поэтому переход в приложение
   (.leaving) работает как раньше. Сдвиги — свойствами translate / scale / rotate: они не мешают покачиванию
   карточек, которое двигает transform. */
.hero { --ease: cubic-bezier(.2, .8, .2, 1); }
@keyframes aurora-in { from { opacity: 0; scale: 1.15; } }
@keyframes line-x { from { transform: scaleX(0); } }
@keyframes line-y { from { transform: scaleY(0); } }
@keyframes drop-in { from { opacity: 0; translate: 0 -14px; } }
@keyframes rise-in { from { opacity: 0; translate: 0 18px; } }
@keyframes blur-in { from { opacity: 0; translate: 0 14px; filter: blur(10px); } }
@keyframes pop-in { from { opacity: 0; scale: .4; } }
@keyframes word-in { from { opacity: 0; translate: 0 .3em; } }
@keyframes button-in { from { opacity: 0; scale: .9; } }
@keyframes card-in { from { opacity: 0; translate: 64px 24px; rotate: 5deg; scale: .94; } }

.aurora { animation: aurora-in 1.8s var(--ease) backwards; }
.hero-lines::before { animation: line-x .8s cubic-bezier(.65, 0, .35, 1) .1s backwards; }
.hero-lines::after { animation: line-y .8s cubic-bezier(.65, 0, .35, 1) .1s backwards; }
.hero-logo { animation: drop-in .7s var(--ease) .15s backwards; }
.nav-pill { animation: drop-in .7s var(--ease) .25s backwards; }
.nav-right > * { animation: drop-in .7s var(--ease) .32s backwards; }
.nav-right > :nth-child(2) { animation-delay: .38s; }
.nav-right > :nth-child(3) { animation-delay: .44s; }
.badge { animation: blur-in .8s var(--ease) .35s backwards; }
.badge-icons span { animation: pop-in .5s cubic-bezier(.3, 1.6, .5, 1) .55s backwards; }
.badge-icons span:nth-child(2) { animation-delay: .62s; }
.badge-icons span:nth-child(3) { animation-delay: .69s; }
.badge-icons span:nth-child(4) { animation-delay: .76s; }
/* заголовок: слова по очереди плавно проявляются и чуть поднимаются. Без «шторки» (overflow: hidden): она срезала
   хвосты букв (y, p, Қ), а пока слово выезжало, из-под неё торчали обрывки букв — «белые точки» при загрузке */
h1 .word { display: inline-block; vertical-align: top; }
h1 .word > span { display: inline-block; animation: word-in .9s var(--ease) backwards; }
.hero-sub { animation: blur-in .8s var(--ease) .85s backwards; }
.cta { animation: button-in .45s var(--ease) .45s backwards, cta-shine 4.5s ease-in-out 1.2s infinite, cta-glow 3.2s ease-in-out 1.2s infinite; }
.pv-slide { animation: card-in .9s var(--ease) .55s backwards, float 7s ease-in-out infinite; }
.pv-quiz { animation: card-in .9s var(--ease) .7s backwards, float 7s ease-in-out -2.5s infinite; }
.pv-chip { animation: card-in .9s var(--ease) .85s backwards, float 7s ease-in-out -5s infinite; }
/* на телефоне и планшете викторина стоит под кнопкой — и появляется после неё, сверху вниз */
@media (max-width: 1199px) { .pv-quiz { animation-delay: 1.05s, -2.5s; } }
.stat { animation: rise-in .8s var(--ease) 1.05s backwards; }
.stat + .stat { animation-delay: 1.15s; }
.stat-icon i { animation: pop-in .35s var(--ease) backwards; }
@media (prefers-reduced-motion: reduce) {
  .aurora, .hero-lines::before, .hero-lines::after, .hero-logo, .nav-pill, .nav-right > *, .badge, .badge-icons span, h1 .word > span,
  .hero-sub, .cta, .stat, .stat-icon i { animation: none !important; }
}

/* ===== меню на телефоне: ссылки поверх затемнённого фона ===== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 15;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  opacity: 0; pointer-events: none; transition: opacity .5s ease-out;
}
.mobile-menu-inner {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  font-size: 24px; font-weight: 500; transform: translateY(-32px); transition: transform .5s ease-out;
}
.mobile-account { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; font-weight: 300; color: rgba(255, 255, 255, .6); }
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.menu-open .mobile-menu-inner { transform: none; }
.menu-open .hero-main { opacity: 0; pointer-events: none; }

/* ===== переход в приложение ===== */
@view-transition { navigation: auto; }  /* Chrome и Safari ещё и плавно сменяют страницы */
.page-veil {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  /* чистый чёрный, как фон приложения до того, как в нём плавно «включится» фиолетовый луч */
  background: #000000;
  clip-path: circle(0 at var(--x, 50%) var(--y, 50%));
  transition: clip-path .65s cubic-bezier(.65, 0, .35, 1);
}
.leaving .page-veil { clip-path: circle(150vmax at var(--x, 50%) var(--y, 50%)); pointer-events: auto; }
.hero-nav, .hero-main { transition: transform .65s cubic-bezier(.65, 0, .35, 1), opacity .5s ease-out; }
.leaving .hero-nav, .leaving .hero-main { transform: scale(.96); opacity: 0; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ===== планшет и компьютер ===== */
@media (min-width: 640px) {
  .hero-lines::before { top: 112px; }
  .hero-nav { padding: 32px 32px 0; }
  .hero-main { padding: 0 32px 40px; }
  .hero-top { margin-top: 80px; }
  .badge { gap: 12px; margin-bottom: 24px; padding: 8px 16px; font-size: 14px; }
  .badge-icons span { width: 24px; height: 24px; font-size: 11px; }
  h1 { font-size: 48px; }
  .hero-sub { margin-top: 20px; font-size: 16px; }
  .cta { height: 70px; margin-top: 36px; padding: 0 42px 0 48px; gap: 14px; font-size: 21px; }
  .cta-arrow { width: 24px; height: 24px; }
  .hero-stats { gap: 40px; }
  .stat b { font-size: 24px; }
  .stat small { font-size: 14px; }
}
@media (min-width: 768px) {
  .hero-lines::before { top: 150px; }
  .hero-lines::after { display: block; }  /* на широком экране — ещё вертикальная линия, как сетка в макете */
  .hero-nav { padding: 32px 64px 0; }
  .hero-main { padding: 0 64px 48px; }
  .hero-top { margin-top: 112px; }
  .hero-logo { padding: 7px 16px 7px 10px; }
  .hero-logo img { width: 30px; height: 30px; }
  .nav-pill { display: flex; }
  .desktop-only { display: grid; }
  .nav-right .lang-pill { display: flex; }
  .menu-btn, .mobile-menu { display: none; }
  h1 { font-size: 60px; }
  .hero-sub { font-size: 18px; }
  .hero-stats { gap: 64px; }
  .stat b { font-size: 30px; }
}
@media (min-width: 1024px) {
  .hero-nav { padding: 32px 80px 0; }
  .hero-main { padding: 0 80px 56px; }
  h1 { font-size: 72px; }
}

/* ================= Блоки под первым экраном: как работает, возможности, цифры, тарифы, подвал ================= */
/* Появление при прокрутке — в обе стороны: блок, ушедший за край экрана, снова прячется и при возвращении
   выезжает с той стороны, откуда пришёл (снизу — когда листаем вниз, сверху — когда листаем вверх).
   Классы .in и .from-top ставит site.js (IntersectionObserver). */
:root {
  --ink: #0E0A24; --ink-2: #150F33; --line: rgba(255, 255, 255, .1); --soft: rgba(255, 255, 255, .62);
  --violet: #4ADE80; --violet-2: #16A34A; --pink: #15803D; --green: #4ADE80; --gold: #F2B705;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.reveal {
  opacity: 0; transform: translateY(44px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.from-top { transform: translateY(-44px); }
.reveal.zoom { transform: scale(.9); filter: blur(6px); }
.reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; transition: none; } }

/* меню при прокрутке: прячется, когда листаем вниз, и появляется, когда листаем вверх */
.site-header {
  position: fixed; z-index: 60; top: 12px; left: 50%; width: min(1120px, calc(100% - 24px));
  display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgba(18, 13, 44, .72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  transform: translate(-50%, -140%); transition: transform .5s var(--ease);
}
.site-header.show { transform: translate(-50%, 0); }
.site-header .hero-logo { font-size: 17px; }
.site-header .logo-mark { width: 30px; height: 30px; }
.site-header .logo-mark img { width: 22px; height: 22px; }
.site-links { display: none; gap: 4px; margin: 0 auto; }
.site-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--soft); transition: color .2s, background .2s; }
.site-links a:hover, .site-links a.current { color: #FFFFFF; background: rgba(255, 255, 255, .07); }
.header-cta {
  margin-left: auto; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; white-space: nowrap;
  background: linear-gradient(135deg, #16A34A, #22C55E); box-shadow: 0 6px 20px rgba(22, 163, 74, .35);
  transition: transform .2s, box-shadow .2s;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(22, 163, 74, .5); }
@media (min-width: 900px) { .site-links { display: flex; } .header-cta { margin-left: 0; } }

/* первый экран при прокрутке уходит чуть медленнее страницы и гаснет — глубина */
.hero-top { opacity: calc(1 - var(--hero-fade, 0)); }
.hero-preview { translate: 0 calc(var(--hero-shift, 0) * 1px); }

/* ===== общий вид блоков ===== */
.site { position: relative; background: var(--ink); overflow: hidden; }
/* низ первого экрана плавно переходит в фон блоков — без резкой границы */
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; z-index: 3; height: 140px; pointer-events: none;
  background: linear-gradient(rgba(14, 10, 36, 0), var(--ink));
}
.site::before {  /* мягкое свечение, продолжающее фон первого экрана */
  content: ""; position: absolute; inset: 0 0 auto; height: 520px; pointer-events: none;
  background: radial-gradient(60% 100% at 70% 0%, rgba(34, 197, 94, .22), transparent 70%);
}
.sec { position: relative; padding: 88px 20px; }
.sec-inner { position: relative; max-width: 1160px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--violet); background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .25);
}
.sec-title { margin: 0; max-width: 820px; font-size: 32px; font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.sec-title span, .final-cta h2 span {
  background: linear-gradient(100deg, #86EFAC 10%, #BBF7D0 55%, #86EFAC 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-lead { max-width: 640px; margin: 16px 0 0; font-size: 16px; font-weight: 300; color: var(--soft); }
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); border-radius: 22px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* ===== как работает ===== */
.how-grid { display: grid; gap: 40px; margin-top: 48px; align-items: center; }
.how-steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; gap: 26px; }
/* вертикальная линия шагов: заполняется по мере прокрутки блока (--how-progress задаёт site.js) */
.how-steps::before, .how-steps::after {
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; border-radius: 2px;
}
.how-steps::before { background: var(--line); }
.how-steps::after {
  background: linear-gradient(var(--green), var(--violet), var(--pink));
  transform-origin: 0 0; transform: scaleY(var(--how-progress, 0));
}
.how-step { position: relative; z-index: 1; display: flex; gap: 18px; align-items: flex-start; }
/* шаг появляется только по вертикали и недалеко: цифры остаются на линии, текст не наезжает на них */
.how-step.reveal { transform: translateY(16px); }
.how-step.reveal.from-top { transform: translateY(-16px); }
.how-step.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) { .how-step.reveal { transform: none; } }
.how-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; color: #FFFFFF; background: var(--ink-2); border: 1.5px solid rgba(74, 222, 128, .5);
  transition: background .6s var(--ease), box-shadow .6s var(--ease), border-color .6s;
}
.how-step.in .how-num {
  background: linear-gradient(135deg, #16A34A, #15803D); border-color: transparent;
  box-shadow: 0 0 0 6px rgba(22, 163, 74, .16), 0 8px 24px rgba(21, 128, 61, .25);
  transition-delay: calc(var(--d, 0s) + .25s);
}
.how-step h3 { margin: 6px 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.how-step p { margin: 0; font-size: 15px; font-weight: 300; color: var(--soft); }

/* окно-пример: запрос печатается, ИИ «думает», строки плана появляются, файл готов. Играет при каждом появлении */
.how-demo {
  position: relative; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, #1B1440, #120D2E); border: 1px solid rgba(74, 222, 128, .28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}
.how-demo::before {  /* блик по краю окна */
  content: ""; position: absolute; inset: -40% -10% auto; height: 70%; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 100%, rgba(34, 197, 94, .35), transparent 70%);
}
.demo-bar { position: relative; display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.demo-bar i:first-child { background: #F87171; } .demo-bar i:nth-child(2) { background: #FBBF24; } .demo-bar i:nth-child(3) { background: #4ADE80; }
.demo-bar span { margin-left: 8px; font-size: 12px; color: var(--soft); }
.demo-body { position: relative; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.demo-prompt {
  align-self: flex-end; max-width: 92%; padding: 11px 14px; border-radius: 16px 16px 4px 16px;
  background: linear-gradient(135deg, #16A34A, #22C55E); font-size: 14px;
}
.demo-typed { display: inline-block; }
.demo-ai { display: flex; gap: 12px; align-items: flex-start; }
.demo-spark {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(from 0deg, #4ADE80, #4ADE80, #15803D, #4ADE80);
  -webkit-mask: radial-gradient(circle, transparent 6px, #000 7px); mask: radial-gradient(circle, transparent 6px, #000 7px);
}
.demo-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.demo-lines p {
  margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 13.5px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.demo-lines p::before { content: "✓ "; color: var(--green); font-weight: 700; }
.demo-file {
  align-self: flex-start; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .35);
}
.demo-file-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #16A34A; }
.demo-file-icon svg { width: 16px; height: 16px; fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-file b { display: block; font-size: 13px; }
.demo-file small { display: block; font-size: 12px; color: var(--soft); }
/* сценарий: всё скрыто, пока окно не на экране; .in запускает его заново при каждом появлении */
.how-demo:not(.in) :is(.demo-prompt, .demo-ai, .demo-lines p, .demo-file) { opacity: 0; }
.how-demo.in .demo-prompt { animation: pop-up .5s var(--ease) .3s backwards; }
.how-demo.in .demo-typed { animation: typing 1.6s steps(36, end) .5s backwards; }
.how-demo.in .demo-ai { animation: fade-in .4s ease 2.1s backwards; }
.how-demo.in .demo-spark { animation: spin 1.2s linear 2.1s 3; }
.how-demo.in .demo-lines p { animation: pop-up .5s var(--ease) backwards; }
.how-demo.in .demo-lines p:nth-child(1) { animation-delay: 2.5s; }
.how-demo.in .demo-lines p:nth-child(2) { animation-delay: 2.9s; }
.how-demo.in .demo-lines p:nth-child(3) { animation-delay: 3.3s; }
.how-demo.in .demo-lines p:nth-child(4) { animation-delay: 3.7s; }
.how-demo.in .demo-file { animation: pop-up .6s cubic-bezier(.3, 1.5, .5, 1) 4.3s backwards; }
@keyframes typing { from { clip-path: inset(0 100% 0 0); } }
@keyframes pop-up { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.ai-cards { display: grid; gap: 14px; margin-top: 56px; }
.ai-card {
  padding: 22px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); border: 1px solid var(--line);
}
.ai-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .3);
}
.ai-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--violet); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ai-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.ai-card p { margin: 0; font-size: 14.5px; font-weight: 300; color: var(--soft); }

/* ===== возможности: «бенто» из карточек; при наведении — свет следует за курсором ===== */
.bento { display: grid; gap: 14px; margin-top: 44px; }
.feat {
  position: relative; overflow: hidden; padding: 24px; border-radius: 22px; isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.feat::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(74, 222, 128, .18), transparent 60%);
}
.feat:hover { border-color: rgba(74, 222, 128, .4); }
.feat:hover::before { opacity: 1; }
.feat-icon {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(22, 163, 74, .35), rgba(21, 128, 61, .2)); border: 1px solid rgba(74, 222, 128, .35);
}
.feat-icon svg { width: 22px; height: 22px; fill: none; stroke: #FFFFFF; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.lang-icon { font-size: 13px; font-weight: 700; }
.feat h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.feat p { margin: 0; font-size: 14.5px; font-weight: 300; color: var(--soft); }
.feat p b { color: #FFFFFF; font-weight: 600; }
/* мини-рисунки в больших карточках */
.doc-art {
  position: relative; margin-top: 22px; height: 150px; border-radius: 14px; padding: 18px;
  background: #FBFDF7; display: flex; flex-direction: column; gap: 10px; transform: rotate(-2deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}
.doc-art i { display: block; height: 9px; border-radius: 5px; background: #D9DED6; }
.doc-art i:first-child { width: 55%; height: 12px; background: #2E7D32; }
.doc-art i:nth-child(2) { width: 90%; } .doc-art i:nth-child(3) { width: 76%; } .doc-art i:nth-child(4) { width: 84%; }
.doc-art b {
  position: absolute; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%;
  background: #16A34A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.feat.in .doc-art { animation: paper-in 1s var(--ease) .3s backwards; }
@keyframes paper-in { from { transform: rotate(-8deg) translateY(30px); opacity: 0; } }
.chat-art { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.chat-art .bubble { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; }
.chat-art .me { align-self: flex-end; background: linear-gradient(135deg, #16A34A, #22C55E); border-bottom-right-radius: 4px; }
.chat-art .ai { align-self: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.feat.in .chat-art .me { animation: pop-up .5s var(--ease) .4s backwards; }
.feat.in .chat-art .ai { animation: pop-up .5s var(--ease) 1s backwards; }

/* ===== в цифрах ===== */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 44px; }
.big-stat {
  padding: 26px 22px; border-radius: 22px; display: flex; flex-direction: column; gap: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); border: 1px solid var(--line);
}
.big-stat b {
  font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #FFFFFF 30%, #86EFAC); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big-stat span { font-size: 14px; color: var(--soft); }
.stats-note { margin: 18px 0 0; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* ===== тарифы (коротко на главной) ===== */
.teaser-cards { display: grid; gap: 14px; margin-top: 40px; }
.t-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); border: 1px solid var(--line);
}
.t-card.featured {
  background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box,
              linear-gradient(135deg, #4ADE80, #15803D, #4ADE80) border-box;
  border: 1.5px solid transparent; box-shadow: 0 24px 60px rgba(22, 163, 74, .25);
}
.t-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 17px; }
.t-name em { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(74, 222, 128, .16); color: #BBF7D0; }
.t-price { display: flex; align-items: baseline; gap: 6px; }
.t-price b { font-size: 34px; font-weight: 600; letter-spacing: -.03em; }
.t-price small { color: var(--soft); }
.t-tag { margin: -6px 0 0; font-size: 14px; color: var(--soft); }
.t-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; flex: 1; }
.t-list li { display: flex; gap: 9px; }
.t-list li::before { content: "✓"; color: var(--green); font-weight: 700; }
.t-list li.no { color: rgba(255, 255, 255, .42); }
.t-list li.no::before { content: "—"; color: rgba(255, 255, 255, .35); }
.t-btn {
  display: block; padding: 12px 18px; border-radius: 999px; text-align: center; font-weight: 600; font-size: 15px;
  border: 1px solid rgba(255, 255, 255, .22); transition: background .2s, transform .2s;
}
.t-btn:hover { background: rgba(255, 255, 255, .08); }
.t-card.featured .t-btn { border: 0; background: linear-gradient(135deg, #16A34A, #22C55E); box-shadow: 0 8px 24px rgba(22, 163, 74, .4); }
.t-card.featured .t-btn:hover { transform: translateY(-1px); }
.text-cta { display: inline-block; margin-top: 26px; font-weight: 600; color: var(--violet); }
.text-cta:hover { color: #BBF7D0; }

/* ===== призыв ===== */
.final-cta .sec-inner {
  max-width: 980px; padding: 56px 24px; border-radius: 28px; text-align: center; overflow: hidden;
  background: radial-gradient(80% 120% at 50% 0%, rgba(34, 197, 94, .45), transparent 70%),
              radial-gradient(60% 80% at 100% 100%, rgba(21, 128, 61, .3), transparent 70%), var(--ink-2);
  border: 1px solid rgba(74, 222, 128, .3);
}
.final-cta h2 { margin: 0; font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.final-cta p { margin: 12px auto 0; max-width: 520px; color: var(--soft); font-weight: 300; }
.cta-btn {
  display: inline-block; margin-top: 26px; padding: 14px 30px; border-radius: 999px; font-weight: 600;
  background: #FFFFFF; color: #1E1340; box-shadow: 0 12px 30px rgba(255, 255, 255, .15); transition: transform .2s, box-shadow .2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(255, 255, 255, .22); }

/* ===== подвал ===== */
.site-footer { position: relative; background: #08061A; border-top: 1px solid var(--line); padding: 56px 20px 28px; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; gap: 36px; }
.footer-brand p { margin: 12px 0 0; max-width: 260px; font-size: 14px; color: var(--soft); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col h4 { margin: 0 0 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .45); }
.footer-col a { color: var(--soft); transition: color .2s; }
.footer-col a:hover { color: #FFFFFF; }
.legal-name { margin: 0; font-weight: 600; font-size: 15px; }
.company-facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; }
.company-facts dt { color: rgba(255, 255, 255, .45); }
.company-facts dd { margin: 0; color: var(--soft); }
.company-facts a { color: var(--soft); }
.footer-bottom {
  max-width: 1160px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .42);
}

/* ===== планшет и компьютер ===== */
@media (min-width: 640px) {
  .sec { padding: 110px 32px; }
  .sec-title { font-size: 42px; }
  .sec-lead { font-size: 17px; }
  .ai-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .final-cta h2 { font-size: 40px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1.4fr; }
  .site-footer { padding: 64px 32px 28px; }
}
@media (min-width: 960px) {
  .sec { padding: 112px 48px; }
  .sec-title { font-size: 52px; }
  .how-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; }
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feat.big { grid-column: span 2; grid-row: span 2; }
  .feat.wide { grid-column: span 2; }
  .teaser-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .big-stat b { font-size: 56px; }
  .final-cta .sec-inner { padding: 72px 40px; }
  .final-cta h2 { font-size: 48px; }
}

/* ================= Страница тарифов (/pricing) ================= */
.hero.hero-compact { min-height: auto; }
.hero-compact .hero-main { justify-content: flex-start; gap: 0; padding-bottom: 72px; }
.pricing-head { margin-top: 56px; text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.pricing-head h1 { font-size: 40px; }
.pricing-head .hero-sub { margin-left: auto; margin-right: auto; max-width: 560px; }
.period-toggle {
  display: inline-flex; gap: 2px; margin-top: 30px; padding: 4px; border-radius: 999px;
  animation: button-in .7s var(--ease) .9s backwards;
}
.period-toggle button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 0; border-radius: 999px;
  background: transparent; color: rgba(255, 255, 255, .65); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .2s, color .2s;
}
.period-toggle button.active { background: rgba(255, 255, 255, .14); color: #FFFFFF; }
.period-toggle em { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(74, 222, 128, .18); color: #86EFAC; }

.pricing-page .sec:first-child { padding-top: 24px; }
.price-cards { display: grid; gap: 16px; }
.p-card {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 28px 26px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02)); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.p-card.featured {
  background: linear-gradient(#17103A, #120C2E) padding-box, linear-gradient(140deg, #4ADE80, #15803D 55%, #4ADE80) border-box;
  border: 1.5px solid transparent; box-shadow: 0 30px 80px rgba(22, 163, 74, .3);
}
.p-card.max { border-color: rgba(242, 183, 5, .32); }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-name { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.p-name small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--soft); }
.p-badge { flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: rgba(74, 222, 128, .18); color: #BBF7D0; }
.p-price { display: flex; flex-direction: column; gap: 4px; min-height: 76px; }
.p-price .amount { display: flex; align-items: baseline; gap: 6px; }
.p-price b { font-size: 44px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.p-price .per { color: var(--soft); }
.p-price .note { font-size: 13px; color: rgba(255, 255, 255, .5); }
.p-btn {
  display: block; padding: 13px 18px; border-radius: 999px; text-align: center; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .24); transition: background .2s, transform .2s;
}
.p-btn:hover { background: rgba(255, 255, 255, .08); }
.p-card.featured .p-btn { border: 0; background: linear-gradient(135deg, #16A34A, #22C55E); box-shadow: 0 10px 30px rgba(22, 163, 74, .45); }
.p-card.featured .p-btn:hover { transform: translateY(-1px); }
.p-card.max .p-btn { border-color: rgba(242, 183, 5, .5); }
.p-group { display: flex; flex-direction: column; gap: 10px; }
.p-group h4 { margin: 0; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.p-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.p-feats li { display: flex; gap: 10px; line-height: 1.4; }
.p-feats li::before { content: "✓"; flex-shrink: 0; color: var(--green); font-weight: 700; }
.p-feats.no li { color: rgba(255, 255, 255, .45); }
.p-feats.no li::before { content: "✕"; color: rgba(255, 255, 255, .35); font-weight: 600; }
.price-note { margin: 22px 0 0; text-align: center; font-size: 13.5px; color: rgba(255, 255, 255, .5); }

/* сравнение тарифов: на телефоне — прокрутка вбок, первая колонка закреплена */
.compare-wrap { margin-top: 36px; overflow-x: auto; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; position: sticky; left: 0; background: #110C2A; }
.compare thead th { position: sticky; top: 0; z-index: 1; background: #150F33; font-size: 15px; }
.compare thead th:first-child { z-index: 2; }
.compare thead th small { display: block; font-weight: 400; color: var(--soft); font-size: 13px; margin-top: 2px; }
.compare .grp td { padding-top: 24px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--violet); background: transparent; }
.compare td.yes { color: var(--green); font-weight: 700; }
.compare td.no { color: rgba(255, 255, 255, .3); }
.compare td.val { color: #FFFFFF; font-weight: 500; }
.compare tbody tr:not(.grp):hover td { background: rgba(255, 255, 255, .03); }
.compare tbody tr:not(.grp):hover td:first-child { background: #16103A; }
.compare col.featured { background: rgba(22, 163, 74, .07); }

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; max-width: 860px; }
.site .faq { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, .025); transition: border-color .2s, background .2s; }
.site .faq[open] { border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .05); }
.site .faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px;
  cursor: pointer; list-style: none; font-weight: 600; font-size: 16px;
}
.site .faq summary::-webkit-details-marker { display: none; }
.site .faq summary::after { content: "+"; flex-shrink: 0; font-size: 22px; font-weight: 300; color: var(--violet); transition: transform .3s var(--ease); }
.site .faq[open] summary::after { transform: rotate(45deg); }
.site .faq p { margin: 0; padding: 0 20px 18px; color: var(--soft); font-weight: 300; line-height: 1.6; }

@media (min-width: 640px) {
  .pricing-head h1 { font-size: 56px; }
}
@media (min-width: 960px) {
  .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .pricing-head h1 { font-size: 64px; }
}

/* ================= Окно входа (главная и тарифы): «жидкое стекло» по центру, вокруг — размытие ================= */
.login-dialog {
  width: min(400px, calc(100vw - 32px)); padding: 34px 30px 26px; border: 0; border-radius: 26px; overflow: visible;
  color: #FFFFFF; text-align: center;
  background: linear-gradient(180deg, rgba(35, 26, 78, .92), rgba(18, 13, 44, .94));
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(74, 222, 128, .28);
}
.login-dialog[open] { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: login-in .35s var(--ease); }
.login-dialog::backdrop { background: rgba(6, 4, 18, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in .3s ease; }
@keyframes login-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.ld-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .75); cursor: pointer;
  transition: background .2s, color .2s;
}
.ld-close:hover { background: rgba(255, 255, 255, .12); color: #FFFFFF; }
.ld-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.ld-logo { width: 52px; height: 52px; border-radius: 16px; }
.ld-logo img { width: 38px; height: 38px; display: block; }
.login-dialog h2 { margin: 4px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.ld-text { margin: 0; font-size: 15px; color: var(--soft); }
.ld-note { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .5); }
/* согласие с правилами и политикой — мелким шрифтом под чертой, во всю ширину окна */
.ld-consent { align-self: stretch; margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .45); }
.ld-consent a { color: rgba(255, 255, 255, .75); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 2px; }
.ld-consent a:hover { color: #FFFFFF; }
/* кнопка по правилам оформления Google: тёмная, с цветной «G» */
.login-dialog .google-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 46px; margin-top: 8px; padding: 0 16px; border-radius: 23px;
  background: #131314; border: 1px solid #8E918F; color: #E3E3E3;
  font: 500 15px/1 var(--font-text); transition: background .15s, box-shadow .15s;
}
.login-dialog .google-btn:hover { background: linear-gradient(rgba(227, 227, 227, .08), rgba(227, 227, 227, .08)), #131314; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.login-dialog .google-btn:focus-visible { outline: 2px solid #4ADE80; outline-offset: 2px; }
.login-dialog .google-btn svg { width: 20px; height: 20px; }

/* вход выполнен: справа вверху вместо значка человека — фото или первая буква имени */
.account-btn.has-avatar { overflow: hidden; padding: 0; }
.account-btn.has-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.account-initial { font-size: 16px; font-weight: 600; color: #FFFFFF; }

/* пришёл по ссылке-приглашению: та же плашка, подарок золотым */
.invite-badge { gap: 10px; }
.invite-badge svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #F2B705; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge[hidden] { display: none; }  /* у .badge свой display — без этого hidden не прятал бы плашку */

/* вход из встроенного браузера приложения: Google его не пускает — подсказка открыть сайт в Safari или Chrome */
.in-app {
  display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 14px; text-align: left;
  background: rgba(242, 183, 5, .12); border: 1px solid rgba(242, 183, 5, .35); color: #FDE68A; font-size: 13.5px; line-height: 1.45;
}
.in-app p { margin: 0; }
.in-app-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.in-app-btn {
  padding: 8px 14px; border: 1px solid rgba(242, 183, 5, .5); border-radius: 999px; background: transparent;
  color: #FDE68A; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none;
}

/* полосы прокрутки везде — как в Gemini: тонкие и прозрачные, проявляются, когда курсор над областью прокрутки.
   :where — без веса: скрытые полосы (вкладки, меню) и свои правила (список чатов) остаются как были */
:where(*) { scrollbar-width: thin; scrollbar-color: transparent transparent; }
:where(*):hover { scrollbar-color: rgba(255, 255, 255, .22) transparent; }
:where(*)::-webkit-scrollbar { width: 8px; height: 8px; }
:where(*)::-webkit-scrollbar-track, :where(*)::-webkit-scrollbar-corner { background: transparent; }
:where(*)::-webkit-scrollbar-thumb { background: transparent; border-radius: 4px; }
:where(*):hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); }
:where(*)::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .34); }

/* ================= Один фон на всю страницу: блоки не отделяются друг от друга =================
   Первый экран, блоки и подвал — на одном цвете (--ink); сияние первого экрана плавно в нём растворяется,
   у подвала нет своей заливки и черты сверху */
body { background: var(--ink); }
.hero { background: var(--ink); }
.hero::after { height: min(360px, 55%); background: linear-gradient(rgba(14, 10, 36, 0), var(--ink) 90%); }
.site-footer { background: transparent; border-top: 0; }
/* свечение в начале блоков — проявляется постепенно, без яркой полосы на стыке с первым экраном */
.site::before { -webkit-mask-image: linear-gradient(transparent, #000 220px); mask-image: linear-gradient(transparent, #000 220px); }

/* ================= Тарифы на сайте — как в приложении (окно «Тариф»): фиолетовый градиент,
   PRO — бегущая радужная рамка, MAX — огненная (оранжевый → жёлтый → красный) ================= */
@property --rainbow-turn { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes rainbow-turn { to { --rainbow-turn: 360deg; } }
@keyframes badge-flow { to { background-position: 300% 0; } }
.p-card, .p-card.featured, .p-card.max {
  background: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(34, 197, 94, .2), transparent 70%), linear-gradient(180deg, #1D1536, #120D24);
  border: 1px solid rgba(74, 222, 128, .22); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.p-card.max { background: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 138, 0, .2), transparent 70%), linear-gradient(180deg, #24152A, #140C1C); }
.p-card.featured, .p-card.max { border-color: transparent; }
.p-card.featured { --ring: conic-gradient(from var(--rainbow-turn), #22C55E, #15803D, #14A874, #FCC63A, #4ADE80, #22C55E); box-shadow: 0 24px 70px rgba(22, 163, 74, .32); }
.p-card.max { --ring: conic-gradient(from var(--rainbow-turn), #FF3D00, #FF8A00, #FFD000, #FF5A36, #E11D48, #FF3D00); box-shadow: 0 24px 70px rgba(255, 106, 0, .22); }
.p-card:is(.featured, .max)::before {  /* бегущая рамка: градиент виден только в кольце толщиной 1.5px */
  content: ""; position: absolute; inset: -1px; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: var(--ring); animation: rainbow-turn 4s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
/* названия PRO и MAX переливаются теми же цветами; подпись под названием — обычная */
.p-card:is(.featured, .max) .p-name {
  color: transparent; -webkit-background-clip: text; background-clip: text; background-size: 300% 100%;
  animation: badge-flow 4s linear infinite;
}
.p-card.featured .p-name { background-image: linear-gradient(90deg, #4ADE80, #4ADE80, #34D399, #FCD34D, #4ADE80, #4ADE80); }
.p-card.max .p-name { background-image: linear-gradient(90deg, #FF6A3D, #FFB020, #FFE15A, #FF5A36, #FF6A3D); }
.p-card:is(.featured, .max) .p-name small { color: #A9A3BF; -webkit-text-fill-color: #A9A3BF; }  /* непрозрачный: сквозь полупрозрачный просвечивал бы градиент названия */
.p-card.max .p-btn { border: 0; background: linear-gradient(135deg, #FF5A1F, #FF9F0A); color: #FFFFFF; box-shadow: 0 10px 30px rgba(255, 106, 0, .35); }
@media (prefers-reduced-motion: reduce) { .p-card::before, .p-card .p-name { animation: none !important; } }

/* ================= Телефон и планшет: превью викторины не наезжает на цифры, цифры — рядом ================= */
@media (max-width: 1199px) {
  /* превью стоит в потоке между кнопкой и цифрами — сдвиг при прокрутке (параллакс) клал его на «6 инструментов» */
  .hero-preview { translate: none; }
}
@media (max-width: 639px) {
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
  .stat b { font-size: 18px; }
}

/* ================= Быстрее: первый экран собирается за ~1 с, блоки при прокрутке проявляются за .45 с ================= */
.hero-logo { animation-duration: .45s; animation-delay: .05s; }
.nav-pill { animation-duration: .45s; animation-delay: .1s; }
.nav-right > * { animation-duration: .45s; animation-delay: .14s; }
.nav-right > :nth-child(2) { animation-delay: .17s; }
.nav-right > :nth-child(3) { animation-delay: .2s; }
.badge { animation-duration: .5s; animation-delay: .12s; }
.badge-icons span { animation-duration: .35s; animation-delay: .22s; }
.badge-icons span:nth-child(2) { animation-delay: .26s; }
.badge-icons span:nth-child(3) { animation-delay: .3s; }
.badge-icons span:nth-child(4) { animation-delay: .34s; }
h1 .word > span { animation-duration: .55s; }
.hero-sub { animation-duration: .5s; animation-delay: .4s; }
.pv-slide { animation-duration: .6s, 7s; animation-delay: .25s, 0s; }
.pv-quiz { animation-duration: .6s, 7s; animation-delay: .35s, -2.5s; }
.pv-chip { animation-duration: .6s, 7s; animation-delay: .45s, -5s; }
@media (max-width: 1199px) { .pv-quiz { animation-delay: .5s, -2.5s; } }
.stat { animation-duration: .5s; animation-delay: .5s; }
.stat + .stat { animation-delay: .56s; }
.reveal { transition-duration: .45s; transform: translateY(24px); }
.reveal.from-top { transform: translateY(-24px); }
.reveal.zoom { transform: scale(.95); filter: blur(4px); }
.reveal.in { transform: none; filter: none; }

/* шапка страниц «Как работает», «Возможности», «В цифрах», «Тарифы»: заголовок — чуть ниже плашки с названием */
.pricing-head h1 { margin-top: 14px; }
@media (min-width: 640px) { .pricing-head h1 { margin-top: 20px; } }

/* страницы с шапкой («Как работает», «Возможности», «В цифрах», «Тарифы»): содержимое — сразу под описанием.
   Заголовок блока теперь в шапке страницы, поэтому отступ «под заголовок» у первого содержимого не нужен */
.hero-compact ~ main.site > .sec:first-child .sec-inner > :first-child { margin-top: 0; }
@media (max-width: 639px) {
  .hero-compact .hero-main { padding-bottom: 20px; }
  .hero-compact ~ main.site > .sec:first-child { padding-top: 16px; }
}

/* «Готовы к следующему уроку?» — ближе к содержимому страницы: без своего отступа сверху,
   у блока перед ним отступ снизу меньше */
.sec + .final-cta { padding-top: 0; }
.sec:has(+ .final-cta) { padding-bottom: 40px; }
@media (min-width: 640px) { .sec:has(+ .final-cta) { padding-bottom: 64px; } }

/* ================= Плавнее и легче: анимации только сдвигом и прозрачностью =================
   Размытие (blur) в анимациях и «зерно» в режиме наложения заставляли браузер перерисовывать весь первый экран
   каждый кадр — отсюда рывки, особенно на телефоне и Mac */
.reveal {
  transform: translateY(14px);
  transition: opacity .4s cubic-bezier(.22, .61, .36, 1), transform .4s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--d, 0s) * .6);
}
.reveal:not(.in) { will-change: opacity, transform; }
.reveal.zoom { transform: scale(.97); filter: none; }
.reveal.in { opacity: 1; transform: none; filter: none; }
.how-step.reveal { transform: translateY(10px); }
.how-step.reveal.in { transform: none; }
/* появление первого экрана — тоже без размытия (то же имя: последнее описание анимации главнее) */
@keyframes blur-in { from { opacity: 0; translate: 0 10px; } }
@keyframes card-in { from { opacity: 0; translate: 24px 12px; scale: .97; } }
/* «зерно» поверх фона — обычной прозрачностью, без режима наложения */
.hero::before { mix-blend-mode: normal; opacity: .05; }
/* на телефоне и планшете цветные пятна фона не плывут — меньше работы при прокрутке */
@media (max-width: 899px) { .aurora span { animation: none; } }

/* телефон: карточка викторины на главной стоит неподвижно — без выезда при загрузке и покачивания */
@media (max-width: 767px) {
  .hero-preview .pv-quiz { animation: none !important; translate: none; transform: none; }
}
/* телефон: первый экран — по высоте содержимого, а не экрана. При прокрутке браузер прячет адресную строку,
   высота экрана (100dvh) меняется — и карточка викторины, прижатая к низу (space-between), ехала вместе с ней.
   Теперь она стоит сразу под «Начать работу» */
@media (max-width: 767px) {
  .hero { min-height: auto; }
  .hero-main { flex: none; justify-content: flex-start; gap: 48px; }
}

/* ================= Буквы не обрезаются (y, p, g, q, Қ, у…) =================
   У градиентного текста краска кончается на границе строки — хвосты букв, выходящие за неё, пропадали.
   Запас места вокруг букв с обратными полями: видно всё, а строки и переносы стоят там же */
.sec-title span, .final-cta h2 span, .big-stat b, .p-card:is(.featured, .max) .p-name {
  padding: 0 .12em .16em .02em; margin: 0 -.12em -.16em -.02em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;  /* запас — у каждой строки переноса */
}

/* телефон: «Начать работу» — во всю ширину, удобно нажать большим пальцем */
@media (max-width: 639px) { .cta { display: flex; width: 100%; } }

/* ================= Подвал: четыре колонки — бренд, продукт, документы, компания ================= */
@media (min-width: 640px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
}
@media (min-width: 960px) {
  .footer-inner { grid-template-columns: 1.3fr 1fr 1.1fr 1.4fr; }
}
.footer-col a[aria-current="page"] { color: #FFFFFF; }

/* ================= Документы: политика конфиденциальности и правила использования (/privacy, /terms) =================
   В разметке три редакции (ru, kk, en) — видна та, что совпадает с языком страницы (<html lang> ставит i18n.js).
   Слева — оглавление: на компьютере стоит на месте и подсвечивает раздел, который сейчас читают; на телефоне —
   раскрывающийся список над текстом. Номера разделов — счётчиком CSS, оглавление собирает site.js */
/* на телефоне заголовок уменьшается вместе с экраном: длинное «конфиденциальности» не переносится и без этого
   раздвигало шапку шире экрана — обрезались описание и переключатель документов */
.legal-head h1 { font-size: min(34px, 7.4vw); }
.doc-switch {
  display: inline-flex; gap: 2px; margin-top: 26px; padding: 4px; border-radius: 999px;
  animation: button-in .5s var(--ease) .45s backwards;
}
.doc-switch a {
  padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .65);
  white-space: nowrap; transition: background .2s, color .2s;
}
.doc-switch a:hover { color: #FFFFFF; }
.doc-switch a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #FFFFFF; }

.legal-doc { display: none; max-width: 780px; counter-reset: legal-sec; }
html[lang="ru"] .legal-doc[lang="ru"], html[lang="kk"] .legal-doc[lang="kk"], html[lang="en"] .legal-doc[lang="en"] { display: block; }

/* у блоков .site прокрутка обрезана (overflow: hidden) — с ним оглавление не могло бы «прилипнуть» к экрану */
.site.legal-page { overflow: visible; overflow-x: clip; }
.legal-layout { display: grid; gap: 24px; }
.legal-main { min-width: 0; }

.legal-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin-bottom: 26px; font-size: 13.5px; color: var(--soft);
}
.legal-meta > span { display: inline-flex; align-items: center; gap: 8px; }
.legal-meta svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lm-print {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, .04); color: var(--soft); font: inherit; font-size: 13px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.lm-print:hover { color: #FFFFFF; border-color: rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .08); }

/* «Коротко о главном» — четыре карточки со значками */
.legal-label { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.legal-points { display: grid; gap: 12px; margin-bottom: 30px; }
.legal-point {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); border: 1px solid var(--line);
}
.legal-point .ai-icon { flex-shrink: 0; margin: 0; }
.legal-point h3 { margin: 1px 0 4px; font-size: 16px; font-weight: 600; line-height: 1.3; }
.legal-point p { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 300; color: var(--soft); }

/* разделы: номер — в цветном квадрате, текст — спокойный и крупный, удобный для чтения */
.legal-sec { padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.legal-sec h2 { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 16px; font-size: 21px; font-weight: 500; line-height: 1.3; letter-spacing: -.015em; }
.legal-sec h2::before {
  counter-increment: legal-sec; content: counter(legal-sec);
  flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -2px; border-radius: 10px;
  font: 600 14px/1 var(--font-text); letter-spacing: 0; color: #FFFFFF;
  background: linear-gradient(135deg, rgba(22, 163, 74, .65), rgba(219, 39, 119, .5)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.legal-sec p, .legal-sec li, .legal-data dd { font-size: 15.5px; line-height: 1.7; color: rgba(255, 255, 255, .76); }
.legal-sec p { margin: 0 0 12px; }
.legal-sec > :last-child { margin-bottom: 0; }
.legal-sec ul { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.legal-sec li { position: relative; padding-left: 22px; }
.legal-sec li::before {
  content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, #4ADE80, #4ADE80);
}
.legal-sec b { color: #FFFFFF; font-weight: 600; }
.legal-sec a { color: #86EFAC; text-decoration: underline; text-decoration-color: rgba(134, 239, 172, .4); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.legal-sec a:hover { color: #FFFFFF; text-decoration-color: currentColor; }

/* какие данные — строками: название и что в него входит */
.legal-data { display: grid; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .02); }
.legal-data > div { display: grid; gap: 4px; padding: 14px 18px; }
.legal-data > div + div { border-top: 1px solid var(--line); }
.legal-data dt { font-size: 15px; font-weight: 600; color: #FFFFFF; }
.legal-data dd { margin: 0; }

/* кому передаём — карточки поставщиков со страной */
.legal-sec .legal-partners { gap: 10px; }
.legal-partners li { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.legal-partners li::before { display: none; }
.legal-partners em {
  display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; vertical-align: 1px;
  font-size: 12px; font-style: normal; font-weight: 500; color: #86EFAC; background: rgba(74, 222, 128, .12);
}
.legal-sec .legal-partners p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.6; }

/* важное — на светлой плашке с цветной чертой слева */
.legal-sec .legal-note {
  margin: 16px 0 0; padding: 14px 16px 14px 20px; border-radius: 14px; font-size: 14.5px; line-height: 1.6; color: #ECE7FF;
  background: linear-gradient(90deg, rgba(74, 222, 128, .16), rgba(74, 222, 128, .04));
  box-shadow: inset 3px 0 0 #4ADE80, inset 0 0 0 1px rgba(74, 222, 128, .22);
}
.legal-sec .legal-note + p { margin-top: 14px; }

/* реквизиты компании: пустые строки (БИН, адрес) не показываются */
.legal-sec .legal-facts { gap: 0; margin: 16px 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.legal-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 14.5px; line-height: 1.5; }
.legal-facts li[hidden] { display: none; }
.legal-facts li::before { display: none; }
.legal-facts li + li { border-top: 1px solid var(--line); }
.legal-facts span { color: rgba(255, 255, 255, .5); }
.legal-facts b { font-weight: 500; text-align: right; }

/* оглавление: на телефоне — раскрывающийся список */
.legal-toc { border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .03); }
.toc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 18px;
  border: 0; background: none; color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 600; text-align: left; cursor: pointer;
}
.toc-head svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.legal-toc.open .toc-head svg { transform: rotate(180deg); }
.legal-toc ol { display: none; margin: 0; padding: 0 8px 10px; list-style: none; }
.legal-toc.open ol { display: grid; gap: 2px; }
.legal-toc a {
  display: flex; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--soft);
  transition: color .2s, background .2s;
}
.legal-toc a span { flex-shrink: 0; min-width: 1.4em; color: rgba(255, 255, 255, .35); font-variant-numeric: tabular-nums; transition: color .2s; }
.legal-toc a:hover { color: #FFFFFF; background: rgba(255, 255, 255, .05); }
.legal-toc a.active { color: #FFFFFF; background: rgba(74, 222, 128, .14); }
.legal-toc a.active span { color: #86EFAC; }

@media (max-width: 639px) {
  .doc-switch { max-width: 100%; }
  .doc-switch a { padding: 8px 12px; font-size: 13px; }
  .lm-print { display: none; }  /* печатают с компьютера */
}
@media (min-width: 640px) {
  .legal-page > .sec:first-child { padding-top: 16px; }  /* текст — сразу под шапкой, без пустого экрана */
  .legal-head h1 { font-size: 48px; }
  .legal-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-sec h2 { font-size: 23px; }
  .legal-data > div { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
  .legal-sec .legal-partners { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) { .legal-head h1 { font-size: 56px; } }
/* компьютер: оглавление — колонкой слева, стоит на месте при прокрутке */
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
  .legal-toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; border: 0; border-radius: 0; background: none; }
  .toc-head {
    padding: 0 10px 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45);
    cursor: default; pointer-events: none;
  }
  .toc-head svg { display: none; }
  .legal-toc ol { display: grid; gap: 2px; padding: 0; }
}

/* печать документа: только текст — чёрным по белому, без фона, меню и оглавления */
@media print {
  body, .hero, .site { background: #FFFFFF !important; color: #000000; }
  .hero { min-height: 0; }
  .aurora, .hero-lines, .hero::before, .hero::after, .site::before, .hero-nav, .mobile-menu, .badge, .doc-switch,
  .legal-toc, .lm-print, .legal-points, .legal-label, .site-footer, .page-veil { display: none !important; }
  * { animation: none !important; transition: none !important; box-shadow: none !important; text-shadow: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-main, .sec { padding: 0 !important; }
  .pricing-head { margin: 0 0 12px; text-align: left; max-width: none; }
  h1, .hero-sub, .legal-meta, .legal-sec h2, .legal-sec p, .legal-sec li, .legal-sec b, .legal-data dt, .legal-data dd,
  .legal-facts span, .legal-sec .legal-note { color: #000000 !important; }
  .legal-head h1 { font-size: 26pt; }
  .legal-layout { display: block; }
  .legal-sec { padding: 14pt 0; border-color: #CCCCCC; break-inside: avoid-page; }
  .legal-sec h2::before { color: #000000; background: none; border: 1px solid #000000; }
  .legal-sec a { color: #000000; }
  .legal-data, .legal-facts, .legal-partners li, .legal-sec .legal-note { background: none !important; border: 1px solid #CCCCCC; }
  .legal-sec li::before { background: #000000; }
}

/* условия оплаты картой: видны, только когда она подключена (site.js, applyBilling) */
[data-billing][hidden] { display: none !important; }

/* ================= Светлая яркая тема (31.10.2026, по просьбе учителей) =================
   data-theme="light" стоит в <html> страниц сайта. Выше всё задано под тёмную тему, здесь — светлые цвета поверх */
html[data-theme="light"] { --ink: #F5FBF6; --ink-2: #FFFFFF; --line: rgba(17, 24, 39, .1); --soft: #4B5563; }
html[data-theme="light"] body { color: #111827; background: #F5FBF6; }
html[data-theme="light"] .hero { background: #EFF9F1; }
html[data-theme="light"] .hero-lines { --line: rgba(17, 24, 39, .08); }
html[data-theme="light"] .aurora span { opacity: .45; }
html[data-theme="light"] .hero::after { background: linear-gradient(rgba(246, 247, 255, 0), var(--ink) 90%); }
html[data-theme="light"] .site::before { background: radial-gradient(60% 100% at 70% 0%, rgba(34, 197, 94, .12), transparent 70%); }
/* стекло и шапка */
html[data-theme="light"] .liquid-glass { background: rgba(255, 255, 255, .55); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), 0 6px 24px rgba(22, 163, 74, .1); }
html[data-theme="light"] .site-header { background: rgba(255, 255, 255, .82); box-shadow: 0 10px 30px rgba(22, 163, 74, .1); }
html[data-theme="light"] :is(.nav-pill a, .round-btn, .lang-pill button, .badge, .hero-sub, .stat small, .pv-label, .mobile-account,
  .stats-note, .footer-col h4, .company-facts dt, .footer-bottom, .period-toggle button, .p-price .note, .p-group h4, .price-note,
  .ld-note, .ld-consent, .legal-label, .legal-facts span, .toc-head, .doc-switch a, .legal-sec p, .legal-sec li, .legal-data dd) { color: #4B5563; }
html[data-theme="light"] :is(.nav-pill a:hover, .nav-pill a.current, .lang-pill button:hover, .lang-pill button.active, .site-links a:hover,
  .site-links a.current, .feat p b, .footer-col a:hover, .footer-col a[aria-current="page"], .how-num, .compare td.val, .legal-sec b,
  .legal-data dt, .legal-toc a:hover, .legal-toc a.active, .doc-switch a:hover, .doc-switch a[aria-current="page"], .lm-print:hover,
  .account-initial, .ld-consent a:hover, .legal-sec a:hover, .period-toggle button.active) { color: #111827; }
html[data-theme="light"] :is(.lang-pill button.active, .period-toggle button.active, .doc-switch a[aria-current="page"]) { background: rgba(22, 163, 74, .14); }
html[data-theme="light"] :is(.site-links a:hover, .site-links a.current) { background: rgba(22, 163, 74, .1); }
html[data-theme="light"] .mobile-menu { background: rgba(255, 255, 255, .92); }
html[data-theme="light"] .badge-icons span { background: #DCFCE7; border-color: #FFFFFF; }
html[data-theme="light"] .badge-icons svg { stroke: #15803D; }
/* превью урока и викторины на первом экране */
html[data-theme="light"] :is(.pv-quiz, .pv-chip) { background: rgba(255, 255, 255, .85); box-shadow: 0 10px 30px rgba(22, 163, 74, .15); }
html[data-theme="light"] .pv-chip small { color: #4B5563; }
html[data-theme="light"] .pv-options span { background: #F0FDF4; border-color: #D3EDDA; }
html[data-theme="light"] .pv-options .ok { background: #DCFCE7; border-color: #22C55E; }
/* разделы */
html[data-theme="light"] .eyebrow { background: #DCFCE7; border-color: #BBF7D0; color: #15803D; }
html[data-theme="light"] :is(.sec-title span, .final-cta h2 span) { background: linear-gradient(100deg, #15803D 10%, #15803D 55%, #059669 100%); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] :is(.glass, .ai-card, .feat, .big-stat, .t-card, .legal-point, .compare-wrap, .site .faq, .legal-data,
  .legal-partners li, .legal-toc, .lm-print) { background: #FFFFFF; border-color: #E1EFE5; box-shadow: 0 6px 24px rgba(22, 163, 74, .07); }
html[data-theme="light"] .site .faq[open] { background: #F4FBF6; border-color: #86EFAC; }
html[data-theme="light"] .feat::before { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(74, 222, 128, .14), transparent 60%); }
html[data-theme="light"] :is(.feat-icon, .ai-icon) { background: linear-gradient(135deg, #22C55E, #15803D); border-color: transparent; }
html[data-theme="light"] .ai-icon svg { stroke: #FFFFFF; color: #FFFFFF; }
html[data-theme="light"] .how-num { background: #FFFFFF; }
html[data-theme="light"] .how-step.in .how-num { color: #FFFFFF; }
html[data-theme="light"] .how-demo { background: linear-gradient(180deg, #FFFFFF, #F0FDF4); border-color: #D3EDDA; box-shadow: 0 30px 70px rgba(22, 163, 74, .15); }
html[data-theme="light"] .how-demo::before { background: radial-gradient(50% 60% at 50% 100%, rgba(34, 197, 94, .14), transparent 70%); }
html[data-theme="light"] .demo-bar i { background: rgba(17, 24, 39, .14); }
html[data-theme="light"] .demo-lines p { background: #EAF5ED; }
html[data-theme="light"] .doc-art { box-shadow: 0 20px 40px rgba(22, 163, 74, .15); }
html[data-theme="light"] .chat-art .ai { background: #EAF5ED; color: #111827; }
html[data-theme="light"] .big-stat b { background: linear-gradient(120deg, #15803D 20%, #166534); -webkit-background-clip: text; background-clip: text; }
/* тарифы */
html[data-theme="light"] .t-card.featured { background: linear-gradient(#FFFFFF, #FFFFFF) padding-box, linear-gradient(135deg, #22C55E, #15803D, #22C55E) border-box; }
html[data-theme="light"] :is(.t-name em, .p-badge) { background: #DCFCE7; color: #15803D; }
html[data-theme="light"] :is(.t-list li.no, .t-list li.no::before, .p-feats.no li, .p-feats.no li::before, .compare td.no, .legal-toc a span) { color: #9CA3AF; }
html[data-theme="light"] :is(.t-btn, .p-btn) { border-color: #CFE6D6; }
html[data-theme="light"] :is(.t-btn:hover, .p-btn:hover) { background: #ECFDF3; }
html[data-theme="light"] .text-cta:hover { color: #15803D; }
html[data-theme="light"] .period-toggle em { background: #DCFCE7; color: #15803D; }
html[data-theme="light"] :is(.p-card, .p-card.featured) { background: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(34, 197, 94, .1), transparent 70%), #FFFFFF; border-color: #E1EFE5; }
html[data-theme="light"] .p-card.max { background: radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 138, 0, .12), transparent 70%), linear-gradient(180deg, #FFFFFF, #FFF7ED); }
html[data-theme="light"] .p-card.featured .p-name { background-image: linear-gradient(90deg, #16A34A, #15803D, #059669, #D97706, #166534, #16A34A); }
html[data-theme="light"] .p-card.max .p-name { background-image: linear-gradient(90deg, #EA580C, #D97706, #DC2626, #EA580C); }
html[data-theme="light"] .p-card:is(.featured, .max) .p-name small { color: #6B7280; -webkit-text-fill-color: #6B7280; }
html[data-theme="light"] :is(.compare th:first-child, .compare td:first-child) { background: #FFFFFF; }
html[data-theme="light"] .compare thead th { background: #F0FDF4; }
html[data-theme="light"] .compare tbody tr:not(.grp):hover td { background: #F4FBF6; }
html[data-theme="light"] .compare tbody tr:not(.grp):hover td:first-child { background: #F0FDF4; }
/* финальный призыв, подвал */
html[data-theme="light"] .final-cta .sec-inner { background: radial-gradient(80% 120% at 50% 0%, rgba(34, 197, 94, .22), transparent 70%), radial-gradient(60% 80% at 100% 100%, rgba(21, 128, 61, .16), transparent 70%), #FFFFFF; border-color: #BBF7D0; }
html[data-theme="light"] .cta-btn { background: linear-gradient(135deg, #22C55E, #22C55E 55%, #15803D); color: #FFFFFF; box-shadow: 0 12px 30px rgba(34, 197, 94, .35); }
html[data-theme="light"] .site-footer { background: #EAF6EE; }
/* окно входа */
html[data-theme="light"] .login-dialog { color: #111827; background: #FFFFFF; box-shadow: 0 40px 100px rgba(17, 24, 39, .2), 0 0 0 1px #E1EFE5; }
html[data-theme="light"] .login-dialog::backdrop { background: rgba(17, 24, 39, .35); }
html[data-theme="light"] .ld-close { background: #F3F4F6; color: #4B5563; }
html[data-theme="light"] .ld-close:hover { background: #E5E7EB; color: #111827; }
html[data-theme="light"] .ld-consent { border-top-color: #E5E7EB; }
html[data-theme="light"] .ld-consent a { color: #4B5563; text-decoration-color: rgba(17, 24, 39, .3); }
html[data-theme="light"] .login-dialog .google-btn { background: #FFFFFF; border-color: #747775; color: #1F1F1F; }
html[data-theme="light"] .login-dialog .google-btn:hover { background: #F8F9FA; }
html[data-theme="light"] .in-app { background: #FEF3C7; border-color: #FCD34D; color: #92400E; }
html[data-theme="light"] .in-app-btn { border-color: #F59E0B; color: #92400E; }
/* правила и политика */
html[data-theme="light"] .legal-sec a { color: #15803D; text-decoration-color: rgba(21, 128, 61, .35); }
html[data-theme="light"] .legal-partners em { color: #15803D; background: #DCFCE7; }
html[data-theme="light"] .legal-sec .legal-note { color: #1F2937; background: linear-gradient(90deg, #DCFCE7, #F4FBF6); box-shadow: inset 3px 0 0 #22C55E, inset 0 0 0 1px #BBF7D0; }
html[data-theme="light"] .legal-toc a.active { background: #DCFCE7; }
html[data-theme="light"] .legal-toc a.active span { color: #15803D; }
html[data-theme="light"] :where(*):hover { scrollbar-color: rgba(17, 24, 39, .22) transparent; }
html[data-theme="light"] :where(*):hover::-webkit-scrollbar-thumb { background: rgba(17, 24, 39, .2); }

/* Тарифы на сайте (31.10.2026): бегущие рамки, бесплатный — белый, PRO и MAX — светлые оттенки своих рамок;
   названия PRO и MAX — движущийся градиент */
html[data-theme="light"] :is(.t-card, .p-card).reveal { background: #FFFFFF; border-color: #E1E5F5; }
html[data-theme="light"] :is(.t-card[data-plan="pro"], .p-card.pro).reveal { background: linear-gradient(180deg, #F0FDF4, #DCFCE7) padding-box, linear-gradient(135deg, #22C55E, #CA8A04, #15803D) border-box; border: 2px solid transparent; }
html[data-theme="light"] :is(.t-card[data-plan="max"], .p-card.max).reveal { background: linear-gradient(180deg, #FFF7ED, #FFEDD5) padding-box, linear-gradient(135deg, #FB923C, #E11D48, #F59E0B) border-box; border: 2px solid transparent; }
html[data-theme="light"] .p-card.reveal:is(.pro, .max) { background: linear-gradient(180deg, #F0FDF4, #DCFCE7); border: 1px solid transparent; }
html[data-theme="light"] .p-card.reveal.max { background: linear-gradient(180deg, #FFF7ED, #FFEDD5); }
html[data-theme="light"] .p-card.reveal:is(.featured, .max) .p-name { background: none; color: #111827; -webkit-text-fill-color: #111827; animation: none; }
html[data-theme="light"] .plan-word:is([data-plan="pro"], [data-plan="max"]) {
  color: transparent; -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text;
  background-size: 300% 100%; animation: plan-flow 4s linear infinite; font-weight: 800;
}
html[data-theme="light"] .plan-word[data-plan="pro"] { background-image: linear-gradient(90deg, #15803D, #16A34A, #0D9488, #CA8A04, #16A34A, #15803D); }
html[data-theme="light"] .plan-word[data-plan="max"] { background-image: linear-gradient(90deg, #EA580C, #DC2626, #D97706, #E11D48, #EA580C); }
@keyframes plan-flow { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .plan-word { animation: none !important; } }
/* переход на платформу: круг цвета светлого фона приложения, а не чёрный */
html[data-theme="light"] .page-veil { background: #FFFFFF; }
html[data-theme="light"] :is(.p-card.featured .p-btn, .p-card.max .p-btn, .t-card.featured .t-btn) { color: #FFFFFF; }
html[data-theme="light"] .p-feats.no li { color: #6B7280; }
html[data-theme="light"] .p-feats.no li::before { color: #9CA3AF; }

/* ================= Для кого: школа и колледж (31.10.2026) ================= */
.aud-pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 22px; }
.aud-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #111827; transition: transform .2s; }
.aud-pill:hover { transform: translateY(-1px); }
.aud-pill svg { width: 18px; height: 18px; fill: none; stroke: #15803D; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aud-pills small { flex-basis: 100%; font-size: 13px; color: #4B5563; }
.aud-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .aud-grid { grid-template-columns: 1fr 1fr; } }
.aud-card {
  display: flex; flex-direction: column; gap: 10px; padding: 30px 28px; border-radius: 26px; color: #111827;
  border: 1px solid #BBF7D0; background: linear-gradient(180deg, #F0FDF4, #FFFFFF); box-shadow: 0 12px 34px rgba(22, 163, 74, .1);
}
.aud-card.college { border-color: #99F6E4; background: linear-gradient(180deg, #F0FDFA, #FFFFFF); box-shadow: 0 12px 34px rgba(13, 148, 136, .12); }
.aud-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, #22C55E, #15803D); }
.aud-card.college .aud-icon { background: linear-gradient(135deg, #14B8A6, #0F766E); }
.aud-icon svg { width: 26px; height: 26px; fill: none; stroke: #FFFFFF; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.aud-card h2 { margin: 6px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.aud-sub { margin: 0; font-size: 15px; font-weight: 600; color: #15803D; }
.aud-card.college .aud-sub { color: #0F766E; }
.aud-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; flex: 1; }
.aud-list li { display: flex; gap: 10px; }
.aud-list li::before { content: "✓"; flex-shrink: 0; font-weight: 700; color: #16A34A; }
.aud-card.college .aud-list li::before { color: #0D9488; }
.aud-btn {
  align-self: flex-start; margin-top: 12px; padding: 12px 20px; border-radius: 999px; font-weight: 600; color: #FFFFFF;
  background: linear-gradient(135deg, #22A55B, #15803D); box-shadow: 0 8px 22px rgba(22, 163, 74, .3); transition: transform .2s;
}
.aud-card.college .aud-btn { background: linear-gradient(135deg, #14B8A6, #0F766E); box-shadow: 0 8px 22px rgba(13, 148, 136, .3); }
.aud-btn:hover { transform: translateY(-1px); }
.aud-switch { margin-top: 64px; }
.aud-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .aud-steps { grid-template-columns: repeat(3, 1fr); } }
.aud-steps li { display: flex; gap: 14px; padding: 20px; border-radius: 20px; background: #FFFFFF; border: 1px solid #E1E5F5; box-shadow: 0 6px 20px rgba(17, 24, 39, .05); }
.aud-steps b { flex-shrink: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #FFFFFF; font-size: 15px; background: linear-gradient(135deg, #22C55E, #15803D); }
.aud-steps h3 { margin: 4px 0 6px; font-size: 16px; font-weight: 600; color: #111827; }
.aud-steps p { margin: 0; font-size: 14.5px; color: #4B5563; }
.aud-note { margin: 18px 0 0; font-size: 14.5px; color: #4B5563; }
/* четыре тарифа (с Mini, 31.10.2026): на широком экране — в один ряд, на среднем — 2×2 */
@media (min-width: 1180px) {
  .teaser-cards, .price-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .price-cards .p-card { padding: 26px 20px; }
  .price-cards .p-price b { font-size: 38px; }
}
/* Mini — бирюзовый: светлый фон, бегущая рамка и движущийся градиент названия */
html[data-theme="light"] :is(.t-card[data-plan="mini"], .p-card.mini).reveal { background: linear-gradient(180deg, #F0FDFA, #CCFBF1) padding-box, linear-gradient(135deg, #2DD4BF, #0F766E, #5EEAD4) border-box; border: 2px solid transparent; }
html[data-theme="light"] .p-card.reveal.mini { background: linear-gradient(180deg, #F0FDFA, #CCFBF1); border: 1px solid transparent; --ring: conic-gradient(from var(--rainbow-turn), #2DD4BF, #0F766E, #14B8A6, #99F6E4, #0D9488, #2DD4BF); box-shadow: 0 20px 50px rgba(13, 148, 136, .2); }
.p-card.mini::before {
  content: ""; position: absolute; inset: -1px; padding: 1.5px; border-radius: inherit; pointer-events: none;
  background: var(--ring); animation: rainbow-turn 4s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
html[data-theme="light"] .plan-word[data-plan="mini"] {
  color: transparent; -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text;
  background-size: 300% 100%; animation: plan-flow 4s linear infinite; font-weight: 800;
  background-image: linear-gradient(90deg, #0F766E, #0D9488, #14B8A6, #0E7490, #0F766E);
}
html[data-theme="light"] .p-card.mini .p-btn, html[data-theme="light"] .t-card[data-plan="mini"] .t-btn { border: 0; color: #FFFFFF; background: linear-gradient(135deg, #14B8A6, #0F766E); box-shadow: 0 10px 26px rgba(13, 148, 136, .3); }
.company-facts .contact-gap { margin-top: 18px; }  /* почта и телефон — отдельным блоком под людьми */

/* ================= Цвета тарифов по «температуре» (31.10.2026): Mini — холодный, PRO — теплее, MAX — тёплый ================= */
html[data-theme="light"] .p-card.reveal.mini { background: linear-gradient(180deg, #ECFEFF, #CFFAFE); border: 1px solid transparent; --ring: conic-gradient(from var(--rainbow-turn), #22D3EE, #0891B2, #38BDF8, #A5F3FC, #0E7490, #22D3EE); box-shadow: 0 20px 50px rgba(8, 145, 178, .2); }
html[data-theme="light"] .p-card.reveal.pro { background: linear-gradient(180deg, #FEFCE8, #FEF3C7); border: 1px solid transparent; --ring: conic-gradient(from var(--rainbow-turn), #FACC15, #EAB308, #F59E0B, #FDE68A, #CA8A04, #FACC15); box-shadow: 0 20px 50px rgba(217, 119, 6, .2); }
html[data-theme="light"] .p-card.reveal.max { background: linear-gradient(180deg, #FFF7ED, #FFE4E6); border: 1px solid transparent; --ring: conic-gradient(from var(--rainbow-turn), #FF3D00, #F97316, #E11D48, #FB923C, #DC2626, #FF3D00); box-shadow: 0 20px 50px rgba(220, 38, 38, .2); }
html[data-theme="light"] .t-card[data-plan="mini"].reveal { background: linear-gradient(180deg, #ECFEFF, #CFFAFE) padding-box, linear-gradient(135deg, #22D3EE, #0369A1, #A5F3FC) border-box; border: 2px solid transparent; }
html[data-theme="light"] .t-card[data-plan="pro"].reveal { background: linear-gradient(180deg, #FEFCE8, #FEF3C7) padding-box, linear-gradient(135deg, #FACC15, #D97706, #FDE68A) border-box; border: 2px solid transparent; }
html[data-theme="light"] .t-card[data-plan="max"].reveal { background: linear-gradient(180deg, #FFF7ED, #FFE4E6) padding-box, linear-gradient(135deg, #F97316, #DC2626, #FB7185) border-box; border: 2px solid transparent; }
html[data-theme="light"] .plan-word[data-plan="mini"] { background-image: linear-gradient(90deg, #0E7490, #0891B2, #0284C7, #0369A1, #0E7490); }
html[data-theme="light"] .plan-word[data-plan="pro"] { background-image: linear-gradient(90deg, #A16207, #CA8A04, #D97706, #B45309, #A16207); }
html[data-theme="light"] .plan-word[data-plan="max"] { background-image: linear-gradient(90deg, #DC2626, #EA580C, #E11D48, #C2410C, #DC2626); }
html[data-theme="light"] .p-card.mini .p-btn, html[data-theme="light"] .t-card[data-plan="mini"] .t-btn { border: 0; color: #FFFFFF; background: linear-gradient(135deg, #06B6D4, #0369A1); box-shadow: 0 10px 26px rgba(8, 145, 178, .3); }
html[data-theme="light"] .p-card.pro .p-btn, html[data-theme="light"] .t-card[data-plan="pro"] .t-btn { border: 0; color: #FFFFFF; background: linear-gradient(135deg, #F59E0B, #D97706); box-shadow: 0 10px 26px rgba(217, 119, 6, .3); }
html[data-theme="light"] .p-card.max .p-btn, html[data-theme="light"] .t-card[data-plan="max"] .t-btn { border: 0; color: #FFFFFF; background: linear-gradient(135deg, #F97316, #DC2626); box-shadow: 0 10px 26px rgba(220, 38, 38, .3); }
html[data-theme="light"] .p-card.pro .p-badge, html[data-theme="light"] .t-card[data-plan="pro"] .t-name em { background: #FEF3C7; color: #B45309; }
html[data-theme="light"] .p-card.max .p-badge { background: #FFE4E6; color: #BE123C; }
/* меню сайта: на казахском пункты длиннее — отступы между ними уже, чтобы всё стояло в один ряд */
.nav-pill { gap: clamp(14px, 1.8vw, 32px); padding-inline: clamp(16px, 2.2vw, 32px); }
html[lang="kk"] .nav-pill { font-size: 13.5px; }
/* узкий ноутбук: казахское меню не помещается — «Басты бет» прячем (на главную ведёт логотип), шрифт чуть меньше */
@media (max-width: 1240px) {
  html[lang="kk"] .nav-pill a[href="/"] { display: none; }
  html[lang="kk"] .nav-pill { font-size: 13px; gap: 14px; }
}
@media (max-width: 1120px) {
  html[lang="kk"] .hero-nav { padding-left: 32px; padding-right: 32px; }
  html[lang="kk"] .nav-pill { gap: 12px; padding-left: 16px; padding-right: 16px; }
}
/* планшет (768–1023 px): шесть пунктов меню в ряд не помещаются — как на телефоне, кнопка меню */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-pill, .nav-right .lang-pill, .desktop-only { display: none; }
  .menu-btn { display: grid; }
  .mobile-menu { display: flex; }
}

/* цены тарифов — в одну строку: строки карточек общие (subgrid), длинная подпись под названием не сдвигает цену */
.price-cards .p-card { display: grid; grid-template-rows: subgrid; grid-row: span 4; align-content: start; }
.teaser-cards .t-card { display: grid; grid-template-rows: subgrid; grid-row: span 5; align-content: start; }
.price-cards .p-top { align-self: start; align-items: flex-start; }  /* названия — у верхнего края, на одной высоте */
