/* ═══════════════════════════════════════
   ПЕРЕМЕННЫЕ / RESET
═══════════════════════════════════════ */
:root {
  --header-bar:  72px;
  --forest:      #2D8B57;
  --forest-mid:  #3AA66C;
  --forest-dark: #145C33;
  --sage:        #8AAF7A;
  --sage-light:  #C8DDB8;
  --mint-bg:     #EAF3E5;
  --gold:        #B8832A;
  --gold-light:  #D4A85A;
  --gold-pale:   #F0DFB0;
  --cream:       #F7F5EE;
  --white:       #FDFCF8;
  --muted:       #5A7A64;
  --text:        #145C33;
  --radius:      2px;
  --shadow:      0 8px 40px rgba(14,38,24,.10);
  --transition:  .25s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--mint-bg);
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
/* iOS scroll-lock */
body.menu-open { overflow: hidden; touch-action: none; }
a { text-decoration: none; color: inherit; touch-action: manipulation; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font-family: 'Montserrat', sans-serif; cursor: pointer; touch-action: manipulation; }

/* ═══════════════════════════════════════
   ТИПОГРАФИКА — утилиты
═══════════════════════════════════════ */
.serif {
  font-family: 'Cormorant Garamond', serif;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--forest);
  margin-bottom: 52px;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}

/* ═══════════════════════════════════════
   КНОПКИ
═══════════════════════════════════════ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold); color: var(--forest-dark); }
.btn-gold:hover { background: var(--gold-light); color: var(--forest-dark); }

.btn-forest { background: var(--forest); color: #FFFF00; }
.btn-forest:hover { background: var(--forest-mid); color: #FFFF00; }

.btn-outline-light {
  background: transparent;
  color: #FFFF00;
  border: 1px solid rgba(255,255,255,.35);
}
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #FFFF00; }

.btn-outline-forest {
  background: transparent;
  color: #FFFF00;
  border: 1px solid var(--forest);
}
.btn-outline-forest:hover { background: var(--forest); color: #FFFF00; }

.btn-ghost-gold {
  background: transparent;
  color: #FFFF00;
  border: 1px solid rgba(212,168,90,.5);
}
.btn-ghost-gold:hover { background: var(--gold); color: #FFFF00; border-color: var(--gold); }

/* ═══════════════════════════════════════
   СЕКЦИИ — контейнер
═══════════════════════════════════════ */
.section-wrap { padding: 88px 40px; }
.container { max-width: 1240px; margin: 0 auto; }

/* ═══════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════ */
/* By default all reveal elements are visible (fallback for no-JS / Quick Look) */
.reveal {
  transition: opacity .65s ease, transform .65s ease;
}
/* Animation only activates when JS has initialised */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
}
body.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ═══════════════════════════════════════
   ░░ ШАПКА (HEADER)
═══════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--forest);
  border-bottom: 1px solid rgba(212,168,90,.18);
  transition: box-shadow var(--transition);
}
#header.scrolled {
  box-shadow: 0 4px 30px rgba(14,38,24,.35);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: env(safe-area-inset-top) 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: calc(var(--header-bar) + env(safe-area-inset-top));
}

/* Логотип */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 210px;
}
.logo-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: .8;
}
.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .07em;
}

/* Навигация */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold-light); }

.nav-phone {
  color: var(--gold-light) !important;
  border: 1px solid rgba(212,168,90,.4);
  padding: 7px 18px;
  border-radius: 20px;
  transition: background var(--transition) !important;
}
.nav-phone:hover {
  background: var(--gold) !important;
  color: var(--forest-dark) !important;
  border-color: var(--gold) !important;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  z-index: 1001;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: calc(var(--header-bar) + env(safe-area-inset-top));
  left: 0; right: 0; bottom: 0;
  background: var(--forest-dark);
  z-index: 999;
  padding: 40px 40px calc(40px + env(safe-area-inset-bottom));
  gap: 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* скрыто по умолчанию */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}
