/* ═══════════════════════════════════════════════════════════
   ДИЗАЙН-СИСТЕМА — NORDIC TRUST
   ═══════════════════════════════════════════════════════════ */
:root {
  /* ─ Цвета ─ */
  --navy:          #1C2B4A;
  --navy-dark:     #131E34;
  --navy-mid:      #243660;
  --gold:          #C8983F;
  --gold-light:    #F0DFB8;
  --gold-pale:     #FBF5E8;
  --bg:            #F5F4F1;
  --bg-alt:        #ECEAE4;
  --surface:       #FFFFFF;
  --text:          #1C2B4A;
  --text-muted:    #6B7A90;
  --text-light:    #9AA5B8;
  --border:        #DDD9D0;
  --border-light:  #ECEAE4;

  /* ─ Типографика ─ */
  --f-head: 'Raleway', sans-serif;
  --f-body: 'DM Sans', sans-serif;

  /* ─ Размеры ─ */
  --r: 4px;          /* базовое скругление */
  --r-md: 8px;
  --r-lg: 12px;
  --section-py: 100px;

  /* ─ Тени ─ */
  --shadow-sm: 0 2px 8px rgba(28,43,74,.07);
  --shadow-md: 0 6px 24px rgba(28,43,74,.10);
  --shadow-lg: 0 16px 48px rgba(28,43,74,.13);
  --shadow-gold: 0 8px 28px rgba(200,152,63,.35);

  /* ─ Переходы ─ */
  --t: .22s ease;
}

