/* ============================================
   UmStoria Landing — Light Theme + Violet Primary
   Primary #5A3FFF / Secondary #8B5CF6, без оранжевого
   ============================================ */

:root {
  /* Brand violets */
  --c-primary:        #5A3FFF;
  --c-primary-deep:   #6B4CFF;
  --c-primary-darker: #4A2FE0;
  --c-secondary:      #8B5CF6;
  --c-secondary-soft: #A78BFA;
  --c-violet-soft:    #ECE5FF;
  --c-violet-faint:   #F6F2FF;
  --c-violet-glow:    rgba(90, 63, 255, 0.30);

  /* Page surfaces */
  --c-bg:           #F4F5F6;       /* main page */
  --c-bg-alt:       #FFFFFF;       /* alt sections / cards */
  --c-bg-deep:      #1A1333;       /* footer / final CTA */
  --c-card:         #FFFFFF;
  --c-card-soft:    #FAFBFC;

  /* Text */
  --c-text:         #04121B;
  --c-text-muted:   rgba(4, 18, 27, 0.64);
  --c-text-soft:    rgba(4, 18, 27, 0.48);
  --c-text-faint:   rgba(4, 18, 27, 0.32);
  --c-text-inv:     #FFFFFF;
  --c-text-inv-muted: rgba(255, 255, 255, 0.72);

  /* Lines */
  --c-line:         rgba(4, 18, 27, 0.08);
  --c-line-strong:  rgba(4, 18, 27, 0.12);

  /* Type */
  --font-base: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radius */
  --r-sm:  8px;
  --r:     14px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-full: 999px;

  /* Shadows */
  --sh-sm:    0 1px 2px rgba(4, 18, 27, .04), 0 1px 3px rgba(4, 18, 27, .04);
  --sh:       0 4px 16px rgba(4, 18, 27, .06), 0 2px 4px -2px rgba(4, 18, 27, .04);
  --sh-md:    0 12px 32px rgba(4, 18, 27, .08), 0 4px 8px -2px rgba(4, 18, 27, .04);
  --sh-lg:    0 24px 64px rgba(4, 18, 27, .10), 0 8px 16px -4px rgba(4, 18, 27, .06);
  --sh-violet: 0 20px 60px -10px rgba(90, 63, 255, .35);
  --sh-violet-strong: 0 24px 64px -8px rgba(90, 63, 255, .45);

  /* Transitions */
  --t:  180ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 320ms cubic-bezier(.4, 0, .2, 1);

  /* Layout — full-bleed: контейнер во всю ширину, минимальные поля */
  --max-w: 100%;
  --pad-x: clamp(12px, 1.5vw, 24px);
}

/* ====== Reset ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "pnum" on, "lnum" on;
  overflow-x: clip; /* clip вместо hidden — не ломает position:sticky у потомков */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-primary-deep); }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; padding: 0; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }

/* ====== Typography ====== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--c-text);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 600; }
h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }
p  { margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-violet-soft);
  padding: 6px 12px;
  border-radius: var(--r-full);
  margin: 0 0 16px;
  line-height: 1;
}
.eyebrow-mint { color: var(--c-primary); background: var(--c-violet-soft); }

.lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--c-text-muted);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto 16px;
}

.text-accent       { color: var(--c-primary); }
.text-accent-pink  { color: var(--c-secondary); }
.text-accent-blue  { color: var(--c-secondary); }

/* ====== Layout ====== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

main#main { display: block; }

section {
  padding: clamp(48px, 7vw, 100px) 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}
.section-header h2 { margin-bottom: 12px; }

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t), color var(--t), transform var(--t), box-shadow var(--t);
  -webkit-user-select: none;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-lg { font-size: 17px; padding: 16px 28px; }
.btn-block { display: flex; width: 100%; }

.btn-primary,
.btn-cta {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(90, 63, 255, .28);
}
.btn-primary:hover,
.btn-cta:hover {
  background: var(--c-primary-deep);
  color: #fff;
  box-shadow: 0 8px 24px rgba(90, 63, 255, .4);
}

.btn-secondary {
  background: var(--c-bg-alt);
  color: var(--c-text);
  border: 1.5px solid var(--c-line-strong);
}
.btn-secondary:hover {
  background: var(--c-bg);
  color: var(--c-text);
  border-color: var(--c-primary);
}

.link-btn {
  display: inline;
  background: none;
  border: 0;
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.link-btn:hover { color: var(--c-primary-deep); }

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-bg-alt);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--sh-sm); }
.site-header.scrolled .trust-strip { display: none; }
.site-header.scrolled .header-inner { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
.site-header.scrolled .logo-img { width: 40px; }
.site-header.scrolled .logo-sub { display: none; }
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
  transition: width 80ms linear;
  pointer-events: none;
  z-index: 2;
}

.trust-strip {
  background: var(--c-bg-deep);
  color: var(--c-text-inv-muted);
  font-size: 13px;
  line-height: 1;
  padding: 8px 0;
}
.trust-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.trust-strip-inner span { display: inline-flex; align-items: center; gap: 6px; }
.trust-strip-inner svg { color: var(--c-secondary-soft); }

.header-main { border-bottom: 1px solid var(--c-line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-text);
}
.logo-img { width: 56px; height: auto; transition: width var(--t); }
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.logo-sub { font-size: 12px; color: var(--c-text-muted); line-height: 1; }

.primary-nav ul { display: flex; align-items: center; gap: 28px; }
.primary-nav a {
  font-size: 15px;
  color: var(--c-text);
  font-weight: 500;
  transition: color var(--t);
}
.primary-nav a:hover { color: var(--c-primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { font-size: 14px; padding: 10px 18px; }

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--c-line);
  background: #fff;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--t), color var(--t), background-color var(--t);
}
.header-phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-violet-soft);
  color: var(--c-primary);
  flex-shrink: 0;
}
.header-phone:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.header-phone:hover .header-phone-icon {
  background: var(--c-primary);
  color: #fff;
}
@media (max-width: 1100px) {
  .header-phone-num { display: none; }
  .header-phone { padding: 6px; border-radius: 50%; border: 0; background: var(--c-violet-soft); }
  .header-phone-icon { background: transparent; }
  .header-phone:hover { background: var(--c-primary); }
  .header-phone:hover .header-phone-icon { background: transparent; color: #fff; }
}

.header-social {
  display: flex;
  gap: 6px;
  margin-right: 4px;
}
.header-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--c-violet-soft);
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--t), color var(--t), transform var(--t);
}
.header-social a:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-1px);
}
.header-admin-link {
  font-size: 13px;
  color: var(--c-text-muted);
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--c-line-strong);
}
.header-admin-link:hover { color: var(--c-text); border-color: var(--c-text-soft); }

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line);
  background: var(--c-bg-alt);
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.mobile-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====== Hero ====== */
.hero {
  padding: clamp(24px, 3vw, 40px) 0 clamp(32px, 4vw, 56px);
  background: var(--c-bg);
}
.hero-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: visible; /* tooltip может выйти за грань */
  isolation: isolate;
  background: linear-gradient(135deg, #1A1333 0%, #3B1E7A 100%);
  box-shadow: var(--sh-violet);
  min-height: 580px;
}
/* Внутренняя обёртка клипает картинку и градиент по border-radius карточки */
.hero-card-clip {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 0;
}
.hero-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  user-select: none;
}
.hero-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 19, 51, 0.95) 0%, rgba(26, 19, 51, 0.78) 25%, rgba(26, 19, 51, 0.45) 45%, rgba(26, 19, 51, 0.1) 65%, transparent 80%);
  z-index: 1;
  pointer-events: none;
}
.hero-card-content {
  position: relative;
  z-index: 2;
  padding: clamp(32px, 5vw, 72px) clamp(24px, 5vw, 64px);
  max-width: 760px;
  color: #fff;
}

