@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  --bg: #ffffff;
  --fg: hsl(30, 10%, 15%);
  --fg-muted: hsl(30, 8%, 50%);
  --secondary: hsl(45, 30%, 96%);
  --border: hsl(40, 20%, 90%);
  --primary: hsl(43, 96%, 56%);
  --primary-fg: hsl(30, 10%, 10%);
  --warm-50: hsl(48, 60%, 97%);
  --warm-100: hsl(46, 55%, 93%);
  --warm-200: hsl(44, 50%, 86%);
  --warm-400: hsl(43, 80%, 62%);
  --warm-500: hsl(43, 96%, 56%);
  --warm-600: hsl(38, 90%, 50%);
  --radius: 1rem;
  --font-display: 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --purple: hsl(258, 60%, 56%);
  --purple-light: hsl(258, 65%, 95%);
  --purple-icon: hsl(258, 55%, 50%);
  --shadow-card: 0 4px 30px -6px hsl(30 20% 20% / .08);
  --shadow-elevated: 0 8px 40px -8px hsl(30 20% 20% / .12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--fg);
  background:
    radial-gradient(circle at 20% 30%, rgba(200,180,255,0.25), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(150,210,255,0.25), transparent 40%),
    linear-gradient(135deg, #f7f7fb 0%, #eef1f8 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: hsl(0 0% 100% / .75);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid hsl(0 0% 90% / .5);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 1px 8px hsl(0 0% 0% / .06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 1rem; min-height: 4rem; }
@media (min-width: 768px) { .header-inner { height: 5rem; min-height: unset; flex-wrap: nowrap; } }
.logo { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--fg); letter-spacing: -.02em; max-width: min(100%, 11rem); line-height: 1.2; }
@media (min-width: 400px) { .logo { font-size: 1.15rem; max-width: none; } }
@media (min-width: 768px) { .logo { font-size: 1.5rem; } }

.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}
@media (min-width: 768px) { .desktop-nav { flex-wrap: nowrap; gap: 2rem; } }
.desktop-nav a { font-size: .8125rem; font-weight: 500; color: var(--fg-muted); transition: color .2s; line-height: 1.3; }
@media (min-width: 480px) { .desktop-nav a { white-space: nowrap; } }
@media (min-width: 768px) { .desktop-nav a { font-size: .875rem; } }
.desktop-nav a:hover, .desktop-nav a.active { color: var(--fg); }

.burger { display: none !important; }
.mobile-menu { display: none !important; }

/* До ответа API пункты «Портфолио» / «Авторские курсы» скрыты — без мигания, если раздел отключён */
html:not(.site-public-ready) body[data-site-page] .site-header .desktop-nav a[href*="portfolio.html"],
html:not(.site-public-ready) body[data-site-page] .site-header .desktop-nav a[href*="courses.html"],
html:not(.site-public-ready) body[data-site-page] .site-footer .footer-nav a[href*="portfolio.html"],
html:not(.site-public-ready) body[data-site-page] .site-footer .footer-nav a[href*="courses.html"] {
  display: none;
}

@media (max-width: 767px) {
  .site-header .logo {
    display: none;
  }
  .site-header .header-inner {
    justify-content: flex-end;
  }
}

.page-section { padding: 1.75rem 0; }
@media (min-width: 768px) { .page-section { padding: 2.5rem 0; } }
.section-title { font-family: var(--font-display); font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.02em; margin-bottom: 1rem; }
.section-subtitle { font-size: 1rem; color: var(--fg-muted); max-width: 40rem; }
@media (min-width: 768px) { .section-subtitle { font-size: 1.125rem; } }
.section-header { margin-bottom: 1rem; }

.glass-card {
  border-radius: 1.25rem; padding: 1.75rem;
  background: #ffffff;
  border: 1px solid hsl(0 0% 93%);
  box-shadow: 0 1px 4px hsl(0 0% 0% / .04), 0 4px 20px hsl(0 0% 0% / .06);
  transition: box-shadow .4s ease, transform .4s ease;
}
.glass-card:hover { box-shadow: 0 8px 24px hsl(0 0% 0% / .08), 0 16px 48px hsl(0 0% 0% / .12); transform: translateY(-8px); }

