/* ==========================================================================
   Каменское плато — стили темы.
   Токены — из Figma «Styles — Foundations». Сетка: desktop 1440 (поля 80, гаттер 24),
   tablet 768–1279 (поля 40, гаттер 20), mobile < 768 (поля 20, гаттер 16).
   Разделы: 1 токены · 2 база · 3 элементы · 4 шапка · 5 подвал и окна · 6 страницы · 7 главная · 8 адаптив · 9 слабовидящим
   ========================================================================== */

/* 1. Токены ---------------------------------------------------------------- */
:root {
	--accent: #FD6331;        /* оранжевый: главный CTA. Текст на нём только тёмный */
	--accent-light: #68AADA;  /* небо */
	--accent-tint: #E8F1F8;   /* светлое небо: бейджи, hover, «О центре» */
	--deep: #2D6A96;          /* глубокий голубой: кнопки, ссылки */
	--ink: #374045;           /* графит: тёмные секции, подвал */
	--bg: #FFFFFF;
	--bg-soft: #EEF3F4;
	--bg-stone: #E8DFCD;
	--text: #262D31;
	--muted: #59646A;
	--line: #D9E2E5;
	--on-accent: #262D31;
	--on-dark: #FFFFFF;
	--error: #B3261E;
	--success: #2E7D4F;
	--focus: #2D6A96;

	--font: "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--r-s: 6px;
	--r-m: 10px;
	--r-l: 14px;
	--pill: 999px;

	--gutter: 80px;
	--gap: 24px;
	--section: 128px;
	--shadow: 0 12px 32px rgba(38, 45, 49, .08), 0 2px 6px rgba(38, 45, 49, .04);
	--shadow-lg: 0 24px 60px rgba(38, 45, 49, .14);
	--header-h: 155px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--fs-base: 18px;
}

