/* =========================================================
   Ракета КБ — основной стиль темы
   Палитра снята с фирменного логотипа АО «КБ Ракета»: синий #002453 + красный #AC162C.
   ========================================================= */

/* Заголовки — Exo 2 (вариативный, кириллица), текст — PT Sans. Оба лежат в теме,
   внешние CDN не подключаем: сайт должен открываться в закрытом контуре. */
@font-face {
	font-family: 'Exo 2';
	src: url('../fonts/exo2-var.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+0000-00FF, U+2000-206F, U+2212;
}
@font-face {
	font-family: 'PT Sans';
	src: url('../fonts/ptsans-400.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'PT Sans';
	src: url('../fonts/ptsans-700.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--c-accent: #ac162c;
	--c-accent-dark: #8d1223;
	--c-deep: #002453;
	--c-deep-dark: #001a3d;
	--c-ink: #10202c;
	--c-ink-soft: #46606f;
	--c-muted: #7d8f9b;
	--c-line: #dde6ec;
	--c-bg: #ffffff;
	--c-bg-soft: #f4f8fa;
	--c-bg-deep: #041730;
	--c-ok: #1f9d55;

	--font-head: 'Exo 2', 'Segoe UI Semibold', 'Trebuchet MS', sans-serif;
	--font-body: 'PT Sans', 'Segoe UI', Arial, sans-serif;

	--wrap: 1240px;
	--gap: 28px;
	--radius: 4px;
	--shadow: 0 12px 32px rgba(16, 32, 44, .09);
	--shadow-sm: 0 4px 14px rgba(16, 32, 44, .07);
	--tr: .22s ease;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.62;
	color: var(--c-ink);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--c-deep); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--c-accent); }

h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: .01em;
	margin: 0 0 .5em;
	color: var(--c-ink);
}

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

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

.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 999;
	width: auto; height: auto; clip: auto;
	background: #fff; padding: 10px 16px; box-shadow: var(--shadow);
}

.icon { width: 20px; height: 20px; flex: none; }
.icon--lg { width: 34px; height: 34px; }
.icon--xl { width: 64px; height: 64px; }

/* ---------- Кнопки ---------- */

.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 13px 24px;
	font-family: var(--font-head);
	font-size: 17px; font-weight: 600; letter-spacing: .03em;
	text-transform: uppercase;
	border: 1px solid transparent; border-radius: var(--radius);
	cursor: pointer;
	transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr);
}
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--c-line); color: var(--c-deep); background: transparent; }
.btn--ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }
.btn--sm { padding: 9px 16px; font-size: 15px; }

/* ---------- Шапка ---------- */

