/* ==========================================================================
   Центр «Первый Класс» — стили лендинга
   Mobile-first, 375–1440px. 8px-ритм.
   Палитра выведена из продукта: тёплая забота, уверенность, игра.
   ========================================================================== */

/* --- Переменные --------------------------------------------------------- */
:root {
  /* Цвета */
  --c-bg:          #FFF8F3;   /* основной фон — тёплый кремовый */
  --c-bg-alt:      #F5EDE5;   /* фон чётных секций */
  --c-bg-dark:     #2D3142;   /* тёмный фон (CTA-баннер) */
  --c-primary:     #E8735A;   /* коралловый — главный акцент */
  --c-primary-h:   #D1614A;   /* hover кнопки */
  --c-secondary:   #5B8A5B;   /* шалфей — вторичный акцент */
  --c-accent:      #FFD166;   /* тёплый жёлтый — бейджи, выделения */
  --c-text:        #2D3142;   /* основной текст */
  --c-text-mid:    #5F6580;   /* вторичный текст */
  --c-text-light:  #9699AE;   /* подписи */
  --c-border:      #E8D5C9;   /* рамки */
  --c-white:       #FFFFFF;

  /* Шрифты */
  --f-head:  'Nunito', sans-serif;
  --f-body:  'Inter', sans-serif;

  /* Отступы (8px-ритм) */
  --s1:  8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s8: 64px;
  --s10: 80px;
  --s12: 96px;

  /* Скругления */
  --r-sm:   8px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-full: 999px;

  /* Тени */
  --sh-sm: 0 2px 8px rgba(45, 49, 66, 0.08);
  --sh-md: 0 4px 20px rgba(45, 49, 66, 0.12);
  --sh-lg: 0 8px 40px rgba(45, 49, 66, 0.16);

  /* Контент-ширина */
  --w-content: 1160px;
  --w-narrow:   720px;
}

/* --- Сброс ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Типографика ------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-text);
}

h1 { font-size: clamp(1.75rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

p { line-height: 1.7; }

/* --- Layout helpers ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 var(--s3);
}

.container--narrow { max-width: var(--w-narrow); }

.section {
  padding: var(--s10) 0;
}

.section--alt { background: var(--c-bg-alt); }
.section--dark {
  background: var(--c-bg-dark);
  color: var(--c-white);
}
.section--dark h2,
.section--dark h3,
.section--dark p { color: var(--c-white); }

.section-label {
  display: inline-block;
  font-family: var(--f-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--s2);
}

.section-title {
  margin-bottom: var(--s2);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--c-text-mid);
  margin-bottom: var(--s6);
  max-width: 600px;
}

/* --- Кнопки ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  min-height: 48px; /* ≥44px требование */
  min-width: 44px;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--c-primary);
  color: var(--c-white);
  box-shadow: 0 4px 16px rgba(232, 115, 90, 0.35);
}

.btn-primary:hover {
  background: var(--c-primary-h);
  box-shadow: 0 6px 24px rgba(232, 115, 90, 0.45);
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}

.btn-ghost:hover {
  background: var(--c-primary);
  color: var(--c-white);
}

