/* AI ALMAMATER — style.css */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ══════════════════════════════
   ПЕРЕМЕННЫЕ
══════════════════════════════ */
:root {
  --bg:          #060d1f;
  --bg-2:        #0b1430;
  --bg-card:     #0f1c3a;
  --accent:      #00b4ff;
  --accent-2:    #22d3ee;
  --accent-dim:  rgba(0,180,255,0.12);
  --accent-glow: rgba(0,180,255,0.35);
  --white:       #ffffff;
  --gray-100:    #e8edf8;
  --gray-300:    #9aa8c8;
  --gray-500:    #5a6a8a;
  --border:      rgba(0,180,255,0.12);
  --border-2:    rgba(255,255,255,0.06);
  --font-d:      'Syne', sans-serif;
  --font-b:      'Inter', sans-serif;
  --r:           12px;
  --r-lg:        20px;
  --tr:          0.25s ease;
}

/* ══════════════════════════════
   СБРОС И БАЗА
══════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-b); background: var(--bg); color: var(--gray-100); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: opacity var(--tr); }
a:hover { opacity: 0.8; }
ul, ol { list-style: none; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.2; color: var(--white); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ══════════════════════════════
   КНОПКИ
══════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,211,238,0.12); color: #fff !important;
  font-family: var(--font-d); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 14px 30px; border-radius: 100px; border: 1px solid rgba(34,211,238,0.35);
  cursor: pointer; transition: all 0.3s ease; text-decoration: none; white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent); opacity: 0.5;
}
.btn-primary:hover {
  background: rgba(34,211,238,0.22); border-color: rgba(34,211,238,0.6);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px rgba(34,211,238,0.15);
  color: #fff !important; opacity: 1;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0; transition: all var(--tr);
  background: rgba(6,13,31,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-2);
}
section[id], div[id] {
  scroll-margin-top: 100px;
}
.site-header.header-scrolled {
  padding: 10px 0;
  background: rgba(6,13,31,0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; opacity: 1 !important; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  color: var(--gray-300); font-size: 0.88rem; font-weight: 500;
  padding: 8px 8px; border-radius: 6px; transition: all var(--tr); opacity: 1; white-space: nowrap;
}
.main-nav a:hover { color: var(--white); background: var(--border-2); }
.header-cta { display: flex; align-items: center; flex-shrink: 0; }
.btn-header-cta {
  background: rgba(34,211,238,0.12) !important;
  border-color: rgba(34,211,238,0.35) !important;
  font-size: 0.88rem !important; padding: 10px 22px !important;
}
.btn-header-cta:hover {
  background: rgba(34,211,238,0.22) !important;
  border-color: rgba(34,211,238,0.6) !important;
  transform: translateY(-2px) !important;
}
#menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
#menu-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--tr); }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  min-height: 100vh;
  padding: 120px 0 80px;
  position: relative; overflow: hidden;
}

/* Фон */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% center;
  animation: heroVideoReverse 10s ease-in-out infinite alternate;
}

@keyframes heroVideoReverse {
  0%   { transform: scale(1); }
  100% { transform: scale(1.03); }
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(4,9,24,0.92) 0%,
    rgba(4,9,24,0.72) 48%,
    rgba(4,9,24,0.18) 100%
  );
}
.hero-bg-noise {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,180,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Контент */
/* Светлая тема */
:root {
  --light-bg:     #f4f6fb;
  --light-bg-2:   #ffffff;
  --light-border: rgba(0,0,0,0.07);
  --light-text:   #0f1c3a;
  --light-text-2: #4a5568;
  --light-text-3: #8a9ab8;
  --light-accent: #0099e6;
}

.light-section {
  background: var(--light-bg);
  color: var(--light-text);
}
.light-section h2, .light-section h3, .light-section h4 {
  color: var(--light-text);
}

.hero > .container {
  position: relative; z-index: 1;
  min-height: calc(100vh - 200px);
  display: flex; align-items: center;
}
.hero-inner { width: 100%; max-width: 620px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px; margin-bottom: 28px;
}
.hero-badge-dot {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; animation: pulse 2s ease infinite; flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.5; transform:scale(1.4); }
}

.hero-title {
  font-family: var(--font-d);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800; color: var(--white); line-height: 1.1;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 1.1rem; color: var(--gray-300);
  line-height: 1.75; margin-bottom: 40px; max-width: 480px;
}
.hero-actions { margin-bottom: 48px; }
.btn-hero-main { font-size: 1.05rem; padding: 16px 40px; }

/* Преимущества */
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.hero-feature {
  display: flex; flex-direction: column; gap: 8px; padding: 16px;
  background: rgba(6,13,31,0.65); backdrop-filter: blur(12px);
  border-radius: 12px; border: none;
}
.hero-feature-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-feature-title {
  font-family: var(--font-d); font-size: 0.88rem; font-weight: 700;
  color: var(--white); line-height: 1.3;
}
.hero-feature-sub { font-size: 0.78rem; color: var(--gray-500); line-height: 1.5; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer {
  background: var(--bg); border-top: 1px solid var(--border-2); padding: 44px 0 28px;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: start; margin-bottom: 28px;
}
.footer-brand { max-width: 280px; }
.footer-tagline { font-size: 0.84rem; color: var(--gray-500); line-height: 1.55; margin-top: 12px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: var(--gray-500); opacity: 1; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--border-2); gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: 0.82rem; color: var(--gray-500); }
.footer-legal { font-size: 0.78rem; color: var(--gray-500); }
.footer-legal a { color: var(--gray-500); text-decoration: underline; }

