/* ============================================================
   NEVOLIN ЕГЭ-2027 — PREMIUM MODERN LIGHT BENTO DESIGN SYSTEM
   Чистый, светлый, высококонверсионный edtech-дизайн (стиль Ds-El)
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --paper: #f8fafc;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --line-focus: rgba(225, 29, 72, 0.35);
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #475569;
  --subtle: #94a3b8;
  --primary: #e11d48;
  --primary-hover: #be123c;
  --primary-light: #fff1f2;
  --primary-border: #fecdd3;
  --primary-glow: rgba(225, 29, 72, 0.22);
  --red: #e11d48;
  --red-dark: #be123c;
  --green: #059669;
  --green-light: #ecfdf5;
  --green-border: #a7f3d0;
  --max: 1220px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px -4px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 16px 32px -6px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 16px 40px -6px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
}

/* Base Reset & Typography */
html {
  background: var(--bg);
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  box-sizing: border-box;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

*, *::before, *::after {
  box-sizing: inherit;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(225, 29, 72, 0.18);
  color: #0f172a;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (pointer: fine) {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #f8fafc;
  }
  ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
    border: 2px solid #f8fafc;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  -webkit-text-fill-color: var(--ink) !important;
  transition: background-color 5000s ease-in-out 0s;
}

body {
  margin: 0;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'Manrope', 'Golos Text', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: var(--ink) !important;
  letter-spacing: -0.015em !important;
  font-weight: 800 !important;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* Global SVG Safety */
svg {
  display: inline-block;
  vertical-align: middle;
}

.tg-svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* Core Layout Containers */
.container {
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
  box-sizing: border-box;
}

.section {
  padding: clamp(60px, 7vw, 96px) 0;
  position: relative;
  box-sizing: border-box;
}

/* Section Headers: Perfectly Centered & Balanced */
.section-head {
  margin-bottom: clamp(36px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-head.text-center {
  align-items: center;
  text-align: center;
}

.section-head.text-center .kicker {
  margin: 0 auto;
}

.section-head.text-center .section-lead {
  margin: 0 auto;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  max-width: 26ch;
}

.section-lead {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 65ch;
  margin: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 5px 14px;
  border-radius: 999px;
  width: fit-content;
  line-height: 1.2;
}

/* Universal Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  min-height: 52px;
  padding: 0 28px;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap !important;
  user-select: none;
  border: 1.5px solid transparent !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              border-color 0.2s ease !important;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-large {
  height: 56px;
  min-height: 56px;
  padding: 0 34px;
  font-size: 16px !important;
}

.btn-primary {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.28) !important;
  border-color: transparent !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.38) !important;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary,
.btn-outline {
  background: #ffffff !important;
  color: var(--ink) !important;
  border: 1.5px solid var(--line-strong) !important;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: #f8fafc !important;
  border-color: var(--ink) !important;
  color: var(--ink) !important;
  transform: translateY(-2px);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

/* Text Link (Telegram Chip) */
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #0284c7 !important;
  font-family: 'Manrope', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: fit-content;
}

.text-link:hover {
  background: rgba(2, 132, 199, 0.16);
  border-color: rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.modal-tg-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  gap: 24px;
  box-sizing: border-box;
}

.bento-card {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: clamp(24px, 3.5vw, 36px) !important;
  box-shadow: var(--shadow-card) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--line-strong) !important;
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-card-hover) !important;
}

/* Header: Clean, Unbroken, 1-Row */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line) !important;
  height: 74px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark,
.brand-mark-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 2px 8px var(--primary-glow);
  flex-shrink: 0;
}

.brand-mark {
  background: var(--primary) !important;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.brand-words {
  display: flex;
  flex-direction: column;
}

.brand-words strong {
  color: var(--ink) !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-words small {
  color: var(--primary) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 20px);
  flex-shrink: 1;
}

.desktop-nav a {
  color: var(--muted) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap !important;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.desktop-nav a:hover {
  color: var(--primary) !important;
  background: var(--primary-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-cta {
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 22px !important;
  font-size: 14px !important;
  white-space: nowrap !important;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.2s ease;
}

.mobile-menu {
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

.mobile-menu a {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 0;
}

/* Hero Section */
.hero {
  position: relative;
  background: radial-gradient(circle at 85% 30%, rgba(225, 29, 72, 0.08) 0%, transparent 55%),
              radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
              var(--bg) !important;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: clamp(28px, 4vh, 48px) 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}

.hero .container {
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(460px, 1.25fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 20px);
  max-width: 660px;
  width: 100%;
}

.hero-chip {
  background: var(--primary-light) !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary-border) !important;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 18px;
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  width: fit-content;
}

.hero h1 {
  font-size: clamp(32px, 3.8vw, 48px) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em;
  color: var(--ink) !important;
  margin: 0;
}

#hero-title {
  font-size: clamp(34px, 4vw, 50px) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  margin: 0 !important;
  max-width: 100% !important;
  text-wrap: initial !important;
}

.hero-title-line {
  display: block;
}

.hero-lead {
  font-size: clamp(15.5px, 1.5vw, 17px) !important;
  color: #334155 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  text-wrap: pretty !important;
  max-width: 620px !important;
}

.hero-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin-top: 6px !important;
  width: 100% !important;
}

.hero-cta-btn {
  width: fit-content !important;
  max-width: none !important;
  height: 54px !important;
  min-height: 54px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  padding: 0 32px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.28) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 12px !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-cta-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.36) !important;
}

.hero-subtle-messengers {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 2px !important;
}

.hero-msg-hint {
  font-size: 13.5px !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.hero-msg-pills {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.hero-note {
  font-size: 13.5px !important;
  color: #15803d !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  margin: 4px 0 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: fit-content !important;
  max-width: 640px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  box-shadow: 0 1px 3px rgba(22, 101, 52, 0.05) !important;
}

.hero-facts {
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  border-radius: 16px !important;
  padding: 16px 22px !important;
  box-shadow: none !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px !important;
  align-items: center !important;
  max-width: 640px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 4px !important;
}

.hero-fact-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.hero-fact-card strong {
  color: #0f172a !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

.hero-fact-card span {
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

/* Hero Visual Stage & Alexander Photo */
.hero-visual-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.portrait-glow {
  position: absolute;
  width: clamp(480px, 55vw, 720px);
  height: clamp(480px, 55vw, 720px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.22) 0%, rgba(244, 63, 94, 0.10) 45%, transparent 70%);
  filter: blur(52px);
  z-index: 0;
  pointer-events: none;
}

.hero-portrait-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge-float {
  position: absolute;
  z-index: 5;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(225, 29, 72, 0.22);
  border-radius: 14px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.16);
  pointer-events: none;
  animation: floatBadge 3.6s ease-in-out infinite alternate;
  white-space: nowrap;
}

.badge-mcko {
  top: 24px;
  left: -12px;
}

.badge-group {
  bottom: 24px;
  right: -12px;
  animation-delay: -1.8s;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-7px); }
}

.badge-float-icon {
  font-size: 20px;
  line-height: 1;
}

.badge-float-text {
  display: flex;
  flex-direction: column;
}

.badge-float-text strong {
  font-size: 13px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
}