/* Админ-панель: без «парящих» карточек при наведении */
.admin-page .glass-card:hover,
.admin-page .gradient-card:hover {
  transform: none;
  box-shadow: 0 1px 4px hsl(0 0% 0% / .04), 0 4px 20px hsl(0 0% 0% / .06);
}
.admin-page .glass-card.color-yellow:hover,
.admin-page .glass-card.color-blue:hover {
  box-shadow: 0 1px 4px hsl(0 0% 0% / .04), 0 4px 20px hsl(0 0% 0% / .06);
}
.admin-page .btn-primary:hover { transform: none; opacity: .92; }
@media (min-width: 768px) { .glass-card { padding: 2.25rem; } }

.gradient-card {
  border-radius: var(--radius); padding: 1.5rem;
  background: linear-gradient(135deg, hsl(45 40% 97%), hsl(43 35% 94%));
  border: 1px solid hsl(40 20% 88%);
  box-shadow: 0 2px 12px hsl(30 15% 20% / .07), 0 6px 24px hsl(30 15% 20% / .05);
  transition: box-shadow .3s, transform .3s;
}
.gradient-card:hover { box-shadow: 0 4px 16px hsl(30 15% 20% / .1), 0 10px 32px hsl(30 15% 20% / .07); transform: translateY(-2px); }
@media (min-width: 768px) { .gradient-card { padding: 2rem; } }

