/* ==========================================================================
   Тема «Политех» — основные стили
   Цветовые схемы — переменные ниже (серая — основная, синяя — исходная, от логотипа).
   ========================================================================== */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); 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: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); 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: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); 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: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); 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: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); 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; }

/* --- Цветовые схемы ------------------------------------------------------
   Переключение — в админке: «Настройки сайта» → «Оформление» → «Цветовая схема»
   (класс у <body>: scheme-steel / scheme-grey / scheme-blue). Без класса действует серо-голубая.
   В стилях цвета — только через эти переменные. */

/* Серо-голубая (основная): цвета паттерна со слайда ФП «Профессионалитет» (materials/slides/hero.html, theme=fp)
   и гор на логотипе — серо-голубой ФП «горнодобывающая» #96B3C1 и его тёмные оттенки. */
:root, .scheme-steel {
	--c-primary: #3e5f70;
	--c-primary-dark: #2f4b5a;
	--c-primary-light: #4f6f80;
	--c-accent: #96b3c1;
	--c-accent-light: #dfe9ee;
	--c-bg: #ffffff;
	--c-bg-soft: #f2f6f8;
	--c-text: #1f2c34;
	--c-text-muted: #5a6a74;
	--c-border: #d5e0e6;
	--c-link: #3e5f70;
	--c-link-hover: #4f6f80;
	--c-link-rgb: 62, 95, 112;
	--c-shadow-rgb: 47, 75, 90;
	--c-overlay-rgb: 18, 32, 40;
	--icon-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e5f70' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
}

/* Серая: графитовый вместо синего; ссылки и акценты — серо-голубой ФП #96B3C1 и его тёмный оттенок. */
.scheme-grey {
	--c-primary: #4a535e;
	--c-primary-dark: #343a42;
	--c-primary-light: #5f6a76;
	--c-accent: #96b3c1;
	--c-accent-light: #e4ebef;
	--c-bg: #ffffff;
	--c-bg-soft: #f4f5f7;
	--c-text: #23282f;
	--c-text-muted: #5f6670;
	--c-border: #dfe2e6;
	--c-link: #3e6275;
	--c-link-hover: #2c4a5a;
	--c-link-rgb: 62, 98, 117;
	--c-shadow-rgb: 30, 36, 44;
	--c-overlay-rgb: 20, 23, 28;
	--icon-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e6275' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
}

/* Синяя (исходная): синий БПК #001C8F с логотипа, серо-голубой ФП #96B3C1. */
.scheme-blue {
	--c-primary: #001c8f;
	--c-primary-dark: #00136a;
	--c-primary-light: #1a3aad;
	--c-accent: #96b3c1;
	--c-accent-light: #dfe8ed;
	--c-bg: #ffffff;
	--c-bg-soft: #f3f6f9;
	--c-text: #1b2333;
	--c-text-muted: #5b6577;
	--c-border: #dbe2ea;
	--c-link: #001c8f;
	--c-link-hover: #1a3aad;
	--c-link-rgb: 0, 28, 143;
	--c-shadow-rgb: 0, 28, 143;
	--c-overlay-rgb: 0, 10, 50;
	--icon-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001c8f' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E");
}

:root, .scheme-steel, .scheme-grey, .scheme-blue {
	--shadow: 0 6px 24px rgba(var(--c-shadow-rgb), .08);
	--shadow-hover: 0 10px 32px rgba(var(--c-shadow-rgb), .16);
}

:root {
	--radius: 10px;
	--radius-sm: 6px;
	--container: 1280px;
	--gutter: 16px;
	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--t: .2s ease;
}

/* --- База --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
a { color: var(--c-link); text-decoration: underline; text-decoration-color: rgba(var(--c-link-rgb), .35); text-underline-offset: 3px; transition: color var(--t), text-decoration-color var(--t); }
a:hover { color: var(--c-link-hover); text-decoration-color: currentColor; }
a:active { color: var(--c-primary-dark); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: var(--c-primary-dark); margin: 1.6em 0 .6em; }
h1 { font-size: clamp(26px, 3.2vw, 38px); }
h2 { font-size: clamp(22px, 2.4vw, 30px); }
h3 { font-size: clamp(19px, 1.8vw, 23px); }
h4 { font-size: 18px; }
p, ul, ol, table, figure { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 1000; padding: 10px 16px; background: var(--c-primary); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; color: #fff; }

/* --- Типографика ------------------------------------------------------------- */
.text-bold {font-weight: bold;}