/* Geo-приветствие — pill над заголовком, появляется после fetch ipwho.is */
.hero-geo {
  display: inline-block;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  margin: 0 0 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  max-width: 100%;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s ease-out, transform .35s ease-out;
  /* Внутри — обычный inline-текст: пробелы между словами/числом сохраняются */
}
.hero-geo.is-visible { opacity: 1; transform: translateY(0); }
.hero-geo[hidden] { display: none; }
.hero-geo strong { font-weight: 700; color: #fff; }
.hero-geo-emoji { font-size: 14px; vertical-align: -1px; margin-right: 4px; }
.hero-geo-sep { opacity: 0.45; margin: 0 6px; }

/* ⓘ-кнопка с тултипом «как мы узнали город» */
.hero-geo-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  vertical-align: -6px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.14);
  border: 0;
  border-radius: var(--r-full);
  position: relative;
  cursor: help;
  transition: color var(--t), background-color var(--t), transform var(--t);
}
.hero-geo-info:hover, .hero-geo-info:focus, .hero-geo-info.is-open {
  color: #fff;
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.08);
  outline: none;
}
.hero-geo-info svg { display: block; }
.hero-geo-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  padding: 10px 12px;
  background: #fff;
  color: var(--c-text);
  font-size: 12px;
  line-height: 1.45;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease-out;
  text-align: center;
  z-index: 5;
  font-weight: 400;
}
.hero-geo-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #fff;
}
.hero-geo-info:hover .hero-geo-tooltip,
.hero-geo-info:focus .hero-geo-tooltip,
.hero-geo-info.is-open .hero-geo-tooltip { opacity: 1; pointer-events: auto; }

@media (max-width: 480px) {
  .hero-geo { font-size: 12px; padding: 9px 14px; line-height: 1.55; }
  .hero-geo-sep { margin: 0 4px; }
  /* Tooltip-правила для узких экранов уже заданы в @media (max-width: 860px) выше */
}

.hero-title {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 24px;
  color: #fff;
}
.hero-title .text-accent { color: var(--c-secondary-soft); }
.hero-subtitle {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
  max-width: 720px;
}
.hero-feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r);
  backdrop-filter: blur(8px);
  transition: transform var(--t), background-color var(--t);
}
.hero-feature:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.14);
}
.hero-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-feature-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}
.hero-feature-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

/* Скрываем legacy hero элементы */
.hero-grid, .hero-content, .hero-image, .hero-bg-image, .hero-orbit, .hero-stat { display: none; }
.hero-card .hero-content { display: block; } /* если вдруг внутри card был старый wrapper */

/* ====== About / Social ====== */
.section-about, .section-social { background: var(--c-bg); }
.section-social { background: var(--c-bg-alt); }

.about-grid, .social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.section-social .social-content { order: 2; }
.section-social .social-visual  { order: 1; }

.about-image, .social-image {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  background: var(--c-bg-alt);
}
.about-image img, .social-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-overlay, .social-overlay { display: none; }

.about-features {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  color: var(--c-text);
}
.about-features svg {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--c-primary);
  background: var(--c-violet-soft);
  border-radius: var(--r-full);
  padding: 4px;
  width: 22px !important;
  height: 22px !important;
}

.about-lead {
  font-size: 15px;
  color: var(--c-text-muted);
  margin: 24px 0;
}

.about-cta, .social-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* ====== Why ====== */
.section-why { background: var(--c-bg-alt); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.why-card {
  background: var(--c-bg);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  border: 1px solid var(--c-line);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: var(--c-violet-soft);
}
.why-art {
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
  border-radius: var(--r-md);
  background: var(--c-violet-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.why-art img { width: 100%; height: 100%; object-fit: contain; }
.why-card h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; line-height: 1.3; }
.why-card p { font-size: 14px; color: var(--c-text-muted); margin: 0; line-height: 1.5; }

/* ====== Mini-CTA ====== */
.mini-cta { padding: 32px 0; background: var(--c-bg); }
.mini-cta-card {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--c-bg-alt);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--c-line);
}
.mini-cta-card-warm,
.mini-cta-card-blue,
.mini-cta-card-mint {
  background: linear-gradient(135deg, var(--c-violet-faint), var(--c-violet-soft));
  border-color: transparent;
}

.mini-cta-text {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.mini-cta-emoji { font-size: 28px; line-height: 1; }
.mini-cta-text strong { font-size: 17px; font-weight: 600; flex: 1 1 240px; }
.mini-cta-sub { width: 100%; font-size: 14px; color: var(--c-text-muted); margin-top: 2px; }
.mini-cta-form {
  display: flex;
  gap: 8px;
  flex: 1 1 320px;
  max-width: 460px;
  margin-left: auto;
}
.mini-cta-form input {
  flex: 1;
  font: inherit;
  font-size: 16px; /* 16px+ — фикс iOS зума при фокусе */
  padding: 12px 14px;
  border: 1.5px solid var(--c-line-strong);
  border-radius: var(--r-sm);
  background: var(--c-bg-alt);
  color: var(--c-text);
  outline: none;
  transition: border-color var(--t);
}
.mini-cta-form input:focus { border-color: var(--c-primary); }

/* ====== Tariffs ====== */
.section-tariffs { background: var(--c-bg); }

.tariffs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.tariff-card {
  position: relative;
  background: var(--c-bg-alt);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--c-line);
  transition: transform var(--t), box-shadow var(--t);
}
.tariff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.tariff-card-popular {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--c-violet-faint) 130%);
  box-shadow: var(--sh-violet);
  border-color: var(--c-violet-soft);
}
.tariff-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--c-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--r-full);
  box-shadow: var(--sh-sm);
}
.tariff-head h3 { font-size: 28px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.02em; }
.tariff-tagline { font-size: 14px; color: var(--c-text-muted); margin: 0; }
.tariff-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 20px 0 12px;
}
.price-prefix { font-size: 14px; color: var(--c-text-muted); }
.price-value { font-size: 40px; font-weight: 700; color: var(--c-text); letter-spacing: -0.025em; line-height: 1; }
.price-suffix { font-size: 14px; color: var(--c-text-muted); }
.tariff-desc { font-size: 14px; color: var(--c-text-muted); margin: 0 0 20px; min-height: 42px; }
.tariff-features {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 20px 0 0;
  border-top: 1px solid var(--c-line);
}
.tariff-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.4;
}
.tariff-features svg {
  flex: 0 0 16px;
  margin-top: 3px;
  color: var(--c-primary);
}
.tariff-card .btn { margin-top: auto; }

.tariffs-note { text-align: center; margin: 32px auto 0; font-size: 14px; color: var(--c-text-muted); max-width: 560px; }

/* ====== Compare — визуальные карточки «Ум vs Стория» ====== */
.section-compare { background: var(--c-bg-alt); }

