/* ЦО № 165 — основные стили темы (версия 2.0, по макету).
   Три раздела с собственным цветом: общая часть (серый), «Школа» (синий), «Детский сад» (оранжевый). */

@font-face {
	font-family: "Golos Text";
	src: url("../fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2-variations"),
	     url("../fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2");
	font-weight: 400 900; font-style: normal; font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Golos Text";
	src: url("../fonts/golos-text-latin-wght-normal.woff2") format("woff2-variations"),
	     url("../fonts/golos-text-latin-wght-normal.woff2") format("woff2");
	font-weight: 400 900; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Playfair Display";
	src: url("../fonts/playfair-display-cyrillic-wght-normal.woff2") format("woff2-variations"),
	     url("../fonts/playfair-display-cyrillic-wght-normal.woff2") format("woff2");
	font-weight: 400 900; font-style: normal; font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Playfair Display";
	src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2-variations"),
	     url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
	font-weight: 400 900; font-style: normal; font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--blue: #17356b;
	--orange: #f08a24;
	--navy: #0f2548;       /* текст на оранжевом */
	--slate: #3a4152;      /* общая часть, верхняя полоса */
	--slate-deep: #2b3345; /* подвал */
	--mist: #eef0f3;       /* подложки */
	--line: #d5d9e0;
	--text: #1c2333;
	--muted: #4a5261;
	--link-hover: #b45309;
	--focus: #f2b632;
	--radius: 10px;
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Golos Text", "Segoe UI", Arial, sans-serif;
	--pad: 24px;
	/* цвет текущего раздела (меняется ниже по классу body.sec-*) */
	--sec: var(--slate);
	--sec-ink: #fff;
	--sec-mark: var(--orange);
	--sv-accent: var(--blue);
	--sv-border: var(--line);
	--sv-head: var(--mist);
	--sv-hover: var(--mist);
	--sv-muted: var(--muted);
	--sv-surface: #fff;
	font-size: 100%;
}
body.sec-school { --sec: var(--blue); --sec-ink: #fff; --sec-mark: var(--orange); }
body.sec-kinder { --sec: var(--orange); --sec-ink: var(--navy); --sec-mark: var(--blue); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--blue); font-weight: 700; margin-top: 0; }
h1 { font-size: clamp(1.85rem, 1.4rem + 1.6vw, 2.6rem); margin-bottom: .4em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
ul, ol { padding-left: 1.2em; }

.container { width: min(100% - 2 * var(--pad), 1200px); margin-inline: auto; }
.narrow { max-width: 720px; padding-block: 48px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--focus); color: #000; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { top: 8px; }

.btn, button[type="submit"] {
	display: inline-flex; align-items: center; min-height: 44px; border: 0; cursor: pointer;
	background: var(--blue); color: #fff; font: inherit; font-weight: 500; font-size: .9375rem;
	padding: 0 22px; border-radius: 6px; text-decoration: none; line-height: 1.2;
}
.btn:hover, button[type="submit"]:hover { background: var(--navy); color: #fff; }
.btn--accent { background: var(--orange); color: var(--navy); font-weight: 600; }
.btn--accent:hover { background: #ffa24a; color: var(--navy); }
.btn--dark { background: var(--navy); color: #fff; }

/* ---------- 1. Верхняя полоса ---------- */
.special { background: var(--slate); font-size: .75rem; }
.special ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; list-style: none; margin: 0; padding: 0; min-height: 44px; }
.special a { display: inline-block; padding: 12px 0; color: #e6e9ef; text-decoration: none; }
.special a:hover { color: #fff; text-decoration: underline; }

/* ---------- 2. Шапка ---------- */
.site-header { background: #fff; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 124px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--text); min-width: 0; flex: 1; }
.brand__logo { flex-shrink: 0; }
.brand__logo img { display: block; width: 88px; height: auto; max-height: 88px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.brand__name { font-family: var(--serif); font-size: 1.4375rem; font-weight: 700; color: var(--blue); line-height: 1.3; }
.brand__sub { font-size: 1rem; color: var(--muted); }
.site-header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hbtn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 6px; font: inherit; font-size: .9375rem; font-weight: 500; text-decoration: none; cursor: pointer; }
.hbtn--line { background: #fff; color: var(--text); border: 1.5px solid var(--blue); }
.hbtn--line:hover { background: var(--mist); color: var(--text); }
.hbtn--accent { background: var(--orange); color: var(--navy); font-weight: 600; border: 0; padding: 0 22px; }
.hbtn--accent:hover { background: #ffa24a; color: var(--navy); }
.nav-toggle { display: none; }

/* ---------- 3. Переключатель разделов ---------- */
.switcher { background: var(--mist); }
.switcher__inner { display: flex; align-items: center; gap: 16px; min-height: 76px; padding-block: 12px; }
.switcher__label { width: 96px; flex-shrink: 0; font-size: .8125rem; line-height: 1.3; color: var(--muted); }
.sect { flex: 1 1 0; min-width: 0; min-height: 52px; padding: 6px 20px; display: flex; flex-direction: column; justify-content: center; border: 2px solid var(--slate); border-radius: 10px; background: #fff; color: var(--text); text-decoration: none; }
.sect--school { border-color: var(--blue); }
.sect--kinder { border-color: var(--orange); }
.sect__name { font-size: 1.0625rem; font-weight: 600; line-height: 1.25; }
.sect__sub { font-size: .75rem; color: var(--muted); }
a.sect:hover { box-shadow: 0 2px 8px rgba(15, 37, 72, .16); color: var(--text); }
.sect.is-current.sect--center { background: var(--slate); color: #fff; }
.sect.is-current.sect--center .sect__sub { color: #d3d8e2; }
.sect.is-current.sect--school { background: var(--blue); color: #fff; }
.sect.is-current.sect--school .sect__sub { color: #c9d3e8; }
.sect.is-current.sect--kinder { background: var(--orange); color: var(--navy); }
.sect.is-current.sect--kinder .sect__sub { color: var(--navy); }
.sect.is-off { opacity: .55; }

/* ---------- 4. Главное меню (цвет по разделу) ---------- */
.site-nav { background: var(--sec); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .menu { display: flex; flex-wrap: wrap; justify-content: space-between; min-height: 60px; }
.site-nav .menu > li { position: relative; display: flex; }
.site-nav .menu > li > a { display: flex; align-items: center; padding: 0 4px; color: var(--sec-ink); text-decoration: none; font-weight: 500; font-size: .9375rem; border-bottom: 4px solid transparent; }
.site-nav .menu > li > a:hover { border-bottom-color: var(--sec-mark); color: var(--sec-ink); }
.site-nav .menu > li.current-menu-item > a,
.site-nav .menu > li.current-menu-ancestor > a,
.site-nav .menu > li.current-page-ancestor > a { border-bottom-color: var(--sec-mark); }
.site-nav .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 8px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.site-nav .sub-menu {
	position: absolute; left: 0; top: 100%; z-index: 50; min-width: 300px;
	background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--sec-mark);
	box-shadow: 0 12px 28px rgba(15, 37, 72, .18);
	padding: 6px 0; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav .menu > li:last-child .sub-menu, .site-nav .menu > li:nth-last-child(2) .sub-menu { left: auto; right: 0; }
.site-nav .menu > li:hover > .sub-menu,
.site-nav .menu > li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.site-nav .sub-menu a { display: block; padding: 8px 18px; color: var(--text); text-decoration: none; font-size: .9375rem; line-height: 1.35; }
.site-nav .sub-menu a:hover { background: var(--mist); color: var(--blue); }

/* ---------- Хлебные крошки ---------- */
.crumbs { background: var(--mist); font-size: .875rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; margin: 0; padding: 14px 0; min-height: 56px; }
.crumbs li + li::before { content: "/"; padding: 0 8px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.crumbs [aria-current] { color: var(--text); font-weight: 500; }

/* ---------- Общие блоки ---------- */
.site-main { padding-block: 40px 72px; }
.home-main { padding-top: 32px; display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: .9375rem; }
.empty { color: var(--muted); background: var(--mist); border: 1px dashed #b8bec9; border-radius: var(--radius); padding: 24px; margin: 0; }
.page-head h1 { margin-bottom: .3em; }
.page-head__rule { width: 96px; height: 6px; background: var(--orange); border-radius: 3px; margin-bottom: 24px; }
body.sec-kinder .page-head__rule { background: var(--orange); }

/* ---------- Главная: баннер ---------- */
.banner { display: flex; min-height: 420px; border-radius: 14px; overflow: hidden; background: #d9dde4; }
.banner__text { flex: 0 0 520px; max-width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: 48px; background: var(--blue); color: #fff; }
.banner__title { margin: 0; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.4rem); color: #fff; line-height: 1.15; }
.banner__lead { margin: 0; font-size: 1rem; color: #c9d3e8; }
.banner__art { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; background: linear-gradient(135deg, #2a4a86 0%, #17356b 100%); overflow: hidden; }
.banner__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__mark { font-family: var(--serif); font-size: clamp(7rem, 4rem + 12vw, 16rem); font-weight: 700; line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .5); user-select: none; }

/* ---------- Главная: входы Школа / Детский сад ---------- */
.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.entry-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 208px; padding: 28px 32px; border-radius: 14px; }
.entry-card__text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; }
.entry-card h2 { margin: 0; font-size: 2.125rem; color: inherit; }
.entry-card p { margin: 0; font-size: .9375rem; }
.entry-card .btn { margin-top: 8px; }
.entry-card__img { flex: 0 0 220px; height: 152px; border-radius: 10px; overflow: hidden; }
.entry-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entry-card--school { background: var(--blue); color: #fff; }
.entry-card--school p { color: #c9d3e8; }
.entry-card--school .btn { background: var(--orange); color: var(--navy); font-weight: 600; }
.entry-card--school .btn:hover { background: #ffa24a; }
.entry-card--kinder { background: var(--orange); color: var(--navy); }
.entry-card--kinder .btn { background: var(--blue); color: #fff; font-weight: 600; }
.entry-card--kinder .btn:hover { background: var(--navy); }

/* ---------- Главная: три карточки ---------- */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.info-card { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 200px; padding: 26px; border-radius: 12px; background: var(--mist); }
.info-card h2 { margin: 0 0 8px; font-size: 1.375rem; }
.info-card p { margin: 0; font-size: .875rem; color: var(--muted); }
.info-card .btn { align-self: flex-start; }
.info-card--accent { background: var(--orange); color: var(--navy); }
.info-card--accent h2 { color: var(--navy); }
.info-card--accent p { color: var(--navy); }

/* ---------- Главная: быстрые ссылки ---------- */
.quick__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.quick__list a { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 128px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--blue); font-size: .9375rem; font-weight: 600; line-height: 1.25; }
.quick__list a:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(23, 53, 107, .12); color: var(--blue); }
.quick__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--navy); }

/* ---------- Главная: новости ---------- */
.news-block--split { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; align-items: start; margin-top: 16px; }
.news-block { margin-top: 16px; }
.news-main h2 { margin-bottom: 20px; }
.news-main--full h2 { margin-bottom: 0; }
.news-list ul { list-style: none; margin: 0; padding: 0; }
.news-list li { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-list time { font-size: .8125rem; color: var(--muted); }
.news-list a { font-weight: 500; text-decoration: none; line-height: 1.35; }
.news-list a:hover { text-decoration: underline; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text); }
.card__link:hover .card__title { color: var(--link-hover); }
.card__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.card__date { font-size: .8125rem; color: var(--muted); }
.card__title { font-weight: 600; color: var(--blue); line-height: 1.3; font-size: 1rem; }
.card__excerpt { font-size: .9rem; color: var(--muted); }

/* ---------- Главная: о центре и директор ---------- */
.about__box { display: flex; gap: 40px; padding: 36px; background: var(--mist); border-radius: 14px; }
.about__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.about__text p { margin: 0; color: var(--muted); }
.about__contacts { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .875rem; color: var(--muted); }
.about__director { flex: 0 0 320px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px; background: #fff; border-radius: 12px; text-align: center; }
.about__photo { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; background: #d9dde4; display: block; }
.about__role { font-size: .8125rem; color: var(--muted); }
.about__name { font-family: var(--serif); font-size: 1.25rem; color: var(--blue); }
.about__director .btn { margin-top: auto; }

/* ---------- Главная: навигация по «Сведениям» ---------- */
.sveden-home__list { list-style: none; margin: 0; padding: 0; columns: 260px 4; column-gap: 32px; }
.sveden-home__list li { break-inside: avoid; }
.sveden-home__list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .9375rem; line-height: 1.3; }
.sveden-home__list a:hover { color: var(--link-hover); }

/* ---------- Главная: галерея, баннеры, ведомства ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.gallery__item { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: #d9dde4; color: #fff; text-decoration: none; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__item span { position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px; font-size: .8125rem; background: linear-gradient(transparent, rgba(15, 37, 72, .85)); }
.pos-block .widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.links-block { display: flex; flex-direction: column; gap: 16px; }
.banners, .agencies { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.banners a { display: flex; align-items: flex-end; min-height: 110px; padding: 16px; background: var(--blue); color: #fff; border-radius: 12px; text-decoration: none; font-size: 1rem; font-weight: 600; line-height: 1.25; }
.banners a:hover { background: var(--navy); color: #fff; }
.agencies a { display: flex; align-items: center; min-height: 90px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-size: .875rem; font-weight: 500; line-height: 1.25; color: var(--text); }
.agencies a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Внутренняя страница ---------- */
.page-layout { display: block; }
.page-layout--nav { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.section-nav { display: flex; flex-direction: column; gap: 16px; }
.section-nav__head { display: flex; flex-direction: column; gap: 2px; padding: 18px; background: var(--sec); color: var(--sec-ink); border-radius: 10px; text-decoration: none; }
.section-nav__head:hover { color: var(--sec-ink); filter: brightness(1.08); }
.section-nav__head span { font-size: .75rem; }
.section-nav__head strong { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.section-nav__list, .section-nav__list ul { list-style: none; margin: 0; padding: 0; }
.section-nav__list { display: flex; flex-direction: column; gap: 2px; }
.section-nav__list a { display: flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 8px; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--text); line-height: 1.3; }
.section-nav__list a:hover { background: var(--mist); color: var(--blue); }
.section-nav__list a.is-active { background: var(--mist); color: var(--blue); box-shadow: inset 4px 0 0 var(--sec-mark); font-weight: 600; }
.section-nav__list a.is-ancestor { font-weight: 600; color: var(--blue); }
.section-nav__list ul { margin: 2px 0 6px 14px; border-left: 2px solid var(--line); }
.section-nav__list ul a { font-size: .875rem; min-height: 38px; }
.section-nav__contacts { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1.5px dashed #b8bec9; border-radius: 10px; font-size: .875rem; }
.section-nav__contacts strong { font-size: 1rem; color: var(--blue); }
.page-body { min-width: 0; }
.page-layout:not(.page-layout--nav) .page-body { max-width: 900px; }
.subpages { margin-top: 40px; }
.subpages h2 { font-size: 1.625rem; }
.subpages__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.subpage { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 120px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--text); }
.subpage:hover { border-color: var(--blue); }
.subpage.is-empty { border: 1.5px dashed #b8bec9; }
.subpage strong { font-size: 1.0625rem; color: var(--blue); line-height: 1.25; }
.subpage span { font-size: .8125rem; color: var(--muted); }
.page-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.entry__date { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.entry__img { margin: 0 0 20px; }
.entry-content { max-width: 78ch; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content td, .entry-content th { border: 1px solid var(--line); padding: 8px 10px; }
.post-navigation { margin-top: 24px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.post-navigation span { display: block; font-size: .85rem; color: var(--muted); }
.pagination .nav-links { display: flex; gap: 6px; margin-top: 28px; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pagination .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.search-form { display: flex; gap: 6px; margin-block: 16px; }
.search-form input { font: inherit; padding: .55em .8em; border: 1px solid var(--line); border-radius: 6px; width: 260px; max-width: 100%; }

/* Боковая колонка новостей */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.widget-title { font-size: 1.15rem; margin: 0 0 10px; }
.widget-links ul { list-style: none; margin: 0; padding: 0; }
.widget-links li + li { border-top: 1px solid var(--line); }
.widget-links a { display: block; padding: 10px 0; text-decoration: none; }
.widget-links strong { display: block; color: var(--blue); }
.widget-links span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.widget-links a:hover strong { color: var(--link-hover); }

/* ---------- Раздел «Сведения» в оформлении темы ---------- */
.sveden-wrap .sveden-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.sveden-wrap .sveden-nav { position: sticky; top: 16px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--slate-deep); color: #d3d8e2; font-size: .875rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; padding-block: 40px 28px; }
.site-footer a { color: #d3d8e2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__title { font-family: var(--serif); font-size: 1.25rem; color: #fff; margin: 0 0 12px; }
.site-footer__list, .site-footer__menu { list-style: none; margin: 0; padding: 0; }
.site-footer__list { display: flex; flex-direction: column; gap: 8px; }
.site-footer__menu { column-count: 2; column-gap: 32px; }
.site-footer__menu li { break-inside: avoid; margin: 0 0 10px; line-height: 1.35; }
.site-footer a.site-footer__social { color: var(--orange); font-weight: 600; }
.site-footer__muted { color: #b9c0cd; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #4a5468; padding-block: 16px 24px; font-size: .8125rem; color: #b9c0cd; }
.site-footer__bottom p { margin: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
	.news-block--split { grid-template-columns: 1fr; }
	.about__box { flex-direction: column; }
	.about__director { flex-basis: auto; }
	.layout { grid-template-columns: 1fr; }
	.page-layout--nav { grid-template-columns: 1fr; gap: 24px; }
	.banner { flex-direction: column; min-height: 0; }
	.banner__text { flex: none; padding: 36px 28px; }
	.banner__art { min-height: 200px; }
}
@media (max-width: 900px) {
	.site-header__inner { flex-wrap: wrap; }
	.nav-toggle { display: inline-flex; align-items: center; min-height: 44px; background: var(--blue); color: #fff; border: 0; border-radius: 6px; padding: 0 18px; font: inherit; font-weight: 500; }
	.site-menus { display: none; }
	.site-menus.is-open { display: block; }
	.switcher__inner { flex-direction: column; align-items: stretch; }
	.switcher__label { width: auto; }
	.sect { width: auto; }
	.site-nav .menu { flex-direction: column; justify-content: flex-start; padding-block: 8px; }
	.site-nav .menu > li { flex-direction: column; }
	.site-nav .menu > li > a { min-height: 44px; border-bottom: 0; border-left: 4px solid transparent; padding-left: 8px; }
	.site-nav .menu > li > a:hover, .site-nav .menu > li.current-menu-item > a, .site-nav .menu > li.current-menu-ancestor > a { border-bottom: 0; border-left-color: var(--sec-mark); }
	.site-nav .sub-menu { position: static; visibility: visible; opacity: 1; transform: none; min-width: 0; box-shadow: none; border: 0; background: transparent; padding: 0 0 8px 20px; }
	.site-nav .sub-menu a { color: var(--sec-ink); padding: 8px 0; }
	.site-nav .sub-menu a:hover { background: transparent; color: var(--sec-ink); text-decoration: underline; }
	.entries { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	:root { --pad: 16px; }
	.special ul { flex-wrap: nowrap; overflow-x: auto; gap: 0 20px; }
	.special a { white-space: nowrap; }
	.brand__logo img { width: 64px; height: 64px; }
	.brand__name { font-size: 1rem; }
	.site-header__actions { width: 100%; flex-wrap: wrap; }
	.hbtn--line { flex: 1 1 100%; justify-content: center; }
	.entry-card { flex-direction: column; align-items: stretch; padding: 22px; }
	.entry-card__img { flex: none; width: 100%; height: 180px; }
	.about__box { padding: 22px; }
	.entry, .sveden-wrap .sveden-main { padding: 20px 18px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.site-footer__menu { column-count: 1; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.banner__text { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Версия для слабовидящих ---------- */
.vi-panel { background: #fff; border-bottom: 2px solid #000; color: #000; font-size: 1rem; }
.vi-panel__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 10px; }
.vi-group { display: flex; align-items: center; gap: 6px; }
.vi-group span { font-weight: 700; margin-right: 4px; }
.vi-panel button { font: inherit; background: #fff; color: #000; border: 2px solid #000; border-radius: 4px; padding: 4px 10px; cursor: pointer; min-width: 40px; }
.vi-panel button[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #000; font-weight: 700; }
.vi-panel .vi-a2 { font-size: 1.25em; }
.vi-panel .vi-a3 { font-size: 1.5em; }
.vi-sw--wb { background: #000 !important; color: #fff !important; }
.vi-sw--blue { background: #9dd1ff !important; color: #063462 !important; border-color: #063462 !important; }

html.vi body { font-family: Arial, Helvetica, sans-serif; letter-spacing: .02em; }
html.vi h1, html.vi h2, html.vi h3, html.vi .brand__name, html.vi .sect__name, html.vi .about__name, html.vi .site-footer__title { font-family: Arial, Helvetica, sans-serif; }
html.vi-size-1 { font-size: 112.5%; }
html.vi-size-2 { font-size: 137.5%; }
html.vi-size-3 { font-size: 162.5%; }
html.vi .banner__mark { display: none; }
html.vi .cards, html.vi .info-cards, html.vi .entries, html.vi .quick__list, html.vi .banners, html.vi .agencies { grid-template-columns: 1fr; }
html.vi .layout, html.vi .sveden-layout, html.vi .page-layout--nav, html.vi .news-block--split, html.vi .site-footer__grid { grid-template-columns: 1fr; }
html.vi .banner, html.vi .about__box, html.vi .entry-card { flex-direction: column; }
html.vi .site-nav .menu { flex-direction: column; }
html.vi a { text-decoration: underline !important; }
html.vi-noimg img, html.vi-noimg .card__img, html.vi-noimg figure, html.vi-noimg .banner__art, html.vi-noimg .entry-card__img { display: none !important; }

/* Цветовые схемы: единые правила для всех элементов страницы, кроме самой панели. */
html.vi-scheme-bw :where(body, body *):not(.vi-panel, .vi-panel *, img, svg, svg *) { background: #fff !important; background-image: none !important; color: #000 !important; border-color: #000 !important; box-shadow: none !important; -webkit-text-stroke: 0 !important; }
html.vi-scheme-wb :where(body, body *):not(.vi-panel, .vi-panel *, img, svg, svg *) { background: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; -webkit-text-stroke: 0 !important; }
html.vi-scheme-blue :where(body, body *):not(.vi-panel, .vi-panel *, img, svg, svg *) { background: #9dd1ff !important; background-image: none !important; color: #063462 !important; border-color: #063462 !important; box-shadow: none !important; -webkit-text-stroke: 0 !important; }
html.vi .btn, html.vi .hbtn, html.vi button[type="submit"], html.vi .nav-toggle, html.vi .sect, html.vi .quick__list a, html.vi .banners a, html.vi .agencies a, html.vi .subpage, html.vi .card, html.vi .info-card, html.vi .entry-card, html.vi .about__director { border: 2px solid currentColor !important; text-decoration: none !important; }
html.vi input[type="search"] { border: 2px solid currentColor !important; color: inherit !important; }
html.vi .sveden-nav a.is-active, html.vi .section-nav__list a.is-active, html.vi .sect.is-current { outline: 3px solid currentColor; outline-offset: -3px; text-decoration: none !important; }
html.vi .site-nav .menu > li > a { padding-left: 4px; padding-right: 4px; }
html.vi .site-nav .menu > li > a { border-bottom-width: 0 !important; }
html.vi .site-nav .menu > li.current-menu-item > a, html.vi .site-nav .menu > li.current-menu-ancestor > a { border-bottom: 4px solid currentColor !important; }
