/* Main theme stylesheet — static markup, later mapped to WP templates */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--rer-font-body);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
	line-height: 1.65;
	color: var(--rer-text);
	background: var(--rer-base);
	text-rendering: optimizeLegibility;
}

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

a {
	color: var(--rer-burgundy);
	text-decoration: none;
	text-underline-offset: 0.18em;
	transition: color 0.2s var(--rer-ease);
}

a:hover {
	color: var(--rer-red);
}

:focus-visible {
	outline: 2px solid var(--rer-red);
	outline-offset: 3px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: none;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--rer-font-heading);
	color: var(--rer-navy);
	line-height: 1.15;
	margin: 0 0 0.6em;
	text-wrap: pretty;
	font-weight: 700;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); }

p { margin: 0 0 1em; text-wrap: pretty; }

ul, ol { margin: 0; padding: 0; }

button, input, textarea, select {
	font: inherit;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -4rem;
	z-index: 1000;
	background: var(--rer-red);
	color: #fff;
	padding: 0.6rem 1rem;
	border-radius: var(--rer-radius-sm);
}

.skip-link:focus {
	top: 1rem;
	color: #fff;
}

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

.section {
	padding-block: clamp(2rem, 3.5vw, 3.75rem);
}

.section--tight {
	padding-block: clamp(1.25rem, 2.5vw, 2rem);
}

.section--alt { background: var(--rer-base-alt); }
.section--dark {
	background: var(--rer-grad);
	color: #fff;
}

.section--dark h2,
.section--dark h3 { color: #fff; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--rer-font-heading);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rer-burgundy);
	margin-bottom: 0.85rem;
}

.eyebrow::before {
	content: "";
	width: 1.75rem;
	height: 2px;
	background: currentColor;
}

.section-head {
	max-width: 42rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head--row {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 1.5rem;
	max-width: none;
}

.section-head--row h2 {
	margin-bottom: 0;
}

.lead {
	font-size: 1.125rem;
	color: var(--rer-muted);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 3rem;
	padding: 0.7rem 1.4rem;
	border-radius: var(--rer-radius-sm);
	border: 1px solid transparent;
	font-family: var(--rer-font-heading);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: 0.2s var(--rer-ease);
	text-decoration: none;
	white-space: nowrap;
}

.btn--primary {
	background: var(--rer-burgundy);
	color: #fff;
	box-shadow: 0 8px 20px rgba(128, 19, 88, 0.28);
}

.btn--primary:hover {
	background: var(--rer-burgundy-dark);
	color: #fff;
	transform: translateY(-1px);
}

.btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
	background: #fff;
	color: var(--rer-navy);
}

.btn--outline {
	background: transparent;
	color: var(--rer-navy);
	border-color: var(--rer-navy);
}

.btn--outline:hover {
	background: var(--rer-navy);
	color: #fff;
}

.btn--burgundy {
	background: var(--rer-burgundy);
	color: #fff;
}

.btn--burgundy:hover {
	background: var(--rer-burgundy-dark);
	color: #fff;
}

.btn--soft {
	background: #fff;
	color: var(--rer-burgundy);
	border-color: var(--rer-burgundy);
	box-shadow: none;
}

.btn--soft:hover {
	background: var(--rer-burgundy);
	color: #fff;
	border-color: var(--rer-burgundy);
}

.btn--icon {
	width: 2.75rem;
	min-height: 2.75rem;
	padding: 0;
	border-radius: 50%;
	border: 1px solid var(--rer-border);
	background: #fff;
	color: var(--rer-navy);
}

.icon {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid transparent;
	transition: box-shadow 0.25s var(--rer-ease), border-color 0.25s;
}

.site-header.is-scrolled {
	border-bottom-color: var(--rer-border);
	box-shadow: 0 8px 30px rgba(21, 24, 33, 0.06);
}

.site-header__contacts { display: flex; gap: 1.25rem; flex-wrap: wrap; }

.site-header__phone {
	font-family: var(--rer-font-heading);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--rer-navy);
	white-space: nowrap;
}
.site-header__phone:hover { color: var(--rer-burgundy); }

main a[href^="tel:"],
main a[href^="mailto:"] {
	font-family: var(--rer-font-heading);
	font-weight: 700;
	color: #000;
	letter-spacing: 0.01em;
}

main a[href^="tel:"]:hover,
main a[href^="mailto:"]:hover {
	color: #000;
}

.site-header__main-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--rer-header);
}

.logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
}

.logo img {
	width: auto;
	height: 52px;
	max-width: min(240px, 58vw);
}

.site-footer .logo {
	display: inline-flex;
	margin-bottom: 1rem;
}

.site-footer .logo img {
	height: 48px;
	max-width: 220px;
}

.nav {
	margin-left: auto;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	list-style: none;
}

.nav__link {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.7rem 0.95rem;
	color: var(--rer-navy);
	font-family: var(--rer-font-heading);
	font-size: 1.05rem;
	font-weight: 600;
	border-radius: 8px;
}

.nav__link:hover,
.nav__item.is-current > .nav__link,
.nav__item.current-menu-item > .nav__link,
.nav__item.current-menu-ancestor > .nav__link,
.nav__item.current-menu-parent > .nav__link {
	color: var(--rer-burgundy);
	background: rgba(128, 19, 88, 0.06);
}

.nav__item { position: relative; }

.nav__sub {
	position: absolute;
	top: calc(100% - 0.25rem);
	left: 0;
	z-index: 60;
	min-width: 16rem;
	padding: 0.6rem;
	list-style: none;
	background: #fff;
	border-radius: var(--rer-radius);
	box-shadow: var(--rer-shadow-lg);
	border: 1px solid var(--rer-border);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: 0.2s var(--rer-ease);
}

.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.nav__sub a {
	display: block;
	padding: 0.55rem 0.75rem;
	border-radius: 6px;
	color: var(--rer-text);
	font-family: var(--rer-font-heading);
	font-size: 0.95rem;
	font-weight: 500;
}