.site-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 1px 0 var(--c-line); }
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.topbar { background: var(--c-deep); color: rgba(255, 255, 255, .82); font-size: 14px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; }
.topbar__slogan { margin: 0; letter-spacing: .02em; }
.topbar__contacts { display: flex; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: rgba(255, 255, 255, .82); }
.topbar__item:hover { color: #fff; }
.topbar .icon { width: 16px; height: 16px; }

.header-main__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 78px; }
.header-nav { border-top: 1px solid var(--c-line); background: #fff; }
.header-nav > .container { display: flex; }

.brand__text { display: inline-flex; align-items: center; gap: 12px; color: var(--c-ink); }
.brand__mark { color: var(--c-accent); width: 40px; height: 40px; flex: none; }
.brand__mark svg { width: 100%; height: 100%; }
.brand__name { font-family: var(--font-head); font-size: 26px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.custom-logo-link { display: block; }
.custom-logo { max-height: 56px; width: auto; }

.nav { width: 100%; }
.menu { display: flex; align-items: center; justify-content: space-between; gap: 2px; margin: 0; padding: 0; list-style: none; }
.menu > li { position: relative; }
.menu-link {
	display: inline-block; padding: 15px 10px;
	font-family: var(--font-head); font-size: 16px; font-weight: 600;
	color: var(--c-ink); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
}
.menu-link:hover,
.menu .current-menu-item > .menu-link,
.menu .current-menu-parent > .menu-link { color: var(--c-accent); }

.submenu {
	position: absolute; top: 100%; left: 0; min-width: 290px;
	margin: 0; padding: 10px 0; list-style: none;
	background: #fff; border: 1px solid var(--c-line); border-top: 2px solid var(--c-accent);
	box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity var(--tr), transform var(--tr), visibility var(--tr);
	z-index: 20;
}
.menu > li:hover > .submenu,
.menu > li.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu .menu-link { display: block; padding: 9px 20px; font-size: 16px; text-transform: none; letter-spacing: 0; font-weight: 600; }
.submenu .menu-link:hover { background: var(--c-bg-soft); }

.submenu-toggle { display: none; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--c-ink); }
.header-phone:hover { color: var(--c-accent); }
.header-phone .icon { color: var(--c-accent); }

.burger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--c-line); border-radius: var(--radius); cursor: pointer; }
.burger span { width: 20px; height: 2px; background: var(--c-ink); transition: transform var(--tr), opacity var(--tr); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile-foot { display: none; }

/* ---------- Первый экран ---------- */

.hero {
	position: relative;
	background: linear-gradient(118deg, #001936 0%, #002453 55%, #123a6d 100%);
	color: #fff;
	overflow: hidden;
}
.hero--photo::after {
	content: ''; position: absolute; inset: 0;
	background-image: var(--hero-bg); background-size: cover; background-position: center;
	opacity: .22; mix-blend-mode: luminosity;
}
.hero__grid-lines {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(circle at 75% 40%, #000 10%, transparent 72%);
}
.hero__in { position: relative; z-index: 2; padding: 78px 24px 66px; display: grid; gap: 46px; }
.hero__content { max-width: 780px; }
.hero__badge {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0 0 22px; padding: 8px 16px;
	font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); border-radius: 100px;
}
.hero__badge .icon { color: var(--c-accent); }
.hero__title { font-size: clamp(34px, 5vw, 58px); color: #fff; margin-bottom: 18px; }
.hero__lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, .86); max-width: 680px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__actions .btn--ghost { border-color: rgba(255, 255, 255, .4); color: #fff; }
.hero__actions .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }

.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 26px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .18); }
.hero__fact-num { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 700; color: #fff; }
.hero__fact-txt { display: block; font-size: 15px; color: rgba(255, 255, 255, .72); }

/* ---------- Секции ---------- */

.section { padding: 74px 0; }
.section--services { background: var(--c-bg-soft); }
.section--stats { background: var(--c-deep); color: #fff; }
.section--scheme { background: var(--c-bg-soft); }
.section--partners { padding-top: 0; }

.section__head { max-width: 760px; margin-bottom: 40px; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__head--light .section__title,
.section--stats .section__title { color: #fff; }
.section__head--light .section__lead { color: rgba(255, 255, 255, .75); }

.section__title { font-size: clamp(26px, 3.2vw, 40px); position: relative; padding-left: 18px; }
.section__title::before { content: ''; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px; background: var(--c-accent); }
.section__title--sm { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 26px; }
.section__lead { color: var(--c-ink-soft); font-size: 18px; margin: 0; }

.block-title { font-size: 24px; margin: 38px 0 16px; }

/* ---------- Сетки и карточки ---------- */

.grid { display: grid; gap: var(--gap); }
.grid--services { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.card {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
	transition: box-shadow var(--tr), transform var(--tr), border-color var(--tr);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }

.card--service { padding: 30px 28px 26px; }
.card__icon { color: var(--c-accent); margin-bottom: 16px; }
.card__title { font-size: 22px; margin-bottom: 8px; }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--c-accent); }
.card__sub { color: var(--c-ink-soft); font-size: 16px; margin: 0 0 14px; }
.card__list { margin: 0 0 18px; padding: 0; list-style: none; border-top: 1px solid var(--c-line); }
.card__list li { border-bottom: 1px solid var(--c-line); }
.card__list a { display: block; padding: 9px 0; font-size: 16px; color: var(--c-ink-soft); }
.card__list a:hover { color: var(--c-accent); }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; font-size: 15px; letter-spacing: .03em; color: var(--c-accent); }
.card__more .icon { width: 18px; height: 18px; transition: transform var(--tr); }
.card__more:hover .icon { transform: translateX(4px); }

.card--product .card__media,
.card--post .card__media { display: block; aspect-ratio: 4 / 3; background: var(--c-bg-soft); overflow: hidden; }
.card--product .card__media img,
.card--post .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__media-stub { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--c-muted); background: var(--c-bg-soft); }
.card__body { padding: 20px 22px 24px; }
.card__date { display: block; font-size: 14px; color: var(--c-muted); margin-bottom: 8px; }

.badge { display: inline-block; margin-bottom: 10px; padding: 4px 10px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--c-deep); background: rgba(172, 22, 44, .10); border-radius: 100px; }