/* ══════════════════════════════
   QUIZ MODAL
══════════════════════════════ */
.quiz-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.quiz-modal-overlay.active { opacity: 1; pointer-events: all; }
.quiz-modal {
  background: linear-gradient(160deg, rgba(34,211,238,0.08) 0%, rgba(6,13,31,0.98) 100%);
  border: 1px solid rgba(34,211,238,0.3); border-radius: var(--r-lg);
  width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 0 80px rgba(0,180,255,0.12), 0 20px 60px rgba(0,0,0,0.5);
}
.quiz-header {
  padding: 24px 28px 0; position: sticky; top: 0;
  background: linear-gradient(160deg, rgba(34,211,238,0.08) 0%, rgba(6,13,31,0.98) 100%);
  z-index: 1;
}
.quiz-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.quiz-title { font-family: var(--font-d); font-size: 1rem; font-weight: 700; color: var(--white); }
#quiz-close { background: none; border: none; color: var(--gray-500); font-size: 1.2rem; cursor: pointer; padding: 4px; line-height: 1; transition: color var(--tr); }
#quiz-close:hover { color: var(--white); }
.quiz-progress-track { height: 3px; background: rgba(255,255,255,0.08); border-radius: 100px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: linear-gradient(90deg, #00b4ff, #22d3ee); border-radius: 100px; transition: width 0.4s ease; width: 0%; }
#quiz-body { padding: 20px 28px 28px; }
.quiz-step-num { font-size: 0.75rem; color: var(--gray-500); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.quiz-question { font-size: 1.2rem; margin-bottom: 6px; color: var(--white); font-family: var(--font-d); font-weight: 700; }
.quiz-subtitle { font-size: 0.86rem; color: var(--gray-500); margin-bottom: 20px; }
.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option {
  text-align: left; background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
  padding: 13px 16px; color: var(--gray-100); font-family: var(--font-b);
  font-size: 0.92rem; cursor: pointer; transition: all var(--tr);
}
.quiz-option:hover { border-color: rgba(34,211,238,0.4); background: rgba(34,211,238,0.06); color: var(--white); }
.quiz-option.selected { border-color: rgba(34,211,238,0.5); background: rgba(34,211,238,0.1); color: var(--white); box-shadow: 0 0 0 3px rgba(34,211,238,0.08); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }
.quiz-btn-back { background: none; border: none; color: var(--gray-500); font-size: 0.88rem; cursor: pointer; padding: 8px 0; transition: color var(--tr); }
.quiz-btn-back:hover { color: var(--white); }
.quiz-btn-next {
  background: rgba(34,211,238,0.15); color: var(--white);
  font-family: var(--font-d); font-weight: 700; font-size: 0.88rem;
  border: 1px solid rgba(34,211,238,0.35); border-radius: 100px;
  padding: 10px 22px; cursor: pointer; transition: all var(--tr);
}
.quiz-btn-next:hover { background: rgba(34,211,238,0.25); border-color: rgba(34,211,238,0.6); }
.quiz-result { text-align: center; }
.quiz-result-icon { font-size: 2.8rem; margin-bottom: 10px; }
.quiz-result-title { margin-bottom: 18px; font-size: 1.3rem; }
.quiz-result-product { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; margin-bottom: 20px; text-align: left; }
.quiz-result-product-name { font-family: var(--font-d); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.quiz-result-price { color: var(--accent); font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.quiz-result-desc { font-size: 0.88rem; color: var(--gray-300); line-height: 1.6; }
.quiz-result-cta-text { font-size: 0.88rem; color: var(--gray-300); margin-bottom: 16px; text-align: left; }
.quiz-contact-form { text-align: left; }
.quiz-thankyou { text-align: center; padding: 16px 0; }
.quiz-ty-icon { font-size: 2.8rem; margin-bottom: 14px; }
.quiz-thankyou h3 { margin-bottom: 10px; }
.quiz-thankyou p { color: var(--gray-300); font-size: 0.9rem; margin-bottom: 20px; }

/* Формы */
.form-row { margin-bottom: 12px; }
.form-input, .form-textarea {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09); border-radius: 12px;
  padding: 13px 16px; color: #fff; font-family: var(--font-b);
  font-size: 0.95rem; transition: all 0.3s ease; outline: none;
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-input:focus, .form-textarea:focus {
  border-color: rgba(34,211,238,0.45); background: rgba(34,211,238,0.04);
  box-shadow: 0 0 0 3px rgba(34,211,238,0.08);
}
.form-input:-webkit-autofill, .form-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(13,18,32,0.95) inset !important;
  -webkit-text-fill-color: #fff !important;
}
.form-note { font-size: 0.75rem; color: var(--gray-500); margin-top: 12px; text-align: center; line-height: 1.5; }
.link-inline { color: var(--gray-500); text-decoration: underline; }
.link-inline:hover { color: var(--accent); }
.form-success { text-align: center; padding: 28px; }
.form-success-icon { font-size: 2.5rem; margin-bottom: 12px; }
.form-success h4 { font-family: var(--font-d); font-size: 1.25rem; color: var(--white); margin-bottom: 8px; }
.form-success p { color: var(--gray-300); font-size: 0.9rem; }

/* ══════════════════════════════
   АНИМАЦИИ
══════════════════════════════ */

/* ══════════════════════════════
   ПЛАНШЕТ ≤900px
══════════════════════════════ */
/* ══════════════════════════════
   МОБИЛЬНЫЙ ≤640px
══════════════════════════════ */
/* ══════════════════════════════
   НОВЫЙ КВИЗ
══════════════════════════════ */
#quiz-new-container {
  display: none;
  width: 100%;
  max-width: 720px;
  position: relative; z-index: 2;
}

.qn-step { width: 100%; will-change: opacity, transform; }

/* Прогресс и заголовок */
.qn-header { margin-bottom: 28px; position: relative; }
.qn-progress-track { height: 2px; background: rgba(255,255,255,0.08); border-radius: 100px; margin-bottom: 14px; overflow: hidden; }
.qn-progress-fill { height: 100%; background: linear-gradient(90deg, #00b4ff, #22d3ee); border-radius: 100px; transition: width 0.5s ease; }
.qn-step-num { font-size: 0.72rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.qn-title { font-family: var(--font-d); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; color: var(--white); margin-bottom: 6px; }
.qn-sub { font-size: 0.95rem; color: var(--gray-500); }
.qn-close {
  position: absolute; top: 0; right: 0;
  background: none; border: none; color: var(--gray-500);
  font-size: 1rem; cursor: pointer; padding: 4px;
  transition: color var(--tr); line-height: 1;
}
.qn-close:hover { color: var(--white); }

/* Направления */
.qn-dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.qn-dir-card {
  padding: 20px 16px;
  background: rgba(6,13,31,0.6);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.qn-dir-card:hover {
  border-color: rgba(34,211,238,0.35);
  background: rgba(34,211,238,0.06);
  transform: translateY(-2px);
}
.qn-dir-card.active {
  border-color: rgba(34,211,238,0.6);
  background: rgba(34,211,238,0.1);
  transform: translateY(-2px);
}
.qn-dir-icon { margin-bottom: 12px; }
.qn-dir-title { font-family: var(--font-d); font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.qn-dir-desc { font-size: 0.78rem; color: var(--gray-500); line-height: 1.4; }

/* Инсайт */
.qn-step--insight {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 40px 0;
}
.qn-insight-stat {
  font-family: var(--font-d);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: #22d3ee;
  line-height: 1;
  margin-bottom: 16px;
}
.qn-insight-text {
  font-size: 1.1rem; color: var(--gray-300); line-height: 1.7;
  max-width: 520px; margin-bottom: 36px;
}

/* Пилюли */
.qn-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.qn-pills--wide .qn-pill { min-width: 200px; }
.qn-pill {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 20px;
  background: rgba(6,13,31,0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.qn-pill:hover { border-color: rgba(34,211,238,0.4); background: rgba(34,211,238,0.06); }
.qn-pill.active { border-color: rgba(34,211,238,0.6); background: rgba(34,211,238,0.12); }
.qn-pill-label { font-family: var(--font-d); font-size: 0.92rem; font-weight: 700; color: var(--white); }
.qn-pill-sub { font-size: 0.75rem; color: var(--gray-500); }

/* Анализ */
.qn-step--analysis { display: flex; align-items: center; justify-content: flex-start; padding: 40px 0; }
.qn-analysis-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.qn-analysis-ring { position: relative; width: 80px; height: 80px; }
.qn-analysis-ring svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.qn-ring-fill { stroke-dasharray: 213; stroke-dashoffset: 213; }
.qn-analysis-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.qn-analysis-title { font-family: var(--font-d); font-size: 1.5rem; font-weight: 800; color: var(--white); }
.qn-analysis-sub { font-size: 0.95rem; color: var(--gray-500); line-height: 1.6; }
.qn-analysis-dots { display: flex; gap: 6px; }
.qn-analysis-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(34,211,238,0.4);
  animation: qn-dot-pulse 1.2s ease infinite;
}
.qn-analysis-dots span:nth-child(2) { animation-delay: 0.2s; }
.qn-analysis-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes qn-dot-pulse { 0%,100%{opacity:0.3;transform:scale(1)} 50%{opacity:1;transform:scale(1.3)} }

/* Итог */
.qn-summary-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px; }
.qn-summary-title { font-family: var(--font-d); font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 800; color: var(--white); margin-bottom: 28px; }
.qn-summary-title span { color: #22d3ee; }
.qn-summary-metrics { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.qn-metric-bar-wrap { display: flex; justify-content: space-between; margin-bottom: 6px; }
.qn-metric-bar-label { font-size: 0.82rem; color: var(--gray-500); }
.qn-metric-bar-val { font-size: 0.88rem; font-weight: 700; color: #22d3ee; }
.qn-metric-track { height: 4px; background: rgba(255,255,255,0.06); border-radius: 100px; overflow: hidden; }
.qn-metric-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #00b4ff, #22d3ee); border-radius: 100px; }

/* Выбор пути */
.qn-path-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.qn-path-card {
  padding: 24px 20px;
  background: rgba(6,13,31,0.6);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.qn-path-card:hover { border-color: rgba(34,211,238,0.35); background: rgba(34,211,238,0.06); transform: translateY(-2px); }
.qn-path-card.active { border-color: rgba(34,211,238,0.6); background: rgba(34,211,238,0.1); }
.qn-path-icon { margin-bottom: 14px; }
.qn-path-title { font-family: var(--font-d); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.qn-path-desc { font-size: 0.82rem; color: var(--gray-500); line-height: 1.55; }

/* Форма */
.qn-step--form { max-width: 480px; }
.qn-form-title { font-family: var(--font-d); font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 800; color: var(--white); margin-bottom: 8px; }
.qn-form-sub { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 24px; line-height: 1.6; }
.qn-form-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.qn-input {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09); border-radius: 12px;
  padding: 14px 16px; color: #fff; font-family: var(--font-b);
  font-size: 1rem; outline: none; transition: all 0.3s ease;
}
.qn-input::placeholder { color: rgba(255,255,255,0.25); }
.qn-input:focus { border-color: rgba(34,211,238,0.45); background: rgba(34,211,238,0.04); box-shadow: 0 0 0 3px rgba(34,211,238,0.08); }
.qn-form-error { background: rgba(255,60,60,0.1); border: 1px solid rgba(255,60,60,0.3); border-radius: 8px; padding: 10px 14px; font-size: 0.85rem; color: #ff6b6b; margin-bottom: 12px; }
.qn-form-note { font-size: 0.72rem; color: var(--gray-500); margin-top: 12px; line-height: 1.5; }
.qn-form-note a { color: var(--gray-500); text-decoration: underline; }

/* Спасибо */
.qn-step--thankyou { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px 0; }
.qn-ty-graphic { margin-bottom: 8px; }
.qn-ty-title { font-family: var(--font-d); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--white); }
.qn-ty-sub { font-size: 1rem; color: var(--gray-300); line-height: 1.6; }

/* Кнопки квиза */
.qn-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(34,211,238,0.12); color: #fff;
  font-family: var(--font-d); font-size: 1rem; font-weight: 600;
  padding: 15px 36px; border-radius: 100px;
  border: 1px solid rgba(34,211,238,0.35);
  cursor: pointer; transition: all 0.3s ease;
  position: relative; overflow: hidden; white-space: nowrap;
}
.qn-btn-primary::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent); opacity: 0.5;
}
.qn-btn-primary:hover { background: rgba(34,211,238,0.22); border-color: rgba(34,211,238,0.6); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 30px rgba(34,211,238,0.15); }
.qn-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.qn-btn-outline {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--gray-300);
  font-family: var(--font-d); font-size: 0.9rem; font-weight: 600;
  padding: 12px 28px; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer; transition: all 0.3s ease;
}
.qn-btn-outline:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }

/* ══════════════════════════════
   КВИЗ — МОБИЛЬНЫЙ
══════════════════════════════ */
/* ══════════════════════════════
   СЕКЦИЯ КУРСОВ
══════════════════════════════ */
.courses-section {
  padding: 80px 0 72px;
  background: var(--light-bg-2);
  overflow: hidden;
}
.courses-header {
  display: flex; align-items: flex-end;
  justify-content: space-between; margin-bottom: 40px;
}
.courses-header-left { display: flex; flex-direction: column; gap: 10px; }
.courses-label {
  display: inline-flex; align-items: center;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--light-accent); background: rgba(0,153,230,0.08);
  border: 1px solid rgba(0,153,230,0.2); border-radius: 100px; padding: 4px 14px;
  width: fit-content;
}
.courses-title {
  font-family: var(--font-d); font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--light-text); line-height: 1.2; margin: 0;
}

/* Фильтры-категории сверху */
.courses-filters-wrap { position: relative; }
.courses-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}
.cf {
  display: inline-flex; align-items: center;
  padding: 9px 20px; border-radius: 100px;
  font-family: var(--font-d); font-size: 0.85rem; font-weight: 600;
  color: var(--light-text-2); background: var(--light-bg-2);
  border: 1.5px solid var(--light-border);
  cursor: pointer; transition: all 0.2s ease;
  text-decoration: none; white-space: nowrap;
}
.cf:hover { border-color: var(--light-accent); color: var(--light-accent); opacity: 1; }
.cf.active { background: var(--light-text); color: #fff; border-color: var(--light-text); }

/* Layout: сайдбар + сетка */
.courses-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── САЙДБАР ── */
.courses-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sf-counter {
  font-size: 0.82rem;
  color: var(--light-text-2);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--light-border);
}
.sf-counter strong { color: var(--light-text); font-weight: 700; }
.sf-group { display: flex; flex-direction: column; gap: 10px; }
.sf-group-title {
  font-family: var(--font-d);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--light-text-3); margin-bottom: 2px;
}
.sf-label {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: 0.88rem;
  color: var(--light-text-2);
  transition: color 0.2s ease; user-select: none;
}
.sf-label:hover { color: var(--light-text); }
.sf-label input[type="checkbox"] {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid var(--light-border);
  accent-color: var(--light-accent);
  cursor: pointer; flex-shrink: 0;
}
.sf-reset {
  font-size: 0.82rem; font-weight: 600;
  color: var(--light-text-3);
  background: none; border: 1px solid var(--light-border);
  border-radius: 8px; padding: 8px 14px;
  cursor: pointer; transition: all 0.2s ease;
  width: 100%; text-align: left;
}
.sf-reset:hover { border-color: var(--light-accent); color: var(--light-accent); }

/* Кнопка — общая (используется по всей странице) */
.course-btn {
  display: inline-flex; align-items: center;
  background: var(--light-text); color: #fff;
  font-family: var(--font-d); font-size: 0.88rem; font-weight: 600;
  padding: 12px 24px; border-radius: 100px; border: none;
  cursor: pointer; transition: all 0.25s ease; white-space: nowrap;
  text-decoration: none;
}
.course-btn:hover {
  background: var(--light-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,153,230,0.25);
  opacity: 1;
}

/* ── СЕТКА КАРТОЧЕК ── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── КАРТОЧКА ── */
.course-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  height: 420px;
  background-image:
    linear-gradient(180deg,
      rgba(7,15,44,0.96) 0%,
      rgba(7,15,44,0.90) 50%,
      rgba(5,10,30,0.55) 100%
    ),
    url('/img/course-grid-bg.webp');
  background-color: #070f2c;
  background-size: cover, 1672px auto;
  background-repeat: no-repeat, no-repeat;
  background-position: center, left bottom;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

/* ── ШАПКА КАРТОЧКИ ── */
.cc-top {
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.cc-cat {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.cc-top--biznes    { background: linear-gradient(90deg, rgba(0,100,210,0.45) 0%, transparent 100%); }
.cc-top--biznes    .cc-cat { color: #5cd1ff; }
.cc-top--marketing { background: linear-gradient(90deg, rgba(130,0,230,0.40) 0%, transparent 100%); }
.cc-top--marketing .cc-cat { color: #c084fc; }
.cc-top--auto      { background: linear-gradient(90deg, rgba(0,180,100,0.35) 0%, transparent 100%); }
.cc-top--auto      .cc-cat { color: #4ade80; }
.cc-top--start     { background: linear-gradient(90deg, rgba(220,120,0,0.35) 0%, transparent 100%); }
.cc-top--start     .cc-cat { color: #fb923c; }
.cc-top--uslugi    { background: linear-gradient(90deg, rgba(180,0,80,0.35) 0%, transparent 100%); }
.cc-top--uslugi    .cc-cat { color: #f472b6; }
.cc-top--besplatno { background: linear-gradient(90deg, rgba(0,160,120,0.35) 0%, transparent 100%); }
.cc-top--besplatno .cc-cat { color: #34d399; }

/* ── ТЕЛО КАРТОЧКИ ── */
.cc-body {
  padding: 20px 20px 22px;
  display: flex; flex-direction: column;
  flex: 1; gap: 10px;
}
.cc-tag {
  display: inline-flex; align-items: center;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px; padding: 3px 10px; width: fit-content;
}
.cc-tag--free {
  color: #34d399;
  background: rgba(52,211,153,0.1);
  border-color: rgba(52,211,153,0.25);
}
.cc-name {
  font-family: var(--font-d);
  font-size: 1.05rem; font-weight: 700;
  color: #e8edf8; line-height: 1.3; margin: 0;
}
.cc-desc {
  font-size: 0.82rem;
  color: rgba(200,210,235,0.65);
  line-height: 1.6; margin: 0; flex: 1;
}
.cc-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-top: auto; padding-top: 4px;
}
.cc-price {
  font-family: var(--font-d);
  font-size: 1.05rem; font-weight: 800; color: #e8edf8;
}
.cc-price--free { color: #34d399; }

/* Кнопка внутри тёмной карточки */
.course-card .course-btn {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.1); color: #e8edf8;
  border: 1px solid rgba(255,255,255,0.15);
  font-family: var(--font-d); font-size: 0.78rem; font-weight: 600;
  padding: 9px 16px; border-radius: 100px;
  cursor: pointer; transition: all 0.25s ease; white-space: nowrap;
}
.course-card .course-btn:hover {
  background: rgba(0,180,255,0.25);
  border-color: rgba(0,180,255,0.4); color: #fff;
  box-shadow: 0 4px 16px rgba(0,180,255,0.2);
  transform: translateY(-1px);
}

/* ── ПОКАЗАТЬ ЕЩЁ ── */
.courses-grid-wrap {
  position: relative;
}
.courses-grid-wrap.is-collapsed .courses-grid {
  max-height: 980px;
  overflow: hidden;
}
.courses-fade {
  display: none;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent 0%, var(--light-bg-2) 100%);
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
  cursor: pointer;
  z-index: 2;
}
.courses-grid-wrap.is-collapsed .courses-fade {
  display: flex;
}
.courses-fade-link {
  font-family: var(--font-d);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--light-text);
  border-bottom: 1.5px solid rgba(15,28,58,0.25);
  padding-bottom: 2px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.courses-fade-link:hover {
  color: var(--light-accent);
  border-color: var(--light-accent);
}
.sm-rest { font-weight: 400; }

/* ── МОБИЛЬНАЯ АДАПТАЦИЯ ── */
/* footer светлый */
.site-footer {
  background: #f4f6fb !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
}
.footer-tagline, .footer-links a, .footer-copy, .footer-legal, .footer-legal a {
  color: #8a9ab8 !important;
}
.footer-links a:hover { color: var(--light-text) !important; }

/* ══════════════════════════════
   ПРЕИМУЩЕСТВА
══════════════════════════════ */
.benefits-section {
  min-height: 600px;
  padding: 100px 0;
  background: url('/img/benefits-bg.webp') right top / contain no-repeat;
  background-color: var(--light-bg);
  position: relative;
}
.benefits-section::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 38%, rgba(255,255,255,0.2) 65%, transparent 100%);
  pointer-events: none;
}
.benefits-section .container { position: relative; z-index: 1; }
.benefits-left { max-width: 520px; }
.benefits-title {
  font-family: var(--font-d); font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--light-text); line-height: 1.2;
  margin: 12px 0 36px;
}
.benefits-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.benefits-item {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid rgba(0,0,0,0.08);
}
.benefits-item:first-child { border-top: 1px solid rgba(0,0,0,0.08); }
.benefits-num {
  font-family: var(--font-d); font-size: 2rem; font-weight: 800;
  color: var(--light-accent); line-height: 1; min-width: 90px; flex-shrink: 0;
}
.benefits-text { font-size: 0.92rem; color: var(--light-text-2); line-height: 1.55; }

/* ══════════════════════════════
   КАК МЫ РАБОТАЕМ
══════════════════════════════ */
.how-section { padding: 80px 0; background: #f0f6ff; }
.how-header { text-align: center; margin-bottom: 52px; }
.how-title { font-family: var(--font-d); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--light-text); line-height: 1.2; margin: 12px 0 0; }

.how-steps {
  display: flex; align-items: flex-start;
  gap: 0; justify-content: center;
}
.how-step-card {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; text-align: center; padding: 0 16px;
}
.how-step-img {
  margin-bottom: 20px; height: 160px;
  display: flex; align-items: center; justify-content: center;
}
.how-step-img img {
  width: 150px; height: 150px; object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(100,100,255,0.2));
  transition: transform 0.4s ease;
}
.how-step-card:hover .how-step-img img { transform: translateY(-6px); }
.how-step-num {
  font-family: var(--font-d); font-size: 3rem; font-weight: 800;
  color: rgba(0,153,230,0.12); line-height: 1; margin-bottom: 6px;
  letter-spacing: -0.03em;
}
.how-step-title {
  font-family: var(--font-d); font-size: 1.05rem; font-weight: 700;
  color: var(--light-text); margin-bottom: 10px;
}
.how-step-text {
  font-size: 0.85rem; color: var(--light-text-2); line-height: 1.65;
}
.how-step-arrow {
  flex-shrink: 0; display: flex; align-items: center;
  padding-top: 60px; opacity: 0.6;
}
.how-cta { text-align: center; margin-top: 40px; }

/* Модалка */
.how-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(6px); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.how-modal-overlay.active { opacity: 1; pointer-events: all; }
.how-modal { background: #fff; border-radius: 20px; padding: 36px 32px; max-width: 420px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.15); transform: translateY(20px); transition: transform 0.3s ease; }
.how-modal-overlay.active .how-modal { transform: translateY(0); }
.how-modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--light-text-3); font-size: 1.1rem; cursor: pointer; padding: 4px; line-height: 1; }
.how-modal-close:hover { color: var(--light-text); }
.how-modal-title { font-family: var(--font-d); font-size: 1.3rem; font-weight: 800; color: var(--light-text); margin-bottom: 10px; }
.how-modal-text { font-size: 0.9rem; color: var(--light-text-2); line-height: 1.6; margin-bottom: 24px; }
.how-modal .form-input { background: #f4f6fb; border-color: rgba(0,0,0,0.1); color: var(--light-text); }
.how-modal .form-input::placeholder { color: var(--light-text-3); }
.how-modal .form-input:focus { border-color: var(--light-accent); background: #fff; box-shadow: 0 0 0 3px rgba(0,153,230,0.1); }
.how-modal .form-note, .how-modal .link-inline { color: var(--light-text-3); }

/* ══════════════════════════════
   НАМ ДОВЕРЯЮТ — бегущая строка
══════════════════════════════ */
.clients-section {
  padding: 48px 0;
  background: var(--light-bg);
  overflow: hidden;
}
.clients-label-wrap {
  text-align: center;
  margin-bottom: 32px;
}
.clients-title {
  font-family: var(--font-d); font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--light-text);
}
.clients-track-wrap {
  position: relative;
  overflow: hidden;
}
/* Маски по краям */
.clients-track-wrap::before,
.clients-track-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
  pointer-events: none;
}
.clients-track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--light-bg), transparent);
}
.clients-track-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--light-bg), transparent);
}
.clients-track { overflow: hidden; width: 100%; }
.clients-inner { will-change: transform; }
.clients-inner {
  display: flex; flex-direction: row; align-items: center; gap: 64px;
  width: max-content;
  animation: clients-scroll 30s linear infinite;
  flex-wrap: nowrap;
}
.clients-inner:hover { animation-play-state: paused; }
@keyframes clients-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-logo {
  display: inline-flex; align-items: center; flex-shrink: 0;
  opacity: 0.6; transition: opacity 0.3s ease;
  filter: grayscale(100%);
}
.client-logo img { height: 44px; width: auto; display: inline-block; max-width: none; }
.client-logo:hover { opacity: 1; filter: grayscale(0%); }