.compare-features {
  display: grid;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.compare-feat {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
}
.compare-feat:hover {
  box-shadow: var(--sh-md);
  border-color: var(--c-violet-soft);
  transform: translateY(-2px);
}
.compare-feat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--c-violet-soft);
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.compare-feat h3 {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.compare-feat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  position: relative;
}
.compare-feat-side {
  padding: 14px 16px;
  border-radius: var(--r-md);
  position: relative;
}
.compare-feat-um {
  background: linear-gradient(135deg, var(--c-violet-faint), var(--c-violet-soft));
  border: 1px solid rgba(90, 63, 255, 0.18);
}
.compare-feat-storia {
  background: linear-gradient(135deg, #EBF3FF, #DBE9FF);
  border: 1px solid rgba(45, 127, 249, 0.20);
}
.compare-feat-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-bottom: 8px;
  background: rgba(4, 18, 27, 0.08);
  color: var(--c-text-muted);
}
.compare-feat-um .compare-feat-label {
  background: var(--c-primary);
  color: #fff;
}
.compare-feat-storia .compare-feat-label {
  background: #2D7FF9;
  color: #fff;
}
.compare-feat-litsey {
  background: linear-gradient(135deg, #FFF4EA, #FFE3C7);
  border: 1px solid rgba(249, 115, 22, 0.22);
}
.compare-feat-litsey .compare-feat-label {
  background: #F97316;
  color: #fff;
}
.compare-feat-side p {
  margin: 0;
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.45;
}

@media (max-width: 880px) {
  .compare-feat-row { grid-template-columns: 1fr; gap: 8px; }
  .compare-meta { grid-template-columns: 1fr; }
  .compare-feat { padding: 18px; }
  .compare-feat h3 { margin-bottom: 14px; }
}

.compare-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 24px auto 0;
}
.compare-meta-card {
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  padding: 20px 24px;
  border: 1px solid var(--c-line);
}
.compare-meta-card h4 { font-size: 16px; margin: 8px 0 6px; }
.compare-meta-card p { font-size: 14px; color: var(--c-text-muted); margin: 0; line-height: 1.45; }
.compare-meta-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.compare-meta-um                          { background: linear-gradient(180deg, #fff 0%, var(--c-violet-faint) 130%); border-color: var(--c-violet-soft); }
.compare-meta-um .compare-meta-badge      { background: var(--c-primary); color: #fff; }
.compare-meta-storia                      { background: linear-gradient(180deg, #fff 0%, #EBF3FF 130%); border-color: #DBE9FF; }
.compare-meta-storia .compare-meta-badge  { background: #2D7FF9; color: #fff; }
.compare-meta-litsey                      { background: linear-gradient(180deg, #fff 0%, #FFF4EA 130%); border-color: #FFE3C7; }
.compare-meta-litsey .compare-meta-badge  { background: #F97316; color: #fff; }

/* ====== Process ====== */
.section-process { background: var(--c-bg); }

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: stretch;
}
.process-grid .steps-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.process-side {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  display: flex;
  min-height: 360px;
}
.process-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  transition: transform var(--t), box-shadow var(--t);
}
.step-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.step-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-primary);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.step-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--c-violet-soft);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.step-card:nth-child(2) .step-icon { background: rgba(139, 92, 246, .14); color: var(--c-secondary); }
.step-card:nth-child(3) .step-icon { background: rgba(167, 139, 250, .16); color: var(--c-secondary); }
.step-card:nth-child(4) .step-icon { background: rgba(90, 63, 255, .14); color: var(--c-primary); }
.step-card h3 { font-size: 18px; margin: 0 0 8px; }
.step-card p  { font-size: 14px; color: var(--c-text-muted); margin: 0; line-height: 1.5; }

/* ====== Stats ====== */
.section-stats {
  background: var(--c-bg-deep);
  color: #fff;
}
.section-stats h2 { color: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item {
  padding: 28px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.stat-big {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--c-secondary-soft) 0%, var(--c-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.stat-text { font-size: 14px; color: var(--c-text-inv-muted); line-height: 1.4; }

/* ====== Калькулятор экономии ====== */
.section-calc { background: var(--c-bg); }

.calc-card {
  max-width: 920px;
  margin: 0 auto;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--c-violet-faint) 100%);
  border: 1px solid var(--c-violet-soft);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--sh-violet);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.calc-row { display: flex; flex-direction: column; gap: 12px; }
.calc-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--c-text-muted);
  font-weight: 500;
  flex-wrap: wrap;
}
.calc-label strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.calc-range {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--c-text-soft);
  margin-top: -4px;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--r-full);
  background: linear-gradient(to right,
    var(--c-primary) 0%, var(--c-primary) var(--fill, 50%),
    var(--c-violet-soft) var(--fill, 50%), var(--c-violet-soft) 100%);
  outline: none;
  cursor: pointer;
  margin: 0;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-primary);
  border: 4px solid #fff;
  cursor: grab;
  box-shadow: 0 4px 14px rgba(90, 63, 255, .4);
  transition: transform 150ms;
}
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }
.calc-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.05); }
.calc-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-primary);
  border: 4px solid #fff;
  cursor: grab;
  box-shadow: 0 4px 14px rgba(90, 63, 255, .4);
}
.calc-slider::-moz-range-track { background: transparent; }

.calc-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.calc-result::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.calc-result-block { position: relative; z-index: 1; }
.calc-result-num {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.calc-result-block-money .calc-result-num {
  background: linear-gradient(135deg, #FFEFB8 0%, #FFFFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.calc-result-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}
.calc-cta {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-primary);
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.calc-cta:hover { background: #fff; color: var(--c-primary-deep); box-shadow: 0 8px 24px rgba(0, 0, 0, .15); }

.calc-disclaimer {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--c-text-soft);
  text-align: center;
  margin: 8px 0 0;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .calc-card { grid-template-columns: 1fr; padding: 24px; }
  .calc-result { padding: 24px 20px; }
}

/* ====== Reviews ====== */
.section-reviews { background: var(--c-bg); }

.board-wrap { max-width: 720px; margin: 0 auto; text-align: center; }
.board {
  position: relative;
  background: var(--c-bg-alt);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--sh-md);
}
.board-stage { display: grid; grid-template-columns: 1fr; width: 100%; }
.board-slide {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  opacity: 0;
  transform: scale(.98);
  transition: opacity var(--t-slow), transform var(--t-slow);
  pointer-events: none;
}
.board-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; z-index: 2; }
.board-slide img {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: var(--sh);
  background: #fff;
  object-fit: contain;
}
.board-pin { display: none; }

.board-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--c-bg-alt);
  color: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh);
  border: 1px solid var(--c-line);
  z-index: 3;
  transition: background-color var(--t), color var(--t);
}
.board-nav:hover { background: var(--c-primary); color: #fff; border-color: transparent; }
.board-prev { left: -22px; }
.board-next { right: -22px; }

.board-counter { margin-top: 20px; font-size: 14px; color: var(--c-text-muted); }
.board-counter-sep { margin: 0 4px; }

/* ====== FAQ ====== */
.section-faq { background: var(--c-bg-alt); }
.faq-container { max-width: 880px; }

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.faq-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.faq-tab:hover { border-color: var(--c-primary); }
.faq-tab.is-active { background: var(--c-primary); color: #fff; }
.faq-tab.is-active .faq-tab-count { color: rgba(255, 255, 255, 0.8); }
.faq-tab-count { font-size: 12px; color: var(--c-text-soft); font-weight: 500; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--c-bg);
  border-radius: var(--r-md);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.faq-item.is-open { border-color: var(--c-violet-soft); box-shadow: 0 4px 20px rgba(90, 63, 255, .10); }
.faq-item.is-open .faq-answer { height: auto; }
.faq-item.is-hidden { display: none; }

.faq-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.4;
  transition: background-color var(--t);
}
.faq-trigger:hover { background: var(--c-violet-faint); }
.faq-trigger svg { flex: 0 0 auto; color: var(--c-text-muted); transition: transform var(--t-slow), color var(--t); }
.faq-item.is-open .faq-trigger svg { transform: rotate(45deg); color: var(--c-primary); }
.faq-q { flex: 1; }
.faq-answer { height: 0; overflow: hidden; }
.faq-answer-inner {
  padding: 0 22px 22px;
  font-size: 15px;
  color: var(--c-text-muted);
  line-height: 1.6;
}
.faq-answer-inner p { margin: 0 0 12px; }
.faq-answer-inner p:last-child { margin: 0; }
.faq-answer-inner ul, .faq-answer-inner ol { padding-left: 20px; list-style: disc; margin: 0 0 12px; }
.faq-answer-inner ol { list-style: decimal; }
.faq-answer-inner li { margin-bottom: 6px; }
.faq-answer-inner a { color: var(--c-primary); text-decoration: underline; }

/* ====== Final CTA ====== */
.section-cta { background: var(--c-bg); padding-bottom: clamp(60px, 8vw, 100px); }

.cta-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  background: linear-gradient(135deg, #1A1333 0%, #3B1E7A 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, var(--c-primary) 0%, transparent 55%);
  opacity: 0.32;
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; text-align: center; }
.cta-content h2 { color: #fff; margin: 0 0 16px; }
.cta-content p { color: var(--c-text-inv-muted); font-size: 16px; line-height: 1.55; }
.cta-perks { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; justify-content: center; }
.cta-perks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--c-text-inv-muted);
}
.cta-perks svg { color: var(--c-secondary-soft); }