.nav__sub a:hover {
	background: var(--rer-base-alt);
	color: var(--rer-burgundy);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-left: 0.5rem;
}

.nav-toggle {
	display: none;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid var(--rer-border);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
	display: block;
	width: 1.1rem;
	height: 2px;
	background: var(--rer-navy);
	position: relative;
	margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
	position: relative;
	isolation: isolate;
	color: #fff;
	min-height: min(86vh, 760px);
	display: grid;
	align-items: end;
	overflow: hidden;
	background: var(--rer-grad);
}

.hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(circle at 80% 20%, rgba(205, 33, 34, 0.28), transparent 40%),
		url("../images/map-bg.jpg") center / cover no-repeat;
}

.hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(21, 37, 110, 0.92) 8%, rgba(21, 24, 33, 0.55) 55%, rgba(128, 19, 88, 0.78) 100%);
}

.hero__inner {
	padding-block: clamp(4rem, 10vw, 8rem) 5.5rem;
}

.hero h1 {
	color: #fff;
	font-size: clamp(1.55rem, 1.1rem + 1.6vw, 2.35rem);
	font-weight: 600;
	line-height: 1.28;
	display: flex;
	flex-direction: column;
	gap: 0.2em;
}
.hero h1 .hero-line { display: block; }

@media (min-width: 1101px) {
	.hero h1 .hero-line { white-space: nowrap; }
}
.hero-brand {
	margin: 0 0 1rem;
	font-family: var(--rer-font-heading);
	font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem);
	font-weight: 800;
	letter-spacing: 0.04em;
	color: #fff;
}
.hero .lead { color: rgba(255, 255, 255, 0.86); max-width: 38rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.switcher {
	display: grid;
	grid-template-columns: minmax(240px, 0.85fr) 1.35fr;
	gap: 1.5rem;
	margin-top: 2rem;
	align-items: start;
}

.switcher__nav {
	display: grid;
	gap: 0.4rem;
}

.switcher__btn {
	display: grid;
	gap: 0.15rem;
	text-align: left;
	padding: 0.9rem 1rem;
	border: 1px solid var(--rer-border);
	border-radius: var(--rer-radius-sm);
	background: #fff;
	cursor: pointer;
	color: var(--rer-text);
	transition: 0.2s var(--rer-ease);
}

.switcher__btn strong {
	font-family: var(--rer-font-heading);
	font-size: 1.05rem;
	color: var(--rer-navy);
}

.switcher__btn span { font-size: 0.85rem; color: var(--rer-muted); }

.switcher__btn.is-active,
.switcher__btn:hover {
	border-color: var(--rer-burgundy);
	background: rgba(128, 19, 88, 0.06);
}

.switcher__content {
	background: var(--rer-base-alt);
	border-radius: var(--rer-radius);
	padding: clamp(1.25rem, 3vw, 2rem);
	min-height: 22rem;
}

.switcher__panel h4 {
	margin: 1.1rem 0 0.4rem;
	color: var(--rer-burgundy);
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.products-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1.75rem;
}

.products-row--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-tile--all {
	background: var(--rer-navy);
	color: #fff;
	border: 0;
	justify-content: center;
}

.product-tile--all h3,
.product-tile--all p { color: #fff; margin: 0; }

.footer-links {
	display: none;
}

.footer-bottom {
	display: grid;
	grid-template-columns: 1.35fr minmax(11rem, 0.85fr) 0.9fr;
	gap: 2rem 2.5rem;
	padding: 0 0 1.4rem;
	align-items: start;
}

.footer-brand .logo { margin-bottom: 0.85rem; }

.footer-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.footer-nav a {
	font-family: var(--rer-font-heading);
	font-size: 0.92rem;
	font-weight: 600;
	color: #fff;
}

.footer-nav a:hover { color: var(--rer-link-soft); }

.footer-contacts h3 { margin-top: 0.15rem; }

.footer-social {
	margin-top: 1.25rem;
}

.footer-social__title {
	margin: 0 0 0.7rem;
	font-family: var(--rer-font-heading);
	font-size: 0.92rem;
	font-weight: 700;
	color: #fff;
}

.footer-social__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-social__list li { margin: 0; }

.footer-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	background: var(--rer-burgundy);
	color: #fff;
	transition: background 0.2s var(--rer-ease), filter 0.2s var(--rer-ease), transform 0.2s var(--rer-ease);
}

.footer-social__link:hover {
	color: #fff;
	filter: brightness(0.92);
	transform: translateY(-1px);
}

.footer-social__link svg {
	display: block;
	width: 0.95rem;
	height: auto;
	flex-shrink: 0;
}

.footer-social__link--vk {
	background: #0077ff;
}

.footer-social__link--vk svg {
	width: 0.95rem;
}

.footer-social__link--tg {
	background: #0088cc;
}

.footer-social__link--tg svg {
	width: 0.9rem;
}

.footer-social__link--max {
	background: #572dff;
}

.footer-social__link--max svg {
	width: 0.9rem;
}

.site-footer a[href^="tel:"],
.site-footer a[href^="mailto:"] {
	font-family: var(--rer-font-heading);
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #fff;
}

.site-footer a[href^="tel:"]:hover,
.site-footer a[href^="mailto:"]:hover { color: var(--rer-link-soft); }

.footer-copy-wrap {
	position: relative;
	display: inline-block;
	max-width: 28rem;
}

.footer-copy-trigger {
	cursor: help;
	border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
}

.footer-legal {
	position: absolute;
	left: 0;
	bottom: calc(100% + 0.55rem);
	z-index: 5;
	width: min(36rem, 78vw);
	margin: 0;
	padding: 0.85rem 1rem;
	border-radius: var(--rer-radius-sm);
	background: rgba(10, 22, 64, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: var(--rer-shadow-lg);
	font-size: 0.78rem;
	line-height: 1.45;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: 0.2s var(--rer-ease);
	pointer-events: none;
}

.footer-copy-wrap:hover .footer-legal,
.footer-copy-wrap:focus-within .footer-legal {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.25rem;
}

.chips span {
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--rer-border);
	font-size: 0.9rem;
}

.hero__stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--rer-radius);
	overflow: hidden;
	margin-top: 3rem;
}

