:root {
    --navy: #412b31;
    --blue: #805358;
    --sky: #f2e8e3;
    --gold: #c69243;
    --paper: #fbf8f3;
    --white: #ffffff;
    --ink: #202c38;
    --muted: #6c7781;
    --line: #e6dad3;
    --display: Georgia, "Times New Roman", serif;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; }
button, input, textarea, a { outline-offset: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
.container { width: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 200; padding: 12px 18px; background: var(--white); color: var(--navy); }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.top-note { padding: 10px 0; background: var(--navy); color: #e4edf4; font-size: 10px; letter-spacing: 1.2px; }
.top-note .container { display: flex; justify-content: space-between; gap: 15px; }
.site-header { min-height: 98px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.site-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-size: 26px; line-height: 1; font-weight: 750; color: var(--navy); }
.site-brand img { width: 54px; height: 54px; object-fit: contain; }
.site-brand small { display: block; margin-top: 8px; font-size: 8px; letter-spacing: 1.1px; color: var(--muted); font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 600; }
.main-nav a:hover, .footer-links a:hover { color: var(--blue); }
.header-search { display: flex; align-items: center; border-bottom: 1px solid var(--line); max-width: 150px; }
.header-search input { width: 100%; min-width: 0; padding: 9px 0; border: 0; background: transparent; font-size: 12px; }
.header-search button { border: 0; background: transparent; color: var(--navy); font-size: 23px; }
.nav-toggle { display: none; }
.school-hero { position: relative; min-height: 590px; display: flex; align-items: center; overflow: hidden; background: var(--navy); color: var(--white); }
.school-hero-photo, .school-hero-shade { position: absolute; inset: 0; }
.school-hero-photo { background-image: url("hero.webp"); background-position: center 44%; background-size: cover; }
.school-hero-shade { background: linear-gradient(90deg, rgba(13,34,56,.92) 0%, rgba(13,34,56,.76) 38%, rgba(13,34,56,.18) 75%, rgba(13,34,56,.08) 100%); }
.school-hero-content { position: relative; z-index: 1; padding-block: 90px; }
.eyebrow { display: block; color: #afc5d5; font-size: 10px; line-height: 1.6; font-weight: 700; letter-spacing: 1.8px; }
.school-hero h1 { margin: 22px 0 18px; font: 64px/1.05 var(--display); letter-spacing: -1.8px; }
.school-hero h1 em { color: #f0c466; font-weight: 400; }
.school-hero-content > p { max-width: 475px; color: #e0e8ee; font-size: 16px; line-height: 1.8; }
.button { display: inline-flex; align-items: center; gap: 26px; padding: 15px 20px; font-size: 12px; font-weight: 700; }
.button span { font-size: 18px; }
.button-light { margin-top: 28px; color: var(--navy); background: var(--white); }
.button-dark { color: var(--white); background: var(--navy); }
.hero-stamp { position: absolute; z-index: 1; right: max(36px, calc((100vw - 1200px)/2)); bottom: 40px; display: flex; align-items: center; gap: 9px; padding: 12px 16px; background: var(--gold); color: var(--navy); }
.hero-stamp strong { font: 42px/.9 var(--display); }
.hero-stamp span { font-size: 9px; line-height: 1.25; font-weight: 700; text-transform: uppercase; }
.quick-facts { display: grid; grid-template-columns: repeat(3,1fr); padding-block: 30px; border-bottom: 1px solid var(--line); }
.quick-facts > div { display: grid; grid-template-columns: 42px 1fr; align-content: center; column-gap: 10px; padding: 8px 22px; border-right: 1px solid var(--line); }
.quick-facts > div:first-child { padding-left: 0; }
.quick-facts > div:last-child { border: 0; }
.fact-mark { grid-row: span 2; color: #b88927; font: 22px var(--display); }
.quick-facts strong { font-size: 13px; color: var(--navy); }
.quick-facts > div > span:last-child { margin-top: 5px; font-size: 11px; color: var(--muted); }
.welcome-section { padding-block: 82px 90px; }
.section-label { display: flex; align-items: center; gap: 20px; color: #9a762d; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.section-label i { width: 54px; height: 1px; background: #d9bd7d; }
.welcome-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 70px; margin-top: 30px; }
.welcome-grid h2, .section-heading h2, .contact-strip h2 { font: 46px/1.15 var(--display); color: var(--navy); letter-spacing: -.7px; }
.welcome-grid > div > p, .contact-strip > div > p { max-width: 475px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.text-link { display: inline-flex; align-items: center; gap: 17px; margin-top: 22px; color: var(--blue); font-size: 12px; font-weight: 700; }
.text-link span { color: #c29334; font-size: 19px; }
.news-section { padding-block: 72px 84px; background: var(--sky); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 25px 0 35px; }
.section-heading .text-link { margin-bottom: 7px; }
.story-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 35px 25px; }
.home-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.popular-section, .topics-section { padding-block: 58px; }
.popular-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 36px; margin-top: 24px; }
.popular-list a { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 650; }
.popular-list small, .topic-pills small { color: var(--muted); font-size: 11px; font-weight: 500; white-space: nowrap; }
.topic-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.topic-pills a { display: inline-flex; gap: 12px; align-items: center; padding: 11px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); }
.story-card { min-width: 0; background: var(--white); }
.story-image { display: block; overflow: hidden; background: #dfe8e9; }
.story-image img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; transition: transform 300ms ease; }
.story-image:hover img { transform: scale(1.03); }
.story-copy { padding: 20px; }
.story-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: 10px; }
.story-card h3 { font: 24px/1.25 var(--display); color: var(--navy); }
.story-copy > p { margin-top: 11px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.story-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.story-tags a { padding: 5px 8px; background: var(--sky); color: var(--blue); font-size: 9px; }
.school-empty { display: flex; align-items: center; gap: 16px; padding: 30px; border: 1px solid #d0dde1; color: var(--muted); font-size: 14px; }
.school-empty span { color: #c29334; font-size: 28px; }
.contact-strip { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 70px; padding-block: 80px; }
.contact-strip .eyebrow { color: #9a762d; }
.contact-strip h2 { margin-top: 15px; }
.contact-strip > div > p { margin-bottom: 4px; }
.inner-page, .school-page { padding-block: 32px 90px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 45px; color: var(--muted); font-size: 11px; }
.school-page > h1, .main-column > h1, .list-heading h1, .full-article h1 { margin: 14px 0 25px; color: var(--navy); font: 48px/1.12 var(--display); overflow-wrap: anywhere; }
.school-page > .eyebrow { color: #9a762d; }
.school-lead { max-width: 840px; color: var(--muted); font: 21px/1.7 var(--display); }
.school-detail-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: start; margin-top: 55px; padding: 48px; background: var(--sky); }
.school-detail-number { color: var(--navy); font: 110px/.9 var(--display); }
.school-detail-number span { display: block; margin-top: 17px; color: var(--blue); font: 9px/1.7 "Segoe UI",sans-serif; letter-spacing: 1.4px; }
.school-detail-copy h2, .contact-form-wrap h2 { margin-bottom: 17px; color: var(--navy); font: 32px/1.2 var(--display); }
.school-detail-copy p { margin-bottom: 17px; color: #53616d; font-size: 14px; line-height: 1.85; }
.contacts-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 75px; margin-top: 45px; }
.contact-details { border-top: 2px solid var(--navy); }
.contact-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item > span { color: #9a762d; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.contact-item p { margin: 12px 0; font-size: 14px; line-height: 1.8; }
.contact-item > a { color: var(--blue); font-size: 12px; font-weight: 700; }
.contact-form-wrap { padding: 30px; background: var(--sky); }
.contact-form-wrap > p { margin: -5px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.feedback-form { display: grid; gap: 16px; }
.feedback-field { display: grid; gap: 7px; color: var(--navy); font-size: 12px; font-weight: 650; }
.feedback-field input, .feedback-field textarea, .feedback-field select { width: 100%; padding: 12px 13px; border: 1px solid #c9d5da; border-radius: 0; background: var(--white); color: var(--ink); }
.feedback-field textarea { min-height: 120px; resize: vertical; }
.feedback-consent { color: var(--muted); font-size: 11px; line-height: 1.6; }
.feedback-consent a { color: var(--blue); text-decoration: underline; }
.feedback-submit { justify-self: start; border: 0; padding: 14px 20px; background: var(--navy); color: var(--white); font-weight: 700; cursor: pointer; }
.feedback-error, .feedback-success { padding: 12px; background: var(--white); line-height: 1.6; }
.feedback-error { color: #8d2f31; }
.feedback-success { color: #275d43; }
.feedback-preview { color: var(--muted); font-size: 12px; }
.content-layout { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 55px; }
.main-column { min-width: 0; }
.list-heading { margin-bottom: 30px; }
.list-heading .eyebrow, .kicker { color: #9a762d; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.list-heading > p { color: var(--muted); font-size: 13px; }
.full-article > .story-tags { margin: 0 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 25px; color: var(--muted); font-size: 11px; }
.article-hero { display: block; width: 100%; height: auto; margin-bottom: 30px; }
.prose { overflow-wrap: anywhere; color: #34424c; font: 18px/1.85 var(--display); }
.prose h1, .prose h2, .prose h3, .prose h4 { margin: 35px 0 16px; color: var(--navy); font-family: var(--display); font-weight: 400; line-height: 1.25; }
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 26px; }
.prose p, .prose ul, .prose ol { margin: 0 0 22px; }
.prose a { color: var(--blue); text-decoration: underline; }
.prose blockquote { margin: 25px 0; padding: 14px 22px; border-left: 3px solid var(--gold); background: var(--sky); font-style: italic; }
.prose pre { padding: 20px; overflow-x: auto; background: var(--sky); font: 13px/1.7 monospace; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font: 13px/1.7 "Segoe UI",sans-serif; }
.prose th, .prose td { padding: 10px; border: 1px solid var(--line); }
.legal-prose { font: 15px/1.8 "Segoe UI",sans-serif; }
.related { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 25px; color: var(--navy); font: 32px var(--display); }
.tag-seo { margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.8; }
.tag-sidebar { position: sticky; top: 25px; align-self: start; padding-top: 18px; border-top: 2px solid var(--navy); }
.tag-sidebar h2 { margin: 12px 0 20px; color: var(--navy); font: 24px/1.2 var(--display); }
.tag-sidebar nav a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 5px; border-bottom: 1px solid var(--line); font-size: 12px; }
.tag-sidebar nav a[aria-current] { color: var(--blue); font-weight: 700; }
.tag-sidebar nav b { color: var(--muted); font-weight: 400; }
.tag-sidebar > p { margin-top: 20px; color: var(--muted); font: italic 15px/1.6 var(--display); }
.large-search { display: flex; margin-bottom: 30px; border: 1px solid var(--line); }
.large-search input { width: 100%; min-width: 0; padding: 15px; border: 0; background: var(--white); }
.large-search button { padding: 12px 18px; border: 0; background: var(--navy); color: var(--white); cursor: pointer; }
.empty-state { padding: 40px 15px; color: var(--muted); text-align: center; line-height: 1.7; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 35px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--line); font-size: 12px; }
.pagination [aria-current] { background: var(--navy); color: var(--white); }
.site-footer { padding: 55px 0 22px; border-top: 1px solid var(--line); background: #eef1ef; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 55px; }
.footer-brand > a { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font: 30px var(--display); }
.footer-brand > a span { display: grid; width: 30px; height: 30px; place-items: center; background: var(--gold); font: 14px "Segoe UI",sans-serif; }
.footer-brand p { max-width: 370px; margin: 14px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.footer-brand small { color: var(--muted); font-size: 10px; }
.footer-links, .footer-contact { display: grid; align-content: start; gap: 12px; font-size: 12px; }
.footer-links .eyebrow, .footer-contact .eyebrow { margin-bottom: 5px; color: #9a762d; }
.footer-contact a { color: var(--navy); line-height: 1.7; }
.analytics-area { margin-top: 30px; }
.cookie-banner { position: fixed; z-index: 50; right: 22px; bottom: 22px; left: 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1080px; margin-inline: auto; padding: 18px 22px; border: 1px solid var(--line); background: var(--white); box-shadow: 0 12px 40px #142b4620; }
.cookie-banner strong { color: var(--navy); font-size: 13px; }
.cookie-banner p { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.cookie-actions { display: flex; flex-shrink: 0; gap: 8px; }
.cookie-actions button { padding: 10px 13px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); font-size: 11px; cursor: pointer; }
.cookie-actions button:first-child { background: var(--navy); color: var(--white); }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: var(--sky); }
.error-content { max-width: 650px; }
.error-code { display: block; margin: 35px 0 12px; color: #bdcbd2; font: 130px/.9 var(--display); }
.error-content h1 { color: var(--navy); font: 40px/1.1 var(--display); }
.error-content p { margin: 20px 0; color: var(--muted); line-height: 1.7; }
[hidden] { display: none !important; }
@media (max-width: 1050px) {
    .container { width: calc(100% - 48px); }
    .main-nav { gap: 16px; }
    .header-search { display: none; }
    .school-hero { min-height: 520px; }
    .content-layout { grid-template-columns: minmax(0,1fr) 200px; gap: 30px; }
    .footer-grid { gap: 30px; }
}
@media (max-width: 760px) {
    .container { width: calc(100% - 36px); }
    .top-note .container span:last-child { display: none; }
    .site-header { min-height: 82px; flex-wrap: wrap; gap: 15px; padding-block: 14px; }
    .site-brand { font-size: 22px; }
    .site-brand img { width: 46px; height: 46px; }
    .nav-toggle { display: block; margin-left: auto; padding: 9px 12px; border: 1px solid var(--line); background: var(--white); color: var(--navy); font-size: 12px; }
    .main-nav { display: none; order: 3; width: 100%; flex-wrap: wrap; justify-content: space-between; padding: 12px 0 4px; border-top: 1px solid var(--line); }
    .main-nav.is-open { display: flex; }
    .school-hero { min-height: 520px; }
    .school-hero-photo { background-position: 60% center; }
    .school-hero-shade { background: linear-gradient(90deg,rgba(13,34,56,.88),rgba(13,34,56,.48)); }
    .school-hero-content { padding-block: 70px 100px; }
    .school-hero h1 { font-size: clamp(43px,9vw,58px); }
    .hero-stamp { right: 18px; bottom: 18px; }
    .quick-facts { grid-template-columns: 1fr; padding-block: 15px; }
    .quick-facts > div, .quick-facts > div:first-child { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .quick-facts > div:last-child { border-bottom: 0; }
    .welcome-section, .news-section { padding-block: 55px; }
    .welcome-grid, .contact-strip, .school-detail-grid, .contacts-layout { grid-template-columns: 1fr; gap: 25px; }
    .welcome-grid h2, .section-heading h2, .contact-strip h2 { font-size: 38px; }
    .section-heading { align-items: start; flex-direction: column; }
    .home-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .contact-strip { padding-block: 55px; }
    .school-detail-grid { padding: 30px; }
    .school-detail-number { font-size: 90px; }
    .content-layout { grid-template-columns: 1fr; }
    .tag-sidebar { position: static; }
    .school-page > h1, .main-column > h1, .list-heading h1, .full-article h1 { font-size: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1/-1; }
    .cookie-banner { right: 10px; bottom: 10px; left: 10px; flex-wrap: wrap; gap: 12px; padding: 15px; }
}
@media (max-width: 480px) {
    .main-nav { gap: 12px; justify-content: flex-start; }
    .main-nav a { font-size: 11px; }
    .school-hero { min-height: 490px; }
    .school-hero h1 { font-size: 42px; }
    .school-hero-content > p { font-size: 14px; }
    .home-grid, .story-grid { grid-template-columns: 1fr; }
    .popular-list { grid-template-columns: 1fr; }
    .story-copy { padding: 17px; }
    .school-page > h1, .main-column > h1, .list-heading h1, .full-article h1 { font-size: 35px; }
    .school-lead { font-size: 18px; }
    .school-detail-grid { padding: 22px; }
    .contact-form-wrap { padding: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
    .cookie-actions { width: 100%; }
    .cookie-actions button { flex: 1; }
    .prose { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
/* Комментарии к статьям. */
.comments {
    margin: 36px 0;
    padding: 24px 0;
    border-top: 1px solid currentColor;
    overflow-wrap: anywhere;
}
.comment {
    padding: 18px 0;
    border-bottom: 1px solid #8885;
}
.comment time {
    font-size: .85em;
    opacity: .7;
}
.comment p {
    white-space: normal;
}
.comment-form {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}
.comment-form label {
    display: grid;
    gap: 8px;
}
.comment-form input,
.comment-form textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #8888;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font: inherit;
}
.comment-form textarea {
    resize: vertical;
}
.comment-form button {
    justify-self: start;
    padding: 12px 20px;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.comment-form .comment-trap {
    display: none;
}
.comment-success {
    color: #176339;
}
.comment-error {
    color: #a12323;
}
.comment-pagination {
    margin: 20px 0;
}
