/* ==========================================================================
   Владимир Торев — земельный специалист
   style.css  ·  кастомные стили поверх Tailwind CSS
   --------------------------------------------------------------------------
   Содержание:
     01. Переменные и база
     02. Утилиты и типографика
     03. Кнопки
     04. Шапка и навигация
     05. Hero
     06. Секции и заголовки
     07. Знакомство
     08. Услуги
     09. Обучение
     10. Тарифы
     11. Расписание (Время занятий)
     12. Аккордеоны (Программа + FAQ)
     13. Форма заявки
     14. Футер, «Наверх», тосты, мобильная CTA
     15. Анимации появления
     16. Адаптивность и печать
   ========================================================================== */

/* ==========================================================================
   01. ПЕРЕМЕННЫЕ И БАЗА
   ========================================================================== */
:root {
  --cream:      #F9F8F3;
  --cream-100:  #FDFCF8;
  --cream-200:  #F3F1E7;
  --cream-300:  #E9E5D6;
  --olive:      #556B2F;
  --olive-lt:   #6B8E23;
  --olive-dk:   #3F5122;
  --olive-deep: #2E3A24;
  --ink:        #1A1F16;
  --ink-800:    #242B1E;
  --body:       #333333;
  --muted:      #6E7263;
  --gold:       #D4B872;
  --gold-lt:    #E3CD97;
  --gold-dk:    #B99B4F;

  --shadow-soft: 0 10px 40px -18px rgba(26, 31, 22, .28);
  --shadow-card: 0 22px 55px -28px rgba(26, 31, 22, .40);
  --shadow-glow: 0 16px 42px -16px rgba(212, 184, 114, .55);

  --radius-sm: 12px;
  --radius:    16px;
  --radius-lg: 22px;

  --header-h: 68px;
  --header-pad-y: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html {
  scroll-behavior: smooth;
  /* высота фиксированной шапки, чтобы якоря не прятались под ней */
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

/* Отступ снизу под мобильную CTA-панель */
@media (max-width: 1023px) {
  body { padding-bottom: 76px; }
}

/* Якорные секции */
section[id],
div[id] { scroll-margin-top: calc(var(--header-h) + 14px); }

/* Фокус для доступности */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--olive-lt);
  outline-offset: 2px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--olive);
  color: var(--cream);
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   02. УТИЛИТЫ И ТИПОГРАФИКА
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--olive);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  opacity: .75;
}
.eyebrow--light { color: var(--gold); }

.hero-overlay {
  background:
    linear-gradient(to bottom,
      rgba(249, 248, 243, .55) 0%,
      rgba(249, 248, 243, .30) 26%,
      rgba(249, 248, 243, .70) 72%,
      rgba(249, 248, 243, .97) 100%),
    linear-gradient(102deg,
      rgba(249, 248, 243, .97) 0%,
      rgba(249, 248, 243, .93) 34%,
      rgba(249, 248, 243, .70) 58%,
      rgba(249, 248, 243, .28) 100%);
}

/* ==========================================================================
   03. КНОПКИ
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s ease,
              color .25s ease, border-color .25s ease, box-shadow .25s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-olive {
  background: var(--olive);
  color: var(--cream);
  box-shadow: 0 12px 30px -16px rgba(85, 107, 47, .85);
}
.btn-olive:hover {
  background: var(--olive-dk);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -16px rgba(85, 107, 47, .9);
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-glow);
}
.btn-gold:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 20px 46px -16px rgba(212, 184, 114, .8);
}

.btn-outline {
  background: transparent;
  color: var(--olive);
  border-color: rgba(85, 107, 47, .38);
}
.btn-outline:hover {
  background: rgba(85, 107, 47, .08);
  border-color: var(--olive);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  border-color: rgba(26, 31, 22, .12);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-sm { padding: 11px 20px; font-size: 14px; }

.btn[disabled],
.btn.is-loading { opacity: .72; pointer-events: none; }

.btn-spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(26, 31, 22, .28);
  border-top-color: var(--ink);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   04. ШАПКА И НАВИГАЦИЯ
   ========================================================================== */
/* Шапка: всегда непрозрачный фон — никакой прозрачности,
   чтобы контент не просвечивал при скролле. */
/* Шапка: фиксированная высота, всегда непрозрачный фон.
   Высота = --header-pad-y × 2 + высота логотипа (h-11 = 44px).
   Переопределяем Tailwind-класс py-3 через явное правило на дочернем div,
   чтобы высота шапки не «плавала» между брейкпоинтами. */
