/* ==========================================================================
   СИП — основные стили темы
   1. Шрифты и переменные
   2. Сброс и база
   3. Общие элементы (панели, заголовки, кнопки)
   4. Шапка
   5. Меню (выезжающая панель)
   6. Подвал
   7. Записи (новости, СМИ), архив, 404
   8. Анимации появления
   Стили блоков лежат рядом с блоками: blocks/<имя>/style.css
   ========================================================================== */

/* 1. Шрифты и переменные
   ========================================================================== */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-display: swap;
	font-weight: 200 800;
	src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* Цвета */
	--c-page: #eff2f5;
	--c-panel: #e0e4e9;
	--c-card: #e0e4e9;
	--c-white: #fff;
	--c-text: #060606;
	--c-muted: rgba(6, 6, 6, 0.25);
	--c-soft: #8b8d94;
	--c-line: #b3bec6;
	--c-accent: #3c5968;
	--c-accent-dark: #0e2735;
	--c-steel: #516b7a;
	--c-ink: #303c52;
	--g-dark: linear-gradient(9deg, #3c5968 0%, #0e2735 100%);
	--g-banner: linear-gradient(90deg, #3c5968 0%, #0e2735 100%);
	--g-section: linear-gradient(100deg, #3b5767 0%, #0e2735 80%);

	/* Типографика */
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--fs-xs: 14px;
	--fs-s: 16px;
	--fs-m: 18px;
	--fs-l: clamp(20px, 1.2vw + 12px, 24px);
	--fs-xl: clamp(22px, 1.6vw + 12px, 32px);
	--fs-xxl: clamp(32px, 4vw + 10px, 64px);

	/* Сетка */
	--gutter: 10px;
	--gap: 9px;
	--radius: 12px;
	--radius-s: 8px;
	--container: 1440px;
	--header-h: 88px;

	/* Движение */
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-panel: cubic-bezier(0.9, 0.03, 0, 0.96);
	--t: 0.3s;
}

@media (max-width: 767px) {
	:root {
		--header-h: 64px;
	}
}

/* 2. Сброс и база
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--c-page);
	color: var(--c-text);
	font-family: var(--font);
	font-size: var(--fs-s);
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.is-menu-open {
	overflow: hidden;
}

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

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
	margin: 0;
}

h1,
h2,
h3,
h4 {
	font-weight: 500;
	line-height: 1.1;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--t), opacity var(--t), background-color var(--t), border-color var(--t);
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

address {
	font-style: normal;
}

:focus-visible {
	outline: 2px solid #2c8ffc;
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 10px 16px;
	border-radius: var(--radius-s);
	background: var(--c-white);
}

.skip-link:focus {
	top: 16px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.icon {
	width: 1em;
	height: 1em;
	flex: none;
}

/* 3. Общие элементы
   ========================================================================== */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* Светло-серая скруглённая «плита» — основной строительный блок страниц */
.panel {
	border-radius: var(--radius);
	background: var(--c-panel);
	padding: 18px var(--gutter) var(--gutter);
}

.panel--dark {
	background: var(--g-banner);
	color: var(--c-white);
}

.panel--white {
	background: var(--c-white);
}

/* Блоки страницы идут сплошной колонкой с узким зазором */
.page-blocks {
	display: flex;
	flex-direction: column;
	gap: var(--gutter);
	max-width: var(--container);
	margin-inline: auto;
	padding: 0 var(--gutter);
}

.page-blocks > .is-full {
	margin-inline: calc(var(--gutter) * -1);
}

/* Видеошапки и баннер-разделитель на широком экране — во всю ширину окна,
   как в оригинале; текст в шапках остаётся по краю основной колонки. */
@media (min-width: 1441px) {
	.page-blocks > .is-full {
		margin-inline: calc(50% - 50vw);
	}

	.page-blocks > .hero,
	.page-blocks > .page-hero {
		padding-inline: calc(50vw - var(--container) / 2 + 20px);
	}

	.page-blocks > .hero .hero__scroll {
		right: calc(50vw - var(--container) / 2 + 20px);
	}
}

/* Плавный переход между страницами: при загрузке шторка цвета фона
   растворяется (как «красивая загрузка» The7 в оригинале), при уходе
   по ссылке — проявляется снова (main.js). Без JS шторка просто исчезает. */
.page-fade {
	position: fixed;
	inset: 0;
	z-index: 9900;
	background: var(--c-page);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	animation: page-fade-in 0.35s ease-out 0.2s backwards;
}

@keyframes page-fade-in {
	from {
		opacity: 1;
		visibility: visible;
	}
}

@media (prefers-reduced-motion: reduce) {
	.page-fade {
		display: none;
	}
}

/* Полоса прокрутки входит в 100vw — не даём странице уехать вбок */
body {
	overflow-x: clip;
}

/* Подпись над заголовком секции («О компании», «Деятельность») */
.eyebrow {
	color: var(--c-muted);
	font-size: var(--fs-s);
	font-weight: 700;
	line-height: 1;
}

.section-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 8px 0 26px;
	text-align: center;
}

.section-head--left {
	align-items: flex-start;
	text-align: left;
}

.section-title {
	max-width: 960px;
	color: var(--c-text);
	font-size: var(--fs-l);
	font-weight: 500;
	line-height: 1.1;
}

.section-title--xl {
	font-size: var(--fs-xl);
}

.panel--dark .section-title,
.panel--dark .eyebrow {
	color: var(--c-white);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 60px;
	padding: 18px 23px;
	border-radius: var(--radius-s);
	background: var(--c-accent);
	color: var(--c-white);
	font-size: var(--fs-s);
	font-weight: 700;
	line-height: 1;
	text-align: center;
	transition: background-color var(--t), transform var(--t);
}

.btn:hover {
	background: var(--c-accent-dark);
}

.btn--block {
	display: flex;
	width: 100%;
}

.rich-text p + p,
.rich-text p + ul,
.rich-text ul + p {
	margin-top: 0.8em;
}

.rich-text ul {
	padding: 0;
	list-style: none;
}

.rich-text li {
	position: relative;
	padding-left: 0.9em;
}

.rich-text li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.4em;
	height: 0.4em;
	border-radius: 50%;
	background: currentColor;
}