.btn-ghost-white {
  background: transparent;
  color: var(--c-white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-ghost-white:hover {
  background: var(--c-white);
  color: var(--c-bg-dark);
}

.btn-lg { padding: 17px 36px; font-size: 1.1rem; }
.btn-full { width: 100%; }

/* --- Бейдж ------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-family: var(--f-head);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(232, 115, 90, 0.12);
  color: var(--c-primary);
  margin-bottom: var(--s3);
}

.badge--accent {
  background: var(--c-accent);
  color: var(--c-text);
}

/* --- Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 243, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  padding: var(--s2) 0;
  transition: box-shadow 0.2s;
}

.site-header.scrolled {
  box-shadow: var(--sh-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--c-primary);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c-text);
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--c-text-mid);
  letter-spacing: 0.03em;
}

.header-phone {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-text);
  text-decoration: none;
  display: none;
}

.header-phone:hover { color: var(--c-primary); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

/* --- Hero -------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--c-bg) 0%, #FDEEE8 60%, #FAE0D6 100%);
  padding: var(--s10) 0 var(--s8);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,115,90,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,209,102,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { text-align: center; }

.hero h1 {
  margin-bottom: var(--s3);
  color: var(--c-text);
}

.hero h1 em {
  font-style: normal;
  color: var(--c-primary);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--c-text-mid);
  max-width: 560px;
  margin: 0 auto var(--s5);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
}

.hero-cta-note {
  font-size: 0.85rem;
  color: var(--c-text-mid);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-cta-note::before {
  content: '✓';
  color: var(--c-secondary);
  font-weight: 700;
}

.hero-visual {
  position: relative;
}

.img-placeholder {
  background: linear-gradient(135deg, #FDDDD5 0%, #FBE8D5 100%);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  color: var(--c-primary);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  aspect-ratio: 4/3;
  border: 2px dashed var(--c-border);
}

.img-placeholder .ph-icon { font-size: 3rem; opacity: 0.5; }
.img-placeholder p { opacity: 0.7; font-size: 0.8rem; max-width: 180px; }

/* --- Феатурки (мини-статистика под героем) ----------------------------- */
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin-top: var(--s6);
  padding-top: var(--s6);
  border-top: 1px solid var(--c-border);
}

.hero-feature {
  text-align: center;
}

.hero-feature-val {
  font-family: var(--f-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-feature-lbl {
  font-size: 0.8rem;
  color: var(--c-text-mid);
}

/* --- Выгоды (benefits) ------------------------------------------------- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  margin-top: var(--s5);
}

.benefit-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s4);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--c-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--s2);
}

.benefit-icon--coral  { background: rgba(232,115,90,0.12); }
.benefit-icon--green  { background: rgba(91,138,91,0.12); }
.benefit-icon--yellow { background: rgba(255,209,102,0.2); }
.benefit-icon--blue   { background: rgba(100,149,237,0.12); }
.benefit-icon--pink   { background: rgba(255,182,193,0.2); }
.benefit-icon--purple { background: rgba(147,112,219,0.12); }

.benefit-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--c-text-mid);
  line-height: 1.5;
}

/* --- Формат занятий ---------------------------------------------------- */
.format-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  align-items: center;
}

.format-items {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.format-item {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
}

.format-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.format-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.format-item p {
  font-size: 0.92rem;
  color: var(--c-text-mid);
}

/* --- Педагог ------------------------------------------------------------ */
.teacher-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  align-items: center;
}

.teacher-photo-wrap {
  max-width: 320px;
  margin: 0 auto;
}

.teacher-photo {
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
}

.teacher-role {
  font-size: 1rem;
  color: var(--c-primary);
  font-weight: 600;
  margin-bottom: var(--s4);
}

.teacher-stats {
  display: flex;
  gap: var(--s5);
  margin-bottom: var(--s4);
  padding: var(--s4) var(--s5);
  background: var(--c-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
}

.teacher-stat { text-align: center; }

.teacher-stat-val {
  font-family: var(--f-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.teacher-stat-lbl {
  font-size: 0.78rem;
  color: var(--c-text-mid);
  line-height: 1.3;
}

.teacher-points {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-bottom: var(--s5);
}

.teacher-point {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
}

.teacher-point p {
  font-size: 0.98rem;
  color: var(--c-text-mid);
  line-height: 1.55;
}

.teacher-point strong { color: var(--c-text); }

/* --- Почему сейчас (возражение «ещё рано») ----------------------------- */
.why-now-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  align-items: center;
}

.why-now-points {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-top: var(--s4);
}

.why-now-point {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
}

.point-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: rgba(91,138,91,0.15);
  color: var(--c-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.why-now-point p {
  font-size: 0.98rem;
  color: var(--c-text-mid);
  line-height: 1.55;
}

.why-now-point strong { color: var(--c-text); }

/* --- Отзывы ------------------------------------------------------------ */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
  margin-top: var(--s5);
}

.testimonial-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: var(--s4);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--c-border);
  position: relative;
}

.testimonial-card::before {
  content: '«';
  position: absolute;
  top: var(--s3);
  right: var(--s4);
  font-family: var(--f-head);
  font-size: 4rem;
  font-weight: 800;
  color: var(--c-border);
  line-height: 1;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--c-text-mid);
  margin-bottom: var(--s3);
  line-height: 1.65;
  font-style: italic;
}

.testimonial-text.placeholder-text {
  color: #C0C4D0;
  font-style: normal;
  border: 1.5px dashed var(--c-border);
  border-radius: var(--r-sm);
  padding: var(--s2);
  font-size: 0.85rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1rem;
  color: var(--c-white);
  flex-shrink: 0;
}

.author-avatar.ph {
  background: var(--c-bg-alt);
  color: var(--c-text-light);
  border: 2px dashed var(--c-border);
}

.author-name {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-text);
}

