/* ============================================================
   A School — общие стили
   Палитра, шрифты и компоненты по дизайн-макетам landing / program
   ============================================================ */

:root {
  --bg: #FDFCFF;
  --text: #241E38;
  --muted: #6B6580;
  --muted-2: #9A94AE;
  --ink-2: #4A4460;
  --purple: #6C4BC7;
  --purple-dark: #4C2A85;
  --green: #1F8A5B;
  --green-dark: #1F6B49;
  --font-head: 'Nunito', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --shadow-card: 0 8px 24px rgba(76,42,133,0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: inherit; }

/* ---- анимации ---- */
@keyframes floaty { 0% { transform: translateY(0); } 50% { transform: translateY(-14px); } 100% { transform: translateY(0); } }
@keyframes floaty2 { 0% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(4deg); } 100% { transform: translateY(0) rotate(-4deg); } }
@keyframes blobdrift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-24px) scale(1.06); } 100% { transform: translate(0,0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}

/* ---- Material Symbols helper ---- */
.ms {
  font-family: 'Material Symbols Rounded';
  font-variation-settings: 'FILL' 1, 'wght' 500;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  display: inline-block;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
}

/* ---- Layout helpers ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow--green { color: var(--green); }
.eyebrow--purple { color: var(--purple); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { margin: 0 0 14px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 900; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; }

.grad-text {
  background: linear-gradient(100deg, #6C4BC7 10%, #1F8A5B 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .25s;
}

/* Зелёная (главный CTA) */
.btn-green {
  background: linear-gradient(120deg, #23996A, #1F8A5B);
  color: #fff;
  font-weight: 800;
  font-size: 16.5px;
  padding: 17px 30px;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(31,138,91,0.35);
}
.btn-green:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 44px rgba(31,138,91,0.45); }
.btn-green:active { transform: translateY(0) scale(0.99); }

/* Прозрачная с фиолетовой обводкой */
.btn-ghost {
  background: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(108,75,199,0.28);
  color: var(--purple);
  font-weight: 800;
  font-size: 16.5px;
  padding: 15px 28px;
  border-radius: 999px;
  gap: 10px;
}
.btn-ghost:hover { border-color: var(--purple); background: #fff; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(108,75,199,0.18); }

/* Фиолетовая сплошная */
.btn-purple {
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  font-size: 15.5px;
  padding: 15px 28px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(108,75,199,0.32);
}
.btn-purple:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(108,75,199,0.42); }

/* Мягкая пилюля (Записаться в карточке) */
.btn-soft {
  background: rgba(108,75,199,0.10);
  color: var(--purple);
  font-weight: 800;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 999px;
}
.btn-soft:hover { background: var(--purple); color: #fff; box-shadow: 0 10px 22px rgba(108,75,199,0.35); }

/* WhatsApp-кнопка в хедере */
.wa-btn {
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(31,138,91,0.28);
  transition: all .2s;
}
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31,138,91,0.38); }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: #A7F3C9; display: inline-block; }