.site-header {
  z-index: 100;
  background: #F9F8F3;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(26, 31, 22, .08);
  box-shadow: 0 10px 30px -22px rgba(26, 31, 22, .55);
}
/* Внутренний контейнер шапки: явный padding + min-height.
   Работает даже если пользователь изменил размер шрифта в браузере:
   min-height даст правильный минимум, а если контент станет выше — div растянется. */
.site-header > div:first-of-type {
  padding-top: var(--header-pad-y);
  padding-bottom: var(--header-pad-y);
  min-height: var(--header-h);
  box-sizing: border-box;
  align-items: center;
}

.nav-link {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  transition: color .2s ease, background-color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--olive);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .28s var(--ease);
}
.nav-link:hover { color: var(--olive); }
.nav-link:hover::after { width: 22px; }
.nav-link.is-active { color: var(--olive); }
.nav-link.is-active::after { width: 22px; }

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(26, 31, 22, .12);
  color: var(--olive);
  background: rgba(255, 255, 255, .6);
  transition: transform .25s var(--ease), background-color .25s ease, color .25s ease;
}
.social-link:hover {
  background: var(--olive);
  color: var(--cream);
  transform: translateY(-2px);
}
.social-link--lg {
  width: auto;
  height: auto;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* Бургер */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid rgba(26, 31, 22, .12);
  background: rgba(255, 255, 255, .7);
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  background: #F9F8F3;
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(26, 31, 22, .06);
  box-shadow: 0 30px 60px -30px rgba(26, 31, 22, .45);
  animation: menuIn .28s var(--ease);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}
.mobile-link {
  padding: 13px 4px;
  border-bottom: 1px solid rgba(26, 31, 22, .07);
  font-size: 17px;
  font-weight: 500;
  color: var(--body);
  transition: color .2s ease, padding-left .2s ease;
}
.mobile-link:hover { color: var(--olive); padding-left: 10px; }

/* ==========================================================================
   05. HERO
   ========================================================================== */
.hero { min-height: 640px; }

.stat-card {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(85, 107, 47, .16);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(85, 107, 47, .38);
  box-shadow: var(--shadow-card);
}
.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--olive);
}
.stat-label {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* Рамка под фото эксперта */
.expert-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  border: 6px solid rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-card);
  background: var(--cream-200);
}
.expert-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 31, 22, .22), transparent 55%);
  pointer-events: none;
}

.expert-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: -34px;
  margin-left: 18px;
  position: relative;
  z-index: 2;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-card);
}
.expert-badge__num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.expert-badge__txt {
  font-size: 12px;
  line-height: 1.25;
  color: rgba(249, 248, 243, .8);
}

/* ==========================================================================
   06. СЕКЦИИ И ЗАГОЛОВКИ
   ========================================================================== */
.section { position: relative; padding: 80px 0; }
@media (min-width: 640px) { .section { padding: 96px 0; } }
@media (min-width: 1024px) { .section { padding: 112px 0; } }

.section--cream  { background: var(--cream); }
.section--cream2 { background: var(--cream-200); }

.section--dark {
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(107, 142, 47, .28) 0%, transparent 55%),
    linear-gradient(160deg, var(--ink) 0%, var(--olive-deep) 100%);
  color: var(--cream);
}

.section--olive {
  background:
    radial-gradient(100% 80% at 10% 0%, rgba(212, 184, 114, .18) 0%, transparent 60%),
    linear-gradient(150deg, var(--olive-dk) 0%, var(--olive-deep) 100%);
  color: var(--cream);
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.01em;
}
.section-title--light { color: var(--cream); }
@media (min-width: 640px) { .section-title { font-size: 38px; } }
@media (min-width: 1024px) { .section-title { font-size: 44px; } }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--olive);
  transition: gap .25s var(--ease), color .2s ease;
}
.link-arrow::after {
  content: "";
  width: 16px;
  height: 9px;
  background: currentColor;
  clip-path: polygon(0 40%, 62% 40%, 62% 0, 100% 50%, 62% 100%, 62% 60%, 0 60%);
  transition: transform .25s var(--ease);
}
.link-arrow:hover { gap: 12px; }
.link-arrow--gold { color: var(--gold-dk); }

/* ==========================================================================
   07. ЗНАКОМСТВО
   ========================================================================== */