.cta-form {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 861px) {
  .cta-form { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}

/* ====== Discount countdown — компактная inline-pill ====== */
.discount-banner {
  display: flex;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  background: var(--c-violet-soft);
  color: var(--c-primary);
  padding: 8px 16px;
  border-radius: var(--r-full);
  margin: 0 auto 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.discount-flame { font-size: 14px; line-height: 1; }
.discount-banner-text { white-space: nowrap; }
.discount-banner-time {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.discount-banner-time strong { font-weight: 700; }
.discount-banner-time span {
  font-size: 11px;
  opacity: 0.75;
  margin-right: 4px;
}
.discount-banner-time strong:last-of-type + span { margin-right: 0; }

/* В тёмном Final CTA — светлая полупрозрачная подложка */
.cta-content .discount-banner {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* На узких экранах прячем текст-префикс, оставляем эмодзи + цифры */
@media (max-width: 480px) {
  .discount-banner { padding: 7px 12px; font-size: 12px; gap: 6px; }
  .discount-banner-text { display: none; }
  .discount-banner-time span { font-size: 10px; }
}

/* Form-eyebrow и form-headline (общий заголовок над формами) */
.form-eyebrow {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin: 0 0 12px;
}
.form-eyebrow::before, .form-eyebrow::after {
  content: "—";
  margin: 0 8px;
  color: var(--c-text-soft);
}
.form-headline {
  text-align: center;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.15;
}
.form-discount {
  color: var(--c-primary);
  text-transform: none;
  white-space: nowrap;
}
.cta-content .form-eyebrow { color: var(--c-text-inv-muted); }
.cta-content .form-headline { color: #fff; }
.cta-content .form-eyebrow::before, .cta-content .form-eyebrow::after { color: rgba(255, 255, 255, 0.4); }
.cta-content .form-discount { color: var(--c-secondary-soft); }

/* ====== Banner блоки ====== */
.why-banner, .process-banner {
  margin: clamp(24px, 4vw, 40px) auto 0;
  max-width: 880px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  background: var(--c-bg);
}
.why-banner img, .process-banner img { width: 100%; height: auto; display: block; }
.why-banner-top { margin: 0 auto clamp(24px, 4vw, 40px); }

/* ====== Process video — кастомный HTML5 плеер ====== */
.process-video {
  margin: clamp(24px, 4vw, 40px) auto 0;
  max-width: 980px;
}
.process-video figcaption {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: var(--c-text-mute, #6b6580);
}
.video-player {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #000;
  box-shadow: var(--sh-md);
  aspect-ratio: 16 / 9;
}
.video-player-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
/* Большая кнопка play по центру (видна когда не играет) */
.video-player-bigplay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(31, 17, 80, 0.35);
  transition: transform var(--t), background-color var(--t);
}
.video-player-bigplay svg { margin-left: 4px; } /* visual offset for play triangle */
.video-player-bigplay:hover { transform: scale(1.08); background: #fff; }
.video-player.is-playing .video-player-bigplay { opacity: 0; pointer-events: none; transform: scale(0.7); }
.video-player-bigplay { transition: transform 0.35s ease, opacity 0.35s ease, background-color 0.2s ease; }

/* Контролы внизу */
.vp-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.video-player.is-playing .vp-controls,
.video-player:hover .vp-controls,
.video-player.vp-show-controls .vp-controls {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.vp-btn {
  background: transparent;
  border: 0;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color var(--t);
}
.vp-btn:hover { background: rgba(255, 255, 255, 0.15); }
.vp-i { display: none; }
.video-player .vp-i-play  { display: block; }
.video-player.is-playing .vp-i-play  { display: none; }
.video-player.is-playing .vp-i-pause { display: block; }
.video-player .vp-i-vol  { display: block; }
.video-player.is-muted .vp-i-vol  { display: none; }
.video-player.is-muted .vp-i-mute { display: block; }

.vp-spacer { flex: 1; }

@media (max-width: 640px) {
  .vp-controls { gap: 6px; padding: 10px 10px 8px; }
  .vp-btn { width: 32px; height: 32px; }
  /* На мобилке контролы видны всегда (нет hover) */
  .vp-controls { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .video-player-bigplay { width: 64px; height: 64px; }
  .video-player-bigplay svg { width: 28px; height: 28px; }
}

/* ====== Forms ====== */
.form-row { width: 100%; }
.form-row input, .form-row select {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px+ — иначе iOS Safari зумит при фокусе */
  padding: 14px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--c-line-strong);
  background: var(--c-bg-alt);
  color: var(--c-text);
  outline: none;
  transition: border-color var(--t);
  -webkit-appearance: none;
  appearance: none;
}
.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2304121B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-row input:focus, .form-row select:focus { border-color: var(--c-primary); }
.form-row input::placeholder { color: var(--c-text-soft); }

.cta-form .form-row input, .cta-form .form-row select {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.3);
}

.form-disclaimer { font-size: 12px; color: var(--c-text-soft); margin: 8px 0 0; line-height: 1.4; }
.cta-form .form-disclaimer { color: var(--c-text-inv-muted); }
.cta-form .form-disclaimer a { color: #fff; text-decoration: underline; }

/* ====== Footer ====== */
.site-footer {
  background: var(--c-bg-deep);
  color: var(--c-text-inv-muted);
  padding: clamp(40px, 6vw, 72px) 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 14px; font-weight: 600; }

.logo-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--c-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.logo-light .logo-text { color: #fff; font-weight: 700; font-size: 18px; flex-direction: row; gap: 0; }

.footer-tagline { font-size: 14px; line-height: 1.5; margin: 0 0 16px; color: var(--c-text-inv-muted); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--t);
}
.footer-social a:hover { background: var(--c-primary); }

.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-link, .footer-col p a {
  color: var(--c-text-inv-muted);
  transition: color var(--t);
  display: inline-block;
}
.footer-nav a:hover, .footer-link:hover, .footer-col p a:hover { color: #fff; }
.footer-link { display: block; margin-bottom: 6px; font-size: 14px; }
.footer-col .small { font-size: 13px; margin: 0 0 6px; line-height: 1.5; }

.footer-bottom { padding-top: 20px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.4); }
.footer-requisites { margin: 0 0 6px; font-size: 12px; line-height: 1.6; color: rgba(255, 255, 255, 0.45); }
.footer-sep { display: inline-block; margin: 0 8px; opacity: 0.55; }

/* ====== Cookie / 152-ФЗ плашка ====== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: auto;
  bottom: 20px;
  max-width: 380px;
  z-index: 1500;
  background: #fff;
  color: var(--c-text);
  border-radius: 14px;
  box-shadow: 0 18px 40px -10px rgba(31, 17, 80, 0.25), 0 4px 12px rgba(31, 17, 80, 0.08);
  border: 1px solid var(--c-line);
  animation: cookieIn 0.35s ease both;
}
@keyframes cookieIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 0;
}
.cookie-banner-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--c-text-mute, #4b4660);
  flex: 1;
}
.cookie-banner-text a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-btn {
  flex-shrink: 0;
  border: 0;
  background: var(--c-primary);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background-color var(--t), transform var(--t);
}
.cookie-banner-btn:hover { background: var(--c-secondary); transform: translateY(-1px); }
@media (max-width: 768px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: calc(var(--mbb-h, 72px) + 8px);
    max-width: none;
    border-radius: 14px;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .cookie-banner-text { font-size: 12px; text-align: left; }
  .cookie-banner-btn { width: 100%; padding: 11px 16px; }
}

/* ====== Modal ====== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 27, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.modal-dialog {
  position: relative;
  z-index: 1;
  background: var(--c-bg-alt);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 36px);
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: var(--sh-lg);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--c-bg);
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--t), color var(--t);
}
.modal-close:hover { background: var(--c-violet-soft); color: var(--c-primary); }
.modal-title { margin: 0 0 12px; font-size: 24px; padding-right: 36px; }
.modal-lead { font-size: 15px; color: var(--c-text-muted); margin: 0 0 24px; line-height: 1.5; }
.modal-form { display: flex; flex-direction: column; gap: 12px; }
.modal-form .btn-block { margin-top: 8px; }

body.modal-open { overflow: hidden; }

/* Pill group */
.pill-group { border: 0; padding: 0; margin: 0 0 12px; }
.pill-group-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  margin-bottom: 8px;
  padding: 0;
}
.pill-options { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--c-bg);
  border: 1.5px solid var(--c-line-strong);
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t), color var(--t);
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:hover { border-color: var(--c-primary); }
.pill.is-checked { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* Mobile menu — JS ставит body.menu-open, CSS подцепляется через эту цепочку */
body.menu-open { overflow: hidden; }
body.menu-open .primary-nav ul {
  position: fixed;
  inset: 60px 0 0;
  flex-direction: column;
  align-items: stretch;
  background: var(--c-bg-alt);
  padding: 24px 24px 120px;
  gap: 4px;
  overflow-y: auto;
  z-index: 99;
}
body.menu-open .primary-nav ul li { width: 100%; }
body.menu-open .primary-nav ul a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 17px;
}
body.menu-open .primary-nav ul a:hover { background: var(--c-bg); }

.hide-mobile { display: inline; }

/* ====== AI-Chat виджет ====== */
.ai-chat { /* контейнер только хост для launcher+panel, position fixed на детях */ }

/* Launcher — круглая кнопка-аватар с маскотом, pulse и AI-бейджем */
.ai-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 95;
  box-shadow: 0 12px 28px rgba(90, 63, 255, .45), 0 0 0 4px rgba(255, 255, 255, .9);
  transition: transform var(--t), box-shadow var(--t);
  padding: 0;
  overflow: visible;
}
.ai-chat-launcher:hover { transform: scale(1.06); }
.ai-chat-launcher-img {
  width: 52px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25));
}
.ai-chat-launcher-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--c-primary);
  z-index: 1;
  opacity: 0;
  animation: ai-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ai-pulse {
  0%   { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0;    transform: scale(1.6); }
}
.ai-chat-launcher-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fff;
  color: var(--c-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: var(--r-full);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  z-index: 3;
}

.ai-chat.is-open .ai-chat-launcher-pulse { animation: none; opacity: 0; }

/* Tooltip-pill рядом с launcher'ом — auto-привлекает внимание через 2.5с после загрузки */
.ai-chat-launcher-tip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  padding: 8px 14px;
  background: #fff;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(4, 18, 27, .15);
  pointer-events: none;
  opacity: 0;
  transform: translate(16px, -50%);
  z-index: 4;
  animation: ai-tip-attention 8s ease 2.5s 1 forwards;
}
.ai-chat-launcher-tip::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -6px;
  border: 6px solid transparent;
  border-left-color: #fff;
}
@keyframes ai-tip-attention {
  0%, 100% { opacity: 0; transform: translate(16px, -50%); }
  6%, 75%  { opacity: 1; transform: translate(0, -50%); }
}
/* Hover на десктопе — снова показывает */
.ai-chat-launcher:hover .ai-chat-launcher-tip {
  opacity: 1;
  transform: translate(0, -50%);
  animation: none;
}
/* Скрываем когда чат открыт */
.ai-chat.is-open .ai-chat-launcher-tip {
  opacity: 0 !important;
  animation: none;
}