.badge-float-text small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.portrait-stage {
  position: relative;
  z-index: 2;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.portrait-stage img {
  width: auto;
  max-width: 100%;
  height: clamp(560px, 72vh, 760px) !important;
  object-fit: contain;
  object-position: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  border: none !important;
  box-shadow: none !important;
  display: block;
  filter: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-stage:hover img {
  transform: scale(1.02);
}

@media (min-width: 961px) {
  .portrait-stage {
    transform: translateY(40px);
  }

  .portrait-stage img {
    width: 108%;
    max-width: none;
  }
}

.portrait-stage figcaption {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff !important;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 6;
}

.final-portrait {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
}

.final-portrait img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.photo-placeholder {
  flex-grow: 1;
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%) !important;
  color: var(--ink) !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.photo-target {
  font-family: 'Manrope', sans-serif !important;
  font-weight: 700;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 12px;
}

figcaption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 8px 12px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

/* Trap Section (Ловушка 55 баллов) */
/* Trap Section (Ловушка 55 баллов) */
.trap-section {
  background: #ffffff !important;
  padding: clamp(36px, 4.5vw, 54px) 0;
}

.trap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.trap-card {
  background: #f8fafc !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 20px 22px !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trap-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
}

.stat-highlight {
  color: var(--primary) !important;
  font-family: 'Manrope', sans-serif !important;
  font-weight: 800 !important;
  font-size: 32px !important;
  line-height: 1;
  margin-bottom: 2px;
}

.trap-card h3 {
  font-size: 16px !important;
  line-height: 1.3 !important;
  color: var(--ink) !important;
  margin: 0 0 2px 0;
  font-weight: 800;
}

.trap-card p {
  color: #475569 !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  margin: 0;
}

/* Quiz Section (Интерактивная диагностика) */
.quiz-section {
  background: var(--bg) !important;
  padding: clamp(32px, 4vw, 48px) 0 !important;
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.85fr);
  gap: clamp(24px, 3.5vw, 40px);
  align-items: start;
}

.quiz-panel {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card) !important;
  padding: clamp(16px, 2.5vw, 24px) !important;
  box-sizing: border-box;
}

.quiz-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.quiz-step-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quiz-percent {
  font-family: 'Manrope', sans-serif !important;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary) !important;
}

.progress-track {
  background: #f1f5f9 !important;
  border-radius: 999px;
  height: 5px !important;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  background: linear-gradient(90deg, #e11d48, #f43f5e) !important;
  border-radius: 999px;
  height: 100%;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.quiz-fieldset legend {
  font-family: 'Manrope', sans-serif !important;
  font-size: clamp(16px, 2vw, 19px) !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  line-height: 1.3 !important;
  margin-bottom: 12px;
  padding: 0;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #f8fafc !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 8px !important;
  color: var(--ink) !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none;
  font-size: 13.5px;
  line-height: 1.4;
}

.quiz-option:hover {
  background: #f1f5f9 !important;
  border-color: var(--line-strong) !important;
  transform: translateX(3px);
}

.quiz-option:has(input:focus-visible) {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.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 !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.quiz-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.quiz-option:has(input:checked) {
  background: var(--primary-light) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 1px var(--primary) !important;
}

.quiz-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-strong) !important;
  background: #ffffff !important;
  flex-shrink: 0;
  display: inline-block;
  transition: all 0.2s ease;
}

.quiz-option input:checked + .quiz-radio {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  box-shadow: inset 0 0 0 4px #ffffff !important;
}

.quiz-option input:checked + .quiz-radio + span {
  font-weight: 700;
  color: var(--ink) !important;
}

.quiz-instant-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
  animation: fadeIn 0.25s ease-out;
}

.quiz-instant-feedback.success {
  background: var(--green-light) !important;
  border-left: 4px solid var(--green) !important;
  color: #065f46 !important;
}

.quiz-instant-feedback.trap {
  background: var(--primary-light) !important;
  border-left: 4px solid var(--primary) !important;
  color: #9f1239 !important;
}

.quiz-instant-feedback strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.quiz-controls .quiz-next {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 20px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
}

.quiz-back {
  background: transparent;
  border: none;
  font-family: 'Manrope', sans-serif !important;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.quiz-back:hover:not(:disabled) {
  background: #f1f5f9;
  color: var(--ink);
}

.quiz-back:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.quiz-error {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
}

/* Quiz Speech Aside (Санек комментирует) */
.quiz-dialogue {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 96px;
  align-items: center;
}

.quiz-photo-slot {
  border-radius: var(--radius);
  overflow: visible;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 0 -6px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.quiz-photo-slot img {
  width: auto;
  max-width: 170px;
  max-height: 175px;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.1));
}

.quiz-photo-slot figcaption {
  display: none;
}

.quiz-speech {
  background: #ffffff !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 16px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
}

.quiz-speech::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 36px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-top: 1.5px solid var(--line);
  border-left: 1.5px solid var(--line);
  transform: rotate(45deg);
}

.speech-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary) !important;
}

.speech-author::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green-light);
}

.quiz-hint-title {
  font-size: 15px !important;
  font-weight: 800;
  margin: 0;
  color: var(--ink) !important;
}

.quiz-hint-copy {
  font-size: 13px !important;
  line-height: 1.45;
  color: #334155 !important;
  margin: 0;
  min-height: 38px;
  transition: opacity 0.2s ease;
}

.quiz-dialogue-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Quiz Final Result View */
.result-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.quiz-result-title {
  font-size: 24px !important;
  margin-bottom: 12px;
}

.quiz-result-situation {
  font-size: 15px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 16px;
}

.quiz-result-advice {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.quiz-result-advice strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.quiz-result-advice p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.quiz-gift-box {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.06) 0%, rgba(244, 63, 94, 0.02) 100%) !important;
  border: 1.5px solid rgba(225, 29, 72, 0.22) !important;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 20px 0;
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.06);
}

.quiz-gift-badge {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.quiz-gift-box strong {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 700;
}

.quiz-gift-box p {
  color: #334155 !important;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px 0;
}

.quiz-gift-note {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 12.5px;
}

.quiz-final-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.quiz-tg-gift-btn {
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 24px !important;
  font-size: 14.5px !important;
  border-radius: 999px !important;
}

.quiz-reset {
  background: none;
  border: none;
  color: var(--muted);
  font: 700 13px Manrope, sans-serif;
  cursor: pointer;
  text-decoration: underline;
  padding: 8px 12px;
}

.quiz-reset:hover {
  color: var(--ink);
}

/* Teacher Section */
.teacher-section {
  background: #ffffff !important;
  padding: clamp(32px, 4vw, 48px) 0 !important;
}

.teacher-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: center;
  min-width: 0;
  width: 100%;
}

.teacher-photo-wrap,
.teacher-media-col,
.teacher-gallery-strip,
.teacher-copy {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.teacher-media-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teacher-video-embed-box {
  background: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.2);
  border: 1px solid var(--line);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.teacher-video-aspect {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  overflow: hidden;
}

.teacher-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.teacher-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  background: #000000;
}

.teacher-video-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 12.5px;
  font-weight: 600;
  flex-wrap: wrap;
}

.video-pill-live {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 6px;
}

.video-pill-text {
  color: #cbd5e1;
  font-size: 13px;
}

.teacher-gallery-strip {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gallery-strip-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gallery-nav-arrows {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.gallery-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0 0 2px 0;
  user-select: none;
}

.gallery-arrow-btn:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.18);
  transform: translateY(-1px);
}

.gallery-arrow-btn:active {
  transform: translateY(0);
}

.teacher-gallery-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.teacher-gallery-track::-webkit-scrollbar {
  height: 5px;
}

.teacher-gallery-track::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.teacher-gallery-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.teacher-gallery-track::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.gallery-thumb-btn {
  position: relative;
  flex: 0 0 135px;
  width: 135px;
  height: 98px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
  scroll-snap-align: start;
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-thumb-btn:hover,
.gallery-thumb-btn:focus-visible {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.18);
  outline: none;
}

.gallery-thumb-btn:hover img {
  transform: scale(1.06);
}

.thumb-caption-pill {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2.5px 6px;
  border-radius: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 1.2;
}

.thumb-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}

.gallery-thumb-btn:hover .thumb-hover-overlay {
  opacity: 1;
}

.thumb-zoom-icon {
  font-size: 14px;
}

.gallery-swipe-hint {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  user-select: none;
}

.video-placeholder {
  flex-grow: 1;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  position: relative;
}