.hero__stat {
	background: rgba(15, 18, 40, 0.35);
	backdrop-filter: blur(8px);
	padding: 1.25rem 1.4rem;
}

.hero__stat b {
	display: block;
	font-family: var(--rer-font-heading);
	font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem);
	letter-spacing: -0.03em;
}

.hero__stat span {
	display: block;
	font-size: 0.85rem;
	opacity: 0.8;
}

/* Cards / grids */
.grid-4,
.grid-3,
.grid-2 {
	display: grid;
	gap: 1.25rem;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
	background: #fff;
	border: 1px solid var(--rer-border);
	border-radius: var(--rer-radius);
	overflow: hidden;
	transition: 0.25s var(--rer-ease);
	height: 100%;
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

a.card:hover {
	color: inherit;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rer-shadow);
	border-color: transparent;
}

.card__media {
	aspect-ratio: 16 / 10;
	background:
		linear-gradient(160deg, var(--rer-navy), var(--rer-burgundy));
	display: grid;
	place-items: center;
	color: #fff;
	overflow: hidden;
	min-height: 0;
}

.card__media svg { width: 3.5rem; height: 3.5rem; opacity: 0.9; }

.card__body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card__body h3,
.card__body h3 a { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; color: #000; }
.card__body h3 a:hover { color: #000; }
.card__meta { font-size: 0.8rem; color: var(--rer-muted); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.card__link {
	margin-top: auto;
	font-family: var(--rer-font-heading);
	font-weight: 700;
	font-size: 0.875rem;
	color: var(--rer-burgundy);
}

a.card:hover .card__link,
a.doc-card:hover .card__link {
	color: var(--rer-link-soft);
}

.product-tile .card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--rer-base-alt);
}

.product-tile .card__media > img,
.product-tile .card__media > .ph {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	margin: 0;
	border: 0;
	border-radius: 0;
}

.news-card .card__media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background:
		linear-gradient(180deg, transparent 30%, rgba(21, 37, 110, 0.75)),
		var(--rer-grad);
}

.news-card .card__media > img,
.news-card .card__media > .ph {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
	border: 0;
	aspect-ratio: auto;
}
.product-tile .count {
	display: inline-flex;
	margin-top: 0.4rem;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	background: var(--rer-base-alt);
	color: var(--rer-slate);
	font-size: 0.75rem;
	font-weight: 700;
	width: max-content;
}

.products-row--plain .product-tile .count {
	padding: 0;
	border-radius: 0;
	background: none;
	color: #000;
	font-weight: 500;
}

/* Bento / about */
.bento {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 1.25rem;
}

.panel {
	border-radius: var(--rer-radius);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: #fff;
	border: 1px solid var(--rer-border);
}

.panel--navy {
	background: var(--rer-navy);
	color: #fff;
	border: 0;
}