.socials {
	display: flex;
	gap: 8px;
}

.socials__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--c-steel);
	border-radius: 23%;
	color: var(--c-steel);
	font-size: 22px;
	transition: background-color 0.4s, color 0.4s;
}

.socials__link:hover {
	background: var(--c-steel);
	color: var(--c-white);
}

/* 4. Шапка
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 50;
	height: var(--header-h);
}

.site-header--overlay {
	position: absolute;
	inset: 0 0 auto;
	color: var(--c-white);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	height: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding: 0 20px;
}

.site-header__logo img {
	width: clamp(180px, 20vw, 280px);
	height: auto;
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	line-height: 1;
}

.menu-toggle .icon {
	width: 24px;
	height: 12px;
	transition: transform var(--t) var(--ease);
}

.menu-toggle:hover .icon {
	transform: scaleX(0.8);
}

/* 5. Меню
   ========================================================================== */

.menu-panel {
	position: fixed;
	inset: 0;
	z-index: 100;
}

.menu-panel[hidden] {
	display: none;
}

.menu-panel__backdrop {
	position: absolute;
	inset: 0;
}

.menu-panel__inner {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	gap: 99px;
	/* Содержимое — колонка до 1400px по центру, как в оригинале */
	padding: 164px max(50px, (100% - 1400px) / 2) 60px;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--g-dark);
	color: var(--c-white);
}

.menu-panel__close {
	position: absolute;
	top: 76px;
	right: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 37px;
	height: 35px;
	background: var(--c-accent-dark);
	font-size: 26px;
	transition: transform var(--t) var(--ease);
}

.menu-panel__close:hover {
	transform: rotate(90deg);
}

.menu-panel__nav {
	display: grid;
	grid-template-columns: 20.6% 30.5% 25.5% 1fr;
	gap: 28px 0;
	align-items: start;
}

.menu-panel__col {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 0 20px 0 0;
	list-style: none;
}

.menu-panel__title {
	color: #c0c0c0;
	font-size: 24px;
	font-weight: 500;
	line-height: 1;
}

.menu-panel__col--main .menu-panel__title,
a.menu-panel__title:hover {
	color: var(--c-white);
}

.menu-panel__list {
	display: flex;
	flex-direction: column;
	gap: 19px;
	padding: 0;
	list-style: none;
}

.menu-panel__link {
	display: block;
	width: fit-content;
	color: var(--c-white);
	font-size: 18px;
	line-height: 1.05;
}