.color-blue { background: #fff; }
.color-pink { background: #fff; }
.color-green { background: #fff; }
.color-yellow { background: #fff; }
.color-purple { background: #fff; }
.color-mint { background: #fff; }

/* Card icon */
.card-icon-wrap {
  width: 3rem; height: 3rem; border-radius: .75rem;
  background: var(--purple-light); color: var(--purple-icon);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto .75rem;
}
.card-icon-wrap svg { width: 22px; height: 22px; }

.hero { display: flex; align-items: center; padding: 6rem 0 2.5rem; }
@media (min-width: 768px) { .hero { padding: 7rem 0 3rem; } }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 3vw, 4rem);
    align-items: center;
  }
}
.hero-label { font-size: .9375rem; font-weight: 500; text-transform: uppercase; letter-spacing: .15em; color: var(--fg-muted); margin-bottom: 1rem; }
.hero-name { font-family: var(--font-display); font-size: clamp(1.75rem, 3.8vw, 2.75rem); font-weight: 700; line-height: 1.15; margin-bottom: 1.5rem; white-space: nowrap; }
.hero-desc { font-size: 1.0625rem; color: var(--fg-muted); max-width: 32rem; margin-bottom: 2rem; line-height: 1.7; }
@media (min-width: 768px) { .hero-desc { font-size: 1.1875rem; } }
@media (min-width: 768px) { .hero-label { font-size: 1rem; } }
.hero-photo-wrap { display: flex; justify-content: center; }
@media (min-width: 768px) {
  .hero-photo-wrap { justify-content: flex-end; order: 2; }
}
.hero-photo-frame { position: relative; width: 18rem; }
@media (min-width: 768px) { .hero-photo-frame { width: 22rem; } }
@media (min-width: 1024px) { .hero-photo-frame { width: 26rem; } }
.hero-photo {
  position: relative; border-radius: 1.5rem; width: 100%; aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 12px 32px hsl(0 0% 0% / .1);
  transition: transform .4s ease, box-shadow .4s ease;
}
.hero-photo-frame:hover .hero-photo {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px hsl(0 0% 0% / .15);
}
.hero-photo-placeholder { position: relative; border-radius: 1.5rem; width: 100%; aspect-ratio: 3/4; background: var(--secondary); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 3rem; color: var(--warm-400); }

.btn-primary { display: inline-flex; align-items: center; padding: 1rem 2rem; border-radius: .75rem; background: var(--purple); color: #fff; font-size: .9375rem; font-weight: 500; border: none; transition: opacity .2s, transform .2s; }
.btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { display: inline-flex; align-items: center; gap: .5rem; padding: .625rem 1.25rem; border-radius: .75rem; border: 1px solid var(--border); background: transparent; font-size: .875rem; font-weight: 500; color: var(--fg); transition: background .2s; }
.btn-outline:hover { background: var(--secondary); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.stats-grid > .glass-card {
  min-width: 0;
  width: 100%;
}
.stats-grid .stat-label {
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
}
@media (min-width: 1024px) { .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; } }
.stat-number {
  font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; margin-bottom: .5rem;
  color: var(--purple);
}
.stat-label { font-size: .9375rem; color: var(--fg-muted); line-height: 1.5; }

.bento-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
@media (min-width: 768px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1024px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .bento-wide { grid-column: span 2; }
  .bento-tall { grid-row: span 2; }
}
.bento-label {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 600;
  margin-bottom: 1rem; color: var(--fg);
}
.bento-label svg { color: var(--purple); flex-shrink: 0; }
.edu-block-title {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700; margin-bottom: .375rem;
}
.edu-block-sub {
  font-size: 1.0625rem; color: var(--fg-muted); margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .edu-block-sub { font-size: 1.25rem; } }
@media (min-width: 1024px) { .edu-block-sub { font-size: 1.375rem; } }
.bento-list {
  list-style: none; padding: 0; display: flex; flex-direction: column; gap: .625rem;
}
.bento-list li {
  font-size: 1.0625rem; line-height: 1.7; padding-left: 1.5rem; position: relative;
}
.bento-list li::before {
  content: ''; position: absolute; left: 0; top: .6em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--purple);
}
@media (min-width: 768px) { .bento-list li { font-size: 1.25rem; } }
@media (min-width: 1024px) { .bento-list li { font-size: 1.375rem; } }

.edu-list { display: flex; flex-direction: column; gap: .75rem; }
.edu-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; border-radius: .75rem; transition: background .2s; }
.edu-item:hover { background: hsl(45 30% 96% / .5); }
.edu-icon { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: .5rem; background: var(--secondary); display: flex; align-items: center; justify-content: center; color: var(--warm-600); }
.edu-icon svg { width: 18px; height: 18px; }
.edu-text { font-size: .875rem; padding-top: .5rem; line-height: 1.5; }
@media (min-width: 768px) { .edu-text { font-size: 1rem; } }

.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: .5rem; background: var(--secondary); font-size: .875rem; font-weight: 500; }
.badge svg { width: 16px; height: 16px; color: var(--warm-600); }

.cases-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .cases-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 1024px) { .cases-grid { grid-template-columns: repeat(3, 1fr); } }
.case-card { display: flex; flex-direction: column; }
.case-thumb { width: 100%; aspect-ratio: 4/3; border-radius: .75rem; background: var(--secondary); margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; }
.case-thumb span { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: hsl(258, 50%, 80%); }
.case-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: .75rem; flex: 1; }
@media (min-width: 768px) { .case-title { font-size: 1.375rem; } }
.case-link { font-size: .875rem; font-weight: 500; color: var(--purple); transition: color .2s; }
.case-link:hover { color: hsl(258, 60%, 45%); }

.services-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.service-card { display: flex; flex-direction: column; justify-content: space-between; }
.service-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; line-height: 1.3; }
@media (min-width: 768px) { .service-title { font-size: 1.5rem; } }
.service-price { font-size: .875rem; color: var(--fg-muted); }
.service-price strong { color: var(--fg); }

