:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --text: #16181d;
  --muted: #5b6470;
  --accent: #e11226;
  --accent-text: #ffffff;
  --border: #e2e6ea;
  --shadow: 0 8px 30px rgba(0,0,0,.08);
  --radius: 16px;
}
[data-theme="dark"] {
  --bg: #0f1115;
  --bg-alt: #171a21;
  --text: #f2f4f7;
  --muted: #9aa3af;
  --accent: #ff3b40;
  --accent-text: #ffffff;
  --border: #262b34;
  --shadow: 0 8px 30px rgba(0,0,0,.4);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  transition: background .3s, color .3s; line-height: 1.6;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px; background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.logo { font-weight: 800; font-size: 22px; text-decoration: none; color: var(--text); }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--accent); }
.theme-toggle {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 999px; width: 40px; height: 40px; cursor: pointer; font-size: 18px;
}
.hero-logo { display: block; width: fit-content; margin: 0 0 24px auto; }
.hero-logo img { width: clamp(220px, 24vw, 320px); height: auto; display: block; border-radius: 10px; }
@media (max-width: 860px) { .hero-logo { margin: 0 auto 20px; } }
.section { max-width: 1100px; margin: 0 auto; padding: 80px 24px; opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.section.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .section { opacity: 1; transform: none; transition: none; }
}
.hero { display: grid; grid-template-columns: minmax(0, 0.85fr) 1fr; gap: 48px; align-items: center; }
.hero-media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.hero-content { text-align: left; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-content { text-align: center; }
  .hero-media { max-width: 460px; margin: 0 auto; }
}
.site-footer { padding: 32px 24px; text-align: center; color: var(--muted); border-top: 1px solid var(--border); }
h1 { font-size: clamp(32px, 6vw, 56px); margin-bottom: 16px; }
h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 28px; }
.hero-sub { font-size: 20px; color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }
@media (max-width: 860px) { .hero-actions { justify-content: center; } }
.btn { display: inline-block; padding: 14px 26px; border-radius: var(--radius); font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card-icon {
  display: inline-flex; align-items: center; gap: 10px;
  height: 64px; padding: 0 20px; margin-bottom: 20px;
  border-radius: 20px; color: #fff; line-height: 0;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card-icon svg { width: 34px; height: 34px; stroke-width: 1.9; }
#advantages .cards .card:nth-child(odd) .card-icon {
  background: linear-gradient(135deg, #ff4338 0%, #c1121f 100%);
  box-shadow: 0 12px 26px rgba(225, 18, 38, .42);
}
#advantages .cards .card:nth-child(even) .card-icon {
  background: linear-gradient(135deg, #4a7bf0 0%, #1c2fa6 100%);
  box-shadow: 0 12px 26px rgba(28, 47, 166, .42);
}
#advantages .cards .card:hover .card-icon { transform: translateY(-3px) scale(1.04); }
.ico { display: inline-flex; vertical-align: -4px; margin-right: 8px; color: var(--accent); }
.ico svg { width: 18px; height: 18px; }
.card h3 { margin-bottom: 8px; }
.price { font-size: 28px; font-weight: 800; color: var(--accent); margin: 8px 0; }
.muted { color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gallery-item { padding: 0; border: none; background: var(--bg-alt); cursor: pointer; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 14px; right: 24px; background: none; border: none; color: #fff; font-size: 42px; line-height: 1; cursor: pointer; }
.booking-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 640px; }
.booking-form .field { display: flex; flex-direction: column; gap: 6px; }
.booking-form label { font-size: 14px; color: var(--muted); }
.booking-form input, .booking-form select {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font-size: 15px;
}
.booking-form button[type="submit"] { grid-column: 1 / -1; }
.booking-msg { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.booking-msg.ok { color: #1a9c5b; }
.booking-msg.err { color: #d33; }
.booking-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.booking-media { text-align: center; }
.booking-media img { width: 100%; max-width: 440px; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; margin: 0 auto; }
@media (max-width: 860px) { .booking-layout { grid-template-columns: 1fr; gap: 32px; } }
.split-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
.video-frame { margin-top: 14px; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.split-media { text-align: center; }
.split-media img { width: 100%; max-width: 440px; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; margin: 0 auto; }
@media (max-width: 860px) { .split-layout { grid-template-columns: 1fr; gap: 32px; } }
@media (min-width: 861px) { #contacts .split-media { margin-top: -90px; } }
@media (max-width: 560px) { .booking-form { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .nav { display: none; }
  .section { padding: 56px 16px; }
}
.rating { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.rating th, .rating td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.rating th { color: var(--muted); font-weight: 600; }
.rating tbody tr:hover { background: var(--bg-alt); }
.tour-title { margin: 24px 0 16px; }
#rating h2, #coaches h2 { color: var(--accent); }
#contacts a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
#contacts a:hover { color: var(--accent); }
