/* ============================================================
   Deutsch mit Marina — стили
   Палитра из брендинга школы: чёрный, красный, «золото» флага,
   жёлтый маркер, кремовый фон.
   ============================================================ */

:root {
  --black: #171717;
  --ink: #26221c;
  --red: #c8102e;
  --red-dark: #a30d26;
  --gold: #ffcc00;
  --gold-soft: #ffe566;
  --cream: #fff9ec;
  --cream-2: #fdf3dc;
  --paper: #ffffff;
  --muted: #6f6a61;
  --line: #eee4cf;
  --green: #2e8b57;
  --shadow: 0 12px 32px rgba(23, 23, 23, 0.09);
  --shadow-sm: 0 4px 14px rgba(23, 23, 23, 0.07);
  --radius: 18px;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16.5px;
}

img { max-width: 100%; display: block; }

h1, h2, h3, .stat-value {
  font-family: var(--font-head);
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--black);
}

h1 { font-size: clamp(1.85rem, 7.2vw, 3.4rem); font-weight: 700; letter-spacing: 0.5px; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: 0.5px; }
h3 { font-size: 1.15rem; font-weight: 600; }

.container { width: min(1140px, 92%); margin: 0 auto; }

section { padding: 72px 0; scroll-margin-top: 76px; }
.section-alt { background: var(--cream); }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head .kicker { color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 0.78rem; margin-bottom: 10px; display: block; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* Жёлтый маркер под словами — как на обложках постов */
.mark {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}
.mark::after {
  content: "";
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  bottom: 0.08em;
  height: 0.42em;
  background: var(--gold);
  z-index: -1;
  transform: skewX(-6deg) rotate(-0.6deg);
  border-radius: 3px;
}
.mark-red { color: var(--red); }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.28);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-outline:hover { background: var(--black); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* Ленточка немецкого флага */
.flag-ribbon {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  max-width: 220px;
  margin-top: 22px;
}
.flag-ribbon span { flex: 1; }
.flag-ribbon .b { background: #171717; }
.flag-ribbon .r { background: var(--red); }
.flag-ribbon .g { background: var(--gold); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold); }
.logo-text { font-family: var(--font-head); font-size: 1.25rem; text-transform: none; color: var(--black); line-height: 1.1; }
.logo-text b { font-weight: 700; }
.logo-text .marina { color: var(--red); font-weight: 700; }
.logo-text small { display: block; font-family: var(--font-body); font-size: 0.66rem; font-weight: 600; color: var(--muted); letter-spacing: 0.4px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.92rem; }
.nav a:hover { color: var(--red); }
.nav .btn { padding: 10px 22px; font-size: 0.88rem; }

#burger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--black);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(255, 204, 0, 0.18), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(200, 16, 46, 0.08), transparent 60%),
    var(--cream);
  padding: 64px 0 84px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-inner > *, .about-grid > *, .signup .container > * { min-width: 0; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero p.lead {
  font-size: 1.13rem;
  color: var(--muted);
  margin-top: 20px;
  max-width: 540px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.hero-social a { text-decoration: none; }

.hero-visual { position: relative; }
.hero-photo {
  border-radius: 24px;
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
  border: 6px solid #fff;
  transition: transform 0.25s ease;
}
.hero-photo:hover { transform: rotate(0deg) scale(1.02); }
.hero-sticker {
  position: absolute;
  background: var(--black);
  color: #fff;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 12px 20px;
  border-radius: 14px;
  transform: rotate(-6deg);
  box-shadow: var(--shadow-sm);
}
.hero-sticker .gold { color: var(--gold); }
.sticker-1 { top: -18px; right: -6px; }
.sticker-2 { bottom: -16px; left: -10px; background: var(--red); transform: rotate(4deg); }

/* Статистика */
.stats { background: var(--black); color: #fff; padding: 46px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { text-align: center; padding: 8px; }
.stat-value { font-size: 2.1rem; color: var(--gold); letter-spacing: 0.5px; }
.stat-label { font-weight: 700; margin-top: 4px; font-size: 0.95rem; }
.stat-hint { color: rgba(255, 255, 255, 0.55); font-size: 0.78rem; margin-top: 4px; }

/* ---------- О школе ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center; }
.about-photo-wrap { position: relative; }
.about-photo { border-radius: 24px; box-shadow: var(--shadow); border: 6px solid #fff; transform: rotate(-2deg); }
.about-photo-wrap .flag-ribbon { position: absolute; bottom: -14px; left: 30px; }
.about-text p { margin-top: 14px; color: var(--ink); }
.about-text .quote {
  margin-top: 20px;
  background: var(--cream);
  border-left: 5px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 16px 20px;
  font-weight: 600;
}
.about-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.about-fact {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
}

/* ---------- Программы ---------- */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.program-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.program-emoji { font-size: 2rem; margin-bottom: 12px; }
.program-card h3 { margin-bottom: 8px; }
.program-card p { color: var(--muted); font-size: 0.93rem; }
.program-card ul { margin-top: 14px; list-style: none; }
.program-card li { padding: 5px 0 5px 24px; position: relative; font-size: 0.9rem; font-weight: 600; }
.program-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 800;
}

/* ---------- Путь ученика ---------- */
.journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.journey-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1.5px solid var(--line);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.journey-num {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.journey-card h3 { font-size: 1rem; margin-bottom: 6px; }
.journey-card p { font-size: 0.85rem; color: var(--muted); }

/* ---------- Тренажёры ---------- */
.trainer-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.trainer-tab {
  border: 2px solid var(--black);
  background: transparent;
  border-radius: 999px;
  padding: 11px 24px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--black);
  transition: all 0.15s ease;
}
.trainer-tab.active, .trainer-tab:hover { background: var(--black); color: var(--gold); }
.trainer-pane { display: none; }
.trainer-pane.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Флеш-карточки */
.flash-wrap { max-width: 640px; margin: 0 auto; }
.flash-card {
  background: #fff;
  border-radius: 24px;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
  padding: 34px;
  text-align: center;
}
.flash-card:hover { transform: translateY(-3px); }
.flash-face { width: 100%; }
.flash-face .front-de {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: none;
  color: var(--black);
  line-height: 1.25;
}
.flash-face .back-ru { font-size: 1.3rem; font-weight: 800; color: var(--red); }
.flash-face .back-ex { margin-top: 16px; white-space: pre-line; font-size: 0.95rem; color: var(--ink); }
.flash-face .back-ex-ru { white-space: pre-line; font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.flash-card .flip-hint {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}
/* Flip */
.flash-card .back { display: none; }
.flash-card.flipped .front { display: none; }
.flash-card.flipped .back { display: block; }

.flash-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
.flash-meta { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.flash-progress-track { height: 8px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.flash-progress-track div { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: 999px; transition: width 0.3s ease; }
.chip {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--black); transform: translateY(-2px); }

/* Группы чипов — выбор темы и уровня вместо нативного select */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-option {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--ink);
  transition: all 0.15s ease;
}
.chip-option:hover { border-color: var(--black); transform: translateY(-1px); }
.chip-option.selected { background: var(--black); color: var(--gold); border-color: var(--black); }

/* Квиз и тест */
.trainer-card {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  padding: 36px;
}
.quiz-progress { font-weight: 800; color: var(--red); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
#quiz-question, #test-question { margin-bottom: 20px; font-size: 1.2rem; text-transform: none; font-family: var(--font-body); font-weight: 700; color: var(--black); line-height: 1.45; }
.test-level {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  border-radius: 6px;
  padding: 1px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  margin-right: 8px;
  vertical-align: middle;
}
.quiz-option {
  display: flex;
  width: 100%;
  text-align: left;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: #fff;
  margin-bottom: 10px;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s ease;
}
.quiz-option:hover:not(:disabled) { border-color: var(--black); transform: translateX(4px); }
.quiz-option:disabled { cursor: default; opacity: 0.75; }
.quiz-option .quiz-letter {
  background: var(--cream);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.quiz-option.correct { border-color: var(--green); background: #f0faf4; opacity: 1; }
.quiz-option.correct .quiz-letter { background: var(--green); color: #fff; }
.quiz-option.wrong { border-color: var(--red); background: #fdf1f3; opacity: 1; }
.quiz-option.wrong .quiz-letter { background: var(--red); color: #fff; }
.quiz-explanation {
  margin-top: 16px;
  background: var(--cream);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.92rem;
  border: 1.5px dashed var(--gold);
}
#quiz-next, .quiz-result .btn { margin-top: 18px; }
.quiz-result { text-align: center; }
.quiz-score {
  font-family: var(--font-head);
  font-size: 3rem;
  color: var(--red);
  font-weight: 700;
}
.quiz-result h3 { margin: 10px 0; text-transform: none; font-size: 1.3rem; }
.quiz-result p { color: var(--muted); }
.quiz-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.test-progress-track { height: 8px; background: var(--cream-2); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.test-progress-track div { height: 100%; width: 0; background: var(--red); border-radius: 999px; transition: width 0.3s ease; }
.test-level-badge {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.5rem;
  background: var(--black);
  color: var(--gold);
  padding: 10px 26px;
  border-radius: 14px;
}
.test-score-line { margin-top: 14px; color: var(--ink); }
.test-next { color: var(--black); font-weight: 700; }
.test-disclaimer { font-size: 0.8rem; margin-top: 16px; }

/* Partizip II игра */
.verb-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 680px;
  margin: 0 auto;
}
.verb-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 13px 6px;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--black);
  transition: all 0.15s ease;
}
.verb-card:hover:not(.matched) { border-color: var(--gold); transform: translateY(-2px); }
.verb-card.selected { border-color: var(--red); background: #fdf1f3; }
.verb-card.matched { border-color: var(--green); background: #f0faf4; color: var(--green); cursor: default; }
.verb-status {
  text-align: center;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.verb-hint { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 16px; }

/* ---------- Карусель учителей ---------- */
.carousel { position: relative; }
.carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 18px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.teacher-card {
  flex: 0 0 auto;
  width: clamp(220px, 24vw, 300px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.teacher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.teacher-card img {
  width: 100%;
  aspect-ratio: 324 / 576;
  object-fit: cover;
  display: block;
}
.teacher-card figcaption {
  padding: 12px 16px;
  font-size: 0.88rem;
  display: none;
  flex-direction: column;
}
.teacher-card.has-caption figcaption { display: flex; }
.teacher-card figcaption strong { color: var(--black); }
.teacher-card figcaption span { color: var(--muted); font-size: 0.78rem; }
.carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 6px; }
.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--black);
  background: #fff;
  color: var(--black);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
}
.carousel-btn:hover:not(:disabled) { background: var(--black); color: var(--gold); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- Бесплатные материалы ---------- */
.freebies-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.freebie-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.freebie-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.freebie-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; }
.freebie-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.freebie-card:hover .freebie-img-wrap img { transform: scale(1.05); }
.freebie-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: var(--black);
  font-weight: 800;
  font-size: 0.72rem;
  padding: 4px 12px;
  border-radius: 999px;
}
.freebie-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.freebie-code { font-weight: 800; color: var(--red); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; }
.freebie-body h3 { font-size: 1.02rem; text-transform: none; }
.freebie-body p { font-size: 0.84rem; color: var(--muted); flex: 1; }

/* ---------- Галерея ---------- */
.gallery-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  display: block;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, 0.66);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  text-align: center;
  padding: 8px;
}
.gallery-item:hover .gallery-hover { opacity: 1; }

/* ---------- Ценности / отзывы ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.value-icon { font-size: 1.6rem; }

/* ---------- Абонементы ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.plan-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 34px 28px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-card.highlight { border-color: var(--red); box-shadow: 0 14px 34px rgba(200, 16, 46, 0.16); transform: scale(1.03); }
.plan-note {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-lessons { font-family: var(--font-head); font-size: 1.9rem; text-transform: uppercase; }
.plan-bonus { color: var(--green); font-weight: 800; }
.plan-card .btn { margin-top: 14px; }
.plans-terms { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 22px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
  cursor: pointer;
  text-align: left;
}
.faq-arrow { transition: transform 0.2s ease; color: var(--red); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 320px; }
.faq-a p { padding: 0 24px 20px; color: var(--muted); font-size: 0.94rem; }

/* ---------- Контакты / заявка ---------- */
.signup {
  background:
    radial-gradient(700px 300px at 110% 0%, rgba(255, 204, 0, 0.25), transparent 60%),
    var(--black);
  color: #fff;
}
.signup .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.signup h2 { color: #fff; }
.signup h2 .mark::after { background: var(--gold); }
.signup p { color: rgba(255, 255, 255, 0.75); margin-top: 14px; }
.signup-form {
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.signup-form h3 { text-transform: none; font-size: 1.25rem; margin-bottom: 6px; }
.signup-form .form-note { font-size: 0.84rem; color: var(--muted); margin-bottom: 18px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 800; font-size: 0.82rem; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-success {
  text-align: center;
  padding: 30px 10px;
}
.form-success .big { font-size: 2.6rem; }
.form-success h4 { font-size: 1.2rem; margin: 10px 0 6px; }
.form-success p { color: var(--muted); font-size: 0.92rem; }

/* Honeypot против ботов — физически вне экрана */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Ошибка отправки формы */
.form-error {
  background: #fdf1f3;
  border: 1.5px solid var(--red);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--red-dark);
  margin-bottom: 14px;
}
.form-error a { color: var(--red-dark); font-weight: 800; }
.btn.loading { opacity: 0.6; pointer-events: none; }

/* ---------- Футер ---------- */
.site-footer { background: #0f0f0f; color: rgba(255, 255, 255, 0.65); padding: 48px 0 30px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; font-size: 0.95rem; }
.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.social-links a {
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: 0.8rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

/* ---------- Модальное окно ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-card {
  background: #fff;
  border-radius: 22px;
  padding: 34px;
  width: min(480px, 100%);
  position: relative;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow: auto;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: var(--cream);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--black);
}
.modal-card h3 { text-transform: none; font-size: 1.3rem; margin-bottom: 6px; }
.modal-card .form-note { font-size: 0.86rem; color: var(--muted); margin-bottom: 18px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
  .freebies-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-track { grid-template-columns: repeat(4, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-inner, .about-grid, .signup .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; margin: 0 auto; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow);
    display: none;
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  #burger { display: block; }
}
@media (max-width: 620px) {
  section { padding: 52px 0; }
  .programs-grid, .journey-grid, .values-grid { grid-template-columns: 1fr; }
  .freebies-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-track { grid-template-columns: repeat(3, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .verb-board { grid-template-columns: repeat(4, 1fr); }
  .trainer-card { padding: 24px 18px; }
  .freebies-grid { grid-template-columns: 1fr; }
  .hero-photo { transform: none; border-width: 4px; }
  .hero-sticker { font-size: 0.74rem; padding: 8px 13px; letter-spacing: 0.5px; }
  .sticker-1 { right: 4px; top: -12px; }
  .sticker-2 { left: 4px; bottom: -10px; }
}
