:root {
  --purple: #5B10A6;
  --purple-dark: #26064B;
  --purple-soft: #F3ECFF;
  --yellow: #FFDC1D;
  --yellow-soft: #FFF7BF;
  --ink: #14111B;
  --muted: #6E667A;
  --line: rgba(20, 17, 27, 0.12);
  --white: #FFFFFF;
  --off-white: #FAF8FF;
  --shadow: 0 24px 80px rgba(38, 6, 75, 0.18);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
  --header-height: 82px;
  font-synthesis-weight: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(255, 220, 29, 0.20), transparent 34rem), var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  z-index: 1000;
  background: var(--purple);
  color: white;
  padding: 10px 14px;
  border-radius: 12px;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section { padding: 104px 0; }
.section-heading { max-width: 620px; }
.section-heading.center { text-align: center; margin: 0 auto 44px; }
.section-heading h2,
.hero h1,
.cta-card h2,
.gallery-copy h2,
.safety-grid h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.section-heading h2,
.gallery-copy h2,
.safety-grid h2,
.cta-card h2 { font-size: clamp(2.1rem, 5vw, 4.4rem); }
.section-heading p,
.gallery-copy p,
.safety-copy p,
.cta-card p { color: var(--muted); font-size: 1.05rem; }

.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--purple);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}
.eyebrow::before, .section-kicker::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 99px;
  background: var(--yellow);
}
.eyebrow.light { color: var(--yellow); }
.eyebrow.light::before { background: white; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(38, 6, 75, 0.10);
  backdrop-filter: blur(18px);
}
.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: var(--yellow);
  border-radius: 18px;
  font-weight: 950;
  letter-spacing: -0.08em;
  box-shadow: 0 12px 26px rgba(91, 16, 166, 0.22);
}
.brand-text strong { display: block; line-height: 1.03; font-size: 0.95rem; letter-spacing: -0.02em; }
.main-nav { display: flex; align-items: center; gap: 26px; color: var(--purple-dark); font-weight: 750; font-size: 0.94rem; }
.main-nav a { position: relative; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 99px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--purple); margin: 5px 0; border-radius: 99px; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 62px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 54px;
  align-items: center;
}
.hero h1 {
  max-width: 740px;
  font-size: clamp(3.1rem, 7.4vw, 6.8rem);
  color: var(--purple-dark);
}
.hero-lead { max-width: 670px; font-size: clamp(1.08rem, 2vw, 1.32rem); color: var(--muted); margin: 26px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--purple); color: white; box-shadow: 0 18px 38px rgba(91, 16, 166, 0.26); }
.btn-secondary { background: white; color: var(--purple); border-color: rgba(91, 16, 166, 0.16); box-shadow: 0 12px 30px rgba(38, 6, 75, 0.08); }
.btn-light { background: white; color: var(--purple); }
.btn-outline-light { color: white; border-color: rgba(255,255,255,0.42); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 38px 0 0;
  padding: 0;
}
.hero-stats div {
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(91, 16, 166, 0.10);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(38, 6, 75, 0.06);
}
.hero-stats dt { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; font-weight: 950; color: var(--purple); letter-spacing: -0.06em; }
.hero-stats dd { margin: 8px 0 0; color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.hero-visual { position: relative; isolation: isolate; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -28px;
  background: linear-gradient(135deg, var(--yellow), var(--purple));
  border-radius: 46px;
  transform: rotate(-2.5deg);
  z-index: -1;
  opacity: 0.95;
}
.hero-visual img {
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 42px;
  box-shadow: var(--shadow);
}
.floating-card {
  position: absolute;
  display: grid;
  gap: 4px;
  max-width: 260px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: 0 18px 45px rgba(38, 6, 75, 0.18);
  backdrop-filter: blur(12px);
}
.floating-card strong { color: var(--purple-dark); }
.floating-card span { color: var(--muted); font-size: 0.92rem; }
.card-one { left: -24px; bottom: 42px; }
.card-two { right: -28px; top: 50px; }

.intro-band { padding: 78px 0; background: var(--purple-dark); color: white; }
.intro-grid { display: grid; grid-template-columns: 0.35fr 1fr; gap: 36px; align-items: start; }
.intro-band .section-kicker { color: var(--yellow); }
.offer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.offer-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.offer-list span { color: var(--yellow); font-weight: 950; }
.offer-list p { margin: 0; color: rgba(255,255,255,0.86); }

.split-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 48px; align-items: start; }
.program-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.program-card,
.advantage-card,
.skill-card,
.contact-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 60px rgba(38, 6, 75, 0.08);
}
.program-card { padding: 28px; position: relative; overflow: hidden; }
.program-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--purple), var(--yellow)); }
.program-card h3,
.advantage-card h3,
.skill-card h3,
.contact-card h3 { margin: 0 0 12px; line-height: 1.15; letter-spacing: -0.02em; color: var(--purple-dark); }
.program-card p,
.advantage-card p,
.skill-card p,
.contact-card p { margin: 0; color: var(--muted); }
.program-card.accent-purple { background: var(--purple); color: white; }
.program-card.accent-purple h3, .program-card.accent-purple p { color: white; }
.program-card.accent-yellow { background: var(--yellow); }
.program-card.accent-yellow p { color: rgba(38,6,75,0.78); }

