/* ===== Дизайн-система ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --fg: #1a202c;
  --muted: #5b6472;
  --accent: #0e7490;
  --accent-strong: #0c5f74;
  --border: #e6eaf0;
  --radius: 12px;
  --max-w: 960px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Доступность: видимый фокус */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Тач-устройства: убираем задержку двойного тапа */
a,
button,
summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* Ссылка «к содержимому» (видна только при фокусе) */
.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== Шапка ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 10px rgba(16, 24, 40, 0.06);
}

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

.brand { font-weight: 700; font-size: 1.05rem; }

.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--muted); font-size: 0.95rem; transition: color 0.15s; }
.site-nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Главный экран ===== */
.hero { padding: 88px 0 80px; text-align: center; }

.hero-eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2rem, 5.6vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-sub {
  color: var(--muted);
  max-width: 580px;
  margin: 20px auto 0;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin: 32px 0 16px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--accent-strong); transform: translateY(-1px); }

.btn-link {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.btn-link:hover { border-bottom-color: var(--accent); }

.hero-note { color: var(--muted); font-size: 0.9rem; }

/* ===== Секции ===== */
.section { padding: 80px 0; scroll-margin-top: calc(var(--header-h) + 8px); }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-align: center;
  text-wrap: balance;
}

.section-lead {
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ===== Обо мне ===== */
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 20px;
}

.about-photo img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
}

.about-text p + p { margin-top: 16px; }
.about-text { color: var(--muted); }

.facts {
  list-style: none;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.facts li::before {
  content: "—";
  color: var(--accent);
  margin-right: 8px;
}

.facts-link { margin-top: 16px; font-size: 0.95rem; }
.facts-link a { color: var(--accent); }

.placeholder {
  border-bottom: 1px dashed var(--accent);
  color: var(--muted);
  font-style: normal;
}

/* ===== Карточки программ ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(16, 24, 40, 0.08); }

.card-featured { border-color: var(--accent); }

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

.price {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  text-align: center;
}

.price-unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}

.card-list {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.card-list li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 8px;
  font-weight: 700;
}

/* ===== Результаты ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  margin-bottom: 44px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-label { color: var(--muted); font-size: 0.9rem; }

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

.quote {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.quote blockquote { font-size: 0.98rem; line-height: 1.55; }
.quote figcaption { color: var(--muted); font-size: 0.85rem; }

/* ===== FAQ ===== */
.faq {
  max-width: 680px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item h3 { font-size: 1rem; font-weight: 600; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0 40px 20px 0;
}

/* ===== Контакты ===== */
.contacts-cta { text-align: center; margin-bottom: 36px; }

.contacts { list-style: none; max-width: 440px; margin: 0 auto; }
.contacts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contacts li:last-child { border-bottom: none; }
.contacts .label { color: var(--muted); flex-shrink: 0; }
.contacts a { color: var(--accent); font-weight: 500; }
.contacts a:hover { text-decoration: underline; }

/* ===== Подвал ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== Появление при прокрутке ===== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ===== Уважение к prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal,
  .js .reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-header,
  .btn,
  .card,
  .nav-toggle span,
  .faq-item summary::after { transition: none; }

  .btn:hover,
  .card:hover { transform: none; }
}

/* ===== Адаптивность ===== */
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr; gap: 24px; }
  .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; margin: 0 auto; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 20px; border-top: 1px solid var(--border); }

  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .cards { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .contacts li { flex-direction: column; gap: 2px; }
  .stats { text-align: left; }
}
