/* ═══════════════════════════════════════════════════════════
   Dom Skazok — Global Design System
   Дом Сказок · House of Fairy Tales
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f8f5ff;
  color: #1e1333;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:            #f8f5ff;
  --bg-2:          #f0ebff;
  --surface:       #ffffff;
  --surface-2:     #f3eeff;
  --border:        rgba(120,80,200,0.12);
  --border-glow:   rgba(147,51,234,0.2);

  --gold:          #e8920a;
  --gold-light:    #f5a623;
  --purple:        #7c3aed;
  --purple-dark:   #5b21b6;
  --purple-light:  #a78bfa;
  --blue:          #2563eb;
  --green:         #16a34a;

  --text:          #1e1333;
  --text-muted:    #5b4d7a;
  --text-dim:      #9580b8;

  /* Gradients */
  --grad-hero:     linear-gradient(135deg, #ede9fe 0%, #fdf4ff 50%, #e0f2fe 100%);
  --grad-gold:     linear-gradient(135deg, #e8920a, #f5a623);
  --grad-purple:   linear-gradient(135deg, #7c3aed, #a78bfa);
  --grad-card:     linear-gradient(145deg, #ffffff, #f8f5ff);

  /* Spacing */
  --section-py:    5rem;
  --container:     1200px;
  --gap:           1.5rem;

  /* Border radius */
  --radius-sm:     8px;
  --radius:        16px;
  --radius-lg:     24px;
  --radius-xl:     32px;

  /* Shadows */
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 40px rgba(192,132,252,0.15);
  --shadow-gold:   0 0 30px rgba(245,166,35,0.2);
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Nunito', system-ui, sans-serif;
  line-height: 1.2;
  font-weight: 800;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); line-height: 1.7; }
strong { color: var(--text); }

.lead {
  font-size: 1.15rem;
  color: var(--text);
  opacity: 0.85;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: var(--section-py) 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(124,58,237,0.08);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(248,245,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(248,245,255,0.98);
  backdrop-filter: blur(20px);
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}

.nav-mobile a:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.nav-mobile a:last-child { border-bottom: none; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-gold);
  color: #1a0e00;
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}
.btn-primary:hover { box-shadow: 0 8px 24px rgba(245,166,35,0.45); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(124,58,237,0.35); background: rgba(124,58,237,0.06); }

.btn-purple {
  background: var(--grad-purple);
  color: white;
  box-shadow: 0 4px 16px rgba(147,51,234,0.35);
}
.btn-purple:hover { box-shadow: 0 8px 24px rgba(147,51,234,0.45); }

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.12);
  border-color: var(--border-glow);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card-icon-gold { background: rgba(245,166,35,0.15); }
.card-icon-purple { background: rgba(192,132,252,0.15); }
.card-icon-blue { background: rgba(96,165,250,0.15); }
.card-icon-green { background: rgba(74,222,128,0.15); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe 0%, #fdf4ff 40%, #dbeafe 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}

.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}

.hero-glow-1 {
  width: 600px; height: 600px;
  background: #c4b5fd;
  top: -200px; right: -100px;
}

.hero-glow-2 {
  width: 400px; height: 400px;
  background: #fde68a;
  bottom: 0; left: -100px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .accent {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat-value {
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--purple);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Hero text on light bg ────────────────────────────────── */
.hero-title { color: var(--text); }
.hero-subtitle { color: var(--text-muted); }

/* ── About Section ────────────────────────────────────────── */
.about {
  background: var(--bg-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,19,51,0.4) 0%, transparent 60%);
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.about-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(245,166,35,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-feature-text h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.about-feature-text p {
  font-size: 0.85rem;
}

/* ── Classes Section ──────────────────────────────────────── */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}

.class-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: default;
}

.class-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), 0 0 30px rgba(192,132,252,0.12);
  border-color: rgba(192,132,252,0.3);
}

.class-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.class-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.class-card h3 {
  font-size: 1.05rem;
  color: var(--text);
}

.class-card p {
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.class-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}

.tag-age {
  background: rgba(245,166,35,0.15);
  color: var(--gold-light);
  border: 1px solid rgba(245,166,35,0.2);
}

.tag-online {
  background: rgba(96,165,250,0.12);
  color: var(--blue);
  border: 1px solid rgba(96,165,250,0.2);
}

.tag-offline {
  background: rgba(74,222,128,0.12);
  color: var(--green);
  border: 1px solid rgba(74,222,128,0.2);
}

/* ── How It Works ─────────────────────────────────────────── */
.how {
  background: var(--bg-2);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.how-step {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.how-step::after {
  content: '→';
  position: absolute;
  right: -0.75rem;
  top: 2.5rem;
  font-size: 1.5rem;
  color: var(--text-dim);
}

.how-step:last-child::after { display: none; }

.how-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1.25rem;
}

.how-step h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

/* ── Schedule Section ─────────────────────────────────────── */
.schedule-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  background: var(--surface);
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.schedule-tab {
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, color 0.2s;
}

.schedule-tab.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.schedule-panel { display: none; }
.schedule-panel.active { display: block; }

.schedule-day {
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.schedule-day-header {
  background: var(--surface-2);
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple);
}

.schedule-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  transition: background 0.15s;
}