.dark-section {
  background: radial-gradient(circle at 82% 8%, rgba(255,220,29,0.32), transparent 24rem), var(--purple);
  color: white;
  border-radius: 42px 42px 0 0;
}
.safety-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.safety-copy { display: grid; gap: 18px; }
.safety-copy p { margin: 0; color: rgba(255,255,255,0.84); font-size: 1.14rem; }

.advantages { background: white; }
.advantages-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.advantage-card { padding: 24px; min-height: 260px; }
.advantage-card span { display: inline-flex; color: var(--purple); background: var(--yellow-soft); border-radius: 999px; padding: 5px 11px; font-weight: 950; margin-bottom: 16px; }
.advantage-card h3 { font-size: 1.08rem; }
.advantage-card p { font-size: 0.94rem; }

.gallery-section { background: linear-gradient(180deg, white, var(--off-white)); }
.gallery-grid { display: grid; grid-template-columns: 0.42fr 0.58fr; gap: 42px; align-items: center; }
.gallery-image img { border-radius: 34px; box-shadow: var(--shadow); border: 10px solid white; }

.life-skills { background: var(--off-white); }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.skill-card { padding: 34px; }
.skill-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: var(--yellow);
  font-weight: 950;
  margin-bottom: 20px;
}

.cta-section { background: var(--purple-dark); color: white; padding-bottom: 72px; }
.cta-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(91,16,166,1), rgba(38,6,75,1));
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 28px 90px rgba(0,0,0,0.20);
}
.cta-card p { color: rgba(255,255,255,0.78); max-width: 680px; }
.cta-actions { display: grid; gap: 12px; min-width: 260px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 18px; }
.contact-card { padding: 28px; background: rgba(255,255,255,0.96); }
.contact-card a { color: var(--purple); font-weight: 800; }

.site-footer { background: var(--purple-dark); color: rgba(255,255,255,0.72); border-top: 1px solid rgba(255,255,255,0.10); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0; }
.footer-inner p { margin: 0; }
.footer-inner a { color: white; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .hero-grid,
  .split-grid,
  .safety-grid,
  .gallery-grid,
  .intro-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-height) + 38px); }
  .hero-visual { max-width: 760px; }
  .advantages-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-card { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-height: 72px; }
  .container { width: min(100% - 28px, var(--container)); }
  .section { padding: 78px 0; }
  .brand-mark { width: 48px; height: 48px; border-radius: 15px; }
  .brand-text strong { font-size: 0.84rem; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 14px;
    right: 14px;
    display: grid;
    gap: 0;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 12px 10px; }
  .main-nav a::after { display: none; }
  .hero h1 { font-size: clamp(2.9rem, 15vw, 4.2rem); }
  .hero-stats,
  .program-cards,
  .skills-grid,
  .contact-grid,
  .offer-list { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .hero-visual::before { inset: -12px; border-radius: 32px; }
  .hero-visual img { border-radius: 28px; }
  .floating-card { position: static; margin-top: 12px; max-width: none; }
  .gallery-image img { border-width: 6px; border-radius: 24px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