/* ─ Reset ─ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Кнопка «Наверх» (fixed) */
.scroll-top {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 400;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  border: 1px solid rgba(28, 43, 74, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--t), visibility var(--t), transform var(--t),
    background var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
}
.scroll-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.scroll-top-icon {
  display: block;
  margin-top: -2px;
}
@media (max-width: 480px) {
  .scroll-top {
    width: 44px;
    height: 44px;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
  }
  .scroll-top-icon {
    width: 20px;
    height: 20px;
  }
}
button { cursor: pointer; font-family: inherit; border: none; background: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ─ Утилиты ─ */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.label::before {
  content: '';
  display: block;
  width: 16px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-tag {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-light);
  background: var(--gold-pale);
  padding: 5px 14px;
  border-radius: var(--r);
  margin-bottom: 16px;
}

/* ─ Кнопки ─ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--r);
  transition: all var(--t);
  letter-spacing: .02em;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { background: #b0832e; box-shadow: 0 10px 32px rgba(200,152,63,.45); transform: translateY(-1px); }
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.22);
}
.btn-outline-light:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(245,244,241,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--t);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 20px;
  color: var(--navy);
  flex-shrink: 0;
  letter-spacing: -.01em;
}
.logo-mark {
  width: auto;
  height: 36px;
  background: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark-svg {
  height: 100%;
  width: auto;
  display: block;
}

.header-cta {
  padding: 10px 20px;
  font-size: 13px;
}
.header-auth {
  padding: 8px 12px;
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t);
  position: relative;
  padding-bottom: 2px;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 16px; }
.header-phone {
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-phone:hover { color: var(--gold); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--navy);
  transition: var(--t);
}

/* Mobile menu */
.mob-menu {
  display: none;
  position: fixed; inset: 0; z-index: 300;
  background: var(--surface);
  flex-direction: column;
  padding: 0 32px 40px;
  overflow-y: auto;
}
.mob-menu.open { display: flex; }
.mob-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 40px;
}
.mob-close {
  font-size: 22px;
  color: var(--navy);
  line-height: 1;
}
.mob-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}
.mob-menu nav a {
  font-family: var(--f-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  display: block;
  transition: color var(--t);
}
.mob-menu nav a:hover { color: var(--gold); }
.mob-menu .btn { align-self: flex-start; }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  background: var(--navy);
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

/* Фоновая геометрия */
.hero-geo {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-geo-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
}
.hero-geo-circle:nth-child(1) { width: 600px; height: 600px; top: -200px; right: -150px; }
.hero-geo-circle:nth-child(2) { width: 400px; height: 400px; top: -50px; right: 0; }
.hero-geo-circle:nth-child(3) { width: 800px; height: 800px; bottom: -400px; left: -300px; }
.hero-geo-line {
  position: absolute;
  background: rgba(200,152,63,.15);
}
.hero-geo-line:nth-child(4) { width: 1px; height: 100%; left: 58%; top: 0; }
.hero-geo-line:nth-child(5) { width: 100%; height: 1px; top: 72%; left: 0; }
.hero-geo-dot {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .5;
}
.hero-geo-dot:nth-child(6) { top: 72%; left: 58%; transform: translate(-50%,-50%); opacity: 1; }

/* Фоновые буквы */
.hero-letters {
  position: absolute;
  right: -20px; bottom: -40px;
  font-family: var(--f-head);
  font-size: 280px;
  font-weight: 900;
  color: rgba(255,255,255,.025);
  letter-spacing: -.05em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--f-head);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero h1 u {
  text-decoration: none;
  position: relative;
}
.hero h1 u::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  opacity: .5;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.58);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 32px;
}
.hero-stat {
  padding-right: clamp(8px, 3vw, 36px);
  margin-right: clamp(8px, 3vw, 36px);
  border-right: 1px solid rgba(255,255,255,.1);
  flex: 0 1 auto;
  min-width: 0;
}
.hero-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.hero-stat-n {
  font-family: var(--f-head);
  font-size: clamp(15px, 3.6vw, 28px);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  display: block;
  margin-bottom: 4px;
}
.hero-stat-n.gold { color: var(--gold); }
.hero-stat-l {
  font-size: clamp(7px, 1.65vw, 11px);
  font-weight: 500;
  color: rgba(255,255,255,.38);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Hero right panel */
.hero-panel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 36px;
  backdrop-filter: blur(10px);
}
.hero-panel-title {
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.hero-panel-sub {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-bottom: 28px;
}
.panel-form { display: flex; flex-direction: column; gap: 12px; }
.panel-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  font-family: var(--f-body);
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: border-color var(--t);
}
.panel-input::placeholder { color: rgba(255,255,255,.3); }
.panel-input:focus { border-color: var(--gold); }
.panel-select {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r);
  font-family: var(--f-body);
  font-size: 15px;
  color: rgba(255,255,255,.7);
  outline: none;
  appearance: none;
  cursor: pointer;
}
.panel-select option { background: var(--navy-dark); color: #fff; }
.panel-submit {
  width: 100%;
  background: var(--gold);
  color: #fff;
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 700;
  padding: 15px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: background var(--t);
  letter-spacing: .02em;
}
.panel-submit:hover { background: #b0832e; }
.panel-note {
  font-size: 11px;
  color: rgba(255,255,255,.28);
  text-align: center;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════
   ДОВЕРИЕ (полоса под hero)
   ═══════════════════════════════════════════════════════════ */
.trust-bar {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,.06);
}
.trust-bar .container.trust-bar-container {
  padding-left: 0;
  padding-right: 0;
}
.trust-bar-container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
  row-gap: 0;
  padding-top: 20px;
  padding-bottom: 20px;
}
.trust-bar-label {
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  padding-left: 32px;
  text-align: left;
  align-self: center;
  white-space: nowrap;
}
.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0 32px 0 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  min-width: 0;
  min-height: 0;
}
.trust-bar-inner::-webkit-scrollbar {
  display: none;
}
.trust-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 1;
  min-width: 0;
}
.trust-sep {
  flex: 0 0 1px;
  width: 1px;
  align-self: stretch;
  min-height: 26px;
  background: var(--gold);
  margin: 0 clamp(10px, 2.5vw, 22px);
  opacity: .85;
}
.trust-logo-img {
  height: clamp(22px, 5.5vw, 38px);
  width: auto;
  max-width: min(180px, 32vw);
  object-fit: contain;
  object-position: center;
  opacity: .93;
}

@media (max-width: 700px) {
  .trust-bar-label {
    padding-left: 20px;
  }
  .trust-bar-inner {
    padding-right: 20px;
    gap: 0;
  }
  .trust-logo-img {
    height: clamp(14px, 3.8vw, 24px);
    max-width: min(120px, 26vw);
  }
  .trust-sep {
    min-height: 18px;
    margin: 0 clamp(6px, 1.8vw, 14px);
  }
}

/* ═══════════════════════════════════════════════════════════
   ОСОБЕННОСТИ
   ═══════════════════════════════════════════════════════════ */
