:root {
  --bg: #faf9f5;
  --alt: #f1efe7;
  --card: #ffffff;
  --ink: #35322c;
  --muted: #7c786e;
  --line: #e6e2d6;
  --accent: #7b9370;
  --accent-dark: #5d7753;
  --accent-soft: #eef2ea;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(60, 55, 40, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 245, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .2px;
}
.logo span { color: var(--accent-dark); }
.nav { display: flex; gap: 22px; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
}
.nav a:hover { color: var(--accent-dark); }

/* Типографика */
h1, h2 { line-height: 1.15; margin: 0 0 14px; letter-spacing: -.5px; }
h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 10px;
}
.lead, .section-sub { color: var(--muted); font-size: 1.08rem; max-width: 34rem; }
.section-sub { margin: 0 0 36px; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.hero-text .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: .95rem;
}
.hero-stats strong { color: var(--ink); font-size: 1.15rem; margin-right: 6px; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-size: 1rem;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent-dark); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn-wide { width: 100%; }

/* Секции */
.section { padding: 72px 0; }
.section-alt { background: var(--alt); }

/* Расписание */
.classes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.class-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.class-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.class-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.class-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.class-card h3 { margin: 0; font-size: 1.2rem; }
.tag {
  flex-shrink: 0;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-mid { color: #8a6d3b; background: #f6efe2; }
.class-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.class-meta {
  list-style: none;
  margin: auto 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 6px;
  font-size: .92rem;
}
.class-meta span { color: var(--muted); display: inline-block; min-width: 110px; }

/* Запись */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.booking-info p { color: var(--muted); }
.booking-points {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.booking-points li { padding-left: 28px; position: relative; color: var(--ink); }
.booking-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-dark);
  font-weight: 700;
}
.booking-phone a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }

.lead-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: grid;
  gap: 16px;
}
.lead-form label { display: grid; gap: 6px; font-size: .9rem; }
.lead-form label > span { color: var(--muted); font-weight: 600; }
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"],
.lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  outline: none;
}
.lead-form input:focus,
.lead-form textarea:focus { border-color: var(--accent); background: #fff; }
.lead-consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-size: .82rem !important;
  color: var(--muted) !important;
  font-weight: 400 !important;
  line-height: 1.45;
}
.lead-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent-dark); }
.lead-consent a { color: var(--accent-dark); }

/* Футер */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 44px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}
.site-footer p { margin: 4px 0; color: var(--ink); font-size: .95rem; }
.site-footer .muted { color: var(--muted); }
.footer-title {
  font-weight: 700;
  margin-bottom: 8px !important;
  font-size: .95rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-dark); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.footer-bottom p { color: var(--muted); font-size: .85rem; }

/* Адаптив */
@media (max-width: 900px) {
  .classes { grid-template-columns: 1fr; }
  .booking-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  .hero { padding: 44px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .section { padding: 56px 0; }
  .nav { gap: 14px; }
  .nav a { font-size: .88rem; }
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