.video-corner {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.video-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.video-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.video-center strong {
  font-size: 18px;
  color: #ffffff;
}

.video-center small {
  color: #94a3b8;
  font-size: 13px;
}

.video-foot {
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.05em;
}

.teacher-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.teacher-badge-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  align-items: flex-start !important;
}

.teacher-badge-line {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
}

.badge-accent {
  background: #fff1f2 !important;
  color: var(--primary) !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  min-height: 28px !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  font: 800 11px Manrope, sans-serif !important;
  letter-spacing: 0.04em !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  max-width: 100% !important;
}

.badge-outline {
  border: 1px solid var(--line-strong) !important;
  color: var(--muted) !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  min-height: 28px !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  font: 800 11px Manrope, sans-serif !important;
  background: #ffffff !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  max-width: 100% !important;
}

.badge-profi {
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1px solid #fecaca !important;
  border-radius: 8px !important;
  padding: 5px 12px !important;
  min-height: 28px !important;
  height: auto !important;
  font: 800 11px 'Manrope', sans-serif !important;
  letter-spacing: 0.04em !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all 0.2s ease !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  max-width: 100% !important;
}

.badge-profi:hover {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  transform: translateY(-1px) !important;
}

.star-svg {
  color: #f59e0b;
  display: inline-block;
  vertical-align: middle;
}

.teacher-copy h3 {
  font-size: clamp(20px, 2.4vw, 26px) !important;
  margin: 2px 0 0;
  line-height: 1.25;
}

.teacher-copy p {
  color: #334155;
  font-size: 14px;
  line-height: 1.48;
  margin: 0;
  word-break: break-word;
}

.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.feature-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #334155;
  font-size: 13.5px;
  line-height: 1.4;
  min-width: 0;
  width: 100%;
}

.feature-bullets li span {
  min-width: 0;
  flex: 1 1 auto;
  word-break: break-word;
}

.check-icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.curator-card {
  background: #f8fafc !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 4px 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.curator-tag {
  color: var(--primary);
  font: 800 9.5px Manrope, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.curator-card strong {
  color: var(--ink) !important;
  font-size: 14.5px;
}

.curator-card p {
  color: var(--muted) !important;
  font-size: 12.5px;
  line-height: 1.42;
  margin: 0;
  word-break: break-word;
}

.curator-audio-preview {
  margin-top: 8px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.curator-audio-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.curator-audio-player {
  width: 100%;
  height: 32px;
  outline: none;
}

.teacher-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin-top: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.teacher-cta-btn {
  max-width: 320px !important;
  width: 100% !important;
  min-height: 48px !important;
  height: auto !important;
  padding: 12px 24px !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  text-align: center !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.22) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.teacher-subtle-messengers {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 2px !important;
}

.teacher-msg-hint {
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.teacher-msg-pills {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* Comparison Section (Формат: Мини-группа vs Альтернативы) */
.comparison-section {
  background: var(--bg) !important;
  padding: clamp(36px, 4.5vw, 56px) 0;
}

.comp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.comp-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comp-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.comp-card-bad {
  background: #ffffff;
  border-color: var(--line);
}

.comp-card-featured {
  background: #ffffff;
  border: 2px solid var(--primary) !important;
  box-shadow: 0 10px 30px -4px rgba(225, 29, 72, 0.15) !important;
}

.comp-card-featured:hover {
  box-shadow: 0 16px 38px -4px rgba(225, 29, 72, 0.22) !important;
}

.comp-card-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #e11d48, #f43f5e);
  color: #ffffff;
  font: 800 10px 'Manrope', sans-serif;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
  white-space: nowrap;
}

.comp-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.comp-badge {
  font: 800 10px 'Manrope', sans-serif;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
  line-height: 1.2;
}

.badge-bad {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-featured {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.comp-card-title {
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: var(--ink);
  margin: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.comp-card-bad .comp-card-title {
  color: #475569;
}

.comp-price-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 68px;
  justify-content: center;
}

.price-featured {
  background: #fff1f2;
  border-color: var(--primary-border);
}

.comp-price-val {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}

.price-featured .comp-price-val {
  color: var(--primary);
}

.comp-price-val small {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.comp-price-note {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.3;
}

.comp-card-divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0 12px;
}

.comp-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.comp-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.comp-item-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.icon-bad {
  background: #fee2e2;
  color: #ef4444;
}

.icon-good {
  background: #ecfdf5;
  color: #10b981;
}

.comp-item-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: #334155;
}

.comp-item-text strong {
  color: var(--ink);
  margin-right: 4px;
}

.comp-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comp-card-verdict {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 8px;
  text-align: center;
  line-height: 1.3;
}

.verdict-bad {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid var(--line);
}

.verdict-good {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid var(--green-border);
}

.comp-action-btn {
  width: 100%;
  height: 44px !important;
  min-height: 44px !important;
  font-size: 13.5px !important;
  margin-top: 2px;
}

.comp-summary-bar {
  margin-top: 20px;
  background: #ffffff;
  border: 1px solid var(--green-border);
  border-radius: var(--radius);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.comp-summary-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.comp-summary-text {
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  margin: 0;
}

.comp-summary-text strong {
  color: var(--ink);
}



/* Program Roadmap Section */
.program-section {
  background: #ffffff !important;
  padding: clamp(40px, 5vw, 64px) 0;
}

.roadmap-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.roadmap-step-card {
  background: #f8fafc !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 18px 20px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.roadmap-step-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.08);
}

.roadmap-step-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-num {
  background: var(--primary-light);
  color: var(--primary);
  font: 800 11px 'Manrope', sans-serif;
  padding: 3px 8px;
  border-radius: 6px;
  line-height: 1;
}

.step-period {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.roadmap-step-card h3 {
  font-size: 14px !important;
  line-height: 1.35 !important;
  color: var(--ink) !important;
  margin: 0;
  font-weight: 800;
}

.roadmap-step-card p {
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.5 !important;
  margin: 0;
}

.program-cta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 18px 24px;
  gap: 20px;
  flex-wrap: wrap;
}

.program-cta-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 65ch;
}

.program-cta-text strong {
  font-size: 14px;
  color: var(--ink);
  font-weight: 800;
}

.program-cta-text span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Artifacts Section (Материалы курса) */
.artifacts-section {
  background: var(--bg) !important;
  padding: clamp(40px, 5vw, 64px) 0;
}

.artifacts-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.artifact-card-modern {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  padding: 22px 20px !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.artifact-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.1);
  border-color: var(--primary-border);
}

.artifact-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.artifact-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.artifact-card-modern:hover .artifact-icon-wrap {
  transform: scale(1.08);
}

.artifact-svg {
  width: 22px;
  height: 22px;
}

.artifact-card-theme-doc .artifact-icon-wrap {
  background: #ffe4e6;
  color: #e11d48;
}

.artifact-card-theme-bank .artifact-icon-wrap {
  background: #ecfdf5;
  color: #059669;
}

.artifact-card-theme-quizlet .artifact-icon-wrap {
  background: #ede9fe;
  color: #7c3aed;
}

.artifact-card-theme-video .artifact-icon-wrap {
  background: #e0f2fe;
  color: #0284c7;
}

.artifact-badge-pill {
  font: 800 11px 'Manrope', sans-serif;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.artifact-card-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: var(--ink) !important;
  margin: 0;
}

.artifact-card-desc {
  font-size: 13px !important;
  color: var(--muted) !important;
  line-height: 1.55 !important;
  margin: 0;
  flex-grow: 1;
}

.artifact-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.artifact-value-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 8px;
}

.chip-check {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}

.artifacts-savings-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
  border: 1px solid #fed7aa !important;
  border-radius: var(--radius) !important;
  padding: 16px 22px;
}

.savings-banner-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
}

.savings-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.savings-banner-text strong {
  font-size: 14px;
  color: #9a3412;
  font-weight: 800;
}

.savings-banner-text p {
  font-size: 13px;
  color: #7c2d12;
  margin: 0;
  line-height: 1.45;
}