/* --- Кнопки ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 24px; border: 2px solid var(--c-primary); border-radius: var(--radius-sm); background: var(--c-primary); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background var(--t), border-color var(--t), color var(--t), transform var(--t), box-shadow var(--t); }
.btn:hover { background: var(--c-primary-light); border-color: var(--c-primary-light); color: #fff; box-shadow: var(--shadow-hover); }
.btn:active { background: var(--c-primary-dark); border-color: var(--c-primary-dark); transform: translateY(1px); box-shadow: none; }
.btn--light { background: #fff; border-color: #fff; color: var(--c-primary); }
.btn--light:hover { background: var(--c-accent-light); border-color: var(--c-accent-light); color: var(--c-primary-dark); }
.btn--outline { background: transparent; color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }

/* --- Верхняя полоса ----------------------------------------------------- */
.topbar { background: var(--c-bg-soft); border-bottom: 1px solid var(--c-border); font-size: 14px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.topbar__contacts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 0; padding: 0; list-style: none; }
.topbar__item { display: flex; align-items: center; gap: 6px; color: var(--c-text-muted); }
.topbar__item svg { width: 16px; height: 16px; color: var(--c-primary); }
.topbar__item a { color: var(--c-text); text-decoration: none; }
.topbar__item a:hover { color: var(--c-primary); text-decoration: underline; }
.topbar__tools { display: flex; align-items: center; gap: 16px; }

/* Кнопка плагина «Версия для слабовидящих» — в стиле темы */
.topbar__bvi .bvi-shortcode { display: inline-flex; }
.topbar__bvi a, .topbar__bvi .bvi-open { display: inline-flex !important; align-items: center; gap: 6px; padding: 5px 12px !important; border-radius: var(--radius-sm) !important; background: var(--c-primary) !important; color: #fff !important; font-size: 13px !important; font-weight: 600; text-decoration: none !important; transition: background var(--t); }
.topbar__bvi a:hover, .topbar__bvi .bvi-open:hover { background: var(--c-primary-light) !important; }

/* --- Соцсети ------------------------------------------------------------ */
.socials { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.socials__link { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-primary); color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; transition: background var(--t), transform var(--t); }
.socials__link svg { width: 18px; height: 18px; }
.socials__link:hover { background: var(--c-primary-light); color: #fff; transform: translateY(-2px); }
.socials__link:active { background: var(--c-primary-dark); transform: none; }

/* --- Шапка -------------------------------------------------------------- */
.site-header { position: relative; z-index: 50; background: #fff; }
.header-main__inner { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.logo { display: flex; align-items: center; gap: 16px; margin-right: auto; color: var(--c-primary); text-decoration: none; }
.logo:hover { color: var(--c-primary); }
.logo__img { width: 150px; height: auto; }
.logo__text { max-width: 260px; padding-left: 16px; border-left: 2px solid var(--c-accent); font-size: 15px; font-weight: 700; line-height: 1.3; text-transform: uppercase; letter-spacing: .02em; }

.header-search { display: flex; width: 300px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color var(--t), box-shadow var(--t); }
.header-search:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-accent-light); }
.header-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 0; outline: 0; background: transparent; }
.header-search button { display: grid; place-items: center; width: 46px; border: 0; background: var(--c-bg-soft); color: var(--c-primary); cursor: pointer; transition: background var(--t), color var(--t); }
.header-search button:hover { background: var(--c-primary); color: #fff; }
.header-search svg { width: 20px; height: 20px; }

.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 11px; border: 0; border-radius: var(--radius-sm); background: var(--c-primary); cursor: pointer; }
.burger span { display: block; height: 3px; border-radius: 2px; background: #fff; transition: transform var(--t), opacity var(--t); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- Главное меню ------------------------------------------------------- */
.primary-nav { background: var(--c-primary); }
.menu { margin: 0; padding: 0; list-style: none; }
.menu--primary { display: flex; flex-wrap: wrap; }
.menu--primary > li { position: relative; display: flex; align-items: center; }
.menu--primary > li > a { display: block; padding: 15px 16px; color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; transition: background var(--t), box-shadow var(--t); }
.menu--primary > li > a:hover, .menu--primary > li:hover > a { background: var(--c-primary-light); }
.menu--primary > li.is-active > a { box-shadow: inset 0 -4px 0 var(--c-accent); }
.menu--primary .sub-menu { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 280px; margin: 0; padding: 8px 0; list-style: none; background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--t), transform var(--t), visibility var(--t); }
.menu--primary li:hover > .sub-menu, .menu--primary li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu--primary .sub-menu li { position: relative; }
.menu--primary .sub-menu a { display: block; padding: 9px 20px; color: var(--c-text); font-size: 14px; text-decoration: none; transition: background var(--t), color var(--t); }
.menu--primary .sub-menu a:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.menu--primary .sub-menu .is-active > a { color: var(--c-primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--c-primary); }
.menu--primary .sub-menu .sub-menu { top: 0; left: 100%; border-radius: var(--radius); }
.submenu-toggle { display: none; }

/* --- Заголовок страницы и крошки ---------------------------------------- */
.page-header { padding: 28px 0 32px; background: linear-gradient(90deg, var(--c-bg-soft), var(--c-accent-light)); border-bottom: 1px solid var(--c-border); }
.page-header__title { margin: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0 0 14px; padding: 0; list-style: none; font-size: 14px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 10px; color: var(--c-accent); }
.breadcrumbs a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-primary); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--c-primary); font-weight: 600; }

