/* ========================
   RESET & BASE
   ======================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Light warm palette — beige + gold */
  --bg: #faf7f4;
  --bg2: #f3ede6;
  --surface: #ffffff;
  --surface2: #f9f5f0;
  --border: rgba(180,145,100,0.15);
  --border-strong: rgba(180,145,100,0.3);

  --accent: #b8895a;        /* warm gold-brown */
  --accent-dark: #9a6e42;
  --accent-light: #d4a97a;
  --accent-rgb: 184,137,90;

  --text: #2c2016;          /* deep warm brown */
  --text-mid: #5a4a38;
  --text-muted: #8c7a68;
  --text-dim: #b8a898;

  --green: #7a9e7e;         /* plant green accent */
  --green-light: #e8f0e8;

  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-display-italic: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  --section-padding: 6rem 0;
  --shadow: 0 4px 24px rgba(140,100,60,0.08);
  --shadow-md: 0 8px 40px rgba(140,100,60,0.12);
  --shadow-lg: 0 16px 60px rgba(140,100,60,0.15);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

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

/* ========================
   BUTTONS
   ======================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.9rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 17px; height: 17px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(90deg, #c8920a, #f5c842, #e8a820, #f0d060, #c8920a);
  background-size: 300% auto;
  color: #1a0f00;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(240,180,30,0.45);
  animation: shimmer-idle 2.5s linear infinite;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(240,180,30,0.65);
  animation: shimmer-idle 1s linear infinite;
}

.btn-gold {
  background: linear-gradient(90deg, #c8920a, #f5c842, #e8a820, #f0d060, #c8920a);
  background-size: 300% auto;
  color: #1a0f00;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(240,180,30,0.45);
  animation: shimmer-idle 2.5s linear infinite;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(240,180,30,0.65);
  animation: shimmer-idle 1s linear infinite;
}

.nav-cta {
  display: inline-flex !important;
  align-items: center !important;
  padding: 0.75rem 1.6rem !important;
  border-radius: 50px !important;
  color: #1a0f00 !important;
  border: none !important;
  background-image: linear-gradient(90deg, #c8920a, #f5c842, #e8a820, #f0d060, #c8920a) !important;
  background-size: 300% auto !important;
  background-color: #c8920a !important;
  -webkit-animation: shimmer-idle 2.5s linear infinite !important;
  animation: shimmer-idle 2.5s linear infinite !important;
  font-weight: 700 !important;
  font-family: var(--font-body) !important;
  text-transform: none !important;
  letter-spacing: 0.3px !important;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 20px rgba(240,180,30,0.5) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(240,180,30,0.7) !important;
  animation: shimmer-idle 1s linear infinite !important;
  color: #1a0f00 !important;
}

.course-enroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background-image: linear-gradient(90deg, #c8920a, #f5c842, #e8a820, #f0d060, #c8920a);
  background-size: 300% auto;
  color: #1a0f00;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(240,180,30,0.45);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  -webkit-animation: shimmer-idle 2.5s linear infinite;
  animation: shimmer-idle 2.5s linear infinite;
}

.course-enroll-btn:hover {
  box-shadow: 0 6px 28px rgba(240,180,30,0.65);
  transform: translateY(-2px);
  animation: shimmer-idle 1s linear infinite;
}

.btn-static {
  animation: none !important;
  background: #6b3f1f !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(80,40,10,0.3) !important;
}
.btn-static:hover {
  animation: none !important;
  background: #7d4a24 !important;
  box-shadow: 0 8px 24px rgba(80,40,10,0.4) !important;
}

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--bg2);
  border-color: var(--accent);
}

.hero .btn-outline {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.35);
}
.hero .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
}

/* ========================
   SECTION COMMON
   ======================== */

.section { padding: var(--section-padding); }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
}
.section-title.left::after { left: 0; transform: none; }