.about-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 10;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: var(--cream-200);
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55);
  pointer-events: none;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(85, 107, 47, .12);
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--body);
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}
.check-item:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 107, 47, .35);
  box-shadow: var(--shadow-soft);
}
.check-icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(85, 107, 47, .12);
  color: var(--olive);
}

/* ==========================================================================
   08. УСЛУГИ (тёмная секция)
   ========================================================================== */
.service-card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: rgba(249, 248, 243, .05);
  border: 1px solid rgba(249, 248, 243, .12);
  backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), background-color .35s ease,
              border-color .35s ease, box-shadow .35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  background: rgba(249, 248, 243, .09);
  border-color: rgba(212, 184, 114, .45);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .75);
}
.service-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: rgba(212, 184, 114, .14);
  border: 1px solid rgba(212, 184, 114, .3);
  color: var(--gold);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--cream);
}
.service-card__text {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(249, 248, 243, .68);
}
.service-card__price {
  margin: 20px 0 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(249, 248, 243, .18);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 27px;
  font-weight: 700;
  color: var(--gold);
}
.service-card .btn { margin-top: auto; }

/* ==========================================================================
   09. ОБУЧЕНИЕ
   ========================================================================== */
.training-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(26, 31, 22, .07);
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}
.training-card:hover {
  transform: translateY(-6px);
  border-color: rgba(85, 107, 47, .28);
  box-shadow: var(--shadow-card);
}
.training-card--accent {
  background: linear-gradient(150deg, var(--olive-dk) 0%, var(--olive-deep) 100%);
  border-color: transparent;
  color: var(--cream);
}
.training-card--accent .training-card__title { color: var(--cream); }
.training-card--accent .training-card__text { color: rgba(249, 248, 243, .75); }

.training-card__tag {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(85, 107, 47, .1);
  color: var(--olive);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.training-card__tag--gold {
  background: var(--gold);
  color: var(--ink);
}
.training-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.training-card__text {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}
.training-card .link-arrow { margin-top: auto; padding-top: 20px; }

/* ==========================================================================
   10. ТАРИФЫ
   ========================================================================== */
.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid rgba(26, 31, 22, .08);
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .35s ease;
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(85, 107, 47, .3);
  box-shadow: var(--shadow-card);
}
.price-card--free {
  background: linear-gradient(160deg, #fff 0%, var(--cream-200) 100%);
  border-color: rgba(212, 184, 114, .55);
}
.price-card--featured {
  border-color: var(--olive);
  box-shadow: 0 30px 70px -34px rgba(85, 107, 47, .8);
}
.price-card--dark {
  background: linear-gradient(150deg, var(--ink) 0%, var(--olive-deep) 100%);
  border-color: transparent;
  color: var(--cream);
}
.price-card--dark .price-card__title { color: var(--cream); }
.price-card--dark .price-card__price { color: var(--gold); }
.price-card--dark .price-card__meta  { color: rgba(249, 248, 243, .6); }
.price-card--dark .price-card__list li { color: rgba(249, 248, 243, .82); }
.price-card--dark .price-card__list li::before { background: rgba(212, 184, 114, .18); color: var(--gold); }

.price-card__badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--olive);
  color: var(--cream);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px -12px rgba(85, 107, 47, .9);
}
.price-card__badge--gold { background: var(--gold); color: var(--ink); }

.price-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  min-height: 52px;
}
.price-card__price {
  margin-top: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: var(--olive);
}
.price-card__meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.price-card__list {
  margin: 22px 0 26px;
  display: grid;
  gap: 11px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--body);
}
.price-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.price-card__list li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(85, 107, 47, .12);
  color: var(--olive);
  font-size: 11px;
  font-weight: 700;
}
.price-card__list li.is-muted { color: var(--muted); }
.price-card__list li.is-muted::before {
  content: "—";
  background: rgba(110, 114, 99, .12);
  color: var(--muted);
}
.price-card .btn { margin-top: auto; }

/* ==========================================================================
   11. РАСПИСАНИЕ
   ========================================================================== */
.schedule-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(249, 248, 243, .07);
  border: 1px solid rgba(249, 248, 243, .14);
  backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), background-color .35s ease, border-color .35s ease;
}
.schedule-card:hover {
  transform: translateY(-5px);
  background: rgba(249, 248, 243, .12);
  border-color: rgba(212, 184, 114, .45);
}
.schedule-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(212, 184, 114, .16);
  color: var(--gold);
}
.schedule-card__icon svg { width: 24px; height: 24px; }
.schedule-card__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(249, 248, 243, .6);
}
.schedule-card__text {
  margin-top: 9px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--cream);
}