.panel--navy h2,
.panel--navy h3 { color: #fff; }

.panel--burgundy {
	background: var(--rer-burgundy);
	color: #fff;
	border: 0;
}

.stats-list {
	display: grid;
	gap: 1rem;
	list-style: none;
}

.stats-list li {
	display: grid;
	gap: 0.15rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.stats-list b {
	font-family: var(--rer-font-heading);
	font-size: 1.75rem;
}

/* Values / steps */
.steps {
	counter-reset: step;
	display: grid;
	gap: 0;
}

.step {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	gap: 1.25rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--rer-border);
}

.step::before {
	counter-increment: step;
	content: counter(step, decimal-leading-zero);
	font-family: var(--rer-font-heading);
	font-weight: 800;
	font-size: 1.6rem;
	color: var(--rer-burgundy);
}

.step:has(.ph) {
	grid-template-columns: 5.5rem minmax(10rem, 16rem) 1fr;
	align-items: start;
}

.step .ph {
	border-radius: 8px;
	border: 1px dashed var(--rer-border);
}

/* CTA band */
.cta-band {
	display: grid;
	grid-template-columns: 1fr 0.85fr;
	gap: 2rem;
	align-items: center;
}

.form {
	display: grid;
	gap: 0.85rem;
	background: #fff;
	padding: 1.5rem;
	border-radius: var(--rer-radius);
	color: var(--rer-text);
}

.form label span,
.form .label {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	font-family: var(--rer-font-heading);
	margin-bottom: 0.35rem;
	color: var(--rer-navy);
}

.form input,
.form textarea,
.form select {
	width: 100%;
	border: 1px solid var(--rer-border);
	border-radius: 8px;
	padding: 0.75rem 0.9rem;
	background: var(--rer-base-alt);
}

.form input:not([type="checkbox"]):not([type="radio"]):focus,
.form input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.form textarea:focus,
.form textarea:focus-visible,
.form select:focus,
.form select:focus-visible {
	outline: none;
	box-shadow: none;
	background: #fff;
	border-color: var(--rer-burgundy);
}

.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

.form [data-form-success] {
	margin: 0.75rem 0 0;
	color: var(--rer-navy);
	font-weight: 600;
}

.form [data-form-error],
.form .form-error {
	margin: 0.75rem 0 0;
	color: var(--rer-burgundy);
	font-weight: 600;
}

.check {
	display: flex;
	gap: 0.2rem;
	align-items: flex-start;
	font-size: 0.82rem;
	color: var(--rer-muted);
}

.check input {
	width: 1.1rem;
	margin-top: 0.2rem;
	outline: none;
	box-shadow: none;
}

.check input:focus,
.check input:focus-visible {
	outline: none;
	box-shadow: none;
}

.check a {
	color: var(--rer-burgundy);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.check a:hover {
	color: var(--rer-burgundy-dark);
}

.hp { position: absolute; left: -9999px; }

/* Page hero (inner) */
.page-hero {
	background: var(--rer-grad);
	color: #fff;
	padding: clamp(3rem, 6vw, 5rem) 0 3rem;
}

.page-hero h1 { color: #fff; margin-bottom: 0.4rem; }

.page-hero .lead {
	color: rgba(255, 255, 255, 0.85);
	max-width: none;
	margin: 0;
}

.page-hero .lead--wrap {
	max-width: 52rem;
	display: grid;
	gap: 0.85rem;
}

.page-hero .lead--wrap p {
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: 1.55;
}

@media (min-width: 1101px) {
	.page-hero .lead:not(.lead--wrap) {
		white-space: nowrap;
	}
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	list-style: none;
	font-size: 0.85rem;
	margin-bottom: 1rem;
	opacity: 0.85;
	color: rgba(255, 255, 255, 0.92);
}

.crumbs a { color: #fff; }
.crumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 0.4rem;
	opacity: 0.6;
}

/* Yoast SEO breadcrumbs */
.crumbs--yoast,
.crumbs--yoast > span {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.crumbs--yoast .crumbs__sep {
	opacity: 0.6;
	margin: 0;
}

.crumbs--yoast a {
	color: #fff;
	text-decoration: none;
}

.crumbs--yoast a:hover {
	text-decoration: underline;
}

/* Catalog */
.catalog-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 2rem;
	align-items: start;
}

.filter {
	background: var(--rer-base-alt);
	border-radius: var(--rer-radius);
	padding: 1.25rem;
	position: sticky;
	top: calc(var(--rer-header) + 2.6rem);
}

.filter h2 { font-size: 1rem; }
.filter ul { list-style: none; margin: 0; padding: 0; }
.filter a {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.45rem 0;
	color: var(--rer-text);
	border-bottom: 1px solid var(--rer-border);
	font-size: 0.92rem;
}

.filter a:hover,
.filter a.is-active { color: var(--rer-burgundy); font-weight: 600; }

.filter__name {
	flex: 1;
	min-width: 0;
}

.filter__count {
	color: var(--rer-burgundy);
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
}

.filter__item.is-current > a {
	color: var(--rer-burgundy);
	font-weight: 600;
}

.filter__root {
	margin-bottom: 0;
}

.filter__root + ul {
	margin-top: 0;
}

.toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.toolbar > div {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.toolbar input {
	flex: 1;
	max-width: 22rem;
	border: 1px solid var(--rer-border);
	border-radius: 8px;
	padding: 0.7rem 0.9rem;
}

/* Product */
.product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: start;
}

.product__gallery {
	background: transparent;
	border-radius: var(--rer-radius);
	min-height: 0;
	display: block;
	color: var(--rer-navy);
	border: 0;
}

.product__gallery svg { width: 8rem; height: 8rem; }

.specs {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.specs th,
.specs td {
	text-align: left;
	padding: 0.7rem 0.5rem;
	border-bottom: 1px solid var(--rer-border);
}

.specs th { width: 42%; color: var(--rer-muted); font-weight: 500; }

.tabs {
	display: flex;
	gap: 0.4rem;
	margin: 2rem 0 1rem;
	border-bottom: 1px solid var(--rer-border);
}

.tabs button {
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	padding: 0.7rem 0.9rem;
	cursor: pointer;
	font-family: var(--rer-font-heading);
	font-weight: 700;
	color: var(--rer-muted);
}

.tabs button[aria-selected="true"] {
	color: var(--rer-navy);
	border-bottom-color: var(--rer-red);
}

/* News / articles */

.article {
	max-width: 46rem;
	margin-inline: auto;
}

.article__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--rer-radius);
	margin-bottom: 1.25rem;
	background: var(--rer-base-alt);
}

.article .ph {
	margin-bottom: 1.5rem;
	border-radius: var(--rer-radius);
	border: 1px dashed var(--rer-border);
}

.article-meta {
	display: flex;
	gap: 1rem;
	color: var(--rer-muted);
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

/* Contacts */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

.contact-card h3 { margin-bottom: 0.75rem; }
.contact-card p { margin: 0.25rem 0; }

.map-placeholder {
	min-height: 22rem;
	border-radius: var(--rer-radius);
	background:
		linear-gradient(0deg, rgba(21, 37, 110, 0.55), rgba(21, 37, 110, 0.25)),
		url("../images/map-bg.jpg") center / cover;
	display: grid;
	place-items: end start;
	padding: 1.5rem;
	color: #fff;
}

.dept-list {
	columns: 2;
	gap: 2rem;
	list-style: none;
}

.dept-list li {
	break-inside: avoid;
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--rer-border);
}

.dept-list b { color: var(--rer-burgundy); margin-right: 0.4rem; }

/* Values */
.value-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
}

.value {
	padding: 1.35rem;
	border-radius: var(--rer-radius);
	background: #fff;
	border: 1px solid var(--rer-border);
}

.value b { display: block; margin-bottom: 0.4rem; color: var(--rer-navy); font-family: var(--rer-font-heading); }

/* Footer */
.site-footer {
	background: var(--rer-footer);
	color: #d7deef;
	padding-top: 2.5rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
	gap: 2rem;
	padding-bottom: 2.5rem;
}

.site-footer h3 {
	color: #fff;
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

.site-footer ul { list-style: none; }
.site-footer a { color: #d7deef; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 0.4rem; }

.footer-copy {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 1.1rem 0 1.4rem;
	font-size: 0.8rem;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

/* 404 */
.not-found {
	min-height: 60vh;
	display: grid;
	place-items: center;
	text-align: center;
	padding: 4rem 1rem;
}

.not-found b {
	font-size: clamp(5rem, 12vw, 9rem);
	font-family: var(--rer-font-heading);
	background: var(--rer-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	line-height: 0.9;
}

/* Cookie */
.cookie {
	position: fixed;
	bottom: 1rem;
	left: 1rem;
	right: 1rem;
	z-index: 60;
	max-width: 42rem;
	margin-inline: auto;
	background: #fff;
	border: 1px solid var(--rer-border);
	box-shadow: var(--rer-shadow-lg);
	border-radius: var(--rer-radius);
	padding: 1rem 1.2rem;
	display: none;
	gap: 1rem;
	align-items: center;
}

.cookie.is-open { display: flex; }
.cookie p { margin: 0; font-size: 0.9rem; }

.to-top {
	position: fixed;
	top: 72%;
	right: 0;
	z-index: 45;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-width: 3.25rem;
	padding: 0.85rem 0.7rem 0.95rem;
	border: 0;
	border-radius: 4px 0 0 4px;
	background: var(--rer-burgundy);
	color: #fff;
	font-family: var(--rer-font-heading);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.01em;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateX(110%);
	transition: opacity 0.25s var(--rer-ease), transform 0.25s var(--rer-ease), background 0.2s var(--rer-ease);
}

.to-top.is-visible {
	opacity: 0.85;
	pointer-events: auto;
	transform: translateX(0);
}

.to-top:hover,
.to-top:focus-visible {
	opacity: 1;
	background: var(--rer-burgundy-dark, #5a1838);
	color: #fff;
}

.to-top__icon {
	font-size: 0.95rem;
	line-height: 1;
}

.to-top__label {
	writing-mode: horizontal-tb;
}

.staff-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.staff-card {
	display: grid;
	grid-template-columns: 7.5rem 1fr;
	gap: 1rem;
	align-items: start;
	background: #fff;
	border: 1px solid var(--rer-border);
	border-radius: var(--rer-radius);
	padding: 1rem;
}

.staff-card h3 { margin: 0 0 0.2rem; font-size: 1.05rem; }
.staff-card .role { color: var(--rer-burgundy); font-weight: 700; font-size: 0.88rem; margin-bottom: 0.7rem; }
.staff-card p { margin: 0.2rem 0; font-size: 0.92rem; }

.timeline { display: grid; gap: 0; }
.timeline__item {
	display: grid;
	grid-template-columns: 8.5rem 1fr;
	gap: 1.25rem;
	padding: 1.4rem 0;
	border-bottom: 1px solid var(--rer-border);
}
.timeline__item:first-child { padding-top: 0; }
.timeline__year {
	font-family: var(--rer-font-heading);
	font-weight: 800;
	color: var(--rer-burgundy);
	font-size: 1.15rem;
}

.doc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.doc-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0 0 1.2rem;
	border: 1px solid var(--rer-border);
	border-radius: var(--rer-radius);
	background: #fff;
	overflow: hidden;
	min-height: 9rem;
	color: inherit;
	text-decoration: none;
}

a.doc-card:hover { color: inherit; }

.doc-card h3 { font-size: 1rem; margin: 0; padding: 0 1.2rem; }
.doc-card > p { padding: 0 1.2rem; margin: 0; }
.doc-card .card__link { padding: 0 1.2rem; }
.doc-card__media {
	aspect-ratio: 4 / 3;
	background: var(--rer-base-alt);
	overflow: hidden;
}
.doc-card__media img,
.doc-card__media .ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.doc-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; padding: 0 1.2rem; }

.review {
	display: grid;
	grid-template-columns: 7.5rem 1fr;
	gap: 1.1rem;
	align-items: start;
	padding: 1.1rem;
	border: 1px solid var(--rer-border);
	border-radius: var(--rer-radius);
	background: #fff;
	margin-bottom: 1rem;
}
.review header { margin-bottom: 0.6rem; }
.review .org { color: var(--rer-navy); }
.review .who { color: var(--rer-muted); font-size: 0.88rem; }

.table-wrap { overflow-x: auto; margin-top: 1.25rem; }
.table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
	min-width: 48rem;
}
.table th, .table td {
	border-bottom: 1px solid var(--rer-border);
	padding: 0.55rem 0.5rem;
	text-align: left;
	vertical-align: top;
}
.table th { background: var(--rer-base-alt); color: var(--rer-navy); }

.video-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.video-list a {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--rer-border);
	border-radius: var(--rer-radius);
	background: #fff;
	color: var(--rer-navy);
	font-family: var(--rer-font-heading);
	font-weight: 700;
	overflow: hidden;
}
.video-list a > span { display: block; padding: 0.9rem 1rem; }
.video-list a:hover { border-color: var(--rer-burgundy); color: var(--rer-burgundy); }

.cert-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}
.cert {
	display: flex;
	flex-direction: column;
	margin: 0;
	border-radius: var(--rer-radius);
	background: #fff;
	border: 1px solid var(--rer-border);
	overflow: hidden;
	color: var(--rer-navy);
	font-family: var(--rer-font-heading);
	font-weight: 700;
	font-size: 0.95rem;
}
.cert figcaption {
	padding: 0.85rem 1rem;
	text-align: center;
}
.cert a {
	display: block;
	line-height: 0;
}
.cert img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: contain;
	object-position: center;
	background: var(--rer-base-alt);
}
.staff-card img,
.staff-card .ph--person {
	width: 7.5rem;
	height: 7.5rem;
	aspect-ratio: 1;
	object-fit: cover;
	object-position: top center;
	border-radius: var(--rer-radius);
	background: var(--rer-base-alt);
}
.review > img {
	width: 100%;
	max-width: 11rem;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: var(--rer-radius);
	background: var(--rer-base-alt);
}
.product-tile .card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ph {
	display: grid;
	place-items: center;
	position: relative;
	background:
		linear-gradient(180deg, rgba(255,255,255,.35), transparent 55%),
		repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(21, 37, 110, 0.04) 10px, rgba(21, 37, 110, 0.04) 20px),
		var(--rer-base-alt);
	color: var(--rer-slate);
	font-family: var(--rer-font-heading);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-align: center;
	overflow: hidden;
}
.ph img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ph span {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	padding: 0.6rem;
	pointer-events: none;
}
.ph span::before {
	content: "";
	width: 2rem;
	height: 1.55rem;
	border: 2px solid currentColor;
	border-radius: 4px;
	opacity: 0.45;
	background:
		radial-gradient(circle at 70% 38%, currentColor 0 3px, transparent 3.5px);
}
.ph--person {
	aspect-ratio: 3 / 4;
	border-radius: 8px;
	border: 1px dashed var(--rer-border);
}
.ph--cover { aspect-ratio: 3 / 4; width: 100%; border-bottom: 1px dashed var(--rer-border); }
.ph--wide { aspect-ratio: 16 / 10; width: 100%; }
.ph--cert { aspect-ratio: 3 / 2; width: 100%; border-bottom: 1px dashed var(--rer-border); }
.ph--doc { aspect-ratio: 3 / 4; width: 100%; border-radius: 6px; border: 1px dashed var(--rer-border); }
.ph--logo { aspect-ratio: 16 / 9; width: 100%; border-bottom: 1px dashed var(--rer-border); }
.ph--video { aspect-ratio: 16 / 9; width: 100%; border-bottom: 1px dashed var(--rer-border); }
.card__media.ph { border: 0; }
.product__gallery .ph {
	border-radius: var(--rer-radius);
	border: 1px dashed var(--rer-border);
}
.product__thumbs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	margin-top: 0.5rem;
}