.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu a {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--gold-light); }
.mobile-menu .mob-phone {
  color: var(--gold-light) !important;
  font-size: 22px;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin-top: 20px;
  border-bottom: none;
  letter-spacing: .05em;
}

/* ═══════════════════════════════════════
   ░░ HERO
═══════════════════════════════════════ */
#hero {
  background: linear-gradient(150deg, var(--forest-dark) 0%, #258C50 55%, var(--forest-mid) 100%);
  padding: calc(var(--header-bar) + env(safe-area-inset-top) + 68px) 40px 100px;
  position: relative;
  overflow: hidden;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent 100%);
}
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 80px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
  opacity: .9;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--gold);
}
#hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
}
#hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  font-size: 14px;
  color: #fff;
  margin: 22px 0 38px;
  max-width: 480px;
  line-height: 1.85;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid rgba(212,168,90,.2);
  flex-wrap: wrap;
}
.stat-item {}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  line-height: 1.5;
  margin-top: 5px;
  letter-spacing: .03em;
}

/* Hero card */
.hero-card {
  background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212,168,90,.25);
  border-radius: var(--radius);
  padding: 34px;
}
.award-badge {
  background: var(--gold);
  color: var(--forest-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 1px;
  display: inline-block;
  margin-bottom: 20px;
}
.hero-photo {
  width: 100%;
  height: 330px;
  background: linear-gradient(135deg, rgba(42,107,66,.4) 0%, rgba(26,74,46,.7) 100%);
  border: 1px solid rgba(212,168,90,.15);
  border-radius: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  overflow: hidden;
  position: relative;
}
.hero-photo::after {
  content: 'фото / обложка курса';
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  color: rgba(255,255,255,.35);
  letter-spacing: .08em;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.hero-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.hero-card p {
  font-size: 12px;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   ░░ БЕГУЩАЯ СТРОКА
═══════════════════════════════════════ */
.ticker-wrap {
  background: var(--gold);
  padding: 11px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: ticker 22s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--forest-dark);
  padding: 0 28px;
}
.ticker-dot {
  display: inline-block;
  color: var(--forest-mid);
  opacity: .5;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════
   ░░ ПРЕИМУЩЕСТВА
═══════════════════════════════════════ */
#features { background: var(--white); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.feature-card {
  padding: 40px 34px;
  background: var(--cream);
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition), background var(--transition);
  cursor: default;
}
.feature-card:hover {
  background: var(--mint-bg);
  border-bottom-color: var(--gold);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-light), var(--gold-pale));
  border: 1px solid var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
}
.feature-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
}

/* ═══════════════════════════════════════
   ░░ ПРОБНЫЙ УРОК
═══════════════════════════════════════ */
#free-lesson {
  background: var(--forest);
  padding: 88px 40px;
  position: relative;
  overflow: hidden;
}

#free-lesson .section-tag { color: var(--gold-light); }
#free-lesson .section-tag::before { background: var(--gold-light); }
#free-lesson .section-title { color: #fff; margin-bottom: 18px; }
#free-lesson .section-title em { color: var(--gold-light); }
.free-lesson-inner { max-width: 1240px; margin: 0 auto; }
.free-lesson-inner > p {
  max-width: 520px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 38px;
  line-height: 1.85;
}