/* ---------- Цифры ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 30px; margin: 0; padding: 0; list-style: none; }
.stats__item { padding: 26px 24px; background: rgba(255, 255, 255, .07); border-left: 3px solid var(--c-accent); }
.stats__num { display: block; font-family: var(--font-head); font-size: 42px; font-weight: 700; line-height: 1; margin-bottom: 10px; }
.stats__txt { color: rgba(255, 255, 255, .76); font-size: 16px; }

/* ---------- Цена отказа ---------- */

.value-scale { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.value-scale__item { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: 26px; align-items: center; }
.value-scale__bar { position: relative; height: 54px; background: var(--c-bg-soft); border-radius: var(--radius); overflow: hidden; }
.value-scale__bar::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, var(--c-deep), var(--c-accent)); }
.value-scale__mult { position: absolute; inset: 0; display: flex; align-items: center; padding-left: 18px; font-family: var(--font-head); font-size: 22px; font-weight: 700; color: #fff; }
.value-scale__title { font-size: 20px; margin-bottom: 4px; }
.value-scale__txt { margin: 0; color: var(--c-ink-soft); font-size: 16px; }

/* ---------- Схема работы ---------- */

.scheme { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 26px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.scheme__step { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.scheme__num { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 700; color: rgba(172, 22, 44, .28); margin-bottom: 10px; }
.scheme__title { font-size: 19px; margin-bottom: 6px; }
.scheme__txt { margin: 0; font-size: 15px; color: var(--c-ink-soft); }

/* ---------- Сертификаты ---------- */

.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.certs__item { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: 20px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); }
.certs__media { background: var(--c-bg-soft); aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.certs__media img { width: 100%; height: 100%; object-fit: cover; }
.certs__stub { color: var(--c-muted); }
.certs__title { font-size: 18px; margin-bottom: 10px; }
.certs__meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 15px; }
.certs__meta dt { color: var(--c-muted); }
.certs__meta dd { margin: 0; }
.certs__link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--c-accent); }

/* ---------- Партнёры ---------- */

.partners { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 0; list-style: none; }
.partners__item {
	flex: 1 1 190px; min-height: 92px;
	display: flex; align-items: center; justify-content: center; text-align: center;
	padding: 16px 20px; background: var(--c-bg-soft); border-radius: var(--radius);
	color: var(--c-ink-soft); font-family: var(--font-head); font-size: 17px; font-weight: 600;
	filter: grayscale(1); opacity: .8; transition: filter var(--tr), opacity var(--tr);
}
.partners__item:hover { filter: none; opacity: 1; }

/* ---------- Призыв и формы ---------- */

.section--cta { background: linear-gradient(118deg, #001936, #002453); color: #fff; }
.cta { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.cta__title { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.cta__lead { color: rgba(255, 255, 255, .8); font-size: 18px; }
.cta__contacts { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.cta__contacts li { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 21px; font-weight: 600; }
.cta__contacts a { color: #fff; }
.cta__contacts a:hover { color: var(--c-accent); }
.cta__contacts .icon { color: var(--c-accent); }
.cta__form { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--c-ink); }

.lead-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: block; }
.field--wide { grid-column: 1 / -1; }
.field__label { display: block; margin-bottom: 6px; font-size: 15px; color: var(--c-ink-soft); }
.field__label i { color: #d33; font-style: normal; }
.field input,
.field textarea {
	width: 100%; padding: 12px 14px;
	font-family: inherit; font-size: 16px; color: var(--c-ink);
	background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: var(--radius);
	transition: border-color var(--tr), background var(--tr);
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--c-accent); background: #fff; }
.field.has-error input,
.field.has-error textarea { border-color: #d33; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; gap: 10px; margin: 16px 0 0; font-size: 14px; color: var(--c-ink-soft); }
.consent input { margin-top: 3px; }

.lead-form__foot { display: flex; align-items: center; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.lead-form__note { margin: 0; font-size: 14px; color: var(--c-muted); }
.lead-form__status { margin: 14px 0 0; font-size: 15px; }
.lead-form__status.is-ok { color: var(--c-ok); }
.lead-form__status.is-error { color: #d33; }

/* ---------- Внутренние страницы ---------- */

.page-head { position: relative; padding: 40px 0 34px; background: var(--c-bg-soft); border-bottom: 1px solid var(--c-line); overflow: hidden; }
.page-head__lines { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(0, 36, 83, .10) 1px, transparent 1px); background-size: 48px 48px; }
.page-head .container { position: relative; z-index: 2; }
.page-head__title { font-size: clamp(28px, 4vw, 44px); margin: 10px 0 0; }
.page-head__sub { margin: 12px 0 0; font-size: 18px; color: var(--c-ink-soft); max-width: 780px; }

.crumbs__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--c-muted); }
.crumbs__item + .crumbs__item::before { content: '/'; margin-right: 8px; color: var(--c-line); }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-accent); }

.layout-with-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 46px; align-items: start; }

.prose { font-size: 17px; }
.prose h2 { font-size: 28px; margin-top: 1.4em; }
.prose h3 { font-size: 22px; margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; border-left: 3px solid var(--c-accent); background: var(--c-bg-soft); }

.page-media { margin: 0 0 28px; }
.page-media img { border-radius: var(--radius); width: 100%; }

.facts-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 26px; padding: 0; list-style: none; }
.facts-row__item { padding: 14px 20px; background: var(--c-bg-soft); border-left: 3px solid var(--c-accent); border-radius: var(--radius); }
.facts-row__label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); }
.facts-row__value { font-family: var(--font-head); font-size: 20px; font-weight: 700; }