@media (max-width: 1100px) {
	.grid-4, .value-grid, .hero__stats { grid-template-columns: repeat(2, 1fr); }
	.grid-3 { grid-template-columns: 1fr 1fr; }
	.bento, .cta-band, .product, .catalog-layout, .contact-grid, .footer-grid, .switcher, .footer-bottom, .step:has(.ph) {
		grid-template-columns: 1fr;
	}
	.staff-grid, .doc-grid, .cert-grid { grid-template-columns: 1fr 1fr; }
	.products-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.timeline__item, .staff-card, .review { grid-template-columns: 1fr; }
	.staff-card img,
	.staff-card .ph--person {
		width: 100%;
		height: auto;
		max-width: 100%;
		aspect-ratio: 1;
	}
	.video-list { grid-template-columns: 1fr; }
	.filter { position: static; }
	.nav { display: none; }
	.site-header__actions { margin-left: auto; flex-shrink: 0; }
	.nav.is-open {
		display: block;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: #fff;
		border-bottom: 1px solid var(--rer-border);
		padding: 0.75rem var(--rer-gutter) 1.25rem;
		max-height: calc(100dvh - var(--rer-header));
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}
	.nav.is-open .nav__list { flex-direction: column; align-items: stretch; }
	.nav.is-open .nav__sub {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 0.8rem;
	}
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.site-header__actions .btn--primary { display: none; }
	.dept-list { columns: 1; }
}