/* ═══════════════════════════════════════
   ░░ КУРСЫ
═══════════════════════════════════════ */
#courses { background: var(--mint-bg); }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--sage-light);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.course-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.course-stripe {
  height: 3px;
  background: linear-gradient(90deg, var(--forest), var(--gold));
}
.course-header {
  padding: 28px 30px 22px;
  border-bottom: 1px solid var(--mint-bg);
}
.course-header-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.course-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 54px;
  font-weight: 300;
  color: var(--sage-light);
  line-height: 1;
  flex-shrink: 0;
  margin-top: -4px;
}
.course-meta { flex: 1; }
.course-badge {
  display: inline-block;
  padding: 3px 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 1px;
  margin-bottom: 7px;
}
.badge-forest { background: var(--forest); color: var(--gold-light); }
.badge-gold { background: var(--gold); color: var(--forest-dark); }
.badge-sage { background: var(--sage); color: var(--forest-dark); }
.course-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 23px;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.2;
}
.course-body { padding: 20px 30px; flex: 1; }
.course-list li {
  font-size: 13px;
  color: var(--muted);
  padding: 7px 0 7px 18px;
  border-bottom: 1px solid var(--mint-bg);
  position: relative;
  line-height: 1.5;
}
.course-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.course-footer {
  padding: 18px 30px;
  background: linear-gradient(90deg, var(--mint-bg), #dcebd6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.course-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--forest);
}
.course-price-old {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 8px;
}

/* ═══════════════════════════════════════
   ░░ ФОРМА ЗАХВАТА
═══════════════════════════════════════ */
#lead-form { background: var(--cream); }
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.lead-left h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 300;
  color: var(--forest);
  line-height: 1.2;
  margin-bottom: 16px;
}
.lead-left h2 em { font-style: italic; color: var(--gold); }
.lead-left > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 28px;
  line-height: 1.85;
}
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.check-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--forest);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Форма */
.form-card {
  background: var(--white);
  border: 1px solid var(--sage-light);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 40px;
}
.form-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 28px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  background: var(--mint-bg);
  border: 1px solid var(--sage-light);
  border-radius: 1px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px; /* 16px prevents iOS auto-zoom */
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus { border-color: var(--forest); }
.form-select-wrap { position: relative; }
.form-select-wrap::after {
  content: '▾';
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 14px;
}
.form-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}
.form-note a { color: var(--forest); text-decoration: underline; }

/* Pop-up благодарность */
.popup-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(14,38,24,.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.popup-overlay.show { display: flex; }
.popup-box {
  background: var(--white);
  border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  padding: 52px 48px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: popIn .35s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: none; }
}
.popup-icon { font-size: 52px; margin-bottom: 18px; }
.popup-box h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 12px;
}
.popup-box p { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.popup-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  font-size: 22px; color: var(--muted);
  cursor: pointer; line-height: 1;
  transition: color var(--transition);
}
.popup-close:hover { color: var(--forest); }

/* ═══════════════════════════════════════
   ░░ ОТЗЫВЫ
═══════════════════════════════════════ */
#testimonials { background: var(--white); }
.rating-band {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 36px;
  background: var(--forest);
  border-radius: var(--radius);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.rating-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
  flex-shrink: 0;
}
.rating-right .stars {
  color: var(--gold);
  font-size: 22px;
  letter-spacing: 3px;
}
.rating-right .cnt {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-top: 6px;
}
.rating-source {
  margin-left: auto;
  text-align: right;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.rating-source strong { color: rgba(255,255,255,.65); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--cream);
  padding: 28px;
  border-radius: var(--radius);
  border-left: 3px solid var(--forest);
  position: relative;
}
.review-card::before {
  content: '"';
  font-family: 'Cormorant Garamond', serif;
  font-size: 90px;
  line-height: .9;
  color: var(--sage-light);
  position: absolute;
  top: 12px; right: 18px;
  user-select: none;
}
.review-name { font-weight: 600; font-size: 14px; color: var(--forest); margin-bottom: 3px; }
.review-date { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.review-stars { color: var(--gold); font-size: 12px; letter-spacing: 2px; margin-bottom: 10px; }
.review-text { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* ═══════════════════════════════════════
   ░░ Вопросы
═══════════════════════════════════════ */
#faq { background: var(--mint-bg); }
.faq-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  align-items: start;
}
.faq-aside .section-title { font-size: clamp(30px, 3.5vw, 40px); margin-bottom: 18px; }
.faq-aside > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

.faq-list { display: flex; flex-direction: column; gap: 3px; }
.faq-item {
  background: var(--white);
  border-radius: 1px;
  border-left: 3px solid transparent;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.active { border-left-color: var(--gold); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
}
.faq-question span {
  font-size: 14px;
  font-weight: 500;
  color: var(--forest);
  line-height: 1.4;
}
.faq-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--sage-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
  transition: transform var(--transition), background var(--transition);
  font-weight: 300;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--gold);
  color: var(--forest-dark);
  border-color: var(--gold);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding var(--transition);
}
.faq-answer-inner {
  padding: 0 22px 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}
