:root {
  --blue: #1D3FA8;
  --blue-dark: #142C78;
  --blue-soft: #EAF0FF;
  --yellow: #FFC928;
  --yellow-soft: #FFF6D6;
  --orange: #FF8A3D;
  --green: #2FB67C;
  --pink: #F2557A;
  --sky: #3BB3F2;
  --ink: #1B2340;
  --muted: #5B6482;
  --line: #E3E8F5;
  --cream: #FFFCF3;
  --radius: 22px;
  --shadow: 0 14px 40px -18px rgba(20, 44, 120, .35);
  --font-head: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream); line-height: 1.65; font-size: 1.02rem; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0; color: var(--blue-dark); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 6px 0 14px; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 24px; border-radius: 999px; background: var(--yellow); color: var(--blue-dark); font-weight: 800; text-decoration: none; border: 2px solid var(--yellow); box-shadow: 0 6px 0 #D9A400; transition: transform .15s, box-shadow .15s; cursor: pointer; font-family: inherit; font-size: 1rem; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #D9A400; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #D9A400; }
.btn-outline { background: #fff; border-color: var(--blue); color: var(--blue); box-shadow: 0 6px 0 var(--blue); }
.btn-outline:hover { box-shadow: 0 8px 0 var(--blue); }
.btn-sm { padding: 8px 18px; font-size: .92rem; box-shadow: 0 4px 0 #D9A400; }
.btn-block { width: 100%; }

.kicker { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.kicker.light { color: var(--yellow); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { color: var(--muted); }
section { padding: 80px 0; position: relative; }

/* Top bar */
.topbar { background: var(--blue-dark); color: #fff; font-size: .86rem; }
.topbar-inner { min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.tb-note { color: var(--yellow); font-weight: 800; }
.tb-links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar a:hover { text-decoration: underline; }

/* Header */
.site-header { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 18px -8px rgba(20,44,120,.25); border-bottom: 4px solid var(--yellow); }
.nav { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 3px solid var(--blue-soft); }
.brand strong { display: block; font-family: var(--font-head); color: var(--blue-dark); font-size: 1.25rem; line-height: 1.1; }
.brand small { color: var(--muted); font-size: .76rem; font-weight: 700; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--ink); }
nav a:not(.btn):hover { color: var(--blue); }
.menu { display: none; border: 2px solid var(--blue); color: var(--blue); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 800; font-family: inherit; }

/* Hero */
.hero { background: radial-gradient(circle at 85% 15%, #FFE58A 0, transparent 40%), linear-gradient(160deg, #FFF6D6 0%, #EAF0FF 100%); padding: 64px 0 110px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; position: relative; z-index: 1; }
.pill { display: inline-block; background: #fff; color: var(--blue-dark); font-weight: 800; padding: 7px 16px; border-radius: 999px; font-size: .88rem; box-shadow: var(--shadow); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); margin: 18px 0 16px; letter-spacing: -.01em; }
.hl { color: var(--orange); } .hl2 { color: var(--green); } .hl3 { color: var(--pink); }
.hero-copy > p { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 32px; }
.badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 540px; }
.badges li { background: #fff; border-radius: 16px; padding: 12px 8px; text-align: center; box-shadow: var(--shadow); border-bottom: 4px solid var(--sky); }
.badges li:nth-child(2) { border-color: var(--green); } .badges li:nth-child(3) { border-color: var(--orange); } .badges li:nth-child(4) { border-color: var(--pink); }
.badges b { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--blue-dark); line-height: 1.1; }
.badges span { font-size: .78rem; font-weight: 700; color: var(--muted); }
.hero-media { position: relative; }
.photo-frame { background: #fff; padding: 12px; border-radius: 28px; box-shadow: var(--shadow); transform: rotate(2deg); }
.photo-frame img { border-radius: 18px; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.float-card { position: absolute; left: -18px; bottom: -26px; background: var(--blue); color: #fff; border-radius: 18px; padding: 12px 18px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.float-card b { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.float-card span { font-family: var(--font-head); font-size: 1.3rem; }
.fc-icon { font-size: 1.8rem; }
.hero-deco .d { position: absolute; font-size: 2.2rem; opacity: .55; animation: bob 6s ease-in-out infinite; }
.d1 { top: 10%; left: 3%; } .d2 { bottom: 22%; left: 45%; animation-delay: 1s; } .d3 { top: 8%; right: 6%; animation-delay: 2s; } .d4 { bottom: 18%; right: 3%; animation-delay: 3s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(6deg); } }
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 80px; fill: var(--cream); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); border: 6px solid #fff; }
.sticker { position: absolute; top: -16px; right: -10px; background: var(--pink); color: #fff; font-weight: 800; padding: 8px 16px; border-radius: 999px; transform: rotate(5deg); box-shadow: var(--shadow); }
.about p { color: var(--muted); }
.class-line { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.class-line span { padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: .92rem; }
.c1 { background: #FFE8EE; color: #C22D53; } .c2 { background: #E3F6EE; color: #17845A; } .c3 { background: #E2F3FD; color: #136F9F; }

/* Profile */
.profile { background: var(--blue-soft); }
.profile-card { background: #fff; border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; max-width: 960px; margin: 0 auto; }
.profile-top { display: flex; gap: 18px; align-items: center; background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; padding: 24px 30px; }
.profile-top img { width: 70px; height: 70px; border-radius: 50%; border: 3px solid var(--yellow); background: #fff; }
.profile-top h3 { color: #fff; font-size: 1.6rem; }
.profile-top p { margin: 4px 0 0; color: #DCE5FF; font-size: .95rem; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.profile-grid > div { padding: 18px 26px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.profile-grid > div:nth-child(3n) { border-right: 0; }
.profile-grid .wide { grid-column: 1 / -1; border-right: 0; }
.profile-grid dt { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.profile-grid dd { margin: 4px 0 0; font-weight: 800; font-size: 1.08rem; color: var(--blue-dark); word-break: break-word; }
.profile-grid a { text-decoration: none; }

/* Facilities */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 6px solid var(--c, var(--blue)); transition: transform .2s; }
.feature:hover { transform: translateY(-6px); }
.feature .ico { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; font-size: 1.9rem; margin-bottom: 16px; background: var(--bg, var(--blue-soft)); }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; }
.f1 { --c: var(--sky); --bg: #E2F3FD; } .f2 { --c: var(--orange); --bg: #FFEBDD; } .f3 { --c: var(--pink); --bg: #FFE8EE; }
.f4 { --c: var(--green); --bg: #E3F6EE; } .f5 { --c: var(--yellow); --bg: var(--yellow-soft); } .f6 { --c: var(--blue); --bg: var(--blue-soft); }

/* Principal message */
.message { background: var(--yellow-soft); }
.message-card { display: grid; grid-template-columns: 260px 1fr; gap: 40px; background: #fff; border-radius: 28px; padding: 44px; box-shadow: var(--shadow); max-width: 1000px; }
.msg-side { text-align: center; border-right: 2px dashed var(--line); padding-right: 30px; }
.avatar { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-family: var(--font-head); font-size: 2.6rem; color: #fff; background: linear-gradient(135deg, var(--blue), var(--sky)); border: 6px solid var(--yellow); }
.msg-side span { color: var(--orange); font-weight: 800; }
blockquote { margin: 0; position: relative; }
blockquote::before { content: "“"; position: absolute; top: -40px; right: 0; font-family: Georgia, serif; font-size: 8rem; color: var(--yellow); line-height: 1; }
blockquote p { color: var(--muted); }
blockquote p:first-of-type { margin-top: 10px; font-weight: 800; color: var(--ink); }
blockquote footer { font-weight: 800; color: var(--blue-dark); font-family: var(--font-head); font-size: 1.15rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-grid figure { margin: 0; background: #fff; padding: 10px 10px 14px; border-radius: 20px; box-shadow: var(--shadow); transition: transform .2s; }
.gallery-grid figure:nth-child(odd) { transform: rotate(-1.5deg); } .gallery-grid figure:nth-child(even) { transform: rotate(1.5deg); }
.gallery-grid figure:hover { transform: rotate(0) scale(1.03); }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; }
.gallery-grid figcaption { text-align: center; font-weight: 800; color: var(--blue-dark); margin-top: 10px; font-family: var(--font-head); font-size: 1.1rem; }

/* Admission */
.admission { background: linear-gradient(150deg, var(--blue-dark), var(--blue)); color: #fff; }
.admission-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 50px; align-items: center; }
.adm-copy h2 { color: #fff; }
.adm-copy p { color: #DCE5FF; font-size: 1.08rem; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.contact-list li span { flex: none; width: 38px; height: 38px; display: grid; place-items: center; background: rgba(255,255,255,.14); border-radius: 12px; }
.contact-list a { color: #fff; word-break: break-word; }
.adm-form { background: #fff; color: var(--ink); border-radius: 28px; padding: 34px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.45); display: grid; gap: 14px; border-top: 8px solid var(--yellow); }
.adm-form h3 { font-size: 1.6rem; margin-bottom: 4px; }
.adm-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-form label { display: grid; gap: 6px; font-weight: 800; font-size: .88rem; color: var(--blue-dark); }
.adm-form input, .adm-form select, .adm-form textarea { font: inherit; font-weight: 600; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #FAFBFF; color: var(--ink); width: 100%; }
.adm-form input:focus, .adm-form select:focus, .adm-form textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(29,63,168,.12); }
.adm-form .btn { margin-top: 6px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: #0E1E52; color: #C5D0F2; padding: 50px 0 20px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 30px; }
.f-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.f-brand img { border-radius: 50%; background: #fff; }
.f-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.2rem; }
.site-footer h4 { color: var(--yellow); margin-bottom: 10px; font-size: 1.1rem; }
.site-footer a { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; text-align: center; font-size: .85rem; }

/* Responsive */
@media (max-width: 960px) {
  nav { gap: 16px; } nav a { font-size: .88rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid > div:nth-child(3n) { border-right: 1px solid var(--line); }
  .profile-grid > div:nth-child(2n) { border-right: 0; }
}
@media (max-width: 860px) {
  .menu { display: block; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 18px 22px 22px; flex-direction: column; align-items: flex-start; gap: 14px; box-shadow: 0 16px 24px -12px rgba(20,44,120,.3); }
  nav.open { display: flex; }
  .hero-grid, .about-grid, .admission-grid { grid-template-columns: 1fr; gap: 40px; }
  .message-card { grid-template-columns: 1fr; padding: 30px; }
  .msg-side { border-right: 0; padding-right: 0; border-bottom: 2px dashed var(--line); padding-bottom: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  section { padding: 56px 0; }
  .topbar-inner { justify-content: center; text-align: center; padding: 6px 0; }
  .tb-links { justify-content: center; gap: 6px 16px; }
  .brand strong { font-size: 1.05rem; } .brand small { font-size: .68rem; }
  .logo { width: 44px; height: 44px; }
  .hero { padding: 40px 0 90px; }
  .badges { grid-template-columns: 1fr 1fr; }
  .float-card { left: 10px; bottom: -22px; }
  .feature-grid, .gallery-grid, .profile-grid, .adm-form .row { grid-template-columns: 1fr; }
  .profile-grid > div { border-right: 0 !important; }
  .profile-top { flex-direction: column; text-align: center; }
  .adm-form { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-deco .d { animation: none; }
  * { transition: none !important; }
}
