:root {
  --paper:#f5f6f8; --ink:#171c29; --muted:#505b6b; --line:#d8dce3;
  --red:#c82f34; --signal:#ff5553; --night:#141925; --white:#fff;
}
* { box-sizing:border-box }
body { margin:0; background:var(--paper); color:var(--ink); font:16px/1.55 "Avenir Next","Helvetica Neue",Arial,sans-serif }
[hidden] { display:none!important }
.wrap { width:min(1392px,94%); margin-inline:auto }
h1,h2,h3,p { margin:0 }
h1,h2,h3,.brand,.facts strong,.value { letter-spacing:-.045em; line-height:1.03 }
h2 { font-size:clamp(30px,3.6vw,57px) }
h3 { font-size:clamp(20px,2vw,29px) }
a { color:inherit; text-decoration:none }
a:hover { text-decoration:underline; text-underline-offset:.2em }
button,summary,select { cursor:pointer }
:focus-visible { outline:3px solid #5798f2; outline-offset:4px }
section,[id] { scroll-margin-top:20px }
header { position:relative; z-index:4; background:var(--paper) }
.top,.brand,.actions,.title,.foot,.kicker,.resources { display:flex; align-items:center }
.top { min-height:84px; justify-content:space-between; gap:20px }
.brand { font-size:34px; font-weight:900; letter-spacing:-.075em; font-style:italic; gap:10px }
.brand:hover { text-decoration:none }
.brand img { display:block; width:136px; height:auto }
.top .brand img { width:clamp(150px,18vw,198px); height:auto }
summary::-webkit-details-marker { display:none }
.desktop-nav { display:flex; align-items:center; gap:clamp(12px,1.45vw,25px); font-size:15px; font-weight:650 }
.desktop-nav a { padding-block:12px; line-height:1.25 }
.desktop-nav a:nth-child(2) { max-width:195px }
.menu-open,.menu-close { background:white; color:var(--ink); border:1px solid var(--line); border-radius:10px; font:inherit; min-height:44px; padding-inline:14px }
.menu-open { display:none }
#mobile-menu { position:fixed; inset:0 0 0 auto; margin:0; width:min(355px,90vw); max-width:100%; height:100%; max-height:100%; box-sizing:border-box; padding:18px 20px; border:0; background:var(--paper); color:var(--ink); overscroll-behavior:contain }
#mobile-menu::backdrop { background:#102d2580 }
body:has(#mobile-menu[open]) { overflow:hidden }
.drawer-head { display:flex; justify-content:space-between; align-items:center; font-size:21px; margin-bottom:10px }
.menu-close { font-size:24px }
#mobile-menu nav a,.drawer-phone { display:block; padding:12px 2px; border-bottom:1px solid var(--line); line-height:1.4 }
.drawer-phone { margin-top:15px; font-weight:650 }
@media(max-width:999px) {
 .desktop-nav { display:none }
 .menu-open { display:inline-flex; align-items:center; gap:8px }
}
.hero { position:relative; isolation:isolate; overflow:hidden; border-radius:25px; background:#111826; color:white; min-height:clamp(425px,36vw,555px); display:flex; align-items:center }
.hero-photo,.hero-shade { position:absolute; top:0; right:0; height:100%; z-index:-1 }
.hero-photo { width:68%; object-fit:cover; object-position:60% 40% }
.hero-shade { inset:0; background:linear-gradient(90deg,#111826 8%,#111826 28%,#111826e8 38%,#11182698 49%,#10162300 69%),linear-gradient(0deg,#0a102357,transparent 45%) }
.hero-content { padding:clamp(30px,4vw,64px); max-width:57% }
.kicker,.eyebrow { font-size:11px; line-height:1.4; font-weight:750; letter-spacing:.13em; text-transform:uppercase; gap:9px }
.kicker i { width:20px; height:4px; background:var(--signal); transform:skew(-26deg) }
.hero h1 { font-size:clamp(76px,7.8vw,124px); font-weight:800; line-height:.87; letter-spacing:-.065em; margin:27px 0 18px }
.hero h1 em { font-weight:800; color:#ff7371; font-style:italic }
.hero p { max-width:395px; color:#e1e6f0; line-height:1.45 }
.actions { gap:23px; margin-top:25px }
.btn { border:0; background:var(--red); color:white; display:inline-flex; gap:22px; align-items:center; padding:14px 22px; border-radius:999px; font-family:inherit; font-size:15px; font-weight:650; line-height:1.3; cursor:pointer }
.btn:hover { background:#ab2329; text-decoration:none }
.hero .btn,.dark .btn { background:#ff6867; color:#200c0d }
.hero .btn:hover,.dark .btn:hover { background:#ff8c88 }
.ghost,.plain,.under,.back,.manage { font-size:14px; font-weight:650 }
.hero-caption { position:absolute; bottom:18px; right:24px; color:white; font-size:12px; font-weight:600; text-shadow:0 1px 5px #101322 }
.hero-caption b { color:#ff8580; margin:0 8px }
.facts { display:grid; grid-template-columns:repeat(4,1fr); background:white; border:1px solid var(--line); border-radius:18px; margin-top:12px; padding:23px 0 }
.facts div { padding:0 clamp(14px,3.2vw,54px); border-left:1px solid var(--line) }
.facts div:first-child { border:0 }
small,.facts small,aside small { color:var(--muted); font-size:13px }
.facts strong,aside strong { display:block; font-size:clamp(21px,2.35vw,38px); margin-top:6px }
.facts strong[data-start] { font-size:clamp(19px,1.95vw,30px) }
.block { margin:clamp(50px,5.4vw,84px) 0 }
.title,.resources { justify-content:space-between; gap:18px }
.title { align-items:end; margin-bottom:24px }
.kicker+h2,.eyebrow+h1 { margin-top:12px }
.cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px }
.cards article { background:white; border-radius:18px; overflow:hidden; border:1px solid var(--line) }
.cards img { width:100%; aspect-ratio:2; object-fit:cover; display:block }
.cards article div { padding:22px }
p { color:var(--muted) }
.cards p,.sheet>p,.inner p,#contacts>p,.section-head>p { margin-top:10px }
.split,.editor { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; align-items:start }
.sheet,.editor form,.editor aside,.notice { padding:clamp(22px,3vw,44px); border-radius:20px; background:white; border:1px solid var(--line) }
.sheet.dark,.editor aside { background:var(--night); color:white; --muted:#c5cddd; --line:#465267 }
.sheet h2,.editor h2,.notice h2 { font-size:clamp(26px,2.7vw,42px) }
.sheet .value { font-size:clamp(29px,3vw,46px); font-weight:700; margin:22px 0 10px; color:inherit }
.sheet .btn { margin-top:20px }
.disclosure { border-bottom:1px solid var(--line) }
.disclosure>summary { position:relative; list-style:none; padding:17px 32px 17px 0; font-weight:650; line-height:1.4 }
.disclosure>summary::after { content:'+'; position:absolute; right:4px; font-size:20px; top:14px }
.disclosure[open]>summary::after { content:'−' }
.prose { padding:5px 0 20px; overflow-x:auto; overflow-wrap:anywhere; line-height:1.65 }
.prose p,.prose h3,.prose h4 { margin:8px 0 }
.prose a,.notice a,.resources a,.plain,.under,.back { text-decoration:underline; text-underline-offset:4px }
.prose table { border-collapse:collapse; font-size:14px }
.prose td,.prose th { border:1px solid var(--line); padding:6px }
.lede { max-width:620px; margin-bottom:18px }
.gallery { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:5px 0 20px }
.gallery img { display:block; width:100%; aspect-ratio:1.9; object-fit:cover; border-radius:10px }
.gallery a:hover img { filter:brightness(1.08) }
.resources { justify-content:flex-start; flex-wrap:wrap; margin-top:20px; gap:12px 28px }
#contacts { padding:24px 0 }
#contacts h3 { margin-top:25px }
.numbers { display:grid; gap:9px; margin-top:22px }
.numbers small { margin-left:8px }
label { display:block; margin:16px 0 6px; font-weight:600 }
input,select { display:block; width:100%; margin-top:5px; padding:11px 12px; border:1px solid #a4adba; border-radius:8px; background:white; font:inherit; color:var(--ink) }
#enroll small { display:block }
.inner,#panel { min-height:65vh; padding-block:35px 70px }
.inner { max-width:1080px }
.inner h1,#panel h1 { font-size:clamp(38px,5vw,74px); margin:30px 0; overflow-wrap:anywhere }
.inner h2 { margin:24px 0 15px }
.inner .disclosure { background:white; border:1px solid var(--line); border-radius:12px; margin:8px 0; padding:0 20px }
.inner .gallery img { object-fit:contain; background:#e8eaf0; height:165px }
.building { width:min(100%,510px); border-radius:14px; margin-bottom:20px }
.inner .about { max-width:900px }
.editor { max-width:1000px; margin-top:26px }
.editor aside small,.editor aside strong { display:block; margin-top:14px }
.editor button { margin-top:20px }
#panel .section-head { margin-top:35px }
#status { margin-top:10px }
footer { background:var(--night); color:white }
.foot { align-items:flex-start; gap:30px; justify-content:space-between; padding-block:38px }
.foot nav { max-width:650px; display:flex; flex-wrap:wrap; gap:8px 22px; font-size:14px }
@media(max-width:850px) {
 .hero-content { max-width:65% }
 .facts div { padding-inline:16px }
 .cards { gap:12px }
 .cards article div { padding:16px }
}
@media(max-width:620px) {
 .top { min-height:65px }
 .brand { font-size:29px }
 .hero { min-height:0; display:block; border-radius:18px }
 .hero-photo { width:100%; height:55%; object-position:65% 35% }
 .hero-shade { background:linear-gradient(0deg,#111826 34%,#111826fd 45%,#111826ba 59%,transparent 78%) }
 .hero-content { max-width:none; padding:clamp(160px,42vw,240px) 22px 23px }
 .hero-caption { display:none }
 .hero h1 { margin:13px 0; font-size:clamp(57px,14vw,84px) }
 .hero p { font-size:15px; max-width:340px }
 .actions { margin-top:18px; gap:18px }
 .facts { grid-template-columns:repeat(2,minmax(0,1fr)); padding:0; border-radius:15px }
 .facts div { padding:13px 15px }
 .facts div:nth-child(3) { border-left:0 }
 .facts div:nth-child(n+3) { border-top:1px solid var(--line) }
 .cards,.split,.editor { grid-template-columns:1fr }
 .title { align-items:flex-start; flex-direction:column; gap:12px }
 .cards img { aspect-ratio:2.2 }
 .gallery { grid-template-columns:repeat(2,1fr) }
 .foot { flex-direction:column; gap:18px }
 .inner .disclosure { padding:0 12px }
 .hero .btn { padding:13px 20px }
}

/* Road-sign colours and the three lights tie the school pages together. */
:root { --paper:#f5f3e9; --ink:#182c26; --muted:#526158; --line:#cfd5c8; --night:#102d25; --signal:#e95248; --go:#b6f775; --amber:#ffcd51 }
.hero { background:var(--night); border-radius:6px 34px 6px 34px }
.hero-photo { width:54%; clip-path:polygon(15% 0,100% 0,100% 100%,0 100%); object-position:66% center }
.hero-shade { background:none; pointer-events:none }
.hero-content { max-width:55%; padding-inline:clamp(22px,3.7vw,58px) }
.hero h1 { font-size:clamp(54px,6.7vw,102px); line-height:.96 }
.hero h1 em { color:var(--go); font-style:normal }
.kicker i,.eyebrow b { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--signal); box-shadow:14px 0 var(--amber),28px 0 #46b778; margin-right:29px; transform:none }
.hero .btn,.dark .btn { background:var(--go); color:var(--night) }
.hero .btn:hover,.dark .btn:hover { background:#cbff9a }
.btn { background:#225e48 }
.btn:hover { background:#174632 }
.facts { background:#fff2c2; border-color:#e6d999; border-radius:6px 18px 6px 18px }
.cards article { border-radius:8px }
.cards article div { border-top:6px solid var(--signal) }
.cards article:nth-child(2) div { border-color:var(--amber) }
.cards article:nth-child(3) div { border-color:#46b778 }
#raspisanie { background:#fff1b9 }
.hero-caption { background:#102d25d9; border-radius:4px; padding:5px 10px }
.hero-caption b { color:var(--amber) }
.auth { width:min(470px,92%); margin:9vh auto; padding:32px; border:1px solid var(--line); border-radius:20px; background:white }
.auth img { display:block; margin-bottom:22px }
.auth h1 { margin:16px 0; font-size:36px }
.auth button,.auth .back { margin-top:18px }
.auth .back { display:inline-block }
.auth .message { color:#993325 }
@media(max-width:620px) {
 .hero { display:flex; flex-direction:column; align-items:stretch }
 .hero-photo { position:static; order:2; width:100%; height:200px; clip-path:polygon(0 10%,100% 0,100% 100%,0 100%); object-position:65% 40% }
 .hero-content { max-width:none; padding:24px 22px 12px }
 .hero h1 { font-size:clamp(46px,11vw,72px) }
}

.dashboard {width:min(760px,94%);margin:4vh auto}
.dashboard nav {display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}
.dashboard nav a {padding:8px 14px;border-radius:8px;background:var(--paper)}
.dashboard nav [aria-current] {background:var(--night);color:white}
.dashboard h2 {font-size:26px}
.dashboard [role=status] {color:#15573e;margin:12px 0}
