/* === Variables === */
:root {
  --bg-dark: #0f1419;
  --bg-card: #1a222c;
  --bg-section: #151c24;
  --accent: #e8a317;
  --accent-hover: #f5b82e;
  --text: #e8ecf0;
  --text-muted: #8b9aaa;
  --border: #2a3544;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --font: 'Manrope', -apple-system, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dark);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent); }
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--bg-dark) 0%, var(--bg-section) 50%, #0d1620 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(232, 163, 23, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
}
.hero-subtitle {
  font-size: 1.35rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 20px;
}
.hero-desc {
  max-width: 560px;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  line-height: 1.7;
}
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* === Sections === */
.section {
  padding: 80px 0;
  background: var(--bg-section);
}
.section:nth-child(even) { background: var(--bg-dark); }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}
.section-intro {
  max-width: 720px;
  color: var(--text-muted);
  margin: 0 0 40px;
  font-size: 1.05rem;
}

/* === About === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
.about-text p {
  margin: 0 0 16px;
  color: var(--text-muted);
}
.about-text p:last-child { margin-bottom: 0; }
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat span:last-child {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === Services (cards) === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(232, 163, 23, 0.4);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 163, 23, 0.15);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 10px;
  margin-bottom: 16px;
}
.card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: var(--text);
}
.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* === Advantages === */
.advantages-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 800px;
}
.advantages-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.advantages-list li:last-child { border-bottom: none; }
.advantages-list strong {
  color: var(--accent);
  margin-right: 8px;
}

/* === Program (steps) === */
.steps {
  display: grid;
  gap: 24px;
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.step-num {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg-dark);
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text);
}
.step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* === Instructors === */
.instructors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.instructor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.instructor-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 163, 23, 0.2);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
}
.instructor-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text);
}
.instructor-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === FAQ === */
.faq-list {
  max-width: 720px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 0;
  margin-left: 24px;
  margin-right: 24px;
  margin-bottom: 20px;
}

/* === Contacts window === */
.contacts {
  padding-bottom: 100px;
}
.contacts-window {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--border), var(--shadow), 0 0 40px rgba(232, 163, 23, 0.12);
  overflow: hidden;
}
.contacts-inner {
  padding: 36px 40px;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-row:first-child { padding-top: 0; }
.contact-label {
  font-weight: 600;
  color: var(--text-muted);
  min-width: 120px;
}
.contact-value {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
a.contact-value:hover { color: var(--accent); }

/* === Footer === */
.footer {
  padding: 24px 0;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stat { flex: 1 1 160px; }
}
@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .burger { display: flex; }
  .section { padding: 56px 0; }
  .step {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .step-num { margin: 0 auto; }
  .contacts-inner { padding: 28px 24px; }
  .contact-row { flex-direction: column; gap: 4px; }
}