.section-subtitle {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ========================
   NAVBAR
   ======================== */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.4rem 0;
  background: rgba(30, 20, 10, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
  background: rgba(25, 16, 8, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* nav links always white */
.nav-menu a { color: rgba(255,255,255,0.8); }
.nav-menu a:hover { color: #fff; }
.nav-menu a::after { background: var(--accent-light); }

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo {
  display: block;
  width: 160px;
  height: 160px;
  min-width: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: var(--transition);
  position: relative;
  top: 72px;
  margin-top: -72px;
}
.nav-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.4);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-menu a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding: 0.2rem 0;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ========================
   HERO
   ======================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  background: url('images/backgrounds/hero-bg.png') center center / cover no-repeat;
}

/* dark overlay so text stays readable */
.hero::before { display: none; }
.hero::after { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem;
  max-width: 680px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--accent-light);
}
.hero-title-accent {
  color: var(--accent-light);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  max-width: min(500px, 100%);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat { text-align: left; }
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}

/* ========================
   COURSES (STATIC FORMATTING)
   ======================== */

.courses-section {
  background: linear-gradient(135deg, #2a1e12 0%, #3d2a18 50%, #2a1a0e 100%);
  padding-top: 2.5rem;
  position: relative;
  overflow: hidden;
}

.courses-header { position: relative; }

.courses-title {
  margin-top: 0.5rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light), #f5d896);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.courses-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px; height: 2px;
  background: none;
  border: none;
}

.courses-header::before {
  content: '✂';
  display: block;
  font-size: 1.3rem;
  color: var(--accent-light);
  margin-bottom: 0.3rem;
  opacity: 0.9;
}

.courses-header .section-subtitle { color: rgba(255,255,255,0.68); }

.courses-header .section-tag {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.course-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.25s;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.course-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(var(--accent-rgb),0.4);
  box-shadow: 0 16px 50px rgba(0,0,0,0.3);
  transform: translateY(-3px);
}
.course-card.active {
  border-color: var(--accent-light);
  box-shadow: 0 16px 50px rgba(0,0,0,0.3);
}

.course-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 1.75rem;
  cursor: pointer;
}
.course-header-info { flex: 1; }
.course-title { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.2rem; }
.course-short { font-size: 0.95rem; font-weight: 600; color: #fff; letter-spacing: 0.1px; }

.course-chevron {
  width: 20px; height: 20px;
  color: var(--accent-light);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.course-card.active .course-chevron { transform: rotate(180deg); color: var(--accent-light); }

.course-body {
  display: none;
  padding: 0 1.75rem 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.course-card.active .course-body { display: block; }

/* Внутреннее оформление карточки курса */
.course-desc-formatted {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  padding-bottom: 1.75rem;
  padding-top: 1.75rem;
}

.course-intro {
  position: relative;
  background: linear-gradient(160deg, rgba(var(--accent-rgb),0.2), rgba(var(--accent-rgb),0.07));
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  padding: 28px 32px 28px 56px;
  border-radius: 16px;
  margin-bottom: 32px;
}

.course-intro-icon {
  position: absolute;
  top: 24px;
  left: 20px;
  font-size: 1.3rem;
  color: var(--accent-light);
}

.course-intro p { margin-top: 0; margin-bottom: 18px; }
.course-intro strong { color: #fff; }

.course-volume {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.course-volume strong { color: #fff; }
.course-volume-icon { font-size: 1rem; }

/* Раскрывающиеся секции (аккордеоны) программы курса */
.course-module-details {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.course-module-details[open] {
  border-color: var(--accent-light);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.course-module-details .module-title {
  font-size: 15.5px;
  color: #fff;
  font-weight: 600;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
}

.module-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(var(--accent-rgb), 0.22);
  border-radius: 50%;
  transition: background 0.25s;
}
.course-module-details[open] .module-icon { background: rgba(var(--accent-rgb), 0.32); }

.module-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.module-num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-light);
}

/* Убираем стандартную стрелку браузера */
.course-module-details .module-title::-webkit-details-marker {
  display: none;
}

/* Добавляем плюсик-крестик в виде кружка */
.course-module-details .module-title::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--accent-light);
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: transform 0.25s, background 0.25s;
}

/* При открытии плюсик крутится в крестик */
.course-module-details[open] .module-title::after {
  transform: rotate(135deg);
  background: var(--accent-light);
  color: #1a0f00;
}

.module-content {
  padding: 0 22px 22px;
  margin-left: 50px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
}

.module-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  margin-top: 0;
  margin-bottom: 18px;
  font-style: italic;
}

.lesson-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  counter-reset: lesson;
}

.lesson-list li {
  counter-increment: lesson;
  position: relative;
  padding-left: 34px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.78);
}
.lesson-list li:last-child { margin-bottom: 0; }

