/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  white-space: nowrap;
}
.header-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.header-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.header-nav a:hover,
.header-nav a.active {
  background: var(--brand-light);
  color: var(--brand-dark);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.btn-theme {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.btn-theme:hover { background: var(--border); }
.btn-call {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-call:hover { background: var(--accent-hover); }
.burger {
  display: none;
  width: 40px; height: 40px;
  border: none; background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.mobile-nav a:hover { background: var(--brand-light); border-color: var(--brand); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #2a1040;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand);
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 600px;
}
.hero h1 span { color: var(--brand); }
.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  margin-bottom: 12px;
  max-width: 500px;
}
.hero-meta {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 36px;
}
.hero-meta span { margin-right: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.35);
  transition: all var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }

/* ===== SECTION WRAPPER ===== */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}
.section-sub {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.section-divider {
  background: var(--bg-alt);
  padding: 1px 0;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.stat-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid var(--border-card);
}
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-dark);
  display: block;
}
[data-theme="dark"] .stat-num { color: var(--brand); }
.stat-label { font-size: 13px; color: var(--text-muted); }
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* ===== SECTIONS GRID ===== */
.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: default;
}
.section-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}
.section-card-icon {
  font-size: 36px;
  margin-bottom: 14px;
}
.section-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.section-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.6;
}
.section-card-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-dark);
}
[data-theme="dark"] .section-card-price { color: var(--brand); }
.section-card-badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  margin-bottom: 10px;
}
.badge-all { background: var(--brand-light); color: var(--brand-dark); }
.badge-kids { background: #fff3cd; color: #856404; }
.badge-adults { background: #fde8f0; color: #a3174a; }
[data-theme="dark"] .badge-all { background: rgba(168,216,69,0.15); color: var(--brand); }
[data-theme="dark"] .badge-kids { background: rgba(255,224,102,0.15); color: #ffe066; }
[data-theme="dark"] .badge-adults { background: rgba(255,63,160,0.15); color: var(--accent); }

/* ===== PRICING TABLE ===== */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.pricing-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.pricing-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: var(--bg-alt); }
.price-val {
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
}
[data-theme="dark"] .price-val { color: var(--brand); }

/* ===== SCHEDULE ===== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.day-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.day-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand);
  margin-bottom: 10px;
}
.day-item {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.day-item:last-child { border-bottom: none; }
.day-item strong { color: var(--text); display: block; }
.schedule-table-wrap { overflow-x: auto; }
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 600px;
}
.schedule-table th {
  padding: 12px 16px;
  background: var(--bg-alt);
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.schedule-table td {
  padding: 10px 16px;
  border: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  vertical-align: top;
}
.sch-event {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  margin: 2px;
  white-space: nowrap;
}
.sch-event.pink { background: #fde8f0; color: #a3174a; }
.sch-event.yellow { background: #fff9cc; color: #7a6000; }
[data-theme="dark"] .sch-event { background: rgba(168,216,69,0.15); color: var(--brand); }
[data-theme="dark"] .sch-event.pink { background: rgba(255,63,160,0.15); color: var(--accent); }
[data-theme="dark"] .sch-event.yellow { background: rgba(255,224,102,0.12); color: #ffe066; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: 13px;
  padding: 20px 12px 10px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 15px;
  text-align: center;
  background: rgba(0,0,0,0.5);
  padding: 8px 20px;
  border-radius: var(--radius-full);
}

/* ===== TRAINER ===== */
.trainer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  box-shadow: var(--shadow-md);
}
.trainer-avatar {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  border: 3px solid var(--brand);
}
.trainer-name { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.trainer-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.trainer-tag {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
[data-theme="dark"] .trainer-tag { background: rgba(168,216,69,0.15); color: var(--brand); }
.trainer-info { display: grid; gap: 12px; }
.trainer-row { display: flex; gap: 12px; align-items: flex-start; }
.trainer-row-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 120px;
  padding-top: 2px;
}
.trainer-row-val { font-size: 15px; color: var(--text); }

/* ===== CONTACTS ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-list { display: grid; gap: 16px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.contact-item:hover { box-shadow: var(--shadow-md); }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; }
.contact-val { font-size: 16px; font-weight: 600; color: var(--text); }
.contact-val a { color: var(--accent); }
.contact-val a:hover { text-decoration: underline; }
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-alt);
}
.map-wrap iframe {
  width: 100%;
  height: 340px;
  display: block;
  border: none;
}
.btn-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--brand);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 15px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: background var(--transition);
}
.btn-route:hover { background: var(--brand-dark); color: #fff; }
.messenger-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.messenger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
}
.messenger-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-wa { background: #25d366; color: #fff; }
.btn-tg { background: #0088cc; color: #fff; }

/* ===== NOTICE BLOCK ===== */
.notice {
  background: var(--yellow);
  color: #1a1a1a;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
}
[data-theme="dark"] .notice { background: rgba(255,224,102,0.15); color: var(--text); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 40px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 10px;
}
.page-hero p { color: var(--text-muted); font-size: 17px; }

/* ===== CARDS DETAIL ===== */
.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}
.detail-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.detail-card-icon { font-size: 32px; }
.detail-card-title { font-size: 22px; font-weight: 800; }
.detail-card-sub { font-size: 14px; color: var(--text-muted); margin-top: 2px; }
.detail-card-body { padding: 24px 28px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: 80px;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.footer-brand-name { font-weight: 700; font-size: 16px; }
.footer-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.footer-col-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.footer-links { display: grid; gap: 8px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--brand-dark); }
[data-theme="dark"] .footer-links a:hover { color: var(--brand); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== ADMIN ===== */
.admin-wrap { max-width: 800px; margin: 0 auto; }
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.admin-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.admin-textarea {
  width: 100%;
  min-height: 300px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  resize: vertical;
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.admin-btn:hover { background: var(--accent-hover); }
.admin-btn-green { background: var(--brand-dark); }
.admin-btn-green:hover { background: var(--brand-dark); filter: brightness(0.9); }
[data-theme="dark"] .admin-btn-green { background: var(--brand-dark); }
.admin-status {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-top: 12px;
  display: none;
}
.admin-status.ok { background: #d4edda; color: #155724; display: block; }
.admin-status.err { background: #f8d7da; color: #721c24; display: block; }
[data-theme="dark"] .admin-status.ok { background: rgba(76,175,80,0.2); color: #81c784; }
[data-theme="dark"] .admin-status.err { background: rgba(244,67,54,0.2); color: #ef9a9a; }
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.login-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.input-field {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  margin-bottom: 12px;
  font-family: var(--font);
}
.input-field:focus { outline: none; border-color: var(--brand); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .about-image img { height: 260px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .trainer-card { grid-template-columns: 1fr; }
  .trainer-avatar { width: 120px; height: 120px; font-size: 52px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-nav { display: none; }
  .btn-call { display: none; }
  .burger { display: flex; }
  .hero { min-height: 420px; }
  .hero-content { padding: 60px 20px; }
  .section { padding: 48px 20px; }
  .sections-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .detail-card-header { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
