/*
Theme Name: dds_bugulma-lada.ru
Theme URI: https://bugulma-lada.ru/
Author: Алексей Петров
Description: Тема образовательного портала «Бугульма-Лада»: системное администрирование, программирование, учебные заведения и IT-профессии. Швейцарская строгость, холодная палитра, инженерная сетка.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bglada
*/

:root {
	--bg: #F4F7FB;
	--bg-alt: #E7EEF7;
	--deep: #0B1B2B;
	--deep-2: #13202E;
	--side: #EDF2F9;
	--ink: #13202E;
	--accent: #1F6FEB;
	--accent-dk: #1756C2;
	--teal: #00B8A9;
	--muted: #6B7C93;
	--line: #D6E2F0;
	--grid: #E1E9F2;
	--f-head: 'Unbounded', 'Arial Black', 'Segoe UI', Arial, sans-serif;
	--f-body: 'IBM Plex Sans', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- [hidden] до основных блоков ---------- */
.cookie-banner[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	overflow-x: hidden;
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--f-body);
	background-color: var(--bg);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260' fill='none' stroke='%2313202E' stroke-opacity='.06' stroke-width='2'%3E%3Crect x='20' y='8' width='160' height='244' rx='6'/%3E%3Crect x='34' y='24' width='132' height='30' rx='3'/%3E%3Crect x='34' y='62' width='132' height='30' rx='3'/%3E%3Crect x='34' y='100' width='132' height='30' rx='3'/%3E%3Crect x='34' y='138' width='132' height='30' rx='3'/%3E%3Crect x='34' y='176' width='132' height='30' rx='3'/%3E%3Cpath d='M46 39h60M46 77h60M46 115h60M46 153h60M46 191h60M50 222v18M150 222v18'/%3E%3Ccircle cx='146' cy='39' r='4'/%3E%3Ccircle cx='146' cy='77' r='4'/%3E%3Ccircle cx='146' cy='115' r='4'/%3E%3Ccircle cx='146' cy='153' r='4'/%3E%3Ccircle cx='146' cy='191' r='4'/%3E%3C/svg%3E"),
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 240px 312px, 24px 24px, 24px 24px;
	background-position: right 2% bottom 2%, 0 0, 0 0;
	background-repeat: no-repeat, repeat, repeat;
	background-attachment: fixed, scroll, scroll;
}