/* Panel */
.ai-chat-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 140px);
  background: var(--c-bg-alt);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -10px rgba(4, 18, 27, .25), 0 12px 24px rgba(4, 18, 27, .12);
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 96;
  animation: ai-panel-in .25s cubic-bezier(.34, 1.56, .64, 1);
}
.ai-chat-panel[hidden] { display: none; }
@keyframes ai-panel-in {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  color: #fff;
  flex: 0 0 auto;
}
.ai-chat-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ai-chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .25);
  padding: 4px;
  flex: 0 0 auto;
}
.ai-chat-title strong { display: block; font-size: 15px; line-height: 1.2; color: #fff; }
.ai-chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, .8);
  margin-top: 2px;
}
.ai-chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #75F0A6;
  box-shadow: 0 0 8px rgba(117, 240, 166, .8);
}
.ai-chat-close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background-color var(--t);
}
.ai-chat-close:hover { background: rgba(255, 255, 255, .35); }

/* Messages */
.ai-chat-messages {
  flex: 1 1 auto;
  min-height: 0; /* критично для flex-child со скроллом — без этого может расти бесконечно */
  overflow-y: auto;
  overscroll-behavior: contain; /* скролл внутри чата не проваливается в body */
  -webkit-overflow-scrolling: touch;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--c-bg);
  scroll-behavior: smooth;
}
.ai-chat-messages::-webkit-scrollbar { width: 6px; }
.ai-chat-messages::-webkit-scrollbar-thumb { background: var(--c-line-strong); border-radius: 3px; }
.ai-chat-panel { overscroll-behavior: contain; }

.ai-msg {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
  border-radius: 16px;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ai-msg-assistant {
  align-self: flex-start;
  background: var(--c-bg-alt);
  color: var(--c-text);
  border: 1px solid var(--c-line);
  border-bottom-left-radius: 4px;
}
.ai-msg-user {
  align-self: flex-end;
  background: var(--c-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg-error {
  align-self: stretch;
  text-align: center;
  background: rgba(220, 38, 38, .08);
  color: #B91C1C;
  border: 1px solid rgba(220, 38, 38, .15);
  font-size: 13px;
  max-width: none;
}
.ai-msg-typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px 16px;
}
.ai-msg-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-text-faint);
  animation: ai-typing 1.2s ease-in-out infinite;
}
.ai-msg-typing span:nth-child(2) { animation-delay: .2s; }
.ai-msg-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes ai-typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-4px); }
}

/* Form */
.ai-chat-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  background: var(--c-bg-alt);
  border-top: 1px solid var(--c-line);
  flex: 0 0 auto;
}
.ai-chat-input {
  flex: 1;
  font: inherit;
  font-size: 16px; /* 16px+ — фикс iOS-зума при фокусе */
  padding: 10px 14px;
  border: 1.5px solid var(--c-line-strong);
  border-radius: var(--r-md);
  background: var(--c-bg);
  color: var(--c-text);
  outline: none;
  resize: none;
  max-height: 120px;
  line-height: 1.4;
  overflow-y: hidden; /* по умолчанию скрыт; auto-resize в JS показывает scroll только когда надо */
  transition: border-color var(--t);
  scrollbar-width: thin;
}
.ai-chat-input:focus { border-color: var(--c-primary); }
.ai-chat-input::-webkit-scrollbar { width: 4px; }
.ai-chat-input::-webkit-scrollbar-thumb { background: var(--c-line-strong); border-radius: 2px; }
.ai-chat-send {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: var(--r-md);
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--t), transform var(--t);
}
.ai-chat-send:hover { background: var(--c-primary-deep); }
.ai-chat-send:active { transform: scale(.95); }
.ai-chat-send:disabled { opacity: .5; cursor: not-allowed; }

.ai-chat-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px 8px;
  background: var(--c-bg-alt);
  font-size: 11px;
  color: var(--c-text-soft);
  flex: 0 0 auto;
  border-top: 1px solid var(--c-line);
}
.ai-chat-reset {
  font-size: 11px;
  color: var(--c-primary);
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
}
.ai-chat-reset:hover { color: var(--c-primary-deep); }

/* Mobile */
@media (max-width: 860px) {
  .ai-chat-launcher {
    bottom: 100px; /* над mobile-bottom-bar */
    right: 16px;
    width: 54px;
    height: 54px;
  }
  .ai-chat-launcher-img { width: 44px; }
  .ai-chat-launcher-badge { font-size: 9px; padding: 2px 6px; }

  /* Чат на мобилке — fullscreen-панель: dvh адаптируется под клавиатуру и не «прыгает» */
  .ai-chat-panel {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    width: auto;
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .ai-chat-launcher-tip { display: none; } /* на тач-устройствах прячем — там badge AI и так понятно */
  /* Блокировка скролла body когда чат-панель fullscreen */
  body.ai-chat-open { overflow: hidden; }
  body.ai-chat-open .mobile-bottom-bar { display: none; } /* нижний бар тоже скрываем за чатом */
}

/* ====== Promo popup ====== */
.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.promo-popup[hidden] { display: none; }
.promo-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 19, 51, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
  animation: promo-fade-in .25s ease-out;
}
.promo-popup-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0;
  align-items: stretch;
  background: linear-gradient(135deg, #FFFFFF 0%, #F4EEFF 50%, #ECE5FF 100%);
  border-radius: var(--r-xl);
  max-width: 440px;
  width: 100%;
  overflow: visible; /* маскот выходит за грань карточки */
  box-shadow: 0 24px 60px -10px rgba(90, 63, 255, .35), 0 12px 24px rgba(4, 18, 27, .12);
  border: 1px solid rgba(255, 255, 255, .8);
  animation: promo-pop-in .35s cubic-bezier(.34, 1.56, .64, 1);
}
@keyframes promo-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes promo-pop-in {
  from { opacity: 0; transform: translateY(20px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.promo-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .92);
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background-color var(--t), color var(--t), transform var(--t);
  box-shadow: 0 2px 8px rgba(4, 18, 27, .08);
}
.promo-popup-close:hover {
  background: var(--c-violet-soft);
  color: var(--c-primary);
  transform: rotate(90deg);
}

/* Маскот живёт в левой колонке, изображение позиционируется absolute и вылезает наружу */
.promo-popup-mascot {
  position: relative;
  min-height: 150px;
  overflow: visible;
}
/* Glow следует за маскотом и выходит за грани карточки (по горизонтали) */
.promo-popup-mascot::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -50px;
  width: 220px;
  height: 110px;
  background: radial-gradient(ellipse at 40% 50%, rgba(90, 63, 255, .42) 0%, rgba(139, 92, 246, .22) 35%, transparent 70%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}
.promo-popup-mascot img {
  position: absolute;
  bottom: -6px;
  left: -28px;
  width: 180px;
  height: auto;
  display: block;
  z-index: 2;
  filter: drop-shadow(0 10px 20px rgba(90, 63, 255, .4));
  pointer-events: none;
}

.promo-popup-content {
  padding: 22px 44px 22px 8px; /* +44px справа — чтобы заголовок не уехал под X */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.promo-popup-title {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.promo-popup-text {
  font-size: 13px;
  color: var(--c-text-muted);
  margin: 0 0 16px;
  line-height: 1.45;
}
.promo-popup-btn {
  align-self: flex-start;
  font-size: 14px;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  box-shadow: 0 6px 18px rgba(90, 63, 255, .35);
}

@media (max-width: 480px) {
  .promo-popup { padding: 12px; }
  .promo-popup-card {
    grid-template-columns: 100px 1fr;
    max-width: 360px;
  }
  .promo-popup-mascot { min-height: 130px; }
  .promo-popup-mascot::before {
    bottom: -18px; left: -40px; width: 180px; height: 90px;
  }
  .promo-popup-mascot img { width: 150px; left: -24px; bottom: -4px; }
  .promo-popup-content { padding: 16px 40px 16px 4px; } /* +40 справа клир X */
  .promo-popup-title { font-size: 17px; }
  .promo-popup-text { font-size: 12px; margin-bottom: 12px; }
  .promo-popup-btn { font-size: 13px; padding: 9px 16px; align-self: stretch; }
}

/* ====== Banners full-bleed на мобильнике для читаемости ====== */
@media (max-width: 768px) {
  .why-banner, .process-banner {
    max-width: none;
    margin-left: calc(var(--pad-x) * -1);
    margin-right: calc(var(--pad-x) * -1);
    border-radius: 0;
  }
  .process-side {
    margin-left: calc(var(--pad-x) * -1);
    margin-right: calc(var(--pad-x) * -1);
    border-radius: 0;
  }
}

/* ====== Mobile bottom bar ====== */
.mobile-bottom-bar { display: none; }

@media (max-width: 860px) {
  body { padding-bottom: 88px; } /* зазор под фиксированный бар */
  body.modal-open, body.menu-open { padding-bottom: 0; } /* при открытой модалке убираем чтобы не было баг */
  body.modal-open .mobile-bottom-bar,
  body.menu-open .mobile-bottom-bar { display: none; }

  .mobile-bottom-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--c-bg-alt);
    padding: 8px 16px max(8px, env(safe-area-inset-bottom)) 16px;
    border-top: 1px solid var(--c-line);
    box-shadow: 0 -6px 24px rgba(4, 18, 27, .08);
    z-index: 90;
  }
}

.mbb-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  text-decoration: none;
  color: var(--c-text-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  transition: color var(--t);
  min-height: 56px;
}
.mbb-action:hover { color: var(--c-primary); }
.mbb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--c-primary);
}
.mbb-label { white-space: nowrap; }

