/*
Theme Name: SCH7
Description: Тема сайту Вінницького ліцею №7. Мобільна версія першою; кольори й класи контенту сумісні зі старим сайтом.
Version: 2.0.0
Text Domain: sch7

Кольори бренду — змінні :root нижче. Брейкпоінт комп'ютера 960px (той самий у assets/nav.js).
Класи .zagolovok, .ogolosh, .flex7, table.border, .all_content — зі старого сайту: не перейменовувати,
їх використовує імпортований HTML. Стилі плагіна (форма, карта, схеми, мітки втрат) — розділ «Елементи плагіна».

Розділи: Основа → Кнопки → Шапка → Головна → Сторінки → Картки → Бічна колонка → Текст → Старі класи → Плагін → Підвал.
*/

/* ================================================================ Основа */
:root {
	/* Бренд: --navy шапка/підвал, --blue посилання, --sky акценти. Зміна тут оновлює весь сайт. */
	--navy: #1f2c6c;
	--navy-900: #141c49;
	--blue: #0b5cad;
	--sky: #70bef7;
	--sky-100: #e9f4fe;
	--sky-50: #f4f9fe;
	--ink: #1d2733;
	--muted: #5b6673;
	--line: #dbe3ec;
	--bg: #f4f7fb;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(20, 28, 73, .06), 0 6px 20px rgba(20, 28, 73, .08);
	--max: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; padding: 10px 16px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip-link:focus { top: 8px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================================================================ Кнопки */
.button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0 22px;
	border: 2px solid var(--sky); border-radius: 999px;
	background: var(--sky); color: var(--navy-900);
	font-weight: 700; text-decoration: none; text-align: center;
	transition: background .15s, color .15s;
}
.button:hover { background: #fff; border-color: #fff; color: var(--navy); }
.button .icon { flex: none; width: 20px; height: 20px; }
.button--light { background: transparent; border-color: rgba(255, 255, 255, .75); color: #fff; }
.button--light:hover { background: #fff; color: var(--navy); }
.button--ghost { background: #fff; border-color: var(--navy); color: var(--navy); }
.button--ghost:hover { background: var(--navy); color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0 0; }
.button-row .button { gap: 8px; }

/* ================================================================ Шапка й меню (телефон) */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); color: #fff; box-shadow: 0 2px 12px rgba(20, 28, 73, .25); }
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-block: 8px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: #fff; text-decoration: none; }
.brand:hover, .brand:focus-visible { color: #fff; }
.brand-text { transform-origin: left center; transition: transform .18s ease; }
@media (hover: hover) { .brand:hover .brand-text, .brand:focus-visible .brand-text { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .brand-text { transition: none; } }
.brand img { flex: none; height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-text strong { font-size: 1.05rem; }
.brand-text small { font-size: .78rem; opacity: .85; }

.nav-toggle {
	display: inline-flex; align-items: center; gap: 10px; flex: none;
	min-height: 44px; padding: 0 14px;
	border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius-sm);
	background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .2s, background .2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav { display: none; background: var(--navy-900); }
.main-nav.is-open { display: block; max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px); overflow-y: auto; overscroll-behavior: contain; }
body.nav-open { overflow: hidden; }

.main-menu, .main-menu ul { margin: 0; padding: 0; list-style: none; }
.main-menu li { position: relative; border-top: 1px solid rgba(255, 255, 255, .1); }
.main-menu a { display: block; padding: 14px 56px 14px 4px; color: #fff; text-decoration: none; font-weight: 500; }
.main-menu > li > a { min-height: 49px; }
.main-menu .sub-menu { display: none; background: rgba(255, 255, 255, .05); }
.main-menu li.is-open > .sub-menu { display: block; }
.main-menu .sub-menu a { padding-left: 20px; font-size: .97rem; font-weight: 400; }
.main-menu .sub-menu .sub-menu a { padding-left: 36px; }
.main-menu .current-menu-item > a { color: var(--sky); }

.submenu-toggle { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 52px; height: 49px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.submenu-toggle span { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
li.is-open > .submenu-toggle span { transform: rotate(-135deg); }

/* ================================================================ Шапка й меню (комп'ютер) */
@media (min-width: 960px) {
	/* Шапка й меню прикріплені до верху й на комп'ютері. Без JavaScript: звичайне прикріплення на повну висоту.
	   З JavaScript (клас html.sch7-fixed-header): шапка фіксована, а місце під неї тримає body (відступ = висота шапки), тому стиснення
	   під час прокручування не зсуває сторінку; прокручена шапка стає компактнішою (.is-compact), див. assets/nav.js. */
	.site-header { position: sticky; }
	html.sch7-fixed-header .site-header { position: fixed; top: 0; left: 0; right: 0; }
	html.sch7-fixed-header body { padding-top: var(--sch7-header-full, 182px); }
	html.sch7-fixed-header body.admin-bar .site-header { top: 32px; }
	html { scroll-padding-top: calc(var(--sch7-header-compact, 140px) + 12px); }
	.header-bar { min-height: 84px; transition: min-height .2s ease, padding .2s ease; }
	.brand img { transition: height .2s ease; }
	.main-menu > li > a { transition: padding .2s ease; }
	.site-header.is-compact .header-bar { min-height: 52px; padding-block: 4px; }
	.site-header.is-compact .brand img { height: 36px; }
	.site-header.is-compact .brand-text strong { font-size: 1.05rem; }
	.site-header.is-compact .brand-text small { display: none; }
	.site-header.is-compact .main-menu > li > a { padding-block: 9px; }
	@media (prefers-reduced-motion: reduce) { .header-bar, .brand img, .main-menu > li > a { transition: none; } }

	.brand img { height: 56px; }
	.brand-text strong { font-size: 1.3rem; }
	.brand-text small { font-size: .9rem; }
	.nav-toggle { display: none; }

	.main-nav { display: block; }
	body.nav-open { overflow: visible; }
	.main-menu { display: flex; flex-wrap: wrap; }
	.main-menu li { border: 0; }
	.main-menu > li > a { min-height: 0; padding: 13px 9px; font-size: .88rem; }
	/* Підсвітка й підменю відкриваються при наведенні або при фокусі з клавіатури (:focus-visible); після кліку мишею фокус підменю не тримає. */
	.main-menu > li:hover > a, .main-menu > li:has(:focus-visible) > a, .main-menu > .current-menu-item > a, .main-menu > .current-menu-ancestor > a { background: rgba(255, 255, 255, .12); }
	.submenu-toggle { display: none; }

	.main-menu .sub-menu {
		display: block; position: absolute; z-index: 60; left: 0; top: 100%;
		min-width: 260px; max-width: 340px; padding: 6px 0;
		background: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: var(--shadow);
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
	}
	.main-menu li:hover > .sub-menu, .main-menu li:has(:focus-visible) > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	.main-menu .sub-menu a { padding: 9px 16px; color: var(--ink); font-size: .92rem; }
	.main-menu .sub-menu a:hover, .main-menu .sub-menu a:focus { background: var(--sky-50); color: var(--navy); }
	.main-menu .sub-menu .sub-menu { left: 100%; top: -6px; border-radius: var(--radius-sm); }
	/* Останні пункти відкриваються вліво, щоб не виходити за край екрана. */
	.main-menu > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }
	.main-menu > li:nth-last-child(-n+3) .sub-menu .sub-menu { left: auto; right: 100%; }
}

/* ================================================================ Головна: блок-привітання */
.hero {
	background: linear-gradient(180deg, rgba(20, 28, 73, .52), rgba(20, 28, 73, .68)), var(--hero-image, none) center / cover no-repeat, var(--navy);
	color: #fff;
}
.hero__inner { padding-block: clamp(36px, 8vw, 96px) clamp(56px, 9vw, 110px); }
.hero__kicker { margin: 0 0 6px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.hero__title { margin: 0; font-size: clamp(1.9rem, 6.4vw, 3.4rem); line-height: 1.1; }
.hero__subtitle { margin: .3em 0 0; font-size: clamp(1.05rem, 3.2vw, 1.55rem); opacity: .92; }
.hero .button { max-width: 100%; }
@media (max-width: 520px) {
	.hero .button-row { flex-direction: column; align-items: flex-start; }
}

.tiles { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: -34px 0 0; padding: 0; list-style: none; }
.tiles a {
	display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%;
	padding: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
	color: var(--navy); font-weight: 600; line-height: 1.25; text-decoration: none;
	transition: transform .15s, box-shadow .15s;
}
.tiles a:hover { transform: translateY(-3px); color: var(--navy); }
.tiles__head { display: flex; align-items: center; gap: 10px; }
.tiles__head img { flex: none; width: 40px; height: 40px; object-fit: contain; }
.tiles__qr { width: 100px; height: 100px; object-fit: contain; }
@media (min-width: 960px) { .tiles { grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -46px; } }

.home-content { padding-block: 32px 8px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin: 36px 0 16px; }
.section-head h2 { margin: 0; font-size: clamp(1.4rem, 4vw, 1.9rem); color: var(--navy); }

/* ================================================================ Розмітка сторінок */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 48px; }
@media (min-width: 960px) {
	.layout { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
	.layout > .sidebar { order: -1; }
}
.content { min-width: 0; }

.breadcrumbs { padding: 16px 0 6px; font-size: .85rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin: 0 8px; color: var(--muted); } /* роздільник після пункту, щоб не лишався сам на початку рядка */
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

.page-header h1 { margin: 6px 0 .5em; color: var(--navy); font-size: clamp(1.6rem, 4.6vw, 2.3rem); line-height: 1.2; }
.entry-meta { margin: -.2em 0 1em; color: var(--muted); font-size: .9rem; }

/* ================================================================ Картки новин */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card__media { display: block; aspect-ratio: 16 / 10; background: var(--sky-100); }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card__media--empty { display: none; }
.card:has(.card__media--empty) { border-top: 4px solid var(--sky); }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 16px; }
.card__date { color: var(--muted); font-size: .8rem; }
.card__title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a:hover { text-decoration: underline; }
.card__text { margin: 0; color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.year-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.year-chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); color: var(--navy); font-size: .9rem; text-decoration: none; }
.year-chips a:hover { background: var(--navy); color: #fff; }

.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow); color: var(--navy); text-decoration: none; }
.page-numbers.current { background: var(--navy); color: #fff; }
.page-numbers.dots { background: none; box-shadow: none; }

.post-navigation { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.post-navigation .nav-links { display: grid; gap: 12px; }
.post-navigation a { display: block; padding: 12px 14px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); text-decoration: none; line-height: 1.35; }
@media (min-width: 700px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } .post-navigation .nav-next { text-align: right; } }

/* ================================================================ Бічна колонка */
.widget { margin-bottom: 20px; padding: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.widget__title { margin: 0 0 10px; color: var(--navy); font-size: 1.05rem; line-height: 1.3; }
.widget__title a { color: inherit; text-decoration: none; }
.widget__more { margin: 12px 0 0; font-size: .92rem; }
.section-list, .mini-news, .archive-list { margin: 0; padding: 0; list-style: none; }
.section-list a { display: block; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); line-height: 1.3; text-decoration: none; }
.section-list a:hover { background: var(--sky-50); color: var(--navy); }
.section-list .is-current a { background: var(--sky-100); color: var(--navy); font-weight: 600; }
@media (min-width: 960px) { .widget--section .section-list { max-height: 26rem; overflow-y: auto; } }
.mini-news li { padding: 10px 0; border-top: 1px solid var(--line); line-height: 1.35; }
.mini-news li:first-child { padding-top: 0; border-top: 0; }
.mini-news time { display: block; color: var(--muted); font-size: .78rem; }
.mini-news a { color: var(--ink); text-decoration: none; }
.mini-news a:hover { color: var(--blue); text-decoration: underline; }
.archive summary { display: flex; align-items: center; justify-content: space-between; margin: 0; cursor: pointer; list-style: none; }
.archive summary::-webkit-details-marker { display: none; }
.archive summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.archive[open] summary::after { transform: rotate(-135deg); }
.archive-list { margin-top: 10px; columns: 2; column-gap: 16px; }
.archive-list li { padding: 3px 0; }

/* ================================================================ Текст сторінок (в т.ч. імпортований зі старого сайту) */
.all_content > :first-child { margin-top: 0; }
.all_content p { margin: 0 0 1em; }
.all_content h2, .all_content h3, .all_content h4 { margin: 1.4em 0 .5em; color: var(--navy); line-height: 1.3; }
.all_content h2 { font-size: clamp(1.2rem, 3.6vw, 1.5rem); }
.all_content h3 { font-size: clamp(1.1rem, 3vw, 1.25rem); }
.all_content h4 { font-size: 1.05rem; }
.all_content ul, .all_content ol { padding-left: 1.4em; }
.all_content li { margin-bottom: .3em; }
.all_content a { overflow-wrap: anywhere; }
.all_content img { max-width: 100%; height: auto; border-radius: 6px; }
/* SVG-логотипи в імпортованому тексті (напр. «Про нас в мережі», якщо спрацює swap). Плитки головної — у front-page.php, не тут. */
.all_content img[src*="scheduler-icon.svg"],
.all_content img[src*="facebook-logo.svg"],
.all_content img[src*="instagram-logo.svg"],
.all_content img[src*="tiktok-solo-icon.svg"] { width: 100px; height: 100px; object-fit: contain; }
.all_content img[align="left"], .all_content img[align="right"] { margin: 4px 16px 8px 0; }
.all_content img[align="right"] { float: right; margin: 4px 0 8px 16px; }
.all_content img[align="left"] { float: left; }
/* display:block + overflow-x: широкі таблиці прокручуються, а не вилазять за екран.
   tbody лишається display:table: інакше колонки ламаються, і комірка з фото поруч із довгим текстом
   зхлопується (max-width:100% на img і ширина комірки залежать одне від одного → фото ~20px). */
.all_content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; -webkit-overflow-scrolling: touch; }
.all_content table > thead, .all_content table > tbody, .all_content table > tfoot { display: table; width: max-content; min-width: 100%; border-collapse: collapse; }
.all_content td img, .all_content th img { max-width: none; }
@media (max-width: 640px) { .all_content td img, .all_content th img { max-width: 100%; } }
/* «Про нас в мережі» (/pro_nas/urlnet/): три колонки логотип+QR ширші за колонку контенту — стискаємо, щоб не обрізало праву. */
.page-urlnet .all_content table,
.page-urlnet .all_content table > tbody { display: table; width: 100%; max-width: 100%; }
.page-urlnet .all_content td { width: 33.333%; }
.page-urlnet .all_content td img { display: block; max-width: 100%; height: auto; margin-inline: auto; }
@media (max-width: 640px) {
	.page-urlnet .all_content td { display: block; width: 100%; }
	.page-urlnet .all_content td img { max-width: min(100%, 240px); }
}
/* ger_p1: портрети посольства/дирекції (.sch7-people у HTML). 3 колонки → 2 → 1. */
.page-ger-p1 .sch7-people {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 16px; margin: 1.4em 0;
}
.page-ger-p1 .sch7-people__card {
	flex: 0 1 calc(33.333% - 12px); max-width: 196px; width: 100%; margin: 0; text-align: center;
}
.page-ger-p1 .sch7-people__card img { display: block; width: 100%; height: auto; margin-inline: auto; border-radius: 6px; }
.page-ger-p1 .sch7-people__card figcaption { margin-top: 8px; font-size: .92rem; line-height: 1.4; }
.page-ger-p1 .sch7-people__card figcaption div { margin: 0; }
@media (max-width: 720px) {
	.page-ger-p1 .sch7-people__card { flex-basis: calc(50% - 10px); }
}
@media (max-width: 520px) {
	.page-ger-p1 .sch7-people__card { flex: 1 1 100%; max-width: 240px; }
}

/* Біографія: таблицю «фото | текст» прибрано під час показу; фото зліва, текст обтікає. Розмір фото — нижче, після .sch7-figure. */
.all_content .sch7-bio { overflow: auto; margin: 0 0 1.4em; }
.all_content .sch7-bio__text p { margin: 0 0 .7em; }
.all_content .sch7-bio__text p:last-child { margin-bottom: 0; }
/* Таблиця з align="center" (на самій таблиці чи на <div> навколо), без width і не «.border» (її на головній верстає окреме правило): через display:block вона притискалась до лівого краю; тепер центрується за вмістом. */
.all_content div[align="center"] > table:not([width]):not(.border), .all_content table[align="center"]:not([width]):not(.border) { width: fit-content; max-width: 100%; margin-inline: auto; }
.all_content td, .all_content th { padding: 6px 10px; border: 1px solid var(--line); vertical-align: top; }
.all_content table[border="0"] td, .all_content table[border="0"] th { border: 0; }
.all_content { overflow-wrap: break-word; }

/* Виділена плашка (напр. «Довідка за телефонами»): клас уже в HTML запису. */
.all_content .sch7-callout { margin: 1.4em 0; padding: 14px 18px; background: var(--sky-50); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: var(--radius-sm); }
.all_content .sch7-callout p { margin: 0 0 .5em; line-height: 1.5; }
.all_content .sch7-callout p:last-child { margin-bottom: 0; }
.all_content .sch7-callout > p:first-child { margin-bottom: .6em; color: var(--navy); font-size: 1.05rem; }
.all_content .sch7-callout > p:first-child strong { font-weight: 700; }
.all_content .sch7-callout > p + p strong { font-weight: 600; }
.all_content iframe, .all_content object, .all_content embed, .all_content video { max-width: 100%; border: 0; }
.all_content object, .all_content embed { width: 100%; min-height: 60vh; }
.all_content pre, .all_content [style*="white-space: pre"], .all_content [style*="white-space:pre"] { white-space: pre-wrap !important; overflow-wrap: anywhere; }
.all_content iframe[src*="youtube"], .all_content iframe[src*="youtu.be"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.all_content iframe[src$=".pdf"] { width: 100%; min-height: 70vh; }
.all_content blockquote { margin: 1em 0; padding: .5em 1em; border-left: 4px solid var(--sky); background: var(--sky-50); }
/* Фото з підписами: <figure> з <figcaption>; кілька фото підряд складаються в сітку */
.all_content { container-type: inline-size; } /* кількість колонок сітки залежить від ширини самого тексту (з бічною колонкою чи без) */
.all_content .sch7-figure { margin: 1.2em auto; text-align: center; }
.all_content .sch7-figure img { display: inline-block; max-width: 100%; height: auto; }
.all_content .sch7-figure figcaption { margin-top: 6px; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.all_content .sch7-figure figcaption * { font-size: inherit; }
/* Еталон — найменше фото кафедри математики (tiger-1687245335, 150×187). Більші підганяються object-fit:cover. */
.all_content .sch7-bio { --sch7-bio-w: 150px; --sch7-bio-h: 187px; }
.all_content .sch7-bio > img,
.all_content .sch7-bio > a:first-child,
.all_content .sch7-bio > figure { float: left; margin: 0 16px 10px 0; }
.all_content .sch7-bio > figure { width: var(--sch7-bio-w); }
.all_content .sch7-bio img {
	display: block; width: var(--sch7-bio-w); height: var(--sch7-bio-h); max-width: none;
	object-fit: cover; object-position: top center;
}

/* Збільшення фото по кліку (assets/lightbox.js): посилання a.sch7-zoom створює плагін, див. includes/images.php */
.all_content a.sch7-zoom { cursor: zoom-in; text-decoration: none; }
.all_content a.sch7-zoom:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
html.sch7-lb-open { overflow: hidden; }
.sch7-lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 14, 35, .94); color: #fff; }
.sch7-lb::backdrop { background: rgba(10, 14, 35, .94); }
.sch7-lb__stage { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 56px 12px 14px; }
.sch7-lb__img { flex: 0 1 auto; min-height: 0; max-width: 100%; max-height: calc(100% - 70px); object-fit: contain; border-radius: 4px; transition: opacity .15s; }
.sch7-lb__img.is-loading { opacity: .35; }
.sch7-lb__bar { flex: none; max-width: min(900px, 100%); text-align: center; font-size: .9rem; line-height: 1.4; }
.sch7-lb__caption { margin: 0 0 4px; }
.sch7-lb__meta { margin: 0; display: flex; gap: 14px; justify-content: center; opacity: .8; font-size: .82rem; }
.sch7-lb__orig { color: #fff; }
.sch7-lb__btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.sch7-lb__btn:hover, .sch7-lb__btn:focus-visible { background: rgba(255, 255, 255, .3); }
.sch7-lb__btn[hidden] { display: none; }
.sch7-lb__close { top: 8px; right: 8px; }
.sch7-lb__prev, .sch7-lb__next { top: 50%; transform: translateY(-50%); }
.sch7-lb__prev { left: 8px; }
.sch7-lb__next { right: 8px; }
@media (max-width: 600px) { .sch7-lb__prev, .sch7-lb__next { top: auto; bottom: 8px; transform: none; } }

/* Сітка: однакові рамки 4:3 (фото вміщується повністю, нічого не обрізається), підписи рівно під фото, останній ряд по центру */
.all_content .sch7-gallery { clear: both; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 22px 16px; margin: 1.2em 0; } /* clear: сітка починається нижче фото з обтіканням текстом */
.all_content .sch7-gallery .sch7-figure { flex: 0 1 100%; min-width: 0; margin: 0; }
.all_content .sch7-gallery .sch7-figure a { display: block; }
.all_content .sch7-gallery .sch7-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: var(--sky-50); border-radius: 6px; }
.all_content .sch7-gallery .sch7-figure figcaption { margin-top: 8px; }
@container (min-width: 520px) { .all_content .sch7-gallery .sch7-figure { flex-basis: calc((100% - 16px) / 2); } }
@container (min-width: 760px) { .all_content .sch7-gallery .sch7-figure { flex-basis: calc((100% - 32px) / 3); } }
/* Дрібний текст: підписи під картинками (у старому контенті їх позначали малим розміром шрифту) */
.all_content .sch7-small { font-size: .85rem; color: var(--muted); }
.pdf-open { padding: 12px 16px; background: var(--sky-100); border-radius: var(--radius-sm); font-weight: 600; }
/* Вирівнювання «по ширині» зі старого редактора дає великі проміжки між словами: читабельніше зліва. */
.all_content [align="justify"], .all_content [style*="justify"] { text-align: left !important; }
@media (max-width: 640px) {
	.all_content img[align="left"], .all_content img[align="right"] { float: none; display: block; margin: 8px auto; }
}

/* ================================================================ Класи зі старого сайту (використовує імпортований контент) */
.zagolovok { margin: 0 0 1rem; padding: 12px 16px; border-left: 5px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--sky-100); color: var(--navy); font-size: 1.15rem; font-weight: 700; line-height: 1.35; text-align: left; }
.ogolosh, .ogolosh3 { margin: 0 0 1.25em; padding: 16px 18px; border-left: 5px solid; border-radius: var(--radius-sm); font-size: 1.05rem; font-weight: 600; text-align: left; }
.ogolosh p, .ogolosh3 p { margin: 0 0 .6em; }
.ogolosh p:last-child, .ogolosh3 p:last-child { margin-bottom: 0; }
.ogolosh3 { background: var(--sky-100); border-color: var(--navy); color: var(--navy); }
.ogolosh { background: #fdecea; border-color: #c0392b; color: #8f1d12; }
button.flex7, a.flex7 { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
button.flex7:hover, a.flex7:hover { background: var(--blue); color: #fff; }
.all_content .menu { padding: 10px 0; border-bottom: 1px solid var(--line); list-style: none; }
.all_content .menu a { font-weight: 600; text-decoration: none; }
.all_content .menu a:hover { text-decoration: underline; }
.all_content table.border td { border: 1px solid var(--sky); }
.articles_item { display: flex; flex-wrap: wrap; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.articles_item .field_name { color: var(--muted); font-size: .82rem; }
.article_img img { width: 115px; border: 1px solid var(--line); }
.article_pdf_img img { width: 35px; margin-right: 10px; cursor: pointer; }
.clear { clear: both; }

/* Головна: у контенті лишається одна картка «Календар подій». */
.home .all_content table.border, .home .all_content table.border tbody { display: block; width: 100%; }
.home .all_content table.border tr { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.home .all_content table.border td { display: block; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-align: center; }
.home .all_content table.border .zagolovok {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	padding-left: 16px; text-align: center; border-radius: var(--radius-sm);
}
.home .all_content table.border .zagolovok .icon { flex: none; width: 22px; height: 22px; color: var(--blue); }
.home .all_content table.border iframe { width: 100%; height: 300px; }
.home .all_content table.border p { text-align: center; }
.home .all_content > .zagolovok:first-child { display: none; } /* привітання вже є в блоці вгорі */
.home .all_content table[border="0"] img { max-width: 100%; height: auto; }

/* ================================================================ Елементи плагіна SCH7 Core */
.sch7-documents, .sch7-links { padding-left: 1.2em; }
.sch7-documents li { margin-bottom: 8px; }
.sch7-documents .meta, .sch7-doc-year .meta { color: var(--muted); font-size: .82rem; }
.sch7-placeholder { color: var(--muted); font-style: italic; }
.sch7-doc-year { margin-bottom: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.sch7-doc-year summary { padding: 14px 18px; color: var(--navy); font-weight: 700; cursor: pointer; }
.sch7-doc-year ul { margin: 0; padding: 0 18px 12px 38px; }
.sch7-sitemap, .sch7-sitemap ul { margin: 0; padding: 0; list-style: none; }
.sch7-sitemap ul { margin: 4px 0 6px 6px; padding-left: 14px; border-left: 2px solid var(--sky-100); }
.sch7-sitemap li { margin: 4px 0; }
.sch7-sitemap > li > a { font-weight: 600; }
@media (min-width: 760px) { .sch7-sitemap { column-count: 2; column-gap: 40px; } .sch7-sitemap > li { break-inside: avoid; } }

.sch7-contact input[type="text"], .sch7-contact input[type="email"], .sch7-contact textarea { width: 100%; max-width: 560px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: inherit; }
.sch7-contact label { font-weight: 600; }
.sch7-contact__hint { display: block; margin-top: 6px; color: var(--muted); font-size: .88rem; font-weight: 400; }
.sch7-contact button { min-height: 44px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sch7-contact button:hover { background: var(--blue); }
.sch7-hp { position: absolute; left: -9999px; }
.sch7-notice { padding: 12px 16px; border-radius: var(--radius-sm); }
.sch7-notice--ok { background: #e6f4ea; }
.sch7-notice--error { background: #fdeaea; }

/* Список опублікованих звернень під формою ([sch7_contact]). Префікс .sch7-appeals — щоб не перебили .all_content p/h2. */
.all_content .sch7-appeals { margin: 2.2em 0 0; padding-top: 1.6em; border-top: 1px solid var(--line); clear: both; }
.all_content .sch7-appeals > h2 { margin: 0 0 1em; }
.all_content .sch7-appeal { margin: 0 0 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.all_content .sch7-appeal__date { display: block; margin: 0 0 4px; color: var(--muted); font-size: .82rem; }
.all_content .sch7-appeal__title { margin: 0 0 .45em; }
.all_content .sch7-appeal__body p { margin: 0 0 .6em; }
.all_content .sch7-appeal__body p:last-child { margin-bottom: 0; }

.sch7-appeal-dialog { width: min(100% - 32px, 440px); padding: 28px 24px 22px; border: 0; border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.sch7-appeal-dialog::backdrop { background: rgba(20, 28, 73, .45); }
.sch7-appeal-dialog h2 { margin: 0 0 .5em; color: var(--navy); font-size: 1.25rem; line-height: 1.3; }
.sch7-appeal-dialog p { margin: 0 0 1.2em; }
.sch7-appeal-dialog button { min-height: 44px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.sch7-appeal-dialog button:hover { background: var(--blue); }

/* Карта Google з маркером ([sch7_map]; додається і біля адреси на головній та в паспорті бібліотеки) */
.sch7-map { margin: 1em 0; }
.sch7-map iframe { display: block; width: 100%; min-height: 200px; border: 0; border-radius: var(--radius-sm); background: var(--sky-50); }
.sch7-map__link { margin: 6px 0 0; font-size: .9rem; text-align: right; }

/* Схеми без картинок ([sch7_diagram], plugin sch7-core/includes/diagrams.php). Два полотна однієї схеми: широке (комп'ютер, планшет) і портретне вузьке
   (телефон, контейнер < 600px); обидва зі стрілками, розміри шрифтів і блоків масштабуються з шириною контейнера (cqw). Змінні: --cw/--ch (розмір полотна),
   --x/--y/--w/--h (положення, %), --fs/--sfs (шрифт блока й підпису в пікселях полотна). */
.sch7-diagram { container-type: inline-size; margin: 1.4em 0; color: #64748b; }
.sch7-diagram__stage { position: relative; aspect-ratio: var(--cw) / var(--ch); overflow: hidden; border: 1px solid var(--line); border-radius: 18px;
	background: radial-gradient(120% 70% at 50% 0%, #fff 0%, #f3f6fb 70%, #eef2f8 100%); }
.sch7-diagram__stage--narrow { display: none; border-radius: 14px; }
.sch7-diagram__arrows { position: absolute; inset: 0; width: 100%; height: 100%; }
.sch7-diagram__node { --bg: #fff; --bd: #e2e8f0; --ac: #94a3b8; --u: calc(100cqw / var(--cw)); position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); box-sizing: border-box;
	display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 calc(5 * var(--u)); border-radius: calc(18 * var(--u)); background: var(--bg); border: 1px solid var(--bd);
	box-shadow: inset calc(7 * var(--u)) 0 0 var(--ac), 0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(15, 23, 42, .09), 0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(15, 23, 42, .05);
	color: #0f172a; text-align: center; font-size: calc(var(--fs) * var(--u)); line-height: 1.22; font-weight: 600; overflow-wrap: break-word; }
.sch7-diagram__node small { display: block; margin-top: calc(4 * var(--u)); font-size: calc(var(--sfs) * var(--u)); font-weight: 500; color: #475569; }
.sch7-diagram__node--sub { font-weight: 500; }
.sch7-diagram__node--amber { --bg: #fff7e8; --bd: #f6d39a; --ac: #f59e0b; }
.sch7-diagram__node--rose { --bg: #fff1f4; --bd: #f8c1cd; --ac: #f43f5e; }
.sch7-diagram__node--gold { --bg: #fefce8; --bd: #f3e38a; --ac: #eab308; }
.sch7-diagram__node--green { --bg: #effcf4; --bd: #a9e3bf; --ac: #22a05a; }
.sch7-diagram__node--blue { --bg: #eff5ff; --bd: #b3cdfa; --ac: #2563eb; }
.sch7-diagram__node--navy { --bg: #eef1fb; --bd: #c6cdef; --ac: #1f2c6c; }
.sch7-diagram__node--ellipse { border-radius: 50%; }
.sch7-diagram__node--round { border-radius: 50%; padding: 0 calc(8 * var(--u));
	box-shadow: inset 0 0 0 calc(6 * var(--u)) var(--ac), 0 calc(10 * var(--u)) calc(24 * var(--u)) rgba(15, 23, 42, .1), 0 calc(2 * var(--u)) calc(4 * var(--u)) rgba(15, 23, 42, .05); }
.sch7-diagram__node--boss { color: #fff; border: 0; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); font-weight: 700;
	box-shadow: 0 calc(16 * var(--u)) calc(34 * var(--u)) rgba(31, 44, 108, .35), 0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(31, 44, 108, .2); }
.sch7-diagram__node--lime { --bg: #f5fbe6; --bd: #d3e8a6; --ac: #84cc16; }
.sch7-diagram__node--sky { --bg: #f0f9ff; --bd: #bfe0f5; --ac: #38bdf8; }
.sch7-diagram__node--plain { --bg: #fff; --bd: #dbe3ec; --ac: #94a3b8; }
/* Схема-дерево (вкладений список; лінії зв'язків малює CSS). Широко: гілки в три колонки; вузько: усе в один стовпчик. */
.sch7-tree { --tl: #94a3b8; }
.sch7-tree__box { position: relative; box-sizing: border-box; padding: 11px 14px; border-radius: 14px; background: var(--bg, #fff); border: 1px solid var(--bd, #e2e8f0);
	box-shadow: inset 6px 0 0 var(--ac, #94a3b8), 0 6px 14px rgba(15, 23, 42, .08); color: #0f172a; text-align: center; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
.sch7-tree__box small { display: block; margin-top: 2px; font-size: .88em; font-weight: 500; color: #475569; }
.sch7-tree__box--top { font-size: 1.05em; margin-bottom: 16px; }
.sch7-tree__box--top::after { content: ""; position: absolute; left: 50%; bottom: -16px; height: 16px; border-left: 2px solid var(--tl); }
.sch7-diagram .sch7-tree__branches, .sch7-diagram .sch7-tree__list { list-style: none; margin: 0; padding: 0; }
.sch7-diagram li { margin-bottom: 0; }
.sch7-tree__branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sch7-tree__branches > li { position: relative; padding: 22px 8px 0; }
.sch7-tree__branches > li::before { content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 2px solid var(--tl); }
.sch7-tree__branches > li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 2px solid var(--tl); }
.sch7-tree__branches > li:first-child::after { left: 50%; }
.sch7-tree__branches > li:last-child::after { right: 50%; }
.sch7-tree__branches > li > .sch7-tree__box { font-size: .98em; }
.sch7-diagram .sch7-tree__list { position: relative; padding-left: 22px; margin-top: 4px; }
.sch7-tree__list > li { position: relative; padding-top: 10px; }
.sch7-tree__list > li::before { content: ""; position: absolute; left: -12px; top: 0; bottom: 0; border-left: 2px solid var(--tl); }
.sch7-tree__list > li::after { content: ""; position: absolute; left: -12px; top: 28px; width: 12px; border-top: 2px solid var(--tl); }
.sch7-tree__list > li:last-child::before { bottom: auto; height: 28px; }
.sch7-tree__list .sch7-tree__box { font-weight: 500; font-size: .94em; text-align: left; padding: 10px 12px; }
@container (max-width: 599px) {
	.sch7-tree__box--top:last-child::after { display: none; } /* на телефоні гілки йдуть від бічного «стовбура», а не від центру */
	.sch7-diagram .sch7-tree__branches { grid-template-columns: minmax(0, 1fr); padding-left: 22px; }
	.sch7-tree__branches > li { padding: 10px 0 0; }
	.sch7-tree__branches > li::before { left: -12px; top: 0; bottom: 0; height: auto; }
	.sch7-tree__branches > li::after { left: -12px; right: auto; top: 28px; width: 12px; }
	.sch7-tree__branches > li:first-child::after, .sch7-tree__branches > li:last-child::after { left: -12px; right: auto; }
	.sch7-tree__branches > li:last-child::before { bottom: auto; height: 28px; }
	.sch7-tree__branches > li > .sch7-tree__box { text-align: left; }
}
.sch7-diagram .sch7-diagram__subtitle { margin: 0 0 14px; text-align: center; color: var(--navy); font-weight: 500; line-height: 1.35; }
.sch7-tree__box--boss { color: #fff; border: 0; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); box-shadow: 0 8px 20px rgba(31, 44, 108, .3); font-weight: 700; }
/* Модель з вкладених панелей (без стрілок): рада, форум, три панелі, бічні й нижні об'єднання. */
.sch7-diagram--model { display: grid; gap: 10px; }
.sch7-diagram--model > p { margin-bottom: 0; }
.sch7-model__council { padding: 14px; font-size: 1.15em; }
.sch7-model__frame { display: grid; grid-template-columns: 104px minmax(0, 1fr) 104px; gap: 10px; align-items: stretch; }
.sch7-model__side { display: flex; align-items: center; justify-content: center; padding: 10px 8px; font-size: .9em; }
.sch7-model__main { display: grid; gap: 10px; }
.sch7-model__forum { padding: 12px; font-size: 1.1em; }
.sch7-model__panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; }
.sch7-model__panel { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--sky-50); border: 1px solid var(--line); }
.sch7-model__panel .sch7-tree__box { padding: 10px 12px; font-size: .95em; }
.sch7-model__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sch7-model__grid .sch7-tree__box { font-size: .85em; font-weight: 500; padding: 8px 8px; }
.sch7-model__bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sch7-model__bottom .sch7-tree__box { padding: 12px; font-size: .95em; }
@container (max-width: 599px) {
	.sch7-model__frame { grid-template-columns: minmax(0, 1fr); }
	.sch7-model__side { padding: 10px 12px; font-size: .95em; }
	.sch7-model__side--l { order: 2; }
	.sch7-model__main { order: 1; }
	.sch7-model__side--r { order: 3; }
	.sch7-model__panels { grid-template-columns: minmax(0, 1fr); }
	.sch7-model__bottom { grid-template-columns: minmax(0, 1fr); }
}
/* Сітка карток (схема без стрілок, напр. «Структура МЛА»): кольори сайту (синій, блакитний). */
.sch7-diagram .sch7-cards__title { display: block; margin: 0 0 4px; padding: 0; text-align: center; color: var(--navy); font-size: 1.3rem; font-weight: 700; line-height: 1.3; background: none; box-shadow: none; border-radius: 0; }
.sch7-diagram .sch7-cards__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.sch7-cards__card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 96px; padding: 12px 14px; border-radius: 14px; text-align: center; color: var(--ink);
	background: var(--sky-50); border: 1px solid var(--line); box-shadow: inset 5px 0 0 var(--blue), 0 6px 14px rgba(15, 23, 42, .07); line-height: 1.3; }
.sch7-cards__card strong { color: var(--navy); font-size: 1.02rem; }
.sch7-cards__card span { font-size: .92rem; color: var(--muted); }
.sch7-cards__card em { margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--sky-100); color: var(--navy); font-size: .82rem; font-style: normal; font-weight: 600; }
@container (max-width: 599px) { .sch7-diagram .sch7-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 299px) { .sch7-diagram .sch7-cards__grid { grid-template-columns: minmax(0, 1fr); } }
.all_content blockquote.sch7-epigraph { max-width: 38em; margin: 1em auto; text-align: center; font-style: italic; }
.all_content blockquote.sch7-epigraph p { margin: 0 0 .4em; }
.all_content blockquote.sch7-epigraph footer { text-align: right; font-style: normal; color: var(--muted); font-size: .92rem; }
/* Список зв'язків словами: лише для екранних дикторів (візуально прихований). */
.sch7-diagram__relations { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@container (max-width: 599px) {
	.sch7-diagram__stage--wide { display: none; }
	.sch7-diagram__stage--narrow { display: block; }
}

/* Позначки втрачених файлів. Мітки біля зображень можна приховати: .sch7-lost--img { display: none; } */
.sch7-lost, .sch7-partial { margin-left: 2px; padding: 0 5px; border-radius: 4px; font-size: .75rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.sch7-lost { background: #fdecea; color: #b3261e; }
.sch7-partial { background: #ffe066; color: #5c4400; }

/* ================================================================ Підвал */
.site-footer { margin-top: 24px; background: var(--navy-900); color: #d7def2; font-size: .95rem; }
.site-footer a, .site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 24px; padding-block: 16px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr; } }
.footer-title { margin: 0 0 8px; color: #fff; font-weight: 700; }
.site-footer p { margin: 0 0 10px; }
.footer-contacts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-contacts li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contacts .icon { flex: none; width: 20px; height: 20px; margin-top: .15em; color: var(--sky); }
.footer-contacts p { margin: 0; }
.footer-contacts p + p { margin-top: 2px; }
.footer-label { color: #fff; font-weight: 700; }
.footer-links { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer-social { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-social a:hover { text-decoration: underline; }
.footer-social .icon { flex: none; width: 20px; height: 20px; color: var(--sky); }
.footer-bottom { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
	.site-header, .sidebar, .site-footer, .breadcrumbs, .hero, .tiles { display: none; }
	body { background: #fff; font-size: 12pt; }
}