/* --- Сетка контент + сайдбар -------------------------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 36px; padding-bottom: 60px; }
.content { min-width: 0; }

/* --- Контент (типографика редактора) ------------------------------------ */
.entry > :first-child { margin-top: 0; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li { margin-bottom: .35em; }
.entry li::marker { color: var(--c-primary); }
.entry img { border-radius: var(--radius-sm); }
.entry blockquote { margin: 1.5em 0; padding: 16px 24px; border-left: 4px solid var(--c-accent); background: var(--c-bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry th, .entry td { padding: 10px 14px; border: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.entry th { background: var(--c-bg-soft); font-weight: 600; }
.entry a[href$=".pdf"], .entry a[href$=".doc"], .entry a[href$=".docx"], .entry a[href$=".xls"], .entry a[href$=".xlsx"] { padding-left: 22px; background: var(--icon-file) no-repeat 0 .15em / 16px; }
.entry .alignleft { float: left; margin: 0 24px 16px 0; }
.entry .alignright { float: right; margin: 0 0 16px 24px; }
.entry .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry .wp-caption-text { font-size: 14px; color: var(--c-text-muted); }
.entry__meta { color: var(--c-text-muted); font-size: 14px; }
.entry__thumb img { width: 100%; }
.requisites { display: table !important; }
.requisites th { width: 38%; }

.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--c-border); }
.post-nav__next { margin-left: auto; text-align: right; }

/* --- Сайдбар ------------------------------------------------------------ */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.side-nav { background: var(--c-bg-soft); border-radius: var(--radius); overflow: hidden; }
.side-nav__title { margin: 0; font-size: 16px; }
.side-nav__title a { display: block; padding: 14px 20px; background: var(--c-primary); color: #fff; text-decoration: none; }
.side-nav__title a:hover { background: var(--c-primary-light); color: #fff; }
.side-nav__list { margin: 0; padding: 8px 0; list-style: none; }
.side-nav__list ul { margin: 0; padding: 0 0 4px 14px; list-style: none; }
.side-nav__list a { display: block; padding: 8px 20px; color: var(--c-text); font-size: 14px; line-height: 1.4; text-decoration: none; border-left: 3px solid transparent; transition: background var(--t), color var(--t), border-color var(--t); }
.side-nav__list a:hover { background: #fff; color: var(--c-primary); border-left-color: var(--c-accent); }
.side-nav__list .current_page_item > a, .side-nav__list .current-menu-item > a { background: #fff; color: var(--c-primary); font-weight: 600; border-left-color: var(--c-primary); }
.side-nav__list .submenu-toggle { display: none; }
.side-banners { display: flex; flex-direction: column; gap: 16px; }
.side-banners .widget img { display: block; width: 100%; border-radius: var(--radius-sm); transition: box-shadow var(--t), transform var(--t); }
.side-banners .widget a:hover img { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.widget__title { margin: 0 0 10px; font-size: 16px; }

/* --- Слайдер ------------------------------------------------------------ */
.hero { position: relative; background: var(--c-bg-soft); }
.hero__slider { position: relative; }
.hero__slide { position: relative; aspect-ratio: 3 / 1; overflow: hidden; }
.hero__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__banner-link { display: block; height: 100%; }
.hero__overlay { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(0, 19, 106, .78) 0%, rgba(0, 28, 143, .35) 55%, rgba(0, 28, 143, 0) 100%); }
.hero__content { max-width: 620px; color: #fff; }
.hero__title { margin: 0 0 12px; font-size: clamp(22px, 3.4vw, 44px); font-weight: 800; line-height: 1.15; }
.hero__text { margin: 0 0 24px; font-size: clamp(15px, 1.4vw, 19px); }
.hero__pagination.swiper-pagination-bullets { bottom: 16px; }
.hero .swiper-pagination-bullet { width: 10px; height: 10px; background: #fff; opacity: .6; }
.hero .swiper-pagination-bullet-active { background: var(--c-accent); opacity: 1; }
.hero__nav { position: absolute; top: 50%; z-index: 5; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); cursor: pointer; transition: background var(--t); }
.hero__nav::before { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border-top: 3px solid var(--c-primary); border-right: 3px solid var(--c-primary); }
.hero__nav--prev { left: 16px; }
.hero__nav--prev::before { transform: translateX(2px) rotate(-135deg); }
.hero__nav--next { right: 16px; }
.hero__nav--next::before { transform: translateX(-2px) rotate(45deg); }
.hero__nav:hover { background: #fff; }

/* --- Секции главной ----------------------------------------------------- */
.section { padding: 56px 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section__title { margin: 0; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-more svg { width: 18px; height: 18px; transition: transform var(--t); }
.link-more:hover svg { transform: translateX(4px); }

/* --- Карточки новостей -------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 32px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--t), transform var(--t), border-color var(--t); }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); border-color: transparent; }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-bg-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { display: grid; place-items: center; height: 100%; }
.card__placeholder img { width: 45%; height: auto; object-fit: contain; opacity: .35; }
.card:hover .card__placeholder img { transform: none; }
.card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.card__date { color: var(--c-text-muted); font-size: 13px; }
.card__title { margin: 0; font-size: 17px; line-height: 1.35; }
.card__title a { color: var(--c-primary-dark); text-decoration: none; }
.card__title a:hover { color: var(--c-primary); text-decoration: underline; }
.card__excerpt { margin: 0; color: var(--c-text-muted); font-size: 14px; }

/* --- Пагинация, поиск --------------------------------------------------- */
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); text-decoration: none; transition: background var(--t), color var(--t), border-color var(--t); }
a.page-numbers:hover { background: var(--c-bg-soft); border-color: var(--c-primary); }
.page-numbers.current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.search-form { display: flex; gap: 8px; max-width: 560px; margin-bottom: 28px; }
.search-form input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
.search-form input:focus { outline: 0; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-accent-light); }
.search-results { margin: 0 0 32px; padding: 0; list-style: none; }
.search-results__item { padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.search-results__title { font-size: 18px; font-weight: 600; }
.search-results__item p { margin: 6px 0 0; color: var(--c-text-muted); font-size: 14px; }

/* --- Подвал ------------------------------------------------------------- */
.site-footer { margin-top: auto; background: var(--c-primary-dark); color: rgba(255, 255, 255, .85); font-size: 14px; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }
.site-footer a:hover { color: var(--c-accent); text-decoration-color: currentColor; }
.footer-nav { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-nav__menu { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 18px 0; list-style: none; }
.footer-nav__menu a { font-weight: 600; text-decoration: none; }
.footer-main { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 36px; padding-top: 40px; padding-bottom: 40px; }
.footer-col__title { margin: 0 0 14px; color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin-bottom: 8px; }
.footer-menu a { text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }
.footer-logo { display: inline-block; margin-bottom: 14px; padding: 10px 14px; background: #fff; border-radius: var(--radius-sm); }
.footer-logo img { display: block; width: 140px; }
.footer-org { margin: 0 0 14px; }
.footer-contacts { margin: 0 0 18px; padding: 0; list-style: none; }
.footer-contacts li { display: flex; gap: 10px; margin-bottom: 8px; }
.footer-contacts svg { width: 16px; height: 16px; margin-top: 3px; color: var(--c-accent); }
.site-footer .socials__link { background: rgba(255, 255, 255, .12); }
.site-footer .socials__link:hover { background: var(--c-accent); color: var(--c-primary-dark); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
.footer-bottom p { margin: 0; }

/* --- Cookie-уведомление ------------------------------------------------- */
.cookie-notice { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; display: flex; justify-content: center; pointer-events: none; }
.cookie-notice[hidden] { display: none; }
.cookie-notice__inner { display: flex; align-items: center; gap: 20px; max-width: 900px; padding: 16px 20px; background: #fff; border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary); border-radius: var(--radius); box-shadow: var(--shadow-hover); pointer-events: auto; }
.cookie-notice__text { margin: 0; font-size: 14px; }
.cookie-notice__btn { min-width: 80px; }

/* --- Адаптив ------------------------------------------------------------ */
@media (max-width: 1199px) {
	.header-search { width: 220px; }
	.menu--primary > li > a { padding: 14px 11px; font-size: 14px; }
	.footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1023px) {
	.layout { grid-template-columns: 1fr; }
	.cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.topbar__item--address { display: none; }

	/* Мобильное меню */
	.burger { display: flex; }
	.header-search { display: none; }
	.primary-nav { display: none; }
	.primary-nav.is-open { display: block; }
	.menu--primary { flex-direction: column; padding: 8px 0 16px; }
	.menu--primary > li { flex-wrap: wrap; }
	.menu--primary > li > a { flex: 1; padding: 12px 0; }
	.menu--primary li { position: static; }
	.menu--primary .sub-menu, .menu--primary .sub-menu .sub-menu { position: static; display: none; width: 100%; min-width: 0; padding: 4px 0 8px 12px; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-radius: 0; background: transparent; }
	.menu--primary .is-open > .sub-menu { display: block; }
	.menu--primary .sub-menu li { display: flex; flex-wrap: wrap; }
	.menu--primary .sub-menu a { flex: 1; color: rgba(255, 255, 255, .9); }
	.menu--primary .sub-menu a:hover { background: transparent; color: #fff; text-decoration: underline; }
	.menu--primary .sub-menu .is-active > a { color: #fff; box-shadow: inset 3px 0 0 var(--c-accent); }
	.submenu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
	.submenu-toggle span { width: 10px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform var(--t); }
	.submenu-toggle[aria-expanded="true"] span { transform: rotate(-135deg); }
	.mobile-search { display: block; padding: 12px 0 0; }
}

@media (min-width: 1024px) {
	.mobile-search { display: none; }
}

@media (max-width: 767px) {
	body { font-size: 15px; }
	.topbar__inner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 8px 0; }
	.topbar__item--email { display: none; }
	.header-main__inner { min-height: 72px; gap: 12px; }
	.logo__img { width: 110px; }
	.logo__text { display: none; }
	.hero__slide { aspect-ratio: 4 / 3; }
	.hero__nav { display: none; }
	.cards, .cards--3 { grid-template-columns: 1fr; }
	.footer-main { grid-template-columns: 1fr; gap: 28px; }
	.cookie-notice__inner { flex-direction: column; align-items: stretch; gap: 12px; }
	.section { padding: 40px 0; }
	.entry .alignleft, .entry .alignright { float: none; margin: 0 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.mobile-search .search-form { margin: 0; max-width: none; }
.mobile-search input { background: #fff; border-color: #fff; }
.mobile-search .btn { background: var(--c-accent); border-color: var(--c-accent); color: var(--c-primary-dark); }
.topbar__bvi .bvi-svg-eye { width: 16px; height: 16px; }
.topbar__bvi .bvi-open { border: 0; cursor: pointer; }
.topbar__bvi .bvi-shortcode { padding: 0 !important; background: none !important; }

/* --- Контакты и форма --------------------------------------------------- */
.contacts { display: grid; gap: 24px; margin-bottom: 36px; }
.contacts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.contacts__item { padding: 18px 20px; background: var(--c-bg-soft); border-radius: var(--radius); }
.contacts__item dt { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--c-primary-dark); font-weight: 700; }
.contacts__item dt svg { width: 18px; height: 18px; color: var(--c-primary); }
.contacts__item dd { margin: 0; }
.contacts__map { border-radius: var(--radius); overflow: hidden; line-height: 0; background: var(--c-bg-soft); }
.contacts__map iframe { width: 100% !important; min-height: 400px; border: 0; }
.contacts__form { margin-top: 40px; padding: 28px; border: 1px solid var(--c-border); border-radius: var(--radius); }
.contacts__form h2 { margin-top: 0; }

.contact-form__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.contact-form .field { margin: 0 0 16px; }
.contact-form label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.contact-form input[type="text"], .contact-form input[type="tel"], .contact-form input[type="email"], .contact-form textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; transition: border-color var(--t), box-shadow var(--t); }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-accent-light); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.field--check { display: flex; align-items: flex-start; gap: 10px; }
.field--check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--c-primary); cursor: pointer; }
.field--check label { margin: 0; font-weight: 400; cursor: pointer; }
.req { color: #c62828; }
.contact-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.contact-form__note { margin: 0; color: var(--c-text-muted); font-size: 13px; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.notice { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); }
.notice--success { background: #e8f5e9; color: #1b5e20; }
.notice--error { background: #fdecea; color: #b71c1c; }

@media (max-width: 767px) {
	.contacts__list, .contact-form__grid { grid-template-columns: 1fr; }
	.contacts__form { padding: 20px 16px; }
}

/* --- Кнопка «Сведения об образовательной организации» в шапке ----------- */
.sveden-nav { position: relative; z-index: 70; }
.menu--sveden > li { position: relative; }
.menu--sveden > li > a { display: flex; align-items: center; gap: 10px; max-width: 290px; padding: 10px 18px; border: 2px solid var(--c-primary); border-radius: var(--radius-sm); color: var(--c-primary); font-size: 14px; font-weight: 700; line-height: 1.25; text-decoration: none; transition: background var(--t), color var(--t); }
.menu--sveden > li > a::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.menu--sveden > li > a:hover, .menu--sveden > li:hover > a, .menu--sveden > li.is-active > a { background: var(--c-primary); color: #fff; }
.menu--sveden > li > a:active { background: var(--c-primary-dark); }
.menu--sveden .sub-menu { position: absolute; top: calc(100% + 6px); right: 0; width: 420px; max-height: calc(100vh - 160px); overflow-y: auto; margin: 0; padding: 8px 0; list-style: none; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--t), transform var(--t), visibility var(--t); }
.menu--sveden > li::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.menu--sveden > li:hover > .sub-menu, .menu--sveden > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu--sveden .sub-menu .sub-menu { position: static; width: auto; max-height: none; padding: 0 0 4px 14px; border: 0; box-shadow: none; opacity: 1; visibility: inherit; transform: none; transition: none; }
.menu--sveden .sub-menu a { display: block; padding: 7px 20px; color: var(--c-text); font-size: 14px; line-height: 1.35; text-decoration: none; transition: background var(--t), color var(--t); }
.menu--sveden .sub-menu a:hover { background: var(--c-bg-soft); color: var(--c-primary); }
.menu--sveden .sub-menu .is-active > a { color: var(--c-primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--c-primary); }
.menu--sveden .submenu-toggle { display: none; }
.menu--mobile-sveden { display: none; }

@media (max-width: 1199px) {
	.menu--sveden > li > a { max-width: 220px; padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 1023px) {
	.sveden-nav { display: none; }
	.menu--mobile-sveden { display: flex; padding-bottom: 0; border-bottom: 1px solid rgba(255, 255, 255, .15); }
}
.menu--sveden > li > a { max-width: 360px; }
.topbar__bvi .bvi-open { white-space: nowrap; }

/* «Главная» иконкой домика на средних экранах */
.menu-home > a { display: flex !important; align-items: center; }
@media (min-width: 1024px) and (max-width: 1279px) {
	.menu--primary .menu-home > a { width: 48px; font-size: 0 !important; justify-content: center; }
	.menu--primary .menu-home > a::before { content: ""; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") no-repeat center / contain; }
}
@media (max-width: 1199px) {
	.topbar__item--address { display: none; }
	.menu--sveden > li > a { max-width: 260px; }
}

/* --- Контент: галереи, спойлеры, колонки, таблицы, список новостей ------ */
.entry .gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 1.5em; }
.entry .gallery.gallery-columns-1 { grid-template-columns: 1fr; }
.entry .gallery.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry .gallery.gallery-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry .gallery-item { margin: 0; }
.entry .gallery-icon a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--c-bg-soft); }
.entry .gallery-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .4s ease, opacity var(--t); }
.entry .gallery-icon a:hover img { transform: scale(1.05); opacity: .9; }
.entry .gallery-caption { margin-top: 4px; font-size: 13px; color: var(--c-text-muted); }
.entry .gallery br { display: none; }

.entry details.spoiler { margin: 0 0 12px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; }
.entry details.spoiler > summary { position: relative; padding: 12px 44px 12px 16px; font-weight: 600; color: var(--c-primary-dark); cursor: pointer; list-style: none; transition: background var(--t); }
.entry details.spoiler > summary::-webkit-details-marker { display: none; }
.entry details.spoiler > summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--c-primary); border-bottom: 2px solid var(--c-primary); transform: rotate(45deg); transition: transform var(--t); }
.entry details.spoiler[open] > summary::after { margin-top: -2px; transform: rotate(-135deg); }
.entry details.spoiler > summary:hover { background: var(--c-bg-soft); }
.entry details.spoiler[open] > summary { border-bottom: 1px solid var(--c-border); }
.entry details.spoiler > :not(summary) { margin-left: 16px; margin-right: 16px; }
.entry details.spoiler > :nth-child(2) { margin-top: 12px; }

.entry .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-bottom: 1em; }
.entry .table-wrap { overflow-x: auto; margin-bottom: 1em; }
.entry .table-wrap table { display: table; }
.entry iframe { max-width: 100%; }
.entry .wp-video { max-width: 100% !important; }

.news-list { padding: 0 !important; list-style: none; }
.news-list__item { padding: 8px 0; border-bottom: 1px solid var(--c-border); }
.news-list__item time { display: inline-block; min-width: 96px; color: var(--c-text-muted); font-size: 14px; }

/* --- Лайтбокс ----------------------------------------------------------- */
.is-locked { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 48px 72px; background: rgba(var(--c-overlay-rgb), .92); }
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; text-align: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: var(--radius-sm); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox__caption { margin-top: 10px; color: #fff; font-size: 14px; }
.lightbox__close { position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; transition: background var(--t); }
.lightbox__nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); cursor: pointer; transition: background var(--t); }
.lightbox__nav::before { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border-top: 3px solid #fff; border-right: 3px solid #fff; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--prev::before { transform: translateX(2px) rotate(-135deg); }
.lightbox__nav--next { right: 14px; }
.lightbox__nav--next::before { transform: translateX(-2px) rotate(45deg); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox--single .lightbox__nav { display: none; }

@media (max-width: 767px) {
	/* :not() — чтобы перебить .gallery-columns-N (иначе галереи в 3 колонки оставались 3-колоночными и на телефоне) */
	.entry .gallery:not(.gallery-columns-1) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lightbox { padding: 56px 8px; }
	.lightbox__nav { top: auto; bottom: 8px; margin-top: 0; }
}
.card__excerpt, .card__title { overflow-wrap: anywhere; }
.entry { overflow-wrap: break-word; }
.entry table, .entry table * { overflow-wrap: normal; word-break: normal; }
.entry td, .entry th { min-width: 64px; }

/* --- Слайдер: без подложки, читаемость за счёт тени текста -------------- */
.hero__overlay { background: none; pointer-events: none; }
.hero__overlay .btn { pointer-events: auto; }
.hero__title, .hero__text { text-shadow: 0 2px 14px rgba(0, 10, 40, .65), 0 1px 3px rgba(0, 10, 40, .7); }
.hero__text { max-width: 560px; }
@media (max-width: 767px) {
	.hero__overlay { align-items: flex-end; padding-bottom: 44px; }
	.hero__title { font-size: 24px; }
	.hero__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
}

/* --- Слайдер: варианты (переключатели — «Настройки сайта» → «Оформление») --
   hero-full     — во всю ширину экрана (исходный вариант: действуют только правила выше);
   hero-boxed    — по ширине контента (.container), со скруглёнными углами;
   hero-muted    — приглушённые цвета слайдов (фильтр при показе, сами файлы не меняются);
   hero-original — цвета как в картинке (исходный вариант). */
.hero-boxed .hero { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 32px var(--gutter) 0; background: none; }
.hero-boxed .hero__slider { container-type: inline-size; border-radius: var(--radius); }
.hero-boxed .hero__overlay .container { padding: 0 88px; }
.hero-boxed .hero__content { max-width: 40cqi; }
.hero-boxed .hero__title { font-size: clamp(22px, 3cqi, 38px); }
.hero-boxed .hero__text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: clamp(14px, 1.3cqi, 17px); }
@container (max-width: 1023px) { .hero-boxed .hero__text { -webkit-line-clamp: 3; } }
@container (max-width: 860px) { .hero-boxed .hero__text { -webkit-line-clamp: 2; } }
@media (max-width: 767px) {
	.hero-boxed .hero { padding-top: 16px; }
	.hero-boxed .hero__overlay .container { padding: 0 16px; }
	.hero-boxed .hero__content { max-width: none; }
	.hero-boxed .hero__title { font-size: 22px; }
	.hero-boxed .hero__text { -webkit-line-clamp: 3; font-size: 15px; }
}
.bvi-active.hero-boxed .hero__overlay .container { padding: 0 16px; }

.hero-muted .hero__img { filter: saturate(.35) brightness(.94) contrast(.95); }

/* --- Главная: сайдбар слева, новости справа ------------------------------ */
/* В разметке новости идут первыми — на мобильных (одна колонка) они остаются над сайдбаром. */
.home-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 1024px) {
	.home-sidebar { order: -1; }
}
.home-main { min-width: 0; }
.home-news .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Фотогалерея под новостями (template-parts/home-gallery.php): сетка и лайтбокс — общие для .entry .gallery */
.home-gallery { margin-top: 8px; }
.home-gallery .gallery { margin-bottom: 0; }
/* «Целиком, без обрезки» (настройка «Как показывать»): без рамки 4:3, высота — по пропорциям картинки */
.home-gallery--full .gallery { align-items: start; }
.home-gallery--full .gallery-icon a { aspect-ratio: auto; background: none; }
.home-gallery--full .gallery-icon img { height: auto; object-fit: contain; }
.home-sidebar { gap: 28px; }

/* Объявления — визуально отличаются от новостей: светлый блок, дата-плашка, компактный список */
.announcements { padding: 20px; background: var(--c-accent-light); border-radius: var(--radius); border-top: 4px solid var(--c-accent); }
.announcements__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; }
.announcements__title svg { width: 24px; height: 24px; color: var(--c-primary); }
.announcements__list { margin: 0 0 12px; padding: 0; list-style: none; }
.announcement + .announcement { border-top: 1px solid rgba(var(--c-shadow-rgb), .12); }
.announcement__link { display: flex; gap: 12px; padding: 12px 0; color: var(--c-text); text-decoration: none; }
.announcement__thumb { flex-shrink: 0; width: 64px; height: 64px; overflow: hidden; border-radius: var(--radius-sm); background: #fff; }
.announcement__thumb img { width: 100%; height: 100%; object-fit: cover; }
.announcement__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.announcement__date { align-self: flex-start; padding: 1px 8px; border-radius: 20px; background: var(--c-primary); color: #fff; font-size: 12px; font-weight: 600; }
.announcement__name { font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--c-primary-dark); transition: color var(--t); }
.announcement__excerpt { font-size: 13px; line-height: 1.4; color: var(--c-text-muted); overflow-wrap: anywhere; }
.announcement__link:hover .announcement__name { color: var(--c-primary); text-decoration: underline; }
.announcements__more { font-size: 14px; }

/* Баннеры и QR в сайдбаре */
.side-banners .widget { padding: 16px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); text-align: center; }
.side-banners .widget p { margin: 0 0 10px; font-size: 14px; }
.side-banners .widget img { margin: 0 auto; }
.qr-widget img { max-width: 180px; }

/* --- О колледже ---------------------------------------------------------- */
.about { background: var(--c-bg-soft); }
.about .section__title { margin-bottom: 24px; }
.about__grid { display: grid; gap: 32px; }
.about__grid--image { grid-template-columns: 5fr 7fr; align-items: start; }
.about__image { margin: 0; }
.about__image img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; }
.about__video { margin: 0; }
.about__video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.about__video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.about__video figcaption { margin-top: 8px; font-size: 14px; color: var(--c-text-muted); }

/* --- Баннер ПОС ---------------------------------------------------------- */
.section--pos { padding: 40px 0; }
.section--pos #js-show-iframe-wrapper { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* --- Логотипы ------------------------------------------------------------ */
.logos { padding: 32px 0 48px; border-top: 1px solid var(--c-border); }
.logos__slider { position: relative; padding: 0 52px; }
.logos__list { margin: 0; padding: 0; list-style: none; }
.logos__item { height: auto; }
.logos__link { display: flex; align-items: center; justify-content: center; height: 100px; padding: 10px; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-sm); transition: border-color var(--t), box-shadow var(--t); }
.logos__link img { max-width: 100%; max-height: 80px; width: auto; height: auto; object-fit: contain; filter: grayscale(.2); transition: filter var(--t); }
a.logos__link:hover { border-color: var(--c-accent); box-shadow: var(--shadow); }
a.logos__link:hover img { filter: none; }
.logos__nav { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; border: 1px solid var(--c-border); border-radius: 50%; background: #fff; cursor: pointer; transition: background var(--t), border-color var(--t); }
.logos__nav::before { content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-top: 2px solid var(--c-primary); border-right: 2px solid var(--c-primary); }
.logos__nav--prev { left: 0; }
.logos__nav--prev::before { transform: translateX(2px) rotate(-135deg); }
.logos__nav--next { right: 0; }
.logos__nav--next::before { transform: translateX(-2px) rotate(45deg); }
.logos__nav:hover { background: var(--c-bg-soft); border-color: var(--c-primary); }

@media (max-width: 1023px) {
	.home-layout { grid-template-columns: 1fr; }
	.about__grid--image { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.home-news .cards { grid-template-columns: 1fr; }
	.about__videos { grid-template-columns: 1fr; }
	.logos__slider { padding: 0 44px; }
}

/* --- Список дочерних страниц раздела [child_pages] ----------------------- */
.entry .child-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.5em; padding: 0; list-style: none; }
.entry .child-pages > li { margin: 0; }
.entry .child-pages > li > a { display: flex; align-items: center; min-height: 56px; padding: 12px 44px 12px 18px; position: relative; background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-sm); color: var(--c-primary-dark); font-weight: 600; text-decoration: none; transition: background var(--t), border-color var(--t), color var(--t); }
.entry .child-pages > li > a::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-top: 2px solid var(--c-primary); border-right: 2px solid var(--c-primary); transform: rotate(45deg); }
.entry .child-pages > li > a:hover { background: #fff; border-color: var(--c-primary); color: var(--c-primary); }
.entry .child-pages .children { margin: 6px 0 0; padding: 0 0 0 18px; list-style: none; }
.entry .child-pages .children li { margin: 4px 0; }
.entry .child-pages .children a { font-size: 14px; }
@media (max-width: 767px) { .entry .child-pages { grid-template-columns: 1fr; } }

/* --- Верхняя полоса на мобильных: одна строка, телефон слева, соцсети и BVI справа */
@media (max-width: 767px) {
	.topbar__inner { flex-direction: row; align-items: center; gap: 12px; min-height: 48px; padding: 6px var(--gutter); }
	.topbar__contacts { flex-wrap: nowrap; min-width: 0; }
	.topbar__item { white-space: nowrap; }
	.topbar__tools { gap: 8px; margin-left: auto; }
	.topbar__bvi .bvi-open { gap: 0; padding: 0 !important; width: 32px; height: 32px; justify-content: center; border-radius: 50% !important; font-size: 0 !important; }
	.topbar__bvi .bvi-svg-eye { font-size: 16px !important; width: 18px; height: 16px; }
}

/* --- Режим «Версия для слабовидящих» (плагин BVI, класс .bvi-active) ----- */
/* Плагин красит фоны всех элементов: текст слайда выводим под картинкой, а не поверх неё. */
.bvi-active .hero__slide { aspect-ratio: auto; }
.bvi-active .hero__img { height: auto; aspect-ratio: 3 / 1; }
.bvi-active .hero__overlay { position: static; padding: 16px 0 48px; }
.bvi-active .hero__title, .bvi-active .hero__text { text-shadow: none; }
/* Кнопка включения не нужна в самом режиме — выход через «Обычная версия сайта» на панели плагина. */
.bvi-active .topbar__bvi { display: none; }