.mbb-logo {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  background: var(--c-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(90, 63, 255, .35), 0 0 0 4px var(--c-bg-alt);
  margin-top: -26px;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
  padding: 0;
}
.mbb-logo:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(90, 63, 255, .5), 0 0 0 4px var(--c-bg-alt); }
.mbb-logo img {
  width: 44px;
  height: auto;
  /* без filter — оригинальный цвет */
}
.mbb-logo-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-bg-alt);
  box-shadow: 0 2px 8px rgba(90, 63, 255, .4);
  pointer-events: none;
}
.mbb-logo[aria-expanded="true"] .mbb-logo-badge {
  background: var(--c-primary-deep);
}

.mbb-menu {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  padding: 8px;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--c-line);
  min-width: 240px;
  max-width: calc(100vw - 32px);
  z-index: 91;
}
.mbb-menu[hidden] { display: none; }
.mbb-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--c-bg-alt);
}
.mbb-menu ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mbb-menu ul a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  font-size: 15px;
  color: var(--c-text);
  font-weight: 500;
  transition: background-color var(--t), color var(--t);
}
.mbb-menu ul a:hover { background: var(--c-violet-faint); color: var(--c-primary); }

/* Социалки внизу popup-меню в баре */
.mbb-menu-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px 4px;
  margin-top: 6px;
  border-top: 1px solid var(--c-line);
}
.mbb-social {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: var(--c-violet-soft);
  color: var(--c-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  transition: background-color var(--t), color var(--t), transform var(--t);
}
.mbb-social:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* Хедер на мобильнике полностью скрыт — всё нужное в нижнем баре */
  .site-header { display: none; }
  .hide-mobile { display: none; }

  /* Hero — картинка сверху, текст снизу на тёмном градиенте */
  .hero { padding: 16px 0 24px; }
  .hero-card {
    min-height: 640px;
    border-radius: var(--r-lg);
    display: flex;
    align-items: flex-end;
  }
  .hero-card-bg {
    object-position: 65% top;
  }
  .hero-card-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 19, 51, 0.25) 30%, rgba(26, 19, 51, 0.82) 55%, rgba(26, 19, 51, 0.96) 100%);
  }
  .hero-card-content {
    max-width: 100%;
    padding: 28px 20px;
    width: 100%;
  }
  /* Geo-pill на мобилке: верхний отступ, тултип ПОД кнопкой (вверху не помещается) */
  .hero-geo { margin-bottom: 16px; }
  .hero-geo-tooltip {
    width: calc(100vw - 56px);
    max-width: 280px;
    left: auto;
    right: -8px;
    transform: none;
    bottom: auto;
    top: calc(100% + 10px);
  }
  /* Стрелка теперь вверх (указывает на кнопку выше) */
  .hero-geo-tooltip::after {
    top: auto;
    bottom: 100%;
    left: auto;
    right: 12px;
    transform: none;
    border-top-color: transparent;
    border-bottom-color: #fff;
  }
  .hero-title { font-size: clamp(26px, 7vw, 40px); margin-bottom: 16px; }
  .hero-subtitle { font-size: 15px; margin-bottom: 24px; }
  .hero-cta { gap: 10px; margin-bottom: 24px; flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .hero-features { gap: 8px; max-width: none; }
  .hero-feature { padding: 12px 12px; }
  .hero-feature-title { font-size: 11px; }
  .hero-feature-desc { font-size: 12px; }

  .about-grid, .social-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-social .social-content { order: 1; }
  .section-social .social-visual  { order: 2; }
  .about-cta, .social-cta { flex-direction: column; align-items: stretch; }
  .about-cta .btn, .social-cta .btn { width: 100%; }

  .tariffs-grid { grid-template-columns: 1fr; }
  .compare-meta { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Mini-CTA — input + кнопка вертикально */
  .mini-cta-card { padding: 20px; gap: 16px; }
  .mini-cta-form { margin-left: 0; flex-direction: column; max-width: none; }
  .mini-cta-form input, .mini-cta-form .btn { width: 100%; }

  .board-prev { left: 8px; width: 40px; height: 40px; }
  .board-next { right: 8px; width: 40px; height: 40px; }

  /* Final CTA — кнопка submit full-width */
  .cta-form { padding: 20px; }
}


@media (max-width: 560px) {
  body { font-size: 15px; }
  .why-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .trust-strip { font-size: 12px; padding: 6px 0; }
  .trust-strip-inner { justify-content: center; }
  .logo-sub { display: none; }
  .logo-img { width: 44px; }
  .logo-title { font-size: 17px; }

  .hero-features { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tariff-card { padding: 24px 20px; }
  .price-value { font-size: 32px; }
  .tariff-features { padding-top: 16px; }

  .modal-title { font-size: 20px; }
  .cta-card { padding: 24px; border-radius: var(--r-lg); }
  .cta-perks { gap: 8px 14px; }

  .stat-item { padding: 20px 12px; }

  /* About/Social стикеры-картинки полная ширина */
  .about-image, .social-image { border-radius: var(--r-md); }

  /* FAQ — компактные паддинги */
  .faq-trigger { padding: 16px 18px; font-size: 15px; }
  .faq-answer-inner { padding: 0 18px 18px; font-size: 14px; }
  .faq-tabs { gap: 6px; margin-bottom: 24px; }
  .faq-tab { padding: 6px 12px; font-size: 13px; }

  /* Banner-картинки занимают всю ширину */
  .why-banner, .process-banner { border-radius: var(--r-md); }
}

@media (max-width: 380px) {
  .hero-features { grid-template-columns: 1fr; gap: 8px; }
  .stats-grid { grid-template-columns: 1fr; }
  .compare-table tr { grid-template-columns: 1fr auto auto; gap: 8px; padding: 12px; }
}

/* Утилиты */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ====== Documents page (/dokumenty/) ====== */
.docs-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px);
  background:
    radial-gradient(1200px 480px at 50% -200px, rgba(90, 63, 255, 0.12) 0%, transparent 60%),
    var(--c-bg);
}
.docs-hero .eyebrow { margin-bottom: 10px; }
.docs-hero-title {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.docs-hero-lead {
  max-width: 720px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--c-text-mute, #4b4660);
  margin: 0;
}

.docs-content {
  padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 80px);
  background: var(--c-bg);
}
.docs-group {
  margin-bottom: clamp(28px, 4vw, 48px);
}
.docs-group:last-child { margin-bottom: 0; }
.docs-group-title {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.25;
  margin: 0 0 18px;
  letter-spacing: -0.005em;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--c-text);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.doc-card:hover {
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(90, 63, 255, 0.25);
}
.doc-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 52px;
  border-radius: 6px;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  position: relative;
}
.doc-card-icon::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 12px; height: 12px;
  background: rgba(255,255,255,0.35);
  border-bottom-left-radius: 4px;
}
.doc-card-pdf  .doc-card-icon { background: linear-gradient(160deg, #ff5757 0%, #d93232 100%); }
.doc-card-doc  .doc-card-icon { background: linear-gradient(160deg, #4a8cf7 0%, #2563eb 100%); }
.doc-card-xls  .doc-card-icon { background: linear-gradient(160deg, #34d089 0%, #1a8a52 100%); }
.doc-card-web  .doc-card-icon {
  background: var(--c-violet-soft);
  color: var(--c-primary);
}
.doc-card-web .doc-card-icon::before { background: rgba(90, 63, 255, 0.18); }

.doc-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc-card-title {
  font-size: 14.5px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--c-text);
}
.doc-card-note {
  font-size: 12px;
  color: var(--c-primary);
  font-weight: 500;
}
.doc-card-action {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-violet-soft);
  color: var(--c-primary);
  transition: background-color var(--t), color var(--t);
}
.doc-card:hover .doc-card-action {
  background: var(--c-primary);
  color: #fff;
}

.docs-help {
  margin-top: clamp(32px, 4vw, 48px);
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(135deg, var(--c-violet-soft) 0%, #fff 100%);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  text-align: center;
}
.docs-help h3 {
  font-size: clamp(20px, 2.4vw, 24px);
  margin: 0 0 6px;
}
.docs-help p {
  margin: 0 0 18px;
  color: var(--c-text-mute, #4b4660);
}
.docs-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-with-icon svg { flex-shrink: 0; }

/* ====== Универсальные 3D-стикеры (clay-style) ======
   Базовый класс .sticker — абсолютное позиционирование, тонкий float-анимация,
   декоративный (aria-hidden). Размер по дефолту 120px, переопределяется .sticker--XL/L/M/S.
   Позиционирование .sticker-pos-tr/tl/br/bl + сдвиги через --x/--y кастомные свойства. */
.sticker {
  position: absolute;
  width: var(--sticker-w, 120px);
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 8px 20px rgba(31, 17, 80, 0.18));
  animation: stickerFloat 6s ease-in-out infinite;
  z-index: 2;
}
.sticker--xl { --sticker-w: 200px; }
.sticker--l  { --sticker-w: 160px; }
.sticker--m  { --sticker-w: 110px; }
.sticker--s  { --sticker-w: 80px;  }

.sticker-pos-tr { top: var(--y, -30px); right: var(--x, -30px); transform: rotate(8deg);  animation-delay: -1s; }
.sticker-pos-tl { top: var(--y, -30px); left:  var(--x, -30px); transform: rotate(-10deg); animation-delay: -2s; }
.sticker-pos-br { bottom: var(--y, -30px); right: var(--x, -30px); transform: rotate(-6deg); animation-delay: -3s; }
.sticker-pos-bl { bottom: var(--y, -30px); left:  var(--x, -30px); transform: rotate(8deg); animation-delay: -4s; }

@keyframes stickerFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -8px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticker { animation: none; }
}
@media (max-width: 768px) {
  .sticker { --sticker-w: 80px; }
  .sticker--xl { --sticker-w: 130px; }
  .sticker--l  { --sticker-w: 100px; }
  .sticker--m  { --sticker-w: 70px;  }
  .sticker--s  { --sticker-w: 56px;  }
  .sticker-pos-tr,
  .sticker-pos-tl { top: var(--y-mob, -16px); }
  .sticker-pos-br,
  .sticker-pos-bl { bottom: var(--y-mob, -16px); }
}

/* Контейнер должен быть relative и не обрезать стикер по краям */
.has-sticker { position: relative; }

/* FAQ — большая иллюстрация по центру под H2, перед списком вопросов */
.faq-illustration-block {
  display: block;
  margin: clamp(20px, 3vw, 36px) auto clamp(28px, 4vw, 48px);
  max-width: clamp(320px, 50vw, 520px);
}
.faq-illustration {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 768px) {
  .faq-illustration-block { max-width: 320px; margin: 16px auto 24px; }
}

/* Фото аттестата в шаге процесса */
.step-attestat {
  display: block;
  margin: 16px -8px -12px;
}
.step-attestat img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md);
}

/* Стикер -15% в финальной CTA-форме — позиционируется относительно секции,
   чтобы не клипался гридом cta-card. Лежит «нашлёпкой» над правым верхним углом карточки. */
.cta-discount-sticker {
  position: absolute;
  top: clamp(20px, 4vw, 56px);
  right: clamp(20px, 5vw, 80px);
  width: clamp(120px, 14vw, 170px);
  z-index: 6;
  transform: rotate(-8deg);
  filter: drop-shadow(0 10px 22px rgba(31, 17, 80, 0.35));
  pointer-events: none;
  animation: stickerFloat 6s ease-in-out infinite;
}
@media (max-width: 900px) {
  .cta-discount-sticker { width: 110px; top: 12px; right: 12px; }
}
@media (max-width: 640px) {
  .cta-discount-sticker { width: 92px; top: 8px; right: 8px; }
}

/* Скрытый якорь для прямых ссылок (например, /#zayavka — менеджер скидывает клиенту).
   scroll-margin-top нужен, чтобы при заходе по якорю sticky-хедер не закрывал форму. */
.anchor-jump {
  display: block;
  height: 0;
  width: 0;
  overflow: hidden;
  scroll-margin-top: 100px;
}

@media (max-width: 640px) {
  .docs-grid { grid-template-columns: 1fr; }
  .doc-card { padding: 14px 14px; gap: 12px; }
  .doc-card-icon { width: 40px; height: 48px; }
  .doc-card-title { font-size: 14px; }
  .doc-card-action { width: 32px; height: 32px; }
}

/* ====== Legal pages (privacy-policy и пр.) ====== */
.legal-content {
  padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 6vw, 80px);
  background: var(--c-bg);
}
.legal-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}
.legal-article {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--sh-sm, 0 2px 8px rgba(31, 17, 80, 0.04));
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
}
.legal-article > *:first-child { margin-top: 0; }
.legal-article > *:last-child  { margin-bottom: 0; }
.legal-article h1,
.legal-article h2,
.legal-article h3,
.legal-article h4 {
  margin: 1.6em 0 0.6em;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--c-text);
}
.legal-article h1 { font-size: clamp(22px, 2.6vw, 28px); }
.legal-article h2 { font-size: clamp(20px, 2.2vw, 24px); }
.legal-article h3 { font-size: clamp(17px, 1.8vw, 20px); }
.legal-article h4 { font-size: 16px; }
.legal-article p,
.legal-article ul,
.legal-article ol {
  margin: 0 0 1em;
}
.legal-article ul,
.legal-article ol {
  padding-left: 24px;
}
.legal-article li { margin-bottom: 0.4em; }
.legal-article strong { color: var(--c-text); font-weight: 700; }
.legal-article a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-article a:hover { color: var(--c-secondary); }
.legal-article hr {
  border: 0;
  border-top: 1px solid var(--c-line);
  margin: 2em 0;
}
.legal-article blockquote {
  margin: 1.5em 0;
  padding: 14px 18px;
  background: var(--c-violet-soft);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-sm);
  color: var(--c-text-mute, #4b4660);
}