.lesson-list li::before {
  content: counter(lesson);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #1a0f00;
  background: var(--accent-light);
  border-radius: 50%;
}

.lesson-list strong {
  color: #fff;
}

@keyframes shimmer-idle {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}

/* ========================
   WHY
   ======================== */

.why-section {
  background: linear-gradient(135deg, #2a1e12 0%, #3d2a18 50%, #2a1a0e 100%);
  position: relative;
  overflow: hidden;
  padding-top: 2.5rem;
}
.why-section .section-header { margin-bottom: 2rem; }
.why-section .section-title { color: #fff; }
.why-section .section-title::after { background: var(--accent-light); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.feature-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(var(--accent-rgb),0.4);
  transform: translateY(-3px);
}

.feature-icon {
  width: 50px; height: 50px;
  background: rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent-light);
}
.feature-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.875rem; color: rgba(255,255,255,0.65); line-height: 1.75; }

/* ========================
   ABOUT
   ======================== */

.about-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  align-items: stretch;
  min-height: 560px;
}

.about-text {
  padding: 5rem 4rem 5rem 2rem;
}

.about-lead {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-top: 1.75rem;
  margin-bottom: 2rem;
  max-width: 520px;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.about-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.about-stat-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.about-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.7;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  margin: 0;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-photo-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.about-photo-wrap::before { display: none; }

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  display: block;
  box-shadow: none;
}

.about-badge {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg2) 0%, rgba(var(--accent-rgb),0.08) 100%);
  border: 2px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-md);
}

.about-badge-icon { font-size: 2.5rem; color: var(--accent); line-height: 1; }
.about-badge-text { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--accent-dark); }
.about-badge-sub { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-dim); }

.about-section .section-title.left {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .about-text {
    padding: 2.5rem 1.5rem 2rem;
  }
  .about-lead {
    max-width: 100%;
    font-size: 1rem;
  }
  .about-visual {
    order: -1;
    height: 320px;
  }
  .about-photo-wrap {
    width: 100%;
    height: 100%;
  }
  .about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
}

/* ========================
   PHOTO DIVIDER
   ======================== */

.photo-divider {
  height: 420px;
  background: url('images/backgrounds/section-divider-bg.png') center center / cover no-repeat;
}

/* ========================
   OUTCOMES
   ======================== */

