:root {
  --ink: #17212b;
  --muted: #5d6874;
  --green: #16a66a;
  --green-dark: #08724b;
  --mint: #e8f9e6;
  --yellow: #ffd64d;
  --violet: #7456c8;
  --rose: #f46b69;
  --paper: #fffaf0;
  --surface: #ffffff;
  --line: rgba(23, 33, 43, 0.12);
  --shadow: 0 20px 48px rgba(23, 33, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  background: #fffdf7;
}

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

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

.site-header {
  min-height: 96vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 214, 77, 0.36), transparent 22rem),
    radial-gradient(circle at 88% 30%, rgba(116, 86, 200, 0.16), transparent 23rem),
    linear-gradient(135deg, #eaffd7 0%, #fffaf0 52%, #e7f6ff 100%);
  overflow: hidden;
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: clamp(88px, 9vw, 118px);
  height: auto;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.91rem;
  font-weight: 800;
}

.nav-links a {
  padding: 12px 13px;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links .nav-cta {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(96vh - 104px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.85fr);
  align-items: center;
  gap: 52px;
  padding: 40px 0 72px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Nunito", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8vw, 7rem);
  line-height: 0.92;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.32rem;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 28px;
  color: #3e4c57;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions,
.admission-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 900;
  cursor: pointer;
}

.btn.primary {
  background: var(--ink);
  color: #fff;
}

.btn.secondary {
  background: var(--yellow);
  color: var(--ink);
}

.hero-media {
  position: relative;
  min-height: 520px;
  border: 3px solid var(--ink);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  background: #dff9de;
}

.hero-media > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.hero-badge img {
  width: 110px;
  height: auto;
  flex: 0 0 auto;
}

main section,
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.9fr);
  gap: 48px;
  align-items: start;
  padding: 96px 0 42px;
}

.section-copy p,
.vision-main p,
.feature-section p,
.admission p,
.contact-info p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.profile-card,
.contact-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 33, 43, 0.08);
}

dl {
  margin: 0;
  display: grid;
  gap: 0;
}

dl div {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

dl div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-weight: 800;
}

dd {
  margin: 0;
  font-weight: 900;
}

.legal-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 32px 0 92px;
}

.legal-section article,
.mission-list article,
.program-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 33, 43, 0.06);
}

.legal-section span,
.program-grid span {
  display: block;
  margin-bottom: 16px;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-section strong {
  display: block;
  min-height: 76px;
  font-family: "Nunito", Arial, sans-serif;
  font-size: 1.35rem;
  line-height: 1.15;
}

.legal-section p,
.mission-list p,
.program-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.legal-section a {
  display: inline-flex;
  margin-top: 4px;
  color: var(--green-dark);
  font-weight: 900;
}

.vision-section {
  width: min(1240px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  gap: 36px;
  align-items: stretch;
  padding: 64px min(42px, 4vw);
  border-radius: 28px;
  background: var(--ink);
  color: #fff;
}

.vision-section .section-kicker {
  color: #a5efbf;
}

.vision-main p {
  color: rgba(255, 255, 255, 0.78);
}

.mission-list {
  display: grid;
  gap: 14px;
}

.mission-list article {
  box-shadow: none;
}

.goals-section,
.program-section,
.facilities-section,
.gallery-section {
  padding: 92px 0 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.goals-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.goals-grid span,
.admission-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(23, 33, 43, 0.06);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.program-grid article {
  min-height: 286px;
}

.feature-section {
  width: min(1240px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  margin-top: 92px;
  padding: min(42px, 4vw);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff0bd, #e4fbe7);
}

.feature-section > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.feature-section ul {
  margin: 22px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 700;
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.facility-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 33, 43, 0.06);
}

.facility-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.facility-grid h3 {
  margin: 0;
  padding: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e9eef0;
}

figure.wide {
  grid-column: span 2;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.admission {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  gap: 38px;
  align-items: center;
  margin-top: 92px;
  padding: 48px;
  border: 2px solid rgba(23, 33, 43, 0.1);
  border-radius: 28px;
  background: linear-gradient(135deg, #e6f8ff, #fff4c4);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.8fr);
  gap: 56px;
  padding: 96px 0;
}

.contact-info ul {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.contact-info li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info span {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  background: #fbfcfd;
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

footer img {
  width: 84px;
  height: auto;
  object-fit: contain;
}

footer a {
  color: var(--green-dark);
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 92px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-radius: 10px;
  }

  .hero,
  .profile-grid,
  .vision-section,
  .feature-section,
  .admission,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: auto;
    transform: none;
  }

  .hero-media > img {
    min-height: 360px;
  }

  .legal-section,
  .program-grid,
  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .brand span {
    display: none;
  }

  .brand img {
    width: 96px;
  }

  .site-header {
    min-height: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .hero-actions .btn,
  .contact-form .btn {
    width: 100%;
  }

  .hero-badge {
    left: 14px;
    right: 14px;
    bottom: 14px;
    gap: 10px;
    padding: 12px;
  }

  .hero-badge img {
    width: 82px;
  }

  .profile-grid {
    padding-top: 62px;
  }

  dl div,
  .contact-info li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .legal-section,
  .program-grid,
  .facility-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .legal-section strong {
    min-height: auto;
  }

  .vision-section,
  .feature-section,
  .admission {
    border-radius: 18px;
  }

  .gallery-grid {
    grid-auto-rows: 260px;
  }

  figure.wide {
    grid-column: span 1;
  }

  .contact {
    padding: 64px 0;
  }

  .admission {
    padding: 30px 22px;
  }

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