/* ══════════════════════════════
   СТАТЬЯ
══════════════════════════════ */
.article-section {
  padding: 100px 0;
  background: var(--light-bg);
}
.article-header {
  margin-bottom: 32px;
}
.article-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-accent);
  margin-bottom: 14px;
}
.article-title {
  font-family: var(--font-d);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--light-text);
  line-height: 1.2;
  margin: 0;
}
.article-divider {
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin-bottom: 48px;
}
.article-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.article-col p {
  font-size: 0.95rem;
  color: var(--light-text-2);
  line-height: 1.75;
  margin: 0 0 16px;
}
.article-h3 {
  font-family: var(--font-d);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--light-text);
  margin: 28px 0 10px;
}
.article-h3:first-child {
  margin-top: 0;
}
.article-quote {
  border-left: 3px solid var(--light-accent);
  padding: 4px 0 4px 18px;
  margin: 24px 0;
}
.article-quote p {
  font-size: 0.95rem;
  color: var(--light-text);
  font-style: italic;
  line-height: 1.7;
  margin: 0 !important;
}
.article-cta {
  background: rgba(34,211,238,0.07);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 16px;
  padding: 24px;
  margin-top: 32px;
}
.article-cta p {
  font-size: 0.9rem;
  color: var(--light-text);
  margin: 0 0 16px !important;
}
.article-btn {
  display: inline-flex;
  align-items: center;
  background: var(--light-accent);
  color: #060d1f;
  font-family: var(--font-d);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.article-btn:hover {
  background: #060d1f;
  color: #fff;
  transform: translateY(-2px);
}
/* ══════════════════════════════
   FAQ
══════════════════════════════ */
.faq-section { padding: 80px 0; background: var(--light-bg); }
.faq-layout { display: grid; grid-template-columns: 300px 1fr; gap: 72px; align-items: start; }
.faq-left { position: sticky; top: 100px; }
.faq-left-title { font-family: var(--font-d); font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--light-text); line-height: 1.15; margin: 14px 0 16px; }
.faq-left-sub { font-size: 0.95rem; color: var(--light-text-2); line-height: 1.7; margin-bottom: 28px; }
.faq-left-actions { display: flex; flex-direction: column; gap: 12px; }
.faq-btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--light-text-2);
  font-family: var(--font-d); font-size: 0.9rem; font-weight: 600;
  padding: 12px 24px; border-radius: 100px;
  border: 1.5px solid var(--light-border);
  cursor: pointer; transition: all 0.2s ease; text-decoration: none;
}
.faq-btn-outline:hover { border-color: var(--light-accent); color: var(--light-accent); opacity: 1; }