/* 2. База ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 var(--fs-base)/1.6 var(--font);
	font-feature-settings: "kern", "liga";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--deep); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #1f557c; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.site-footer :focus-visible, .dark :focus-visible, .hero :focus-visible { outline-color: #fff; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 600; color: var(--text); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: 48px; line-height: 1.08; }
h2 { font-size: 36px; line-height: 1.15; }
h3 { font-size: 24px; line-height: 1.25; }
h4 { font-size: 18px; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 1000; padding: 12px 20px; background: var(--deep); color: #fff; border-radius: var(--r-s); }
.skip-link:focus { top: 16px; color: #fff; }
.site-main:focus { outline: none; }
.container { width: min(100% - var(--gutter) * 2, 1760px); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.label { font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.45; }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); }
.ph { display: block; width: 100%; height: 100%; min-height: 120px; background: linear-gradient(160deg, var(--bg-stone), #d6dfe2); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 3. Элементы ------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 12px 28px; border: 1.5px solid transparent; border-radius: var(--pill);
	font: 500 17px/1.2 var(--font); text-decoration: none; white-space: nowrap;
	transition: background-color .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: #ff7a4d; color: var(--on-accent); }
.btn--deep { background: var(--deep); color: #fff; }
.btn--deep:hover { background: #245a80; color: #fff; }
.btn--ghost { border-color: currentColor; background: transparent; color: var(--text); }
.btn--ghost:hover { background: var(--accent-tint); color: var(--text); }
.btn--outline-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--text);
	transition: background-color .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--accent-tint); }
.icon-btn--plain { border-color: transparent; background: transparent; }
.icon-btn .icon { width: 22px; height: 22px; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; text-decoration: none; color: var(--deep); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.badge {
	display: inline-flex; align-items: center; padding: 6px 12px; border-radius: var(--r-s);
	background: var(--accent-tint); color: var(--deep);
	font: 500 13px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase;
}
.badge--dark { background: rgba(38,45,49,.72); color: #fff; }
.badge--ink { background: rgba(255,255,255,.08); color: var(--accent); }
.badge--grey { background: #e2e7e9; color: var(--text); }

.chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px;
	border: 1px solid var(--line); border-radius: var(--pill); background: #fff; color: var(--text);
	font-size: 15px; text-decoration: none;
}
.chip:hover { border-color: var(--accent-light); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent-light); border-color: var(--accent-light); color: var(--on-accent); }

.tabs { display: flex; gap: 40px; border-bottom: 1px solid var(--line); margin-bottom: 48px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
	position: relative; padding: 0 4px 18px; border: 0; background: none; color: var(--muted);
	font: 500 20px/1.2 var(--font); white-space: nowrap;
}
.tab[aria-selected="true"] { color: var(--deep); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--deep); border-radius: 2px; }
.tab:hover { color: var(--text); }
.tabpanel[hidden] { display: none; }

/* Поля формы */
.field {
	width: 100%; min-height: 60px; padding: 16px 48px 16px 20px;
	border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--bg-soft); color: var(--text);
	font: 400 18px/1.4 var(--font); transition: border-color .2s, background-color .2s;
	appearance: none;
}
textarea.field { min-height: 120px; resize: vertical; }
.field::placeholder { color: #7c878d; }
.field:hover { border-color: #b9c7cc; }
.field:focus { outline: none; border-color: var(--deep); background: #fff; box-shadow: 0 0 0 3px rgba(45,106,150,.15); }
.field-wrap { position: relative; }
.field-wrap .icon { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; display: none; }
.field-wrap--select .field-chevron { display: block; color: var(--muted); }
.form__field.is-ok .field { border-color: var(--success); background: #fff; }
.form__field.is-ok .field-ok { display: block; color: var(--success); }
.form__field.is-bad .field { border-color: var(--error); background: #fff; }
.form__field.is-bad .field-bad { display: block; color: var(--error); }
.form__field { margin-bottom: 20px; }
.form__field > label:not(.check) { display: block; margin-bottom: 8px; font-size: 16px; color: var(--text); }
.form__error { margin: 6px 0 0; color: var(--error); font-size: 15px; min-height: 0; }
.form__error:empty { display: none; }
.form__status { margin: 14px 0 0; font-size: 16px; }
.form__status.is-error { color: var(--error); }
.form__status:empty { display: none; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; }
.check__box { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid #9aa8ae; border-radius: 6px; background: #fff; color: transparent; }
.check__box .icon { width: 16px; height: 16px; }
.check input:checked + .check__box { background: var(--deep); border-color: var(--deep); color: #fff; }
.check input:focus-visible + .check__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.is-bad .check__box { border-color: var(--error); }

.checklist { list-style: none; display: grid; gap: 14px; margin: 0 0 24px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.checklist .icon { width: 20px; height: 20px; margin-top: 4px; color: var(--deep); }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 48px; }
.pager .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 6px;
	border: 1px solid var(--line); border-radius: 50%; color: var(--text); text-decoration: none; font-weight: 500;
}
.pager .page-numbers.current { background: var(--deep); border-color: var(--deep); color: #fff; }
.pager .page-numbers.dots { border-color: var(--line); }
.pager a.page-numbers:hover { background: var(--accent-tint); }
.pager .next, .pager .prev { display: inline-flex; gap: 10px; border: 0; border-radius: 0; color: var(--deep); padding: 0 10px; }
.pager .next:hover, .pager .prev:hover { background: none; }

/* 4. Шапка ----------------------------------------------------------------- */
.site-header { position: relative; z-index: 50; background: #fff; }
.topbar { border-bottom: 1px solid var(--line); font-size: 16px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; }
.topbar__contacts { list-style: none; display: flex; gap: 22px; }
.topbar__contacts a, .topbar__addr { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 15px; }
.topbar__contacts .icon { width: 18px; height: 18px; color: var(--deep); }
.topbar__contacts a:hover { color: var(--text); }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__links { list-style: none; display: flex; gap: 18px; padding-right: 18px; border-right: 1px solid var(--line); }
.topbar__links a { white-space: nowrap; color: var(--text); text-decoration: none; font-weight: 500; }
.topbar__links a:hover { color: var(--deep); }
.topbar__btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; font-weight: 500; white-space: nowrap; }
.topbar__btn .icon { width: 22px; height: 22px; }
.topbar__btn:hover { color: var(--deep); }
.lang { list-style: none; display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: var(--pill); background: #fff; }
.lang a { display: grid; place-items: center; min-width: 48px; height: 34px; padding: 0 10px; border-radius: var(--pill); color: var(--muted); text-decoration: none; font: 500 13px/1 var(--mono); letter-spacing: .06em; }
.lang a.is-current { background: var(--accent-tint); color: var(--deep); }
.lang a:hover { color: var(--text); }

.mainbar { border-bottom: 1px solid var(--line); }
.mainbar__in { display: flex; align-items: center; gap: 32px; min-height: 94px; }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--text); text-decoration: none; flex: none; }
.brand:hover { color: var(--text); }
.brand__logo { width: 48px; height: 48px; border-radius: 50%; }
.brand__text { display: grid; gap: 2px; }
.brand__name { font-size: 19px; font-weight: 600; line-height: 1.15; }
.brand__sub { font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.brand--light, .brand--light:hover { color: #fff; }
.brand--light .brand__sub { color: rgba(255,255,255,.72); }

.mainnav { margin-inline: auto; }
.mainnav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.mainnav__item { position: relative; display: flex; align-items: center; }
.mainnav__link { padding: 10px 6px 10px 12px; color: var(--text); font-weight: 500; font-size: 17px; text-decoration: none; white-space: nowrap; }
.mainnav__item:not(.has-sub) .mainnav__link { padding-right: 12px; }
.mainnav__link:hover, .mainnav__item.is-active > .mainnav__link { color: var(--deep); }
.mainnav__toggle { display: grid; place-items: center; width: 24px; height: 32px; padding: 0; border: 0; background: none; color: var(--muted); }
.mainnav__toggle .icon { width: 16px; height: 16px; transition: transform .2s; }
.mainnav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.dropdown {
	position: absolute; left: 0; top: calc(100% + 18px); min-width: 360px; padding: 8px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
}
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; }
.mainnav__item.has-sub:hover .dropdown, .mainnav__item.has-sub:focus-within .dropdown, .mainnav__item.is-open .dropdown {
	opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s var(--ease), visibility 0s;
}
.dropdown ul { list-style: none; display: grid; gap: 2px; }
.dropdown a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: var(--r-s); color: var(--text); text-decoration: none; font-weight: 400; line-height: 1.4; }
.dropdown a .icon { color: var(--deep); opacity: 0; transform: translateX(-4px); transition: .2s var(--ease); }
.dropdown a:hover, .dropdown a.is-current { background: var(--accent-tint); color: var(--deep); }
.dropdown a:hover .icon, .dropdown a.is-current .icon { opacity: 1; transform: none; }
.mainbar__cta { flex: none; }
.mainbar__burger { display: none; }

/* Главная: шапка поверх фото */
.site-header--hero { position: absolute; inset: 0 0 auto; background: transparent; }
.site-header--hero .topbar { background: rgba(38,45,49,.28); border-bottom-color: rgba(255,255,255,.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.site-header--hero .mainbar { border-bottom: 0; }
.site-header--hero .topbar__contacts a, .site-header--hero .topbar__addr, .site-header--hero .topbar__links a, .site-header--hero .topbar__btn,
.site-header--hero .brand, .site-header--hero .mainnav__link, .site-header--hero .mainnav__toggle, .site-header--hero .icon-btn--plain { color: #fff; }
.site-header--hero .topbar__contacts .icon { color: var(--accent); }
.site-header--hero .topbar__links { border-right-color: rgba(255,255,255,.3); }
.site-header--hero .brand__sub { color: rgba(255,255,255,.75); }
.site-header--hero .mainnav__link:hover, .site-header--hero .mainnav__item.is-active > .mainnav__link { color: #fff; text-decoration: underline; text-underline-offset: 8px; }
.site-header--hero .lang { background: rgba(255,255,255,.92); border-color: transparent; }
.site-header--hero .mainbar__burger { background: rgba(255,255,255,.92); border-color: transparent; }
.site-header--hero .icon-btn--plain:hover { background: rgba(255,255,255,.14); }

/* Поиск */
.search-panel { position: absolute; left: 0; right: 0; top: 100%; padding: 24px 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.search-form { position: relative; display: flex; gap: 12px; align-items: center; }
.search-form__icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-form__input { padding-left: 52px; padding-right: 20px; }
.search-form__btn { flex: none; min-height: 60px; }

/* 5. Подвал, плавающая кнопка, окна ---------------------------------------- */
.site-footer {
	position: relative; padding: 96px 0 40px; color: rgba(255,255,255,.86); font-size: 16px; overflow: hidden; isolation: isolate;
	/* Горы и лес внизу (верх картинки — тот же цвет --ink, шва нет). На экранах шире 1920 px растягивается по ширине. */
	background: var(--ink) url("../img/footer-landscape.png") center bottom / max(1920px, 100%) auto no-repeat;
}
.mountains::before {
	content: ""; position: absolute; inset: auto 0 0; height: 340px; z-index: -1; pointer-events: none;
	background: url("../img/mountains.svg") center bottom / 1920px 340px repeat-x; opacity: .1;
}
.site-footer__grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; }
.site-footer__legal { margin-top: 28px; max-width: 420px; line-height: 1.55; }
.site-footer .label { color: rgba(255,255,255,.62); margin-bottom: 16px; }
.site-footer__col ul { list-style: none; display: grid; gap: 12px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent-light); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-top: 72px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); font-size: 14px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 24px; }

.fab {
	position: fixed; right: 24px; bottom: 24px; z-index: 40; display: inline-flex; align-items: center; gap: 12px;
	padding: 8px 24px 8px 8px; border: 0; border-radius: var(--pill); background: var(--accent); color: var(--on-accent);
	font-weight: 500; font-size: 17px; box-shadow: 0 10px 30px rgba(253,99,49,.35);
	transition: transform .2s var(--ease), box-shadow .2s;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(253,99,49,.45); }
.fab__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; }
.fab__icon .icon { width: 20px; height: 20px; }

dialog { padding: 0; border: 0; color: var(--text); }
dialog::backdrop { background: rgba(38,45,49,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal { width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 32px); border-radius: var(--r-l); background: #fff; box-shadow: var(--shadow-lg); overflow: auto; }
.modal[open] { animation: pop .22s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.99); } }
.modal__grid { display: grid; grid-template-columns: 1.15fr .85fr; }
.modal__main { padding: 48px; }
.modal__aside { padding: 48px 40px; background: var(--bg-soft); font-size: 17px; }
.modal__aside h3 { margin: 18px 0 14px; font-size: 20px; line-height: 1.35; }
.modal__aside .label { margin: 20px 0 4px; }
.modal__aside p { margin-bottom: 0; }
.modal__aside .checklist { margin: 16px 0 20px; }
.modal__title { margin: 20px 0 14px; font-size: 36px; line-height: 1.15; }
.modal__lead { color: var(--muted); margin-bottom: 28px; }
.modal__close { position: absolute; top: 20px; right: 20px; width: 52px; height: 52px; box-shadow: var(--shadow); }
.modal[data-type="callback"] [data-for="question"], .modal[data-type="question"] [data-for="callback"] { display: none; }
.modal[data-type="question"] .modal__grid { grid-template-columns: 1fr; }
.modal[data-type="question"] .modal__aside { display: none; }
.modal[data-type="question"] { width: min(680px, calc(100% - 32px)); }
.modal.is-done .form > *:not(.form__status) { display: none; }
.modal.is-done .form__status { font-size: 20px; color: var(--success); }

.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(20,24,27,.94); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.lightbox__stage { display: grid; place-items: center; height: 100%; padding: 64px 0; }
.lightbox__stage img { max-height: calc(100dvh - 128px); width: auto; border-radius: var(--r-s); }
.lightbox__stage iframe { width: min(1280px, 100%); aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--r-s); }
.lightbox .icon-btn { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; justify-self: center; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.2); }
.lightbox__close { position: absolute; top: 16px; right: 16px; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { visibility: hidden; }

/* Мобильное меню */
.mmenu { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #fff; overflow-y: auto; overscroll-behavior: contain; }
.mmenu[hidden] { display: none; }
.mmenu__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: #fff; }
.mmenu__body { padding: 16px 20px 8px; }
.mmenu__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mmenu .search-form__btn { display: none; }
.mmenu .search-form__input { min-height: 52px; }
.mmenu__list { list-style: none; margin-top: 12px; }
.mmenu__item { border-bottom: 1px solid var(--line); }
.mmenu__group, .mmenu__link { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border: 0; background: none; color: var(--text); font: 600 19px/1.3 var(--font); text-align: left; text-decoration: none; }
.mmenu__link .icon { color: var(--muted); }
.mmenu__group .round { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-tint); color: var(--deep); }
.mmenu__group .i-minus, .mmenu__group.is-open .i-plus { display: none; }
.mmenu__group.is-open .i-minus { display: block; }
.mmenu__group.is-open { color: var(--deep); }
.mmenu__group.is-open .round { background: var(--deep); color: #fff; }
.mmenu__sub { list-style: none; padding-bottom: 12px; }
.mmenu__sub a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: var(--r-s); color: var(--text); text-decoration: none; font-size: 17px; }
.mmenu__sub a .icon { opacity: 0; color: var(--deep); }
.mmenu__sub a.is-current, .mmenu__sub a:hover { background: var(--accent-tint); color: var(--deep); }
.mmenu__sub a.is-current .icon { opacity: 1; }
.mmenu__foot { display: grid; gap: 14px; margin-top: auto; padding: 24px 20px 32px; background: var(--bg-soft); }
.mmenu__phone { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text); text-decoration: none; }
.mmenu__phone .icon { margin-top: 2px; color: var(--deep); }
.mmenu__phone > span { display: grid; }
.mmenu__small { font-size: 16px; text-decoration: none; }

/* Панель «Для слабовидящих» */
.a11y-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); z-index: 60; }
.a11y-panel__in { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 40px; padding: 24px 0; }
.a11y-panel fieldset { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.a11y-panel legend { width: 100%; margin-bottom: 8px; padding: 0; }
.chip--l { font-size: 18px; }
.chip--xl { font-size: 21px; }
.chip--contrast { background: #000; color: #fff; border-color: #000; }

/* 6. Внутренние страницы --------------------------------------------------- */
.page-head { padding: 56px 0 64px; background: var(--bg-soft); }
.page-head h1 { margin: 18px 0 0; max-width: 1200px; }
.page-head .lead { margin: 18px 0 0; max-width: 1000px; }
.page-head__meta { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 16px; color: var(--muted); }
.crumbs li { display: inline-flex; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--muted); }
.crumbs a { text-decoration: none; font-weight: 500; }
.crumbs a:hover { text-decoration: underline; }

.layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px; padding: 64px 0 120px; }
.layout--full { grid-template-columns: minmax(0, 1fr); }
.layout__aside { align-self: start; position: sticky; top: 24px; }
.side-nav__title { margin: 0 0 14px; }
.side-nav ul { list-style: none; display: grid; gap: 2px; padding: 8px; border-radius: var(--r-m); background: var(--bg-soft); }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-s); color: var(--text); text-decoration: none; font-size: 18px; line-height: 1.45; }
.side-nav a:hover { background: rgba(255,255,255,.65); color: var(--deep); }
.side-nav a.is-current { background: var(--accent-tint); color: var(--deep); }
.side-nav a .icon { color: var(--deep); }

.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; font-weight: 500; font-size: 16px; text-decoration: none; }