.author-meta {
  font-size: 0.8rem;
  color: var(--c-text-light);
}

/* --- Цена -------------------------------------------------------------- */
.pricing-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  margin-top: var(--s5);
}

.price-card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: var(--s5);
  box-shadow: var(--sh-md);
  border: 2px solid var(--c-border);
  position: relative;
  overflow: hidden;
}

.price-card--main {
  border-color: var(--c-primary);
}

.price-card--main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}

.price-card-label {
  font-family: var(--f-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-mid);
  margin-bottom: var(--s2);
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--s1);
}

.price-num {
  font-family: var(--f-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--c-text);
}

.price-period {
  font-size: 0.9rem;
  color: var(--c-text-mid);
}

.price-per {
  font-size: 0.9rem;
  color: var(--c-secondary);
  font-weight: 600;
  margin-bottom: var(--s3);
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  margin-bottom: var(--s4);
}

.price-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--s1);
  font-size: 0.92rem;
  color: var(--c-text-mid);
}

.price-feature::before {
  content: '✓';
  color: var(--c-secondary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-card--free {
  background: linear-gradient(135deg, #FFF8F3 0%, #FDEEE8 100%);
  border-color: var(--c-primary);
  text-align: center;
}

.price-free-icon {
  font-size: 2.5rem;
  margin-bottom: var(--s2);
}

.price-free-title {
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: var(--s1);
}

.price-free-sub {
  font-size: 0.9rem;
  color: var(--c-text-mid);
  margin-bottom: var(--s4);
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--c-accent);
  color: var(--c-text);
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: var(--s3);
}

/* --- CTA-баннер -------------------------------------------------------- */
.cta-banner {
  text-align: center;
  padding: var(--s12) 0;
}

.cta-banner h2 {
  color: var(--c-white);
  margin-bottom: var(--s3);
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto var(--s5);
  font-size: 1.05rem;
}

.cta-banner-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
}

.cta-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* --- FAQ --------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-top: var(--s5);
}

.faq-item {
  background: var(--c-white);
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--s3) var(--s4);
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--c-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  cursor: pointer;
  transition: background 0.15s;
}

.faq-question:hover { background: var(--c-bg); }

.faq-question.open { color: var(--c-primary); }

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: transform 0.2s;
}

.faq-question.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 var(--s4) var(--s3);
  font-size: 0.95rem;
  color: var(--c-text-mid);
  line-height: 1.65;
  border-top: 1px solid var(--c-border);
  padding-top: var(--s3);
}

.faq-answer.open { display: block; }

/* --- Footer ------------------------------------------------------------ */
.site-footer {
  background: var(--c-bg-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--s8) 0 var(--s5);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
}