.faq-right { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: #fff; border: 1.5px solid var(--light-border); border-radius: 100px; overflow: hidden; transition: all 0.3s ease; }
.faq-item:hover { border-color: rgba(0,153,230,0.3); }
.faq-item.open { border-radius: 16px; border-color: rgba(0,153,230,0.3); }
.faq-question { width: 100%; background: none; border: none; text-align: left; cursor: pointer; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--light-text); font-family: var(--font-d); font-size: 0.92rem; font-weight: 600; transition: color var(--tr); }
.faq-question:hover { color: var(--light-accent); }
.faq-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; background: var(--light-bg); border: 1px solid var(--light-border); display: flex; align-items: center; justify-content: center; transition: all 0.3s; position: relative; }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; background: var(--light-text-3); border-radius: 2px; transition: all 0.3s; }
.faq-icon::before { width: 10px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 10px; }
.faq-item.open .faq-icon { background: rgba(0,153,230,0.08); border-color: rgba(0,153,230,0.3); }
.faq-item.open .faq-icon::before, .faq-item.open .faq-icon::after { background: var(--light-accent); }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { color: var(--light-text-2); font-size: 0.9rem; line-height: 1.7; padding: 0 20px 18px; border-top: 1px solid var(--light-border); padding-top: 14px; }

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
.contact-section { padding: 80px 0; background: var(--light-bg-2); }
.contact-inner { display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center; }
.contact-title { font-family: var(--font-d); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--light-text); line-height: 1.2; margin: 12px 0 16px; }
.contact-sub { font-size: 1rem; color: var(--light-text-2); line-height: 1.7; margin-bottom: 28px; }
.contact-direct { font-size: 0.9rem; color: var(--light-text-3); margin-bottom: 12px; }
.contact-links { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-link { display: inline-flex; align-items: center; justify-content: center; padding: 10px; border: 1.5px solid var(--light-border); border-radius: 12px; transition: all var(--tr); opacity: 1; }
.contact-link:hover { border-color: var(--light-accent); background: rgba(0,153,230,0.06); transform: translateY(-2px); opacity: 1; }
.contact-link img { height: 40px; width: auto; }
.contact-form-card { background: var(--light-bg); border: 1.5px solid var(--light-border); border-radius: 20px; padding: 36px 32px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.contact-form-title { font-family: var(--font-d); font-size: 1.2rem; font-weight: 700; color: var(--light-text); margin-bottom: 6px; }
.contact-form-sub { font-size: 0.88rem; color: var(--light-text-3); margin-bottom: 22px; }
.contact-section .form-input, .contact-section .form-textarea { background: #fff; border-color: var(--light-border); color: var(--light-text); }
.contact-section .form-input::placeholder, .contact-section .form-textarea::placeholder { color: var(--light-text-3); }
.contact-section .form-input:focus, .contact-section .form-textarea:focus { border-color: var(--light-accent); background: #fff; box-shadow: 0 0 0 3px rgba(0,153,230,0.1); }
.contact-section .form-note { color: var(--light-text-3); }
.contact-section .link-inline { color: var(--light-text-3); }
.contact-section .btn-primary { background: var(--light-text); border-color: var(--light-text); color: #fff !important; }
.contact-section .btn-primary:hover { background: var(--light-accent); border-color: var(--light-accent); }

/* ══════════════════════════════
   ЛИД-МАГНИТ
══════════════════════════════ */
.leadmagnet-section {
  min-height: 420px;
  background: #04091e url('/img/leadmagnet-bg.webp') center center / cover no-repeat;
  position: relative; overflow: hidden;
}
.leadmagnet-section > .container {
  display: flex; align-items: center; min-height: 420px;
}
.leadmagnet-section::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,9,30,0.92) 0%, rgba(4,9,30,0.75) 40%, transparent 70%);
  pointer-events: none;
}
.leadmagnet-inner {
  display: flex; flex-direction: column; align-items: flex-start;
  position: relative; z-index: 1; max-width: 420px;
  padding: 60px 0; margin-right: auto; margin-left: 0;
}
.leadmagnet-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  color: #22d3ee; background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.25); border-radius: 100px;
  padding: 5px 14px; margin-bottom: 20px;
}
.leadmagnet-title {
  font-family: var(--font-d); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 18px;
}
.leadmagnet-sub {
  font-size: 1rem; color: rgba(255,255,255,0.6);
  line-height: 1.7; margin-bottom: 36px; max-width: 420px;
}
.leadmagnet-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #22d3ee; color: #060d1f;
  font-family: var(--font-d); font-size: 1rem; font-weight: 700;
  padding: 16px 36px; border-radius: 100px; border: none;
  cursor: pointer; transition: all 0.3s ease; white-space: nowrap;
}
.leadmagnet-btn:hover {
  background: #fff; transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(34,211,238,0.3);
}
/* ЛИД-МАГНИТ ПОПАП */
.lm-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.lm-overlay.active { opacity: 1; pointer-events: all; }
.lm-modal { background: #fff; border-radius: 20px; padding: 36px 32px; max-width: 420px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.15); transform: translateY(20px); transition: transform 0.3s ease; }
.lm-overlay.active .lm-modal { transform: translateY(0); }
.lm-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--light-text-3); font-size: 1.1rem; cursor: pointer; padding: 4px; line-height: 1; }
.lm-close:hover { color: var(--light-text); }
.lm-title { font-family: var(--font-d); font-size: 1.3rem; font-weight: 800; color: var(--light-text); margin-bottom: 10px; }
.lm-sub { font-size: 0.9rem; color: var(--light-text-2); line-height: 1.6; margin-bottom: 24px; }
.lm-modal .form-input { background: #f4f6fb; border-color: rgba(0,0,0,0.1); color: var(--light-text); }
.lm-modal .form-input::placeholder { color: var(--light-text-3); }
.lm-modal .form-input:focus { border-color: var(--light-accent); background: #fff; box-shadow: 0 0 0 3px rgba(0,153,230,0.1); }
.lm-modal .form-note { color: var(--light-text-3); }
.lm-modal .link-inline { color: var(--light-text-3); }

/* ══════════════════════════════
   ЭКСПЕРТЫ
══════════════════════════════ */
.experts-section { padding: 80px 0; background: var(--light-bg-2); }
.experts-header { text-align: center; margin-bottom: 52px; }
.experts-title { font-family: var(--font-d); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--light-text); margin: 12px 0 10px; }
.experts-sub { font-size: 1rem; color: var(--light-text-2); }

.experts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.expert-card {
  background: var(--light-bg); border-radius: 20px;
  border: 1.5px solid var(--light-border); overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.expert-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.08); transform: translateY(-4px); }