.params { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 16px; }
.params th,
.params td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.params th { width: 42%; font-weight: 400; color: var(--c-ink-soft); background: var(--c-bg-soft); }

.gost-list { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.gost-list li { display: flex; gap: 10px; align-items: flex-start; }
.gost-list .icon { color: var(--c-accent); margin-top: 3px; }

.sidebar { position: sticky; top: 130px; display: grid; gap: 24px; }
.side-nav { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px 22px; }
.side-nav__title { font-size: 18px; margin-bottom: 12px; }
.side-nav ul { margin: 0; padding: 0; list-style: none; }
.side-nav li { border-top: 1px solid var(--c-line); }
.side-nav a { display: block; padding: 9px 0; font-size: 16px; color: var(--c-ink-soft); }
.side-nav li.is-current a { color: var(--c-accent); font-weight: 700; }

.side-cta { padding: 26px 24px; background: var(--c-bg-deep); color: #fff; border-radius: var(--radius); }
.side-cta__title { color: #fff; font-size: 20px; }
.side-cta__txt { color: rgba(255, 255, 255, .75); font-size: 15px; }
.side-cta__phone { display: block; margin-top: 14px; font-family: var(--font-head); font-size: 21px; font-weight: 700; color: #fff; }

.widget { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 20px 22px; }
.widget__title { font-size: 18px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters__item { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--c-line); border-radius: 100px; font-size: 15px; color: var(--c-ink-soft); }
.filters__item:hover,
.filters__item.is-active { border-color: var(--c-accent); color: var(--c-accent); }
.filters__count { font-size: 13px; color: var(--c-muted); }

.product { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 46px; align-items: start; }
.product__media { background: var(--c-bg-soft); border-radius: var(--radius); overflow: hidden; min-height: 260px; display: flex; align-items: center; justify-content: center; }
.product__analog { font-size: 16px; color: var(--c-ink-soft); }
.product__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--c-accent); margin-top: 3px; }
.contact-list--lg { gap: 20px; font-size: 18px; }
.contact-list__label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); }
.requisites { margin-top: 34px; }