.outcomes-section {
  position: relative;
  background: url('images/backgrounds/section-divider-bg.png') center center / cover no-repeat;
}
.outcomes-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 1, 0.55);
  pointer-events: none;
  z-index: 0;
}
.outcomes-section .container {
  position: relative;
  z-index: 1;
}
.outcomes-section .section-title { color: #fff; }
.outcomes-section .section-title::after { background: var(--accent-light); }
.outcomes-section .section-subtitle { color: rgba(255,255,255,0.8); }
.outcomes-section .outcome-card {
  background: rgba(255,248,238,0.12);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
}
.outcomes-section .outcome-card h3 { color: #fff; }
.outcomes-section .outcome-card p { color: rgba(255,255,255,0.75); }
.outcomes-section .outcome-num { color: rgba(255,255,255,0.15); }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.outcome-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.outcome-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.outcome-num {
  display: none;
}

.outcome-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.outcome-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .outcomes-grid { grid-template-columns: 1fr; }
}

/* ========================
   GALLERY
   ======================== */

.gallery-section { background: var(--bg2); overflow: hidden; }

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.gallery-header .section-title { margin-bottom: 0; }

.gallery-tabs {
  display: flex;
  gap: 0.75rem;
}

.gallery-tab {
  padding: 0.55rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--border-strong);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-tab.active,
.gallery-tab:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-pane {
  display: none !important;
}

.gallery-pane.active {
  display: flex !important;
}

.gallery-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  cursor: grab;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

.gallery-grid:active { cursor: grabbing; }

.gallery-grid::-webkit-scrollbar { height: 4px; }
.gallery-grid::-webkit-scrollbar-track { background: var(--border); border-radius: 2px; }
.gallery-grid::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
.gallery-grid { scrollbar-width: thin; scrollbar-color: var(--accent) var(--border); }

.gallery-item {
  flex: 0 0 340px;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  cursor: pointer;
  background: var(--border);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  pointer-events: none;
}

.gallery-item:hover img { transform: scale(1.18); }

.gallery-grid.dragging { cursor: grabbing; scroll-snap-type: none; }

/* ========================
   LIGHTBOX
   ======================== */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 18, 8, 0.92);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: min(90vw, 900px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  cursor: default;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  background: none; border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.5rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

@media (max-width: 600px) {
  .gallery-item { flex: 0 0 260px; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* ========================
   INSTALLMENT
   ======================== */

.installment-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.installment-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.installment-text-block p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 1.75rem;
}

.installment-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.installment-fact {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.installment-fact strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.installment-fact span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.installment-footnote-inline {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.installment-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.installment-visual img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* ========================
   FAQ
   ======================== */

.faq-section { background: var(--bg); padding-top: 2.5rem; padding-bottom: 2.5rem; }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] { border-color: var(--border-strong); }

.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 1rem;
}

/* ========================
   CTA
   ======================== */

.cta-section {
  background: linear-gradient(135deg, #3a2a18 0%, #5a3e22 50%, #3d2910 100%);
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
      radial-gradient(ellipse 70% 80% at 30% 50%, rgba(var(--accent-rgb),0.18) 0%, transparent 60%),
      radial-gradient(circle at 80% 20%, rgba(122,158,126,0.12) 0%, transparent 50%);
  pointer-events: none;
}
/* leaf decor */
.cta-section::after {
  content: '🌿';
  position: absolute;
  right: 6%;
  bottom: -10px;
  font-size: 8rem;
  opacity: 0.12;
  pointer-events: none;
  user-select: none;
}

.cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  color: #faf5ee;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.cta-subtitle {
  font-size: 1rem;
  color: rgba(250,245,238,0.7);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

/* ========================
   FOOTER
   ======================== */

.footer {
  background: #1a120a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 0 0;
  color: rgba(250,240,228,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 0;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 0.25rem;
}
.footer-desc {
  font-size: 0.78rem;
  line-height: 1.5;
  max-width: 300px;
  color: rgba(250,240,228,0.45);
}
.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(250,240,228,0.3);
  margin-bottom: 0.4rem;
}
.footer-links li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  color: rgba(250,240,228,0.6);
}
.footer-links li svg { width: 13px; height: 13px; fill: var(--accent); flex-shrink: 0; }
.footer-links a:hover { color: var(--accent-light); }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.25rem; }
.footer-links ul li a { font-size: 0.8rem; color: rgba(250,240,228,0.6); }
.footer-links ul li a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 0.5rem;
  padding: 0.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(250,240,228,0.25);
  flex-wrap: wrap;
  gap: 0.3rem;
}

.footer-dev:hover { color: var(--accent-light); }

/* ========================
   ANIMATIONS
   ======================== */

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.9s ease forwards;
}
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========================
   RESPONSIVE
   ======================== */

@media (max-width: 900px) {
  .installment-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --section-padding: 4rem 0; }
  .container { padding: 0 1.25rem; }

  .nav-logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    top: 0;
    margin-top: 0;
  }

  .nav-menu {
    position: fixed;
    top: 60px; left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(250,247,244,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: left 0.3s ease;
  }
  .nav-menu.active { left: 0; }
  .nav-menu a { font-size: 1.2rem; color: var(--text); }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px,7px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px,-6px); }

  .hero-content { padding: 2.5rem 1.25rem; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 2rem; }

  .courses-grid,
  .features-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.6rem, 11vw, 3.8rem); }
  .section-title { font-size: clamp(1.7rem, 6.5vw, 2.4rem); }
  .cta-title { font-size: clamp(2rem, 9vw, 3rem); }

  .photo-divider { height: 220px; }

  .installment-facts { grid-template-columns: 1fr; }

  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .gallery-tabs {
    width: 100%;
  }
  .gallery-tab {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .course-header { padding: 1.3rem 1.25rem; }
  .course-body { padding: 0 1.25rem 1.25rem; }
  .course-intro { padding: 22px 18px 22px 44px; }
  .course-intro-icon { top: 20px; left: 16px; }
  .course-module-details .module-title { padding: 15px 16px; gap: 0.7rem; }
  .module-icon { width: 32px; height: 32px; font-size: 1rem; }
  .module-content { margin-left: 0; padding: 0 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}