.menu-panel__link:hover,
.menu-panel__link.is-current {
	color: var(--c-white);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.menu-panel__contacts {
	display: grid;
	grid-template-columns: 30% 1fr;
	align-items: start;
}

.menu-panel__contacts-title {
	grid-row: span 2;
	margin-left: -10px;
	color: var(--c-white);
	font-size: 70px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
}

.menu-panel__contacts-list {
	display: grid;
	grid-template-columns: 36fr 34fr;
	gap: 9px 0;
}

.menu-panel__contacts-list dt {
	margin-bottom: 16px;
	color: #c0c0c0;
	font-size: 14px;
	font-weight: 500;
}

.menu-panel__contacts-list dd {
	font-size: 18px;
	font-weight: 500;
}

.menu-panel__address {
	grid-column: 1 / -1;
}

.menu-panel__contacts .socials {
	margin-top: 20px;
}

.menu-panel .socials__link {
	border-color: rgba(255, 255, 255, 0.6);
	color: var(--c-white);
}

@media (max-width: 1024px) {
	.menu-panel__nav {
		grid-template-columns: 1fr 1fr;
	}

	.menu-panel__contacts {
		grid-template-columns: 1fr;
	}

	.menu-panel__contacts-title {
		grid-row: auto;
		margin: 0 0 24px;
		font-size: 40px;
	}
}

@media (max-width: 767px) {
	.menu-panel__inner {
		padding: 90px 24px 40px;
	}

	.menu-panel__close {
		top: 24px;
	}

	.menu-panel__nav {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.menu-panel__col,
	.menu-panel__list {
		gap: 12px;
	}

	.menu-panel__link {
		font-size: 16px;
		line-height: 1.25;
	}

	.menu-panel__contacts-list {
		grid-template-columns: 1fr;
	}
}

/* 6. Подвал
   ========================================================================== */

.site-footer {
	max-width: var(--container);
	margin: var(--gutter) auto 0;
	padding: 0 var(--gutter) var(--gutter);
}

.site-footer__panel {
	padding: 36px 26px 30px;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 338px 1fr auto;
	gap: 36px 20px;
}

.site-footer__col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.site-footer__text {
	font-size: var(--fs-m);
	font-weight: 500;
	line-height: 1.15;
}

.site-footer__text a:hover,
.footer-nav__link:hover {
	color: var(--c-steel);
}

.footer-nav {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 0;
	list-style: none;
	font-size: var(--fs-m);
	font-weight: 500;
	line-height: 1.1;
}

.site-footer__hours-label {
	margin-top: 16px;
}

.site-footer__slogan {
	width: 230px;
}

.site-footer__copy {
	max-width: 720px;
	margin-top: 60px;
	color: var(--c-muted);
	font-size: var(--fs-xs);
	line-height: 1.05;
}

@media (max-width: 1024px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__col--brand {
		grid-column: 1 / -1;
		grid-row: 1;
	}
}

/* На телефоне: навигация, контакты, часы работы, соцсети, слоган */
@media (max-width: 767px) {
	.site-footer__grid {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.site-footer__col--nav,
	.site-footer__col--contacts {
		display: contents;
	}

	.site-footer__col--contacts > * {
		order: 2;
	}

	.site-footer__col--contacts > .eyebrow {
		margin-top: 16px;
	}

	.site-footer__hours-label,
	.site-footer__hours {
		order: 3;
	}

	.site-footer__col--contacts > .socials {
		order: 4;
	}

	.site-footer__col--brand {
		order: 5;
		margin-top: 16px;
	}

	.site-footer__copy {
		margin-top: 36px;
	}
}

/* 7. Записи, архив, 404
   ========================================================================== */

.entry {
	max-width: 1180px;
	margin: 40px auto 0;
	padding: 0 var(--gutter);
	display: flex;
	flex-direction: column;
	gap: var(--gutter);
}

.entry__panel {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 28px;
	padding: 20px 18px 30px;
}

.entry__title {
	grid-column: 1 / -1;
	font-size: var(--fs-l);
	font-weight: 500;
	line-height: 1.2;
}

.entry__date {
	grid-column: 1 / -1;
	margin-top: -8px;
	color: var(--c-soft);
	font-size: var(--fs-xs);
}

.entry__media img {
	width: 100%;
	border-radius: var(--radius-s);
}

.entry__content {
	font-size: 16px;
	line-height: 1.6;
}

.entry__content > * + * {
	margin-top: 10px;
}

.entry__content img {
	border-radius: var(--radius-s);
}

.entry__content a {
	color: var(--c-steel);
	text-decoration: underline;
}

.entry__notice {
	padding: 9px;
	background: var(--c-white);
}

.entry__notice p {
	padding: 16px 20px;
	border: 1px solid var(--c-steel);
	border-radius: var(--radius-s);
	color: var(--c-ink);
	text-align: center;
	font-size: var(--fs-s);
	line-height: 1.5;
}

@media (max-width: 767px) {
	.entry {
		margin-top: 12px;
	}

	.entry__panel {
		grid-template-columns: 1fr;
	}
}

/* Карточки новостей (главная, архив) */

.news-grid {
	display: grid;
	gap: var(--gap);
}

.news-grid--mosaic {
	grid-template-columns: repeat(6, minmax(0, 1fr));
	grid-template-areas:
		"a b c c d d"
		"e e c c f f";
}

.news-grid--mosaic > :nth-child(1) { grid-area: a; }
.news-grid--mosaic > :nth-child(2) { grid-area: b; }
.news-grid--mosaic > :nth-child(3) { grid-area: c; }
.news-grid--mosaic > :nth-child(4) { grid-area: d; }
.news-grid--mosaic > :nth-child(5) { grid-area: e; }
.news-grid--mosaic > :nth-child(6) { grid-area: f; }

/* Архив новостей: плитка в три колонки */
.news-archive__title {
	margin-bottom: var(--gap);
	font-size: var(--fs-l);
	font-weight: 500;
}

.news-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 9px;
}

.news-archive .pagination {
	margin-top: var(--gap);
}

.news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 250px;
	overflow: hidden;
	border-radius: var(--radius-s);
	background: var(--c-white);
	color: var(--c-white);
	isolation: isolate;
}

.news-card__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.news-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	transition: opacity var(--t);
}

