/* Вербовецька загальноосвітня школа — стилі */
:root {
  --navy: #0d1b4c;
  --text: #1c2a55;
  --muted: #56627f;
  --blue: #0b4cc0;
  --blue-d: #083a95;
  --blue-50: #eef4ff;
  --blue-100: #dce8ff;
  --yellow: #f5b800;
  --yellow-50: #fff6d9;
  --green: #2e9d48;
  --green-50: #e6f6ea;
  --violet-50: #efecff;
  --violet: #6b4fd8;
  --orange-50: #fff0e3;
  --orange: #e07000;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --border: #e2e8f3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 24px rgba(13, 27, 76, .07);
  --shadow-h: 0 12px 32px rgba(13, 27, 76, .12);
  --focus: 0 0 0 3px #fff, 0 0 0 6px #f5b800;
  --container: 1320px;
  --gutter: 16px;
  font-size: 100%;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 1rem; line-height: 1.6; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-d); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mt { margin-top: 1rem; }
.i { width: 1.25em; height: 1.25em; flex: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
main:focus { outline: none; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2; transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(11, 76, 192, .25); }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-d); }
.btn-lg { min-height: 56px; padding: .9em 1.6em; }
.btn-sm { min-height: 44px; padding: .5em 1em; font-size: .9375rem; }
.btn-block { width: 100%; }
.more { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--blue); text-decoration: none; font-size: .9375rem; }
.more:hover { text-decoration: underline; }
.more .i { transition: transform .15s; }
a:hover .more .i, .more:hover .i { transform: translateX(3px); }

/* ---------- Topbar ---------- */
.topbar { background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: .875rem; color: var(--text); }
.topbar-inner { display: flex; align-items: center; gap: 12px 28px; min-height: 48px; flex-wrap: wrap; justify-content: space-between; }
.tb-item { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; padding: 6px 0; }
.tb-item .i { color: var(--blue); }
a.tb-item:hover { color: var(--blue); }
.flag { width: 22px; height: 15px; border-radius: 2px; flex: none; }
.tb-a11y { background: none; border: 0; color: var(--blue); text-decoration: underline; font-weight: 600; min-height: 44px; }
.tb-a11y .i { width: 1.5em; height: 1.5em; }
@media (max-width: 1100px) { .tb-addr { display: none; } }
@media (max-width: 720px) {
  .tb-lang-long { display: none; }
  .topbar-inner { gap: 4px 14px; }
  .tb-a11y span { font-size: .8125rem; }
}
@media (max-width: 400px) { .tb-lang { display: none; } }