/* Текст страниц (блоки Gutenberg) */
.prose { max-width: none; font-size: 18px; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0; }
.prose h2 { margin: 1.6em 0 .6em; font-size: 28px; }
.prose h3 { margin: 1.5em 0 .5em; font-size: 22px; }
.prose h4 { margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose ul.wp-block-list { list-style: none; padding-left: 0; }
.prose ul.wp-block-list > li { position: relative; padding-left: 34px; }
.prose ul.wp-block-list > li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--deep); border-bottom: 2px solid var(--deep); transform: rotate(-45deg); }
.prose a { word-break: break-word; }
.prose strong { font-weight: 600; }
.prose figure { margin: 1.6em 0; }
.prose img { border-radius: var(--r-m); }
.prose .wp-block-image a.zoom { display: block; cursor: zoom-in; }
.prose figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.prose blockquote, .prose .wp-block-quote {
	margin: 1.8em 0; padding: 28px 32px; border: 0; border-left: 3px solid var(--deep); border-radius: 0 var(--r-m) var(--r-m) 0; background: var(--accent-tint);
	font-size: 22px; font-weight: 600; line-height: 1.4;
}
.prose blockquote p + p { margin-top: .5em; }
.prose blockquote cite { display: block; margin-top: 12px; font: 400 15px/1.4 var(--font); font-style: normal; color: var(--muted); }
.prose .wp-block-table { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 600; }
/* Галерея: ровная сетка одинаковых плиток (фото разной ориентации обрезаются по центру), полное фото — по клику. */
.prose .wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image { width: auto !important; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-s); background: var(--bg-soft); }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image a,
.prose .wp-block-gallery.has-nested-images figure.wp-block-image img { display: block; width: 100%; height: 100%; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image img { object-fit: cover; border-radius: 0; transition: transform .2s; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image a:hover img { transform: scale(1.03); }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image a:focus-visible { outline: 3px solid var(--deep); outline-offset: -3px; }
@media (max-width: 767px) {
	.prose .wp-block-gallery.has-nested-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
.prose details { border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.prose details > summary { display: flex; align-items: center; gap: 12px; padding: 20px 24px; list-style: none; cursor: pointer; font-weight: 600; }
.prose details > summary::-webkit-details-marker { display: none; }
.prose details > summary .icon { color: var(--deep); transition: transform .2s; }
.prose details[open] > summary .icon { transform: rotate(45deg); }
.prose details > :not(summary) { margin: 0 24px 20px; }
.prose .wp-block-columns { gap: 24px; }
.prose .wp-block-separator { border-top: 1px solid var(--line); }
.prose .lead-text, .prose > p:first-child:has(+ p) strong:only-child { font-size: 22px; }
.prose .has-text-align-center { text-align: center; }

/* Документ (блок «Файл») */
.doc { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; transition: border-color .2s, box-shadow .2s; }
.doc + .doc { margin-top: 20px; }
.doc:hover { border-color: var(--accent-light); box-shadow: var(--shadow); }
.doc__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-s); background: var(--accent-tint); color: var(--deep); }
.doc__body { display: grid; gap: 4px; min-width: 0; }
.doc__title { color: var(--text); text-decoration: none; font-weight: 500; font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
.doc__title:hover { color: var(--deep); text-decoration: underline; }
.doc__meta { font-size: 12px; }
.doc__dl { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.empty { padding: 40px; border-radius: var(--r-m); background: var(--bg-soft); color: var(--muted); }
.empty h2 { font-size: 22px; color: var(--text); }

/* Видео «по клику» */
.video-embed { position: relative; margin: 1.6em 0; aspect-ratio: 16/9; border-radius: var(--r-m); overflow: hidden; background: var(--ink) url("../img/mountains.svg") center bottom / 200% auto no-repeat; }
.video-embed__btn { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: none; }
.video-embed__btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s var(--ease); }
.play .icon { width: 30px; height: 30px; margin-left: 3px; }
.video-embed__btn:hover .play, .vcard__media:hover .play { transform: scale(1.06); }

/* CTA-плашка (услуга, блог руководителя) */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 32px; border-radius: var(--r-m); background: var(--accent-tint); }
.cta h2 { margin: 0 0 6px; font-size: 24px; }
.cta p { margin: 0; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding: 22px 0; border-block: 1px solid var(--line); }
.share > span { margin-right: 6px; color: var(--muted); font-size: 16px; }
.related { margin-top: 56px; }
.related h2 { font-size: 24px; margin-bottom: 24px; }
.article-cover { margin-bottom: 32px; border-radius: var(--r-m); overflow: hidden; }
.article-cover img { width: auto; max-width: 100%; border-radius: var(--r-m); }

/* Блок «О центре» на странице 1 (цифры) */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0; }
.stat__value { font-size: 56px; font-weight: 300; line-height: 1; color: var(--deep); letter-spacing: -.02em; }
.stat__label { margin-top: 12px; font-size: 16px; color: var(--muted); }

/* Карточки */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ncard { position: relative; display: flex; flex-direction: column; }
.ncard__media { display: block; aspect-ratio: 16/9; border-radius: var(--r-m); overflow: hidden; background: var(--bg-stone); }
.ncard__media img, .ncard__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.ncard:hover .ncard__media img { transform: scale(1.03); }
.ncard__meta { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; }
.ncard__meta time { font: 400 14px/1 var(--mono); color: var(--muted); }
.ncard__title { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 600; }
.ncard__title a { color: var(--text); text-decoration: none; }
.ncard__title a::after { content: ""; position: absolute; inset: 0; }
.ncard:hover .ncard__title a { color: var(--deep); }
.ncard__sub { margin-top: 10px; font-size: 13px; }

.vcard { position: relative; }
.vcard__media { position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0; border-radius: var(--r-m); overflow: hidden; background: var(--ink); }
.vcard__media img, .vcard__media .ph { width: 100%; height: 100%; object-fit: cover; }
.vcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.45)); }
.vcard__kind { position: absolute; left: 16px; bottom: 14px; z-index: 1; }
.vcard__title { margin: 16px 0 6px; font-size: 20px; line-height: 1.3; }
.vcard__meta { font: 400 13px/1.4 var(--mono); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }

