/* ========== PREMIUM DARK MAGIC THEME ========== */
:root {
  --bg: #0a0a0f;
  --bg-elevated: #121218;
  --bg-card: #16161e;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --gold: #facc15;
  --text: #f1f1f5;
  --text-muted: #a1a1aa;
  --border: #27272a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== NAVBAR ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.logo-icon {
  font-size: 26px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 15px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.phone:hover {
  color: var(--text);
}

.messenger-btn, .whatsapp-btn {
  background: #4A90E2;
  color: white;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.messenger-btn:hover, .whatsapp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.35);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple);
  color: white;
}

.btn-primary:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgb(124 58 237 / 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--purple-light);
}

.btn-large {
  padding: 16px 36px;
  font-size: 17px;
}

.btn-full {
  width: 100%;
}

.burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}

/* Background video - plays behind everything */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: saturate(0.95) contrast(1.05); /* slightly cinematic look */
}

/* Strong dark overlay so text is readable over any video content */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: 
    linear-gradient(
      to bottom,
      rgba(8, 8, 12, 0.72) 0%,
      rgba(8, 8, 12, 0.58) 15%,
      rgba(8, 8, 12, 0.66) 38%,
      rgba(8, 8, 12, 0.78) 100%
    );
  /* Subtle purple magic glow from the brand */
  box-shadow: inset 0 0 140px rgba(124, 58, 237, 0.15);
}

.hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.15);
  color: var(--purple-light);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

h1 {
  font-size: clamp(42px, 6.5vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin: 0 0 24px;
}

.accent {
  background: linear-gradient(90deg, #facc15, #fde047);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--text-muted);
}

.hero-trust div {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ========== TRUST BAR ========== */
.trust-bar {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.trust-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  text-align: center;
}

.trust-item {
  font-size: 15px;
  color: var(--text-muted);
}

.trust-item strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

/* ========== SECTIONS ========== */
.section {
  padding: 90px 0;
}

.section-dark {
  background: var(--bg-elevated);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 12px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0;
}

/* ========== PROGRAMS ========== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.program-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.program-card.highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.2);
}

.program-badge {
  position: absolute;
  top: -11px;
  right: 24px;
  background: var(--purple);
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.program-badge.gold {
  background: #ca8a04;
  color: #111;
}

.program-card h3 {
  font-size: 22px;
  margin: 8px 0 4px;
  font-weight: 700;
}

.program-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.program-price {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.program-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.program-features li {
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: #d1d5db;
}

.program-features li:first-child {
  border-top: none;
}

.price-note {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ========== STEPS ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.step-number {
  font-size: 13px;
  font-weight: 800;
  color: var(--purple-light);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.step h4 {
  margin: 0 0 12px;
  font-size: 19px;
}

/* ========== FOR WHOM ========== */
.for-whom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.for-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.for-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.for-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
}

/* ========== REVIEWS ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
}

.review-stars {
  color: #facc15;
  font-size: 18px;
  margin-bottom: 14px;
}

.review-text {
  font-size: 15.5px;
  line-height: 1.65;
  margin-bottom: 20px;
  color: #e4e4e7;
}

.review-author {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 60%);
}

.gallery-label {
  position: relative;
  z-index: 2;
  padding: 18px;
  font-weight: 600;
  font-size: 15px;
  color: white;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 26px;
  color: var(--purple-light);
  transition: transform 0.3s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding-bottom: 22px;
  margin: 0;
  color: var(--text-muted);
  font-size: 15.5px;
}

/* ========== FINAL CTA ========== */
.final-cta {
  background: linear-gradient(135deg, #1a1528, #0a0a0f);
  text-align: center;
}

.final-content h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.final-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0;
}

.final-note {
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== FOOTER ========== */
.footer {
  background: #050508;
  padding: 52px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer-contacts a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-contacts a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: #52525b;
  text-align: center;
}

/* ========== MODAL ========== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal[style*="block"] {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 560px;
  position: relative;
  max-height: 92vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-content h3 {
  margin: 0 0 6px;
  font-size: 26px;
}

.modal-subtitle {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-muted);
}

input, select, textarea {
  width: 100%;
  background: #0f0f16;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--purple);
}

textarea {
  resize: vertical;
}

.form-disclaimer {
  font-size: 12px;
  color: #52525b;
  text-align: center;
  margin-top: 14px;
}

/* ========== FLOATING MAX MESSENGER ========== */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #4A90E2;
  color: white;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 30px -8px rgba(74, 144, 226, 0.45);
  z-index: 150;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px -8px rgba(74, 144, 226, 0.55);
}

.floating-whatsapp span {
  transform: translateY(1px);
}

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  
  .burger {
    display: block;
  }

  .nav-actions {
    gap: 10px;
  }

  .whatsapp-btn, .messenger-btn {
    padding: 9px 14px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .program-price {
    font-size: 28px;
  }
}

/* Mobile menu */
.nav-links-mobile {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.nav-links-mobile.show {
  display: flex;
}

@media (max-width: 900px) {
  .nav-links-mobile {
    display: none;
  }
}