:root {
  --navy: #0b2559;
  --navy-dark: #071a3d;
  --gold: #d4a62a;
  --gold-light: #e4b943;
  --accent: #f5f7fa;
  --white: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(11, 37, 89, 0.1);
  --shadow: 0 24px 70px rgba(11, 37, 89, 0.16);
  --radius: 32px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: "Poppins", system-ui, sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

.arabic {
  font-family: "Cairo", system-ui, sans-serif;
}

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

.narrow {
  width: min(100% - 40px, 860px);
}

.cursor-glow {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 176px;
  height: 176px;
  pointer-events: none;
  border-radius: 999px;
  background: rgba(212, 166, 42, 0.18);
  filter: blur(42px);
  opacity: 0;
  transform: translate(-50%, -50%);
}

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 20px 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: 12px 16px;
  border-radius: 999px;
  transition: 0.45s ease;
}

.site-header.scrolled .nav-shell {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 37, 89, 0.9);
  box-shadow: 0 24px 60px rgba(7, 26, 61, 0.24);
  backdrop-filter: blur(24px);
}

.brand-link,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-link img {
  width: 48px;
  height: 48px;
}

.brand-link strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.24em;
}

.brand-link small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: 999px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 500;
  transition: 0.28s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.28s ease;
}

.nav-call:hover {
  transform: translateY(-2px);
  background: var(--gold);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: var(--white);
  transition: 0.25s ease;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: -7% 0;
  background-image: url("https://images.pexels.com/photos/6503100/pexels-photo-6503100.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1280");
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-shade,
.hero-doodle {
  position: absolute;
  inset: 0;
}

.hero-shade {
  background: linear-gradient(100deg, rgba(11, 37, 89, 0.96) 0%, rgba(11, 37, 89, 0.78) 43%, rgba(11, 37, 89, 0.25) 100%);
}

.hero-doodle {
  opacity: 0.45;
  background-image:
    radial-gradient(circle at 15% 24%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 72% 32%, rgba(212, 166, 42, 0.36) 0 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 46%, rgba(255, 255, 255, 0.09) 46% 47%, transparent 47% 100%);
  background-size: 68px 68px, 92px 92px, 180px 180px;
}

.hero-particles span {
  position: absolute;
  z-index: 3;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0.6;
  animation: particleFloat 7s ease-in-out infinite;
}

.hero-particles span:nth-child(1) { left: 12%; top: 20%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 48%; top: 14%; animation-delay: 1s; }
.hero-particles span:nth-child(3) { right: 15%; top: 27%; animation-delay: 2s; }
.hero-particles span:nth-child(4) { left: 18%; bottom: 21%; animation-delay: 0.6s; }
.hero-particles span:nth-child(5) { right: 24%; bottom: 28%; animation-delay: 1.6s; }
.hero-particles span:nth-child(6) { right: 42%; bottom: 14%; animation-delay: 2.4s; }

.floating-icon {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(18px);
  animation: iconFloat 5.8s ease-in-out infinite;
}

.icon-book { left: 8%; top: 24%; }
.icon-pen { right: 10%; top: 28%; animation-delay: 0.4s; }
.icon-calc { left: 14%; bottom: 19%; animation-delay: 0.8s; }
.icon-robot { right: 16%; bottom: 18%; animation-delay: 1.1s; }

.hero-content {
  position: relative;
  z-index: 10;
  padding: 140px 0 100px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-brand img {
  width: 80px;
  height: 80px;
}

.hero-brand p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.hero-brand span {
  display: block;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  font-weight: 700;
}

.hero h1 {
  max-width: 1050px;
  margin: 0;
  letter-spacing: -0.07em;
}

.hero h1 span {
  display: block;
  color: var(--gold);
  font-size: clamp(52px, 10vw, 124px);
  font-weight: 700;
  line-height: 0.95;
}

.hero h1 strong {
  display: block;
  margin-top: 18px;
  color: var(--white);
  font-size: clamp(30px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-arabic {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--white);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.55;
}

.hero-copy {
  max-width: 670px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 800;
  transition: 0.28s ease;
}

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

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 18px 45px rgba(212, 166, 42, 0.3);
}

.btn-gold:hover {
  background: var(--gold-light);
}

.btn-glass {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.scroll-cue {
  position: absolute;
  z-index: 10;
  bottom: 32px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-cue span {
  display: flex;
  justify-content: center;
  width: 24px;
  height: 40px;
  padding-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.scroll-cue i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--gold);
  animation: scrollDot 1.8s ease-in-out infinite;
}

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72svh;
  overflow: hidden;
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.programs-hero {
  background-image: url("https://images.pexels.com/photos/6502822/pexels-photo-6502822.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1200");
}

.academy-hero {
  background-image: url("https://images.pexels.com/photos/7869084/pexels-photo-7869084.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1200");
}

.contact-hero {
  background-image: url("https://images.pexels.com/photos/2982449/pexels-photo-2982449.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1200");
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 37, 89, 0.96) 0%, rgba(11, 37, 89, 0.78) 48%, rgba(11, 37, 89, 0.32) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 4;
  padding: 150px 0 90px;
}

.page-hero-content p {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.page-hero-content h1 {
  max-width: 940px;
  margin: 0;
  color: var(--white);
  font-size: clamp(44px, 7vw, 86px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.page-hero-content > span {
  display: block;
  max-width: 710px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 20px;
  line-height: 1.75;
}

.stats-section {
  padding: 80px 0 96px;
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid article {
  padding: 44px 20px;
  text-align: center;
}

.stats-grid article + article {
  border-left: 1px solid var(--line);
}

.stats-grid strong {
  display: block;
  color: var(--navy);
  font-size: clamp(48px, 6vw, 66px);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.stats-grid span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section {
  padding: 112px 0;
  background: var(--white);
}

.section-soft {
  background: var(--accent);
}

.section-heading {
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}

.section-heading p,
.life-copy p,
.registration-copy p {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.section-heading h2,
.life-copy h2,
.registration-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.section-heading span,
.life-copy span,
.registration-copy span {
  display: block;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.advantage-grid,
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 64px;
}

.advantage-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(11, 37, 89, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 30px;
  transition: 0.3s ease;
}

.advantage-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--navy), var(--gold), var(--navy));
  opacity: 0;
  transition: 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 166, 42, 0.62);
  background: var(--white);
}

.advantage-card:hover::before {
  opacity: 1;
}

.advantage-card div {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border-radius: 18px;
  background: var(--navy);
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: 0.3s ease;
}

.advantage-card:hover div {
  transform: rotate(3deg) scale(1.1);
}

.advantage-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.advantage-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.program-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
  transition: 0.35s ease;
}

.program-card::after {
  position: absolute;
  z-index: 2;
  top: -20%;
  left: -80%;
  width: 48%;
  height: 140%;
  content: "";
  transform: rotate(12deg);
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transition: left 0.75s ease;
}

.program-card:hover {
  transform: translateY(-10px);
}

.program-card:hover::after {
  left: 130%;
}

.program-card img {
  width: 100%;
  height: 256px;
  object-fit: cover;
  transition: 0.75s ease;
}

.program-card:hover img {
  transform: scale(1.1);
}

.program-body {
  position: relative;
  z-index: 3;
  min-height: 280px;
  padding: 28px;
}

.program-body::before {
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: -130px;
  height: 130px;
  content: "";
  background: linear-gradient(to top, var(--navy), rgba(11, 37, 89, 0.35), transparent);
}

.program-icon {
  position: absolute;
  top: -52px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--white);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(7, 26, 61, 0.22);
}

.program-body p {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 18px;
  font-weight: 800;
  text-align: right;
}

.program-body h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.program-body small {
  display: block;
  min-height: 96px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.7;
}

.program-body a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 24px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  transition: 0.25s ease;
}

.program-body a:hover {
  transform: scale(1.1);
}

.gallery-grid {
  column-count: 3;
  column-gap: 20px;
  margin-top: 64px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: 0 20px 55px rgba(11, 37, 89, 0.14);
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: 0.75s ease;
}

.gallery-item.tall img {
  height: 420px;
}

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

.gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(11, 37, 89, 0.85), transparent 60%);
}