/* ==========================================================================
   Classroom / Kitchen Section (Центральный интерактивный экран уроков)
   ========================================================================== */
.classroom-section {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: clamp(48px, 6vw, 72px) 0 !important;
}

.classroom-slider-wrap {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Главная карточка-слайдер */
.classroom-slide-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 36px -10px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  outline: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.classroom-slide-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.12);
}

.classroom-slide-card:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 3px;
}

/* Вьюпорт слайдера */
.classroom-slide-viewport {
  position: relative;
  width: 100%;
  height: clamp(320px, 46vw, 510px);
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.classroom-zoom-btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.classroom-zoom-btn:focus-visible,
.classroom-nav-btn:focus-visible,
.classroom-dot:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}

.classroom-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.classroom-slide-card:hover .classroom-slide-img {
  transform: scale(1.012);
}

/* Верхняя строка внутри вьюпорта */
.classroom-slide-topbar {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  pointer-events: none;
}

.classroom-badge {
  font: 800 11.5px/1 'Manrope', -apple-system, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.classroom-zoom-pill {
  font: 700 11.5px/1 'Manrope', -apple-system, sans-serif;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.15s ease;
}

.classroom-slide-card:hover .classroom-zoom-pill {
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(2, 132, 199, 0.75);
}

/* Стрелки навигации слайдера */
.classroom-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.classroom-nav-btn svg {
  pointer-events: none;
}

.classroom-prev-btn {
  left: 16px;
}

.classroom-next-btn {
  right: 16px;
}

.classroom-nav-btn:hover {
  background: #0284c7;
  border-color: #38bdf8;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.classroom-nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

/* Подсказка при наведении на экран */
.classroom-hover-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font: 700 12px/1 'Manrope', -apple-system, sans-serif;
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.classroom-slide-card:hover .classroom-hover-hint {
  opacity: 1;
}

/* Нижняя панель с описанием и точками */
.classroom-slide-footer {
  padding: 16px 24px 20px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #f1f5f9;
}

.classroom-slide-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.classroom-slide-title {
  font: 800 15px/1.35 'Manrope', -apple-system, sans-serif !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.classroom-slide-hint {
  font: 500 13px/1.5 'Manrope', -apple-system, sans-serif !important;
  color: #475569 !important;
  margin: 0 !important;
}

/* Панель счетчика и точек */
.classroom-slide-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.classroom-counter-text {
  font: 700 13px/1 'Manrope', -apple-system, sans-serif;
  color: #64748b;
  letter-spacing: 0.04em;
  background: #f1f5f9;
  padding: 5px 10px;
  border-radius: 999px;
}

/* Точки пагинации */
.classroom-dots-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.classroom-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.classroom-dot::after {
  content: '';
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -6px;
  right: -6px;
}

.classroom-dot:hover {
  background: #94a3b8;
}

.classroom-dot.active {
  width: 28px;
  background: #0284c7;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.3);
}

/* Нижняя плашка доверия */
.classroom-note-strip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.classroom-note-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.classroom-note-text {
  font: 600 13px/1.45 'Manrope', -apple-system, sans-serif;
  color: #334155;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .classroom-slider-wrap {
    gap: 14px;
  }
  .classroom-slide-card {
    border-radius: 16px;
  }
  .classroom-slide-viewport {
    height: 230px;
  }
  .classroom-slide-topbar {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .classroom-badge {
    font-size: 10px;
    padding: 4px 10px;
  }
  .classroom-zoom-pill {
    font-size: 10px;
    padding: 4px 8px;
  }
  .classroom-nav-btn {
    width: 34px;
    height: 34px;
  }
  .classroom-prev-btn { left: 8px; }
  .classroom-next-btn { right: 8px; }
  .classroom-slide-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px 16px;
    gap: 12px;
  }
  .classroom-slide-title {
    font-size: 14px !important;
  }
  .classroom-slide-hint {
    font-size: 12px !important;
  }
  .classroom-slide-controls {
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
  }
  .classroom-note-strip {
    padding: 10px 14px;
    gap: 10px;
  }
  .classroom-note-text {
    font-size: 12px;
  }
}

/* Testimonials / Social Proof */
.testimonials-section {
  background: #ffffff !important;
  padding: clamp(36px, 4.5vw, 56px) 0 !important;
}

.reviews-shell {
  position: relative;
  overflow: hidden;
  padding: 4px 0 12px;
}

.reviews-track {
  display: flex !important;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px 20px;
}

.reviews-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 290px;
  max-width: 350px;
  scroll-snap-align: start;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              border-color 0.2s ease;
}

.review-card:hover {
  background: #ffffff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

@media (max-width: 960px) {
  .review-card {
    flex: 0 0 calc(50% - 12px);
    min-width: 280px;
  }
}

@media (max-width: 640px) {
  .review-card {
    flex: 0 0 100%;
    min-width: 260px;
  }
}

.review-card header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.review-card header strong {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.2;
}

.review-card header small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.review-card blockquote {
  font-size: 13.5px;
  line-height: 1.5;
  color: #334155;
  margin: 0;
  font-style: normal;
  flex-grow: 1;
}

.review-card footer {
  font-size: 12px;
  color: var(--subtle);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.review-badge-platform {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.review-badge-platform.profi {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.review-badge-platform.avito {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

.review-badge-platform.tg {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.proof-trust-strip {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.trust-strip-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.trust-strip-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.trust-badge-score {
  background: #fef3c7;
  color: #b45309;
  font-weight: 800;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-draft {
  background: #ffffff;
  border: 2px dashed #cbd5e1;
}

.review-draft-tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.review-draft-body {
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviews-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.reviews-controls span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.reviews-controls div {
  display: flex;
  gap: 8px;
}

.reviews-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.reviews-controls button:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.case-stories {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.proof-heading h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 24px;
  text-align: center;
}

/* Cases Carousel */
.cases-shell {
  position: relative;
  overflow: hidden;
  padding: 4px 0 12px;
}

.cases-track {
  display: flex !important;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 4px 18px;
}

.cases-track::-webkit-scrollbar {
  display: none;
}

.case-story {
  flex: 0 0 calc(33.333% - 15px);
  min-width: 300px;
  max-width: 370px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
}

.case-story:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .case-story {
    flex: 0 0 calc(50% - 12px);
    min-width: 290px;
  }
}

@media (max-width: 640px) {
  .case-story {
    flex: 0 0 calc(90% - 8px);
    min-width: 270px;
    scroll-snap-align: center;
  }
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2px;
}

.proof-index {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 8px;
  border-radius: 999px;
}

.case-context {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  margin: 0;
}

.case-evidence {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  background: #0f172a;
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-evidence img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-evidence-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.case-evidence-trigger:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

.case-evidence:hover img {
  transform: scale(1.035);
}

.case-evidence-caption {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.case-evidence:hover .case-evidence-caption {
  background: var(--primary);
}

.case-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.case-info h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}

.case-path {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.case-step {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  line-height: 1.35;
}

.case-step-problem {
  border-left: 3px solid #ef4444;
}

.case-step-work {
  border-left: 3px solid #3b82f6;
}

.case-step-outcome {
  border-left: 3px solid #10b981;
  background: #f0fdf4;
}

.step-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 3px;
  flex-shrink: 0;
}

.step-badge-red {
  background: #fee2e2;
  color: #b91c1c;
}

.step-badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.step-badge-green {
  background: #dcfce7;
  color: #15803d;
}

.case-step dt {
  margin: 0;
  flex-shrink: 0;
}

.case-step dd {
  margin: 0;
  color: #334155;
  font-size: 11.5px;
  line-height: 1.35;
}

.cases-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 0 4px;
}

.cases-controls span {
  font-size: 13px;
  color: var(--muted);
}

.cases-controls div {
  display: flex;
  gap: 8px;
}

.cases-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.cases-controls button:hover:not(:disabled) {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.05);
}

.cases-controls button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* Lightbox Dialog */
.lightbox-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 90vw;
  max-height: 90vh;
  background: transparent;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.lightbox-dialog::backdrop {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-dialog-inner {
  position: relative;
  background: #0f172a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.lightbox-figure img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  margin: 0;
  padding: 12px 20px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  background: #1e293b;
}

.proof-cta,
.proof-cta-compact {
  margin: 16px auto 0 !important;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px 6px 18px !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  max-width: 500px !important;
  box-shadow: var(--shadow-sm);
}

.proof-cta-compact span {
  font-size: 13px !important;
  font-weight: 700;
  color: var(--ink);
}

.proof-cta-compact .btn-sm {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  font-size: 12.5px !important;
}

/* ============================================================
   TRIAL COMPACT SECTION REDESIGN
   ============================================================ */
.trial-section {
  background: var(--bg) !important;
  padding: clamp(36px, 4.5vw, 56px) 0 !important;
}

.trial-compact-card {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
  background: #ffffff !important;
  border: 1.5px solid var(--primary-border) !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 40px -8px rgba(225, 29, 72, 0.1), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
  padding: clamp(20px, 3vw, 32px);
  position: relative;
  align-items: center;
}

.trial-compact-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #fff5f6 0%, #ffffff 100%);
  border: 1px solid rgba(225, 29, 72, 0.15);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.trial-compact-photo-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 190px;
  background: radial-gradient(circle at 50% 65%, rgba(225, 29, 72, 0.12) 0%, transparent 70%);
  border-radius: 12px;
  overflow: hidden;
}

.trial-alexander-photo {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.12));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.trial-alexander-photo:hover {
  transform: scale(1.03);
}

.trial-live-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #bbf7d0;
  color: #15803d;
  font: 800 10.5px 'Manrope', sans-serif;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.trial-speech-bubble {
  background: #ffffff;
  border: 1px solid rgba(225, 29, 72, 0.16);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
}

.trial-speech-bubble .trial-quote {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 4px 0;
  font-style: italic;
}

.trial-speech-bubble .trial-quote-author {
  font-size: 10.5px;
  color: var(--muted);
  display: block;
}

.trial-compact-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trial-compact-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trial-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trial-duration-pill {
  background: #ffffff;
  color: var(--ink);
  font: 800 11px 'Manrope', sans-serif;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

#trial-title {
  font-size: clamp(20px, 2.3vw, 26px) !important;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}

.trial-compact-lead {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

/* Horizontal 3-Step Micro Strip */
.trial-steps-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 2px 0;
}

.trial-step-pill {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.trial-step-pill:hover {
  background: #ffffff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.trial-step-pill-accent {
  background: #fff5f6;
  border-color: var(--primary-border);
}

.trial-step-pill-accent:hover {
  border-color: var(--primary);
}

.trial-step-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.trial-step-badge {
  background: #ffffff;
  color: var(--primary);
  font: 800 10.5px 'Manrope', sans-serif;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--primary-border);
}

.trial-step-top strong {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 800;
}

.trial-step-pill p {
  font-size: 11.5px;
  line-height: 1.35;
  color: #475569;
  margin: 0;
}

/* Combined Info Bar: Gifts + Schedule */
.trial-compact-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 12px;
}

.compact-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.compact-bar-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.compact-bar-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.3;
}

.compact-bar-text strong {
  color: #166534;
  font-size: 11.5px;
  font-weight: 800;
}

.compact-bar-text span {
  color: #1e293b;
  font-size: 11.5px;
  font-weight: 600;
}

.compact-bar-sep {
  width: 1px;
  height: 24px;
  background: #bbf7d0;
  flex-shrink: 0;
}

/* Action Area */
.trial-compact-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.trial-cta-main {
  height: 44px !important;
  padding: 0 22px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  flex-shrink: 0;
}

.trial-messenger-pair {
  flex: 1;
  max-width: 320px;
}

/* ============================================================
   UNIFIED MESSENGER BUTTON SYSTEM (VK & TELEGRAM TWINS)
   ============================================================ */
.messenger-pair-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.messenger-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 42px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  flex: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.messenger-btn svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* Telegram Button - Branded Twin */
.messenger-btn-tg {
  background: #f0f9ff !important;
  color: #0284c7 !important;
  border: 1.5px solid #bae6fd !important;
}

.messenger-btn-tg svg {
  color: #0284c7 !important;
  fill: currentColor !important;
}

.messenger-btn-tg:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
  transform: translateY(-1.5px) !important;
}

.messenger-btn-tg:hover svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* VK Button - Branded Twin */
.messenger-btn-vk {
  background: #eef6ff !important;
  color: #0077ff !important;
  border: 1.5px solid #b6d9ff !important;
}

.messenger-btn-vk svg {
  color: #0077ff !important;
  fill: currentColor !important;
}

.messenger-btn-vk:hover {
  background: #0077ff !important;
  color: #ffffff !important;
  border-color: #0077ff !important;
  box-shadow: 0 4px 14px rgba(0, 119, 255, 0.3) !important;
  transform: translateY(-1.5px) !important;
}

.messenger-btn-vk:hover svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* Compact Small Variant (Header mobile, Parents, FAQ, Modal) */
.messenger-btn-sm {
  height: 36px !important;
  padding: 0 14px !important;
  font-size: 12.5px !important;
  gap: 6px !important;
}

.messenger-btn-sm svg {
  width: 16px !important;
  height: 16px !important;
}

/* Lightweight Modern Ghost Messenger Pill (Hero, Teacher, Parents) */
.messenger-pill-ghost {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #334155 !important;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.messenger-pill-ghost svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
}

.messenger-pill-ghost[data-vk] svg {
  color: #0077ff !important;
  fill: currentColor !important;
}

.messenger-pill-ghost[data-telegram] svg {
  color: #0284c7 !important;
  fill: currentColor !important;
}

.messenger-pill-ghost:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.07) !important;
}

.messenger-pill-ghost[data-vk]:hover {
  border-color: #9dcbff !important;
  background: #f3f9ff !important;
  color: #0066db !important;
}

.messenger-pill-ghost[data-telegram]:hover {
  border-color: #bae6fd !important;
  background: #f0f9ff !important;
  color: #0369a1 !important;
}

/* Parent Section Personal Contacts */
.parent-personal-contacts {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.parent-contact-label {
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 600 !important;
}

.parent-msg-pills {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

/* Legacy button fallbacks for compatibility */
.btn-vk {
  background: #eef6ff !important;
  color: #0077ff !important;
  border: 1.5px solid #b6d9ff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none !important;
  height: 42px;
  padding: 0 18px;
  font-size: 13.5px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-vk:hover {
  background: #0077ff !important;
  color: #ffffff !important;
  border-color: #0077ff !important;
  box-shadow: 0 4px 14px rgba(0, 119, 255, 0.3) !important;
  transform: translateY(-1.5px);
}

.btn-vk .vk-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

.btn-vk.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px;
}

/* Modal Messengers Wrap */
.modal-messengers-wrap {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.modal-messengers-wrap span {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
}

.modal-messenger-pair {
  width: 100% !important;
  gap: 8px !important;
}

/* Guarantee lock icon in lead forms */
.form-guarantee {
  display: grid !important;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start !important;
  justify-content: start !important;
  gap: 8px !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  color: #64748b !important;
  margin: 8px 0 0 !important;
  padding: 9px 11px;
  border-radius: 10px;
  background: #f8fafc;
  text-align: left !important;
}

.guarantee-lock-svg {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
  color: #94a3b8 !important;
  margin-top: 2px;
}

/* Final Form Messenger Alt */
.final-tg-alt {
  margin-top: 14px !important;
  padding-top: 12px !important;
  border-top: 1px solid #f1f5f9 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  align-items: center !important;
  text-align: center !important;
}

.final-tg-alt span {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #64748b !important;
}

.final-messenger-pair {
  max-width: 360px !important;
  margin: 0 auto !important;
}

/* Footer Messenger Buttons (Twin Dark Theme Pills) */
.footer-contacts-line {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.footer-messenger-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  height: 38px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  font-family: 'Manrope', -apple-system, sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.footer-messenger-btn svg {
  width: 17px !important;
  height: 17px !important;
  flex-shrink: 0 !important;
}

.btn-footer-tg {
  background: rgba(2, 132, 199, 0.12) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.32) !important;
}

.btn-footer-tg:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
  transform: translateY(-1.5px) !important;
}

.btn-footer-vk {
  background: rgba(0, 119, 255, 0.14) !important;
  color: #84bfff !important;
  border: 1px solid rgba(132, 191, 255, 0.32) !important;
}

.btn-footer-vk:hover {
  background: #0077ff !important;
  color: #ffffff !important;
  border-color: #0077ff !important;
  box-shadow: 0 4px 14px rgba(0, 119, 255, 0.3) !important;
  transform: translateY(-1.5px) !important;
}

/* Tariffs Section */
.price-section {
  background: var(--bg) !important;
  padding: clamp(36px, 4.5vw, 56px) 0;
}

.tariffs-grid-compact,
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tariff-card-compact,
.tariff-card {
  padding: 22px 24px !important;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tariff-standard {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-sm);
}

.tariff-hard {
  background: #ffffff !important;
  border: 2px solid var(--primary) !important;
  box-shadow: 0 10px 28px -4px rgba(225, 29, 72, 0.12) !important;
}

.tariff-hard:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -4px rgba(225, 29, 72, 0.18) !important;
}

.tariff-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.tariff-label-tag {
  background: #f1f5f9;
  color: #475569;
  font: 800 10px 'Manrope', sans-serif;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  border-radius: 999px;
  width: fit-content;
}

.card-featured-chip {
  background: linear-gradient(90deg, #e11d48, #f43f5e) !important;
  color: #ffffff !important;
  font: 800 10px 'Manrope', sans-serif;
  letter-spacing: 0.08em;
  padding: 2px 10px;
  border-radius: 999px;
  width: fit-content;
  margin: 0;
}

.tariff-top h3 {
  font-size: 18px !important;
  margin: 0;
  line-height: 1.25;
  color: var(--ink);
}

.tariff-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.tariff-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}

.tariff-price strong {
  font: 800 28px 'Manrope', sans-serif;
  color: var(--ink) !important;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.tariff-hard .tariff-price strong {
  color: var(--primary) !important;
}

.tariff-price small {
  color: var(--muted) !important;
  font-size: 13px;
}

.tariff-subprice {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.tariff-alt-price {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.tariff-features-compact,
.tariff-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.tariff-features-compact li,
.tariff-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #334155 !important;
  font-size: 13.5px;
  line-height: 1.45;
}

.tariff-cta-btn {
  width: 100%;
  height: 46px !important;
  min-height: 46px !important;
  margin-top: auto;
}

.tariffs-compact-footer {
  margin-top: 18px;
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.tariffs-trust-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  flex-wrap: wrap;
}

.dot-sep {
  color: #cbd5e1;
  font-weight: 800;
}

.tariffs-compact-footer .tariff-leadpay-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.tariffs-compact-footer .tariff-leadpay-link:hover {
  color: #be123c;
}

/* Parents Section (Гарантии для родителей) */
.parents-section {
  background: #ffffff !important;
  padding: clamp(36px, 4.5vw, 56px) 0;
}

.parents-guarantee-grid,
.parents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.parent-guarantee-card,
.parent-card {
  background: #f8fafc !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  padding: 20px 18px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.parent-guarantee-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-border);
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
}

.parent-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.parent-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.parent-svg {
  width: 20px;
  height: 20px;
}

.parent-step-pill {
  font: 800 10.5px 'Manrope', sans-serif;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--muted);
}

.parent-guarantee-card h3,
.parent-card h3 {
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin: 0;
  color: var(--ink);
}

.parent-guarantee-card p,
.parent-card p {
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.5 !important;
  margin: 0;
}

.parent-personal-banner {
  margin-top: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
  border: 1.5px solid var(--primary-border);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.5vw, 24px);
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 24px);
  box-shadow: 0 10px 25px -4px rgba(225, 29, 72, 0.08);
}

.parent-personal-avatar-wrap {
  position: relative;
  width: clamp(96px, 11vw, 120px);
  height: clamp(96px, 11vw, 120px);
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #ffe4e6 100%);
  border: 3px solid var(--primary-border);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parent-personal-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.parent-personal-status-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10b981;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.parent-personal-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.parent-personal-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.parent-personal-kicker {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.parent-personal-author {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 800;
}

.parent-personal-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.parent-personal-quote {
  margin: 0;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
  font-style: normal;
}

.parent-personal-contacts {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.parent-personal-tg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px !important;
  font-weight: 700;
  color: #0284c7 !important;
  text-decoration: none;
  background: rgba(2, 132, 199, 0.1);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 5px 14px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.parent-personal-tg:hover {
  background: rgba(2, 132, 199, 0.2);
  transform: translateY(-1px);
}

.parent-personal-phone {
  font-size: 13px;
  color: var(--muted);
}

.parent-personal-phone strong {
  color: var(--ink);
}

/* FAQ Section */
.faq-section {
  background: var(--bg) !important;
  padding: clamp(36px, 4.5vw, 56px) 0 !important;
}

.faq-accordion-wrap {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-list details,
.faq-item {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 0 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-list details:hover,
.faq-item:hover {
  border-color: var(--line-strong) !important;
  box-shadow: var(--shadow-md);
}

.faq-list details[open],
.faq-item[open] {
  border-color: var(--primary) !important;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.08) !important;
}

.faq-list summary,
.faq-summary {
  padding: 13px 0 !important;
  font-family: 'Manrope', sans-serif;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  gap: 16px;
}

.faq-list summary::-webkit-details-marker,
.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-q {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  text-align: left;
  line-height: 1.4;
  flex-grow: 1;
  transform: none !important;
}

.faq-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--primary) !important;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-list details[open] .faq-icon,
.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-list details[open] .faq-q,
.faq-item[open] .faq-q {
  color: var(--primary) !important;
}

.faq-list details p,
.faq-content p {
  padding: 0 0 12px 0 !important;
  margin: 0;
  font-size: 14px !important;
  line-height: 1.55;
  color: #475569 !important;
}

.faq-contact-card {
  margin: 16px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  color: var(--muted);
  width: fit-content;
}

/* Final Contacts / Booking Form Section */
.final-section {
  background: #ffffff !important;
  padding: clamp(36px, 4.5vw, 56px) 0 !important;
}

.final-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: stretch;
}

.final-portrait-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  background: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.final-portrait {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.final-portrait img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.final-portrait figcaption {
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  background: #f8fafc;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.final-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.final-head-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.final-head-compact h2 {
  font-size: clamp(22px, 3vw, 28px) !important;
  margin: 0;
  line-height: 1.25;
}

.final-lead {
  color: #475569;
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
}

.final-form-card {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.1) !important;
  padding: clamp(18px, 3vw, 24px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}

.form-field label {
  color: #334155 !important;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.form-field input {
  width: 100%;
  min-width: 0;
  height: 44px;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: var(--ink) !important;
  border-radius: 10px !important;
  padding: 0 14px;
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.form-field input:focus {
  border-color: #0f172a !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
  outline: none !important;
}

.form-field input[aria-invalid="true"],
.form-field input:invalid.user-touched {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12) !important;
}

.field-error {
  color: #e11d48;
  font-size: 12px;
  font-weight: 600;
  margin: 4px 0 0;
  display: none;
}

.field-error:not(:empty) {
  display: block;
}

/* Modern Segmented Role Control (replaces outdated fieldset) */
.role-selector-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.role-selector-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155 !important;
}

.role-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 10px;
  gap: 4px;
  border: 1px solid #e2e8f0;
}

.role-segment {
  position: relative;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.role-segment input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.segment-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  border-radius: 7px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
}

.role-segment input[type="radio"]:checked + .segment-pill {
  background: #ffffff;
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.role-segment:hover input[type="radio"]:not(:checked) + .segment-pill {
  color: #0f172a;
}

/* Legacy fallback if .form-options is used */
.form-options {
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 10px 0;
  display: flex;
  gap: 20px;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 600;
  background: #f8fafc;
}

.form-options legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.consent-box {
  margin: 10px 0 4px;
  padding: 12px 13px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.consent-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  margin: 1px 0 0;
  flex-shrink: 0;
  cursor: pointer;
}

.consent-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.consent-copy {
  display: block;
  color: #334155 !important;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
}

.consent-policy-note {
  margin: 9px 0 0 30px;
  color: #64748b;
  font-size: 11.5px;
  line-height: 1.45;
}

.consent-box .legal-inline-btn {
  border: 0;
  padding: 0;
  background: none;
  color: var(--primary);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  text-align: left;
}

.consent-read-link {
  font-size: 11.5px !important;
}

.consent-box .legal-inline-btn:hover {
  color: var(--ink) !important;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.lead-form .submit-btn {
  width: 100%;
  height: 46px;
  font-size: 14.5px;
  font-weight: 800;
  border-radius: 10px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-guarantee {
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
  margin: 6px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.final-tg-alt {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.final-tg-link {
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.final-tg-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

.final-actions {
  display: none !important;
}

.form-success {
  background: var(--green-light) !important;
  border: 1px solid var(--green-border) !important;
  border-radius: var(--radius) !important;
  padding: 20px;
  margin-top: 16px;
}

.form-success strong {
  color: #065f46 !important;
  display: block;
  margin-bottom: 4px;
}

.form-success span {
  color: #334155 !important;
  font-size: 14px;
  display: block;
  margin-bottom: 12px;
}

.honeypot {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

/* Site Footer */
.site-footer {
  background: #0f172a !important;
  border-top: 1px solid #1e293b !important;
  color: #94a3b8 !important;
  padding: 44px 0 28px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 420px;
}

.footer-brand-col strong {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
}

.footer-brand-col span {
  font-size: 13px;
  color: #94a3b8;
}

.footer-credentials {
  font-size: 11.5px;
  color: #64748b;
  margin: 6px 0 0;
  line-height: 1.4;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.footer-legal-btn {
  background: none;
  border: none;
  padding: 0;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease;
}

.footer-legal-btn:hover {
  color: #ffffff;
}

.footer-contacts-line {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #94a3b8;
}

.footer-contacts-line a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-contacts-line a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  text-align: center;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-top:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.footer-top svg {
  width: 16px;
  height: 16px;
}

/* Floating Controls (Compact Horizontal Dock) */
.floating-desktop {
  position: fixed;
  bottom: 20px;
  right: 24px;
  z-index: 90;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 8px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(225, 29, 72, 0.12) !important;
  border-radius: 999px !important;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-desktop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-desktop a,
.floating-desktop button {
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Manrope', sans-serif;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-desktop .floating-vk {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #0077ff !important;
  border: 1px solid #b6d9ff !important;
  box-shadow: 0 4px 14px rgba(0, 119, 255, 0.16), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  padding: 7px 15px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.floating-desktop .floating-vk:hover {
  background: linear-gradient(135deg, #0077ff 0%, #0066db 100%) !important;
  color: #ffffff !important;
  border-color: #0066db !important;
  box-shadow: 0 6px 20px rgba(0, 102, 219, 0.3) !important;
  transform: translateY(-2px);
}

.floating-desktop .floating-telegram {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: #0284c7 !important;
  border: 1px solid #bae6fd !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.16), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  padding: 7px 15px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.floating-desktop .floating-telegram:hover {
  background: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3) !important;
  transform: translateY(-2px);
}

.floating-desktop .floating-callback {
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.32), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
  padding: 8px 18px !important;
  border-radius: 999px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
}

.floating-desktop .floating-callback:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.42) !important;
}

.floating-desktop .floating-top {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  color: var(--ink) !important;
}

.floating-desktop .floating-top:hover {
  background: var(--ink) !important;
  color: #ffffff !important;
  border-color: var(--ink) !important;
  transform: translateY(-2px);
}

.floating-desktop .floating-top svg {
  width: 15px;
  height: 15px;
}

.floating-mobile {
  display: none;
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  right: 12px;
  z-index: 90;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-mobile.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.floating-mobile .btn-primary {
  flex-grow: 1;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.4);
}

.floating-mobile-vk {
  width: 52px;
  height: 52px;
  border-radius: 52px;
  background: linear-gradient(135deg, #0077ff 0%, #0066db 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 102, 219, 0.35);
  text-decoration: none;
}

.floating-mobile-vk span {
  display: none;
}

.floating-mobile-vk svg {
  width: 22px;
  height: 22px;
}

.floating-mobile-telegram {
  width: 52px;
  height: 52px;
  border-radius: 52px;
  background: #229ED9;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(34, 158, 217, 0.35);
  text-decoration: none;
}

.floating-mobile-telegram span {
  display: none;
}

.floating-mobile-telegram svg {
  width: 22px;
  height: 22px;
}

/* Modal Dialog */
dialog.lead-dialog {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 440px;
  width: 92%;
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

dialog.lead-dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-inner {
  position: relative;
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 20px 50px -10px rgba(15, 23, 42, 0.3) !important;
  padding: 20px 22px 18px !important;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.dialog-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.08);
}

.dialog-header {
  margin-bottom: 12px;
  padding-right: 28px;
}

.dialog-header .kicker {
  font-size: 10px !important;
  margin-bottom: 2px !important;
}

.dialog-header #modal-title {
  font-size: 18px !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
  margin: 3px 0 4px !important;
  line-height: 1.25;
}

.dialog-copy {
  color: #64748b !important;
  font-size: 12.5px !important;
  line-height: 1.4 !important;
  margin: 0;
}

/* Modal Form Compactness */
.lead-dialog .form-grid {
  gap: 8px;
  margin-bottom: 8px;
}

.lead-dialog .form-field label {
  font-size: 11.5px;
}

.lead-dialog .form-field input {
  height: 38px !important;
  font-size: 13.5px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
}

@media (max-width: 640px) {
  .lead-form .form-field input {
    font-size: 16px !important;
  }
}

.lead-dialog .role-selector-wrap {
  gap: 4px;
  margin-bottom: 8px;
}

.lead-dialog .role-selector-label {
  font-size: 11.5px;
}

.lead-dialog .role-segmented {
  padding: 2px;
  border-radius: 8px;
  gap: 3px;
}

.lead-dialog .segment-pill {
  height: 30px !important;
  font-size: 12px !important;
  padding: 0 8px !important;
  border-radius: 6px;
}

.lead-dialog .consent-row {
  gap: 10px;
}

.lead-dialog .consent-copy {
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.lead-dialog .form-actions {
  margin-top: 8px;
  gap: 6px;
}

.lead-dialog .submit-btn {
  height: 40px !important;
  font-size: 13.5px !important;
  border-radius: 8px !important;
}

.lead-dialog .form-guarantee {
  font-size: 11px !important;
  margin: 6px 0 0 !important;
}

.lead-dialog .modal-messengers-wrap {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.lead-dialog .modal-messengers-wrap span {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
}

.lead-dialog .modal-messenger-pair {
  width: 100% !important;
  gap: 8px !important;
}

/* Legal Documents Modal */
dialog.legal-dialog {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 760px;
  width: 92%;
  overflow: visible;
}

dialog.legal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-dialog-inner {
  position: relative;
  background: #ffffff !important;
  border-radius: 20px !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35) !important;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
  overflow: hidden;
}

.legal-dialog-header {
  padding: 16px 20px 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.legal-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}

.legal-tabs::-webkit-scrollbar {
  display: none;
}

.legal-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 14px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  border-radius: 8px 8px 0 0;
}

.legal-tab:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.5);
}

.legal-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.03);
}

.legal-dialog-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

.legal-dialog-close:hover {
  background: #f1f5f9;
  color: var(--ink);
  transform: scale(1.05);
}

.legal-dialog-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex-grow: 1;
  font-size: 13.5px;
  line-height: 1.6;
  color: #334155;
}

.legal-dialog-body h2 {
  font-size: 20px !important;
  color: var(--ink) !important;
  margin: 0 0 6px !important;
  font-weight: 800;
  line-height: 1.25;
}

.legal-dialog-body h3 {
  font-size: 15px !important;
  color: var(--ink) !important;
  margin: 18px 0 6px !important;
  font-weight: 700;
}

.legal-dialog-body p {
  margin: 0 0 10px;
}

.legal-updated {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
  margin-bottom: 16px !important;
}

.legal-list {
  padding-left: 20px;
  margin: 8px 0 14px;
}

.legal-list li {
  margin-bottom: 6px;
}

.legal-credentials-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 12px;
}

.legal-credentials-card p {
  margin: 0 0 8px;
}

.legal-credentials-card p:last-child {
  margin: 0;
}

.legal-credentials-card a {
  color: var(--primary);
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .hero-grid,
  .teacher-grid,
  .final-grid,
  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 36px;
  }

  .hero-grid > *,
  .teacher-grid > *,
  .final-grid > *,
  .faq-grid > *,
  .teacher-photo-wrap,
  .teacher-media-col,
  .teacher-gallery-strip,
  .teacher-copy {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .quiz-layout {
    display: flex;
    flex-direction: column-reverse; /* Dialogue appears directly above quiz questions on mobile/tablet */
    gap: 20px;
    width: 100%;
    min-width: 0;
  }

  .quiz-dialogue {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .quiz-photo-slot {
    width: 58px !important;
    height: 58px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #fff1f2 !important;
    border: 2px solid #fecdd3 !important;
    margin: 0 !important;
    display: block !important;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.12) !important;
  }

  .quiz-photo-slot img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: top center !important;
    filter: none !important;
    display: block !important;
  }

  .quiz-speech {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    flex-grow: 1;
    min-width: 0;
  }

  .quiz-speech::before {
    display: none;
  }

  .trap-grid,
  .comp-cards-grid,
  .comparison-grid,
  .comparison-grid-3,
  .roadmap-grid,
  .tariffs-grid,
  .tariffs-grid-compact,
  .parents-grid,
  .reviews-track {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .tariffs-compact-footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .tariffs-trust-line {
    justify-content: center;
  }

  .roadmap-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .artifacts-grid,
  .artifacts-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .parents-guarantee-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .trial-compact-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: clamp(18px, 3.5vw, 24px);
  }

  .trial-compact-visual {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
  }

  .trial-steps-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .trial-compact-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .compact-bar-sep {
    display: none;
  }

  .trial-compact-cta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .trial-cta-main,
  .trial-messenger-pair {
    width: 100%;
    max-width: 100%;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .program-bottom-bar,
  .program-cta-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .program-stats {
    flex-direction: column;
    gap: 12px;
  }

  .floating-desktop {
    display: none;
  }

  .floating-mobile {
    display: flex;
  }

  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 36px 0;
  }

  .header-cta {
    display: none !important;
  }

  #hero-title {
    font-size: clamp(26px, 7.5vw, 34px) !important;
    line-height: 1.18 !important;
  }

  .hero-title-line {
    display: block !important;
  }

  .hero {
    padding: 24px 0 36px;
  }

  .hero-facts {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 14px 16px !important;
  }

  .hero-subtle-messengers {
    width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .hero-msg-pills {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
  }

  .hero-msg-pills .messenger-pill-ghost {
    flex: 1 !important;
    justify-content: center !important;
    height: 38px !important;
  }

  .hero-badge-float {
    display: none;
  }

  .portrait-stage img {
    width: 100% !important;
    height: auto !important;
  }

  .hero-visual-stage,
  .hero-portrait-frame,
  .portrait-stage {
    height: auto;
  }

  .proof-heading {
    text-align: center;
  }

  .proof-heading .kicker {
    margin-inline: auto;
  }

  .proof-heading .section-lead {
    text-align: center;
  }

  .case-story {
    flex: 0 0 calc(100% - 8px);
    min-width: 0;
    max-width: none;
    scroll-snap-align: start;
  }

  .trap-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .roadmap-timeline {
    grid-template-columns: 1fr;
  }

  .artifacts-grid,
  .artifacts-showcase-grid {
    grid-template-columns: 1fr;
  }

  .parents-guarantee-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .parent-personal-banner {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 24px 18px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .parent-personal-avatar-wrap {
    width: 110px !important;
    height: 110px !important;
    border-radius: 50% !important;
    border: 3px solid #fecdd3 !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    box-shadow: 0 8px 22px rgba(225, 29, 72, 0.16) !important;
  }

  .parent-personal-avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: top center !important;
    transform: none !important;
  }

  .parent-personal-content {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 10px !important;
  }

  .parent-personal-head {
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
  }

  .parent-personal-kicker {
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
  }

  .parent-personal-author {
    font-size: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
  }

  .parent-personal-role {
    font-size: 12.5px !important;
  }

  .parent-personal-quote {
    font-size: 14px !important;
    line-height: 1.55 !important;
    color: #334155 !important;
    max-width: 480px !important;
    margin: 0 auto !important;
  }

  .parent-personal-contacts {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 6px !important;
  }

  .parent-contact-label {
    font-size: 12.5px !important;
    color: #64748b !important;
  }

  .parent-msg-pills {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 360px !important;
  }

  .parent-msg-pills .messenger-pill-ghost {
    flex: 1 1 0 !important;
    justify-content: center !important;
    height: 44px !important;
    padding: 0 14px !important;
    font-size: 13.5px !important;
    white-space: nowrap !important;
  }

  .artifacts-savings-banner {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn {
    width: 100%;
    white-space: normal !important;
  }

  .hero-actions,
  .teacher-footer,
  .trial-actions,
  .trial-actions-panel,
  .quiz-final-actions,
  .final-actions,
  .form-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-btn,
  .teacher-cta-btn,
  .hero-messenger-pair,
  .teacher-messenger-pair {
    max-width: 100% !important;
    width: 100% !important;
  }

  .hero-note {
    border-radius: 12px !important;
    width: 100% !important;
    text-align: left !important;
  }

  .hero-messengers-group,
  .trial-messenger-actions,
  .quiz-gifts-actions,
  .faq-contact-buttons,
  .final-messenger-buttons,
  .form-success-btns {
    width: 100%;
    flex-direction: column;
  }

  .trial-compact-card {
    padding: 16px 14px;
    gap: 16px;
  }

  .trial-compact-visual {
    padding: 12px;
  }

  .trial-alexander-photo {
    max-height: 180px;
  }

  .trial-step-pill {
    padding: 8px 10px;
  }

  .messenger-pair-row {
    flex-direction: column;
    width: 100%;
  }

  .messenger-btn {
    width: 100%;
    flex: none !important;
    min-height: 42px !important;
  }

  .footer-main {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    align-items: center;
  }

  .footer-brand-col {
    align-items: center;
    text-align: center;
  }

  .footer-legal-links {
    justify-content: center;
    gap: 8px 14px;
  }

  .footer-contacts-line {
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Google reCAPTCHA v3 badge positioning */
.grecaptcha-badge {
  z-index: 99 !important;
  bottom: 84px !important;
}

@media (min-width: 641px) {
  .grecaptcha-badge {
    bottom: 24px !important;
  }
}

@media (min-width: 961px) and (max-width: 1180px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
}
