/* =========================================================
   Логопед Гранкина А. А. — стили
   ========================================================= */

:root {
  --bg: #F5F3FA;
  --surface: #FFFFFF;
  --surface-2: #F8F7FC;
  --ink: #1B1838;
  --ink-2: #55516D;
  --muted: #8B87A3;
  --line: #E9E5F3;

  --violet: #7B6CF6;
  --violet-d: #5B4BE0;
  --violet-50: #F2F0FF;
  --violet-100: #E7E3FF;
  --coral: #FF7A59;
  --coral-d: #E5553A;
  --yellow: #FFC93C;
  --mint: #3DD6B0;
  --mint-d: #0E8A6C;
  --mint-100: #DDF8F0;

  --track: #ECE9FF;
  --bar: #7B6CF6;
  --tip-bg: #1B1838;
  --tip-ink: #FFFFFF;

  --nav-bg: rgba(255, 255, 255, .96);
  --dark-card: #1E1A3A;

  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 20px;
  --shadow-sm: 0 1px 2px rgba(27, 24, 56, .04), 0 6px 20px rgba(27, 24, 56, .05);
  --shadow-md: 0 24px 60px -24px rgba(63, 42, 170, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1200px;
}

/* Чёрная тема */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050507;
  --surface: #101014;
  --surface-2: #17171D;
  --ink: #F5F4FA;
  --ink-2: #B3B1C2;
  --muted: #7D7B8E;
  --line: #24242D;
  --violet-50: #1A1830;
  --violet-100: #25223F;
  --violet-d: #ABA1FF;
  --mint-100: #0F2E27;
  --mint-d: #5BE3BF;
  --coral-d: #FF8F72;
  --track: #22203A;
  --bar: #8F82FF;
  --tip-bg: #F5F4FA;
  --tip-ink: #111016;
  --nav-bg: rgba(16, 16, 20, .95);
  --dark-card: #15151B;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 20px rgba(0, 0, 0, .4);
  --shadow-md: 0 24px 60px -24px rgba(0, 0, 0, .85);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s, color .4s;
}
img { display: block; max-width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; user-select: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
html.mouse-nav :focus-visible, html.mouse-nav .agree input:focus-visible + .agree__box { outline: none !important; }
button, a, [data-href] { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0 0; }
.section--tight { padding-top: 72px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--violet-100); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 44px; }
.section-head h2, .check h2, .about h2 {
  font-size: clamp(34px, 4.4vw, 58px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02;
}
.section-head > p { max-width: 430px; color: var(--ink-2); font-size: 16.5px; }

.squiggle {
  padding-bottom: .12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9C18 3 28 13 46 7s32-5 48 1 20-2 23-4' fill='none' stroke='%23FF7A59' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% .28em no-repeat;
}

.rate {
  --s: 18px; display: block; flex-shrink: 0; width: calc(var(--s) * 5 + 12px); height: var(--s);
  background: linear-gradient(180deg, #FFD84D, #FFAA00);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6c.4 0 .8.2 1 .6l2.5 5.1 5.6.8c.9.1 1.3 1.2.6 1.9l-4.1 4 1 5.6c.2.9-.8 1.6-1.6 1.2L12 19.1l-5 2.7c-.8.4-1.8-.3-1.6-1.2l1-5.6-4.1-4c-.7-.7-.3-1.8.6-1.9l5.6-.8L11 3.2c.2-.4.6-.6 1-.6Z'/%3E%3C/svg%3E") 0 0 / calc(var(--s) + 3px) var(--s) repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6c.4 0 .8.2 1 .6l2.5 5.1 5.6.8c.9.1 1.3 1.2.6 1.9l-4.1 4 1 5.6c.2.9-.8 1.6-1.6 1.2L12 19.1l-5 2.7c-.8.4-1.8-.3-1.6-1.2l1-5.6-4.1-4c-.7-.7-.3-1.8.6-1.9l5.6-.8L11 3.2c.2-.4.6-.6 1-.6Z'/%3E%3C/svg%3E") 0 0 / calc(var(--s) + 3px) var(--s) repeat-x;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn--yellow { background: #FFD84A; color: #1B1838; box-shadow: 0 14px 30px -12px rgba(255, 196, 0, .75); }
.btn--yellow:hover { box-shadow: 0 18px 36px -12px rgba(255, 196, 0, .9); }
.btn--white { background: #fff; color: #1B1838; box-shadow: 0 10px 24px -14px rgba(20, 10, 80, .45); }
.btn--dark { background: #1B1838; color: #fff; }
:root[data-theme="dark"] .btn--dark { background: #fff; color: #1B1838; }
.btn--violet { background: linear-gradient(135deg, #8A7CFF, #6350F0); color: #fff; box-shadow: 0 14px 30px -14px rgba(99, 80, 240, .8); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--violet); color: var(--violet-d); }
.btn--soft { background: var(--violet-50); color: var(--violet-d); }
.btn--grad {
  background: linear-gradient(135deg, #FF9860 0%, #FF6B4A 100%); color: #fff;
  box-shadow: 0 14px 28px -12px rgba(255, 107, 74, .75);
}

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
}
.pill--glass { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.pill--light { background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; }
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #B8FF6A; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #B8FF6A; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 24px; left: 0; right: 0; margin: 0 auto;
  width: min(1172px, calc(100% - 48px)); z-index: 60;
  transition: translate .35s var(--ease);
}
.nav__inner {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 12px; border-radius: 22px;
  background: var(--nav-bg);
  box-shadow: 0 10px 30px -12px rgba(40, 20, 120, .25);
  transition: box-shadow .35s, background-color .4s;
}
.nav.is-scrolled { translate: 0 -12px; }
.nav.is-scrolled .nav__inner { box-shadow: 0 16px 40px -14px rgba(40, 20, 120, .35), 0 0 0 1px var(--line); }

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand__icon { width: 40px; height: 40px; border-radius: 13px; background: var(--violet-50); display: grid; place-items: center; }
.brand__icon img { width: 30px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.brand__text small { font-size: 12px; color: var(--muted); font-weight: 500; }

.nav__links { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav__links a:not(.btn) {
  padding: 9px 9px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav__links a:not(.btn):hover { color: var(--ink); background: var(--violet-50); }
.nav__links a.is-active { color: var(--violet-d); background: var(--violet-50); }
.nav__links-cta { display: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__actions .tt { --tt-h: 34px; }

/* Кнопка «Записаться» в шапке: градиент, 3D-календарик, блик и мягкая пульсация */
.nav__cta {
  --h: 46px;
  position: relative; isolation: isolate;
  gap: 9px; padding: 0 16px 0 6px;
  background: linear-gradient(135deg, #FF9A5E 0%, #FF6B4A 48%, #F2609E 100%);
  color: #fff; font-size: 14.5px; font-weight: 800; letter-spacing: .01em;
  box-shadow: 0 10px 22px -10px rgba(255, 107, 74, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.nav__cta-shine { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.nav__cta-shine::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -70%; width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  animation: cta-shine 4.5s ease-in-out infinite;
}
.nav__cta-ic {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 4px 10px -4px rgba(120, 30, 20, .45);
  transition: transform .4s var(--ease);
}
.nav__cta-ic img { width: 23px; height: 23px; object-fit: contain; }
.nav__cta svg { width: 16px; height: 16px; margin-left: -2px; }
.nav__cta:hover { animation: none; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(255, 107, 74, .95), inset 0 1px 0 rgba(255, 255, 255, .35); }
.nav__cta:hover .nav__cta-ic { transform: rotate(-12deg) scale(1.08); }
@keyframes cta-shine { 0% { transform: translateX(0) skewX(-20deg); } 22%, 100% { transform: translateX(456%) skewX(-20deg); } }
.nav__cta::after {
  content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(255, 122, 89, .55); animation: cta-ring 2.8s ease-out infinite;
}
.nav__cta:hover::after { animation: none; opacity: 0; }
@keyframes cta-ring { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(1.1, 1.4); opacity: 0; } }

.burger { display: none; width: 42px; height: 42px; border-radius: 13px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.burger span, .burger span::before, .burger span::after {
  position: absolute; left: 50%; width: 18px; height: 2px; border-radius: 2px; background: var(--ink);
  transform: translateX(-50%); transition: transform .3s var(--ease), opacity .2s;
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before, .burger span::after { content: ""; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 14px; border-radius: var(--r-xl);
  padding: 150px 0 34px; color: #fff;
  background:
    radial-gradient(55% 65% at 88% 8%, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(45% 60% at 0% 100%, rgba(255, 150, 120, .8) 0%, rgba(255, 150, 120, 0) 62%),
    radial-gradient(40% 50% at 42% 115%, rgba(110, 215, 255, .55) 0%, rgba(110, 215, 255, 0) 62%),
    linear-gradient(125deg, #6D5AF4 0%, #6A78FF 42%, #8A86FF 72%, #A58CFF 100%);
}
.hero__glow { position: absolute; z-index: -1; box-sizing: content-box; padding: 70px; margin: -70px; border-radius: 50%; opacity: .55; pointer-events: none; will-change: transform; }
.hero__glow--a { width: 420px; height: 420px; background: radial-gradient(closest-side, #FFB199 62%, rgba(255, 177, 153, 0)); left: -120px; top: 30%; animation: drift 16s ease-in-out infinite; }
.hero__glow--b { width: 380px; height: 380px; background: radial-gradient(closest-side, #C8BFFF 62%, rgba(200, 191, 255, 0)); right: 10%; top: -120px; animation: drift 20s ease-in-out infinite reverse; }
.hero__glow--c { width: 300px; height: 300px; background: radial-gradient(closest-side, #7FE3FF 62%, rgba(127, 227, 255, 0)); left: 38%; bottom: -160px; animation: drift 18s ease-in-out infinite; opacity: .4; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, -30px) scale(1.12); } }

.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 32px; }
.hero__title {
  margin: 22px 0 22px;
  font-size: clamp(40px, 5.4vw, 74px); font-weight: 800; line-height: 1; letter-spacing: -.045em;
  text-wrap: balance;
}
.hero__title .hl { color: #FFE266; }
.hero__lead { max-width: 520px; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.hero__note svg { width: 17px; height: 17px; fill: none; stroke: #B8FF6A; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.hero__visual { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1 / 1; justify-self: end; }
.px { position: absolute; }
.hero__visual > .px:first-child { inset: 3% 3% 3% 3%; --fy: -14px; animation: float-y 3.2s cubic-bezier(.37, 0, .63, 1) infinite alternate; will-change: transform; }
.hero__img { width: 100%; height: auto; filter: drop-shadow(0 40px 50px rgba(40, 20, 130, .35)); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-1deg); } }

.fl { animation: float-y cubic-bezier(.37, 0, .63, 1) infinite alternate; will-change: transform; }
.fl img { width: 100%; filter: drop-shadow(0 18px 20px rgba(40, 20, 130, .3)); }
.fl--r { top: -2%; left: -3%; width: 15%; }
.fl--r { --fy: -18px; animation-duration: 2.6s; animation-delay: -.8s; }
.fl--sh { top: 33%; right: -8%; width: 14%; }
.fl--sh { --fy: 15px; animation-duration: 3.5s; animation-delay: -2.1s; }
.fl--s { bottom: -4%; left: -6%; width: 10%; }
.fl--s { --fy: -12px; animation-duration: 2.2s; animation-delay: -1.4s; }
/* Плавное покачивание вверх-вниз; у каждой буквы своя высота и свой темп, поэтому они не синхронны */
@keyframes float-y { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, var(--fy, -14px), 0); } }

.gcard {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: 20px;
  background: rgba(255, 255, 255, .9); color: #1B1838;
  box-shadow: 0 24px 44px -20px rgba(40, 20, 120, .55), inset 0 0 0 1px rgba(255, 255, 255, .7);
  white-space: nowrap;
}
.gcard b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.gcard small { display: block; font-size: 12.5px; color: #6A6684; }
.gcard__ic { width: 46px; height: 46px; border-radius: 14px; background: #F2F0FF; display: grid; place-items: center; }
.gcard__ic img { width: 34px; }
.gcard__ic--mint { background: #DDF8F0; }
.gcard--1 { left: -7%; top: 60%; }
.gcard--2 { right: -2%; top: 5%; }
.chip-rating {
  right: 12%; bottom: 3%;
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  background: #fff; color: #1B1838; font-size: 13px; font-weight: 600;
  box-shadow: 0 16px 34px -16px rgba(40, 20, 120, .55);
}
.chip-rating b { font-weight: 800; }
.chip-rating .rate { --s: 15px; }
.chip-rating span:last-child { color: #6A6684; }

.hero__features {
  display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 24px; align-items: center;
  margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .2);
}
.hero__features-cap { font-size: 14px; color: rgba(255, 255, 255, .72); max-width: 220px; }
.feat { display: flex; align-items: center; gap: 14px; }
.feat__ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.feat__ic img { width: 34px; filter: drop-shadow(0 6px 8px rgba(20, 10, 60, .3)); }
.feat b { display: block; font-size: 15px; font-weight: 700; }
.feat small { display: block; font-size: 13px; color: rgba(255, 255, 255, .72); }

/* =========================================================
   MARQUEE
   ========================================================= */
/* Отступ обёртки растёт с шириной экрана, чтобы наклонённая лента не обрезалась по краям */
.marquee-clip { overflow: hidden; padding: calc(1.6vw + 10px) 0; margin-top: 6px; }
.marquee {
  margin: 0 -40px; overflow: hidden;
  background: #1B1838; color: #fff;
  transform: rotate(-1.6deg);
  padding: 16px 0;
}
:root[data-theme="dark"] .marquee { background: linear-gradient(90deg, #6D5AF4, #9C6CF3 50%, #FF7F5C); }
/* Без gap: у каждого элемента свой отступ справа, поэтому две половины ленты строго равны и цикл идёт без рывка */
.marquee__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.js .marquee__track.is-ready { animation: marquee var(--mq-dur, 40s) linear infinite; }
.marquee__track > * { margin-right: 28px; flex-shrink: 0; }
.marquee__track span { font-size: 30px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.marquee__track i { display: inline-flex; font-style: normal; color: #FFD84A; }
.marquee__track i svg { width: 22px; height: 22px; fill: currentColor; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* =========================================================
   CHECKLIST
   ========================================================= */
.check {
  display: grid; grid-template-columns: .92fr 1.08fr;
  border-radius: 36px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
}

/* Левая яркая панель */
.check__panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 44px 40px 40px; color: #fff;
  background:
    radial-gradient(60% 45% at 100% 0%, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 62%),
    linear-gradient(155deg, #FF8C68 0%, #F2609E 46%, #7B6CF6 100%);
}
.check__panel-glow { position: absolute; z-index: -1; left: -90px; bottom: -110px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.check__art {
  position: absolute; z-index: -1; top: 18px; right: -34px; width: 215px;
  transform: rotate(8deg); filter: drop-shadow(0 22px 26px rgba(60, 20, 120, .35));
}
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
.check h2 { font-size: clamp(32px, 3.6vw, 48px); color: #fff; }
.check__panel > p { margin-top: 16px; max-width: 64%; font-size: 16px; color: rgba(255, 255, 255, .9); }

.check__result {
  display: flex; align-items: center; gap: 18px; width: 100%;
  margin-top: 30px; padding: 14px 20px 14px 14px; border-radius: 24px;
  background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.ring { position: relative; flex-shrink: 0; width: 98px; height: 98px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring__track { stroke: rgba(255, 255, 255, .28); }
.ring__bar { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset .6s var(--ease), stroke .4s; }
.check[data-level="2"] .ring__bar { stroke: #FFE266; }
.ring__track { transition: stroke .4s; }
.ring svg { transition: filter .4s; }
.check[data-level="3"] .ring__track { stroke: rgba(255, 255, 255, .92); }
.check[data-level="3"] .ring__bar { stroke: #E11D48; }
.check[data-level="3"] .ring svg { filter: drop-shadow(0 0 10px rgba(225, 29, 72, .6)); }
.check[data-level="3"] .ring { animation: ring-alert 1.8s ease-in-out infinite; }
@keyframes ring-alert { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.ring__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring__num b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.ring__num small { margin-top: 3px; font-size: 12px; font-weight: 600; opacity: .85; }
.ring__num.is-bump b { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.check__verdict b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.check__verdict span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .9); }
.check__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; max-width: 100%; }
.check__reset { white-space: nowrap; }
.check__actions .btn { color: #C2417F; }
.check__reset { font-size: 14px; font-weight: 700; color: #fff; opacity: .85; transition: opacity .2s; }
.check__reset:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.check[data-level="0"] .check__reset { opacity: 0; pointer-events: none; }

/* Правая часть: карточки-пункты, у каждой свой цвет --c */
.check__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: center; padding: 30px; }
.check__item {
  position: relative; display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 78px; padding: 12px 46px 12px 12px; border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line), 0 6px 18px -12px rgba(27, 24, 56, .25);
  font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s;
}
.check__item:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent), 0 16px 28px -16px color-mix(in srgb, var(--c) 70%, transparent);
}
.check__item:active { transform: translateY(-1px) scale(.98); }
.check__ic {
  position: relative; isolation: isolate;
  flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, var(--surface));
}
/* Яркий фон при отметке — отдельный слой, который просто проявляется: так подложка не мигает */
.check__ic::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--c); opacity: 0; transition: opacity .3s; }
.check__ic img { position: relative; width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(40, 20, 120, .2)); }
.check__box {
  position: absolute; right: 14px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px #D5D0EA; transition: background-color .25s, box-shadow .25s, transform .3s var(--ease);
}
.check__box::after {
  content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease);
}
.check__item[aria-pressed="true"] {
  /* цвет фона задан явно: иначе при снятии отметки карточка на миг становится прозрачной */
  background-color: var(--surface);
  background-image: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, var(--surface)), var(--surface) 75%);
  box-shadow: inset 0 0 0 2px var(--c), 0 16px 30px -18px color-mix(in srgb, var(--c) 85%, transparent);
}
.check__item[aria-pressed="true"] .check__ic::before { opacity: 1; }
.check__item[aria-pressed="true"] .check__ic img { animation: ic-pop .5s var(--ease); }
.check__item[aria-pressed="true"] .check__box { background: var(--c); box-shadow: none; transform: scale(1.1); }
.check__item[aria-pressed="true"] .check__box::after { transform: rotate(45deg) scale(1); }
@keyframes ic-pop { 0% { transform: scale(1); } 40% { transform: scale(1.28) rotate(-10deg); } 100% { transform: scale(1); } }

/* =========================================================
   SERVICES
   ========================================================= */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  padding: 10px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line); }
.svc__media {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 1.3 / 1; border-radius: 20px; padding: 20px 22px; color: #fff;
}
.svc__media::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 70% at 90% 90%, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 60%);
}
.svc__title { position: relative; z-index: 1; font-size: 23px; font-weight: 800; letter-spacing: -.025em; line-height: 1.08; max-width: 68%; }
.svc__title small { display: block; margin-top: 7px; font-size: 13px; font-weight: 600; letter-spacing: 0; opacity: .85; }
.svc__media img {
  position: absolute; right: 4%; bottom: -2%; width: auto; height: 73.5%; max-width: 59%; object-fit: contain; object-position: right bottom; transform: scale(.952);
  filter: drop-shadow(0 18px 22px rgba(20, 10, 60, .25));
  transition: transform .5s var(--ease);
}
.svc:hover .svc__media img { transform: translateY(-6px) rotate(-5deg) scale(1); }
.svc__badges { position: absolute; left: 18px; bottom: 18px; display: flex; gap: 6px; }
.badge {
  display: inline-block; padding: 5px 10px; border-radius: 10px;
  background: #fff; color: #1B1838; font-size: 12.5px; font-weight: 800;
  box-shadow: inset 0 0 0 2px #1B1838; transform: rotate(-4deg);
}
.g-mint { background: linear-gradient(150deg, #45DDB7 0%, #13A98A 100%); }
.g-coral { background: linear-gradient(150deg, #FF9572 0%, #F25D3C 100%); }
.g-yellow { background: linear-gradient(150deg, #FFD95E 0%, #FFAE1F 100%); color: #1B1838; }
.g-violet { background: linear-gradient(150deg, #9A8BFF 0%, #6350F0 100%); }
.g-sky { background: linear-gradient(150deg, #7EB6FF 0%, #3C79F0 100%); }
.g-pink { background: linear-gradient(150deg, #FF9DD3 0%, #DD559D 100%); }
.svc__body { padding: 16px 10px 8px; }
.svc__body p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.svc__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.svc__meta span {
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}

/* =========================================================
   RESULTS
   ========================================================= */
.results { display: grid; grid-template-columns: .92fr 1.3fr; gap: 20px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 200px; padding: 22px; border-radius: 26px;
  background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease);
}
.stat:hover { transform: translateY(-4px); }
.stat img { position: absolute; top: 11px; right: 11px; width: 84px; transform: scale(.929); transition: transform .5s var(--ease); filter: drop-shadow(0 10px 14px rgba(40, 20, 120, .18)); }
.stat:hover img { transform: rotate(-8deg) scale(1); }
.stat__val { font-size: 46px; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.stat__lbl { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.stat--violet { background: linear-gradient(150deg, #8C7DFF, #5E4AEE); color: #fff; box-shadow: 0 20px 40px -20px rgba(94, 74, 238, .7); }
.stat--violet .stat__lbl { color: rgba(255, 255, 255, .8); }
.stat--dark { background: var(--dark-card); color: #fff; box-shadow: none; }
.stat--dark .stat__lbl { color: rgba(255, 255, 255, .7); }

.chart-card {
  position: relative; padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.chart-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 14px; }
.chart-card__head h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.chart-card__head p { margin-top: 4px; font-size: 13.5px; color: var(--muted); }
.month-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 92px; padding: 10px 14px; border-radius: 18px; background: var(--violet-50);
}
.month-badge b { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.month-badge small { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--ink-2); }

.chart { display: flex; flex-direction: column; gap: 2px; }
.bar-row {
  display: grid; grid-template-columns: 44px 128px 1fr 84px; grid-template-areas: "ic lbl trk val";
  align-items: center; gap: 14px; padding: 9px 10px; border-radius: 16px;
  transition: background-color .2s;
}
.bar-row:hover, .bar-row:focus-visible { background: var(--surface-2); }
.bar-row__ic { grid-area: ic; width: 40px; justify-self: center; }
.bar-row__lbl { grid-area: lbl; line-height: 1.2; }
.bar-row__lbl b { display: block; font-size: 14.5px; font-weight: 700; }
.bar-row__lbl small { font-size: 12px; color: var(--muted); }
.bar-row__trk { grid-area: trk; position: relative; height: 18px; border-radius: 4px; background: var(--track); }
.bar-row__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: 4px; background: var(--bar);
  transition: width .75s var(--ease);
}
.bar-row__start {
  position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px;
  border-radius: 1px; background: var(--ink); box-shadow: 0 0 0 2px var(--surface);
}
.bar-row__val { grid-area: val; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.bar-row__val b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.delta {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 2px 6px; border-radius: 6px; font-size: 11.5px; font-weight: 700;
  background: var(--mint-100); color: var(--mint-d); font-variant-numeric: tabular-nums;
}

.slider { margin-top: 18px; padding: 16px 18px 12px; border-radius: 20px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.slider__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.slider__top label { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.slider__play { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--violet-d); padding: 4px 8px; border-radius: 8px; }
.slider__play svg { width: 14px; height: 14px; fill: currentColor; }
.slider__play:hover { background: var(--violet-50); }
input[type="range"] {
  --p: 100%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(to right, var(--violet) 0 var(--p), var(--track) var(--p) 100%);
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--track); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--violet); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: #fff; border: 4px solid var(--violet); box-shadow: 0 6px 14px -4px rgba(99, 80, 240, .7);
  transition: transform .2s var(--ease);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 4px solid var(--violet); box-shadow: 0 6px 14px -4px rgba(99, 80, 240, .7);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.slider__ticks { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.slider__ticks span { width: 26px; text-align: center; white-space: nowrap; }
.slider__ticks span:last-child { width: auto; min-width: 26px; text-align: right; }

.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 12.5px; color: var(--ink-2); }
.chart-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.lg-bar { width: 16px; height: 10px; border-radius: 3px; background: var(--bar); }
.lg-tick { width: 2px; height: 16px; border-radius: 1px; background: var(--ink); }
#legendNow { display: inline-block; min-width: 8.2em; font-variant-numeric: tabular-nums; }

.chart-tip {
  position: absolute; z-index: 5; pointer-events: none;
  padding: 9px 12px; border-radius: 12px; background: var(--tip-bg); color: var(--tip-ink);
  font-size: 12.5px; line-height: 1.4; white-space: nowrap;
  left: 0; top: 0; opacity: 0; transition: opacity .15s;
  box-shadow: 0 12px 24px -10px rgba(20, 10, 60, .45);
}
.chart-tip.is-on { opacity: 1; }
.chart-tip b { font-weight: 800; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about__media { position: relative; }
.about__media { padding-bottom: 56px; }
.about__frame { position: relative; width: 76%; border-radius: 36px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); }
.about__frame--sm { position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; border-radius: 28px; outline: 8px solid var(--bg); }
.about__frame img { width: 104%; height: 104%; margin: -2%; max-width: none; object-fit: cover; object-position: 50% 30%; transform: scale(.9615); transition: transform 1.2s var(--ease); }
.about__media:hover .about__frame img { transform: scale(1); }
.about__chip { position: absolute; left: -26px; bottom: 44px; }
.about__seal {
  position: absolute; right: 6%; top: 28px; width: 150px; height: 150px; border-radius: 50%;
  background: var(--surface); box-shadow: var(--shadow-md); display: grid; place-items: center;
}
.about__seal svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 22s linear infinite; }
.about__seal text { font-size: 15.5px; font-weight: 800; letter-spacing: 3.2px; fill: var(--ink); }
.about__seal img { width: 60px; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__content h2 { font-size: clamp(32px, 3.8vw, 50px); }
.about__role { margin: 12px 0 22px; font-size: 16px; font-weight: 700; color: var(--violet-d); }
.about__content > p { font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.about__content > p + p { margin-top: 14px; }
.quote {
  margin: 24px 0; padding: 20px 24px; border-radius: 0 20px 20px 0;
  background: var(--violet-50); border-left: 4px solid var(--violet);
  font-size: 18px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em;
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px;
  background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.fact img { width: 46px; }
.fact b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.fact small { display: block; font-size: 12.5px; color: var(--muted); }
.about__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* =========================================================
   STEPS
   ========================================================= */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.steps::before {
  content: ""; position: absolute; z-index: 0; left: 10%; right: 10%; top: 70px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--violet) 0 8px, transparent 8px 16px); opacity: .45;
}
.step {
  position: relative; z-index: 1; padding: 24px; border-radius: 26px;
  background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease);
}
.step:hover { transform: translateY(-6px); }
.step__num { position: absolute; top: 20px; right: 22px; font-size: 14px; font-weight: 800; color: var(--muted); }
.step img { width: 86px; height: 86px; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(40, 20, 120, .18)); }
.step h3 { margin: 16px 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.format {
  display: flex; align-items: center; gap: 22px; padding: 22px 26px; border-radius: 26px;
  background: linear-gradient(135deg, var(--violet-50), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line);
}
.format + .format { background: linear-gradient(135deg, var(--mint-100), var(--surface)); }
.format img { width: 110px; flex-shrink: 0; filter: drop-shadow(0 14px 18px rgba(40, 20, 120, .2)); }
.format h3 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.format p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.format .svc__meta span { background: var(--surface); }

/* =========================================================
   PRICES
   ========================================================= */
.prices {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 64px 40px 40px; border-radius: var(--r-xl);
  background:
    radial-gradient(45% 55% at 100% 0%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 60%),
    linear-gradient(120deg, #6D5AF4 0%, #9C6CF3 48%, #FF7F5C 100%);
  color: #fff;
}
.prices__glow { position: absolute; z-index: -1; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .12); }

/* Бесплатно: не тарифы, а «что входит» */
.free { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; padding: 56px; }
.free__tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: #fff; color: #1B1838; font-size: 14px; font-weight: 800;
  box-shadow: 0 14px 30px -14px rgba(20, 10, 60, .6); transform: rotate(-2deg);
}
.free__tag img { width: 32px; }
.free__intro h2 { margin-top: 22px; font-size: clamp(34px, 3.6vw, 50px); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; }
.free__intro > p { margin-top: 16px; max-width: 470px; font-size: 16.5px; line-height: 1.6; color: rgba(255, 255, 255, .9); }
.free__points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.free__points li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; }
.free__points li::before {
  content: ""; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%237B6CF6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.free__cta { margin-top: 30px; }

.free__list { display: grid; gap: 12px; }
.free__photo { margin-bottom: 8px; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 7.4; box-shadow: 0 18px 40px rgba(20, 10, 60, .28), inset 0 0 0 1px rgba(255, 255, 255, .28); }
.free__photo img { display: block; width: 104%; height: 104%; margin: -2%; max-width: none; object-fit: cover; object-position: 50% 4%; transform: scale(.9615); transition: transform 1.2s var(--ease); }
.free__photo:hover img { transform: scale(1); }
.free__cap { margin-bottom: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.free__item {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px 20px 20px; border-radius: 24px;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  transition: transform .35s var(--ease), background-color .35s;
}
.free__item:hover { transform: translateX(6px); background: rgba(255, 255, 255, .2); }
.free__item img { width: 71px; margin: -2.5px; transform: scale(.93); flex-shrink: 0; filter: drop-shadow(0 10px 14px rgba(20, 10, 60, .3)); transition: transform .5s var(--ease); }
.free__item:hover img { transform: rotate(-8deg) scale(1); }
.free__item h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.free__item p { margin-top: 5px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.free__when { display: inline-block; margin-top: 10px; padding: 4px 11px; border-radius: 999px; background: rgba(27, 24, 56, .28); font-size: 12.5px; font-weight: 600; }
:root[data-theme="dark"] .free__item { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }


/* =========================================================
   REVIEWS
   ========================================================= */
.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; color: var(--ink-2); }
.rating-line .rate { --s: 20px; }
.reviews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.review {
  display: flex; flex-direction: column; padding: 22px; border-radius: 24px;
  background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
  transition: transform .35s var(--ease);
}
.review:hover { transform: translateY(-5px); }
.review header { display: flex; align-items: center; gap: 12px; }
.review header b { display: block; font-size: 15px; font-weight: 700; }
.review header small { display: block; font-size: 12.5px; color: var(--muted); }
.ava {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13.5px; font-weight: 800; color: #fff;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--violet-100);
}
.ava--1 { background: linear-gradient(135deg, #9A8BFF, #6350F0); }
.ava--2 { background: linear-gradient(135deg, #FF9D7E, #F25D3C); }
.ava--3 { background: linear-gradient(135deg, #5FE2C1, #13A98A); }
.ava--4 { background: linear-gradient(135deg, #FFB2DA, #DD559D); }
.review .rate { margin: 16px 0 12px; }
.review p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.review__tag { margin-top: auto; padding-top: 16px; font-size: 13px; font-weight: 700; color: var(--coral-d); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-wrap { display: grid; grid-template-columns: 1.65fr 1fr; gap: 20px; align-items: start; }
.faq__item {
  margin-bottom: 12px; border-radius: 22px;
  background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  padding: 22px 24px; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em;
}
.faq__icon { position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--ease), background-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: background-color .3s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); background: #FFE9E2; box-shadow: none; }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: var(--coral); }
:root[data-theme="dark"] .faq__item.is-open .faq__icon { background: rgba(255, 122, 89, .16); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 24px 22px; font-size: 15px; line-height: 1.65; color: var(--ink-2); max-width: 680px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

.ask {
  position: sticky; top: 110px; display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--r-lg); color: var(--ink);
  background: radial-gradient(80% 60% at 100% 0%, rgba(123, 108, 246, .22), rgba(123, 108, 246, 0) 70%), var(--surface);
  box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line);
}
.ask__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ask__top img { width: 86px; filter: drop-shadow(0 14px 18px rgba(40, 20, 120, .25)); }
.ask__tag { padding: 6px 12px; border-radius: 999px; background: var(--mint-100); color: var(--mint-d); font-size: 12.5px; font-weight: 800; }
.ask h3 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.ask > p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); }
.ask__steps { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: ex; display: grid; gap: 8px; }
.ask__steps li { counter-increment: ex; position: relative; padding: 10px 12px 10px 46px; border-radius: 14px; background: var(--violet-50); font-size: 14px; line-height: 1.4; color: var(--ink); }
.ask__steps li::before { content: counter(ex); position: absolute; left: 10px; top: 50%; translate: 0 -50%; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--violet); color: #fff; font-size: 13px; font-weight: 800; }
.ask p.ask__dose { margin: 12px 0 18px; font-size: 13.5px; font-weight: 700; color: var(--violet-d); }
.ask__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.ask__count { font-size: 13px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.ask__next { --h: 44px; padding: 0 18px; font-size: 14px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  display: grid; grid-template-columns: 1fr 1.08fr;
  border-radius: 36px; background: var(--surface);
  box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
}
.contact__side {
  position: relative; overflow: hidden; isolation: isolate; min-height: 600px;
  padding: 48px 44px; color: #fff; border-radius: 36px 0 0 36px;
  background:
    radial-gradient(60% 50% at 100% 100%, rgba(255, 160, 130, .7), rgba(255, 160, 130, 0) 65%),
    linear-gradient(150deg, #7A68F7 0%, #6D7CFF 60%, #8F86FF 100%);
}
.contact__glow { position: absolute; z-index: -1; left: -100px; top: -100px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.contact__side h2 { font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; max-width: 420px; }
.contact__side > p { margin-top: 14px; max-width: 400px; font-size: 16px; color: rgba(255, 255, 255, .86); }
.cbtns { display: grid; gap: 10px; max-width: 340px; margin-top: 28px; position: relative; z-index: 1; }
.cbtn {
  display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 12px; border-radius: 20px;
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  transition: transform .35s var(--ease), background-color .3s;
}
.cbtn:hover { transform: translateX(6px); background: rgba(255, 255, 255, .24); }
.cbtn img { width: 50px; margin: -2px; flex-shrink: 0; transform: scale(.92); filter: drop-shadow(0 8px 12px rgba(20, 10, 60, .28)); transition: transform .45s var(--ease); }
.cbtn:hover img { transform: scale(1); }
.cbtn small { display: block; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.cbtn b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.contact__info { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; max-width: 300px; position: relative; z-index: 1; }
.contact__info li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: rgba(255, 255, 255, .92); }
.contact__info img { width: 34px; flex-shrink: 0; filter: drop-shadow(0 6px 8px rgba(20, 10, 60, .25)); }
.contact__art { position: absolute; right: 34px; bottom: 34px; width: 220px; z-index: 0; filter: drop-shadow(0 30px 34px rgba(40, 20, 130, .4)); animation: bob 6s ease-in-out infinite; }

.reach { display: flex; flex-direction: column; justify-content: center; padding: 48px 44px; }
.reach h3 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.reach__lead { margin: 8px 0 24px; font-size: 15px; color: var(--ink-2); }
.rcard {
  display: flex; align-items: center; gap: 18px; padding: 18px 20px 18px 16px; border-radius: 24px; color: #fff;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.rcard + .rcard { margin-top: 12px; }
.rcard--tg { background: linear-gradient(135deg, #3BB8F5, #1E8FD6); box-shadow: 0 18px 34px -16px rgba(30, 143, 214, .75); }
.rcard--max { background: linear-gradient(135deg, #23C3FF, #3D5BFF 55%, #9B2BFF); box-shadow: 0 18px 34px -16px rgba(61, 91, 255, .75); }
.rcard:hover { transform: translateY(-4px); }
.rcard--tg:hover { box-shadow: 0 24px 40px -16px rgba(30, 143, 214, .85); }
.rcard--max:hover { box-shadow: 0 24px 40px -16px rgba(61, 91, 255, .85); }
.rcard img { width: 54px; flex-shrink: 0; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 10px 18px -6px rgba(0, 0, 0, .35); transition: transform .35s var(--ease); }
.rcard--max img { width: 52px; border-radius: 24%; }
.rcard:hover img { transform: scale(1.06); }
.rcard__txt { flex: 1; min-width: 0; }
.rcard__txt b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.rcard__txt small { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.rcard__go { flex-shrink: 0; padding: 11px 20px; border-radius: 999px; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); font-size: 14.5px; font-weight: 800; transition: background-color .3s, color .3s; }
.rcard:hover .rcard__go { background: #fff; color: #1E6FD6; }
.rcard--max:hover .rcard__go { color: #4B3BFF; }
.reach__tip { margin-top: 22px; padding: 18px 22px; border-radius: 20px; background: var(--violet-50); }
.reach__tip b { display: block; margin-bottom: 8px; font-size: 14.5px; font-weight: 800; }
.reach__tip ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.reach__tip li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-2); }
.reach__tip li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 3px var(--violet-100); }
.reach__hint { margin-top: 18px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.reach__hint a { white-space: nowrap; color: var(--violet-d); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--violet-d) 35%, transparent); }
.reach__hint a:hover { text-decoration-color: currentColor; }
.form { position: relative; padding: 44px; }
.form h3 { margin-bottom: 22px; font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.field { margin-bottom: 16px; }
.field label, .field__label { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field input {
  width: 100%; height: 54px; padding: 0 16px; border-radius: 15px;
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink); font-size: 15.5px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-100); }
.field__err { display: none; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--coral-d); }
.field.is-err input { border-color: var(--coral); }
.field.is-err .field__err { display: block; }
/* minmax(0, …) + min-width: 0 — длинный текст внутри поля не может раздвинуть колонку и «сдвинуть» форму */
.field-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.field-row > .field { min-width: 0; }
/* Свой выпадающий список (вместо системного select) */
.dd { position: relative; }
.dd__btn {
  width: 100%; height: 54px; display: flex; align-items: center; gap: 10px;
  padding: 0 14px 0 10px; border-radius: 15px; text-align: left;
  background: var(--surface-2); border: 1.5px solid var(--line); color: var(--ink);
  font-size: 15px; font-weight: 600;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.dd__btn:hover { border-color: color-mix(in srgb, var(--violet) 45%, var(--line)); }
.dd__btn:focus-visible, .dd.is-open .dd__btn { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-100); background: var(--surface); }
.dd__btn-ic { flex-shrink: 0; width: 34px; height: 34px; padding: 4px; border-radius: 10px; object-fit: contain; background: var(--violet-50); }
.dd__val { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd__chev { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease), stroke .2s; }
.dd.is-open .dd__chev { transform: rotate(180deg); stroke: var(--violet); }
.dd__list {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0;
  width: max(100%, 372px); margin: 0; padding: 6px; list-style: none;
  border-radius: 18px; background: var(--surface);
  box-shadow: 0 28px 60px -20px rgba(40, 20, 120, .38), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px); will-change: transform, opacity;
  transition: opacity .22s var(--ease), transform .3s var(--ease), visibility .22s;
}
.dd--up .dd__list { top: auto; bottom: calc(100% + 8px); transform: translateY(8px); }
.dd.is-open .dd__list { opacity: 1; visibility: visible; transform: none; }
.dd__list li {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer;
  opacity: 0;
  transition: background-color .15s, opacity .25s var(--ease);
}
.dd.is-open .dd__list li { opacity: 1; }
.dd.is-open .dd__list li:nth-child(2) { transition-delay: 0s, .03s; }
.dd.is-open .dd__list li:nth-child(3) { transition-delay: 0s, .06s; }
.dd.is-open .dd__list li:nth-child(4) { transition-delay: 0s, .09s; }
.dd.is-open .dd__list li:nth-child(5) { transition-delay: 0s, .12s; }
.dd__list li img { flex-shrink: 0; width: 36px; height: 36px; padding: 4px; border-radius: 10px; object-fit: contain; background: var(--surface-2); transition: transform .3s var(--ease); }
.dd__list li.is-active { background: var(--violet-50); }
.dd__list li.is-active img { transform: scale(1.08) rotate(-6deg); }
.dd__list li[aria-selected="true"] { color: var(--violet-d); }
.dd__list li[aria-selected="true"]::after {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-left: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%237B6CF6' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
:root[data-theme="dark"] .dd__list { box-shadow: 0 28px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px var(--line); }

/* Внутренние ссылки без href (чтобы браузер не показывал адрес внизу) */
a[data-href] { cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  height: 44px; padding: 0 16px; border-radius: 13px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: box-shadow .2s, background-color .2s, color .2s;
}
.chips button:hover { box-shadow: inset 0 0 0 1.5px var(--violet); }
.chips button.is-on { background: var(--violet-50); box-shadow: inset 0 0 0 2px var(--violet); color: var(--violet-d); }
.seg--light { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; height: 54px; padding: 4px; border-radius: 15px; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.seg--light button { min-width: 0; padding: 0 6px; border-radius: 11px; font-size: 14.5px; font-weight: 600; white-space: nowrap; color: var(--ink-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.seg--light button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.agree { display: flex; align-items: center; gap: 12px; margin: 4px 0 22px; font-size: 14px; line-height: 1.4; color: var(--ink-2); cursor: pointer; user-select: none; }
.agree input { position: absolute; opacity: 0; pointer-events: none; }
.agree__box {
  position: relative; flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px;
  background: var(--surface); box-shadow: inset 0 0 0 2px #CFC8EC; transition: background-color .2s, box-shadow .2s;
}
.agree__box::after {
  content: ""; width: 14px; height: 14px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .25s var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.agree:hover .agree__box { box-shadow: inset 0 0 0 2px var(--violet); }
.agree input:checked + .agree__box { background: var(--violet); box-shadow: 0 6px 14px -4px rgba(123, 108, 246, .55); }
.agree input:checked + .agree__box::after { opacity: 1; transform: scale(1); }
.agree input:focus-visible + .agree__box { outline: 3px solid var(--violet); outline-offset: 2px; }
.agree a, .form__hint a { color: var(--violet-d); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--violet-d) 35%, transparent); transition: text-decoration-color .25s; }
.agree a:hover, .form__hint a:hover { text-decoration-color: currentColor; }
.agree.is-err .agree__box { box-shadow: inset 0 0 0 2px var(--coral); }
.form__submit { width: 100%; border-radius: 16px; }
.form__hint { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
.form__done { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 100%; padding: 20px; }
.form__done img { width: 130px; margin-bottom: 18px; animation: bob 5s ease-in-out infinite; }
.form__done h3 { margin-bottom: 10px; }
.form__done p { max-width: 360px; margin-bottom: 22px; color: var(--ink-2); }
.form__send { display: flex; gap: 12px; }
.sbtn { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 24px 0 12px; border-radius: 999px; color: #fff; font-size: 16px; font-weight: 800; transition: transform .3s var(--ease), box-shadow .3s; }
.sbtn img { width: 32px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.sbtn--max img { width: 31px; border-radius: 24%; }
.sbtn--tg { background: linear-gradient(135deg, #3BB8F5, #1E8FD6); box-shadow: 0 12px 24px -10px rgba(30, 143, 214, .7); }
.sbtn--max { background: linear-gradient(135deg, #23C3FF, #3D5BFF 55%, #9B2BFF); box-shadow: 0 12px 24px -10px rgba(61, 91, 255, .7); }
.sbtn:hover { transform: translateY(-3px); }
.form__done .form__or { margin: 16px 0 22px; font-size: 14px; }
.form__or a { color: var(--violet-d); font-weight: 700; }
.form.is-done .form__body { display: none; }
.form.is-done .form__done { display: flex; animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { margin-top: 110px; padding: 56px 0 28px; background: var(--surface); box-shadow: inset 0 1px 0 var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 16px; max-width: 340px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.footer h4 { margin-bottom: 14px; font-size: 14px; font-weight: 800; }
.footer__grid > div > a:not(.brand), .footer__grid > div > span { display: block; margin-bottom: 10px; font-size: 14px; color: var(--ink-2); transition: color .2s; }
.footer__grid > div > a:not(.brand):hover { color: var(--violet-d); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 22px; box-shadow: inset 0 1px 0 var(--line); font-size: 13px; color: var(--muted); }
.footer__bottom { align-items: center; }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; max-width: 900px; }
.footer__legal a { white-space: nowrap; transition: color .2s; }
.footer__legal a:hover { color: var(--violet-d); }
.footer__legal small { flex-basis: 100%; font-size: 12px; opacity: .85; }
.to-top {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 6px 0 24px; border-radius: 999px;
  background: linear-gradient(135deg, #8A7CFF 0%, #6350F0 100%); color: #fff;
  font-size: 15px; font-weight: 700; letter-spacing: .01em;
  box-shadow: 0 16px 32px -14px rgba(99, 80, 240, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.to-top::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, #FF9860 0%, #FF6B4A 100%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.to-top__ic {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 6px 14px -6px rgba(20, 10, 60, .5);
}
.to-top__ic svg { width: 18px; height: 18px; fill: none; stroke: #6350F0; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s; }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -14px rgba(255, 107, 74, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.to-top:hover::before { opacity: 1; }
.to-top:hover .to-top__ic svg { stroke: #FF6B4A; animation: nudge-up .6s var(--ease); }
.to-top:active { transform: translateY(-1px) scale(.97); }
@keyframes nudge-up { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-4px); } }

/* =========================================================
   ЧЁРНАЯ ТЕМА — компоненты
   ========================================================= */
:root[data-theme="dark"] .nav__inner { box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .hero {
  background:
    radial-gradient(50% 62% at 86% 8%, rgba(123, 108, 246, .5) 0%, rgba(123, 108, 246, 0) 65%),
    radial-gradient(45% 60% at 0% 100%, rgba(255, 122, 89, .38) 0%, rgba(255, 122, 89, 0) 62%),
    radial-gradient(40% 50% at 45% 112%, rgba(80, 190, 255, .22) 0%, rgba(80, 190, 255, 0) 62%),
    linear-gradient(160deg, #0F0E17 0%, #070709 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
:root[data-theme="dark"] .hero__glow { opacity: .28; }
:root[data-theme="dark"] .hero__features { border-top-color: rgba(255, 255, 255, .1); }
:root[data-theme="dark"] .feat__ic { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
:root[data-theme="dark"] .gcard {
  background: rgba(22, 22, 30, .72); color: #F5F4FA;
  box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .12);
}
:root[data-theme="dark"] .gcard small { color: #A9A7B8; }
:root[data-theme="dark"] .gcard__ic { background: rgba(123, 108, 246, .18); }
:root[data-theme="dark"] .gcard__ic--mint { background: rgba(61, 214, 176, .16); }
:root[data-theme="dark"] .chip-rating { background: #16161D; color: #F5F4FA; box-shadow: 0 16px 34px -16px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .12); }
:root[data-theme="dark"] .chip-rating span:last-child { color: #A9A7B8; }
:root[data-theme="dark"] .check__box { box-shadow: inset 0 0 0 2px #3A3A48; }
:root[data-theme="dark"] .agree__box { background: var(--surface-2); box-shadow: inset 0 0 0 2px #3A3A48; }
:root[data-theme="dark"] .agree:hover .agree__box { box-shadow: inset 0 0 0 2px var(--violet); }
:root[data-theme="dark"] .stat--dark { background: linear-gradient(150deg, #1B1B24, #111117); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .prices {
  background:
    radial-gradient(55% 70% at 0% 0%, rgba(123, 108, 246, .45), rgba(123, 108, 246, 0) 65%),
    radial-gradient(50% 70% at 100% 100%, rgba(255, 122, 89, .4), rgba(255, 122, 89, 0) 65%),
    #0C0C11;
  box-shadow: inset 0 0 0 1px var(--line);
}
:root[data-theme="dark"] .prices__glow { background: rgba(123, 108, 246, .08); }
:root[data-theme="dark"] .ask { background: radial-gradient(80% 60% at 100% 0%, rgba(123, 108, 246, .3), rgba(123, 108, 246, 0) 70%), var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
:root[data-theme="dark"] .ask img { filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .45)); }
:root[data-theme="dark"] .contact__side {
  background:
    radial-gradient(70% 60% at 100% 100%, rgba(255, 122, 89, .4), rgba(255, 122, 89, 0) 65%),
    radial-gradient(70% 60% at 0% 0%, rgba(123, 108, 246, .5), rgba(123, 108, 246, 0) 65%),
    #0C0C11;
}
:root[data-theme="dark"] .contact__glow { background: rgba(255, 255, 255, .04); }

/* =========================================================
   AWARDS
   ========================================================= */
.award-top {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1.08fr; align-items: center; gap: 30px;
  padding: 52px 0 52px 52px; border-radius: var(--r-xl); color: #fff;
  background:
    radial-gradient(60% 80% at 85% 40%, rgba(255, 196, 92, .30), rgba(255, 196, 92, 0) 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(123, 108, 246, .55), rgba(123, 108, 246, 0) 65%),
    linear-gradient(135deg, #1C1838 0%, #2A2160 55%, #3B2A7E 100%);
  box-shadow: 0 40px 80px -40px rgba(30, 20, 90, .7);
}
.award-top__glow { position: absolute; z-index: -1; right: 6%; top: 50%; width: 520px; height: 520px; margin-top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 122, .28), rgba(255, 214, 122, 0) 65%); }
.award-top__lvl {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 214, 122, .14); box-shadow: inset 0 0 0 1px rgba(255, 214, 122, .35);
  color: #FFD98A; font-size: 13px; font-weight: 700; letter-spacing: .02em;
}
.award-top__lvl img { width: 24px; }
.award-top h3 { margin-top: 20px; font-size: clamp(28px, 2.7vw, 38px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.award-top__for { margin-top: 16px; max-width: 470px; font-size: 17px; line-height: 1.5; color: #FFE2A6; font-weight: 600; }
.award-top__meta { margin-top: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .55); }
.award-top__nums { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px; margin-top: 28px; }
.award-top__nums span {
  display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font-size: 12.5px; line-height: 1.3; color: rgba(255, 255, 255, .7); max-width: 170px;
}
.award-top__nums b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1; }
.btn--gold { background: linear-gradient(135deg, #FFE08A, #F5B53D); color: #2A1E05; box-shadow: 0 16px 34px -14px rgba(245, 181, 61, .8); }
.btn--gold:hover { box-shadow: 0 20px 40px -14px rgba(245, 181, 61, .95); }
.award-top__btn { margin-top: 28px; --h: 52px; padding: 0 24px; }
.award-top__art {
  position: relative; display: block; height: 100%; min-height: 420px; padding: 0; border: 0; background: none; cursor: zoom-in;
  perspective: 1400px;
}
.award-top__art img { position: absolute; border-radius: 6px; transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.award-top__spread {
  width: 94%; left: 0; top: 50%; transform: translateY(-50%) rotateY(-14deg) rotateX(6deg) rotate(-3deg);
  box-shadow: 0 50px 70px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .25);
}
.award-top__art:hover .award-top__spread { transform: translateY(-52%) rotateY(-6deg) rotateX(3deg) rotate(-1.5deg) scale(1.02); }

.awards { margin-top: 22px; padding: 26px 0 8px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.awards__bar { display: flex; align-items: center; justify-content: space-between; padding: 0 28px 18px; }
.awards__hint { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.awards__nav { display: flex; gap: 8px; }
.awards__arrow {
  display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .25s, color .25s, transform .25s var(--ease), opacity .25s;
}
.awards__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.awards__arrow:hover { background: var(--violet); color: #fff; transform: translateY(-2px); }
.awards__arrow:disabled { opacity: .35; pointer-events: none; }
.awards__track {
  display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding: 0 28px;
  padding: 6px 28px 24px; scrollbar-width: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
}
.awards__track::-webkit-scrollbar { display: none; }
.awards__track .award__mat img { transition: opacity .45s ease; }
.js .awards__track:not(.is-ready) .award__mat img { opacity: 0; }
.awards__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.awards__track.is-drag .award { pointer-events: none; }
.award {
  flex: 0 0 254px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: flex-start;
  padding: 0; border: 0; background: none; color: var(--ink); text-align: left; font: inherit; cursor: zoom-in;
}
.award__mat {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1.16; border-radius: 22px; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 35%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%), var(--t, #ECEAF6);
}
:root[data-theme="dark"] .award__mat { background: radial-gradient(80% 70% at 50% 35%, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 70%), #1B1B22; }
.award__mat img {
  width: auto; height: 88.2%; max-width: 86%; object-fit: contain; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(20, 15, 50, .15), 0 18px 30px -12px rgba(20, 15, 50, .45);
  transform: rotate(-2.5deg) scale(.952); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.award:nth-child(even) .award__mat img { transform: rotate(2deg) scale(.952); }
.award:hover .award__mat img, .award:focus-visible .award__mat img { transform: rotate(0) translateY(-6px) scale(1); box-shadow: 0 1px 2px rgba(20, 15, 50, .15), 0 28px 40px -14px rgba(20, 15, 50, .55); }
.award__year {
  margin-top: 14px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--violet-50); color: var(--violet-d);
}
.award b { margin-top: 10px; font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.award small { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* Просмотр документа */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 28px calc(96px - var(--sbw, 0px)) 28px 96px; }
.lb[hidden] { display: none; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(12, 10, 28, .9); animation: lb-fade .3s ease both; }
.lb__fig { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-height: 100%; animation: lb-in .45s var(--ease) both; }
.lb__stage { display: grid; place-items: center; min-height: 0; }
.lb__img { display: block; max-width: min(1100px, calc(100vw - 200px)); max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); background: #fff; transition: opacity .25s; }
.lb__img.is-loading { opacity: 0; transition: none; }
/* Пока грамота грузится в первый раз — аккуратный индикатор по центру */
.lb__stage { position: relative; }
.lb.is-wait .lb__stage::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .22); border-top-color: #fff; animation: lb-spin .8s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lb__cap { display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 760px; text-align: center; color: #fff; }
.lb__cap b { font-size: 17px; font-weight: 800; }
.lb__cap small { font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.lb__count { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #FFD98A; }
.lb__btn {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: background .25s, transform .25s var(--ease);
}
.lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lb__btn:hover { background: rgba(255, 255, 255, .24); }
.lb__close { top: 22px; right: calc(22px - var(--sbw, 0px)); }
.lb__prev { left: 24px; top: 50%; margin-top: -26px; }
.lb__next { right: calc(24px - var(--sbw, 0px)); top: 50%; margin-top: -26px; }
.lb__prev:hover { transform: translateX(-3px); }
.lb__next:hover { transform: translateX(3px); }
body.is-locked { overflow: hidden; }
/* Пока открыт документ, страница под ним не прокручивается (на телефоне тоже) */
html.lb-open { overflow: hidden; overscroll-behavior: none; }
.lb { touch-action: none; overscroll-behavior: contain; }
/* Место под полосу прокрутки на время просмотра — в цвет затемнения */
html.lb-open { background: rgb(35, 33, 50); }
:root[data-theme="dark"].lb-open { background: rgb(11, 10, 26); }
@keyframes lb-fade { from { opacity: 0; } }
@keyframes lb-in { from { opacity: 0; transform: translateY(18px); } }

/* Главные направления в услугах */
.svc-grid { grid-template-columns: repeat(12, 1fr); }
.svc { grid-column: span 3; }
.svc--main { grid-column: span 6; }
.svc--main .svc__media { aspect-ratio: 2.15 / 1; padding: 26px 28px; }
.svc--main .svc__title { font-size: 31px; max-width: 60%; }
.svc--main .svc__title small { font-size: 14px; }
.svc--main .svc__media img { height: 86%; }
.svc:not(.svc--main) .svc__title { font-size: 20px; max-width: 74%; }
.svc:not(.svc--main) .svc__media img { height: 61%; }

/* =========================================================
   REVEAL
   ========================================================= */
.js .reveal { opacity: 0; translate: 0 26px; }
.js .reveal.is-in { animation: reveal-in .8s var(--ease) var(--rd, 0s) both; }
@keyframes reveal-in { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1240px) {
  .nav__links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.btn) { padding: 13px 14px; font-size: 16px; }
  .nav__links-cta { display: flex; margin-top: 8px; }
  .nav__actions { margin-left: auto; }
  .burger { display: block; }
}

@media (max-width: 1024px) {
  .hero { padding-top: 130px; }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__lead { margin: 0 auto; }
  .hero__cta { justify-content: center; }
  .hero__visual { justify-self: center; max-width: 540px; }
  .hero__features { grid-template-columns: repeat(3, 1fr); }
  .hero__features-cap { display: none; }
  .check { grid-template-columns: 1fr; }
  .check__panel { padding: 36px 32px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc, .svc--main { grid-column: auto; }
  .award-top { grid-template-columns: 1fr; padding: 40px; }
  .award-top__art { min-height: 360px; }
  .results { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about__media { max-width: 560px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .reviews { grid-template-columns: repeat(2, 1fr); }
  .free { grid-template-columns: 1fr; padding: 44px 36px; }
  .faq-wrap { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact__side { min-height: 520px; border-radius: 36px 36px 0 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { padding-top: 76px; }
  .section--tight { padding-top: 56px; }
  .nav { top: 12px; width: calc(100% - 24px); }
  .brand__text small { display: none; }
  .nav__cta { display: none; }
  .hero { margin: 8px; border-radius: 30px; padding: 108px 0 26px; }
  .hero__title { font-size: clamp(36px, 10.5vw, 48px); }
  .hero__lead { font-size: 16px; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .hero__note { justify-content: center; text-align: left; }
  .gcard { padding: 8px 12px 8px 8px; gap: 9px; border-radius: 16px; }
  .gcard b { font-size: 13px; }
  .gcard small { font-size: 11px; }
  .gcard__ic { width: 36px; height: 36px; border-radius: 11px; }
  .gcard__ic img { width: 26px; }
  .gcard--1 { left: -2%; top: 64%; }
  .gcard--2 { right: 0; top: 2%; }
  .chip-rating { height: 34px; padding: 0 12px; font-size: 12px; right: 4%; }
  .chip-rating span:last-child { display: none; }
  .hero__features { grid-template-columns: 1fr; gap: 14px; }
  .marquee__track span { font-size: 22px; }
  .check { border-radius: 28px; }
  .check__panel { padding: 28px 20px; }
  .check__panel > p { max-width: 100%; }
  .check__art { width: 130px; top: 10px; right: -24px; opacity: .9; }
  .check__list { grid-template-columns: 1fr; padding: 16px; }
  .svc-grid { grid-template-columns: 1fr; }
  .award-top { padding: 28px 20px; border-radius: 28px; }
  .award-top__nums { grid-template-columns: 1fr; }
  .award-top__art { min-height: 240px; }
  .award { flex-basis: 220px; }
  .lb { padding: 16px; }
  .lb__img { max-width: calc(100vw - 32px); max-height: calc(100vh - 190px); }
  .lb__prev, .lb__next { top: auto; bottom: 20px; margin: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 170px; padding: 18px; }
  .stat img { width: 62px; }
  .stat__val { font-size: 38px; }
  .chart-card { padding: 20px 16px; }
  .chart-card__head h3 { font-size: 18px; }
  .month-badge { min-width: 76px; padding: 8px 10px; }
  .month-badge b { font-size: 28px; }
  .bar-row { grid-template-columns: 36px 1fr auto; grid-template-areas: "ic lbl val" "trk trk trk"; gap: 8px 12px; padding: 10px 6px; }
  .bar-row__ic { width: 34px; }
  .about__chip { left: 8px; bottom: 16px; }
  .about__seal { right: 6px; top: -18px; width: 116px; height: 116px; }
  .about__seal img { width: 46px; }
  .facts { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr; }
  .format { flex-direction: column; align-items: flex-start; }
  .format img { width: 86px; }
  .prices { padding: 36px 20px; border-radius: 30px; }
  .free__item { padding: 16px; gap: 14px; }
  .free__item img { width: 52px; }
  .reviews { grid-template-columns: 1fr; }
  .faq__q { padding: 18px; font-size: 15.5px; }
  .faq__a p { padding: 0 18px 18px; }
  .contact { border-radius: 28px; }
  .contact__side { border-radius: 28px 28px 0 0; }
  .contact__side { padding: 32px 22px 210px; min-height: 0; }
  .contact__art { width: 200px; right: 10px; }
  .fl--sh { right: -1%; }
  .fl--s { left: 0; bottom: -2%; }
  .form { padding: 28px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ---------- Телефон: доводка ---------- */
@media (max-width: 720px) {
  html, body { overflow-x: clip; }
  .hero__note { font-size: 13px; }
  .gcard--2 { top: 0; }
  /* главные услуги: подпись и ярлык не наезжают друг на друга */
  .svc--main .svc__media { aspect-ratio: auto; min-height: 200px; padding: 22px 20px 64px; }
  .svc--main .svc__title { font-size: 27px; max-width: 62%; }
  .svc--main .svc__media img { height: 74%; max-width: 42%; right: 2%; }
  .svc__media { aspect-ratio: 1.45 / 1; }
  .svc__title { font-size: 21px; }
  /* награды */
  .award-top > * { min-width: 0; }
  .award-top__nums { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 8px; margin-top: 22px; }
  .award-top__nums span { max-width: none; display: grid; grid-template-columns: 118px 1fr; align-items: center; gap: 12px; padding: 12px 14px; font-size: 12.5px; }
  .award-top__nums b { font-size: 19px; }
  .award-top__btn { width: 100%; }
  .awards__head { gap: 12px; }
  /* обо мне */
  .about__cta { flex-direction: column; }
  .about__cta .btn { width: 100%; }
  /* шаги: иконка слева, компактно */
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 16px; align-items: start; padding: 20px 18px; }
  .step img { width: 64px; height: 64px; grid-row: span 2; }
  .step h3 { margin: 4px 0 6px; font-size: 18px; padding-right: 28px; }
  .step p { grid-column: 2; font-size: 14px; }
  .step__num { top: 18px; right: 18px; font-size: 13px; }
  .format { flex-direction: row; align-items: flex-start; gap: 16px; padding: 20px 18px; }
  .format img { width: 64px; }
  .format h3 { font-size: 18px; }
  .format p { font-size: 14px; }
  /* «Логопед рядом» */
  .free__item { align-items: flex-start; }
  .free__item h3 { font-size: 17px; }
  .free__when { font-size: 12px; }
  /* контакты */
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact__side { padding: 30px 20px 180px; }
  .contact__side h2 { font-size: 30px; }
  .contact__art { width: 160px; right: 16px; bottom: 18px; }
  .reach { padding: 28px 18px 30px; }
  .reach h3 { font-size: 22px; }
  .reach__lead { margin-bottom: 18px; }
  .rcard { gap: 12px; padding: 14px 14px 14px 12px; border-radius: 20px; }
  .rcard img { width: 46px; }
  .rcard--max img { width: 44px; }
  .rcard__txt b { font-size: 18px; }
  .rcard__txt small { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rcard__go { padding: 9px 14px; font-size: 13.5px; }
  .reach__tip { padding: 16px 18px; }
  .award-top h3 { font-size: 25px; }
  .nav__inner { gap: 8px; padding: 6px 6px 6px 10px; }
  .nav .brand { gap: 8px; min-width: 0; }
  .nav .brand__icon { width: 36px; height: 36px; border-radius: 12px; }
  .nav .brand__icon img { width: 27px; }
  .nav .brand__text b { font-size: 14px; white-space: nowrap; }
  .nav__actions { gap: 6px; }
  .nav__actions .tt { --tt-h: 30px; }
  .burger { width: 40px; height: 40px; }
  /* подвал */
  .footer__bottom { align-items: flex-start; }
  .footer__legal { gap: 6px 16px; }
}

/* ---------- Телефон: компактная раскладка, ближе к ПК ---------- */
@media (max-width: 720px) {
  .section { padding-top: 56px; }
  .section--tight { padding-top: 44px; }
  .section-head { margin-bottom: 24px; gap: 10px; }
  .section-head h2, .check h2, .about h2 { font-size: 29px; }
  .section-head > p { font-size: 14.5px; line-height: 1.5; }
  .eyebrow { margin-bottom: 12px; font-size: 11.5px; }

  /* первый экран */
  .hero { padding: 92px 0 20px; }
  .hero__title { font-size: 35px; }
  .hero__lead { font-size: 15px; line-height: 1.5; }
  .hero__cta { flex-direction: row; gap: 8px; margin-top: 22px; }
  .hero__cta .btn { width: auto; flex: 1; --h: 50px; padding: 0 12px; font-size: 14px; }
  .hero__note { margin-top: 14px; font-size: 12px; }
  .hero__visual { max-width: 300px; margin-top: 4px; }
  .hero__features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 12px 0; padding: 12px 6px; width: auto; border-top: 0; border-radius: 22px; background: rgba(27, 20, 80, .28); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
  .feat b { text-shadow: 0 1px 6px rgba(20, 10, 60, .35); }
  .feat small { color: rgba(255, 255, 255, .88); }
  .feat { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .feat__ic { width: 40px; height: 40px; border-radius: 12px; }
  .feat__ic img { width: 28px; }
  .feat b { font-size: 12.5px; line-height: 1.2; }
  .feat small { font-size: 11px; }
  .marquee__track span { font-size: 19px; }
  .marquee__track i svg { width: 16px; height: 16px; }

  /* самопроверка: карточки в две колонки */
  .check__panel { padding: 24px 18px; }
  .check__panel > p { font-size: 14px; }
  .check__art { width: 96px; top: 12px; right: -14px; }
  .check__result { margin-top: 18px; padding: 10px 12px 10px 10px; gap: 12px; }
  .ring { width: 74px; height: 74px; }
  .check__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; }
  .check__item { flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 10px 10px 12px; border-radius: 16px; font-size: 12.5px; }
  .check__ic { width: 42px; height: 42px; border-radius: 12px; }
  .check__ic img { width: 30px; height: 30px; }
  .check__box { top: 12px; right: 10px; margin-top: 0; width: 20px; height: 20px; }
  .check__box::after { left: 6px; top: 3px; width: 5px; height: 9px; }

  /* услуги: главные на всю ширину, остальные по две */
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .svc--main { grid-column: 1 / -1; }
  .svc { padding: 6px; border-radius: 20px; }
  .svc__media { aspect-ratio: 1 / .92; padding: 12px; border-radius: 15px; }
  .svc__title { font-size: 15.5px; max-width: 100%; hyphens: auto; -webkit-hyphens: auto; }
  .svc__title small { margin-top: 4px; font-size: 11px; }
  .svc__media img { height: 56%; max-width: 62%; right: 2%; }
  .svc__badges { left: 10px; bottom: 10px; }
  .badge { padding: 3px 7px; font-size: 10.5px; border-radius: 8px; }
  .svc__body { padding: 10px 6px 6px; }
  .svc__body p { font-size: 12.5px; line-height: 1.45; }
  .svc__meta { gap: 5px; margin-top: 10px; }
  .svc__meta span { padding: 4px 8px; font-size: 11px; }
  .svc--main .svc__media { min-height: 150px; padding: 18px 18px 52px; border-radius: 15px; }
  .svc--main .svc__title { font-size: 24px; max-width: 60%; }
  .svc--main .svc__media img { height: 82%; max-width: 40%; }
  .svc--main .svc__body p { font-size: 13.5px; }
  .svc--main .badge { font-size: 11.5px; }

  /* результаты */
  .stats { gap: 10px; }
  .stat { min-height: 128px; padding: 14px; border-radius: 20px; }
  .stat img { width: 50px; top: 8px; right: 8px; }
  .stat__val { font-size: 30px; }
  .stat__lbl { margin-top: 4px; font-size: 12px; }
  .chart-card { padding: 18px 14px; }
  .bar-row { padding: 6px 4px; gap: 6px 10px; }

  /* обо мне */
  .about { gap: 28px; }
  .about__media { max-width: 330px; padding-bottom: 40px; }
  .about__seal { width: 96px; height: 96px; top: -12px; }
  .about__seal img { width: 38px; }
  .about__chip { bottom: 10px; }
  .about__role { margin: 8px 0 14px; font-size: 14px; }
  .about__content > p { font-size: 14.5px; line-height: 1.55; }
  .quote { margin-top: 16px; padding: 14px 16px; font-size: 15px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
  .fact { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; border-radius: 16px; }
  .fact img { width: 34px; }
  .fact b { font-size: 13px; }
  .fact small { font-size: 11.5px; }
  .about__cta { flex-direction: row; gap: 8px; margin-top: 18px; }
  .about__cta .btn { flex: 1; width: auto; --h: 50px; padding: 0 10px; font-size: 14px; }

  /* награды */
  .award-top { padding: 22px 16px; gap: 18px; }
  .award-top h3 { font-size: 22px; margin-top: 14px; }
  .award-top__for { font-size: 14px; }
  .award-top__nums { margin-top: 16px; gap: 6px; }
  .award-top__nums span { grid-template-columns: 104px 1fr; padding: 9px 12px; font-size: 11.5px; line-height: 15px; }
  .award-top__nums b { font-size: 17px; }
  .award-top__btn { margin-top: 18px; --h: 48px; }
  .award-top__art { min-height: 190px; }
  .award { flex-basis: 170px; }

  /* шаги: сетка 2×2 */
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .step { display: block; padding: 14px 12px; border-radius: 20px; }
  .step img { width: 46px; height: 46px; }
  .step h3 { margin: 10px 0 4px; padding-right: 0; font-size: 15px; }
  .step p { font-size: 12.5px; line-height: 1.45; }
  .step__num { top: 14px; right: 14px; font-size: 12px; }
  .formats { gap: 10px; margin-top: 10px; }
  .format { gap: 12px; padding: 14px; border-radius: 20px; }
  .format img { width: 48px; }
  .format h3 { font-size: 16px; }
  .format p { font-size: 13px; }

  /* «Логопед рядом» */
  .prices { padding: 24px 16px; }
  .free { gap: 20px; }
  .free__intro h2 { margin-top: 14px; font-size: 28px; }
  .free__intro > p { font-size: 14.5px; }
  .free__points { margin-top: 14px; gap: 7px; }
  .free__points li { font-size: 13.5px; }
  .free__cta { margin-top: 18px; width: 100%; }
  .free__item { padding: 12px; gap: 12px; border-radius: 18px; }
  .free__item img { width: 42px; }
  .free__item h3 { font-size: 15.5px; }
  .free__item p { font-size: 12.5px; }
  .free__when { margin-top: 7px; padding: 3px 9px; font-size: 11px; }

  /* отзывы: лента со свайпом, как ряд карточек на ПК */
  .reviews { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
  .reviews::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 78%; scroll-snap-align: start; padding: 16px; }
  .review .rate { margin: 10px 0 8px; --s: 15px; }
  .review p { font-size: 13.5px; line-height: 1.5; }

  /* вопросы */
  .faq__q { padding: 14px 16px; font-size: 14.5px; }
  .faq__a p { padding: 0 16px 14px; font-size: 14px; }
  .ask { padding: 20px 18px; }
  .ask__top { margin-bottom: 10px; }
  .ask__top img { width: 64px; }
  .ask h3 { font-size: 20px; }
  .ask > p { font-size: 14px; }
  .ask__steps li { padding: 9px 10px 9px 42px; font-size: 13.5px; }
  .ask__steps li::before { left: 8px; }
  .ask p.ask__dose { margin: 10px 0 14px; font-size: 13px; }
  .ask__foot { padding-top: 14px; }
  .svc:not(.svc--main) .svc__title small { display: none; }
  .svc:not(.svc--main) .svc__media { aspect-ratio: 1 / .9; }

  /* контакты */
  .contact__side { padding: 24px 18px 22px; }
  .contact__side h2 { font-size: 25px; max-width: 66%; }
  .contact__side > p { font-size: 14px; }
  .contact__art { width: 76px; top: 14px; right: 12px; bottom: auto; }
  .contact__info { margin-top: 14px; gap: 8px; }
  .contact__info li { font-size: 13.5px; }
  .contact__info img { width: 28px; }
  .reach { padding: 22px 16px 24px; }
  .reach h3 { font-size: 20px; }
  .reach__lead { margin: 6px 0 14px; font-size: 13.5px; }
  .rcard + .rcard { margin-top: 8px; }
  .reach__tip { margin-top: 14px; padding: 12px 14px; }
  .reach__tip b, .reach__tip li { font-size: 13px; }
  .reach__hint { margin-top: 12px; font-size: 12px; }

  /* подвал */
  .footer { margin-top: 56px; padding: 34px 0 24px; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
  .footer__grid > div > a:not(.brand), .footer__grid > div > span { margin-bottom: 7px; font-size: 12.5px; }
  .footer__grid h4 { font-size: 13px; }
  .footer__brand p { font-size: 13px; }
  .footer__bottom { margin-top: 24px; }
}

@media (max-width: 380px) {
  .svc:not(.svc--main) .svc__title { font-size: 14px; }
  .rcard__go { display: none; }
  .hero__title { font-size: 34px; }
}

/* Сенсорные экраны: после касания карточки не «залипают» в состоянии наведения */
@media (hover: none) {
  .btn:hover, .nav__cta:hover, .svc:hover, .stat:hover, .step:hover, .review:hover, .rcard:hover, .sbtn:hover,
  .to-top:hover, .awards__arrow:hover, .lb__prev:hover, .lb__next:hover { transform: none; }
  .free__item:hover, .cbtn:hover { transform: none; background: rgba(255, 255, 255, .14); }
  .svc:hover .svc__media img { transform: scale(.952); }
  .stat:hover img { transform: scale(.929); }
  .free__item:hover img { transform: scale(.93); }
  .rcard:hover img { transform: none; }
  .award-top__art:hover .award-top__spread { transform: translateY(-50%) rotateY(-14deg) rotateX(6deg) rotate(-3deg); }
  .awards__track { scroll-snap-type: x mandatory; }
  .award { scroll-snap-align: start; }
  /* На телефоне карточки самопроверки при нажатии не подпрыгивают — из-за этого мигала подложка иконки */
  .check__item:hover, .check__item:active { transform: none; }
  .check__item:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 1.5px var(--line), 0 6px 18px -12px rgba(27, 24, 56, .25); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: none; animation: none; }
}

/* =========================================================
   SCROLLBAR
   ========================================================= */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  border: 3px solid var(--bg); border-radius: 999px; min-height: 64px;
  background: linear-gradient(180deg, #8A7CFF 0%, #B07CF5 55%, #FF8A6B 100%) padding-box;
}
::-webkit-scrollbar-thumb:hover { border-width: 2px; background: linear-gradient(180deg, #7B6CF6 0%, #A866F2 55%, #FF7A59 100%) padding-box; }
::-webkit-scrollbar-thumb:active { background: linear-gradient(180deg, #6350F0 0%, #9A55EE 55%, #F2603F 100%) padding-box; }
::-webkit-scrollbar-corner { background: var(--bg); }
:root[data-theme="dark"] ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #8F82FF 0%, #A974F0 55%, #FF8F72 100%) padding-box; }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: #9A8BFF var(--bg); }
}

/* Блок за пределами экрана — его бесконечные анимации на паузе (см. main.js) */
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* Живые цифры — одинаковой ширины, блоки не дёргаются */
.stat__val, .month-badge b, .ring__num b, .bar-row, .chart-tip, .lb__count { font-variant-numeric: tabular-nums; }

/* Небо на боковых полях: днём облака, ночью звёзды (js/sky.js). Под всем содержимым страницы */
.stars { position: fixed; top: 0; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.stars--l { left: 0; }
.stars--r { right: 0; }
.stars.is-on { opacity: 1; }