.footer-brand .logo-text { color: var(--c-white); }
.footer-brand .logo-text span { color: rgba(255,255,255,0.5); }

.footer-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-top: var(--s2);
  max-width: 280px;
  line-height: 1.6;
}

.footer-col-title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--s2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--c-accent); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s1);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--s2);
}

.footer-contact-item a { color: rgba(255,255,255,0.85); }
.footer-contact-item a:hover { color: var(--c-accent); }

.footer-bottom {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* --- Форма (попап) ------------------------------------------------------ */
.form-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(45, 49, 66, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s3);
  opacity: 1;
  transition: opacity 0.2s;
}

.form-popup[hidden] { display: none; }

.form-popup-inner {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: var(--s5);
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: var(--sh-lg);
  max-height: 90vh;
  overflow-y: auto;
}

.form-close {
  position: absolute;
  top: var(--s2);
  right: var(--s2);
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--c-bg-alt);
  font-size: 1.2rem;
  color: var(--c-text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  min-height: 44px;
  min-width: 44px;
}

.form-close:hover {
  background: var(--c-border);
  color: var(--c-text);
}

.form-title {
  font-family: var(--f-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--c-text-mid);
  margin-bottom: var(--s4);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-subtitle::before {
  content: '🎁';
}

#lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-text);
  font-family: var(--f-head);
}

#lead-form input[type="text"],
#lead-form input[type="tel"],
#lead-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--c-border);
  font-family: var(--f-body);
  font-size: 1rem;
  color: var(--c-text);
  background: var(--c-bg);
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px;
}

#lead-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%235F6580' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

#lead-form input:focus,
#lead-form select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(232, 115, 90, 0.15);
}

#lead-form input.error,
#lead-form select.error {
  border-color: #E74C3C;
}

.form-error-msg {
  font-size: 0.8rem;
  color: #E74C3C;
  display: none;
}

.form-error-msg.visible { display: block; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--s1);
  font-size: 0.8rem;
  color: var(--c-text-mid);
  cursor: pointer;
  line-height: 1.5;
}

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

.form-consent a {
  color: var(--c-primary);
  text-decoration: underline;
}

.form-consent a:hover { text-decoration: none; }

#lead-form .btn-primary {
  margin-top: var(--s1);
}

.form-success {
  text-align: center;
  padding: var(--s5) var(--s3);
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  background: rgba(91,138,91,0.15);
  color: var(--c-secondary);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s3);
}

.form-success h4 {
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: var(--s2);
}

.form-success p {
  font-size: 0.95rem;
  color: var(--c-text-mid);
}

/* --- Утилиты ----------------------------------------------------------- */
.text-center { text-align: center; }
.text-primary { color: var(--c-primary); }
.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;
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */

/* --- Планшет (768px) --------------------------------------------------- */
@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .hero-content { text-align: left; }
  .hero-sub { margin-left: 0; }

  .hero-cta {
    flex-direction: row;
    align-items: center;
  }

  .hero-features { grid-template-columns: repeat(3, 1fr); }

  .benefits-grid { grid-template-columns: repeat(3, 1fr); }

  .format-inner {
    grid-template-columns: 1fr 1fr;
  }

  .teacher-inner {
    grid-template-columns: 1fr 1.6fr;
  }

  .teacher-photo-wrap { max-width: 100%; margin: 0; }

  .why-now-inner {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }

  .pricing-inner { grid-template-columns: 1fr 1fr; }

  .cta-banner-actions {
    flex-direction: row;
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .header-phone { display: block; }
}

/* --- Десктоп (1024px) -------------------------------------------------- */
@media (min-width: 1024px) {
  .container { padding: 0 var(--s5); }

  .hero { padding: var(--s12) 0 var(--s10); }

  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--s10);
  }

  .benefits-grid { gap: var(--s4); }

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* --- Крупный десктоп (1280px) ------------------------------------------ */
@media (min-width: 1280px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
}
