/*
 * ZŠ Jeřabinov – mockup of an elementary school website (the variant with a slider).
 * 1 fonts · 2 tokens · 3 base · 4 pieces · 5 header · 6 hero slider · 7 today · 8 sections
 * 9 news · 10 calendar · 11 classes · 12 about · 13 gallery · 14 enrolment · 15 contact
 * 16 footer · 17 class page · 18 motion · 19 smaller screens
 */

/* ---------- 1 Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/instrument-serif-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* The serif's own digit 1 reads as a lowercase l ("26. 11." came out as "26. ll."), so the ten digits
   come from Newsreader. The faces of one family must share their weight descriptor to be combined. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/newsreader-digits.woff2) format("woff2"); unicode-range: U+0030-0039; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/newsreader-digits-italic.woff2) format("woff2"); unicode-range: U+0030-0039; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/instrument-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/instrument-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- 2 Tokens ---------- */
:root {
    --paper: #FBF8F1;
    --paper-2: #F4EFE3;
    --card: #FFFFFF;
    --ink: #14261F;
    --ink-2: #4A5B53;
    --ink-3: #6F7D75;
    --line: rgba(20, 38, 31, .14);
    --line-2: rgba(20, 38, 31, .07);

    --forest: #17402F;          /* the brand: a rowan leaf */
    --forest-deep: #0F2B20;
    --on-forest: #F3F0E6;
    --berry: #C8391F;           /* the accent: a rowan berry; fills */
    --berry-hover: #A92F18;
    --berry-ink: #B93019;       /* the accent as text */
    --berry-soft: #F8E6DC;
    --gold: #F2C66D;            /* highlights on dark photographs and panels */
    --gold-soft: #F6E9C8;
    --sage: #DFE8D8;
    --sage-2: #EDF2E7;

    --map-land: #EFF2E5;
    --map-park: #D3E1C5;
    --map-water: #B8D8E4;
    --map-road: #FFFFFF;
    --map-house: #DCD5C3;

    --shadow: 0 1px 2px rgba(20, 38, 31, .05), 0 14px 34px -14px rgba(20, 38, 31, .2);
    --shadow-l: 0 2px 6px rgba(20, 38, 31, .06), 0 30px 60px -24px rgba(20, 38, 31, .32);

    --r-s: 10px;
    --r-m: 18px;
    --r-l: 28px;
    --bar-h: 78px;
    --wrap: 1400px;
    --gutter: clamp(20px, 4vw, 56px);
    --frame: clamp(8px, 1.1vw, 18px);

    --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
    --paper: #0C1511;
    --paper-2: #111D17;
    --card: #16251E;
    --ink: #EEF1E7;
    --ink-2: #B4C0B6;
    --ink-3: #8A978E;
    --line: rgba(238, 241, 231, .15);
    --line-2: rgba(238, 241, 231, .08);

    --forest: #1A4733;
    --forest-deep: #12291F;
    --berry-ink: #FF8E70;
    --berry-soft: #33201A;
    --gold-soft: #3A3018;
    --sage: #22382D;
    --sage-2: #18281F;

    --map-land: #16241D;
    --map-park: #1D3527;
    --map-water: #23485A;
    --map-road: #2C3F35;
    --map-house: #3A4A40;

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
    --shadow-l: 0 2px 6px rgba(0, 0, 0, .3), 0 30px 60px -24px rgba(0, 0, 0, .7);
}

/* ---------- 3 Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 20px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--gold); color: #14261F; }
:focus-visible { outline: 2.5px solid var(--berry-ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--forest); color: var(--on-forest); padding: 12px 18px; border-radius: 999px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 4 Pieces ---------- */
.eyebrow { display: flex; align-items: center; gap: 12px; font: 650 12.5px/1.2 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-2); }
/* three rowan berries */
.berries { position: relative; width: 7px; height: 7px; margin: 0 9px 0 1px; border-radius: 50%; background: var(--berry-ink); box-shadow: 8px -4px 0 var(--berry-ink), 7px 5px 0 var(--berry-ink); flex: none; }
.h2 { font: 400 clamp(36px, 4.5vw, 64px)/1.02 var(--serif); letter-spacing: -.012em; margin-top: 14px; text-wrap: balance; }
.h2 em, .news-lead-title em { font-style: italic; color: var(--berry-ink); }
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; }