.schedule-row:hover { background: var(--surface-2); }

.schedule-time {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
}

.schedule-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.schedule-row { background: var(--surface); }
.schedule-row:hover { background: var(--surface-2); }

.schedule-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.schedule-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* Saturday grid */
.sat-schedule {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.sat-header {
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.sat-header > div {
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple);
}

.sat-row {
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  border-top: 1px solid var(--border);
  min-height: 72px;
}

.sat-time-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple);
  background: var(--surface-2);
  border-right: 1px solid var(--border);
}

.sat-class-col {
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.sat-class-col:last-child { border-right: none; background: var(--surface); }

.sat-class-col:last-child { border-right: none; }

.sat-class-inner {
  background: rgba(124,58,237,0.06);
  border-left: 3px solid var(--purple);
  border-radius: 4px;
  padding: 0.5rem 0.65rem;
  width: 100%;
}

.sat-class-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.sat-class-price {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  max-width: 1100px;
}

.pricing-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.pricing-card:hover { transform: translateY(-4px); }

.pricing-card.featured {
  border-color: rgba(245,166,35,0.4);
  box-shadow: var(--shadow-gold);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-gold);
  color: #1a0e00;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-duration {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.pricing-currency {
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 600;
}

.pricing-value {
  font-family: 'Nunito', sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text);
}

.pricing-per {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pricing-feature-check {
  color: var(--green);
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── Holiday Programs Callout ─────────────────────────────── */
.holiday-callout {
  background: linear-gradient(135deg, #fef3c7, #fde68a 40%, #fef9c3);
  border: 1.5px solid rgba(234,179,8,0.3);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.holiday-callout-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  flex-wrap: wrap;
}

.holiday-callout-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.holiday-callout-text {
  flex: 1;
  min-width: 240px;
}

.holiday-callout-text h3 {
  font-size: 1.25rem;
  color: #78350f;
  margin-bottom: 0.4rem;
}

.holiday-callout-text p {
  font-size: 0.9rem;
  color: #92400e;
  line-height: 1.6;
}

.holiday-callout .btn-primary {
  flex-shrink: 0;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 4px 12px rgba(217,119,6,0.3);
}

/* ── Teachers Section ─────────────────────────────────────── */
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.teacher-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: row;
  gap: 1.75rem;
  align-items: flex-start;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.teacher-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.1);
  border-color: var(--border-glow);
}

.teacher-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124,58,237,0.15);
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--grad-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.teacher-info { flex: 1; }