/* ==========================================================================
   12. АККОРДЕОНЫ
   ========================================================================== */
.accordion-item {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid rgba(26, 31, 22, .08);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.accordion-item.is-open {
  border-color: rgba(85, 107, 47, .35);
  box-shadow: var(--shadow-card);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 22px 24px;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background-color .25s ease;
}
.accordion-trigger:hover { background: rgba(85, 107, 47, .045); }
.accordion-trigger__num {
  flex: none;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: rgba(85, 107, 47, .45);
}
.accordion-trigger__text {
  display: block;
  flex: 1;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.accordion-trigger__text--plain {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
}
.accordion-trigger__sub {
  display: block;
  margin-top: 5px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.accordion-icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(85, 107, 47, .1);
  transition: background-color .3s ease, transform .3s var(--ease);
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--olive);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), background-color .3s ease;
}
.accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.accordion-item.is-open .accordion-icon { background: var(--olive); }
.accordion-item.is-open .accordion-icon::before,
.accordion-item.is-open .accordion-icon::after { background: var(--cream); }
.accordion-item.is-open .accordion-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.accordion-panel {
  height: 0;
  overflow: hidden;
  transition: height .38s var(--ease);
}
/* Без JS панель раскрыта — иначе программу обучения невозможно прочитать.
   Высоту задаёт main.js через инлайновый style.height (0 → scrollHeight → auto). */
html:not(.js) .accordion-panel { height: auto; }
.accordion-panel__inner {
  padding: 0 24px 26px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}
.accordion-panel__inner p + p { margin-top: 12px; }

.prog-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.prog-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--cream-200);
  font-size: 14px;
  line-height: 1.5;
  color: var(--body);
}
.prog-list li span {
  flex: none;
  font-weight: 700;
  color: var(--olive);
}
.prog-note {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
}
.prog-note strong { color: var(--ink); }
.prog-note--no strong { color: #A4552F; }
.accordion-panel__inner .btn { margin-top: 18px; }

/* Светлый вариант (FAQ) */
.accordion-item--light { background: #fff; }

/* ==========================================================================
   13. ФОРМА ЗАЯВКИ
   ========================================================================== */
.form-section {
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(107, 142, 47, .3) 0%, transparent 55%),
    linear-gradient(155deg, var(--ink) 0%, var(--olive-deep) 100%);
}

.lead-form {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(249, 248, 243, .05);
  border: 1px solid rgba(249, 248, 243, .14);
  backdrop-filter: blur(10px);
  transition: box-shadow .5s ease, border-color .5s ease;
}
.lead-form.is-highlight {
  border-color: rgba(212, 184, 114, .8);
  box-shadow: 0 0 0 4px rgba(212, 184, 114, .18), 0 30px 70px -34px rgba(212, 184, 114, .6);
  animation: formPulse 1.4s var(--ease) 1;
}
@keyframes formPulse {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.012); }
  100% { transform: scale(1); }
}
@media (min-width: 640px) { .lead-form { padding: 40px; } }

.form-field { position: relative; }

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(249, 248, 243, .82);
}
.form-label .req { color: var(--gold); }
.form-label .opt { font-weight: 400; color: rgba(249, 248, 243, .45); }

.lead-form .form-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(249, 248, 243, .18);
  background: rgba(249, 248, 243, .07);
  color: var(--cream);
  font-family: inherit;
  font-size: 15.5px;
  line-height: 1.4;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.lead-form .form-input::placeholder { color: rgba(249, 248, 243, .38); }
.lead-form .form-input:hover { border-color: rgba(249, 248, 243, .32); }
.lead-form .form-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(249, 248, 243, .1);
  box-shadow: 0 0 0 4px rgba(212, 184, 114, .18);
}
.lead-form .form-textarea { resize: vertical; min-height: 96px; }

