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

:root {
  --navy: #071d3a;
  --navy-2: #0d315d;
  --gold: #d2a14a;
  --gold-soft: #f4dfb8;
  --ink: #101827;
  --muted: #657086;
  --line: #dfe6f1;
  --paper: #f7f9fc;
  --white: #fff;
  --shadow: 0 18px 45px rgba(7, 29, 58, 0.16);
  --radius: 8px;
}

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

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 14px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

.navbar.scrolled,
.navbar.nav-open {
  background: rgba(7, 29, 58, 0.96);
  box-shadow: 0 10px 30px rgba(7, 29, 58, 0.16);
}

.navbar.scrolled {
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  padding: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary,
.btn-nav {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(210, 161, 74, 0.26);
}

.btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 28px;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  place-items: center;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  background: var(--white);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 118px 0 70px;
  background:
    linear-gradient(90deg, rgba(7, 29, 58, 0.98), rgba(7, 29, 58, 0.9)),
    url("assets/promo/course-types.jpg") center/cover;
}

.hero-content {
  max-width: 880px;
  min-width: 0;
  margin: 0 auto;
  text-align: center;
}

.hero-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow,
.section-tag {
  display: inline-flex;
  width: fit-content;
  color: var(--gold-soft);
  background: rgba(210, 161, 74, 0.14);
  border: 1px solid rgba(210, 161, 74, 0.28);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 18px;
  color: var(--white);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.96;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hero h1 span {
  display: block;
  margin-top: 18px;
  color: var(--gold-soft);
  font-size: clamp(1.8rem, 3.8vw, 3.4rem);
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.hero-desc {
  max-width: 620px;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-desc span {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
  max-width: 560px;
  width: 100%;
}

.hero-metrics div {
  border-top: 2px solid rgba(210, 161, 74, 0.7);
  padding: 14px 8px 0;
}

.hero-metrics strong {
  display: block;
  color: var(--white);
  font-size: 1.65rem;
  line-height: 1.1;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.media-tile,
.fee-board,
.process-board,
.feedback-main,
.feedback-rail button,
.qr-card {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-tile img,
.fee-board img,
.process-board img,
.feedback-main img,
.feedback-rail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

[data-lightbox]:hover img {
  transform: scale(1.035);
}

.trust-strip {
  background: var(--gold);
  color: var(--navy);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 18px 0;
  text-align: center;
  font-weight: 900;
}

section {
  scroll-margin-top: 88px;
}

.services,
.teachers,
.proof {
  padding: 96px 0;
}

.courses,
.process,
.contact {
  padding: 96px 0;
  background: var(--paper);
}

.section-header {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-header.align-left {
  margin-left: 0;
  text-align: left;
}

.section-header h2,
.process h2,
.contact h2 {
  margin-top: 14px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.18;
  font-weight: 900;
}

.section-desc,
.process p,
.contact p,
.feedback-copy p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1rem;
}

.service-layout,
.courses-layout,
.process-layout,
.contact-layout {
  display: grid;
  gap: 34px;
  align-items: center;
}

.service-layout {
  grid-template-columns: 0.82fr 1.18fr;
}

.service-copy {
  display: grid;
  gap: 14px;
}

.service-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-card span {
  color: var(--gold);
  font-weight: 900;
}

.service-card h3 {
  margin-top: 8px;
  color: var(--navy);
  font-size: 1.25rem;
}

.service-card p {
  margin-top: 8px;
  color: var(--muted);
}

.service-media-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-rows: repeat(2, 270px);
  gap: 16px;
}

.media-tile {
  width: 100%;
  background: #eef5ff;
}

.media-tile.tall {
  grid-row: span 2;
}

.courses-layout {
  grid-template-columns: 1fr 0.8fr;
}

.course-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.course-card {
  min-height: 205px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.course-card.featured {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.course-card p,
.course-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.course-card.featured p,
.course-card.featured span {
  color: rgba(255, 255, 255, 0.68);
}

.course-card h3 {
  margin-top: 8px;
  color: inherit;
  font-size: 1.35rem;
}

.course-card strong {
  display: block;
  margin-top: 22px;
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
}

.fee-board,
.process-board,
.feedback-main {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
}

.fee-board {
  aspect-ratio: 1.02 / 1;
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.teacher-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 22px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.teacher-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.teacher-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
  margin-bottom: 14px;
  border: 3px solid var(--line);
}

.teacher-info h3 {
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.teacher-badge {
  display: inline-block;
  padding: 3px 12px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 10px;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.teacher-tags span {
  display: inline-block;
  padding: 3px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--navy-2);
  font-weight: 600;
}

.teacher-bio {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
  text-align: left;
}

.process-layout,
.contact-layout {
  grid-template-columns: 0.85fr 1fr;
}

.process-layout .btn {
  margin-top: 28px;
}

.process-board {
  height: 620px;
}

.feedback-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 30px;
}

.feedback-main {
  height: 480px;
}

.feedback-copy {
  max-width: 600px;
}

.feedback-copy h3 {
  color: var(--navy);
  font-size: 2rem;
}

.feedback-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 250px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 6px 4px 20px;
  scroll-snap-type: inline mandatory;
}

.feedback-rail button {
  height: 350px;
  background: #eef5ff;
  border: 1px solid var(--line);
  scroll-snap-align: start;
}

.feedback-rail button:nth-child(1),
.feedback-rail button:nth-child(2) {
  height: 250px;
  align-self: center;
}

.contact {
  background: var(--navy);
}

.contact h2,
.contact p {
  color: var(--white);
}

.contact p {
  color: rgba(255, 255, 255, 0.7);
}

.qr-card {
  justify-self: end;
  width: min(360px, 100%);
  background: var(--white);
  padding: 16px;
  border: 1px solid rgba(210, 161, 74, 0.35);
}

.footer {
  background: #041326;
  color: rgba(255, 255, 255, 0.62);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(3, 11, 22, 0.86);
}

.lightbox.active {
  display: grid;
}

.lightbox img {
  max-width: min(1040px, 94vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--white);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .service-layout,
  .courses-layout,
  .process-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .qr-card {
    justify-self: center;
  }
}

@media (max-width: 820px) {
  .container {
    width: calc(100% - 28px);
    max-width: 1180px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 18px 24px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background: rgba(7, 29, 58, 0.98);
  }

  .nav-links.active {
    display: flex;
  }

  .btn-nav {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-metrics,
  .strip-grid,
  .course-cards,
  .feedback-hero {
    grid-template-columns: 1fr;
  }

  .hero-desc {
    max-width: 100%;
    font-size: 1rem;
    word-break: break-all;
  }

  .service-media-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .media-tile,
  .media-tile.tall {
    grid-row: auto;
    height: 420px;
  }

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

  .process-board,
  .feedback-main {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 3.1rem;
  }

  .hero h1 span {
    font-size: 1.58rem;
    line-height: 1.2;
  }

  .section-header h2,
  .process h2,
  .contact h2 {
    font-size: 1.75rem;
  }

  .services,
  .teachers,
  .proof,
  .courses,
  .process,
  .contact {
    padding: 68px 0;
  }

  .btn {
    width: 100%;
  }

  .feedback-rail {
    grid-auto-columns: minmax(210px, 78vw);
  }
}