.gallery-item span {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  color: var(--white);
  font-size: 19px;
  font-weight: 800;
  text-align: left;
}

.life-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background: var(--navy);
  color: var(--white);
}

.life-bg {
  position: absolute;
  inset: -8% 0;
  background-image: linear-gradient(90deg, rgba(11, 37, 89, 0.96), rgba(11, 37, 89, 0.82)), url("https://images.pexels.com/photos/7869084/pexels-photo-7869084.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1600&h=1050");
  background-size: cover;
  background-position: center;
  opacity: 1;
  will-change: transform;
}

.life-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: start;
}

.life-copy h2,
.registration-copy h2 {
  color: var(--white);
}

.life-copy span,
.registration-copy span {
  color: rgba(255, 255, 255, 0.72);
}

.timeline {
  position: relative;
  display: grid;
  gap: 34px;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 24px;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.18);
}

.timeline article {
  position: relative;
  padding-left: 80px;
}

.timeline b {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(212, 166, 42, 0.5);
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.05);
}

.timeline h3 {
  margin: 0;
  color: var(--white);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.timeline p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}

.testimonial-window {
  position: relative;
  margin-top: 64px;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 22px;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 calc((100% - 44px) / 3);
  min-height: 355px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 30px;
  box-shadow: 0 24px 60px rgba(11, 37, 89, 0.1);
}

.testimonial-card small {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.testimonial-card p {
  margin: 28px 0 32px;
  color: #334155;
  font-size: 18px;
  line-height: 1.75;
}

.testimonial-card strong {
  display: block;
  color: var(--navy);
}

.testimonial-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
}

.testimonial-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 37, 89, 0.24);
  transition: 0.25s ease;
}

.testimonial-dots button.active {
  width: 34px;
  background: var(--gold);
}

.location-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  margin-top: 64px;
}

.map-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(11, 37, 89, 0.12);
}

.map-shell iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}

.location-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  padding: 34px;
  box-shadow: 0 24px 70px rgba(11, 37, 89, 0.18);
}