@media (max-width: 720px) {
	.site-header__phone { font-size: 0.82rem; }
	.grid-3, .grid-2, .hero__stats, .form .row-2, .section-head--row {
		grid-template-columns: 1fr;
		display: grid;
	}
	.hero__actions, .cookie { flex-direction: column; align-items: stretch; }
	.staff-grid, .doc-grid, .cert-grid { grid-template-columns: 1fr; }
	.staff-card img,
	.staff-card .ph--person {
		width: 100%;
		height: auto;
		max-width: 100%;
		aspect-ratio: 1;
	}
	.video-list { grid-template-columns: 1fr; }
	.products-row {
		grid-template-columns: 1fr;
		gap: 0.65rem;
		margin-top: 1.1rem;
	}
	.products-row--3 {
		grid-template-columns: 1fr;
	}
	.product-tile .card__body {
		padding: 0.7rem 0.75rem 0.85rem;
		gap: 0.15rem;
	}
	.product-tile .card__body h3 {
		font-size: 0.85rem;
		line-height: 1.25;
	}
	.product-tile .count {
		font-size: 0.68rem;
		margin-top: 0.25rem;
		padding: 0.1rem 0.4rem;
	}
	.product-tile:hover {
		transform: none;
	}
	.toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 0.65rem;
	}
	.toolbar__search {
		max-width: none;
		width: 100%;
	}
	.toolbar > span {
		order: 1;
	}
	.form {
		padding: 0;
	}
	.section--dark .form,
	.section--alt .form {
		padding: 1.5rem;
	}
	.hero__inner {
		overflow-wrap: anywhere;
		word-break: break-word;
	}
	.hero__inner .hero-brand {
		font-size: clamp(1.35rem, 5.2vw, 1.75rem);
	}
	.hero__inner h1 {
		font-size: clamp(1.1rem, 4vw, 1.4rem);
		line-height: 1.3;
	}
	.hero__stat {
		padding: 0.85rem 0.75rem;
		min-width: 0;
	}
	.hero__stat b {
		font-size: clamp(1.05rem, 4.2vw, 1.3rem);
		overflow-wrap: anywhere;
		word-break: break-word;
	}
	.hero__stat span {
		font-size: 0.72rem;
		line-height: 1.35;
		overflow-wrap: anywhere;
		word-break: break-word;
	}
	.step,
	.step:has(.ph) {
		grid-template-columns: 1fr;
		gap: 0.65rem;
	}
}

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

/* Production extras */
.section-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: 1.75rem;
}

.section-actions--center {
	justify-content: center;
}

.geo-points {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin: 1.75rem 0 2rem;
}

.geo-point {
	padding: 1.25rem 1.35rem;
	border: 1px solid var(--rer-border);
	border-radius: var(--rer-radius);
	background: #fff;
}

.geo-point b {
	display: block;
	margin-bottom: 0.55rem;
	font-family: var(--rer-font-heading);
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--rer-burgundy);
}

.geo-point span {
	display: block;
	font-family: var(--rer-font-heading);
	font-weight: 600;
	color: var(--rer-navy);
	line-height: 1.35;
}

.map-russia__img {
	display: block;
	width: 100%;
	height: auto;
	margin-top: 0.5rem;
}

@media (max-width: 1100px) {
	.geo-points { grid-template-columns: 1fr; }
}

/* Vacancies list */
.vacancy-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	margin: 1rem 0 1.5rem;
	width: 100%;
}

.vacancies-layout {
	align-items: start;
}

.vacancies-layout .form {
	align-self: start;
	height: auto;
	position: sticky;
	top: calc(var(--rer-header) + 1rem);
	z-index: 5;
}