.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15.5px; color: var(--ink); white-space: nowrap; }
.more .ico { width: 18px; height: 18px; color: var(--berry-ink); transition: transform .25s var(--ease); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.more:hover .ico { transform: translateX(4px); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent; font: 650 16px/1.15 var(--sans); white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn .ico { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-sm { padding: 11px 17px; font-size: 14.5px; }
.btn-berry { background: var(--berry); color: #fff; }
.btn-berry:hover { background: var(--berry-hover); }
.btn-forest { background: var(--forest); color: var(--on-forest); }
.btn-forest:hover { background: var(--forest-deep); }
[data-theme="dark"] .btn-forest { background: var(--ink); color: var(--paper); }
[data-theme="dark"] .btn-forest:hover { background: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-glass { border-color: rgba(255, 255, 255, .46); background: rgba(255, 255, 255, .1); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: #fff; color: #14261F; border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.tag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; background: var(--sage); color: var(--ink); font: 650 12.5px/1.4 var(--sans); white-space: nowrap; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; color: var(--ink-3); }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--sage); color: var(--ink); font: 650 15px/1 var(--sans); letter-spacing: .02em; }

/* ---------- 5 Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); transition: box-shadow .25s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 16px 32px -24px rgba(20, 38, 31, .45); }
.bar { display: flex; align-items: center; gap: 20px; height: var(--bar-h); max-width: none; padding-inline: calc(var(--frame) + clamp(10px, 1.6vw, 26px)); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.mark-bg { fill: var(--forest); }
.mark-stem { fill: none; stroke: #F3F0E6; stroke-width: 2.2; stroke-linecap: round; }
.mark-leaf { fill: #F3F0E6; }
.mark-berry { fill: #E8553A; }
.brand-name { display: flex; flex-direction: column; }
.brand-name b { font: 400 28px/1 var(--serif); letter-spacing: -.01em; }
.brand-name small { margin-top: 3px; font: 650 10.5px/1 var(--sans); letter-spacing: .17em; text-transform: uppercase; color: var(--ink-2); }

.nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: 999px; font: 550 15.5px/1.2 var(--sans); transition: background .2s, color .2s; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--sage-2); }
.nav-link[data-current] { background: var(--sage); }
.nav-link .chev { width: 15px; height: 15px; stroke-width: 2; opacity: .6; transition: transform .25s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-foot { display: none; }

.panel { position: absolute; top: calc(100% + 16px); left: -12px; z-index: 5; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-l); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
.nav-link[aria-expanded="true"] + .panel { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
.panel-title { margin-bottom: 12px; font: 650 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.panel-classes { display: grid; grid-template-columns: auto auto 230px; gap: 28px; width: max-content; }
.chips { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; justify-content: start; }
.panel-col:nth-child(2) .chips { grid-template-columns: repeat(2, auto); }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 12px; border: 1px solid var(--line); border-radius: 999px; font: 400 22px/1 var(--serif); transition: background .2s, border-color .2s; }
.chip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.chip:hover, .chip[aria-current] { background: color-mix(in srgb, var(--c) 18%, var(--card)); border-color: var(--c); }
.panel-aside { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; background: var(--forest); color: var(--on-forest); font-size: 14px; line-height: 1.4; }
.panel-aside-label { font: 400 21px/1.1 var(--serif); padding-right: 26px; }
.panel-aside-text { opacity: .78; }
.panel-aside .ico { position: absolute; right: 14px; top: 14px; transition: transform .25s var(--ease); }
.panel-aside:hover .ico { transform: translate(2px, -2px); }
.panel-links { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 580px; padding: 12px; }
.panel-link { display: flex; align-items: center; gap: 13px; padding: 11px 12px; border-radius: 12px; transition: background .2s; }
.panel-link:hover { background: var(--sage-2); }
.panel-link .ico { box-sizing: content-box; padding: 10px; border-radius: 50%; background: var(--sage); color: var(--ink); }
.panel-link b { display: block; font-weight: 650; font-size: 15.5px; line-height: 1.3; }
.panel-link small { font-size: 13.5px; color: var(--ink-2); }
.panel-list { display: flex; flex-direction: column; min-width: 270px; padding: 10px; }
.panel-list a { padding: 10px 13px; border-radius: 10px; font-weight: 550; font-size: 15.5px; transition: background .2s; }
.panel-list a:hover { background: var(--sage-2); }

.bar-tools { display: flex; align-items: center; gap: 10px; flex: none; }
.tool { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); transition: background .2s, border-color .2s; }
.tool:hover { background: var(--sage-2); border-color: transparent; }
.ico-sun, [data-theme="dark"] .ico-moon { display: none; }
[data-theme="dark"] .ico-sun { display: block; }
.menu-toggle { display: none; align-items: center; gap: 9px; height: 44px; padding: 0 16px 0 18px; border-radius: 999px; background: var(--forest); color: var(--on-forest); font: 650 15px/1 var(--sans); }
.menu-toggle .ico-shut, .menu-toggle[aria-expanded="true"] .ico-open { display: none; }
.menu-toggle[aria-expanded="true"] .ico-shut { display: block; }

/* ---------- 6 Hero slider ---------- */
.hero { position: relative; isolation: isolate; margin-inline: var(--frame); height: clamp(560px, calc(100svh - var(--bar-h) - var(--frame)), 840px); border-radius: var(--r-l); overflow: hidden; background: #0B1E16; color: #fff; --pad: clamp(22px, 5vw, 78px); --lift: clamp(126px, 18vh, 172px); }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s 1s; }
.slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity 1s ease; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 9s linear; }
.slide.is-active .slide-img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 22, 15, .88) 0%, rgba(7, 22, 15, .62) 34%, rgba(7, 22, 15, .14) 66%, rgba(7, 22, 15, 0) 100%), linear-gradient(0deg, rgba(7, 22, 15, .82) 0%, rgba(7, 22, 15, 0) 38%); }
/* the text of the school stands, the photographs change behind it */
.hero-body { position: absolute; z-index: 2; left: var(--pad); bottom: var(--lift); width: min(780px, calc(100% - 2 * var(--pad))); }
.hero-body > * { animation: hero-rise .9s var(--ease) both; }
.hero-body > :nth-child(2) { animation-delay: .1s; }
.hero-body > :nth-child(3) { animation-delay: .22s; }
.hero-body > :nth-child(4) { animation-delay: .34s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(24px); } }
.slide-kicker { display: flex; align-items: center; gap: 13px; font: 550 15.5px/1.2 var(--sans); color: rgba(255, 255, 255, .9); }
.slide-kicker span { padding: 7px 13px; border-radius: 999px; background: var(--gold); color: #1D1706; font-weight: 700; font-size: 13px; letter-spacing: .03em; }
.slide-title { margin-top: 20px; font: 400 clamp(42px, 6vw, 98px)/.97 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.slide-title em { font-style: italic; color: var(--gold); }
.slide-lead { margin-top: 22px; max-width: 54ch; font-size: clamp(16px, 1.3vw, 19.5px); line-height: 1.55; color: rgba(255, 255, 255, .88); }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero-controls { position: absolute; z-index: 3; right: var(--pad); bottom: var(--lift); display: flex; gap: 10px; }
.round { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, color .2s, border-color .2s; }
.round:hover { background: #fff; color: #14261F; border-color: #fff; }
.round:focus-visible, .hero-tab:focus-visible, .hero .btn:focus-visible { outline-color: var(--gold); }
.round .ico-play, .hero.is-paused .round .ico-pause { display: none; }
.hero.is-paused .round .ico-play { display: block; fill: currentColor; }

.hero-tabs { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: clamp(20px, 3.6vh, 36px); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 30px); }
.hero-tab { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 18px 0 4px; text-align: left; color: rgba(255, 255, 255, .64); transition: color .3s; }
.hero-tab:hover, .hero-tab.is-active { color: #fff; }
.hero-tab-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.hero-tab-bar i { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-tab.is-active .hero-tab-bar i { animation: tab-fill var(--slide-time, 7s) linear forwards; }
.hero.is-paused .hero-tab-bar i, .hero:has(:focus-visible) .hero-tab-bar i { animation-play-state: paused; }
@keyframes tab-fill { to { transform: scaleX(1); } }
.hero-tab-no { font: italic 400 19px/1 var(--serif); color: var(--gold); }
.hero-tab-title { font: 600 15.5px/1.3 var(--sans); }

/* ---------- 7 Today + quick links ---------- */
.today { padding-top: clamp(16px, 2vw, 28px); }
.today-grid { display: grid; grid-template-columns: .9fr 1.3fr 1.1fr 1.15fr; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); overflow: hidden; }
.today-cell { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.2vw, 32px); border-left: 1px solid var(--line); }
.today-cell .more { margin-top: auto; padding-top: 6px; font-size: 15px; }
.today-date { border-left: 0; background: var(--forest); color: var(--on-forest); }
.today-date .eyebrow { color: rgba(243, 240, 230, .78); }
.today-date .berries { background: var(--gold); box-shadow: 8px -4px 0 var(--gold), 7px 5px 0 var(--gold); }
.today-day { display: flex; align-items: center; gap: 16px; margin-block: auto; }
.today-day b { font: 400 clamp(84px, 7.4vw, 112px)/.78 var(--serif); letter-spacing: -.02em; }
.today-day span { font-size: 16.5px; line-height: 1.3; font-weight: 550; }
.today-note { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.today-date .today-note { color: rgba(243, 240, 230, .72); }
.today-big { font: 400 clamp(26px, 2.2vw, 31px)/1.08 var(--serif); }
.today-menu li, .today-classes li { display: grid; grid-template-columns: 68px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.4; }
.today-menu li:first-child, .today-classes li:first-child { border-top: 0; padding-top: 0; }
.today-menu span { padding-top: 2px; font: 650 11.5px/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.today-classes li { grid-template-columns: 46px 1fr; align-items: baseline; }
.today-classes b { font: 400 21px/1 var(--serif); }
.today-classes a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: var(--berry-ink); }

.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 12px; }
.quick-item { display: flex; align-items: center; gap: 13px; padding: 14px 16px; border-radius: var(--r-m); background: var(--sage-2); transition: background .25s, color .25s, transform .25s var(--ease); }
.quick-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--card); color: var(--forest); transition: background .25s, color .25s; }
[data-theme="dark"] .quick-ico { color: var(--ink); }
.quick-text b { display: block; font-weight: 650; font-size: 15.5px; line-height: 1.25; }
.quick-text small { display: block; font-size: 13px; line-height: 1.3; color: var(--ink-2); transition: color .25s; }
.quick-item:hover { background: var(--forest); color: var(--on-forest); transform: translateY(-2px); }
.quick-item:hover small { color: rgba(243, 240, 230, .75); }
.quick-item:hover .quick-ico { background: var(--gold); color: #1D1706; }

/* ---------- 8 Sections ---------- */
.sec { padding-block: clamp(64px, 8.5vw, 132px); }
.sec-tint { background: var(--paper-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(30px, 4vw, 58px); }
.sec-lead { max-width: 40ch; color: var(--ink-2); }
/* a rounded panel in the frame of the page, as the hero */
.frame { margin-inline: var(--frame); border-radius: var(--r-l); padding-block: clamp(56px, 7.5vw, 112px); }
.frame-forest { background: var(--forest); color: var(--on-forest); --ink: #F3F0E6; --ink-2: rgba(243, 240, 230, .74); --ink-3: rgba(243, 240, 230, .58); --line: rgba(243, 240, 230, .17); --line-2: rgba(243, 240, 230, .09); --berry-ink: var(--gold); }
.frame-forest .tag { background: rgba(243, 240, 230, .13); }
.frame-forest :focus-visible { outline-color: var(--gold); }
.frame-blush { background: var(--berry-soft); }

/* ---------- 9 News ---------- */
.news { display: grid; grid-template-columns: 1.22fr 1fr; gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.news-lead, .news-row { position: relative; }
.news-lead-media { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-l); overflow: hidden; background: var(--sage); }
.news-lead-media img, .news-row-media img, .tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.news-lead:hover img, .news-row:hover img, .tile:hover img { transform: scale(1.045); }
.news-lead-body { padding-top: 24px; }
.news-lead-title { margin: 14px 0 12px; font: 400 clamp(28px, 3vw, 44px)/1.06 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.news-lead-body > p:not(.meta) { max-width: 62ch; margin-bottom: 18px; color: var(--ink-2); }
.news-lead-title a::after, .news-row h3 a::after { content: ""; position: absolute; inset: 0; }
.news-lead .more { position: relative; }
.news-row { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); }
.news-row:first-child { padding-top: 0; border-top: 0; }
.news-row:last-child { padding-bottom: 0; }
.news-row-media { aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; background: var(--sage); }
.news-row h3 { margin-top: 9px; font: 600 19px/1.3 var(--sans); text-wrap: pretty; }
.news-row p { margin-top: 5px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
/* a message without a photo: its day stands where the picture would */
.news-row-date { display: grid; place-content: center; justify-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-m); background: var(--sage-2); }
.news-row-date b { font: 400 50px/.86 var(--serif); letter-spacing: -.02em; }
.news-row-date span { margin-top: 8px; font: 650 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.news-row.is-plain h3 { margin-top: 0; }
.big-date { display: flex; align-items: center; gap: 14px; }
.big-date b { font: 400 clamp(64px, 6vw, 96px)/.8 var(--serif); letter-spacing: -.02em; color: var(--berry-ink); }
.big-date span { font: 650 12.5px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.news-lead .big-date, .news-lead-deco { display: none; }
.news[data-lead="plain"] .news-lead { align-self: stretch; display: flex; padding: clamp(26px, 4vw, 60px); border-radius: var(--r-l); background: var(--sage-2); overflow: hidden; }
.news[data-lead="plain"] .news-lead-media, .news[data-lead="plain"] .news-lead .meta { display: none; }
.news[data-lead="plain"] .news-lead-body { position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%; padding-top: 0; }
.news[data-lead="plain"] .big-date { display: flex; margin-bottom: auto; padding-bottom: clamp(36px, 6vw, 96px); }
.news[data-lead="plain"] .news-lead-title { margin-top: 0; font-size: clamp(34px, 4vw, 62px); line-height: 1; }
.news[data-lead="plain"] .news-lead-body > p { font-size: clamp(16.5px, 1.3vw, 19px); line-height: 1.55; }
.news[data-lead="plain"] .news-lead-deco { display: block; position: absolute; right: clamp(-46px, -2.4vw, -18px); top: clamp(-58px, -3vw, -26px); width: clamp(170px, 19vw, 290px); pointer-events: none; }
.deco-stem { fill: none; stroke: color-mix(in srgb, var(--ink) 34%, transparent); stroke-width: 1.1; stroke-linecap: round; }
.deco-leaf { fill: color-mix(in srgb, var(--ink) 15%, transparent); }
.deco-berry { fill: var(--berry); }
/* a switch of the mockup, not a part of the website */
.demo { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 26px; padding: 5px 5px 5px 16px; border: 1.5px dashed var(--ink-3); border-radius: 999px; font-size: 13.5px; color: var(--ink-2); }
.demo span { margin-right: 8px; }
.demo button { padding: 7px 14px; border-radius: 999px; font-weight: 650; color: var(--ink-2); transition: background .2s, color .2s; }
.demo button:hover { color: var(--ink); }
.demo button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.news-row:hover h3, .news-lead:hover .news-lead-title { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--berry-ink); }

/* ---------- 10 Calendar ---------- */
.cal { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 5.5vw, 96px); align-items: start; }
.events { border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 84px 1fr auto 22px; gap: 22px; align-items: center; padding: 20px 14px 20px 6px; border-bottom: 1px solid var(--line); transition: background .25s, padding .25s var(--ease); }
.event:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); padding-left: 16px; }
.event-date b { display: block; font: 400 50px/.86 var(--serif); letter-spacing: -.02em; }
.event-date span { display: block; margin-top: 7px; font: 650 11.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.event-body b { display: block; font-weight: 600; font-size: 19.5px; line-height: 1.3; }
.event-body small { display: block; margin-top: 2px; font-size: 14.5px; color: var(--ink-2); }
.event > .ico { grid-column: 4; opacity: .5; transition: transform .25s var(--ease), opacity .25s; }
.event:hover > .ico { opacity: 1; transform: translateX(4px); }

.month { padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(243, 240, 230, .06); }
.month-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.month-head b { font: 400 34px/1 var(--serif); }
.month-head span { color: var(--ink-2); }
.month-week, .month-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.month-week li { padding-bottom: 8px; font: 650 11.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.month-grid li { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: 15.5px; }
.month-grid li:nth-child(7n), .month-grid li:nth-child(7n+1) { color: var(--ink-3); }
.month-grid .is-today { background: #F3F0E6; color: #17402F; font-weight: 700; }
.month-grid .is-off { color: var(--gold); box-shadow: inset 0 0 0 1.5px rgba(242, 198, 109, .55); }
.month-grid .has-event a { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--berry); color: #fff; font-weight: 650; transition: transform .2s var(--ease); }
.month-grid .has-event a:hover { transform: scale(1.12); }
.month-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.dot { width: 10px; height: 10px; margin-left: 10px; border-radius: 50%; }
.dot:first-child { margin-left: 0; }
.dot-today { background: #F3F0E6; }
.dot-event { background: var(--berry); }
.dot-off { box-shadow: inset 0 0 0 1.5px var(--gold); }
.cal-note { display: flex; gap: 11px; margin: 20px 2px; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.cal-note .ico { margin-top: 1px; color: var(--gold); }
.cal-side .btn { width: 100%; margin-top: 14px; }

/* ---------- 11 Classes ---------- */
.grades { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.grade { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 186px; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.grade::before { content: ""; position: absolute; right: -34px; top: -34px; width: 104px; height: 104px; border-radius: 50%; background: var(--c); transition: transform .5s var(--ease); }
.grade::after { content: ""; position: absolute; right: 21px; top: 21px; width: 18px; height: 18px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8.5 7H17v8.500'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8.5 7H17v8.500'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; transform: translate(-6px, 6px); transition: opacity .25s, transform .3s var(--ease); }
.grade:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: var(--shadow); }
.grade:hover::before { transform: scale(1.22); }
.grade:hover::after { opacity: 1; transform: none; }
.grade-name { margin-bottom: auto; font: 400 60px/1 var(--serif); letter-spacing: -.02em; }
.grade-teacher { font-weight: 600; font-size: 15px; line-height: 1.3; }
.grade-meta { font-size: 13.5px; color: var(--ink-3); }

/* ---------- 12 About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(36px, 6.5vw, 112px); align-items: center; }
.about-media { position: relative; padding: 0 15% 13% 0; }
.about-img-a { width: 100%; aspect-ratio: 4 / 4.7; object-fit: cover; object-position: 60% 50%; border-radius: var(--r-l); }
.about-img-b { position: absolute; right: 0; bottom: 0; width: 47%; aspect-ratio: 1; object-fit: cover; border: 8px solid var(--paper-2); border-radius: var(--r-l); }
.about-badge { position: absolute; left: -22px; top: 30px; display: grid; place-content: center; width: 138px; height: 138px; border-radius: 50%; background: var(--berry); color: #fff; text-align: center; transform: rotate(-9deg); }
.about-badge span { font: 650 10.5px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.about-badge b { font: 400 46px/1 var(--serif); }
.about-body .lead { margin-top: 24px; }
.about-body .lead + p { margin-top: 16px; color: var(--ink-2); }
.stats { display: flex; flex-wrap: wrap; gap: 20px clamp(24px, 3.4vw, 52px); margin: 34px 0; padding-top: 30px; border-top: 1px solid var(--line); }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font: 400 clamp(46px, 4.6vw, 70px)/.95 var(--serif); letter-spacing: -.02em; }
.stats dt { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- 13 Gallery ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, clamp(180px, 19vw, 290px)); grid-template-areas: "a a b c" "a a d e"; gap: 14px; }
.tile { position: relative; border-radius: var(--r-l); overflow: hidden; background: #0B1E16; color: #fff; }
.tile-a { grid-area: a; } .tile-b { grid-area: b; } .tile-c { grid-area: c; } .tile-d { grid-area: d; } .tile-e { grid-area: e; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 22, 15, .8), rgba(7, 22, 15, 0) 58%); }
.tile-cap { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.tile-cap b { font: 400 25px/1.08 var(--serif); }
.tile-a .tile-cap b { font-size: clamp(30px, 3.2vw, 44px); }
.tile-cap small { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; opacity: .88; }
.tile-cap .ico { width: 16px; height: 16px; }
.tile:focus-visible { outline-offset: 4px; }

/* ---------- 14 Enrolment ---------- */
.enrol { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(36px, 7vw, 120px); align-items: center; }
.enrol-body .lead { margin-top: 22px; max-width: 54ch; }
.steps { margin: 30px 0 32px; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid var(--line); }
.steps i { font: italic 400 34px/1 var(--serif); color: var(--berry-ink); }
.steps span { font-size: 15.5px; color: var(--ink-2); }
.steps b { display: block; font-weight: 650; font-size: 17px; color: var(--ink); }
.enrol-media { position: relative; }
.enrol-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-l); transform: rotate(2deg); }
.enrol-media figcaption { position: absolute; left: clamp(-56px, -4vw, -20px); bottom: 34px; max-width: 250px; padding: 16px 20px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow); font: italic 400 23px/1.18 var(--serif); }
.enrol-media figcaption span { display: block; margin-top: 10px; font: 600 13px/1 var(--sans); color: var(--ink-3); }

/* ---------- 15 Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 104px); align-items: stretch; }
.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin: 34px 0; }
.contact-list li { display: flex; gap: 14px; font-size: 16.5px; line-height: 1.4; }
.contact-list .ico { margin-top: 3px; color: var(--berry-ink); }
.contact-list b { display: block; margin-bottom: 3px; font: 650 11.5px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.people { display: flex; flex-wrap: wrap; gap: 18px 36px; padding: 24px 0; margin-bottom: 30px; border-block: 1px solid var(--line); }
.person { display: flex; align-items: center; gap: 13px; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); }
.person b { display: block; font-weight: 650; font-size: 16px; color: var(--ink); }
.map { position: relative; min-height: 460px; border-radius: var(--r-l); overflow: hidden; background: var(--map-land); }
.map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-land { fill: var(--map-land); }
.map-park { fill: var(--map-park); }
.map-water { fill: none; stroke: var(--map-water); stroke-width: 15; stroke-linecap: round; }
.map-road path { fill: none; stroke: var(--map-road); stroke-width: 15; stroke-linecap: round; }
.map-house rect { fill: var(--map-house); }
.map-label text { font: 650 12.5px var(--sans); letter-spacing: .06em; fill: var(--ink-3); }
.map-label .map-label-water { font-style: italic; fill: #5C8FA3; }
.map-school rect { fill: var(--forest); }
[data-theme="dark"] .map-school rect { fill: #3F7E60; }
.map-pin path { fill: var(--berry); }
.map-pin circle { fill: #fff; }
.map-card { position: absolute; left: 18px; bottom: 18px; width: min(350px, calc(100% - 36px)); padding: 18px 20px; border-radius: var(--r-m); background: var(--card); box-shadow: var(--shadow); font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.map-card b { display: block; margin-bottom: 3px; font: 400 25px/1.1 var(--serif); color: var(--ink); }
.map-card .more { margin-top: 10px; display: flex; font-size: 14.5px; }

/* ---------- 16 Footer ---------- */
.site-footer { margin: clamp(8px, 2vw, 24px) var(--frame) var(--frame); padding: clamp(44px, 5.5vw, 80px) 0 26px; border-radius: var(--r-l); background: var(--forest-deep); color: #F3F0E6; --ink: #F3F0E6; --ink-2: rgba(243, 240, 230, .74); --line: rgba(243, 240, 230, .17); }
.site-footer :focus-visible { outline-color: var(--gold); }
.site-footer .mark-bg { fill: rgba(243, 240, 230, .12); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.25fr; gap: 36px clamp(24px, 4vw, 64px); }
.foot-brand p { max-width: 40ch; margin-top: 20px; font-size: 15px; color: var(--ink-2); }
.foot-brand .foot-founder { margin-top: 10px; }
.foot-title { margin-bottom: 14px; font: 400 23px/1.1 var(--serif); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 15px; color: var(--ink-2); }
.foot-col a:hover, .foot-legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: clamp(36px, 5vw, 60px); padding-top: 22px; border-top: 1px solid var(--line); font-size: 13.5px; color: rgba(243, 240, 230, .62); }
.foot-legal nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- 17 Class page ---------- */
html:has(.subnav) { scroll-padding-top: calc(var(--bar-h) + 78px); }
.class-hero { padding-block: clamp(36px, 5vw, 76px); background: color-mix(in srgb, var(--c) 13%, var(--paper)); }
[data-theme="dark"] .class-hero { background: color-mix(in srgb, var(--c) 20%, var(--paper)); }
.class-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5.5vw, 96px); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(22px, 3vw, 36px); font-size: 14.5px; color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.class-h1 { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); font: 400 clamp(38px, 4.8vw, 74px)/1 var(--serif); letter-spacing: -.012em; text-wrap: balance; }
.class-h1 em { font-style: italic; color: var(--berry-ink); }
.class-no { display: grid; place-items: center; flex: none; width: clamp(96px, 10.5vw, 148px); aspect-ratio: 1; border-radius: 50%; background: var(--c); color: #fff; font-size: clamp(40px, 4.4vw, 62px); letter-spacing: -.02em; }
.class-hero .lead { margin-top: 28px; max-width: 58ch; }
.class-teacher { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.class-teacher b { display: block; font-weight: 650; font-size: 17px; color: var(--ink); }
.class-teacher a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* timetable, marks and absences live in the school's information system */
.class-teacher .class-system { display: inline-flex; align-items: center; gap: 9px; margin-left: auto; padding: 11px 18px; border-radius: 999px; background: var(--card); font-weight: 650; font-size: 14.5px; color: var(--ink); text-decoration: none; transition: background .2s, color .2s; }
.class-system .ico { width: 18px; height: 18px; color: var(--berry-ink); transition: color .2s; }
.class-teacher .class-system:hover { background: var(--ink); color: var(--paper); }
.class-system:hover .ico { color: inherit; }
.avatar.is-lead { background: var(--c, var(--forest)); color: #fff; }
.class-photo { position: relative; }
.class-photo img { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; border-radius: var(--r-l); transform: rotate(1.6deg); }
.class-photo figcaption { position: absolute; right: 18px; bottom: 18px; padding: 7px 13px; border-radius: 999px; background: rgba(7, 22, 15, .62); color: #fff; font-size: 13px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.subnav { position: sticky; top: var(--bar-h); z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 15px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: background .2s, color .2s; }
.subnav a:hover { background: var(--sage-2); color: var(--ink); }
.subnav a.is-active { background: var(--forest); color: var(--on-forest); }
[data-theme="dark"] .subnav a.is-active { background: var(--ink); color: var(--paper); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 34px); }
.card { position: relative; }
.card-media { display: block; aspect-ratio: 3 / 2; border-radius: var(--r-l); overflow: hidden; background: var(--sage); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover img { transform: scale(1.045); }
.card-body { padding-top: 20px; }
.card h3 { margin: 11px 0 8px; font: 600 21px/1.26 var(--sans); text-wrap: pretty; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: var(--berry-ink); }
.card-body > p:not(.meta) { font-size: 15.5px; color: var(--ink-2); }
/* a message without a photo */
.card.is-plain { display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 34px); border-radius: var(--r-l); background: color-mix(in srgb, var(--c, var(--forest)) 9%, var(--card)); }
.card.is-plain .big-date { margin-bottom: auto; padding-bottom: 34px; }
.card.is-plain .big-date b { font-size: clamp(58px, 5vw, 80px); }
.card.is-plain .card-body { padding-top: 0; }
.card.is-plain h3 { margin-top: 0; font-size: 24px; }

.tag-now { background: var(--gold) !important; color: #1D1706; }
.terms .month-head b { font-size: 28px; }
.terms-list li { display: grid; grid-template-columns: 128px 1fr; gap: 12px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.terms-list time { font: 400 22px/1 var(--serif); color: var(--gold); }

.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(36px, 5.5vw, 96px); align-items: start; }
.h2-s { font-size: clamp(32px, 3.4vw, 48px); margin-bottom: clamp(22px, 2.6vw, 34px); }
.staff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.staff { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.staff b { display: block; font-weight: 650; font-size: 16px; color: var(--ink); }
.docs { border-top: 1px solid var(--line); }
.doc { display: grid; grid-template-columns: 46px 1fr 22px; gap: 16px; align-items: center; padding: 15px 10px 15px 4px; border-bottom: 1px solid var(--line); transition: background .25s, padding .25s var(--ease); }
.doc:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); padding-left: 12px; }
.doc-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--berry-soft); color: var(--berry-ink); }
.doc b { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.doc small { font-size: 13.5px; color: var(--ink-3); }
.doc > .ico { color: var(--ink-3); }

/* ---------- 18 Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01s !important; transition-delay: 0s !important; }
    .slide-img { transform: none; }
    .hero-tab.is-active .hero-tab-bar i { animation: none; transform: scaleX(1); }
    .hero-body > * { animation: none; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 19 Smaller screens ---------- */
@media (max-width: 1240px) {
    .quick { grid-template-columns: repeat(3, 1fr); }
    .today-grid { grid-template-columns: 1fr 1fr; }
    .today-cell:nth-child(3) { border-left: 0; }
    .today-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
    .today-day { margin-block: 8px; }
}

@media (max-width: 1100px) {
    :root { --bar-h: 68px; }
    .menu-toggle { display: inline-flex; }
    .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; height: calc(100dvh - var(--bar-h)); margin: 0; padding: 4px var(--gutter) 40px; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-top: 1px solid var(--line); }
    .nav.is-open { display: block; }
    html.menu-open { overflow: hidden; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
    .nav-item { border-bottom: 1px solid var(--line); }
    .nav-link { width: 100%; justify-content: space-between; padding: 17px 2px; border-radius: 0; font: 400 30px/1.1 var(--serif); }
    .nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[data-current] { background: none; }
    .nav-link[data-current] { color: var(--berry-ink); }
    .nav-link .chev { width: 22px; height: 22px; }
    .panel, .nav-link[aria-expanded="true"] + .panel { position: static; display: none; width: auto; padding: 0 0 20px; border: 0; border-radius: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
    .nav-link[aria-expanded="true"] + .panel-classes { display: grid; grid-template-columns: 1fr; gap: 16px; }
    .nav-link[aria-expanded="true"] + .panel-links { display: grid; grid-template-columns: 1fr 1fr; padding-inline: 0; }
    .nav-link[aria-expanded="true"] + .panel-list { display: flex; padding-inline: 0; }
    .chips, .panel-col:nth-child(2) .chips { display: flex; flex-wrap: wrap; }
    .panel-link { padding-inline: 0; }
    .panel-list a { padding-inline: 2px; }
    .nav-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding-top: 26px; }
    .nav-foot-line { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15.5px; }
    .nav-foot-line .ico { color: var(--berry-ink); }

    .news { grid-template-columns: 1fr; }
    .news-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
    .news-row:nth-child(2) { padding-top: 0; border-top: 0; }
    .cal { grid-template-columns: 1fr; }
    .cal-side { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 8px 32px; align-items: start; }
    .cal-side .month { grid-row: span 2; }
    .cal-note { margin-top: 4px; }
    .cal-side .btn { width: auto; margin-top: 0; justify-self: start; }
    .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: clamp(220px, 38vw, 340px) repeat(2, clamp(150px, 24vw, 220px)); grid-template-areas: "a a" "b c" "d e"; }
}

@media (max-width: 920px) {
    .class-hero-grid, .duo { grid-template-columns: 1fr; }
    .class-photo { max-width: 460px; }
    .class-teacher .class-system { margin-left: 0; }
    .cards { grid-template-columns: 1fr 1fr; }
    .cards .card:nth-child(3) { display: none; }
    .grades { grid-template-columns: 1fr 1fr; gap: 10px; }
    .grade { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0 14px; min-height: 0; padding: 16px 62px 16px 20px; border-radius: 20px; }
    .grade::before { right: -30px; top: 50%; width: 74px; height: 74px; margin-top: -37px; }
    .grade::after { display: none; }
    .grade-name { margin: 0; font-size: 40px; }
    .grade-teacher { flex: 1; min-width: 0; }
    .grade-meta { flex-basis: 100%; }
    .about-grid, .enrol, .contact { grid-template-columns: 1fr; }
    .about-media { max-width: 560px; }
    .about-badge { left: -8px; }
    .enrol-media { max-width: 380px; margin-left: clamp(20px, 6vw, 56px); order: -1; }
    .enrol-media { margin-bottom: 30px; }
    .enrol-media figcaption { left: -20px; bottom: -30px; }
    .map { min-height: 380px; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .foot-brand { grid-column: 1 / -1; }
    .sec-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
    .class-h1 { flex-direction: column; align-items: flex-start; }
    .cards, .staff-grid { grid-template-columns: 1fr; }
    .cards .card:nth-child(3) { display: block; }
    .terms-list li { grid-template-columns: 1fr; gap: 4px; }
    body { font-size: 16.5px; }
    .bar-edookit { display: none; }
    .brand-mark { width: 40px; height: 40px; }
    .brand-name b { font-size: 25px; }
    .hero { height: clamp(540px, calc(100svh - var(--bar-h) - var(--frame)), 700px); border-radius: 22px; --pad: 20px; --lift: 96px; }
    .slide::after { background: linear-gradient(0deg, rgba(7, 22, 15, .94) 0%, rgba(7, 22, 15, .78) 40%, rgba(7, 22, 15, .1) 80%); }
    .slide-title { font-size: clamp(38px, 10.6vw, 52px); margin-top: 16px; }
    .slide-lead { margin-top: 14px; font-size: 15.5px; line-height: 1.5; }
    .slide-actions { margin-top: 20px; }
    .slide-actions .btn { padding: 13px 19px; font-size: 15px; }
    .slide-kicker { font-size: 14px; gap: 10px; }
    .hero-controls { bottom: 20px; gap: 8px; }
    .round { width: 44px; height: 44px; }
    .hero-tabs { right: calc(var(--pad) + 164px); bottom: 34px; gap: 8px; }
    .hero-tab { padding: 8px 0; }
    .hero-tab-no, .hero-tab-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .hero-tab-bar { top: 6px; height: 3px; }

    .today-grid { grid-template-columns: 1fr; border-radius: 22px; }
    .today-cell { border-left: 0; }
    .today-cell + .today-cell { border-top: 1px solid var(--line); }
    .today-day b { font-size: 84px; }
    .quick { grid-template-columns: 1fr 1fr; gap: 8px; }
    .quick-item { padding: 12px; gap: 10px; }
    .quick-ico { width: 38px; height: 38px; }
    .quick-text b { font-size: 15px; }
    .quick-text small { font-size: 12.5px; }

    .news-list { grid-template-columns: 1fr; }
    .news-row:nth-child(2) { padding-top: 20px; border-top: 1px solid var(--line); }
    .news-row { grid-template-columns: 104px 1fr; gap: 16px; }
    .news-row h3 { font-size: 17px; }
    .frame { border-radius: 22px; }
    .event { grid-template-columns: 62px 1fr 20px; gap: 14px; padding-right: 4px; }
    .event .tag { display: none; }
    .event-date b { font-size: 40px; }
    .event-body b { font-size: 17.5px; }
    .cal-side { grid-template-columns: 1fr; }
    .cal-side .btn { width: 100%; }
    .steps li { grid-template-columns: 34px 1fr; gap: 12px; }
    .contact-list { grid-template-columns: 1fr; gap: 18px; }
    .mosaic { gap: 8px; }
    .tile { border-radius: 20px; }
    .tile-cap { left: 14px; right: 14px; bottom: 12px; }
    .tile-cap b { font-size: 19px; }
    .stats { gap: 18px 30px; }
    .site-footer { border-radius: 22px; }
}

@media (max-width: 520px) {
    .grades { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; }
    .panel-links, .nav-link[aria-expanded="true"] + .panel-links { grid-template-columns: 1fr; }
    .menu-toggle-label { display: none; }
    .menu-toggle { padding: 0 13px; }
    .about-badge { width: 112px; height: 112px; }
    .about-badge b { font-size: 36px; }
}