.pin {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--gold);
  color: var(--navy);
  font-size: 28px;
  font-weight: 800;
}

.location-card h3 {
  margin: 28px 0 0;
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.location-card p.arabic {
  margin: 20px 0 0;
  color: var(--gold);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.7;
  text-align: right;
}

.location-card ul,
.registration-copy ul {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.76);
  list-style: none;
}

.location-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.location-actions a {
  display: flex;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 12px 14px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  transition: 0.25s ease;
}

.location-actions a:first-child {
  border-color: transparent;
  background: var(--white);
  color: var(--navy);
}

.location-actions a:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.faq-list {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 26px 0;
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
  text-align: left;
  letter-spacing: -0.02em;
}

.faq-item button span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--accent);
  transition: 0.25s ease;
}

.faq-item.open button span {
  transform: rotate(180deg);
}

.faq-item div {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.open div {
  grid-template-rows: 1fr;
}

.faq-item div > p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.faq-item.open div > p {
  padding-bottom: 28px;
}

.registration-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background: radial-gradient(circle at 85% 15%, rgba(212, 166, 42, 0.24), transparent 28%), radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.12), transparent 30%), var(--navy);
  color: var(--white);
}

.registration-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 60px;
  align-items: start;
}

.registration-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  padding: 34px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.registration-form label {
  display: grid;
  gap: 8px;
}

.registration-form label.wide,
.registration-form button,
.form-success {
  grid-column: 1 / -1;
}

.registration-form span {
  font-size: 14px;
  font-weight: 800;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
  width: 100%;
  border: 1px solid rgba(11, 37, 89, 0.12);
  border-radius: 18px;
  outline: 0;
  background: var(--accent);
  color: var(--navy);
  padding: 16px;
  transition: 0.2s ease;
}

.registration-form textarea {
  resize: vertical;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212, 166, 42, 0.16);
}

.registration-form button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 800;
  transition: 0.25s ease;
}

.registration-form button:hover {
  transform: translateY(-4px);
  background: #12336f;
}

.form-success {
  display: none;
  margin: 0;
  border-radius: 18px;
  background: rgba(212, 166, 42, 0.16);
  color: var(--navy);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
}

.form-success.show {
  display: block;
}

.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 58px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 48px;
}

.footer-brand img {
  width: 64px;
  height: 64px;
}

.footer-brand strong {
  display: block;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.footer-brand small {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-weight: 800;
  text-align: right;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.66);
}

.footer p {
  max-width: 460px;
  line-height: 1.75;
}

.footer h3 {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer-grid > div:nth-child(n + 2) a {
  display: block;
  margin-top: 12px;
}

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

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.footer-bottom {
  margin-top: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

.lightbox {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 37, 89, 0.92);
  padding: 24px;
  backdrop-filter: blur(18px);
}

.lightbox.open {
  display: flex;
}

.lightbox button {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: 30px;
  line-height: 1;
}

.lightbox img {
  width: min(100%, 1000px);
  max-height: 82vh;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

@keyframes particleFloat {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.6; }
  50% { transform: translate3d(18px, -24px, 0); opacity: 1; }
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(14px); opacity: 0.25; }
}

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

  .life-grid,
  .location-grid,
  .registration-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    flex-basis: calc((100% - 22px) / 2);
  }
}

@media (max-width: 820px) {
  .container,
  .narrow {
    width: min(100% - 32px, 1220px);
  }

  .site-header {
    padding-inline: 12px;
  }

  .nav-shell {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(11, 37, 89, 0.9);
    backdrop-filter: blur(24px);
  }

  .nav-links {
    position: fixed;
    top: 86px;
    left: 12px;
    right: 12px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: rgba(11, 37, 89, 0.96);
    box-shadow: 0 24px 60px rgba(7, 26, 61, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px) scale(0.98);
    transition: 0.25s ease;
  }

  .menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav-links a {
    padding: 14px 16px;
  }

  .nav-call {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .brand-link span {
    display: none;
  }

  .hero-content {
    padding: 126px 0 82px;
  }

  .hero-brand img {
    width: 66px;
    height: 66px;
  }

  .hero h1 span {
    font-size: clamp(46px, 14vw, 72px);
  }

  .hero h1 strong {
    font-size: clamp(28px, 9vw, 42px);
  }

  .page-hero {
    min-height: 64svh;
  }

  .page-hero-content {
    padding: 126px 0 70px;
  }

  .page-hero-content h1 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .floating-icon,
  .scroll-cue,
  .cursor-glow {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid article:nth-child(odd) {
    border-left: 0;
  }

  .stats-grid article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .section,
  .life-section,
  .registration-section {
    padding: 86px 0;
  }

  .advantage-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    column-count: 1;
  }

  .testimonial-card {
    flex-basis: 100%;
  }

  .registration-form {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .location-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-brand {
    align-items: flex-start;
  }

  .hero-brand p {
    letter-spacing: 0.22em;
  }

  .cta-row,
  .cta-row .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid article,
  .stats-grid article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stats-grid article:first-child {
    border-top: 0;
  }

  .timeline article {
    padding-left: 66px;
  }
}

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