.training-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .training-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.program-block { margin-bottom: 1.5rem; }
.program-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--fg-muted); margin-bottom: .75rem; }
.feature-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.feature-row svg { width: 16px; height: 16px; color: var(--warm-500); flex-shrink: 0; }
.feature-row span { font-size: .875rem; }
.prices-row { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.price-item { flex: 1; min-width: 10rem; }
.price-item small { font-size: .75rem; color: var(--fg-muted); }
.price-item p { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .375rem; }
.form-group input, .form-group textarea { width: 100%; padding: .75rem 1rem; border-radius: .75rem; border: 1px solid var(--border); background: var(--bg); font-size: .875rem; font-family: var(--font-body); color: var(--fg); transition: box-shadow .2s; outline: none; }
.form-group input:focus, .form-group textarea:focus { box-shadow: 0 0 0 2px var(--purple); }
.success-msg { text-align: center; padding: 3rem 0; }
.success-msg svg { margin: 0 auto 1rem; color: var(--purple); }
.success-msg h4 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; }
.success-msg p { font-size: .875rem; color: var(--fg-muted); }
.success-msg button { margin-top: 1rem; background: none; border: none; font-size: .875rem; color: var(--purple); transition: color .2s; }
.success-msg button:hover { color: hsl(258, 60%, 45%); }