.vacancy-card {
	padding: 1.1rem 1.25rem;
	border: 1px solid var(--rer-border);
	border-radius: var(--rer-radius);
	background: #fff;
}

.vacancy-card h3 {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	color: var(--rer-navy);
}

.vacancy-card__meta {
	margin: 0 0 5px;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--rer-muted);
}

.vacancy-card > p:not(.vacancy-card__meta) {
	margin: 0;
	color: var(--rer-text);
}

/* Staff → vacancies CTA */
.vacancies-cta-panel {
	justify-self: end;
	width: min(100%, 28rem);
	padding: 1.5rem 1.5rem 1.6rem;
	border-radius: var(--rer-radius);
	background: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: var(--rer-shadow-lg);
	text-align: center;
}

.vacancies-cta-panel__title {
	margin: 0 0 1rem;
	font-family: var(--rer-font-heading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--rer-navy);
	white-space: nowrap;
}

.vacancies-cta-panel .btn {
	width: 100%;
}

@media (max-width: 1100px) {
	.vacancies-cta-panel {
		justify-self: stretch;
		width: 100%;
	}

	.vacancies-cta-panel__title {
		white-space: normal;
	}
}

/* Modals */
.modal {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: grid;
	place-items: center;
	padding: 1.25rem;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: 0.2s var(--rer-ease);
}

.modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(21, 24, 33, 0.55);
}

.modal__dialog {
	position: relative;
	z-index: 1;
	width: min(100%, 36rem);
	max-height: min(90vh, 40rem);
	overflow: auto;
	padding: 1.75rem 1.85rem 1.6rem;
	border-radius: var(--rer-radius);
	background: #fff;
	box-shadow: var(--rer-shadow-lg);
}

.modal__dialog .form {
	padding: 0;
	box-shadow: none;
}

.modal__dialog input[readonly] {
	background: var(--rer-base-alt);
	color: var(--rer-text);
	cursor: default;
}

.modal__head {
	display: grid;
	gap: 0.45rem;
	margin: 0 0 1.35rem;
	text-align: center;
}

.modal__head h2 {
	margin: 0;
	font-family: var(--rer-font-heading);
	font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem);
	font-weight: 800;
	line-height: 1.25;
	color: #000;
}

.modal__sub {
	margin: 0;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	color: #000;
}

.modal__sub:empty { display: none; }

.modal__close {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	z-index: 2;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--rer-border);
	border-radius: 8px;
	background: #fff;
	color: var(--rer-navy);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.modal__close:hover {
	border-color: var(--rer-burgundy);
	color: var(--rer-burgundy);
}

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

/* Lead popup (homepage) */
.modal--lead {
	z-index: 90;
}

.modal--lead .modal__dialog {
	width: min(100%, 26rem);
	max-height: none;
	overflow: visible;
	padding: 0;
	border-radius: 10px;
	background: transparent;
	box-shadow: none;
}

.lead-modal {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--rer-shadow-lg);
}

.lead-modal__close {
	position: absolute;
	top: -2.1rem;
	right: 0;
	z-index: 2;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 1.65rem;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	opacity: 0.92;
}

.lead-modal__close:hover {
	opacity: 1;
}

.lead-modal__hero {
	display: grid;
	place-items: center;
	min-height: 7.5rem;
	padding: 1.65rem 1.5rem;
	background: var(--rer-grad);
	text-align: center;
}

.lead-modal__title {
	margin: 0;
	font-family: var(--rer-font-heading);
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
	font-weight: 800;
	line-height: 1.3;
	color: #fff;
}

.lead-modal__body {
	display: grid;
	gap: 1rem;
	padding: 1.35rem 1.4rem 1.25rem;
	text-align: center;
}

.lead-modal__offer {
	margin: 0;
	font-family: var(--rer-font-heading);
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--rer-burgundy);
}

.lead-modal__form {
	display: grid;
	gap: 0.75rem;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.lead-modal__form input[type="tel"] {
	border-color: var(--rer-burgundy);
	border-width: 1.5px;
	text-align: left;
	font-size: 1rem;
	color: var(--rer-text);
}

.lead-modal__form input[type="tel"]::placeholder {
	color: #9a9aa8;
}

.lead-modal__form input[type="tel"]:focus,
.lead-modal__form input[type="tel"]:focus-visible {
	outline: none;
	box-shadow: none;
	border-color: var(--rer-burgundy-dark);
}

.lead-modal__form .btn {
	width: 100%;
	justify-content: center;
	min-height: 2.85rem;
	font-size: 1rem;
}

.lead-modal__form .check {
	text-align: left;
}

@media (max-width: 568px) {
	.value-grid {
		grid-template-columns: 1fr;
	}

	.chips {
		flex-direction: column;
		align-items: stretch;
		flex-wrap: nowrap;
	}

	.chips span {
		display: block;
	}

	.table-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
	}

	.table-scroll table {
		width: max-content !important;
		min-width: 100%;
		max-width: none;
	}
}

@media (max-width: 480px) {
	.modal--lead .modal__dialog {
		width: min(100%, 22.5rem);
	}

	.lead-modal__hero {
		min-height: 6.5rem;
		padding: 1.35rem 1.15rem;
	}

	.lead-modal__body {
		padding: 1.15rem 1.1rem 1.1rem;
	}
}

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

	.site-header__phone {
		font-size: 0.72rem;
	}
}

@media (max-width: 350px) {
	h2 {
		font-size: 22px;
	}
}

.product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

/* WooCommerce catalog / product — align with static markup */
.toolbar__search {
	flex: 1;
	max-width: 22rem;
}

.toolbar__search input {
	width: 100%;
	max-width: none;
}

.product__gallery .product__image,
.product__gallery > img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--rer-radius);
	background: var(--rer-base-alt);
	aspect-ratio: 1 / 0.78;
	object-fit: contain;
}

.product__zoom {
	display: block;
	position: relative;
	border-radius: var(--rer-radius);
	overflow: hidden;
	cursor: zoom-in;
}