.features {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 32px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--f-head);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.section-head p {
  max-width: 340px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: right;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.feat-card {
  background: var(--surface);
  padding: 36px 28px;
  transition: background var(--t);
}
.feat-card:hover { background: var(--gold-pale); }
.feat-num {
  font-family: var(--f-head);
  font-size: 42px;
  font-weight: 900;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 20px;
}
.feat-icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.feat-card h3 {
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.feat-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   КУРСЫ
   ═══════════════════════════════════════════════════════════ */
.courses {
  padding: var(--section-py) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.courses::before {
  content: 'ABC';
  position: absolute;
  bottom: -60px; right: -40px;
  font-family: var(--f-head);
  font-size: 300px;
  font-weight: 900;
  color: rgba(255,255,255,.025);
  pointer-events: none;
  user-select: none;
  letter-spacing: -.05em;
  line-height: 1;
}

.courses .section-head h2 { color: #fff; }
.courses .section-head p { color: rgba(255,255,255,.45); }

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

.course-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  padding: 36px 32px;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.course-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--t);
}
.course-card:hover {
  background: rgba(255,255,255,.09);
}
.course-card:hover::after { transform: scaleY(1); }

.course-age {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,152,63,.3);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.course-card h3 {
  font-family: var(--f-head);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.25;
}
.course-desc {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  margin-bottom: 24px;
  line-height: 1.6;
}
.course-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.course-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.course-meta-row span:first-child { color: var(--gold); font-size: 15px; }
.course-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 32px;
}
.course-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}
.course-feature::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
  font-weight: 700;
  line-height: 1.5;
}
.course-link {
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t);
}
.course-card:hover .course-link { gap: 10px; }

/* ═══════════════════════════════════════════════════════════
   ПРЕПОДАВАТЕЛЬ
   ═══════════════════════════════════════════════════════════ */
.teacher {
  padding: var(--section-py) 0;
  background: var(--bg-alt);
}

.teacher-slider-wrap {
  position: relative;
}

.teacher-slider.slick-dotted.slick-slider {
  margin-bottom: 0;
}

.teacher-slider .slick-slide {
  outline: none;
}

.teacher-slider-wrap .teacher-badge {
  bottom: 12px;
  right: 12px;
}

.teacher-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 28px;
}

.teacher-slick-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teacher-slick-dots {
  flex: 0 1 auto;
}

.teacher-slider-wrap .slick-dots {
  position: static;
  bottom: auto;
  width: auto;
  margin: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.teacher-slider-wrap .slick-dots li {
  margin: 0;
  width: auto;
  height: auto;
}

.teacher-slider-wrap .slick-dots li button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: var(--border);
}

.teacher-slider-wrap .slick-dots li button:before {
  display: none;
}

.teacher-slider-wrap .slick-dots li.slick-active button {
  background: var(--navy);
  width: 22px;
  border-radius: 4px;
}

.teacher-arrow,
.teacher-slider-wrap .slick-prev,
.teacher-slider-wrap .slick-next {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--navy);
  font-size: 18px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
  cursor: pointer;
  z-index: 2;
}

.teacher-slider-wrap .slick-prev,
.teacher-slider-wrap .slick-next {
  position: static;
  transform: none;
}

.teacher-slider-wrap .slick-prev:before,
.teacher-slider-wrap .slick-next:before {
  display: none;
}

.teacher-arrow:hover,
.teacher-slider-wrap .slick-prev:hover,
.teacher-slider-wrap .slick-next:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.teacher-inner {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: center;
}

.teacher-photo-wrap {
  position: relative;
}
.teacher-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r-md);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  overflow: hidden;
}
.teacher-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
  position: relative;
  overflow: hidden;
}
.teacher-photo-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255,255,255,.015) 20px,
    rgba(255,255,255,.015) 21px
  );
}