img, svg, video { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-head);
	font-weight: 600;
	line-height: 1.22;
	color: var(--ink);
	margin: 1.6em 0 .6em;
	overflow-wrap: break-word;
	hyphens: auto;
}
h1 { font-size: 1.9rem; text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: .01em; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
p, li, td, th, dd, blockquote, figcaption { overflow-wrap: break-word; hyphens: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* выезжающее подчёркивание ссылок */
.entry-content a,
.sidebar a,
.breadcrumbs a,
.comment-text a,
.card-more,
.lead-link {
	background: linear-gradient(var(--teal), var(--teal)) left bottom / 0 1px no-repeat;
	padding-bottom: 1px;
	transition: background-size .3s ease, color .2s;
}
.entry-content a:hover,
.sidebar a:hover,
.breadcrumbs a:hover,
.comment-text a:hover,
.card-more:hover,
.lead-link:hover { background-size: 100% 1px; }

hr, .rule {
	border: 0;
	height: 1px;
	width: 80%;
	margin: 2.5rem auto;
	background: var(--line);
}

.route-line {
	height: 6px;
	width: min(60%, 420px);
	margin: 0 auto;
	background: radial-gradient(circle, var(--teal) 1.6px, transparent 2.2px) 0 50% / 14px 6px repeat-x;
	opacity: .85;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); background: #fff; }
th, td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }
.table-scroll, .wp-block-table { overflow-x: auto; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; color: var(--ink); padding: .6rem 1rem; border-radius: 6px; }

/* ---------- контейнер ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }

/* ---------- кнопки ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .85rem 1.4rem;
	border: 1px solid var(--accent);
	border-radius: 6px;
	font: 600 .95rem/1.25 var(--f-body);
	text-align: center;
	cursor: pointer;
	transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s, color .2s;
}
.btn-fill { background: var(--accent); color: #fff; }
.btn-fill:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; transform: translateY(-2px); box-shadow: inset 0 -2px 0 var(--teal); }
.btn-line { background: transparent; color: var(--accent); }
.btn-line:hover { background: rgba(31, 111, 235, .08); color: var(--accent-dk); transform: translateY(-2px); box-shadow: inset 0 -2px 0 var(--teal); }
.on-dark .btn-line { color: #A9C8FB; }
.on-dark .btn-line:hover { background: rgba(31, 111, 235, .22); color: #fff; }

/* ---------- шапка ---------- */
.topline { height: 4px; background: linear-gradient(90deg, #1F6FEB, #00B8A9); }

.masthead { background: var(--deep); color: #E7EEF7; }
.masthead-row { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; }
.brand { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo { display: block; width: auto; max-height: 56px; }
.brand-mark { display: block; width: 52px; height: 52px; }
.brand-text { flex: 1; min-width: 0; }
.brand-name {
	margin: 0;
	color: #fff;
	font: 600 .95rem/1.4 var(--f-body);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.brand-name a { color: inherit; }
.brand-desc {
	display: none;
	margin: .3rem 0 0;
	color: #93A4BB;
	font-size: .8rem;
	line-height: 1.45;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nav-toggle {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: transparent;
	color: #E7EEF7;
	border: 1px solid rgba(231, 238, 247, .3);
	border-radius: 6px;
	padding: .55rem .8rem;
	font: 600 .9rem/1 var(--f-body);
	cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
	display: block; width: 16px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.mainnav { display: none; border-top: 1px solid rgba(255, 255, 255, .08); }
.mainnav.is-open { display: block; }
.mainnav-list, .mainnav-list ul { list-style: none; margin: 0; padding: 0; }
.mainnav-list { padding: .4rem 0 .8rem; }
.mainnav-list a {
	display: block;
	padding: .7rem 0;
	color: #D2DDEB;
	font-weight: 500;
	border-bottom: 2px solid transparent;
}
.mainnav-list a:hover { color: #fff; }
.mainnav-list .current-menu-item > a,
.mainnav-list .current_page_item > a { color: #fff; border-bottom-color: var(--teal); }
.mainnav-list .sub-menu a { padding-left: 1rem; font-size: .92rem; }

/* ---------- хлебные крошки ---------- */
.breadcrumbs { padding: 1.5rem 0 .4rem; font-size: .88rem; color: var(--muted); overflow-wrap: break-word; }
.breadcrumbs .sep { color: var(--teal); margin: 0 .35em; }
.breadcrumbs span:last-child { color: var(--ink); }

/* ---------- раскладка ---------- */
.page-shell { padding-bottom: 4.5rem; }
.layout-single { width: 100%; margin-left: auto; margin-right: auto; }
.layout-with-sidebar { display: block; }
.content-area { min-width: 0; }

.page-head { padding: 1rem 0 .5rem; }
.page-head h1 { margin: .6rem 0 .8rem; }
.page-lead { color: #42546A; max-width: 44em; margin: 0 0 1.6rem; }

/* ---------- сайдбар ---------- */
.sidebar {
	min-width: 0;
	margin-top: 3rem;
	background: var(--side);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 1.6rem 1.5rem;
	color: var(--ink);
}
.sidebar .widget + .widget { margin-top: 2rem; }
.sidebar .widget-title {
	font: 600 .9rem/1.3 var(--f-head);
	text-transform: uppercase;
	color: var(--ink);
	margin: 0 0 1rem;
	padding-bottom: .7rem;
	border-bottom: 1px solid var(--line);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: #1A5CC8; }
.sidebar a:hover { color: var(--ink); }
.sidebar p, .sidebar .textwidget { color: var(--ink); }
.sidebar .post-date { display: block; color: var(--muted); font-size: .82rem; }

/* ---------- карточки ---------- */
.cards { display: grid; gap: 1.6rem; grid-template-columns: minmax(0, 1fr); }

.card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 8px 8px 0;
	box-shadow: 0 6px 20px rgba(28, 62, 110, .07);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(28, 62, 110, .14); border-color: var(--teal); }
.card-thumb { position: relative; display: block; overflow: hidden; border-radius: 0 0 8px 8px; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(31, 111, 235, .22);
	opacity: 0;
	transition: opacity .25s ease;
}
.card:hover .card-thumb::after { opacity: 1; }
.card-thumb--empty {
	display: block;
	aspect-ratio: 16 / 9;
	background-color: var(--deep);
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260' fill='none' stroke='%2300B8A9' stroke-opacity='.55' stroke-width='3'%3E%3Crect x='20' y='8' width='160' height='244' rx='8'/%3E%3Crect x='38' y='30' width='124' height='36' rx='4'/%3E%3Crect x='38' y='80' width='124' height='36' rx='4'/%3E%3Crect x='38' y='130' width='124' height='36' rx='4'/%3E%3Ccircle cx='142' cy='48' r='5'/%3E%3Ccircle cx='142' cy='98' r='5'/%3E%3Ccircle cx='142' cy='148' r='5'/%3E%3Cpath d='M54 48h50M54 98h50M54 148h50'/%3E%3C/svg%3E"),
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: auto 62%, 18px 18px, 18px 18px;
	background-position: center, 0 0, 0 0;
	background-repeat: no-repeat, repeat, repeat;
}
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1.1rem .9rem 1.2rem; }
.card-title {
	font: 600 1.05rem/1.38 var(--f-head);
	text-transform: none;
	letter-spacing: 0;
	margin: .65rem 0 .55rem;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { flex: 1; color: #3B4C60; font-size: .95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .6rem;
	margin-top: .7rem;
	padding-top: .8rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: .84rem;
}
.card-more { color: var(--accent); font-weight: 600; }

/* цветные теги рубрик */
.cat-badge {
	display: inline-block;
	align-self: flex-start;
	padding: .2rem .6rem;
	border-radius: 4px;
	font-size: .76rem;
	font-weight: 600;
	line-height: 1.4;
}
.cat-c0 { background: #E3EDFD; color: #1A5CC8; }
.cat-c1 { background: #DDF5F2; color: #007A70; }
.cat-c2 { background: #E6ECF3; color: #44586F; }
.cat-c3 { background: #E9E9FA; color: #3E42A8; }
.cat-c4 { background: #DFF0FA; color: #1A6C9C; }
.cat-badge:hover { filter: brightness(.96); }

/* ---------- пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.8rem; }
.pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 .8rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	color: var(--ink);
	font-weight: 500;
	transition: border-color .2s, color .2s;
}
.pager a.page-numbers:hover { border-color: var(--teal); color: var(--accent); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .page-numbers.dots { border: 0; background: transparent; min-width: auto; padding: 0 .3rem; }

/* ---------- запись и страница ---------- */
.entry { min-width: 0; }
.entry-header h1 { margin: .6rem 0 .9rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 1.6rem; }
.entry-thumb { margin: 0 0 2rem; }
.entry-thumb img { display: block; width: 100%; border-radius: 10px; }
.entry-content { min-width: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { position: relative; padding-left: 1.05em; font-size: 1.3rem; }
.entry-content h2::before {
	content: '';
	position: absolute;
	left: 0;
	top: .42em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--teal);
}
.entry-content ul, .entry-content ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote {
	margin: 1.6rem 0;
	padding: 1.1rem 1.4rem;
	background: #fff;
	border-left: 3px solid var(--teal);
	border-radius: 0 8px 8px 0;
	color: #2A3A4D;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre {
	overflow-x: auto;
	background: var(--deep);
	color: #E7EEF7;
	padding: 1rem 1.2rem;
	border-radius: 6px;
	font-size: .9rem;
	line-height: 1.55;
}
.entry-content code { background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; font-size: .92em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content img { display: block; border-radius: 8px; }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption, .wp-caption-text { color: var(--muted); font-size: .86rem; margin-top: .5rem; }
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.entry-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .9rem; color: var(--muted); }
.entry-tags a { padding: .2rem .6rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.page-links { margin-top: 1.5rem; }

.post-navigation { margin-top: 3rem; }
.post-navigation .nav-links { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.post-navigation a {
	display: block;
	padding: 1rem 1.2rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--ink);
	transition: border-color .2s;
}
.post-navigation a:hover { border-color: var(--teal); }
.pn-label { display: block; color: var(--muted); font-size: .82rem; margin-bottom: .2rem; }
.pn-title { display: block; font-weight: 600; }

/* ---------- комментарии ---------- */
.comments { margin-top: 3.5rem; }
.comments-title, .comment-reply-title { font-size: 1.15rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.4rem; border-left: 1px solid var(--line); margin-top: 1rem; }
.comment-list li { margin-bottom: 1rem; }
.comment-body { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; }
.comment-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .6rem; }
.comment-avatar { border-radius: 50%; display: block; }
.comment-author { font-weight: 600; }
.comment-date { color: var(--muted); font-size: .84rem; }
.comment-moderation { color: #8A5A00; font-size: .9rem; }
.comment-reply a { font-size: .88rem; font-weight: 600; }
.comment-respond { margin-top: 2rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 500; margin-bottom: .3rem; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-field {
	width: 100%;
	padding: .75rem .9rem;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	color: var(--ink);
	font: inherit;
}
.comment-form textarea { resize: vertical; }
.req { color: #C0392B; }
.comment-notes, .logged-in-as { color: var(--muted); font-size: .9rem; }

/* ---------- поиск ---------- */
.searchform { display: flex; gap: .5rem; max-width: 560px; }
.searchform .search-field { flex: 1; min-width: 0; }

/* ---------- 404 ---------- */
.notfound { padding: 1rem 0 2rem; }
.notfound-code { font: 700 4.5rem/1 var(--f-head); color: var(--accent); margin: 1rem 0 .4rem; }
.notfound .searchform { margin: 1.6rem 0; }

/* ---------- заголовки секций ---------- */
.sec-title {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 1.4rem;
	padding-top: 16px;
	font-size: 1.5rem;
}
.sec-title::before {
	content: '';
	flex: 0 0 56px;
	height: 10px;
	background:
		radial-gradient(circle at calc(100% - 5px) 50%, var(--teal) 4px, transparent 4.6px),
		linear-gradient(90deg, transparent, var(--muted) 80%) left center / calc(100% - 14px) 1px no-repeat;
}
.sec-title::after {
	content: '';
	position: absolute;
	top: 0;
	left: 70px;
	width: 34px;
	height: 3px;
	background: var(--teal);
}
.on-dark .sec-title { color: #fff; }
.on-dark .sec-title::before {
	background:
		radial-gradient(circle at calc(100% - 5px) 50%, var(--teal) 4px, transparent 4.6px),
		linear-gradient(90deg, transparent, #6F86A3 80%) left center / calc(100% - 14px) 1px no-repeat;
}
.sec-lead { color: #42546A; max-width: 40em; }
.on-dark .sec-lead { color: #A9B8CB; }

/* ---------- главная ---------- */
.fs { padding: 4.5rem 0; }
.fs-inner { width: 100%; margin-left: auto; margin-right: auto; }

.on-dark {
	color: #DCE5F0;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .028) 25%, transparent 25%) -20px 0 / 40px 40px,
		linear-gradient(225deg, rgba(255, 255, 255, .028) 25%, transparent 25%) -20px 0 / 40px 40px,
		linear-gradient(315deg, rgba(255, 255, 255, .028) 25%, transparent 25%) 0 0 / 40px 40px,
		linear-gradient(45deg, rgba(255, 255, 255, .028) 25%, transparent 25%) 0 0 / 40px 40px,
		linear-gradient(160deg, #0B1B2B 0%, #13202E 100%);
}

/* hero */
.fs-hero { padding: 4rem 0 4.5rem; }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy h1 { color: #fff; margin: 0 0 1.1rem; line-height: 1.12; }
.hero-lead { color: #B3C2D4; font-size: 1.08rem; max-width: 34em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-art { min-width: 0; }
.hero-art svg { display: block; width: 100%; height: auto; max-width: 500px; margin: 0 auto; }
.net-flow { stroke-dasharray: 4 9; animation: bglada-flow 3.2s linear infinite; }
@keyframes bglada-flow { to { stroke-dashoffset: -52; } }

/* шаги */
.fs-steps {
	background-color: var(--bg-alt);
	background-image:
		linear-gradient(#D8E2EE 1px, transparent 1px),
		linear-gradient(90deg, #D8E2EE 1px, transparent 1px);
	background-size: 24px 24px;
}
.steps-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.steps-intro { min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; min-width: 0; }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1.2rem; padding-bottom: 2.2rem; }
.step:last-child { padding-bottom: 0; }
.step::before {
	content: '';
	position: absolute;
	left: 27px;
	top: 60px;
	bottom: 6px;
	border-left: 2px dotted var(--teal);
}
.step:last-child::before { display: none; }
.step-num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border: 1px solid var(--teal);
	border-radius: 50%;
	background: var(--bg);
	color: #00A396;
	font: 600 1.35rem/1 var(--f-head);
}
.step-body { min-width: 0; padding-top: .7rem; }
.step-body h3 { margin: 0 0 .45rem; font-size: 1.08rem; }
.step-body p { margin: 0 0 .6rem; color: #34465A; }
.step-points { list-style: none; margin: 0; padding: 0; font-size: .93rem; color: #34465A; }
.step-points li { position: relative; padding-left: 1.3rem; margin-bottom: .25rem; }
.step-points li::before {
	content: '';
	position: absolute;
	left: 0;
	top: .5em;
	width: 7px;
	height: 7px;
	border-top: 2px solid var(--teal);
	border-right: 2px solid var(--teal);
	transform: rotate(45deg);
}

/* последние записи */
.fs-posts .sec-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.fs-posts .sec-row .sec-title { margin-bottom: 0; }
.fs-posts .route-line { margin-top: 3.5rem; }
.empty-note { padding: 1.4rem 1.5rem; background: #fff; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }

/* статистика */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.stat { min-width: 0; padding-left: 1.2rem; border-left: 1px solid rgba(255, 255, 255, .12); }
.stat-num {
	display: inline-block;
	color: #fff;
	font: 600 2.4rem/1.1 var(--f-head);
	padding-bottom: .35rem;
	border-bottom: 3px solid var(--teal);
	margin-bottom: .7rem;
}
.stat-cap { display: block; color: #8FA1B8; font-size: .95rem; }

/* рубрикатор */
.topics { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); margin-top: 2rem; }
.topic {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
	padding: 1.4rem 1.4rem 1.5rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--ink);
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.topic:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 12px 26px rgba(28, 62, 110, .1); color: var(--ink); }
.topic-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 8px;
	background: #E2F6F4;
	color: #009587;
}
.topic-icon svg { width: 24px; height: 24px; }
.topic-text { min-width: 0; }
.topic-name { display: block; font: 600 .98rem/1.35 var(--f-head); margin-bottom: .35rem; }
.topic-desc { display: block; color: #52647A; font-size: .9rem; line-height: 1.5; }

/* ---------- подвал ---------- */
.site-footer { background: var(--deep); color: #C6D3E3; margin-top: 0; }
.site-footer::before { content: ''; display: block; height: 3px; background: linear-gradient(90deg, #00B8A9, #1F6FEB); }
.footer-cols { display: grid; gap: 2.4rem; grid-template-columns: minmax(0, 1fr); padding: 3.5rem 0 2.6rem; }
.footer-col { min-width: 0; }
.site-footer .widget-title {
	font: 600 .9rem/1.3 var(--f-head);
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 1rem;
}
.site-footer p, .site-footer .textwidget, .site-footer li { color: #C6D3E3; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .3rem 0; }
.site-footer a { color: #8FB8FA; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding: 1.3rem 0 1.6rem; color: #8D9FB6; font-size: .86rem; }
.footer-bottom p { margin: 0; color: #8D9FB6; }

/* ---------- cookie ---------- */
.cookie-banner {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 60;
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	padding: 1.1rem 1.3rem;
	background: var(--deep);
	color: #D5E0EE;
	border: 1px solid rgba(0, 184, 169, .45);
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(11, 27, 43, .35);
}
.cookie-banner p { flex: 1 1 280px; margin: 0; font-size: .9rem; color: #D5E0EE; }
.cookie-banner a { color: #8FB8FA; }
.cookie-banner .btn { flex: 0 0 auto; }

/* ---------- адаптив ---------- */
@media (min-width: 600px) {
	h1 { font-size: 2.4rem; }
	h2 { font-size: 1.65rem; }
	.brand-desc { display: -webkit-box; }
	.layout-single { width: 85%; }
	.fs-inner { width: 85%; }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-navigation .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sec-title { font-size: 1.75rem; }
	.stat-num { font-size: 2.8rem; }
}

@media (max-width: 599px) {
	.fs { padding: 3.2rem 0; }
	.sidebar { padding: 1.3rem 1.2rem; }
	.cookie-banner { padding: 1rem 1.1rem; }
	.alignleft, .alignright { float: none; margin: 1rem 0; }
	.searchform { flex-wrap: wrap; }
	.searchform .btn { width: 100%; }
}

@media (min-width: 960px) {
	h1 { font-size: 3.25rem; }
	h2 { font-size: 2rem; }
	.nav-toggle { display: none; }
	.mainnav { display: block; }
	.mainnav-list { display: flex; flex-wrap: wrap; gap: 0 2rem; padding: 0; }
	.mainnav-list > li { position: relative; }
	.mainnav-list > li > a { padding: 1rem 0 .9rem; }
	.mainnav-list .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: -1rem;
		z-index: 20;
		min-width: 220px;
		background: var(--deep);
		border: 1px solid rgba(255, 255, 255, .1);
		border-radius: 6px;
		padding: .4rem 1rem;
	}
	.mainnav-list li:hover > .sub-menu,
	.mainnav-list li:focus-within > .sub-menu { display: block; }
	.mainnav-list .sub-menu a { padding: .5rem 0; }

	.layout-with-sidebar {
		display: grid;
		grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
		column-gap: 6%;
		align-items: start;
	}
	.layout-with-sidebar .sidebar { margin-top: 1.1rem; }

	.cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 3rem; }
	.fs-hero { padding: 5.5rem 0 6rem; }
	.fs { padding: 6rem 0; }
	.steps-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; }
	.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.stat-num { font-size: 3.2rem; }
	.topics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
	.sec-title { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