.product__zoom::after {
	content: "";
	position: absolute;
	right: 0.75rem;
	bottom: 0.75rem;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 999px;
	background: rgba(21, 37, 110, 0.88) 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' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3Cpath d='M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
	pointer-events: none;
	opacity: 0.92;
}

.product__thumb-link {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: zoom-in;
	transition: border-color 0.2s var(--rer-ease);
}

.product__thumb-link:hover {
	border-color: var(--rer-burgundy);
}


.eyebrow {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 0.8rem;
	font-weight: 600;
	margin: 0 0 0.6rem;
}

.product__thumbs img,
.product__thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 8px;
	background: var(--rer-base-alt);
	aspect-ratio: 1 / 0.78;
}

.product .card__meta {
	margin: 0 0 0.75rem;
}

.product__summary {
	min-width: 0;
}

.product__short-desc {
	margin: 0 0 1.25rem;
}

.product__short-desc:empty {
	display: none;
}

.product .summary,
.product > div:last-child {
	min-width: 0;
}

/* Shared body text for product tabs, category SEO, short desc */
.rich-text,
.tab-panel,
.product__short-desc,
.catalog-term-desc {
	color: var(--rer-text);
	font-size: 1rem;
	line-height: 1.6;
}

.tab-panel,
.product__short-desc,
.catalog-term-desc {
	width: 100%;
	max-width: none;
}

.tab-panel,
.catalog-term-desc {
	padding: 0.5rem 0 0;
}

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

.rich-text > *:first-child,
.tab-panel > *:first-child,
.product__short-desc > *:first-child,
.catalog-term-desc > *:first-child {
	margin-top: 0;
}

.rich-text > *:last-child,
.tab-panel > *:last-child,
.product__short-desc > *:last-child,
.catalog-term-desc > *:last-child {
	margin-bottom: 0;
}

.rich-text p,
.tab-panel p,
.product__short-desc p,
.catalog-term-desc p {
	margin: 0 0 0.9rem;
}

.rich-text ul,
.rich-text ol,
.tab-panel ul,
.tab-panel ol,
.catalog-term-desc ul,
.catalog-term-desc ol {
	margin: 0 0 0.9rem;
	padding-left: 1.25rem;
}

.rich-text h2,
.rich-text h3,
.rich-text h4,
.tab-panel h2,
.tab-panel h3,
.tab-panel h4,
.catalog-term-desc h2,
.catalog-term-desc h3,
.catalog-term-desc h4 {
	margin: 1.25rem 0 0.6rem;
	color: var(--rer-navy);
	font-family: var(--rer-font-heading);
	line-height: 1.3;
}

.rich-text table,
.tab-panel table,
.catalog-term-desc table {
	width: 100% !important;
	max-width: 100%;
	height: auto !important;
	border-collapse: collapse;
	margin: 1rem 0;
	font-size: 0.95rem;
	border: 1px solid var(--rer-border);
	background: #fff;
}

.table-scroll {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 1rem 0;
}

.table-scroll table {
	width: 100% !important;
	max-width: 100%;
	margin: 0;
}

.rich-text table th,
.rich-text table td,
.tab-panel table th,
.tab-panel table td,
.catalog-term-desc table th,
.catalog-term-desc table td {
	text-align: left;
	vertical-align: middle;
	height: auto !important;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--rer-border);
	color: var(--rer-text);
}

.rich-text table th p,
.rich-text table td p,
.tab-panel table th p,
.tab-panel table td p,
.catalog-term-desc table th p,
.catalog-term-desc table td p {
	margin: 0;
}

.rich-text table th,
.tab-panel table th,
.catalog-term-desc table th {
	background: var(--rer-base-alt);
	color: var(--rer-navy);
	font-family: var(--rer-font-heading);
	font-weight: 700;
}

.rich-text table tr:nth-child(even) td,
.tab-panel table tr:nth-child(even) td,
.catalog-term-desc table tr:nth-child(even) td {
	background: rgba(244, 245, 248, 0.55);
}

.rich-text table caption,
.tab-panel table caption,
.catalog-term-desc table caption {
	caption-side: top;
	text-align: left;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--rer-navy);
}

.privacy-approve {
	margin: 0 0 1.5rem;
	padding: 1rem 1.15rem;
	border-left: 3px solid var(--rer-burgundy, #6b1f3a);
	background: var(--rer-base-alt);
}
.privacy-approve p { margin: 0.25rem 0; }
.privacy-meta { color: var(--rer-muted); font-size: 0.92rem; }
.rich-text li.privacy-note {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

.product-docs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}

.product-docs__link {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--rer-border);
	border-radius: var(--rer-radius);
	background: var(--rer-base-alt);
	color: var(--rer-navy);
	text-decoration: none;
	transition: border-color 0.2s var(--rer-ease), color 0.2s var(--rer-ease);
}

.product-docs__link:hover {
	border-color: var(--rer-burgundy);
	color: var(--rer-burgundy);
}

.product-docs__title {
	font-family: var(--rer-font-heading);
	font-weight: 700;
	font-size: 0.95rem;
}

.product-docs__meta {
	flex-shrink: 0;
	font-size: 0.85rem;
	color: var(--rer-muted);
}

.catalog-pagination {
	margin-top: 2rem;
}

.catalog-pagination .woocommerce-pagination,
.catalog-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.catalog-pagination li {
	margin: 0;
}

.catalog-pagination a,
.catalog-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.7rem;
	border-radius: 8px;
	border: 1px solid var(--rer-border);
	color: var(--rer-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
}

.catalog-pagination .current,
.catalog-pagination a:hover {
	border-color: var(--rer-burgundy);
	color: var(--rer-burgundy);
}

.related.products .section-head {
	margin-bottom: 1.25rem;
}

.related.products .section-head h2 {
	margin: 0 0 0.35rem;
}

.related.products .section-head p {
	margin: 0;
	color: var(--rer-muted);
}

.card.product-tile .card__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	object-position: center;
}

/* Neutralize leftover WC wrappers if any */
.woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb,
.woocommerce-tabs,
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
	float: none !important;
	width: auto !important;
	margin: 0;
}


