@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-soft: #1a1a1a;
  --orange: #ff4500;
  --orange-dark: #cc3700;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --border: #2a2a2a;
  --radius: 12px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: min(1200px, 92%); margin: 0 auto; }

/* Top bar */
.topbar {
  background: #050505;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 2px;
}
.logo-icon {
  width: 42px; height: 42px;
  background: var(--orange);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}
.nav { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.cart-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}
.cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--orange);
  color: #fff;
  font-size: 0.65rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--orange); color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg) 55%, transparent);
  z-index: 1;
}
.hero-deco {
  position: absolute;
  width: 300px; height: 300px;
  border: 4px solid var(--orange);
  border-radius: 50%;
  opacity: 0.15;
  right: -80px; top: 10%;
  z-index: 0;
}
.hero-deco-2 {
  position: absolute;
  width: 200px; height: 200px;
  border-left: 4px solid var(--orange);
  transform: rotate(45deg);
  left: 5%; bottom: 10%;
  opacity: 0.2;
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; padding: 4rem 0; }
.hero-badge {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero-text { color: var(--text-muted); max-width: 480px; margin-bottom: 2rem; font-size: 1.05rem; }
.hero-image {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 500px;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

/* Sections */
section { padding: 5rem 0; }
.section-badge {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-subtitle { color: var(--text-muted); max-width: 600px; margin-bottom: 2.5rem; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.features-image {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.features-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.features-image::after {
  content: '';
  position: absolute;
  inset: -15px;
  border: 4px solid var(--orange);
  border-radius: 50%;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-45deg);
}
.feature-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--orange); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--bg-soft);
  border: 1px solid var(--orange);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--orange);
  font-size: 1.2rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* Programs grid */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.program-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s;
}
.program-card:hover { transform: translateY(-4px); border-color: var(--orange); }
.program-card img { width: 100%; height: 200px; object-fit: cover; }
.program-card-body { padding: 1.25rem; }
.program-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.program-card p { color: var(--text-muted); font-size: 0.88rem; }

/* Stats */
.stats-bar {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--orange);
  line-height: 1;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  text-align: center;
  padding: 4rem 0;
}
.cta-section .section-title { margin-bottom: 1rem; }
.cta-section p { margin-bottom: 2rem; opacity: 0.9; }
.cta-section .btn { background: #fff; color: var(--orange); }
.cta-section .btn:hover { background: #f0f0f0; }

/* Page hero */
.page-hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}

/* Cards grid generic */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--orange); }
.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.card p { color: var(--text-muted); font-size: 0.9rem; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
}
.pricing-card.highlight {
  border-color: var(--orange);
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(255,69,0,0.15);
}
.pricing-card.highlight::before {
  content: 'Популярный';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.pricing-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}
.pricing-period { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.pricing-features { text-align: left; margin-bottom: 2rem; }
.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.pricing-features li::before { content: '✓ '; color: var(--orange); }

/* Schedule */
.schedule-day { margin-bottom: 2rem; }
.schedule-day h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--orange);
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.schedule-table { width: 100%; border-collapse: collapse; }
.schedule-table th, .schedule-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.schedule-table th { color: var(--text-muted); font-weight: 500; font-size: 0.85rem; }

/* Trainers */
.trainer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.trainer-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
}
.trainer-card h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.trainer-role { color: var(--orange); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem; }
.trainer-card p { color: var(--text-muted); font-size: 0.88rem; }

/* Forms */
.form-section { max-width: 520px; margin: 0 auto; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Dashboard */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.dash-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.dash-stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--orange);
}
.dash-stat-label { color: var(--text-muted); font-size: 0.85rem; }
.dash-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.dash-panel h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* Shop */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.product-image {
  width: 100%;
  height: 160px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  font-size: 3rem;
}
.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange);
  margin: 0.5rem 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 48px; height: 48px;
  background: var(--bg-card);
  border: 1px solid var(--orange);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--orange);
  flex-shrink: 0;
}
.map-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 300px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  padding: 2rem;
  text-align: center;
}

/* Footer */
.footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.footer p, .footer a { color: var(--text-muted); font-size: 0.9rem; }
.footer a:hover { color: var(--orange); }
.footer-links li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Edit mode */
.edit-toolbar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  border: 2px solid var(--orange);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.edit-toolbar.visible { display: flex; }
.edit-toolbar .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
.edit-status { font-size: 0.8rem; color: var(--text-muted); }
body.edit-mode [data-edit] {
  outline: 1px dashed rgba(255,69,0,0.4);
  outline-offset: 3px;
  cursor: text;
  transition: outline 0.2s;
}
body.edit-mode [data-edit]:hover,
body.edit-mode [data-edit]:focus {
  outline: 2px solid var(--orange);
  background: rgba(255,69,0,0.05);
}
.edit-login-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  place-items: center;
  z-index: 2000;
}
.edit-login-modal.visible { display: grid; }
.edit-login-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: min(400px, 90%);
}
.edit-login-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.edit-hint {
  position: fixed;
  top: 80px;
  right: 1rem;
  background: var(--orange);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 999;
  display: none;
}
.edit-hint.visible { display: block; }
.edit-btn-header {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.edit-btn-header:hover, .edit-btn-header.active {
  border-color: var(--orange);
  color: var(--orange);
}

/* Responsive */
@media (max-width: 992px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image { min-height: 350px; order: -1; }
  .hero-image img { clip-path: none; }
  .features-grid { grid-template-columns: 1fr; }
  .programs-grid, .cards-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .programs-grid, .cards-grid, .pricing-grid, .feature-cards, .dashboard-stats { grid-template-columns: 1fr; }
  .pricing-card.highlight { transform: none; }
}