/* ---------- Header ---------- */
.header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 104px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); min-width: 0; flex: none; }
.header .brand-sub, .header .brand-tags { white-space: nowrap; }
.brand img { width: 72px; height: 72px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.brand-sub { color: var(--muted); font-size: .9375rem; }
.brand-tags, .brand-loc { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8125rem; margin-top: 2px; }
.brand-loc { display: none; }
.brand-tags .i, .brand-loc .i { color: var(--blue); width: 1em; height: 1em; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: block; padding: 10px 10px; color: var(--navy); text-decoration: none; font-weight: 600; position: relative; white-space: nowrap; }
.main-nav a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.main-nav a:hover { color: var(--blue); }
.main-nav a:hover::after, .main-nav a[aria-current='page']::after { transform: scaleX(1); }
.main-nav a[aria-current='page'] { color: var(--blue); }
.header-cta { flex: none; }
.burger { display: none; margin-left: auto; width: 52px; height: 52px; border: 0; background: none; color: var(--navy); border-radius: 10px; align-items: center; justify-content: center; }
.burger .i { width: 34px; height: 34px; }
.mobile-cta { display: none; padding-bottom: 14px; }
.mobile-nav { border-top: 1px solid var(--border); background: #fff; max-height: calc(100vh - 120px); overflow-y: auto; }
.mobile-nav > ul { padding: 8px var(--gutter); }
.mobile-nav > ul a { display: flex; min-height: 52px; align-items: center; padding: 0 12px; font-size: 1.125rem; font-weight: 700; color: var(--navy); text-decoration: none; border-radius: 10px; }
.mobile-nav > ul a[aria-current='page'] { background: var(--blue-50); color: var(--blue); }
.mobile-nav-contacts { padding: 12px calc(var(--gutter) + 12px) 24px; border-top: 1px solid var(--border); }

@media (min-width: 0px) {
  .main-nav a { padding: 10px 7px; font-size: .9375rem; }
  .main-nav a::after { left: 7px; right: 7px; }
  .brand-name { font-size: 1.4rem; }
}
@media (max-width: 1340px) {
  .main-nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  .mobile-cta { display: block; }
  .header { position: relative; }
}
@media (max-width: 640px) {
  .header-inner { min-height: 88px; gap: 12px; }
  .brand img { width: 56px; height: 56px; }
  .brand-name { font-size: 1.25rem; }
  .brand-sub { font-size: .8125rem; }
  .brand-tags { display: none; }
  .brand-loc { display: inline-flex; }
}

/* ---------- Generic sections ---------- */
.section { padding: 48px 0; }
.section-tight { padding: 20px 0; }
@media (min-width: 900px) { .section { padding: 48px 0; } .section-tight { padding: 24px 0; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.h-bar { position: relative; padding-left: 20px; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); scroll-margin-top: 24px; }
.h-bar::before { content: ''; position: absolute; left: 0; top: .1em; bottom: .1em; width: 5px; border-radius: 3px; background: linear-gradient(var(--blue) 50%, var(--yellow) 50%); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 24px; }
.card-h { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; margin-bottom: 14px; }
.card-h .i { color: var(--blue); }
.chip { display: inline-block; background: var(--blue-50); color: var(--blue); font-size: .8125rem; font-weight: 700; padding: 3px 10px; border-radius: 6px; }
.two-col { display: grid; gap: 20px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }

.ic-soft, .ic-circle { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none; }
.ic-soft { width: 72px; height: 72px; }
.ic-soft .i { width: 34px; height: 34px; }
.ic-soft.blue { background: var(--blue-50); color: var(--blue); }
.ic-soft.yellow { background: var(--yellow-50); color: #c98a00; }
.ic-soft.green { background: var(--green-50); color: var(--green); }
.ic-soft.violet { background: var(--violet-50); color: var(--violet); }
.ic-soft.orange { background: var(--orange-50); color: var(--orange); }
.ic-circle { width: 56px; height: 56px; color: #fff; }
.ic-circle .i { width: 26px; height: 26px; }
.ic-circle.blue { background: var(--blue); }
.ic-circle.yellow { background: var(--yellow); color: #fff; }
.ic-circle.grey { background: #e9edf5; color: #7a86a3; }

/* Admin placeholder note */
.todo { display: flex; gap: 10px; align-items: flex-start; background: var(--yellow-50); border: 1.5px dashed #e3b200; color: #6b4f00; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .9375rem; font-weight: 600; margin: 0; }
.todo .i { color: #c98a00; margin-top: 2px; }
.todo-sm { font-size: .8125rem; padding: 8px 12px; margin-top: 10px; }

/* Placeholder image */
.ph { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; text-align: center; padding: 16px;
  background: repeating-linear-gradient(135deg, #f1f5fc 0 14px, #e9eff9 14px 28px); color: #7a86a3; font-size: .875rem; font-weight: 600; min-height: 160px; width: 100%; height: 100%; }
.ph .i { width: 40px; height: 40px; }
.ph-hero { min-height: 280px; border-radius: var(--radius); }

/* Empty state */
.empty { display: flex; gap: 18px; align-items: center; padding: 28px; border: 1.5px dashed var(--blue-100); border-radius: var(--radius); background: var(--bg-soft); }
.empty-ic { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--blue); align-items: center; justify-content: center; flex: none; box-shadow: var(--shadow); }
.empty-ic .i { width: 30px; height: 30px; }
.empty-title { font-weight: 800; color: var(--navy); font-size: 1.125rem; margin-bottom: 4px; }
.empty p:not(.empty-title) { color: var(--muted); }
@media (max-width: 520px) { .empty { flex-direction: column; text-align: center; padding: 24px 18px; } }

.status { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.status.ok { background: var(--green-50); color: #1d7a35; }
.status.missing { background: #fdecec; color: #a3261d; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero-media { position: absolute; inset: 0 0 0 38%; }
.hero-media .school-photo, .hero-media picture { height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.75) 14%, rgba(255,255,255,0) 40%), linear-gradient(0deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 22%); }
.hero-content { position: relative; padding-top: 72px; padding-bottom: 150px; }
.hero h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 4rem); letter-spacing: -.02em; max-width: 14ch; }
.hero .lead { max-width: 560px; font-size: 1.125rem; color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: .8125rem; color: var(--muted); background: rgba(255,255,255,.85); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 860px) {
  .hero { background: #fff; }
  .hero-media { position: relative; inset: auto; height: 240px; order: 2; }
  .hero-media::after { background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 30%); }
  .hero { display: flex; flex-direction: column; }
  .hero-content { padding-top: 36px; padding-bottom: 8px; }
  .hero-actions .btn { flex: 1 1 240px; }
}

/* Quick cards */
.quick { position: relative; z-index: 2; margin-top: -110px; }
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.quick-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 18px 24px; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); color: var(--text); }
.quick-card h2 { font-size: 1.3rem; margin: 18px 0 10px; }
.quick-card p { font-size: .9375rem; color: var(--muted); flex: 1; }
.quick-card .more { margin-top: 14px; }
@media (max-width: 1100px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .quick { margin-top: 0; padding-top: 24px; } .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .quick-grid { grid-template-columns: 1fr; gap: 12px; }
  .quick-card { flex-direction: row; flex-wrap: wrap; text-align: left; align-items: center; column-gap: 16px; padding: 16px; }
  .quick-card .ic-soft { width: 56px; height: 56px; }
  .quick-card .ic-soft .i { width: 26px; height: 26px; }
  .quick-card h2 { margin: 0; flex: 1; }
  .quick-card p { flex-basis: 100%; margin: 10px 0 0; }
  .quick-card .more { margin-top: 8px; }
}

/* Values */
.values-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value-card { padding: 24px; }
.value-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.value-head h3 { margin: 0; font-size: 1.2rem; }
.value-card p { color: var(--muted); }

/* News */
.news-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.news-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow-h); transform: translateY(-3px); }
.news-card:focus-within { box-shadow: var(--focus); }
.news-media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.news-media img, .news-media .ph { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.date-badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.95); border-radius: 10px; padding: 6px 10px; text-align: center; display: flex; flex-direction: column; line-height: 1.15; font-size: .75rem; color: var(--navy); }
.date-badge b { font-size: 1.4rem; color: var(--blue); }
.news-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; align-items: flex-start; }
.news-body h3 { font-size: 1.15rem; margin: 0; }
.news-body h3 a { color: var(--navy); text-decoration: none; }
.news-body p { color: var(--muted); font-size: .9375rem; flex: 1; }
.stretched::after { content: ''; position: absolute; inset: 0; }
.stretched:focus-visible { box-shadow: none; }

/* Staff */
.staff-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.staff-card { display: flex; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.staff-photo { width: 40%; object-fit: cover; min-height: 190px; flex: none; }
.staff-body { padding: 16px 18px; }
.staff-body h3 { font-size: 1.1rem; margin: 10px 0 6px; }
.staff-body p { color: var(--muted); font-size: .875rem; margin: 0 0 6px; }
.staff-exp { display: flex; gap: 6px; align-items: center; }

/* Doc tiles */
.doc-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.doc-tile { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s; }
.doc-tile:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); color: var(--text); }
.doc-tile-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.doc-tile-text strong { color: var(--navy); }
.doc-tile-text > span:not(.status) { font-size: .8125rem; color: var(--muted); }
.doc-tile-text .status { align-self: flex-start; margin-top: 4px; }
.doc-tile .chev { color: var(--navy); }

/* Photo strip */
.photo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.photo-strip li { scroll-snap-align: start; }
.photo-strip img { aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; width: 100%; }

/* Contact strip */
.contact-strip { display: grid; gap: 20px; grid-template-columns: 1.5fr 1fr 1fr 1.2fr auto; align-items: center; padding: 24px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.cs-item { display: flex; gap: 14px; align-items: flex-start; }
.cs-item > .i { color: var(--blue); width: 28px; height: 28px; }
.cs-item h3 { font-size: 1rem; margin-bottom: 4px; }
.cs-item p { font-size: .9375rem; }
.cs-item a { color: var(--text); text-decoration: none; }
.cs-item a:hover { color: var(--blue); text-decoration: underline; }
.cs-actions { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 1180px) { .contact-strip { grid-template-columns: repeat(2, 1fr); } .cs-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } .cs-actions .btn { flex: 1 1 240px; } }
@media (max-width: 560px) { .contact-strip { grid-template-columns: 1fr; } }

/* ---------- Page hero ---------- */
.page-hero { padding: 24px 0 8px; }
.page-hero-grid { display: grid; gap: 28px; align-items: center; }
.page-hero-grid:has(.page-hero-media) { grid-template-columns: 1fr; }
@media (min-width: 860px) { .page-hero-grid:has(.page-hero-media) { grid-template-columns: 1fr 1.1fr; } }
.page-hero-media { min-height: 260px; display: flex; }
.page-hero-media img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9375rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: #9aa4bd; }
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.h-title { position: relative; padding-left: 28px; font-size: clamp(2rem, 1.3rem + 3vw, 3.5rem); margin: 24px 0 18px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.h-title::before { content: ''; position: absolute; left: 0; top: .08em; bottom: .08em; width: 6px; border-radius: 3px; background: linear-gradient(var(--blue) 50%, var(--yellow) 50%); }
.lead { font-size: 1.125rem; color: var(--text); max-width: 62ch; }

/* About */
.about-top { display: grid; gap: 20px; }
@media (min-width: 1100px) { .about-top { grid-template-columns: 1.1fr 2.3fr; } .about-top .value-card { padding: 20px; } .about-top .values-grid { grid-template-columns: repeat(3, 1fr); } }
.director { display: flex; gap: 20px; padding: 18px; align-items: flex-start; }
.director-photo { width: 170px; min-height: 210px; border-radius: 12px; object-fit: cover; flex: none; }
.director-h { font-size: 1.15rem; }
.director-greet { font-weight: 700; color: var(--navy); }
.director-sign { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.director-sign > span { display: flex; flex-direction: column; font-size: .875rem; color: var(--muted); }
.director-sign strong { color: var(--navy); }
@media (max-width: 560px) { .director { flex-direction: column; } .director-photo { width: 100%; min-height: 180px; } }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; min-width: 0; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat .ic-soft { width: 56px; height: 56px; }
.stat .ic-soft .i { width: 26px; height: 26px; }
.stat b { display: block; font-size: 2rem; line-height: 1; color: var(--blue); }
.stat b.stat-na { color: #9aa4bd; }
.stat > span:last-child { display: flex; flex-direction: column; font-weight: 700; color: var(--navy); }
.stat small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; }
.stat-text { font-weight: 700; color: var(--navy); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); background: none; border: 0; gap: 14px; } .stat { background: #fff; border: 1px solid var(--border) !important; border-radius: var(--radius); box-shadow: var(--shadow); } .stat:nth-child(n+4) { grid-column: span 1; } }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:last-child { grid-column: 1 / -1; } }
@media (max-width: 400px) { .stats { grid-template-columns: 1fr; } }
.feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.feature-card { display: flex; gap: 16px; padding: 20px; text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s; }
.feature-card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); color: var(--text); }
.feature-card > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.feature-card strong { color: var(--navy); font-size: 1.05rem; }
.feature-card span span:not(.more) { font-size: .875rem; color: var(--muted); }
.feature-card .more { margin-top: 6px; }
.prose-sections { display: grid; gap: 48px; }
.prose-sections > section { scroll-margin-top: 20px; }
.prose { max-width: 760px; font-size: 1.0625rem; }

/* Pills nav */
.pills { display: flex; gap: 10px; flex-wrap: wrap; }
.pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-soft); color: var(--navy); font-weight: 600; text-decoration: none; }
.pills a:hover { background: var(--blue-50); color: var(--blue); border-color: var(--blue-100); }