.news-card:hover .news-card__media::after {
	opacity: 0.5;
}

.news-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-card__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 20px;
}

.news-card__title {
	font-size: var(--fs-m);
	font-weight: 500;
	line-height: 1.4;
}

.news-card__date {
	font-size: 12px;
	font-weight: 700;
}

@media (max-width: 1024px) {
	.news-grid--mosaic {
		grid-template-columns: 1fr 1fr;
		grid-template-areas: "a b" "c c" "d e" "f f";
	}

	.news-archive__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.news-grid--mosaic,
	.news-archive__grid {
		grid-template-columns: 1fr;
		grid-template-areas: none;
	}

	.news-grid--mosaic > * {
		grid-area: auto !important;
	}

	/* На телефоне на главной — три самые свежие новости */
	.news-grid--mosaic > * {
		order: var(--rank, 0);
	}

	.news-grid--mosaic > :not(.is-recent) {
		display: none;
	}
}

.pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 20px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 45px;
	height: 45px;
	padding: 0 10px;
	border-radius: 50%;
	background: var(--c-page);
	color: var(--c-ink);
	font-weight: 600;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	background: var(--c-accent);
	color: var(--c-white);
}

.pagination .icon {
	font-size: 22px;
}

.not-found {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	min-height: 60vh;
	margin: 0 var(--gutter);
	text-align: center;
}

.not-found__code {
	font-size: clamp(96px, 18vw, 240px);
	font-weight: 700;
	line-height: 0.9;
	background: var(--g-dark);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* 8. Анимации появления (включаются скриптом, без JS всё видно сразу)
   ========================================================================== */

.js [data-reveal] {
	opacity: 0;
}

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

	.js [data-reveal] {
		opacity: 1;
	}
}

/* Иконка-лепестки (см. sipm_petals_icon) */
.petals {
	display: block;
	width: 80px;
	height: 80px;
	overflow: visible;
}

.petals ellipse {
	fill: none;
	stroke: #3d5a6a;
	stroke-width: 2;
}

/* Текст внутри секций: крупный вводный абзац и картинки */
.text-lead {
	font-size: var(--fs-l);
	font-weight: 500;
	line-height: 1.1;
}

.page-blocks .wp-block-image {
	margin: 0;
}

