@font-face {
    font-family: Inter;
    src: url("inter-cyr.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
    font-family: Inter;
    src: url("inter-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2191-2199;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    --yellow: #ffd400;
    --ink: #111;
    --quiet: #373737;
    --line: #deddd6;
    --warm: #fff9e5;
    --edge: clamp(1rem, 4.5vw, 4rem);
    margin: 0;
    background: #fff;
    color: var(--ink);
    font: 400 1rem/1.6 Inter, system-ui, sans-serif;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:where(.article-body, .legal-main :is(p, li, dd)) a[href] {
    background-color: color-mix(in srgb, var(--yellow) 25%, transparent);
    border-radius: .15em; font-weight: 700;
}
:where(.article-body, .legal-main :is(p, li, dd)) a[href]:hover {
    background-color: color-mix(in srgb, var(--yellow) 38%, transparent);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #111; outline-offset: 4px; }
:target { scroll-margin-top: 1rem; }
.shell { width: min(100% - var(--edge) * 2, 79rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 6; top: .75rem; left: .75rem; padding: .65rem .9rem; background: var(--yellow); color: var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: #fff; }
.site-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 1.5fr) minmax(0, 1fr); align-items: center; gap: .8rem clamp(1rem, 3vw, 2.5rem); min-height: 86px; padding-block: .75rem; }
.school-brand { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; width: fit-content; min-height: 45px; }
.school-mark { width: 44px; height: 44px; flex: 0 0 44px; }
.school-brand strong, .school-brand small { display: block; }
.school-brand strong { font-size: clamp(1.16rem, 2.3vw, 1.65rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.04; }
.school-brand small { margin-top: .2rem; font-size: .74rem; line-height: 1.3; }
.site-search { position: relative; display: flex; align-items: center; gap: .35rem; border: 1px solid var(--line); border-radius: 999px; padding: .22rem; background: #fafaf7; min-width: 0; }
.site-search input { flex: 1 1 0; min-width: 0; width: 100%; min-height: 44px; padding: .2rem 1rem; border: 0; border-radius: 999px; background: transparent; }
.site-search input::placeholder { color: var(--quiet); opacity: 1; }
.site-search button, .header-actions button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; border: 1px solid transparent; border-radius: 999px; padding: .42rem .9rem; background: var(--yellow); font-size: .85rem; font-weight: 750; white-space: nowrap; }
.search-icon { position: relative; width: .77rem; height: .77rem; border: 1.8px solid currentColor; border-radius: 50%; }
.search-icon::after { position: absolute; content: ""; width: .36rem; height: 1.8px; background: currentColor; bottom: -.15rem; right: -.26rem; transform: rotate(45deg); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: .4rem; }
.header-actions .teacher-toggle { border-color: var(--line); background: #fff; }
.header-actions .teacher-toggle[aria-pressed="true"] { border-color: var(--yellow); background: var(--yellow); }
.header-actions .navigation-toggle { display: none; }
.navigation-row { border-block: 1px solid #efeee7; }
.navigation-inner { display: flex; align-items: center; justify-content: space-between; gap: .25rem 1rem; min-height: 52px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .2rem clamp(.8rem, 2.5vw, 2rem); margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .93rem; font-weight: 700; }
.site-nav a:hover { background: var(--warm); }
.site-submenu { position: relative; }
.site-submenu summary { cursor: pointer; min-height: 44px; padding-block: .65rem; font-size: .93rem; font-weight: 700; }
.site-nav .site-submenu ul { position: absolute; z-index: 3; inset-inline-start: 0; display: grid; min-width: 12rem; padding: .35rem .75rem; background: #fff; border: 1px solid var(--line); border-radius: .6rem; }
.preview-label { padding-block: .35rem; font-size: .8rem; white-space: nowrap; color: var(--quiet); }
.editor-strip { border-bottom: 1px solid #edd478; background: var(--warm); }
.editor-strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; padding-block: .5rem; }
.editor-strip span { margin-inline-end: auto; font-weight: 650; font-size: .9rem; }
.editor-strip :is(button, .admin-panel-link), [data-edit-contact] { min-height: 44px; border: 1px solid #b9ad83; border-radius: 999px; padding: .35rem .8rem; background: #fff; font-weight: 650; }
.admin-panel-link { display: inline-flex; align-items: center; text-decoration: none; }

.school-hero { isolation: isolate; overflow: clip; background: var(--warm); }
.hero-layout { min-height: clamp(480px, 42vw, 620px); display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.hero-text { min-width: 0; align-self: center; z-index: 1; padding-block: 3.7rem 4.1rem; animation: hero-in 420ms ease-out both; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .77rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: .62rem; height: .62rem; border: 2px solid var(--ink); background: var(--yellow); border-radius: 50%; }
.hero-text h1 { margin-block: .6rem 1.2rem; font-size: clamp(3.6rem, 7.45vw, 7.3rem); line-height: 1.06; font-weight: 800; letter-spacing: -.062em; }
.highlight { display: inline-block; padding: .015em .11em .075em .085em; margin-inline-start: -.05em; background: var(--yellow); border-radius: .14em; }
.hero-description { max-width: 31ch; font-size: clamp(1.02rem, 1.6vw, 1.25rem); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem .9rem; margin-top: 1.65rem; }
.hero-actions a { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 51px; padding: .55rem .65rem .55rem 1.08rem; border-radius: 999px; text-decoration: none; font-size: .93rem; font-weight: 800; }
.primary-action { background: var(--yellow); border: 1px solid var(--yellow); }
.secondary-action { background: #fff; border: 1px solid #ded5b7; }
.hero-actions a span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #fff; font-size: 1.1rem; transition: transform 160ms ease; }
.hero-actions .secondary-action span { background: var(--warm); }
.hero-actions a:hover span { transform: translate(.12rem, -.12rem); }
.hero-photo { position: relative; align-self: stretch; display: grid; place-items: end center; min-width: 0; isolation: isolate; }
.hero-sun { position: absolute; z-index: -1; width: min(93%, 34rem); aspect-ratio: 1; border-radius: 50%; bottom: -15%; right: 1%; background: var(--yellow); }
.hero-photo img { width: min(94%, 30.5rem); height: auto; max-height: min(44vw, 36rem); object-fit: contain; object-position: bottom center; animation: portrait-in 480ms ease-out both; }

.useful-section { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem clamp(1.3rem, 3vw, 2.8rem); padding-block: 1.65rem; }
.useful-section h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 800; letter-spacing: -.05em; }
.useful-links { display: flex; flex-wrap: wrap; gap: .55rem .75rem; }
.useful-links a { display: inline-flex; align-items: center; gap: 1.05rem; justify-content: space-between; min-height: 48px; padding: .45rem .55rem .45rem .95rem; border: 1px solid #e3d9aa; border-radius: 999px; background: #fffdf3; font-size: .91rem; font-weight: 750; text-decoration: none; }
.useful-links a span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--yellow); font-size: 1.01rem; }
.useful-links a:hover { border-color: #ac8f00; }

.news-section { padding-block: clamp(2.7rem, 6vw, 5.2rem); background: #faf9f4; }
.news-section h2, .school-details h2 { font-size: clamp(2rem, 4.5vw, 4.25rem); font-weight: 800; line-height: 1.06; letter-spacing: -.058em; }
.news-section h2 { margin-bottom: 1.4rem; }
.news-section h2 span { color: #9b7500; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: start; }
.feature-story { border-radius: 1.65rem; overflow: hidden; background: #fff; border: 1px solid #e9e7da; }
.feature-photo { height: clamp(200px, 24vw, 345px); background: var(--warm); overflow: hidden; }
.feature-photo img { height: 100%; object-fit: cover; object-position: center 55%; }
.feature-text { padding: clamp(1.1rem, 2.8vw, 2rem); }
.news-layout time { display: inline-block; padding: .2rem .65rem; border-radius: 999px; background: var(--yellow); font-size: .81rem; font-weight: 750; }
.news-layout h3 { margin-block: .58rem .4rem; font-size: clamp(1.35rem, 2.7vw, 2.25rem); font-weight: 800; line-height: 1.12; letter-spacing: -.054em; }
.news-layout p { max-width: 49ch; }
.news-list { display: grid; gap: 1.35rem; }
.news-list article { border-bottom: 1px solid var(--line); padding-block: .55rem 1.3rem; }
.school-details { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2.25rem clamp(2rem, 8vw, 8rem); padding-block: clamp(2.6rem, 6vw, 5.5rem); }
.school-details h2 { font-size: clamp(1.85rem, 3.5vw, 3.2rem); margin-bottom: .95rem; }
.school-details details { border-bottom: 1px solid var(--line); padding-block: .15rem; }
.school-details summary { min-height: 44px; cursor: pointer; font-weight: 700; padding-block: .6rem; }
.school-details details p { padding-bottom: .75rem; }
[data-contact-text] { white-space: pre-line; overflow-wrap: anywhere; }
[data-edit-contact] { margin-top: 1rem; }
.contact-section { padding: clamp(1.25rem, 3vw, 2.2rem); border-radius: 1.4rem; background: var(--warm); }
.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner { display: flex; flex-wrap: wrap; gap: .25rem .8rem; justify-content: space-between; align-items: center; min-height: 82px; padding-block: .45rem; font-size: .88rem; font-weight: 700; }
.site-footer-inner span { display: inline-flex; align-items: center; gap: .65rem; }
.site-footer img { width: 30px; height: 30px; }
.site-footer a { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; }

.editor {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: #fff;
    overflow: auto;
    scroll-padding-block: 5rem 6rem;
}
body:has(.editor[open]) { overflow: hidden; }
.editor[open] { animation: panel-in 190ms ease-out both; }
.editor::backdrop { background: #17140080; }
.editor-inner { --panel-padding: clamp(1.15rem, 4vw, 3rem); min-height: 100%; padding: 0 var(--panel-padding) var(--panel-padding); overflow-wrap: anywhere; }
.editor-top {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 calc(-1 * var(--panel-padding)) 1rem;
    padding: .45rem var(--panel-padding);
    border-bottom: 1px solid var(--line);
    background: #fff;
}
.editor-close { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .55rem; margin-inline-start: -.55rem; border: 0; background: transparent; text-align: left; font-weight: 700; }
.editor-close:hover { background: var(--warm); }
.editor h2 { font-size: clamp(1.8rem, 4vw, 2.35rem); font-weight: 800; letter-spacing: -.06em; line-height: 1.16; }
.editor-hint, .editor-feedback { color: var(--quiet); margin-block: .65rem 1rem; }
.editor label { display: block; font-weight: 720; margin-bottom: .3rem; }
.editor input, .editor select, .editor textarea { width: 100%; min-height: 44px; padding: .55rem .65rem; border: 1px solid #948d78; border-radius: .55rem; background: #fff; }
.editor textarea { resize: vertical; }
.editor fieldset { border: 0; margin: 1rem 0; padding: 0; min-inline-size: 0; }
.editor .control { min-height: 44px; border: 1px solid #b7ae92; border-radius: 999px; padding: .4rem .8rem; background: #fff; font-weight: 700; }
.editor .control:disabled { color: #4a4a4a; background: #efede4; }
.editor .control-primary { border-color: var(--yellow); background: var(--yellow); }
.editor .menu-tree, .editor .material-list { list-style: none; padding: 0; margin: .8rem 0 1rem; }
.editor .menu-tree > li, .editor .material-list > li { border-bottom: 1px solid var(--line); }
.editor .menu-tree.menu-children { margin: .2rem 0 .45rem .85rem; padding-inline-start: .7rem; border-inline-start: 2px solid #e9d887; }
.editor .menu-row-button, .editor .material-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; width: 100%; min-height: 48px; padding: .55rem .3rem; border: 0; border-radius: .35rem; text-align: left; }
.editor .menu-row-button:hover, .editor .material-row:hover, .editor .menu-row-button[aria-expanded="true"] { background: var(--warm); }
.editor .editor-row-arrow { flex-shrink: 0; font-size: 1.35rem; line-height: 1; }
.editor .menu-item-controls { margin-block: .2rem .65rem; padding: .75rem; border: 1px solid #e3d9aa; border-radius: .6rem; background: #fffdf3; }
.editor .menu-editor-actions, .editor .material-switch { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.editor .material-switch { margin-block: .7rem .9rem; }
.editor .material-switch [aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); }
.editor .material-browser h3 { margin-top: .85rem; font-size: 1.2rem; }
.editor .material-row strong, .editor .material-row small { display: block; }
.editor .material-row small { font-size: .8rem; font-weight: 500; color: var(--quiet); }
.editor .editor-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.editor .form-note { margin-top: .5rem; color: var(--quiet); font-size: .87rem; }
.menu-preview { margin-top: 1rem; padding: .75rem; border: 1px solid #e3d9aa; border-radius: .65rem; background: var(--warm); }
.menu-preview ol { margin: .5rem 0 0; padding-inline-start: 1.25rem; }
.editor-footer { display: flex; flex-wrap: wrap; gap: .55rem; position: sticky; bottom: 0; z-index: 1; margin: 1rem calc(-1 * var(--panel-padding)) calc(-1 * var(--panel-padding)); padding: .75rem var(--panel-padding); background: #fff; border-top: 1px solid var(--line); }
.site-feedback:not(:empty) { position: fixed; z-index: 4; inset: auto .75rem .75rem auto; max-width: calc(100% - 1.5rem); padding: .7rem .9rem; color: var(--ink); background: var(--yellow); border: 1px solid #a28600; border-radius: .65rem; font-weight: 700; }

@keyframes hero-in { from { transform: translateY(.65rem); } to { transform: none; } }
@keyframes portrait-in { from { transform: translateX(.8rem); } to { transform: none; } }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 950px) {
    .site-header-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; }
    .hero-layout { min-height: 450px; }
    .hero-text h1 { font-size: clamp(3.25rem, 8.3vw, 5.7rem); }
    .hero-photo img { max-height: none; }
}
@media (max-width: 760px) {
    .site-header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: .55rem .6rem; min-height: auto; }
    .site-search { grid-row: 2; grid-column: 1 / -1; }
    .js-ready .header-actions .navigation-toggle { display: inline-flex; }
    .navigation-inner { align-items: start; flex-direction: column; padding-block: .25rem; }
    .site-nav ul { gap: 0 .9rem; }
    .site-nav .site-submenu ul { position: static; border: 0; padding-inline-start: .8rem; }
    .js-ready .site-header:has(.site-nav:not(.is-open)) .navigation-row { display: none; }
    .hero-layout { grid-template-columns: 1fr; min-height: 0; }
    .hero-text { padding-block: 2rem 1.1rem; }
    .hero-text h1 { margin-block: .4rem .7rem; font-size: clamp(3.28rem, 12.2vw, 5.7rem); }
    .hero-actions { margin-top: 1.05rem; gap: .5rem; }
    .hero-photo { height: clamp(230px, 76vw, 370px); }
    .hero-photo img { width: min(78%, 22rem); height: 100%; }
    .hero-sun { width: min(92%, 23rem); bottom: -26%; right: auto; left: 50%; translate: -50% 0; }
    .useful-section { display: grid; gap: .7rem; padding-block: 1.25rem; }
    .useful-links { gap: .45rem; }
    .useful-links a { gap: .55rem; }
    .news-layout, .school-details { grid-template-columns: 1fr; }
}
@media (max-width: 410px) {
    .editor { scroll-padding-bottom: 8rem; }
    .school-brand { gap: .42rem; }
    .school-mark { width: 36px; height: 36px; flex-basis: 36px; }
    .school-brand strong { font-size: 1.08rem; }
    .school-brand small { font-size: .67rem; }
    .header-actions { gap: .25rem; }
    .header-actions button { padding-inline: .48rem; font-size: .73rem; }
    .hero-actions a { min-height: 48px; padding-left: .7rem; gap: .35rem; font-size: .84rem; }
    .hero-actions a span { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-text, .hero-photo img, .editor[open] { animation: none; }
    .hero-actions a span { transition: none; }
}