.expert-photo img {
  width: 100%; height: 300px; object-fit: cover; object-position: top;
  display: block;
}
.expert-info { padding: 24px; }
.expert-name { font-family: var(--font-d); font-size: 1.1rem; font-weight: 700; color: var(--light-text); margin-bottom: 4px; }
.expert-role { font-size: 0.82rem; color: var(--light-accent); font-weight: 600; margin-bottom: 12px; }
.expert-bio { font-size: 0.88rem; color: var(--light-text-2); line-height: 1.65; margin-bottom: 16px; }
.expert-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.expert-tags span {
  font-size: 0.75rem; font-weight: 600; color: var(--light-text-2);
  background: rgba(0,153,230,0.07); border: 1px solid rgba(0,153,230,0.15);
  border-radius: 100px; padding: 3px 10px;
}


/* ══════════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ — единый блок
   Брейкпоинты:
     1200px  — большой планшет / небольшой ноутбук
     1024px  — iPad landscape
      768px  — iPad portrait / планшет вертикально
      480px  — большой смартфон
      375px  — iPhone SE и узкие экраны
   Горизонтальная ориентация (landscape) — отдельный блок
══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────
   1200px — ноутбук / планшет landscape
────────────────────────────── */
@media (max-width: 1200px) {
  .container { max-width: 980px; }

  /* Курсы: 2 колонки в сетке */
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ──────────────────────────────
   1024px — iPad landscape / небольшой ноутбук
────────────────────────────── */
@media (max-width: 1024px) {
  /* Header: навигация чуть компактнее */
  .main-nav a { padding: 8px 6px; font-size: 0.84rem; }
  .btn-header-cta { font-size: 0.84rem !important; padding: 10px 16px !important; }

  /* Hero */
  .hero { padding: 110px 0 70px; }
  .hero-inner { max-width: 560px; }
  .hero-title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }

  /* Курсы: сайдбар становится горизонтальной строкой */
  .courses-layout { grid-template-columns: 1fr; }
  .courses-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .sf-group { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  .sf-group-title { width: 100%; margin-bottom: 0; }
  .sf-counter { width: 100%; border-bottom: none; padding-bottom: 0; }
  .sf-reset { width: auto; }

  /* Как работаем: стрелки убираем */
  .how-step-arrow { display: none; }

  /* Эксперты: 2 колонки */
  .experts-grid { grid-template-columns: repeat(2, 1fr); }

  /* FAQ + Контакты */
  .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .faq-left { position: static; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* ──────────────────────────────
   768px — iPad portrait / планшет вертикально
────────────────────────────── */
@media (max-width: 768px) {
  /* Контейнер */
  .container { padding: 0 20px; }

  /* Header: кнопка CTA прячется, появляется бургер */
  .site-header { padding: 12px 0; }
  .header-cta .btn-header-cta { display: none; }
  #menu-toggle { display: flex; z-index: 1001; }
  .main-nav {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6,13,31,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    z-index: 999;
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a {
    font-size: 1.15rem;
    padding: 14px 32px;
    width: 240px;
    text-align: center;
    border-radius: 12px;
    color: var(--gray-100);
  }
  .main-nav a:hover {
    background: rgba(255,255,255,0.07);
    color: var(--white);
  }

  /* Hero */
  .hero { min-height: 100svh; padding: 90px 0 56px; }
  .hero-title { font-size: clamp(2rem, 5.5vw, 2.8rem); }
  .hero-sub { font-size: 1rem; margin-bottom: 32px; }
  .hero-actions { margin-bottom: 40px; }
  .hero-features { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-feature { padding: 14px; }

  /* Квиз (новый) */
  #quiz-new-container { max-width: 100%; }
  .qn-dir-grid { grid-template-columns: repeat(2, 1fr); }
  .qn-path-grid { grid-template-columns: 1fr; }

  /* Курсы */
  .courses-section { padding: 60px 0; }
  .courses-header { flex-direction: column; align-items: flex-start; gap: 14px; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .course-card { height: 400px; }
  .courses-filters {
    flex-wrap: wrap;
  }
  .courses-filters-wrap::after { content: none; }

  /* Преимущества: декоративный фон отключаем, показываем чисто текст */
  .benefits-section {
    background-image: none;
    background-color: var(--light-bg);
    padding: 60px 0;
    min-height: auto;
  }
  .benefits-section::after { display: none; }
  .benefits-num { font-size: 1.8rem; min-width: 80px; }

  /* Как работаем */
  .how-section { padding: 60px 0; }
  .how-steps { flex-wrap: wrap; gap: 28px; justify-content: center; }
  .how-step-card { flex: 1 1 calc(50% - 14px); min-width: 200px; max-width: 260px; }
  .how-step-img { height: 130px; }
  .how-step-img img { width: 120px; height: 120px; }

  /* Клиенты — на мобиле сетка вместо бегущей строки */
  /* Скрываем дубли — оставляем только первые 5 логотипов */
  .clients-inner .client-logo:nth-child(n+6) { display: none; }
  .clients-section { padding: 40px 0; }
  .clients-track-wrap::before,
  .clients-track-wrap::after { display: none; }
  .clients-track { overflow: visible; }
  .clients-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 16px;
    width: 100%;
    animation: none;
    transform: none !important;
    padding: 0 20px;
  }
  .client-logo {
    justify-content: center;
    opacity: 0.7;
  }
  .client-logo img { height: 32px; }

  /* Статья */
  .article-section { padding: 60px 0; }
  .article-body { grid-template-columns: 1fr; gap: 0; }

  /* FAQ */
  .faq-section { padding: 60px 0; }
  .faq-left-actions { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .faq-item.open .faq-answer { max-height: 500px; }

  /* Контакты */
  .contact-section { padding: 60px 0; }
  .contact-form-card { padding: 28px 24px; }

  /* Лид-магнит: фон упрощаем */
  .leadmagnet-section {
    background-position: center center;
  }
  .leadmagnet-section::before {
    background: linear-gradient(180deg, rgba(4,9,30,0.88) 0%, rgba(4,9,30,0.82) 100%);
  }
  .leadmagnet-inner { max-width: 100%; }

  /* Эксперты */
  .experts-section { padding: 60px 0; }
  .experts-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .expert-photo img { height: 260px; }

  /* Футер */
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* Квиз-модалка */
  .quiz-modal-overlay { padding: 0; align-items: flex-end; }
  .quiz-modal {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    max-width: 100%;
  }
  .quiz-header { padding: 16px 20px 0; }
  #quiz-body { padding: 16px 20px 28px; }
  .quiz-question { font-size: 1.1rem; }

  /* Формы: минимальный размер 16px чтобы iOS не зумил */
  .form-input,
  .form-textarea,
  .quiz-option,
  .qn-input { font-size: 16px; }
}

/* ──────────────────────────────
   480px — смартфон
────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  /* Hero */
  .hero { padding: 80px 0 48px; }
  .hero-title { font-size: clamp(1.85rem, 7.5vw, 2.4rem); }
  .hero-sub { font-size: 0.93rem; }
  .btn-hero-main { width: 100%; justify-content: center; font-size: 0.95rem; padding: 15px 20px; }
  .hero-features { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-feature { padding: 12px; }
  .hero-feature-title { font-size: 0.82rem; }

  /* Квиз новый */
  .qn-dir-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .qn-dir-card { padding: 14px 12px; }
  .qn-dir-title { font-size: 0.82rem; }
  .qn-pills--wide .qn-pill { min-width: 100%; }
  .qn-title { font-size: 1.3rem; }
  .qn-btn-primary { width: 100%; justify-content: center; }
  .qn-insight-stat { font-size: 3.5rem; }

  /* Курсы */
  .courses-grid { grid-template-columns: 1fr; }
  .course-card { height: 380px; }

  /* Как работаем */
  .how-step-card { flex: 1 1 100%; max-width: 100%; }

  /* Клиенты */
  .clients-inner { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .client-logo img { height: 28px; }

  /* Лид-магнит */
  .leadmagnet-section { padding: 52px 0; min-height: auto; }
  .leadmagnet-title { font-size: 1.75rem; }
  .leadmagnet-btn { width: 100%; justify-content: center; }
  .leadmagnet-section::before {
    background: linear-gradient(180deg, rgba(4,9,30,0.92) 0%, rgba(4,9,30,0.88) 100%);
  }

  /* Эксперты: 1 колонка */
  .experts-grid { grid-template-columns: 1fr; }
  .expert-photo img { height: 240px; }

  /* FAQ */
  .faq-left-actions { flex-direction: column; }

  /* Контакты */
  .contact-form-card { padding: 22px 16px; }

  /* Футер */
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
}

/* ──────────────────────────────
   375px — iPhone SE / узкие экраны
────────────────────────────── */
@media (max-width: 375px) {
  .hero-title { font-size: 1.7rem; }
  /* На очень узких — hero-features в одну колонку */
  .hero-features { grid-template-columns: 1fr; }
  .hero-feature { flex-direction: row; align-items: center; gap: 12px; }
  .hero-feature-icon { flex-shrink: 0; }
  .courses-header .courses-label { font-size: 0.7rem; }
  .course-card { height: 360px; }
  .contact-form-card { padding: 18px 14px; }
}

/* ──────────────────────────────
   ГОРИЗОНТАЛЬНАЯ ОРИЕНТАЦИЯ
   Смартфон в landscape — высота экрана маленькая
────────────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  /* Hero не занимает 100vh — иначе всё уходит за экран */
  .hero {
    min-height: auto;
    padding: 70px 0 40px;
  }
  .hero > .container { min-height: auto; }

  /* Квиз-модалка не bottomsheet, а по центру */
  .quiz-modal-overlay { align-items: center; padding: 12px; }
  .quiz-modal {
    border-radius: 16px;
    max-height: 88vh;
    max-width: 560px;
  }

  /* hero-features убираем — экономим место */
  .hero-features { display: none; }
}

/* ──────────────────────────────
   ПЛАНШЕТ LANDSCAPE — iPad 1024×768 horizontal
────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .hero { padding: 100px 0 60px; }
  .hero-features { grid-template-columns: repeat(4, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { flex-wrap: nowrap; }
  .how-step-arrow { display: flex; }
  .how-step-card { flex: 1; max-width: none; }
}