/* Круглая кнопка-стрелка (карусели и слайдеры) */
.round-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	background: var(--c-page);
	color: var(--c-ink);
	font-size: 26px;
	transition: background-color var(--t), color var(--t);
}

.round-btn:hover {
	background: #000;
	color: var(--c-white);
}

/* Плашка «Узнать подробнее — скоро» */
.soon-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 12px;
	min-height: 74px;
	padding: 15px;
	border-radius: var(--radius-s);
	background: #b7c1ca;
	color: var(--c-white);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.soon-bar--dark {
	min-height: 60px;
	background: #3d5a6a;
	font-size: var(--fs-s);
	font-weight: 500;
}

.soon-bar--small {
	min-height: 60px;
	font-size: var(--fs-s);
	font-weight: 500;
}

.soon-bar span {
	padding: 2px 14px;
	border-radius: 30px;
	background: var(--c-white);
	color: #060606;
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
}

.soon-bar--small span {
	padding: 1px 10px;
	font-size: 12px;
	text-transform: none;
}

@media (max-width: 767px) {
	.soon-bar:not(.soon-bar--small) {
		font-size: 18px;
	}
}

/* Приглушённый текст (на тёмном фоне цвет задаёт секция) */
.text-muted {
	color: rgb(6 6 6 / 0.4);
}

/* Абзац покрупнее обычного, но мельче вводного (20px) */
.text-md {
	font-size: clamp(16px, 0.6vw + 12px, 20px);
	font-weight: 500;
	line-height: 1.2;
}

/* Огромная серая надпись во всю ширину (МОБИЛЬНЫЕ.СТАЦИОНАРНЫЕ…) */
.text-huge {
	color: #bdc2cb;
	font-size: clamp(12px, 3.4vw, 60px);
	font-weight: 600;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Крупная цифра, растворяющаяся к правому краю («>100 патентов») */
.text-stat {
	font-size: 76px;
	font-weight: 500;
	line-height: 1.1;
	-webkit-mask-image: linear-gradient(to right, #000, transparent 80%);
	mask-image: linear-gradient(to right, #000, transparent 80%);
}

@media (max-width: 1366px) { .text-stat { font-size: 65px; } }
@media (max-width: 1200px) { .text-stat { font-size: 55px; } }
@media (max-width: 1024px) { .text-stat { font-size: 45px; } }
@media (max-width: 880px) { .text-stat { font-size: 40px; } }
@media (max-width: 767px) { .text-stat { font-size: 32px; } }

/* Плашка-«таблетка» с коротким названием (ГОСТы в слайдере) */
.pill {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 55px;
	padding: 10px 20px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-s);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.has-text-align-center {
	text-align: center;
}

.page-blocks .wp-block-image img {
	display: block;
	width: 100%;
	border-radius: var(--radius-s);
}

/* Просмотр фото на весь экран (main.js → initLightbox) */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 70px;
	background: rgba(6, 12, 18, 0.92);
	touch-action: pan-y;
}

.lightbox[hidden] {
	display: none;
}

.lightbox__figure {
	margin: 0;
	max-width: 100%;
	max-height: 100%;
}

.lightbox__img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 120px);
	border-radius: var(--radius-s);
	object-fit: contain;
	user-select: none;
}

.lightbox__close,
.lightbox__nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12) center / 22px no-repeat;
	transition: background-color var(--t);
}

.lightbox__close:hover,
.lightbox__nav:hover {
	background-color: rgba(255, 255, 255, 0.25);
}

.lightbox__close {
	top: 16px;
	right: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M5 5l14 14M19 5L5 19'/%3E%3C/svg%3E");
}

.lightbox__nav {
	top: 50%;
	margin-top: -24px;
}

.lightbox__nav--prev {
	left: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M15 4l-8 8 8 8'/%3E%3C/svg%3E");
}

.lightbox__nav--next {
	right: 12px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M9 4l8 8-8 8'/%3E%3C/svg%3E");
}

.lightbox--single .lightbox__nav {
	display: none;
}

.lightbox__count {
	position: absolute;
	bottom: 18px;
	left: 0;
	right: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: var(--fs-xs);
	text-align: center;
}

body.is-lightbox-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.lightbox {
		padding: 60px 10px;
	}

	.lightbox__nav {
		top: auto;
		bottom: 10px;
		margin-top: 0;
	}
}