.faq-item.active .faq-answer { max-height: 300px; }

/* ═══════════════════════════════════════
   ░░ СОЦСЕТИ
═══════════════════════════════════════ */
#socials {
  background: var(--forest-dark);
  padding: 80px 40px;
}
#socials .section-tag { color: var(--gold-light); }
#socials .section-tag::before { background: var(--gold-light); }
#socials .section-title { color: #fff; margin-bottom: 40px; }
#socials .section-title em { color: var(--gold-light); }
.socials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.social-card {
  border: 1px solid rgba(200,221,184,.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.social-card:hover {
  border-color: var(--gold);
  background: rgba(184,131,42,.07);
}
.social-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--forest-mid);
  border: 1px solid rgba(212,168,90,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: background var(--transition);
}
.social-card:hover .social-icon { background: var(--forest); }
.social-name { color: #fff; font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.social-desc { color: rgba(255,255,255,.4); font-size: 12px; line-height: 1.5; }

/* ═══════════════════════════════════════
   ░░ КАРТА / АДРЕС
═══════════════════════════════════════ */
#contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info {}
.contact-info .section-title { margin-bottom: 32px; }
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.contact-item-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--forest);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.contact-item-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-item-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
}
.contact-item-value a {
  color: var(--forest);
  font-weight: 600;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  transition: color var(--transition);
}
.contact-item-value a:hover { color: var(--gold); }
.map-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  border: 1px solid var(--sage-light);
}
.map-placeholder {
  width: 100%;
  height: 340px;
  background: linear-gradient(135deg, var(--mint-bg), var(--sage-light));
  border-radius: var(--radius);
  border: 1px solid var(--sage-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .06em;
}
.map-placeholder span { font-size: 40px; }
.map-note { font-size: 11px; color: var(--muted); margin-top: 12px; }

/* ═══════════════════════════════════════
   ░░ FOOTER
═══════════════════════════════════════ */
footer {
  background: var(--forest-dark);
  border-top: 1px solid rgba(212,168,90,.15);
  padding: 64px 40px 32px;
  color: #fff;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr 1fr 220px;
  gap: 52px;
  padding-bottom: 52px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(212,168,90,.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
}
.footer-brand-sub {
  font-size: 8px;
  color: var(--gold-light);
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-top: 1px;
}
.footer-tagline { font-size: 12px; line-height: 1.8; }
.footer-col h5 {
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(212,168,90,.15);
}
.footer-col a {
  display: block;
  color: #fff;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold-light); }
.footer-phone-link {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 14px !important;
}

.footer-form {}
.footer-form input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(200,221,184,.1);
  padding: 11px 14px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px; /* 16px prevents iOS auto-zoom */
  border-radius: 1px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.footer-form input:focus { border-color: var(--gold); }
.footer-form input::placeholder { color: rgba(255,255,255,.3); }
.footer-form button {
  width: 100%;
  background: var(--gold);
  color: var(--forest-dark);
  border: none;
  padding: 11px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-radius: 1px;
  cursor: pointer;
  transition: background var(--transition);
}
.footer-form button:hover { background: var(--gold-light); }

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom a {
  color: #fff;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--gold-light); }
.footer-links { display: flex; gap: 20px; }

/* Floating кнопка */
.float-btn {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom));
  right: calc(28px + env(safe-area-inset-right));
  background: var(--gold);
  color: var(--forest-dark);
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(184,131,42,.4);
  z-index: 900;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  touch-action: manipulation;
}
.float-btn:hover { background: var(--gold-light); transform: scale(1.08); }

/* ═══════════════════════════════════════
   АДАПТИВНОСТЬ
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; }
  .hero-card { max-width: 480px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .socials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner { padding: env(safe-area-inset-top) 20px 0; }
  .nav-links { display: none; }
  .burger { display: flex; }

  .section-wrap { padding: 60px 20px; }
  #hero { padding: calc(var(--header-bar) + env(safe-area-inset-top) + 38px) 20px 72px; }
  #free-lesson { padding: 64px 20px; }
  #socials { padding: 60px 20px; }
  footer { padding: 48px 20px 24px; }

  .hero-stats { gap: 24px; }
  .features-grid { grid-template-columns: 1fr; gap: 2px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .socials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-links { flex-wrap: wrap; gap: 14px; }
  .rating-band { gap: 16px; }
  .rating-big { font-size: 56px; }
  .rating-source { display: none; }
  .float-btn { bottom: calc(18px + env(safe-area-inset-bottom)); right: 18px; }


}

@media (max-width: 480px) {
  .btn { padding: 13px 24px; font-size: 10px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; }
  .form-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .course-footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}
/* ═══════════════════════════════════════
   ░░ ГАЛЕРЕЯ
═══════════════════════════════════════ */
#gallery { background: var(--white); }

/* Сетка миниатюр */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 1px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, var(--mint-bg), #dcebd6);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item-overlay {
  position: absolute; inset: 0;
  background: rgba(20, 92, 51, 0);
  transition: background .3s ease;
  display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-item-overlay {
  background: rgba(20, 92, 51, .4);
}
.gallery-item-overlay svg {
  width: 28px; height: 28px;
  fill: none; stroke: #fff; stroke-width: 1.8;
  opacity: 0; transform: scale(.7);
  transition: opacity .25s ease, transform .25s ease;
}
.gallery-item:hover .gallery-item-overlay svg {
  opacity: 1; transform: scale(1);
}
/* Placeholder когда нет фото */
.gallery-item-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
}
.gallery-item-ph .ph-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 300;
  color: var(--sage); opacity: .5;
}
.gallery-item-ph .ph-icon {
  font-size: 22px; opacity: .3;
}