.search-form { display: flex; gap: 10px; max-width: 560px; margin-bottom: 24px; }
.search-form__input { flex: 1; padding: 12px 14px; font-size: 16px; font-family: inherit; border: 1px solid var(--c-line); border-radius: var(--radius); background: var(--c-bg-soft); }
.search-form__input:focus { outline: none; border-color: var(--c-accent); background: #fff; }

.empty { color: var(--c-muted); font-size: 18px; }
.e404-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-ink-soft); }
.page-numbers.current { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.page-numbers:hover { border-color: var(--c-accent); color: var(--c-accent); }
.page-numbers.current:hover { color: #fff; }

.post-date { color: var(--c-muted); font-size: 15px; }

/* ---------- Подвал ---------- */

.site-footer { background: var(--c-bg-deep); color: rgba(255, 255, 255, .72); padding-top: 60px; margin-top: 0; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer__title { color: #fff; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.brand__text--footer .brand__name { color: #fff; font-size: 24px; }
.footer__desc { font-size: 16px; margin: 14px 0 20px; }
.footer__menu { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer__menu a,
.site-footer .contact-list a { color: rgba(255, 255, 255, .72); }
.footer__menu a:hover,
.site-footer .contact-list a:hover { color: var(--c-accent); }
.footer__req { font-size: 15px; line-height: 1.7; }
.site-footer .btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.site-footer .btn--ghost:hover { border-color: var(--c-accent); color: var(--c-accent); }

.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.footer__copy { margin: 0; }
.footer__legal { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.footer__legal-link { color: rgba(255, 255, 255, .72); }
.footer__legal-link:hover { color: var(--c-accent); }

/* ---------- Модалка и кнопка наверх ---------- */

.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10, 26, 38, .72); }
.modal__box { position: relative; width: min(720px, 100%); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.modal__close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; font-size: 28px; line-height: 1; background: none; border: none; color: var(--c-muted); cursor: pointer; }
.modal__close:hover { color: var(--c-ink); }
.modal__title { font-size: 26px; }
.modal__lead { color: var(--c-ink-soft); }

.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border: none; border-radius: 50%; background: var(--c-deep); color: #fff; font-size: 20px; cursor: pointer; box-shadow: var(--shadow); transition: background var(--tr); }
.to-top:hover { background: var(--c-accent); }

/* ---------- Адаптив ---------- */

@media (max-width: 1340px) {
	.menu-link { padding: 15px 7px; font-size: 15px; }
	.header-main__in { gap: 18px; }
}

@media (max-width: 1100px) {
	.footer__top { grid-template-columns: 1fr 1fr; }
	.layout-with-side { grid-template-columns: 1fr; }
	.sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
	.product { grid-template-columns: 1fr; }
	.cta { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
	.topbar__slogan { display: none; }
	.header-nav { display: none; }
	.header-main__in { min-height: 68px; gap: 14px; }
	.burger { display: flex; }
	.header-phone span { display: none; }
	.header-actions .btn { display: none; }

	.header-nav { display: block; border: none; }
	.header-nav > .container { padding: 0; }
	.nav {
		position: fixed; inset: 106px 0 0 auto; width: min(360px, 88vw);
		background: #fff; padding: 20px; overflow-y: auto;
		transform: translateX(105%); transition: transform var(--tr); box-shadow: var(--shadow); z-index: 70;
	}
	.nav.is-open { transform: none; }
	.menu { flex-direction: column; align-items: stretch; gap: 0; }
	.menu > li { border-bottom: 1px solid var(--c-line); }
	.menu-link { padding: 13px 0; }
	.submenu {
		position: static; opacity: 1; visibility: visible; transform: none;
		border: none; box-shadow: none; padding: 0 0 10px 14px; display: none; min-width: 0;
	}
	.menu > li.is-open > .submenu { display: block; }
	.submenu-toggle {
		display: flex; align-items: center; justify-content: center;
		position: absolute; top: 4px; right: 0; width: 44px; height: 44px;
		background: none; border: none; cursor: pointer;
	}
	.submenu-toggle .chev { width: 9px; height: 9px; border-right: 2px solid var(--c-ink-soft); border-bottom: 2px solid var(--c-ink-soft); transform: rotate(45deg) translateY(-2px); transition: transform var(--tr); }
	.submenu-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg) translateY(-2px); }
	.nav__mobile-foot { display: block; margin-top: 18px; }
	.nav__mobile-foot .btn { width: 100%; justify-content: center; }

	.hero__in { padding: 54px 24px 46px; }
	.hero__facts { grid-template-columns: 1fr; gap: 18px; }
	.section { padding: 54px 0; }
	.value-scale__item { grid-template-columns: 1fr; gap: 12px; }
	.contacts { grid-template-columns: 1fr; }
	.footer__top { grid-template-columns: 1fr; gap: 30px; }
	.certs__item { grid-template-columns: 96px 1fr; }
}

@media (max-width: 560px) {
	body { font-size: 16px; }
	.lead-form__grid { grid-template-columns: 1fr; }
	.cta__form { padding: 22px; }
	.modal__box { padding: 24px 20px; }
	.card--service { padding: 24px 20px; }
}

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

@media print {
	.site-header, .site-footer, .section--cta, .to-top, .modal { display: none !important; }
	body { font-size: 12pt; }
}

/* ---------- Фирменный логотип ---------- */

.brand__logo { display: inline-flex; align-items: center; }
.brand__logo img { height: 52px; width: auto; }
.brand__logo--footer img { height: 46px; filter: brightness(0) invert(1); opacity: .92; }

@media (max-width: 560px) {
	.brand__logo img { height: 40px; }
}

/* ---------- Переносы длинных слов ---------- */

/* «Электротермотренировки» и подобные термины не должны рвать карточку. */
/* Заголовки: сначала пробуем перенос по слогам с дефисом (нужен lang="ru" в <html>),
   и только если слово всё равно не влезает — разрываем. */
.card__title,
.certs__title,
.section__title,
.page-head__title,
.hero__title,
.scheme__title,
.value-scale__title,
.block-title,
.side-cta__title,
.footer__title {
	hyphens: auto;
	-webkit-hyphens: auto;
	overflow-wrap: break-word;
}

/* Тексты и таблицы: рвём в любом месте, лишь бы не вылезало за контейнер. */
.card__sub,
.params th,
.params td,
.side-nav a,
.card__list a,
.menu-link,
.contact-list,
.footer__req,
.prose {
	overflow-wrap: anywhere;
	hyphens: auto;
	-webkit-hyphens: auto;
}

.card,
.certs__item,
.scheme__step,
.stats__item { min-width: 0; }

/* ---------- Экраны уже 420px (iPhone SE, старые Android) ---------- */

@media (max-width: 420px) {
	.container { padding: 0 16px; }

	/* Карточка документа: миниатюра над текстом, а не рядом. */
	.certs__item { grid-template-columns: 1fr; }
	.certs__media { aspect-ratio: 4 / 3; max-height: 200px; }
	.certs__meta { grid-template-columns: 1fr; gap: 2px 0; }
	.certs__meta dt { font-size: 13px; }

	/* Таблица характеристик — парами «параметр / значение» в столбик. */
	.params,
	.params tbody,
	.params tr,
	.params th,
	.params td { display: block; width: auto; }
	.params tr { border-bottom: 1px solid var(--c-line); padding: 10px 0; }
	.params th { background: none; padding: 0 0 2px; font-size: 14px; }
	.params td { padding: 0; }
	.params th,
	.params td { border: none; }

	.hero__title { font-size: clamp(26px, 8vw, 34px); }
	.section__title { padding-left: 12px; }
	.facts-row__item { width: 100%; }
	.lead-form__foot { flex-direction: column; align-items: flex-start; gap: 10px; }
	.lead-form__foot .btn { width: 100%; justify-content: center; }
	.footer__bottom { padding: 22px 16px; }
	.to-top { right: 12px; bottom: 12px; }
}

/* Карточка изделия: заголовок мельче основного, чтобы длинные технические термины
   («электротермотренировки») помещались в строку без разрыва посреди слова. */
.card--product .card__title { font-size: 20px; line-height: 1.22; }
.card--product .card__body { padding: 18px 20px 22px; }

/* На телефоне в верхней плашке оставляем только почту: режим работы там занимал две
   строки и раздувал шапку. Он никуда не делся — есть в подвале и на странице контактов. */
@media (max-width: 600px) {
	.topbar__contacts .topbar__item:first-child { display: none; }
	.topbar__in { justify-content: flex-end; }
	.topbar { font-size: 13px; }
}

/* ---------- Карточка направления с фотографией ---------- */

.card--service.card--photo { padding: 0; }
.card--photo .card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-bg-soft); }
.card--photo .card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card--photo:hover .card__media img { transform: scale(1.04); }
.card--photo .card__badge {
	position: absolute; left: 16px; bottom: 16px;
	display: flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: var(--radius);
	background: rgba(0, 36, 83, .86); color: #fff; backdrop-filter: blur(2px);
}
.card--photo .card__title,
.card--photo .card__sub,
.card--photo .card__list,
.card--photo .card__more { margin-left: 28px; margin-right: 28px; }
.card--photo .card__title { margin-top: 22px; }
.card--photo .card__more { margin-bottom: 24px; }
.card--photo .card__list { border-top: 1px solid var(--c-line); }