.legal-aside { position: sticky; top: 24px; }
.legal-aside-card {
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--c-violet-soft) 0%, #fff 100%);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.legal-aside-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}
.legal-aside-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-mute, #4b4660);
}
.legal-aside-card p a { color: var(--c-primary); }
.legal-aside-card .btn { color: #fff; }
.legal-aside-meta {
  margin: 14px 4px 0;
  font-size: 12px;
  color: var(--c-text-mute, #6b6580);
  text-align: center;
}

@media (max-width: 900px) {
  .legal-container { grid-template-columns: 1fr; }
  .legal-aside { position: static; }
  .legal-aside-card { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .legal-article { padding: 20px 16px; font-size: 14px; }
  .legal-article ul, .legal-article ol { padding-left: 20px; }
}

/* ============ Сравнительная таблица форматов (3 формата обучения) ============ */
.section-formats { padding: clamp(48px, 7vw, 96px) 0; position: relative; }
.formats-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 6px 4px 10px; margin: 0 -4px; }
.formats-table {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 0 12px;
  min-width: 820px;
  align-items: stretch;
}
.ft-cell { display: flex; flex-direction: column; justify-content: center; }

/* corner */
.ft-corner { padding: 0 20px 26px 4px; justify-content: flex-end; gap: 10px; }
.ft-title { margin: 0; font-size: clamp(26px, 2.6vw, 38px); font-weight: 800; line-height: 1.06; color: var(--c-text); letter-spacing: -0.02em; }
.ft-title-arrow { display: inline-block; font-size: 24px; color: var(--c-primary); transform: rotate(10deg); }

/* column accent colors */
.ft-col-um     { --col: #5A3FFF; --col-grad: linear-gradient(150deg,#6B4CFF,#8B5CF6); --col-bg: #F4F0FF; --col-bg-strong: #E9E0FF; }
.ft-col-storia { --col: #2D7FF9; --col-grad: linear-gradient(150deg,#2D7FF9,#5AA0FF); --col-bg: #EBF3FF; --col-bg-strong: #DBE9FF; }
.ft-col-litsey { --col: #F97316; --col-grad: linear-gradient(150deg,#F97316,#FB9D4B); --col-bg: #FFF4EA; --col-bg-strong: #FFE6D0; }

/* heads */
.ft-head {
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 26px 16px 20px;
  background: var(--col-bg-strong);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.ft-head-ic {
  width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  margin-bottom: 6px;
  background: var(--col-grad);
  color: #fff;
  box-shadow: 0 10px 22px -8px var(--col);
}
.ft-head-ic svg { display: block; stroke: #fff; }
.ft-head-letter { font-size: 34px; font-weight: 800; line-height: 1; color: #fff; }
.ft-head h3 { margin: 0; font-size: clamp(20px, 1.8vw, 25px); font-weight: 800; color: var(--col); }
.ft-head p { margin: 0; font-size: 13px; line-height: 1.35; color: var(--c-text-muted); max-width: 190px; min-height: 36px; }

/* feature label cells (col 1) */
.ft-feature {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 0 16px 0 4px;
  min-height: 68px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-line);
}
.ft-feature.is-last { border-bottom: 0; }
.ft-feat-text { flex: 1; }
.ft-feat-ic {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  color: var(--c-primary);
}
.ft-feat-ic svg { display: block; }
.ft-feature em { font-style: normal; color: var(--c-text-soft); font-weight: 600; }

/* value cells */
.ft-val {
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 68px;
  padding: 10px 8px;
  background: var(--col-bg);
  border-bottom: 1px solid rgba(255,255,255,.75);
}
.ft-val.is-last { border-bottom: 0; }
.ft-mark {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  flex: 0 0 auto;
}
.ft-mark svg { display: block; stroke: currentColor; }
.ft-mark-yes { color: #fff; }
.ft-mark-yes svg { stroke: #fff; }
.ft-mark-yes.ft-mark-um     { background: #5A3FFF; }
.ft-mark-yes.ft-mark-storia { background: #2D7FF9; }
.ft-mark-yes.ft-mark-litsey { background: #F97316; }
.ft-mark-no { background: #ECECF2; color: #B4B4C2; }
.ft-mark-no svg { stroke: #B4B4C2; }
.ft-note { font-size: 11.5px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--c-text-muted); }

/* price row */
.ft-price-label { font-size: 16px; font-weight: 750; min-height: 78px; }
.ft-price-label .ft-feat-ic { color: var(--c-primary); }
.ft-price {
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 16px 8px;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  background: var(--col-bg-strong);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  color: var(--col);
}

/* CTA buttons under table */
.formats-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}
.formats-cta .btn { min-width: 210px; }
.btn-litsey {
  background: linear-gradient(135deg, #F97316, #FB923C);
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px -8px rgba(249,115,22,.55);
}
.btn-litsey:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* Кнопки выбора формата — в цвет своей колонки в таблице.
   Раньше «Ум» была серой обводкой рядом с залитой «Сторией» и читалась
   как второсортный вариант. */
.btn-um {
  background: linear-gradient(135deg, #5A3FFF, #8B5CF6);
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px -8px rgba(90,63,255,.55);
}
.btn-storia {
  background: linear-gradient(135deg, #2D7FF9, #5AA0FF);
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px -8px rgba(45,127,249,.55);
}
.btn-um:hover, .btn-storia:hover { filter: brightness(1.05); transform: translateY(-1px); color: #fff; }

@media (max-width: 860px) {
  .formats-scroll { padding-bottom: 6px; }
  .formats-scroll::after {
    content: "← листайте таблицу вбок →";
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--c-text-soft);
    padding-top: 10px;
  }
  .ft-feature { font-size: 14px; gap: 10px; min-height: 60px; }
  .ft-feat-ic { width: 38px; height: 38px; }
  .ft-val, .ft-price-label, .ft-price { min-height: 60px; }
  .formats-cta .btn { min-width: 0; flex: 1 1 100%; }
}

/* ============================================================
   КВИЗ «Подберите формат обучения» — баннер + модалка
   ============================================================ */
.section-quiz { padding: 24px 0 8px; }
.quiz-card {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: clamp(24px, 3.4vw, 38px);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--c-violet-faint), var(--c-violet-soft));
  box-shadow: var(--sh-sm);
}
.quiz-card-text { flex: 1 1 340px; min-width: 0; }
.quiz-card-badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
}
.quiz-card-title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.22; margin: 0 0 10px; }
.quiz-card-sub { margin: 0; color: var(--c-text-muted); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.5; }
.quiz-card-btn { flex: 0 0 auto; }
@media (max-width: 640px) { .quiz-card-btn { width: 100%; } }

.modal-quiz .modal-dialog { max-width: 560px; }
.modal-quiz .quiz-submit[style*="none"] { display: none !important; }
.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding-right: 44px; }
.quiz-progress-track {
  flex: 1; height: 6px; border-radius: 999px;
  background: var(--c-violet-soft); overflow: hidden;
}
.quiz-progress-track span {
  display: block; height: 100%; width: 20%;
  background: var(--c-primary); border-radius: 999px;
  transition: width 0.25s ease;
}
.quiz-progress-label { font-size: 13px; color: var(--c-text-soft); white-space: nowrap; }
.quiz-title { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.3; margin: 0 0 18px; }

.quiz-step { display: none; }
.quiz-step.is-active { display: block; }

.quiz-grades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.quiz-grade input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-grade span {
  display: flex; align-items: center; justify-content: center;
  height: 52px; border-radius: var(--r-md);
  border: 1.5px solid var(--c-line); background: var(--c-card);
  font-size: 18px; font-weight: 600; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.quiz-grade span:hover { border-color: var(--c-secondary-soft); }
.quiz-grade input:checked + span { border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.quiz-grade input:focus-visible + span { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.quiz-options { display: grid; gap: 10px; }
.quiz-option input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-option span {
  display: block; padding: 14px 18px;
  border-radius: var(--r-md); border: 1.5px solid var(--c-line);
  background: var(--c-card); font-size: 15.5px; line-height: 1.4; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quiz-option span:hover { border-color: var(--c-secondary-soft); background: var(--c-violet-faint); }
.quiz-option input:checked + span { border-color: var(--c-primary); background: var(--c-violet-faint); }
.quiz-option input:focus-visible + span { outline: 2px solid var(--c-primary); outline-offset: 2px; }

.quiz-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.quiz-foot .btn { min-width: 118px; }
.quiz-msg { font-size: 13.5px; color: var(--c-text-muted); }
.quiz-prev:disabled { opacity: 0.45; pointer-events: none; }

.quiz-done { text-align: center; }
.quiz-done-ico {
  width: 56px; height: 56px; margin: 4px auto 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--c-violet-soft); color: var(--c-primary);
}
.quiz-done-title { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.3; margin: 0 0 10px; }
.quiz-done .modal-lead { margin-bottom: 22px; }