/* ============================================================
   Header / навигация
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(253,252,255,0.78);
  border-bottom: 1px solid rgba(108,75,199,0.10);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-link img { height: 48px; width: auto; display: block; }
.logo-word {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 0.5px;
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
}
.site-footer .logo-word { color: #fff; }
.mobile-menu-head .logo-link img { height: 40px; }

.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 12px;
  transition: all .2s;
}
.nav-link:hover { background: rgba(108,75,199,0.08); color: var(--purple); }

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

/* Переключатель языка */
.lang-toggle { display: flex; background: rgba(108,75,199,0.08); border-radius: 999px; padding: 3px; }
.lang-toggle a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #8A84A0;
  transition: all .2s;
}
.lang-toggle a.active { background: #fff; color: var(--purple-dark); box-shadow: 0 2px 8px rgba(76,42,133,0.18); }

/* Соц-кнопки в хедере */
.social-row { display: flex; gap: 6px; }
.social-btn {
  width: 34px; height: 34px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  color: var(--purple);
  background: rgba(108,75,199,0.08);
  text-decoration: none;
  transition: all .2s;
}
.social-btn:hover { background: var(--purple); color: #fff; transform: translateY(-2px); }

/* Бургер */
.burger {
  border: none; cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: rgba(108,75,199,0.10);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.burger span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--purple-dark); margin: 2.5px 0; }
.burger span:last-child { width: 14px; }

.header-desktop { display: flex; align-items: center; gap: 20px; flex: 1; }
.header-compact { display: none; align-items: center; gap: 10px; flex: 1; }
.header-compact .spacer { flex: 1; }
.header-compact .wa-btn { font-size: 13px; padding: 9px 14px; }

/* Мобильное меню */
.menu-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(36,30,56,0.35);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.menu-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 101;
  width: min(340px, 88vw);
  background: var(--bg);
  box-shadow: -20px 0 60px rgba(76,42,133,0.25);
  padding: 24px;
  overflow-y: auto;
  border-radius: 24px 0 0 24px;
  transform: translateX(105%);
  transition: transform .3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.mobile-menu-head img { height: 40px; }
.menu-close, .modal-close {
  border: none; cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(108,75,199,0.10);
  font-size: 18px; color: var(--purple-dark);
}
.mobile-nav { display: grid; gap: 4px; }
.mobile-nav a {
  font-size: 16px; font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
}
.mobile-nav a:hover { background: rgba(108,75,199,0.08); color: var(--purple); }
.mobile-social { display: flex; gap: 8px; margin-top: 20px; }
.mobile-social a {
  flex: 1; height: 44px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  color: var(--purple);
  background: rgba(108,75,199,0.08);
  text-decoration: none;
}
.mobile-menu .wa-block {
  display: block; text-align: center; margin-top: 14px;
  background: var(--green); color: #fff;
  font-weight: 800; text-decoration: none;
  padding: 14px; border-radius: 16px;
}
.mobile-menu .mobile-trial { width: 100%; margin-top: 18px; padding: 14px; font-size: 15px; }

/* ============================================================
   Карточки (общий hover-lift)
   ============================================================ */
.card { background: #fff; border: 1px solid rgba(108,75,199,0.10); border-radius: 26px; box-shadow: var(--shadow-card); transition: all .25s; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(76,42,133,0.14); }
.lift-sm:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(76,42,133,0.12); }

/* ============================================================
   Форма / поля ввода
   ============================================================ */
.field {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 15px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(108,75,199,0.18);
  outline: none;
  background: #FBFAFE;
  color: var(--text);
  width: 100%;
  transition: border .2s, background .2s;
}
.field:focus { border-color: var(--purple); background: #fff; }
select.field { color: var(--ink-2); }
.form-note { font-size: 12px; color: var(--muted-2); margin-top: 14px; text-align: center; }

/* ============================================================
   FAQ аккордеон
   ============================================================ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid rgba(108,75,199,0.10);
  border-radius: 20px;
  overflow: clip;
  transition: all .25s;
}
.faq-item.open { background: #F8F6FE; border-color: rgba(108,75,199,0.25); }
.faq-q {
  font-family: var(--font-body);
  width: 100%;
  border: none; cursor: pointer;
  background: transparent;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; text-align: left;
  padding: 20px 24px;
  font-size: 16.5px; font-weight: 800;
  color: var(--text);
}
.faq-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 12px;
  background: rgba(108,75,199,0.10);
  color: var(--purple);
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700;
  transition: transform .25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 24px 22px; font-size: 15px; color: var(--muted); line-height: 1.65; display: none; }
.faq-item.open .faq-a { display: block; }

/* ============================================================
   Модалка заявки
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(36,30,56,0.45);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 30px;
  padding: 32px;
  box-shadow: 0 40px 90px rgba(36,30,56,0.35);
  position: relative;
  transform: translateY(12px) scale(0.98);
  transition: transform .25s;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 13px; background: rgba(108,75,199,0.08); color: var(--purple-dark); font-size: 16px; }
.modal-badge {
  width: 60px; height: 60px;
  border-radius: 20px;
  background: linear-gradient(120deg, #6C4BC7, #1F8A5B);
  display: grid; place-items: center;
  font-size: 30px; color: #fff;
  margin-bottom: 16px;
}
.modal h2 { font-size: 24px; margin: 0 0 6px; }
.modal-sub { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; }
.modal-form { display: grid; gap: 12px; }
.modal-form .field { padding: 15px 18px; }
.modal-sent { text-align: center; padding: 20px 0 10px; }
.modal-sent-check {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(31,138,91,0.10);
  color: var(--green);
  display: grid; place-items: center;
  font-size: 34px; margin: 0 auto 18px;
}
.is-hidden { display: none !important; }

/* Floating CTA */
.floating-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 80;
  display: flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff;
  font-weight: 800; font-size: 15px;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(31,138,91,0.45);
  animation: floaty 4s ease-in-out infinite;
  transition: transform .2s;
}
.floating-cta:hover { transform: scale(1.05); }
.floating-cta .wa-dot { width: 10px; height: 10px; }

/* ============================================================
   Фото-слоты (CSS-заглушки под реальные фото)
   ============================================================ */
.photo-slot {
  position: relative;
  border-radius: 22px;
  overflow: clip;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #EFEAFB, #E0F2EA);
  box-shadow: var(--shadow-card);
}
.photo-slot .ms { font-size: 44px; color: #8B7FC0; opacity: 0.85; }
.photo-slot .slot-caption {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  font-family: monospace; font-size: 12px;
  color: #6D5FA0;
  background: rgba(255,255,255,0.85);
  padding: 6px 10px; border-radius: 8px;
  text-align: center;
}
.photo-slot .slot-inner { display: grid; place-items: center; gap: 8px; text-align: center; padding: 16px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--text); color: #B9B3CC; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 56px 24px 28px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.footer-col-title { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-links { display: grid; gap: 9px; }
.footer-links a, .footer-contacts a { color: #B9B3CC; text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover, .footer-contacts a:hover { color: #fff; }
.footer-social { display: flex; gap: 8px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 13px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  color: #fff;
  background: rgba(255,255,255,0.10);
  text-decoration: none;
  transition: all .2s;
}
.footer-social a:hover { background: var(--purple); transform: translateY(-2px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 13px; color: #7A7492; }
.footer-bottom a { color: #7A7492; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   Адаптивность
   ============================================================ */
@media (max-width: 900px) {
  .header-desktop { display: none; }
  .header-compact { display: flex; }
}

/* Тап-таргеты на мобильных */
@media (max-width: 600px) {
  .btn-green, .btn-ghost, .btn-purple { width: 100%; }
  .nav-link { min-height: 44px; }
}