/* Показать ещё */
.gallery-more-wrap {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.gallery-counter {
  font-size: 12px; color: var(--muted);
  letter-spacing: .06em;
}
.gallery-counter strong { color: var(--forest); font-weight: 600; }

/* Лайтбокс */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8, 24, 14, .95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  max-width: 92vw; max-height: 88vh;
}
.lightbox-img {
  max-width: 88vw; max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: 0 32px 100px rgba(0,0,0,.7);
  object-fit: contain;
  display: block;
  transform: scale(.93);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-placeholder {
  width: min(72vw, 560px); aspect-ratio: 1/1;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,168,90,.2);
  border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; color: rgba(255,255,255,.35);
}
.lightbox-placeholder .lbph-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px; font-weight: 300; line-height: 1; color: rgba(212,168,90,.25);
}
.lightbox-placeholder .lbph-text {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6;
}
.lightbox-close {
  position: fixed; top: 18px; right: 22px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.8); font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition), color var(--transition);
  z-index: 2001;
}
.lightbox-close:hover { background: var(--gold); color: var(--forest-dark); border-color: var(--gold); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition), border-color var(--transition);
  z-index: 2001;
}
.lightbox-nav:hover { background: var(--gold); border-color: var(--gold); color: var(--forest-dark); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(8,24,14,.85);
  padding: 12px 20px;
  display: flex; align-items: center; gap: 12px;
  z-index: 2001;
}
.lightbox-counter {
  font-size: 11px; letter-spacing: .14em; color: rgba(255,255,255,.45);
  text-transform: uppercase; white-space: nowrap;
}
.lightbox-thumbs {
  display: flex; gap: 5px; overflow-x: auto; flex: 1;
  scrollbar-width: none;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 1px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition), opacity var(--transition);
  opacity: .5;
}
.lb-thumb.active { border-color: var(--gold); opacity: 1; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb-ph {
  width: 100%; height: 100%;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px; color: rgba(255,255,255,.3);
}

@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .lightbox-nav.prev { left: 6px; }
  .lightbox-nav.next { right: 6px; }
  .lightbox-thumbs { display: none; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .lightbox-img { max-width: 95vw; max-height: 75vh; }
}