.teacher-name {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.teacher-role {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.teacher-bio {
  font-size: 0.88rem;
  line-height: 1.7;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.teachers-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .teachers-grid { grid-template-columns: 1fr; }
  .teacher-card { flex-direction: row; }
}

@media (max-width: 540px) {
  .teacher-card { flex-direction: column; align-items: center; text-align: center; }
  .teacher-tags { justify-content: center; }
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonials {
  background: var(--bg-2);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

.testimonial-card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.testimonial-stars {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── Contact Section ──────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(192,132,252,0.1);
  border: 1px solid rgba(192,132,252,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.contact-info-text p {
  font-size: 0.95rem;
  color: var(--text);
}

/* Contact form */
.contact-form {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1.5px solid rgba(124,58,237,0.15);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #b8aad0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.03);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: #1e1333;
  color: #e2d9f3;
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer p, .footer-links a, .footer-bottom { color: #a393c8; }
.footer-links a:hover { color: #ffffff; }
.footer .nav-logo { color: #e2d9f3; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.88rem;
  max-width: 280px;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: #ffffff; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Stars Decoration ─────────────────────────────────────── */
.stars-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 3px;
  background: var(--grad-gold);
  border-radius: 2px;
  margin: 1rem 0 2rem;
}

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .how-step::after { display: none; }
}

@media (max-width: 768px) {
  :root { --section-py: 3.5rem; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-stats { gap: 1.5rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .schedule-row { grid-template-columns: 70px 1fr auto; gap: 0.5rem; }
  .schedule-price { display: none; }
  .schedule-enrol-btn { font-size: 0.7rem !important; padding: 0.2rem 0.5rem !important; }
  .sat-header > div:nth-child(3),
  .sat-row > div:nth-child(3) { display: none; }
  .sat-header, .sat-row { grid-template-columns: 70px 1fr; }
  .sat-class-inner { padding: 0.4rem 0.5rem; }
  .sat-class-inner .schedule-enrol-btn { font-size: 0.7rem !important; padding: 0.2rem 0.5rem !important; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .classes-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ── Booking Modal ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 40, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(124, 58, 237, 0.18);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }

.modal-title {
  font-family: 'Nunito', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

/* ── Registration wizard ─────────────────────────────────────── */
.reg-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
}
.reg-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  position: relative;
}
.reg-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: rgba(124,58,237,0.2);
  transition: background 0.3s;
}
.reg-step-item.done:not(:last-child)::after {
  background: var(--gold);
}
.reg-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}
.reg-step-item.active .reg-step-num {
  border-color: var(--gold);
  background: var(--gold);
  color: #1a1825;
}
.reg-step-item.done .reg-step-num {
  border-color: var(--gold);
  background: var(--gold);
  color: #1a1825;
}
.reg-step-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}
.reg-step-item.active .reg-step-label,
.reg-step-item.done .reg-step-label {
  color: var(--text);
}

.reg-panel { display: none; }
.reg-panel.active { display: block; }

.reg-form-group {
  margin-bottom: 1.1rem;
}
.reg-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.reg-form-group input,
.reg-form-group select,
.reg-form-group textarea {
  width: 100%;
  background: rgba(124,58,237,0.06);
  border: 1.5px solid rgba(124,58,237,0.2);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.reg-form-group input:focus,
.reg-form-group select:focus,
.reg-form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(124,58,237,0.1);
}
.reg-form-group input::placeholder,
.reg-form-group textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
.reg-form-group select option { background: #1a1230; color: var(--text); }
.reg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.reg-class-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 2px;
  margin-top: 0.5rem;
}
.reg-class-grid::-webkit-scrollbar { width: 4px; }
.reg-class-grid::-webkit-scrollbar-track { background: transparent; }
.reg-class-grid::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 4px; }

.reg-class-card {
  background: rgba(124,58,237,0.06);
  border: 1.5px solid rgba(124,58,237,0.15);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.reg-class-card:hover {
  border-color: rgba(124,58,237,0.4);
  background: rgba(124,58,237,0.1);
}
.reg-class-card.selected {
  border-color: var(--gold);
  background: rgba(197,130,16,0.1);
}
.reg-class-card.full {
  opacity: 0.45;
  cursor: not-allowed;
}
.reg-class-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.reg-class-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.reg-class-price {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 0.3rem;
}
.reg-class-tag {
  display: inline-block;
  font-size: 0.62rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(124,58,237,0.18);
  color: var(--purple);
  font-weight: 600;
  margin-top: 0.25rem;
}
.reg-class-card.selected .reg-class-tag {
  background: rgba(197,130,16,0.2);
  color: var(--gold);
}
.reg-class-full-badge {
  position: absolute;
  top: 6px; right: 6px;
  font-size: 0.6rem;
  background: rgba(255,255,255,0.1);
  color: var(--text-muted);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.reg-no-class {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 1rem;
}

.reg-class-filter {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.reg-filter-btn {
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.reg-filter-btn:hover,
.reg-filter-btn.active {
  background: rgba(124,58,237,0.18);
  border-color: var(--purple);
  color: var(--text);
}

.reg-confirm-box {
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.reg-confirm-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(124,58,237,0.1);
}
.reg-confirm-row:last-child { border-bottom: none; }
.reg-confirm-row span:first-child { color: var(--text-muted); }
.reg-confirm-row span:last-child { color: var(--text); font-weight: 600; text-align: right; max-width: 65%; }

.reg-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 0.75rem;
}
.reg-footer-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  flex: 1;
}

.reg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.reg-btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #e8961a 100%);
  color: #1a1825;
}
.reg-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.reg-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.reg-btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(124,58,237,0.3);
  color: var(--text-muted);
}
.reg-btn-ghost:hover {
  border-color: var(--purple);
  color: var(--text);
}

.reg-error {
  color: #f87171;
  font-size: 0.82rem;
  margin-top: 0.4rem;
  display: none;
}
.reg-error.show { display: block; }

.reg-success {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}
.reg-success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.reg-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.reg-success p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto 1.5rem;
}

.reg-loading {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(26,24,37,0.3);
  border-top-color: #1a1825;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.reg-terms-visible {
  margin: 1rem 0 0.75rem;
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 10px;
  overflow: hidden;
}
.reg-terms-visible-title {
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(124,58,237,0.05);
}
.reg-terms-body {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px solid rgba(124,58,237,0.12);
  max-height: 220px;
  overflow-y: auto;
}
.reg-terms-body p { margin: 0 0 0.6rem; }
.reg-terms-body p:last-child { margin-bottom: 0; }
.reg-terms-body strong { color: var(--text); }

.reg-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.75rem;
  cursor: pointer;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.reg-terms-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  accent-color: var(--gold);
  cursor: pointer;
  margin-top: 1px;
}
.reg-terms-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--purple);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.reg-terms-link:hover { color: var(--text); }

@media (max-width: 640px) {
  .reg-form-row { grid-template-columns: 1fr; }
  .reg-class-grid { grid-template-columns: 1fr; max-height: 240px; }
  .reg-step-label { display: none; }
  .reg-confirm-row span:last-child { max-width: 55%; }
}