/* Lists */
.doc-links { display: grid; gap: 10px; }
.doc-links a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 56px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; flex-wrap: wrap; }
.doc-links a:hover { border-color: var(--blue-100); background: var(--blue-50); }
.doc-links a > span:first-of-type { flex: 1; min-width: 180px; }
.doc-links .i { color: var(--blue); }
.link-list { display: grid; gap: 4px; }
.link-list a { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); font-weight: 600; text-decoration: none; }
.link-list a:hover { color: var(--blue); text-decoration: underline; }
.link-list .i { color: var(--blue); width: 1.1em; }
.link-list .ext { width: 1em; color: var(--muted); }
.ann-list { display: grid; gap: 14px; }
.ann-list li { padding: 18px 20px; }
.ann-list time { color: var(--muted); font-size: .875rem; }
.ann-list h3 { font-size: 1.1rem; margin: 4px 0 6px; }
.bells { list-style: decimal; padding-left: 1.4em; }
.plain li + li { margin-top: 4px; }
.help-box { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--yellow-50); border: 1px solid #f3dd97; }
.help-lines { margin-top: 10px; display: grid; gap: 6px; }
.help-lines a { color: var(--navy); }
@media (max-width: 560px) { .help-box { flex-direction: column; } }
.row-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.row-card p { flex: 1 1 280px; margin: 0; }