.contacts-grid { display: grid; gap: 1rem; max-width: 48rem; }
@media (min-width: 768px) { .contacts-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.contact-card { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { flex-shrink: 0; width: 3rem; height: 3rem; border-radius: .75rem; background: var(--purple-light); display: flex; align-items: center; justify-content: center; color: var(--purple-icon); }
.contact-icon svg { width: 20px; height: 20px; }
.contact-label { font-size: .8125rem; color: var(--fg-muted); margin-bottom: .25rem; }
.contact-value { font-size: 1rem; font-weight: 600; }
.socials { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.admin-link { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.admin-link button { background: none; border: none; font-size: .75rem; color: var(--fg-muted); transition: color .2s; }
.admin-link button:hover { color: var(--fg); }

.gallery-section { margin-top: 2rem; }
.gallery-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; } }
.gallery-item { position: relative; border-radius: .75rem; overflow: hidden; aspect-ratio: 1; cursor: pointer; background: var(--secondary); }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .play-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: hsl(0 0% 0% / .3); }
.gallery-item .play-icon svg { width: 48px; height: 48px; color: #fff; }
.gallery-empty { padding: 2rem; text-align: center; color: var(--fg-muted); border: 2px dashed var(--border); border-radius: var(--radius); }
.gallery-upload { margin-top: 1.5rem; padding: 1.5rem; border: 2px dashed var(--border); border-radius: var(--radius); text-align: center; }
.gallery-upload.drag-over { border-color: var(--purple); background: hsl(258 60% 56% / .05); }
.gallery-upload p { font-size: .875rem; color: var(--fg-muted); margin-bottom: 1rem; }
.upload-controls { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; align-items: center; }
.upload-controls input[type="file"] { display: none; }
.upload-controls label { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1.25rem; border-radius: .5rem; cursor: pointer; background: var(--secondary); font-size: .875rem; font-weight: 500; transition: background .2s; }
.upload-controls label:hover { background: var(--warm-100); }
.upload-pwd { padding: .5rem .75rem; border-radius: .5rem; border: 1px solid var(--border); font-size: .875rem; font-family: var(--font-body); outline: none; width: 10rem; }
.upload-pwd:focus { box-shadow: 0 0 0 2px var(--purple); }
.upload-status { margin-top: .75rem; font-size: .75rem; color: var(--fg-muted); }
.upload-status.error { color: hsl(0, 70%, 55%); }

.lightbox { display: none; position: fixed; inset: 0; z-index: 200; background: hsl(0 0% 0% / .92); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox-content img, .lightbox-content video { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: .5rem; }
.lightbox-close { position: absolute; top: -3rem; right: 0; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: hsl(0 0% 100% / .15); border: none; color: #fff; font-size: 1.5rem; padding: .75rem 1rem; border-radius: .5rem; cursor: pointer; transition: background .2s; }
.lightbox-prev:hover, .lightbox-next:hover { background: hsl(0 0% 100% / .3); }
.lightbox-prev { left: -4rem; }
.lightbox-next { right: -4rem; }
@media (max-width: 767px) { .lightbox-prev { left: .5rem; } .lightbox-next { right: .5rem; } }
.lightbox-counter { position: absolute; bottom: -2rem; left: 50%; transform: translateX(-50%); color: hsl(0 0% 100% / .7); font-size: .875rem; }

/* ───── Course page ───── */
.course-hero-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 600; margin-bottom: .75rem; }
.course-hero-desc { color: var(--fg-muted); line-height: 1.7; margin-bottom: 1rem; font-size: 1rem; }
.course-date { font-size: .9375rem; font-weight: 600; color: var(--purple); }
.course-date:empty { display: none; }

.course-slider-wrap { position: relative; }
.course-slider { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--secondary); min-height: 12rem; }
.slider-track { display: flex; transition: transform .4s ease; }
.slider-track img, .slider-track video { flex-shrink: 0; width: 100%; height: 24rem; object-fit: cover; }
@media (min-width: 768px) { .slider-track img, .slider-track video { height: 32rem; } }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  background: hsl(0 0% 100% / .8); border: none; color: var(--fg);
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: var(--shadow-card); transition: background .2s;
}
.slider-arrow:hover { background: #fff; }
.slider-prev { left: .75rem; }
.slider-next { right: .75rem; }
.slider-dots { display: flex; justify-content: center; gap: .375rem; margin-top: .75rem; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer; padding: 0;
  transition: background .2s;
}
.slider-dot.active { background: var(--purple); }
.course-slider-wrap:empty, .course-slider-wrap:has(.slider-track:empty) { display: none; }

/* Program sections */
.prog-container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 768px) { .prog-container { padding: 0 2rem; } }

.prog-hero { padding: 5rem 0 3rem; text-align: center; }
.prog-hero-heading {
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700; letter-spacing: -.02em; margin-bottom: 1rem; color: var(--fg);
}
.prog-hero-sub {
  font-size: clamp(.9375rem, 1.5vw, 1.125rem); color: var(--fg-muted);
  max-width: 44rem; margin: 0 auto; line-height: 1.7;
}

.prog-section { padding: 0 0 3rem; }

/* Accordion */
.accordion { display: flex; flex-direction: column; gap: 1.5rem; }
.accordion-item {
  background: #fff; border-radius: 1rem;
  box-shadow: 0 2px 16px hsl(30 15% 20% / .06), 0 4px 24px hsl(30 15% 20% / .04);
  overflow: hidden; border: 1px solid hsl(0 0% 92%);
}
.accordion-header {
  width: 100%; display: flex; align-items: center; gap: 1rem;
  padding: 1.5rem 2rem; background: none; border: none; text-align: left;
  cursor: pointer; transition: background .2s;
}
@media (max-width: 767px) { .accordion-header { padding: 1.25rem 1.25rem; gap: .75rem; } }
.accordion-header:hover { background: hsl(0 0% 98%); }
.accordion-num {
  flex-shrink: 0; font-family: var(--font-display); font-size: 1.125rem;
  font-weight: 700; color: var(--purple); min-width: 2rem;
}
.accordion-title {
  flex: 1; font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600; color: var(--fg); line-height: 1.35;
}
.accordion-icon {
  flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%;
  background: hsl(0 0% 96%); display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 300; color: var(--fg-muted);
  transition: transform .3s ease-in-out, background .2s;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); background: var(--purple-light); color: var(--purple); }
.accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease-in-out, padding .3s ease-in-out;
  padding: 0 2rem;
}
@media (max-width: 767px) { .accordion-body { padding: 0 1.25rem; } }
.accordion-item.open .accordion-body { padding: 1rem 2rem 1.5rem; }
@media (max-width: 767px) { .accordion-item.open .accordion-body { padding: .75rem 1.25rem 1.25rem; } }