.teacher-badge {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--gold);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--r);
  box-shadow: var(--shadow-gold);
  text-align: center;
}
.teacher-badge-n {
  font-family: var(--f-head);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  display: block;
  margin-bottom: 2px;
}
.teacher-badge-l {
  font-size: 11px;
  font-weight: 600;
  opacity: .85;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.teacher-content h2 {
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 6px;
}
.teacher-role {
  font-size: 15px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 24px;
}
.teacher-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}
.teacher-creds {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.teacher-cred {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cred-icon {
  width: 38px; height: 38px;
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.cred-title {
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.cred-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════
   ЦЕНЫ
   ═══════════════════════════════════════════════════════════ */
.pricing {
  padding: var(--section-py) 0;
  background: var(--surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px 28px;
  transition: all var(--t);
  position: relative;
  background: var(--surface);
}
.price-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--navy);
}
.price-card.featured {
  border-color: var(--navy);
  background: var(--navy);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.price-card.featured:hover { transform: translateY(-11px); }

.featured-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #fff;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 2px;
  white-space: nowrap;
  box-shadow: var(--shadow-gold);
}

.price-plan {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.price-card.featured .price-plan { color: rgba(255,255,255,.45); }

.price-tier:not(:last-of-type) {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.price-card.featured .price-tier:not(:last-of-type) {
  border-bottom-color: rgba(255,255,255,.12);
}

.price-age {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.price-card.featured .price-age { color: rgba(255,255,255,.5); }

.price-val {
  font-family: var(--f-head);
  font-size: 48px;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 4px;
}
.price-val sup { font-size: 22px; vertical-align: super; }
.price-card.featured .price-val { color: #fff; }

.price-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.price-card.featured .price-period { color: rgba(255,255,255,.4); }

.price-lessons {
  font-family: var(--f-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.price-card.featured .price-lessons { border-bottom-color: rgba(255,255,255,.1); }

/* Внутри блока возраста нижняя линия только у последнего тарифа перед списком */
.price-tier .price-lessons {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.price-tier:last-of-type .price-lessons {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.price-card.featured .price-tier:last-of-type .price-lessons {
  border-bottom-color: rgba(255,255,255,.1);
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 32px;
}
.price-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.price-card.featured .price-feat { color: rgba(255,255,255,.75); }
.price-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
.price-card.featured .price-check {
  background: rgba(200,152,63,.2);
  border-color: rgba(200,152,63,.3);
}

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

.price-note {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-muted);
}
.price-note a { color: var(--navy); font-weight: 600; }

/* Calculator teaser */
.calc-box {
  margin-top: 48px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.calc-box h4 {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.calc-box p { font-size: 14px; color: var(--text-muted); max-width: 420px; }

/* ═══════════════════════════════════════════════════════════
   ОТЗЫВЫ
   ═══════════════════════════════════════════════════════════ */
.reviews {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px;
  transition: all var(--t);
  position: relative;
}
.review-card:hover {
  z-index: 1;
  box-shadow: var(--shadow-md);
}
.review-card.featured-review {
  background: var(--navy);
  border-color: var(--navy);
}

.review-stars { font-size: 15px; letter-spacing: 2px; color: var(--gold); margin-bottom: 16px; }
.review-card.featured-review .review-stars { color: var(--gold); }

.review-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 24px;
  font-style: italic;
}
.review-card.featured-review .review-text { color: rgba(255,255,255,.75); }

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.review-card.featured-review .review-author { border-top-color: rgba(255,255,255,.1); }

.review-ava {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.review-card.featured-review .review-ava { background: rgba(255,255,255,.1); }

.review-name {
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.review-card.featured-review .review-name { color: #fff; }
.review-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.review-card.featured-review .review-meta { color: rgba(255,255,255,.4); }

.review-sources {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.review-source-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--t);
}
.review-source-link:hover { color: var(--navy); }

/* ═══════════════════════════════════════════════════════════
   TELEGRAM
   ═══════════════════════════════════════════════════════════ */
.tg-section {
  padding: var(--section-py) 0;
  background: var(--bg-alt);
}

.tg-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.tg-section-title {
  font-family: var(--f-head);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}
.tg-left {}
.tg-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tg-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  color: #0088CC;
  border: 1px solid rgba(0,136,204,.25);
  padding: 8px 16px;
  border-radius: var(--r);
  transition: all var(--t);
}
.tg-link:hover { background: #0088CC; color: #fff; border-color: #0088CC; }

/* Слайдер Telegram: variableWidth — несколько карточек + «кусок» следующей; список обрезает дорожку */
.tg-slider-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.tg-slick.slick-dotted.slick-slider {
  margin-bottom: 0;
}

.tg-slick {
  margin: 0;
  max-width: 100%;
}

.tg-slick .slick-slide {
  display: flex;
  padding: 0 10px;
  height: auto;
  align-items: stretch;
  box-sizing: border-box;
}

.tg-slick .slick-slide > div {
  display: flex;
  height: 100%;
  min-height: 100%;
}

.tg-slick .slick-list {
  margin: 0;
  overflow: hidden;
  padding: 8px 0 24px;
}

/*
  Карточка: фиксированная высота (вся карточка видна), ширина — несколько слайдов в ряд.
*/
.tg-slick .slick-slide .tg-card {
  width: clamp(200px, 24vw, 300px);
  height: clamp(340px, 46vh, 480px);
  max-height: 480px;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 520px) {
  .tg-slick .slick-slide .tg-card {
    width: clamp(200px, 78vw, 300px);
    height: clamp(320px, 52vh, 460px);
  }
}

.tg-card {
  height: 100%;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all var(--t);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* В ленте Telegram — компактнее отступы на узких экранах */
.tg-slick .tg-card {
  padding: clamp(14px, 3.2vw, 28px);
}

.tg-card-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-md);
  margin: 0 0 16px;
  background: var(--bg-alt);
}
.tg-slick .tg-card-photo,
.tg-slick .tg-card-photo--empty {
  flex: 0 0 auto;
  width: 100%;
  max-height: 42%;
  min-height: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: 0 0 clamp(8px, 2vw, 14px);
}
.tg-card-photo--empty {
  aspect-ratio: 16 / 10;
  min-height: 140px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--border) 100%);
  border-radius: var(--r-md);
}
.tg-slick .tg-card-photo--empty {
  min-height: 0;
}
.tg-card:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.tg-card > .tg-date {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: none;
  color: var(--text-light);
}
.tg-slick .tg-card > .tg-date {
  flex: 0 0 auto;
  margin: 0 0 clamp(6px, 1.5vw, 10px);
  font-size: clamp(10px, 2.4vw, 12px);
  letter-spacing: .04em;
}
.tg-card--loading .tg-card-text,
.tg-card--empty .tg-card-text {
  color: var(--text-muted);
  font-style: normal;
}

.tg-card-text {
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Подпись к посту: до 5 строк, многоточие; шрифт уменьшается с шириной экрана */
.tg-slick .tg-card-text {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 0 clamp(8px, 2vw, 14px);
  line-height: 1.5;
  font-size: clamp(11px, 2.75vw, 14px);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.tg-read {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  color: #0088CC;
  letter-spacing: .04em;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t);
}
.tg-slick .tg-read {
  flex: 0 0 auto;
  margin-top: 0;
  font-size: clamp(10px, 2.2vw, 12px);
}
.tg-card:hover .tg-read { gap: 8px; }

.tg-feed-error {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 520px;
}

.tg-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 24px;
}

.tg-slick-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tg-slick-dots {
  flex: 1;
  min-width: 120px;
}

.tg-slider-wrap .slick-dots {
  position: static;
  bottom: auto;
  width: auto;
  margin: 0;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.tg-slider-wrap .slick-dots li {
  margin: 0;
  width: auto;
  height: auto;
}

.tg-slider-wrap .slick-dots li button {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 50%;
  background: var(--border);
}

.tg-slider-wrap .slick-dots li button:before {
  display: none;
}

.tg-slider-wrap .slick-dots li.slick-active button {
  background: var(--navy);
  width: 20px;
  border-radius: 3px;
}

.tg-arrow,
.tg-slider-wrap .slick-prev,
.tg-slider-wrap .slick-next {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--navy);
  font-size: 16px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
  cursor: pointer;
  z-index: 2;
}

.tg-slider-wrap .slick-prev,
.tg-slider-wrap .slick-next {
  position: static;
  transform: none;
}

.tg-slider-wrap .slick-prev:before,
.tg-slider-wrap .slick-next:before {
  display: none;
}

.tg-arrow:hover,
.tg-slider-wrap .slick-prev:hover,
.tg-slider-wrap .slick-next:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ═══════════════════════════════════════════════════════════
   КЛАСС / УЧЕБНАЯ СРЕДА
   ═══════════════════════════════════════════════════════════ */
.classroom {
  padding: var(--section-py) 0;
  background: var(--surface);
}

.classroom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.classroom-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border-radius: var(--r-md);
  overflow: hidden;
}
.classroom-img {
  aspect-ratio: 1;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px;
  transition: transform var(--t);
}
.classroom-img:hover { transform: scale(1.03); z-index: 1; }
.classroom-img:nth-child(1) { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); }
.classroom-img:nth-child(2) { background: linear-gradient(135deg, #2A3F60 0%, var(--navy) 100%); }
.classroom-img:nth-child(3) { background: linear-gradient(135deg, #203558 0%, #1a2d4e 100%); }
.classroom-img:nth-child(4) { background: var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.img4-num {
  font-family: var(--f-head);
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.img4-lbl {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .1em;
  text-align: center;
}

.classroom-content h2 {
  font-family: var(--f-head);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 16px;
}
.classroom-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}
.classroom-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
}
.classroom-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.cl-icon {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.cl-title {
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.cl-text { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.faq-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.faq-side h2 {
  font-family: var(--f-head);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 14px;
}
.faq-side p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}
.faq-cta {
  background: var(--navy);
  border-radius: var(--r-md);
  padding: 28px;
}
.faq-cta h4 {
  font-family: var(--f-head);
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.faq-cta p {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
  line-height: 1.6;
}

.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item.open { border-color: var(--navy); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  background: none;
  gap: 16px;
  transition: color var(--t);
  cursor: pointer;
}
.faq-item.open .faq-q { color: var(--gold); }

.faq-icon-wrap {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--t);
  font-size: 16px;
  color: var(--navy);
  line-height: 1;
}
.faq-item.open .faq-icon-wrap {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  transform: rotate(45deg);
}

.faq-ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s ease;
}
.faq-item.open .faq-ans { max-height: 400px; }
.faq-ans p {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════
   КОНТАКТЫ
   ═══════════════════════════════════════════════════════════ */
.contacts {
  padding: var(--section-py) 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.contacts::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
  pointer-events: none;
}
.contacts .section-head h2 { color: #fff; }
.contacts .section-head p { color: rgba(255,255,255,.45); }

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  max-width: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.cont-icon {
  width: 44px; height: 44px;
  background: rgba(200,152,63,.15);
  border: 1px solid rgba(200,152,63,.25);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.cont-label {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 3px;
}
.cont-val {
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.cont-val a { transition: color var(--t); }
.cont-val a:hover { color: var(--gold); }
.cont-sub {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  margin-top: 2px;
}

.map-box {
  margin-top: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  overflow: hidden;
}

/* Адаптивная Яндекс-карта: без фиксированных width/height у iframe */
.map-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 200px;
  background: rgba(0,0,0,.15);
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
  display: block;
}

/* Форма */
.contact-form {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 40px;
}
.form-title {
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.form-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}
.form-row { margin-bottom: 14px; }
.form-label {
  display: block;
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--navy);
  background: var(--bg);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28,43,74,.08);
  background: var(--surface);
}
.form-input::placeholder { color: var(--text-light); }

.age-btns {
  display: flex; gap: 8px;
}
.age-btn {
  flex: 1;
  padding: 12px 8px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--t);
  text-align: center;
}
.age-btn:hover, .age-btn.sel { background: var(--navy); color: #fff; border-color: var(--navy); }

.form-submit {
  width: 100%;
  background: var(--gold);
  color: #fff;
  font-family: var(--f-head);
  font-size: 15px;
  font-weight: 700;
  padding: 16px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: background var(--t);
  margin-top: 6px;
  letter-spacing: .02em;
}
.form-submit:hover { background: #b0832e; }
.form-privacy {
  font-size: 11px;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.form-privacy a { color: var(--navy); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 19px;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.footer-logo-mark {
  width: auto;
  height: 34px;
  background: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.footer-logo-svg {
  height: 100%;
  width: auto;
  display: block;
}
.footer-about {
  font-size: 14px;
  color: rgba(255,255,255,.38);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-socials { display: flex; gap: 10px; }
.soc {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,.45);
  transition: all var(--t);
}
.soc:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.footer-col h5 {
  font-family: var(--f-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  transition: color var(--t);
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,.25); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,.25); transition: color var(--t); }
.footer-links a:hover { color: rgba(255,255,255,.6); }
.footer-legal-link { cursor: pointer; }

/* Юридические модальные окна (footer) */
.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background: rgba(19, 30, 52, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.legal-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.legal-modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: min(85vh, 720px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 32px;
}
.legal-modal-panel--pdf {
  max-width: min(960px, 96vw);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 24px;
}
.legal-modal-panel--pdf .legal-modal-body--pdf {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.legal-doc-frame {
  width: 100%;
  flex: 1;
  min-height: min(68vh, 560px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-alt);
}
.legal-doc-tools {
  margin: 14px 0 0;
  font-size: 13px;
  flex-shrink: 0;
}
.legal-doc-tools a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-doc-tools a:hover {
  color: var(--gold);
}
.legal-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-alt);
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.legal-modal-close:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.legal-modal-title {
  font-family: var(--f-head);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 44px 20px 0;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}
.legal-modal-body {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}
.legal-modal-body p {
  margin: 0 0 14px;
}
.legal-modal-body p:last-child {
  margin-bottom: 0;
}
.legal-modal-body--pdf p {
  margin-bottom: 0;
}

.captcha-modal-hint {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 18px;
}
.captcha-warning {
  font-size: 13px;
  color: #b45309;
  margin: 0 0 8px;
}
.captcha-status {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
  min-height: 1.2em;
}

/* ═══════════════════════════════════════════════════════════
   АНИМАЦИИ
   ═══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ═══════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr 360px; gap: 48px; }
  .teacher-inner { grid-template-columns: 320px 1fr; gap: 48px; }
  .features-grid { grid-template-columns: repeat(2,1fr); }
}

/* Шапка: телефон в одну строку — ужимаем nav, пока он виден (ширина > 900px) */
@media (max-width: 1200px) and (min-width: 901px) {
  .header-inner { gap: 18px; }
  .nav { gap: 20px; }
  .nav a { font-size: 13px; }
  .header-phone { font-size: 13px; }
  .header-right { gap: 12px; }
  .header-auth { font-size: 11px; padding: 7px 10px; }
}
@media (max-width: 1050px) and (min-width: 901px) {
  .header-inner { gap: 12px; }
  .nav { gap: 12px; }
  .nav a { font-size: 12px; }
  .header-phone { font-size: 12px; }
  .logo { font-size: 18px; }
}
@media (max-width: 960px) and (min-width: 901px) {
  .header-inner { gap: 8px; }
  .nav { gap: 8px; }
  .nav a { font-size: 11px; }
  .header-phone { font-size: 11px; }
  .logo { font-size: 17px; }
  .logo-mark { height: 32px; }
  .header-cta { padding: 8px 14px; font-size: 12px; }
}

@media (max-width: 900px) {
  :root { --section-py: 72px; }
  .nav { display: none; }
  .header-phone { display: none; }
  .header-auth { display: none; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .hero { min-height: auto; padding: 56px 0; }
  .hero h1 { font-size: 2rem; }
  .hero-stats { gap: 0; }
  .hero-stat { padding-right: clamp(6px, 2.5vw, 20px); margin-right: clamp(6px, 2.5vw, 20px); }
  .courses-grid { grid-template-columns: 1fr; }
  .teacher-inner { grid-template-columns: 1fr; }
  .teacher-photo-wrap { max-width: 320px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-3px); }
  .reviews-grid { grid-template-columns: 1fr; }
  .classroom-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head p { text-align: left; max-width: 100%; }
  .calc-box { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  :root { --section-py: 56px; }
  .container { padding: 0 20px; }
  /* .container сбрасывает padding-top/bottom — возвращаем для полосы доверия */
  .trust-bar .container.trust-bar-container {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-stats {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    padding-top: 24px;
    justify-content: space-between;
    align-items: stretch;
  }
  .hero-stat {
    flex: 1 1 0;
    min-width: 0;
    border-right: 1px solid rgba(255,255,255,.1);
    border-bottom: none;
    padding-right: clamp(4px, 1.5vw, 10px);
    margin-right: clamp(4px, 1.5vw, 10px);
    padding-bottom: 0;
    margin-bottom: 0;
    text-align: center;
  }
  .hero-stat:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .age-btns { flex-wrap: wrap; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .classroom-visual { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 434px) {
  .header-inner {
    height: 56px;
    gap: 8px;
  }
  .logo {
    font-size: 15px;
    gap: 6px;
    letter-spacing: -.02em;
  }
  .logo-mark {
    height: 26px;
  }
  .header-right {
    gap: 8px;
  }
  .header-cta {
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: .01em;
    white-space: nowrap;
  }
  .burger {
    padding: 2px;
  }
  .burger span {
    width: 18px;
  }
}