/* Contact list */
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .i { color: var(--blue); margin-top: 3px; }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; }
.contact-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.big-link { font-size: 1.25rem; font-weight: 800; color: var(--navy); text-decoration: none; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); height: clamp(320px, 40vw, 480px); background: var(--bg-soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Map card (footer) */
.map-card { position: relative; display: block; height: 170px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #eef1ea; text-decoration: none; color: var(--navy); box-shadow: var(--shadow); }
.map-art i { position: absolute; background: #fff; border-radius: 4px; }
.map-art i:nth-child(1) { left: -10%; right: -10%; top: 62%; height: 12px; transform: rotate(-12deg); background: #f8e7a8; }
.map-art i:nth-child(2) { left: 30%; top: -20%; bottom: -20%; width: 10px; transform: rotate(28deg); }
.map-art i:nth-child(3) { left: 70%; top: -20%; bottom: -20%; width: 8px; transform: rotate(-20deg); }
.map-pin { position: absolute; left: 16px; top: 22px; color: var(--blue); }
.map-pin .i { width: 38px; height: 38px; fill: var(--blue); stroke: #fff; }
.map-label { position: absolute; left: 58px; right: 12px; top: 16px; background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; font-size: .8125rem; }
.map-label strong { font-size: .9375rem; }
.map-open { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 700; margin-top: 4px; }
.map-open .i { width: 1em; }
.map-card:hover .map-open { text-decoration: underline; }

/* ---------- Transparency ---------- */
.transp-summary { display: grid; gap: 12px; margin-bottom: 24px; }
.transp-summary b { font-size: 1.4rem; color: var(--blue); }
.progress { height: 10px; background: #e9edf5; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--yellow)); border-radius: inherit; min-width: 4px; }
.doc-controls { display: grid; gap: 14px; margin-bottom: 24px; position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); padding: 12px 0; }
.search-field { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--border); border-radius: 12px; padding: 0 14px; background: #fff; max-width: 520px; }
.search-field:focus-within { border-color: var(--blue); box-shadow: var(--focus); }
.search-field .i { color: var(--muted); }
.search-field input { border: 0; outline: none; font: inherit; color: var(--text); min-height: 48px; width: 100%; background: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.doc-controls .chips { margin: 0; }
.chip-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font-weight: 600; font-size: .875rem; color: var(--navy); }
.chip-btn:hover { border-color: var(--blue); color: var(--blue); }
.chip-btn[aria-pressed='true'] { background: var(--blue); color: #fff; border-color: var(--blue); }
.doc-cat { margin-bottom: 36px; }
.doc-cat-h { display: flex; align-items: center; gap: 14px; font-size: 1.3rem; margin-bottom: 14px; scroll-margin-top: 140px; }
.doc-cat-h .ic-soft { width: 48px; height: 48px; }
.doc-cat-h .ic-soft .i { width: 22px; height: 22px; }
.doc-list { display: grid; gap: 12px; }
.doc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); scroll-margin-top: 160px; }
.doc-row:target { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-50), var(--shadow); }
.doc-row .ic-circle { width: 48px; height: 48px; }
.doc-row .ic-circle .i { width: 22px; height: 22px; }
.doc-main h3 { font-size: 1.05rem; margin-bottom: 4px; }
.doc-main > p { color: var(--muted); font-size: .9375rem; margin-bottom: 6px; }
.doc-main .doc-value { color: var(--navy); font-weight: 800; font-size: 1.05rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: .8125rem !important; }
.doc-actions { display: flex; flex-direction: column; gap: 8px; }
.doc-actions:empty { display: none; }
@media (max-width: 700px) {
  .doc-row { grid-template-columns: auto 1fr; padding: 16px; }
  .doc-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .doc-actions .btn { flex: 1 1 150px; }
  .doc-controls { position: static; }
}

/* Gallery */
.album-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.album-card { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); text-decoration: none; color: var(--navy); }
.album-card img, .album-card .ph { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.album-meta { display: flex; flex-direction: column; padding: 14px 16px; }
.album-meta span { color: var(--muted); font-size: .875rem; }
.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.photo-grid img { aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; width: 100%; }
.photo-grid a { display: block; border-radius: 12px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 12, 35, .9); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 90vw; text-align: center; }
.lightbox img { width: 90vw; height: 78vh; object-fit: contain; border-radius: 8px; margin: 0 auto; }
.lightbox figcaption { color: #fff; margin-top: 10px; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Sitemap & 404 */
.sitemap { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.sitemap > li { padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; }
.sitemap > li > a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--navy); text-decoration: none; font-size: 1.05rem; min-height: 44px; }
.sitemap ul { padding-left: 26px; display: grid; gap: 2px; }
.sitemap ul a { display: inline-block; padding: 6px 0; }
.notfound { text-align: center; max-width: 640px; }
.nf-code { font-size: 6rem; font-weight: 800; color: var(--blue); line-height: 1; margin-bottom: 10px; }
.notfound .btn { margin: 6px; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); margin-top: 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; padding-top: 48px; padding-bottom: 40px; }
.footer-h { font-size: 1.05rem; margin-bottom: 16px; position: relative; padding-bottom: 10px; }
.footer-h::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--yellow); }
.brand-sm img { width: 56px; height: 56px; }
.brand-sm .brand-name { font-size: 1.3rem; }
.brand-sm .brand-sub { font-size: .8125rem; }
.footer-official { margin-top: 16px; color: var(--muted); font-size: .875rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.footer-links a { display: inline-flex; min-height: 36px; align-items: center; color: var(--text); text-decoration: none; font-size: .9375rem; }
.footer-links a:hover, .footer-links a[aria-current='page'] { color: var(--blue); text-decoration: underline; }
.footer .contact-list { font-size: .9375rem; }
.hours { margin-top: 12px; display: grid; gap: 6px; font-size: .9375rem; }
.hours li { display: flex; gap: 12px; }
.hours .i { color: var(--blue); margin-top: 3px; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 14px; border: 1px solid var(--blue); border-radius: 999px; text-decoration: none; font-weight: 700; }
.footer-bottom { background: var(--navy); color: #dfe6f8; font-size: .875rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; }
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: #fff; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.footer-bottom a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; padding-top: 36px; } .footer-bottom-inner { padding-right: 80px; } }

.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--blue); box-shadow: var(--shadow-h); display: inline-flex; align-items: center; justify-content: center; }
.to-top:hover { background: var(--blue); color: #fff; }

/* ---------- Accessibility mode ---------- */
.a11y-panel { background: #000; color: #fff; }
.a11y-panel-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 10px; padding-bottom: 10px; }
.a11y-panel-title { font-weight: 800; }
.a11y-group { display: flex; align-items: center; gap: 6px; }
.a11y-panel button { min-height: 44px; min-width: 44px; padding: 0 12px; background: #fff; color: #000; border: 2px solid #fff; border-radius: 8px; font-weight: 800; }
.a11y-panel button[aria-pressed='true'] { background: #ffd700; border-color: #ffd700; }
.a11y-panel :focus-visible { box-shadow: 0 0 0 3px #000, 0 0 0 6px #ffd700; }

html.a11y { --text: #000; --navy: #000; --muted: #1a1a1a; --blue: #0026a3; --blue-d: #001566; --border: #000; --shadow: none; --shadow-h: none; --bg-soft: #fff; --blue-50: #fff; --focus: 0 0 0 3px #fff, 0 0 0 6px #000; }
html.a11y[data-fs='2'] { font-size: 118.75%; }
html.a11y[data-fs='3'] { font-size: 137.5%; }
html.a11y body { letter-spacing: .02em; line-height: 1.75; }
html.a11y a { text-decoration: underline; }
html.a11y .card, html.a11y .quick-card, html.a11y .news-card, html.a11y .doc-tile, html.a11y .doc-row, html.a11y .staff-card, html.a11y .feature-card, html.a11y .contact-strip, html.a11y .empty { border: 2px solid #000; }
html.a11y .hero { background: #fff; }
html.a11y .hero-media::after { background: rgba(255,255,255,.75); }
html.a11y .ic-soft, html.a11y .ic-circle { background: #fff !important; color: #000 !important; border: 2px solid #000; }
html.a11y .chip, html.a11y .status { background: #fff !important; color: #000 !important; border: 1.5px solid #000; }
html.a11y .btn-primary { background: #000; color: #fff; box-shadow: none; }
html.a11y .btn-outline { border-color: #000; color: #000; }
html.a11y .todo { background: #fff; color: #000; border-color: #000; }
html.a11y img, html.a11y .map-card { filter: grayscale(1) contrast(1.1); }
html.a11y-noimg img:not(.brand img), html.a11y-noimg .hero-media, html.a11y-noimg .ph, html.a11y-noimg .map-embed { visibility: hidden; }
html.a11y-noimg .hero-media, html.a11y-noimg .news-media, html.a11y-noimg .page-hero-media { display: none; }
html.a11y .main-nav a { font-size: .9375rem; }

@media print {
  .topbar, .header nav, .burger, .mobile-cta, .header-cta, .footer, .to-top, .a11y-panel, .doc-controls { display: none !important; }
  .header { position: static; }
}

/* Desktop header fit (1281–1500px) */
@media (min-width: 1341px) {
  .header-inner { gap: 14px; }
  .header .brand img { width: 60px; height: 60px; }
  .header .brand-sub { font-size: .875rem; }
  .header-cta { padding: .7em 1em; font-size: .9375rem; }
}
@media (max-width: 640px) {
  .header .brand { flex: 1 1 auto; }
  .header .brand-sub { white-space: normal; }
  .topbar-inner { min-height: 0; padding-top: 4px; padding-bottom: 4px; }
}
@media (max-width: 1100px) { .stat { padding: 14px; gap: 10px; } .stat > span:last-child { min-width: 0; } }
@media (min-width: 1100px) { .about-top { grid-template-columns: 1.3fr 2.3fr; } .about-top .director-photo { width: 120px; min-height: 160px; } }

/* Two-line school name & requisites */
.brand-name-2 { display: block; font-size: .72em; font-weight: 800; }
.requisites { display: grid; gap: 10px 32px; margin: 0; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.requisites div { border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.requisites dt { font-size: .8125rem; color: var(--muted); }
.requisites dd { margin: 0; font-weight: 700; color: var(--navy); }

/* School photo */
.school-photo { margin: 0; position: relative; width: 100%; }
.school-photo figcaption { position: absolute; right: 10px; bottom: 8px; z-index: 1; font-size: .75rem; color: #fff; background: rgba(13, 27, 76, .85); padding: 2px 8px; border-radius: 6px; }
.hero-media .school-photo figcaption { bottom: auto; top: 10px; }
.page-hero-media .school-photo img { aspect-ratio: 16 / 9; }
.topbar-inner { flex-wrap: nowrap; }
@media (max-width: 720px) { .topbar-inner { flex-wrap: wrap; } }
@media (min-width: 1341px) { .header-cta { padding: .7em .9em; } .main-nav a { padding: 10px 6px; } .main-nav a::after { left: 6px; right: 6px; } }
@media (max-width: 640px) { .header .brand-loc { display: none; } }
.footer-bottom .credit { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.footer-bottom .credit img { height: 24px; width: auto; display: block; }
.footer-bottom .credit a { min-height: 44px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.bullets { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.bullets li + li { margin-top: .4em; }