/* Услуги: строка-карточка (страница «Услуги») */
.svc-group + .svc-group { margin-top: 56px; }
.svc-group__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.svc-group__head h2 { margin: 0; font-size: 32px; }
.svc-group__head .label { color: var(--deep); }
.srow { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 24px; align-items: center; padding: 24px; border-radius: var(--r-m); background: var(--bg-soft); transition: background-color .2s, box-shadow .2s; }
.srow:hover { background: var(--accent-tint); }
.srow__img { width: 112px; height: 112px; border-radius: var(--r-s); overflow: hidden; background: var(--bg-stone); }
.srow__img img, .srow__img .ph { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.srow h3 { margin: 0 0 8px; font-size: 20px; }
.srow h3 a { color: var(--text); text-decoration: none; }
.srow h3 a::after { content: ""; position: absolute; inset: 0; }
.srow p { margin: 0 0 10px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.srow .link-arrow { font-size: 16px; }

/* Альбомы */
.acard { position: relative; }
.acard__media { display: block; aspect-ratio: 2/1; border-radius: var(--r-m); overflow: hidden; background: var(--bg-stone); }
.acard__media img, .acard__media .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.acard:hover .acard__media img { transform: scale(1.03); }
.acard h2, .acard h3 { margin: 18px 0 8px; font-size: 22px; }
.acard h2 a, .acard h3 a { color: var(--text); text-decoration: none; }
.acard h2 a::after, .acard h3 a::after { content: ""; position: absolute; inset: 0; }

/* Контакты */
.contacts { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.clist { list-style: none; display: grid; gap: 22px; margin-bottom: 32px; }
.clist li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; }
.clist__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-s); background: var(--accent-tint); color: var(--deep); }
.clist .label { display: block; margin-bottom: 2px; font-size: 12px; }
.clist a, .clist span.v { color: var(--text); text-decoration: none; font-size: 20px; font-weight: 500; }
.clist a:hover { color: var(--deep); }
.map { position: relative; min-height: 460px; border-radius: var(--r-m); overflow: hidden; background: var(--ink); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.85) contrast(1.05); }
.map__scheme { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__pin { position: absolute; left: 32%; top: 39%; display: flex; align-items: center; gap: 12px; }
.map__dot { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.map__name { padding: 8px 16px; border-radius: var(--pill); background: #fff; color: var(--text); font-weight: 600; font-size: 16px; }

/* 7. Главная --------------------------------------------------------------- */
.hero { position: relative; color: #fff; background: var(--ink); isolation: isolate; }
.hero__bg { position: absolute; inset: 0 0 auto; height: 940px; z-index: -2; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,31,35,.78) 0%, rgba(25,31,35,.45) 45%, rgba(25,31,35,.12) 75%), linear-gradient(180deg, rgba(25,31,35,.55) 0, rgba(25,31,35,0) 26%, rgba(25,31,35,0) 62%, rgba(25,31,35,.6) 100%); }
.hero::after { content: ""; position: absolute; inset: 940px 0 0; z-index: -1; background: #fff; }
.hero__in { padding-top: calc(var(--header-h) + 80px); }
.hero--plain .hero__bg { height: 100%; }
.hero--plain::after { display: none; }
.hero--plain .hero__in { padding-bottom: 160px; }
.hero h1 { max-width: 760px; margin: 22px 0 0; color: #fff; font-size: 72px; line-height: 1.02; letter-spacing: -.02em; }
.hero__lead { max-width: 640px; margin: 36px 0 0; font-size: 20px; line-height: 1.5; color: rgba(255,255,255,.92); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 36px; }
.hero__phone { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 500; font-size: 17px; text-decoration: underline; text-underline-offset: 5px; }
.hero__phone .icon { color: var(--accent); }
.hero__phone:hover { color: #fff; text-decoration-thickness: 2px; }

.svc-slider { margin-top: 64px; padding-bottom: 8px; }
.svc-slider__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.svc-slider__head h2 { display: flex; align-items: baseline; gap: 16px; margin: 0; color: #fff; font-size: 24px; }
.svc-slider__count { font: 400 14px/1 var(--mono); color: rgba(255,255,255,.82); letter-spacing: .08em; }
.svc-slider__nav { display: flex; gap: 12px; }
.svc-slider__nav .icon-btn { width: 56px; height: 56px; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); color: #fff; }
.svc-slider__nav .icon-btn:hover { background: rgba(255,255,255,.18); }
.svc-slider__nav .icon-btn.is-next { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.svc-slider__nav .icon-btn:disabled { opacity: .45; cursor: default; }
.svc-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--gap) * 4) / 4.6); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 32px; margin-bottom: -32px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scroll-padding-left: 0; }
.svc-track::-webkit-scrollbar { display: none; }
.scard { position: relative; display: flex; flex-direction: column; border-radius: var(--r-m); overflow: hidden; background: #fff; color: var(--text); box-shadow: var(--shadow); scroll-snap-align: start; transition: background-color .2s; }
.scard:hover { background: var(--accent-tint); }
.scard__media { aspect-ratio: 9/5; overflow: hidden; background: var(--bg-stone); }
.scard__media img, .scard__media .ph { width: 100%; height: 100%; object-fit: cover; }
.scard__body { display: flex; flex-direction: column; flex: 1; padding: 28px 24px 32px; }
.scard__eyebrow { margin-bottom: 8px; color: var(--deep); font-size: 12px; }
.scard h3 { margin: 0 0 10px; font-size: 21px; }
.scard h3 a { color: var(--text); text-decoration: none; }
.scard h3 a::after { content: ""; position: absolute; inset: 0; }
.scard p:not(.label) { margin: 0 0 18px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.scard .link-arrow { margin-top: auto; }

.section { padding: var(--section) 0 0; }
.section:last-of-type { padding-bottom: var(--section); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section__head h2 { margin: 18px 0 0; font-size: 36px; line-height: 1.15; }
.docs-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px; margin-top: 56px; font-size: 16px; }
.docs-line > span { color: var(--muted); }
.docs-line a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.docs-line a:hover { text-decoration: underline; }

.about { position: relative; margin-top: var(--section); padding: 96px 0 128px; background: var(--accent-tint); overflow: hidden; isolation: isolate; }
.about.mountains::before { opacity: .55; height: 300px; background-size: 1920px 300px; filter: hue-rotate(10deg); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 48px; align-items: start; }
.about h2 { margin: 18px 0 24px; font-size: 36px; line-height: 1.15; }
.about__text { max-width: 1100px; color: var(--muted); }
.about .stats-row { margin: 40px 0 48px; padding: 40px 48px; background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow); }
.about .stat + .stat { border-left: 1px solid var(--line); padding-left: 32px; }
.mvg { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.mvg__card { padding: 32px; background: #fff; border-radius: var(--r-m); }
.mvg__card .label { color: var(--deep); margin-bottom: 14px; }
.mvg__card p:not(.label) { margin: 0; font-size: 18px; line-height: 1.6; }
.about__links { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 48px; }
.feature { position: relative; padding: 32px; border-radius: var(--r-m); background: var(--ink); color: #fff; }
.feature__media { aspect-ratio: 496/260; border-radius: var(--r-s); overflow: hidden; margin-bottom: 20px; background: #2c3438; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature h3 { margin: 18px 0 22px; color: #fff; font-size: 24px; line-height: 1.3; }
.feature h3 a { color: #fff; text-decoration: none; }
.feature h3 a::after { content: ""; position: absolute; inset: 0; }
.feature .link-arrow { color: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: 96px; }
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 240px; padding: 24px; border: 0; border-radius: var(--r-m); text-align: left; text-decoration: none; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile__num { position: absolute; left: 24px; top: 24px; font: 400 14px/1 var(--mono); }
.tile__arrow { position: absolute; right: 26px; top: 26px; width: 28px; height: 28px; }
.tile__picto { position: absolute; right: 24px; top: 70px; width: 64px; height: 64px; opacity: .55; }
.tile h3 { margin: 0 0 10px; font-size: 24px; color: inherit; }
.tile p { margin: 0; font-size: 16px; line-height: 1.5; }
.tile--1 { background: var(--accent); color: var(--on-accent); }
.tile--2 { background: var(--accent-light); color: var(--on-accent); }
.tile--3 { background: var(--deep); color: #fff; }
.tile--4 { background: var(--ink); color: #fff; }
.tile--1:hover, .tile--2:hover { color: var(--on-accent); }
.tile--3:hover, .tile--4:hover { color: #fff; }

.conditions { margin-top: 96px; padding: 96px 0; background: var(--bg-soft); }
.cond { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: var(--gap); }
.cond__intro { grid-column: 1; grid-row: 1; }
.cond__intro h2 { margin: 18px 0 16px; font-size: 36px; line-height: 1.15; }
.cond__intro p { font-size: 17px; line-height: 1.5; }
.cond__ph { position: relative; border-radius: var(--r-m); overflow: hidden; background: var(--bg-stone); }
.cond__ph img { width: 100%; height: 100%; object-fit: cover; }
.cond__ph--1 { grid-column: 1; grid-row: 2; min-height: 300px; }
.cond__ph--2 { grid-column: 2; grid-row: 1 / 3; min-height: 560px; }
.cond__right { grid-column: 3; grid-row: 1 / 3; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1.1fr 1fr; gap: var(--gap); }
.cond__ph--3 { grid-column: 1 / 3; }

.contacts-sec { position: relative; padding: 96px 0; background: var(--ink); color: #fff; }
.contacts-sec h2 { margin: 18px 0 32px; color: #fff; font-size: 36px; }
.contacts-sec .contacts { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 64px; align-items: stretch; }
.contacts-sec .clist li { grid-template-columns: 24px 1fr; align-items: start; gap: 16px; }
.contacts-sec .clist__icon { width: 24px; height: 24px; background: none; color: var(--accent); }
.contacts-sec .clist .label { color: rgba(255,255,255,.72); }
.contacts-sec .clist a, .contacts-sec .clist span.v { color: #fff; font-size: 19px; }
.contacts-sec .map { min-height: 620px; background: #414b50; }

/* 8. Адаптив --------------------------------------------------------------- */
@media (max-width: 1599px) {
	.topbar__contacts li:nth-child(2) { display: none; }
	.topbar__links { gap: 14px; padding-right: 14px; }
	.topbar__right { gap: 14px; }
	/* «Обратный звонок» остаётся плавающей кнопкой — место в шапке отдаём меню. */
	.mainbar__cta { display: none; }
	.mainnav__link { font-size: 16px; padding-left: 8px; }
	.mainbar__in { gap: 20px; }
	.hero h1 { font-size: 64px; }
	.about__grid { grid-template-columns: minmax(0, 1fr) 440px; }
}
@media (max-width: 1439px) {
	:root { --gutter: 56px; }
	.mainnav__link { font-size: 15px; padding-left: 6px; }
	.mainnav__toggle { width: 20px; }
}
@media (max-width: 1365px) {
	.topbar__links { display: none; }
	.mainnav { display: none; }
	.mainbar__burger { display: inline-grid; }
	.mainbar__cta { display: inline-flex; margin-left: auto; }
	.site-footer__grid { grid-template-columns: repeat(3, 1fr); }
	.site-footer__brand { grid-column: 1 / -1; }
	.svc-track { grid-auto-columns: calc((100% - var(--gap) * 3) / 3.3); }
	.tiles { grid-template-columns: repeat(2, 1fr); }
	.layout { grid-template-columns: 300px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 1279px) {
	:root { --gutter: 40px; --gap: 20px; --section: 96px; --fs-base: 17px; }
	h1 { font-size: 40px; }
	h2 { font-size: 32px; }
	.hero h1 { font-size: 56px; }
	.hero__bg { height: 860px; }
	.hero::after { top: 860px; }
	.section__head h2 { font-size: 40px; }
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.about__grid { grid-template-columns: 1fr; }
	.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: center; }
	.feature__media { grid-row: 1 / 4; margin: 0; }
	.cond { grid-template-columns: 1fr 1fr; }
	.cond__intro { grid-column: 1 / -1; }
	.cond__ph--1 { grid-column: 1; grid-row: 2; aspect-ratio: auto; }
	.cond__ph--2 { grid-column: 2; grid-row: 2; aspect-ratio: 4/5; }
	.cond__right { grid-column: 1 / -1; grid-row: 3; }
	.contacts, .contacts-sec .contacts { grid-template-columns: 1fr; gap: 40px; }
	.layout { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 96px; }
	.layout__aside { position: static; }
	.modal__grid { grid-template-columns: 1fr; }
	.modal__aside { display: none; }
	.modal { width: min(640px, calc(100% - 32px)); }
}
@media (max-width: 1023px) {
	.topbar__contacts li:nth-child(2) { display: none; }
	.svc-track { grid-auto-columns: calc((100% - var(--gap)) / 2.2); }
	.mvg { grid-template-columns: 1fr; }
	.about .stats-row { padding: 28px; }
	.feature { display: block; }
	.feature__media { margin-bottom: 20px; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	:root { --gutter: 20px; --gap: 16px; --section: 72px; --fs-base: 16px; --header-h: 72px; }
	body { line-height: 1.55; }
	h1 { font-size: 32px; line-height: 1.12; }
	h2 { font-size: 28px; line-height: 1.18; }
	h3 { font-size: 20px; line-height: 1.3; }
	.lead { font-size: 18px; }
	.btn { min-height: 48px; padding: 10px 22px; font-size: 16px; }
	.topbar { display: none; }
	.mainbar__in { min-height: 72px; gap: 12px; }
	.brand__logo { width: 40px; height: 40px; }
	.brand__name { font-size: 17px; }
	.brand__sub { font-size: 10px; }
	.mainbar__cta { display: none; }
	.mainbar__burger { margin-left: auto; }
	.site-header--hero .mainbar { background: linear-gradient(180deg, rgba(25,31,35,.55), rgba(25,31,35,0)); }
	.page-head { padding: 28px 0 36px; }
	.page-head h1 { margin-top: 14px; }
	.crumbs ol { font-size: 14px; }
	.layout { padding: 32px 0 72px; }
	.side-nav a { font-size: 16px; padding: 12px 14px; }
	.prose { font-size: 16px; }
	.prose h2 { font-size: 22px; }
	.prose blockquote { padding: 20px; font-size: 18px; }
	.doc { grid-template-columns: 40px minmax(0, 1fr); padding: 16px; }
	.doc__icon { width: 40px; height: 40px; }
	.doc__title { font-size: 16px; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.stats-row { grid-template-columns: 1fr; gap: 20px; }
	.stat__value { font-size: 40px; }
	.about .stat + .stat { border-left: 0; padding-left: 0; padding-top: 20px; border-top: 1px solid var(--line); }
	.tabs { gap: 28px; margin-bottom: 28px; }
	.tab { font-size: 17px; padding-bottom: 14px; }
	.cta { flex-direction: column; align-items: flex-start; padding: 24px; }
	.srow { grid-template-columns: 72px 1fr; gap: 16px; padding: 16px; align-items: start; }
	.srow__img { width: 72px; height: 72px; }
	.svc-group__head h2 { font-size: 24px; }

	.hero__bg { height: 760px; }
	.hero::after { top: 760px; }
	.hero__in { padding-top: 132px; }
	.hero h1 { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.08; margin-top: 16px; overflow-wrap: anywhere; hyphens: auto; }
	.hero__lead { font-size: 17px; margin-top: 20px; }
	.hero__actions { margin-top: 28px; flex-direction: column; align-items: flex-start; }
	.svc-slider { margin-top: 48px; padding-bottom: 0; }
	.svc-slider__nav { display: none; }
	.svc-track { grid-auto-columns: 82%; }
	.section__head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
	.section__head h2 { font-size: 32px; }
	.docs-line { flex-direction: column; align-items: flex-start; }
	.about { padding: 64px 0 96px; }
	.about h2 { font-size: 28px; }
	.mvg__card { padding: 24px; }
	.tiles { grid-template-columns: 1fr; }
	.tile { min-height: 180px; padding-right: 72px; }
	.tile__picto { top: auto; bottom: 22px; width: 44px; height: 44px; }
	.conditions { margin-top: 72px; padding: 64px 0; }
	.cond, .cond__right { grid-template-columns: 1fr; }
	.cond__intro h2, .contacts-sec h2 { font-size: 28px; }
	.cond__ph--1, .cond__ph--2, .cond__ph--3, .cond__right .cond__ph { grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
	.cond__right { grid-column: auto; grid-row: auto; grid-template-rows: none; }
	.contacts-sec { padding: 64px 0; }
	.map { min-height: 320px; }
	.site-footer { padding: 64px 0 96px; background-size: 960px auto; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.site-footer__bottom { flex-direction: column; margin-top: 40px; }
	.site-footer__bottom ul { flex-direction: column; gap: 10px; }
	.fab { right: 16px; bottom: 16px; padding: 6px; }
	.fab__text { display: none; }
	.modal { width: 100%; max-height: 100dvh; height: 100dvh; max-width: none; border-radius: 0; margin: 0; }
	.modal__main { padding: 72px 20px 32px; }
	.modal__title { font-size: 28px; }
	.lightbox[open] { grid-template-columns: 1fr; }
	.lightbox__prev, .lightbox__next { position: absolute; bottom: 20px; }
	.lightbox__prev { left: 20px; } .lightbox__next { right: 20px; }
	.search-form__btn { padding-inline: 18px; }
}

/* 9. Для слабовидящих ------------------------------------------------------ */
html.a11y-fs-2 { --fs-base: 21px; }
html.a11y-fs-3 { --fs-base: 24px; }
html.a11y-fs-2 body, html.a11y-fs-3 body { line-height: 1.7; }
html.a11y-fs-2 .prose, html.a11y-fs-2 .side-nav a, html.a11y-fs-2 .mainnav__link { font-size: 21px; }
html.a11y-fs-3 .prose, html.a11y-fs-3 .side-nav a, html.a11y-fs-3 .mainnav__link { font-size: 24px; }
html.a11y-fs-3 .scard p, html.a11y-fs-3 .srow p, html.a11y-fs-3 .tile p, html.a11y-fs-3 .doc__title { font-size: 21px; }
html.a11y-c-bw {
	--accent: #000; --accent-light: #000; --accent-tint: #fff; --deep: #000; --ink: #000; --bg-soft: #fff; --bg-stone: #fff;
	--text: #000; --muted: #000; --line: #000; --on-accent: #fff;
}
html.a11y-c-bw body { background: #fff; }
html.a11y-c-bw a { color: #000; text-decoration: underline; }
html.a11y-c-bw .btn--accent, html.a11y-c-bw .btn--deep, html.a11y-c-bw .fab, html.a11y-c-bw .tile, html.a11y-c-bw .play { background: #000 !important; color: #fff !important; }
html.a11y-c-bw .hero__bg::after { background: rgba(0,0,0,.85); }
html.a11y-c-bw .site-footer, html.a11y-c-bw .contacts-sec, html.a11y-c-bw .feature { background: #000; }
html.a11y-c-bw .site-footer a, html.a11y-c-bw .contacts-sec a, html.a11y-c-bw .feature a, html.a11y-c-bw .hero a, html.a11y-c-bw .tile, html.a11y-c-bw .site-header--hero a { color: #fff; }
html.a11y-c-bw .scard, html.a11y-c-bw .srow, html.a11y-c-bw .doc, html.a11y-c-bw .mvg__card, html.a11y-c-bw .side-nav ul, html.a11y-c-bw .page-head { border: 2px solid #000; box-shadow: none; }
html.a11y-c-bw img { filter: grayscale(1); }
html.a11y-c-bw .mountains::before { display: none; }
html.a11y-noimg img:not(.brand__logo), html.a11y-noimg .hero__bg { visibility: hidden; }
html.a11y-noimg .hero { background: #000; }
html.a11y .js-a11y[aria-expanded] .icon { color: var(--accent); }

@media print {
	.site-header, .site-footer, .fab, .layout__aside, .share, .related, .cta { display: none !important; }
	.layout { display: block; padding: 0; }
	body { font-size: 12pt; }
}

/* Дополнения: карточка текста (блог руководителя), пресс-центр */
.prose--card { max-width: none; padding: 40px; border-radius: var(--r-m); background: var(--bg-soft); }
.cta { margin-top: 24px; }
.press-block + .press-block { margin-top: 64px; }
.listing-intro { margin-bottom: 32px; color: var(--muted); }
@media (max-width: 767px) { .prose--card { padding: 24px 20px; } }
.prose--wide { max-width: none; }
.results { list-style: none; margin-top: 40px; display: grid; gap: 0; }
.results li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.results h2 { margin: 6px 0 8px; font-size: 22px; }
.results h2 a { color: var(--text); text-decoration: none; }
.results h2 a:hover { color: var(--deep); text-decoration: underline; }
.results p:last-child { margin: 0; color: var(--muted); }

/* Крупный шрифт: меню целиком в кнопке «Меню», чтобы ничего не обрезалось. */
html.a11y-fs-2 .mainnav, html.a11y-fs-3 .mainnav { display: none; }
html.a11y-fs-2 .mainbar__burger, html.a11y-fs-3 .mainbar__burger { display: inline-grid; }
html.a11y-fs-2 .mainbar__cta, html.a11y-fs-3 .mainbar__cta { display: inline-flex; margin-left: auto; }
html.a11y-fs-2 .mmenu__group, html.a11y-fs-2 .mmenu__link { font-size: 22px; }
html.a11y-fs-3 .mmenu__group, html.a11y-fs-3 .mmenu__link { font-size: 25px; }
@media (max-width: 767px) { html.a11y .mainbar__cta { display: none; } }

/* ==========================================================================
   Документы PDF: строка «Смотреть», карточка со стопкой страниц, просмотрщик
   ========================================================================== */
.doc__actions { display: flex; align-items: center; gap: 20px; }
.doc__view { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--deep); font-weight: 500; white-space: nowrap; }
.doc__view:hover, .doc__dl:hover { text-decoration: underline; }
.doc--pdf .doc__title { cursor: zoom-in; }

.pdfcard {
	display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 72px; align-items: center;
	margin: 0 0 32px; padding: 48px 56px; border-radius: var(--r-l);
	background: radial-gradient(120% 140% at 0% 0%, #fff 0%, var(--accent-tint) 55%, #dfeaf3 100%);
	overflow: hidden;
}
.pdfcard__stack { position: relative; display: block; width: 100%; aspect-ratio: 613 / 1009; padding: 0; border: 0; background: none; cursor: zoom-in; perspective: 1200px; }
.pdfcard__sheet {
	position: absolute; inset: 0; display: block; overflow: hidden; border-radius: 6px; background: #fff;
	box-shadow: 0 1px 0 rgba(38,45,49,.06), 0 18px 40px rgba(38,45,49,.16);
	transition: transform .45s var(--ease), box-shadow .45s var(--ease);
	transform-origin: 50% 100%;
}
.pdfcard__sheet img, .pdfcard__sheet canvas { display: block; width: 100% !important; height: 100% !important; object-fit: cover; object-position: top; }
.pdfcard__sheet--1 { z-index: 3; }
.pdfcard__sheet--2 { z-index: 2; transform: rotate(-3deg) translate(-8px, 2px); }
.pdfcard__sheet--3 { z-index: 1; transform: rotate(3.5deg) translate(10px, 4px); }
.pdfcard__sheet--2:not(.is-painted), .pdfcard__sheet--3:not(.is-painted) { background: linear-gradient(#fff, #f4f7f8); }
.pdfcard__stack:hover .pdfcard__sheet--1, .pdfcard__stack:focus-visible .pdfcard__sheet--1 { transform: translateY(-10px) rotate(-1deg); box-shadow: 0 30px 60px rgba(38,45,49,.22); }
.pdfcard__stack:hover .pdfcard__sheet--2, .pdfcard__stack:focus-visible .pdfcard__sheet--2 { transform: rotate(-6deg) translate(-26px, 2px); }
.pdfcard__stack:hover .pdfcard__sheet--3, .pdfcard__stack:focus-visible .pdfcard__sheet--3 { transform: rotate(6deg) translate(28px, 4px); }
.pdfcard__hint {
	position: absolute; z-index: 4; left: 50%; bottom: 22px; display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 18px; border-radius: var(--pill); background: rgba(38,45,49,.86); color: #fff; font-weight: 500; font-size: 15px;
	transform: translate(-50%, 8px); opacity: 0; transition: .3s var(--ease); backdrop-filter: blur(4px);
}
.pdfcard__stack:hover .pdfcard__hint, .pdfcard__stack:focus-visible .pdfcard__hint { opacity: 1; transform: translate(-50%, 0); }
.pdfcard__body { position: relative; z-index: 5; }
.pdfcard__title { margin: 18px 0 14px; font-size: 36px; line-height: 1.15; }
.pdfcard__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.pdfcard__meta li { padding: 6px 12px; border-radius: var(--pill); background: rgba(255,255,255,.75); font: 500 13px/1.3 var(--mono); letter-spacing: .04em; color: var(--muted); }
.pdfcard__meta li:empty { display: none; }
.pdfcard__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pdfcard__actions .btn--ghost { background: #fff; border-color: var(--line); }
.pdfcard__thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pdfcard__thumbs:empty { display: none; }
.pdfcard__thumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #fff; box-shadow: 0 4px 12px rgba(38,45,49,.1); cursor: zoom-in; transition: transform .2s var(--ease), border-color .2s; }
.pdfcard__thumb canvas { display: block; border-radius: 4px; }
.pdfcard__thumb:hover { transform: translateY(-3px); border-color: var(--accent-light); }
.pdfcard__num { position: absolute; right: 4px; bottom: 4px; padding: 1px 5px; border-radius: 4px; background: var(--ink); color: #fff; font: 500 11px/1.4 var(--mono); }
.pdfcard.is-failed .pdfcard__thumbs { display: none; }

/* Окно просмотра */
.pdfv { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: #2a3236; color: #fff; }
.pdfv[open] { display: flex; flex-direction: column; }
html.pdfv-open { overflow: hidden; }
.pdfv__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.08); }
.pdfv__name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pdfv__badge { padding: 4px 8px; border-radius: 4px; background: var(--accent); color: var(--on-accent); }
.pdfv__title { margin: 0; color: #fff; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdfv__tools { display: flex; align-items: center; gap: 10px; flex: none; }
.pdfv__group { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--pill); background: rgba(255,255,255,.07); }
.pdfv__btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: #fff; text-decoration: none; }
.pdfv__btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.pdfv__btn--close { background: rgba(255,255,255,.1); }
.pdfv__page input { width: 48px; height: 34px; border: 0; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; font: 500 15px var(--mono); text-align: center; -moz-appearance: textfield; }
.pdfv__page input::-webkit-inner-spin-button, .pdfv__page input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pdfv__of { padding: 0 6px 0 4px; font: 400 15px var(--mono); color: rgba(255,255,255,.7); }
.pdfv__zoom { min-width: 64px; height: 40px; border: 0; border-radius: var(--pill); background: none; color: #fff; font: 500 14px var(--mono); }
.pdfv__zoom:hover { background: rgba(255,255,255,.14); }
.pdfv :focus-visible { outline-color: var(--accent-light); }
.pdfv__body { position: relative; display: flex; flex: 1; min-height: 0; }
.pdfv__thumbs { flex: none; width: 152px; padding: 20px 16px; overflow-y: auto; background: rgba(0,0,0,.16); scrollbar-width: thin; }
.pdfv__thumb { display: block; width: 108px; margin: 0 auto 18px; padding: 0; border: 0; background: none; color: rgba(255,255,255,.7); font: 400 12px var(--mono); text-align: center; }
.pdfv__thumb canvas { display: block; margin-bottom: 6px; border-radius: 3px; background: #fff; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s; }
.pdfv__thumb:hover canvas { outline-color: rgba(255,255,255,.4); }
.pdfv__thumb.is-current { color: #fff; }
.pdfv__thumb.is-current canvas { outline-color: var(--accent); }
.pdfv__pages { flex: 1; overflow: auto; padding: 32px; scroll-behavior: smooth; outline: none; }
.pdfv__p { position: relative; margin: 0 auto 28px; background: #fff; border-radius: 3px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.pdfv__p:not(.is-painted) { background: linear-gradient(100deg, #f1f4f5 40%, #fff 50%, #f1f4f5 60%) 0 0 / 300% 100%; animation: pdfv-shimmer 1.4s linear infinite; }
@keyframes pdfv-shimmer { to { background-position: -150% 0; } }
.pdfv__p canvas { display: block; border-radius: 3px; }
.pdfv__pnum { position: absolute; right: 12px; bottom: 12px; padding: 2px 8px; border-radius: 4px; background: rgba(38,45,49,.7); color: #fff; font: 400 12px var(--mono); opacity: 0; transition: opacity .2s; }
.pdfv__p:hover .pdfv__pnum { opacity: 1; }
.pdfv__state { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; color: rgba(255,255,255,.85); }
.pdfv__state[hidden] { display: none; }
.pdfv__state a { color: #fff; }
.pdfv__state.is-error .pdfv__spinner { display: none; }
.pdfv__spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--accent); border-radius: 50%; animation: pdfv-spin .8s linear infinite; }
@keyframes pdfv-spin { to { transform: rotate(360deg); } }

@media (max-width: 1023px) {
	.pdfcard { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 32px; }
	.pdfcard__title { font-size: 28px; }
	.pdfv__thumbs { display: none; }
}
@media (max-width: 767px) {
	.pdfcard { grid-template-columns: 1fr; gap: 28px; padding: 28px 20px 24px; }
	.pdfcard__stack { width: 62%; margin: 8px auto 0; }
	.pdfcard__hint { opacity: 1; transform: translate(-50%, 0); bottom: 14px; padding: 8px 14px; font-size: 14px; }
	.pdfcard__title { font-size: 24px; }
	.pdfcard__actions .btn { flex: 1 1 100%; }
	.doc__actions { grid-column: 2; gap: 16px; }
	.pdfv__bar { flex-wrap: wrap; padding: 10px 12px; gap: 10px; }
	.pdfv__name { flex: 1 1 100%; padding-right: 52px; }
	.pdfv__tools { width: 100%; justify-content: space-between; gap: 6px; }
	.pdfv__btn { width: 36px; height: 36px; }
	.pdfv__zoom { min-width: 52px; height: 36px; }
	.pdfv__page input { width: 40px; }
	.js-pdfv-full { display: none; }
	.pdfv__btn--close { position: absolute; top: 8px; right: 10px; }
	.pdfv__pages { padding: 12px; }
	.pdfv__p { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pdfv__p:not(.is-painted) { animation: none; } }
html.a11y-c-bw .pdfcard { background: #fff; border: 2px solid #000; }
/* Карточка документа внутри текста страницы: без отступов списков и заголовков .prose */
.prose .pdfcard__meta { padding-left: 0; }
.prose .pdfcard__meta li + li { margin-top: 0; }
.prose .pdfcard__title { margin: 18px 0 14px; font-size: 36px; }
.prose .pdfcard + * { margin-top: 32px; }
@media (max-width: 1023px) { .prose .pdfcard__title { font-size: 28px; } }
@media (max-width: 767px) { .prose .pdfcard__title { font-size: 24px; } }
.site-footer .label a { color: inherit; }

/* Список ссылок «kp-links» (законы) и карточки госсимволов */
.prose .kp-links { display: grid; gap: 20px; }
.prose .kp-links .doc + .doc { margin-top: 0; }
.doc--link .doc__title { font-size: 17px; }
.prose .kp-symbols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 32px; }
.prose .kp-symbols > .wp-block-column { margin: 0; padding: 16px 16px 24px; border-radius: var(--r-m); background: var(--bg-soft); }
.prose .kp-symbols > .wp-block-column > * + * { margin-top: 12px; }
.prose .kp-symbols figure { margin: 0 0 16px; aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; background: #fff; }
.prose .kp-symbols figure a.zoom, .prose .kp-symbols figure img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.prose .kp-symbols h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.prose .kp-symbols p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.kp-hymn-art { display: grid; place-content: center; justify-items: center; gap: 10px; aspect-ratio: 16 / 9; margin-bottom: 16px; border-radius: var(--r-s); background: var(--ink); color: #fff; text-align: center; }
.kp-hymn-art__note { color: var(--accent); font-size: 40px; line-height: 1; }
.kp-hymn-art__name { font-size: 20px; font-weight: 600; }
@media (max-width: 1023px) { .prose .kp-symbols { grid-template-columns: 1fr; } }

/* Отступ между абзацами текста. `.prose p { margin: 0 }` выше специфичнее, чем `.prose > * + *`,
   и обнулял его — поэтому правило для абзацев повторено отдельно и стоит последним. */
.prose > * + p, .prose > p + * { margin-top: 1.1em; }
.prose .wp-block-column > p + p, .prose .wp-block-group > p + p { margin-top: .9em; }


/* ==========================================================================
   Сверка с макетом (01.12.2026)
   ========================================================================== */
/* Новость/статья — колонка текста как в макете (~920px) */
.single-post .layout__main > .prose, .single-post .layout__main > .share, .single-post .layout__main > .related, .single-post .back-link { max-width: 920px; }
/* Фото в тексте шире 760px — на всю колонку */
.prose .kp-fill { margin-inline: 0; }
.prose .kp-fill img, .prose .kp-fill a.zoom { display: block; width: 100%; }
.prose .kp-fill img { max-height: 620px; object-fit: cover; }
/* Плавающая кнопка: на широких экранах кнопка уже есть в шапке (кроме главной, где в макете FAB) */
@media (min-width: 1600px) { body:not(.has-hero) .fab { display: none; } }
/* Верхняя строка 1440–1599: всё в одну строку внутри контейнера */
@media (max-width: 1599px) {
	.topbar__links { gap: 12px; padding-right: 12px; }
	.topbar__links a, .topbar__btn { font-size: 15px; }
	.topbar__right { gap: 12px; }
}

/* Карточки миссии/видения/цели в тексте страниц */
.prose .kp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 32px; }
.prose .kp-cards > .wp-block-column { margin: 0; padding: 28px; border-radius: var(--r-m); background: var(--accent-tint); }
.prose .kp-cards > .wp-block-column > * + * { margin-top: 12px; }
.prose .kp-cards .kp-card-label { font: 500 13px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--deep); }
.prose .kp-cards p:not(.kp-card-label) { font-size: 17px; line-height: 1.6; }
.prose .is-lead, .prose p.is-style-lead { font-size: 22px; line-height: 1.45; font-weight: 600; color: var(--text); }
.prose .stats-row--page { margin: 36px 0; }
.prose .kp-photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.prose .kp-photos > .wp-block-column { margin: 0; }
.prose .kp-photos figure { margin: 0; aspect-ratio: 664 / 380; border-radius: var(--r-m); overflow: hidden; }
.prose .kp-photos figure a.zoom, .prose .kp-photos img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* Хлебные крошки: «/» в конце строки, а не в начале новой */
.crumbs li + li::before { content: none; }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--muted); }

/* Переключатель языка в мобильной шапке и сворачиваемое меню раздела */
.mainbar__lang { display: none; }
.side-nav__toggle { display: none; }
@media (max-width: 1279px) {
	html.js .side-nav__title { display: none; }
	html.js .side-nav__toggle {
		display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 2px 12px;
		width: 100%; padding: 14px 18px; border: 0; border-radius: var(--r-m); background: var(--bg-soft); color: var(--text); text-align: left;
	}
	html.js .side-nav__toggle .label { grid-column: 1; font-size: 11px; }
	html.js .side-nav__current { grid-column: 1; font-weight: 600; font-size: 17px; }
	html.js .side-nav__toggle .icon { grid-column: 2; grid-row: 1 / 3; transition: transform .2s; }
	html.js .side-nav.is-open .side-nav__toggle .icon { transform: rotate(180deg); }
	html.js .side-nav ul { display: none; margin-top: 8px; }
	html.js .side-nav.is-open ul { display: grid; }
}

@media (max-width: 767px) {
	.mainbar__lang { display: inline-flex; margin-left: auto; }
	.mainbar__lang a { min-width: 40px; height: 30px; }
	.mainbar__lang + .mainbar__burger { margin-left: 0; }
	.site-header--hero .mainbar__lang { background: rgba(255,255,255,.92); border-color: transparent; }

	/* Главная: hero */
	.hero h1 { font-size: 32px; line-height: 1.12; hyphens: manual; overflow-wrap: break-word; }
	.hero .badge { font-size: 11px; letter-spacing: .04em; }
	.hero__actions { align-items: stretch; }
	.hero__actions .btn { width: 100%; }
	.svc-slider__head { flex-wrap: wrap; }
	.svc-slider__nav { display: flex; }
	.svc-slider__nav .icon-btn { width: 44px; height: 44px; }

	.section__head h2, .about h2, .cond__intro h2, .contacts-sec h2 { font-size: 28px; line-height: 1.18; }

	/* Новости, видео, альбомы на главной — горизонтальные карусели */
	.grid--scroll-m {
		display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 280px;
		overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter);
	}
	.grid--scroll-m::-webkit-scrollbar { display: none; }
	.grid--scroll-m > * { scroll-snap-align: start; }

	/* Цифры — три в ряд */
	.stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
	.stat__value { font-size: 28px; }
	.stat__label { margin-top: 8px; font-size: 12px; line-height: 1.35; }
	.about .stats-row { padding: 20px 16px; }
	.about .stat + .stat { border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: 12px; }

	/* Плитки 01–04 — сетка 2×2 */
	.tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
	.tile { min-height: 200px; padding: 16px 16px 18px; }
	.tile__num { left: 16px; top: 16px; }
	.tile__arrow { right: 16px; top: 16px; width: 22px; height: 22px; }
	.tile__picto { display: none; }
	.tile h3 { font-size: 17px; line-height: 1.25; }
	.tile p { font-size: 13px; line-height: 1.4; }

	/* Условия: последние два фото рядом */
	.cond__right { grid-template-columns: 1fr 1fr; }
	.cond__right .cond__ph--3 { grid-column: 1 / 3; }
	.cond__ph--2 { min-height: 0; }

	/* CTA: кнопка на всю ширину */
	.cta { align-items: stretch; }
	.cta .btn { width: 100%; }

	/* Услуги: счётчик в строку с заголовком */
	.svc-group__head { flex-wrap: wrap; gap: 6px 12px; }
	.svc-group__head .label { white-space: nowrap; }

	/* Подвал: группы ссылок в 2 колонки */
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
	.site-footer__brand, .site-footer__col:last-child { grid-column: 1 / -1; }

	/* Окно заявки — нижний лист с «ручкой» */
	.modal { margin: auto 0 0; height: auto; max-height: 92dvh; border-radius: 20px 20px 0 0; }
	.modal::before { content: ""; position: relative; top: 0; display: block; width: 44px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--line); z-index: 2; }
	.modal__main { padding: 20px 20px 28px; }
	.modal__lead { display: none; }
	.modal__title { margin-top: 14px; }
	.modal__close { top: 14px; right: 14px; width: 40px; height: 40px; box-shadow: none; }
	.modal[open] { animation: sheet .28s var(--ease); }

	.prose .kp-cards, .prose .kp-photos { grid-template-columns: 1fr; }
	.prose .is-lead { font-size: 19px; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 1023px) { .prose .kp-cards { grid-template-columns: 1fr; } }
@media (max-width: 1279px) { .contacts-sec .map { min-height: 420px; } }
@media (max-width: 767px) { .contacts-sec .map { min-height: 320px; } }
@media (max-width: 767px) {
	/* Шапка 390: логотип сжимается, язык и «Меню» — нет */
	.mainbar .brand { flex: 1 1 auto; min-width: 0; gap: 10px; }
	.mainbar .brand__text { min-width: 0; }
	.mainbar .brand__name, .mainbar .brand__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.mainbar__lang, .mainbar__burger { flex: none; }
	.mainbar__lang a { min-width: 38px; padding: 0 6px; }
	/* Цифры в ряд без переноса */
	.stat__value { font-size: 24px; white-space: nowrap; }
}
@media (max-width: 359px) { .mainbar .brand__sub { display: none; } }

/* ==========================================================================
   Окно заявки — правки по тестированию (01.12.2026)
   ========================================================================== */
html.modal-open { overflow: hidden; }
.modal__top { position: absolute; top: 20px; right: 20px; z-index: 3; }
.modal__top .modal__close { position: static; }
.field::placeholder { color: #5f6b71; }
.form__status:focus, .form__done:focus { outline: none; }
.js-submit.is-busy { opacity: .65; cursor: progress; }

/* Готово: вместо формы — галочка, текст и кнопка «Готово» */
.form__done { display: none; justify-items: start; gap: 16px; padding: 8px 0 4px; }
.modal.is-done .form__done { display: grid; }
.modal.is-done .form, .modal.is-done .modal__lead { display: none; }
.form__done-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e3f1e8; color: var(--success); }
.form__done-icon .icon { width: 28px; height: 28px; }
.form__done-text { margin: 0; font-size: 20px; line-height: 1.45; }

/* Без JavaScript окно выводится открытым (не модальным) — показываем его поверх страницы так же */
.modal[open]:not(:modal) { position: fixed; inset: 0; z-index: 200; margin: auto; box-shadow: 0 0 0 100vmax rgba(38,45,49,.55), var(--shadow-lg); }

@media (max-width: 767px) {
	/* Лист «Обращение к руководителю» — тоже на всю ширину */
	.modal[data-type="question"] { width: 100%; }
	/* Крестик в «липкой» полосе: не уезжает при прокрутке длинной формы */
	.modal__top { position: sticky; top: 0; right: auto; height: 0; }
	.modal__top .modal__close { position: absolute; top: 10px; right: 14px; background: #fff; box-shadow: var(--shadow); }
	.modal[open]:not(:modal) { inset: auto 0 0; }
}

/* Для слабовидящих: окно растёт вместе с текстом сайта */
html.a11y-fs-2 .modal :is(.form__field > label, .field, .check, .form__error, .form__status, .btn, .modal__lead, .modal__aside, .form__done-text) { font-size: 21px; }
html.a11y-fs-3 .modal :is(.form__field > label, .field, .check, .form__error, .form__status, .btn, .modal__lead, .modal__aside, .form__done-text) { font-size: 24px; }
html.a11y-fs-2 .modal__title { font-size: 40px; }
html.a11y-fs-3 .modal__title { font-size: 44px; }
html.a11y-c-bw .field::placeholder { color: #333; }

/* Пропуски в черновиках текстов ([уточнить]) — видны сразу, чтобы не уйти в работу незаполненными */
.prose mark.kp-todo { padding: 1px 6px; border-radius: 4px; background: #FFF1B8; color: var(--text); font-weight: 500; }
.check a { color: var(--deep); text-decoration: underline; }

/* Заглушка пустого раздела */
.soon { display: grid; grid-template-columns: minmax(220px, 360px) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px; border-radius: var(--r-l); background: var(--bg-soft); }
.soon__art { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.soon__art img, .soon__svg { display: block; width: 100%; height: auto; aspect-ratio: 320 / 220; object-fit: cover; }
.soon__dots circle { animation: soon-dot 1.4s ease-in-out infinite; }
.soon__dots circle:nth-child(2) { animation-delay: .2s; }
.soon__dots circle:nth-child(3) { animation-delay: .4s; }
@keyframes soon-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.prose .soon h2 { margin: 16px 0 12px; font-size: 28px; line-height: 1.2; }
.prose .soon p { margin: 0; color: var(--muted); }
.soon__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.soon__actions .btn--ghost { background: #fff; border-color: var(--line); }
.prose .soon__links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 20px 0 0; padding: 0; }
.prose .soon__links li { padding: 0; margin: 0; }
.prose .soon__links li::before { content: none; }
@media (max-width: 1023px) { .soon { grid-template-columns: 1fr; gap: 28px; } .soon__art { max-width: 420px; } }
@media (max-width: 767px) { .soon { padding: 24px 20px; } .prose .soon h2 { font-size: 22px; } .soon__actions .btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .soon__dots circle { animation: none; opacity: .6; } }
/* Кнопки открытия заявки теперь ссылки (работа без JS) — без подчёркивания */
.fab, .fab:hover, .tile, .tile:hover { text-decoration: none; }
.fab:hover { color: var(--on-accent); }
/* Сетка страницы не шире экрана, даже если внутри длинная неразрывная строка */
@media (max-width: 1279px) { .layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .soon__actions .btn { white-space: normal; text-align: center; } }
@media (max-width: 767px) { .cond__ph--1 { min-height: 0; } }

/* ── Навигация: подпункты в боковом меню и оглавление раздела (01.12.2026) ── */
.side-nav ul.side-nav__sub { display: grid; gap: 2px; margin: 2px 0 4px; padding: 0 0 0 16px; background: none; border-radius: 0; }
.side-nav__sub a { padding: 10px 16px; font-size: 16px; color: var(--muted); }
.side-nav__sub a::before { content: ""; flex: none; width: 6px; height: 1px; margin-right: -4px; background: currentColor; order: -1; }
.side-nav__sub a span { flex: 1; }
.side-nav__sub a.is-current { color: var(--deep); }
span.mainnav__link { cursor: default; }

.subpages { margin-top: 56px; }
.layout__main > .subpages:first-child { margin-top: 0; }
.subpages__title { margin: 0 0 16px; color: var(--muted); }
.subpages__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.subpages__card { display: flex; align-items: center; gap: 16px; height: 100%; padding: 22px 24px; border-radius: var(--r-m); background: var(--bg-soft); color: var(--text); text-decoration: none; font-size: 18px; font-weight: 500; line-height: 1.4; transition: background .2s, color .2s; }
.subpages__name { flex: 1; min-width: 0; }
.subpages__card .badge { flex: none; }
.subpages__card .icon { flex: none; color: var(--deep); transition: transform .2s var(--ease); }
.subpages__card:hover { background: var(--accent-tint); color: var(--deep); }
.subpages__card:hover .icon { transform: translateX(4px); }
@media (max-width: 767px) {
	.subpages { margin-top: 40px; }
	.subpages__list { grid-template-columns: minmax(0, 1fr); }
	.subpages__card { padding: 18px 20px; font-size: 16px; }
}
html.a11y-c-bw .subpages__card { border: 2px solid #000; }

/* Шапка из 7 пунктов: казахские подписи длиннее («Баспасөз орталығы», «Орталық қызметі»).
   До 1800 px «Обратный звонок» в шапке не показываем (остаётся плавающая кнопка), до 1600 px — меню компактнее. */
@media (min-width: 1366px) and (max-width: 1799px) {
	.mainbar__cta { display: none; }
}
@media (min-width: 1366px) and (max-width: 1599px) {
	.mainnav__link { font-size: 15px; padding-left: 6px; }
	.mainnav__item:not(.has-sub) .mainnav__link { padding-right: 8px; }
	.mainnav__toggle { width: 20px; }
}