.lead-form .form-select {
  appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4B872' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}
.lead-form .form-select option,
.lead-form .form-select optgroup {
  background: var(--ink);
  color: var(--cream);
}

/* Ошибки */
.lead-form .form-input.is-invalid {
  border-color: #E0805B;
  background: rgba(224, 128, 91, .1);
}
.form-error {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.4;
  color: #F0A184;
}

/* Согласие */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(249, 248, 243, .72);
  cursor: pointer;
}
.form-consent a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lead-form .form-checkbox {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 6px;
  border: 1px solid rgba(249, 248, 243, .3);
  background: rgba(249, 248, 243, .08);
  appearance: none;
  cursor: pointer;
  position: relative;
  transition: background-color .2s ease, border-color .2s ease;
}
.lead-form .form-checkbox:checked {
  background: var(--gold);
  border-color: var(--gold);
}
.lead-form .form-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.lead-form .form-checkbox.is-invalid { border-color: #E0805B; }

.hidden-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Статус отправки */
.form-status {
  margin-top: 18px;
  padding: 15px 18px;
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.55;
}
.form-status.is-success {
  background: rgba(107, 142, 47, .18);
  border: 1px solid rgba(107, 142, 47, .5);
  color: #D8E8BE;
}
.form-status.is-error {
  background: rgba(224, 128, 91, .14);
  border: 1px solid rgba(224, 128, 91, .45);
  color: #F3BFA8;
}

/* Контактные строки */
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-line__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(212, 184, 114, .14);
  border: 1px solid rgba(212, 184, 114, .28);
  color: var(--gold);
}
.contact-line__icon svg { width: 21px; height: 21px; }
.contact-line__label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(249, 248, 243, .5);
}
.contact-line__value {
  display: block;
  margin-top: 3px;
  font-size: 17px;
  font-weight: 600;
  color: var(--cream);
  transition: color .2s ease;
}
.contact-line__value:hover { color: var(--gold); }

/* ==========================================================================
   14. ФУТЕР, «НАВЕРХ», ТОСТЫ, МОБИЛЬНАЯ CTA
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid rgba(249, 248, 243, .08);
}
.footer-title {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(249, 248, 243, .5);
}
.footer-list { display: grid; gap: 10px; }
.footer-list a {
  font-size: 14.5px;
  color: rgba(249, 248, 243, .75);
  transition: color .2s ease, padding-left .2s ease;
}
.footer-list a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact { font-weight: 600; color: var(--cream) !important; }
.footer-legal {
  color: rgba(249, 248, 243, .5);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.footer-legal:hover { color: var(--gold); }

.to-top {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  box-shadow: 0 18px 40px -18px rgba(26, 31, 22, .8);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s var(--ease), background-color .25s ease;
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--olive-dk); transform: translateY(-3px); }
@media (min-width: 1024px) { .to-top { bottom: 28px; right: 26px; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  z-index: 60;
  max-width: min(92vw, 420px);
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: 0 26px 60px -24px rgba(0, 0, 0, .85);
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: opacity .3s ease, transform .3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .toast { bottom: 34px; } }

/* Мобильная CTA-панель */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(26, 31, 22, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(249, 248, 243, .12);
}
@media (min-width: 1024px) { .mobile-cta { display: none; } }

.mobile-cta__ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(249, 248, 243, .22);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
}
.mobile-cta__gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

/* ==========================================================================
   15. АНИМАЦИИ ПОЯВЛЕНИЯ
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .10s; }
.reveal-delay-2 { transition-delay: .20s; }
.reveal-delay-3 { transition-delay: .30s; }

/* Если JS отключён — показываем всё сразу */
html:not(.js) .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .accordion-panel { transition: none !important; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ==========================================================================
   16. АДАПТИВНОСТЬ И ПЕЧАТЬ
   ========================================================================== */
@media (max-width: 1023px) {
  .expert-frame { border-radius: 160px 160px var(--radius-lg) var(--radius-lg); }
  .lead-form { padding: 30px 22px; }
}

@media (max-width: 639px) {

  .hero { min-height: auto; }
  .stat-card { padding: 15px 17px; }
  .stat-value { font-size: 26px; }
  .price-card { padding: 28px 22px; }
  .price-card__title { min-height: 0; }
  .price-card__price { font-size: 33px; }
  .service-card,
  .training-card { padding: 24px 20px; }
  .accordion-trigger { padding: 18px 18px; gap: 12px; }
  .accordion-panel__inner { padding: 0 18px 22px; }
  .accordion-trigger__num { display: none; }
  .expert-badge { margin-left: 6px; padding: 10px 16px; }
  .expert-badge__num { font-size: 22px; }
  .to-top { width: 44px; height: 44px; right: 14px; }
}

@media print {
  .site-header, .mobile-cta, .to-top, .toast, .lead-form, .skip-link { display: none !important; }
  .section { padding: 24px 0; break-inside: avoid; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
  .accordion-panel { height: auto !important; }
}

/* Кнопка «Наверх» в скрытом состоянии: скрываем полностью,
   чтобы не мешала табам и не отлавливала клики. */
.to-top[hidden] { display: none !important; }