/* Program lists */
.prog-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .625rem; }
.prog-list li {
  font-size: .9375rem; line-height: 1.7; padding-left: 1.5rem; position: relative; color: var(--fg);
}
.prog-list li::before {
  content: ''; position: absolute; left: 0; top: .65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--purple);
}
@media (min-width: 768px) { .prog-list li { font-size: 1rem; } }
.prog-list--nested { padding-left: 1rem; }
.prog-list--nested li::before { width: 5px; height: 5px; background: var(--fg-muted); }
.prog-sub-heading { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; margin-bottom: .75rem; }

/* Program cards */
.prog-card {
  background: #fff; border-radius: 1rem; padding: 2.5rem 2.5rem 3rem;
  box-shadow: 0 2px 16px hsl(30 15% 20% / .06), 0 4px 24px hsl(30 15% 20% / .04);
  border: 1px solid hsl(0 0% 92%);
}
@media (max-width: 767px) { .prog-card { padding: 1.5rem 1.25rem 2.5rem; } }
.prog-card--accent { background: hsl(43, 50%, 97%); border-color: hsl(43, 30%, 90%); }
.prog-card-title {
  font-family: var(--font-display); font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 600; margin-bottom: 1rem;
}
.prog-card-text { color: var(--fg-muted); line-height: 1.7; margin-bottom: 1.5rem; font-size: .9375rem; }
@media (min-width: 768px) { .prog-card-text { font-size: 1rem; } }
.prog-card-subtitle {
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600;
  margin-bottom: .75rem; color: var(--fg);
}

/* Scale grid (block 4) */
.scale-grid { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
@media (min-width: 768px) { .scale-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.scale-item { text-align: center; }
.scale-number {
  display: block; font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700; line-height: 1.1; margin-bottom: .375rem;
  color: var(--purple);
}
.scale-number--text { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
.scale-label { font-size: .9375rem; color: var(--fg-muted); line-height: 1.5; }

.prog-list--cases { columns: 1; }
@media (min-width: 768px) { .prog-list--cases { columns: 2; column-gap: 3rem; } }
.prog-list--cases li { break-inside: avoid; }

/* ───── Case modal ───── */
.case-modal { display: none; position: fixed; inset: 0; z-index: 150; align-items: center; justify-content: center; }
.case-modal.open { display: flex; }
.case-modal-overlay { position: absolute; inset: 0; background: hsl(0 0% 0% / .5); }
.case-modal-body {
  position: relative; background: #fff; border-radius: var(--radius);
  padding: 2rem; max-width: 56rem; width: 90vw; max-height: 90vh;
  overflow-y: auto; box-shadow: var(--shadow-elevated); z-index: 1;
}
.case-modal-close {
  position: absolute; top: 1rem; right: 1rem; background: none;
  border: none; font-size: 1.75rem; color: var(--fg-muted); cursor: pointer;
  line-height: 1; transition: color .2s;
}
.case-modal-close:hover { color: var(--fg); }
.case-modal-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; margin-bottom: .75rem; padding-right: 2rem; }
.case-modal-desc { color: var(--fg-muted); line-height: 1.7; margin-bottom: 1.5rem; }
.case-modal-media {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem;
}

.not-found { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 5rem; }
.not-found h1 { font-family: var(--font-display); font-size: 6rem; font-weight: 700; color: var(--warm-400); }
.not-found p { color: var(--fg-muted); margin-bottom: 2rem; }

.site-footer {
  padding: 1.5rem 0; border-top: 1px solid var(--border);
  font-size: .8125rem; color: var(--fg-muted);
}
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .75rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-nav a { color: var(--fg-muted); transition: color .2s; }
.footer-nav a:hover { color: var(--fg); }

.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 300; display: flex; flex-direction: column; gap: .5rem; }
.toast { padding: .75rem 1.25rem; border-radius: .75rem; font-size: .875rem; font-weight: 500; box-shadow: var(--shadow-elevated); animation: toastIn .3s ease; color: #fff; }
.toast.success { background: hsl(150, 60%, 40%); }
.toast.error { background: hsl(0, 70%, 55%); }
@keyframes toastIn { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
