/* ==========================================================================
   Teploexpert — основные стили
   ========================================================================== */

:root {
	--c-brand: #e3181f;
	--c-brand-dark: #b9121a;
	--c-brand-soft: #fdecec;
	--c-navy: #143c54;
	--c-navy-dark: #0d2a3c;
	--c-ink: #1b2430;
	--c-muted: #5b6672;
	--c-line: #e3e7eb;
	--c-surface: #f3f5f7;
	--c-white: #fff;
	--c-success: #1f9d55;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 6px 24px rgba(20, 60, 84, .08);
	--shadow-lg: 0 18px 50px rgba(20, 60, 84, .18);
	--container: 1240px;
	--gutter: 20px;
	--header-h: 76px;
	--font: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* Сброс ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
html.is-locked { overflow: hidden; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--c-ink);
	background: var(--c-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--c-brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-brand-dark); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-weight: 700; line-height: 1.25; color: var(--c-ink); }
h1 { font-size: clamp(26px, 3.6vw, 40px); }
h2 { font-size: clamp(22px, 2.8vw, 32px); }
h3 { font-size: clamp(18px, 1.8vw, 22px); }
h4 { font-size: 18px; }
p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.screen-reader-text, .teplo-hp, .visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; padding: 10px 16px; background: var(--c-ink); color: #fff; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.container--narrow { max-width: calc(860px + var(--gutter) * 2); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 40px; padding-bottom: 60px; }

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

.btn, .wp-block-button__link, .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 24px;
	border: 2px solid transparent;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
	text-decoration: none;
}
.btn:active, .wp-block-button__link:active { transform: translateY(1px); }
.btn--primary, .wp-block-button__link, .button.alt, .button {
	background: var(--c-brand);
	color: #fff;
	box-shadow: 0 6px 16px rgba(227, 24, 31, .25);
}
.btn--primary:hover, .wp-block-button__link:hover, .button:hover { background: var(--c-brand-dark); color: #fff; }
.btn--outline { background: transparent; border-color: var(--c-brand); color: var(--c-brand); }
.btn--outline:hover { background: var(--c-brand); color: #fff; }
.btn--outline-light { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--outline-light:hover, .btn--outline-light:focus-visible { background: #fff; border-color: #fff; color: var(--c-navy-dark, #0d2a3c); }
.btn--ghost { background: transparent; color: var(--c-muted); padding-left: 12px; padding-right: 12px; }
.btn--ghost:hover { color: var(--c-ink); }
.btn--lg { min-height: 56px; padding: 14px 32px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.is-style-outline .wp-block-button__link { background: transparent; border-color: currentColor; color: var(--c-brand); box-shadow: none; }

.link-dashed {
	color: var(--c-navy);
	font-size: 14px;
	font-weight: 500;
	border-bottom: 1px dashed currentColor;
}
.link-dashed:hover { color: var(--c-brand); }

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

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(20, 60, 84, .1); }
.admin-bar .site-header { top: 32px; }

.topbar { background: var(--c-surface); font-size: 13px; color: var(--c-muted); }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 36px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.topbar__item .icon { color: var(--c-brand); }
a.topbar__item:hover { color: var(--c-brand); }
.topbar__nav { margin-left: auto; }
.topbar__menu { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.topbar__item { white-space: nowrap; }
.topbar__menu a { color: var(--c-ink); font-weight: 500; }
.topbar__menu a:hover, .topbar__menu .current-menu-item a { color: var(--c-brand); }

.header-main__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.header-logo { flex: none; }
.header-logo img, .custom-logo { max-height: 52px; width: auto; }
.logo--text { display: flex; flex-direction: column; line-height: 1.1; color: var(--c-ink); }
.logo__mark { font-weight: 800; font-size: 22px; letter-spacing: .02em; color: var(--c-brand); }
.logo__sub { font-size: 11px; color: var(--c-muted); text-transform: uppercase; letter-spacing: .06em; }


.header-search { position: relative; flex: 1 1 auto; display: flex; min-width: 0; }
.header-search input {
	width: 100%;
	height: 46px;
	padding: 0 48px 0 16px;
	border: 2px solid var(--c-line);
	border-radius: var(--radius-sm);
	background: #fff;
	transition: border-color .15s;
}
.header-search input:focus { border-color: var(--c-brand); outline: none; }
.header-search button {
	position: absolute; right: 4px; top: 4px;
	width: 38px; height: 38px;
	border: 0; border-radius: 6px;
	background: transparent;
	color: var(--c-muted);
	cursor: pointer;
}
.header-search button:hover { color: var(--c-brand); }

.header-contacts { display: flex; flex-direction: column; align-items: flex-end; flex: none; line-height: 1.3; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.header-phone .icon { color: var(--c-brand); }
.header-callback { font-size: 13px; color: var(--c-brand); border-bottom: 1px dashed currentColor; }
.header-cta { flex: none; min-height: 46px; padding: 10px 18px; }

.header-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--radius-sm); color: var(--c-ink); flex: none; }
.header-icon:hover { background: var(--c-surface); color: var(--c-brand); }
.header-icon--phone { display: none; }
.cart-count {
	position: absolute; top: 2px; right: 0;
	min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 10px;
	background: var(--c-brand);
	color: #fff;
	font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
}
.header-burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; color: var(--c-ink); cursor: pointer; }

/* Мега-меню каталога */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--c-line); box-shadow: var(--shadow-lg); max-height: calc(100vh - 140px); overflow: auto; }
.mega__inner { display: grid; grid-template-columns: 1fr 260px; gap: 32px; padding-top: 28px; padding-bottom: 32px; }
.mega__menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 32px; margin: 0; padding: 0; list-style: none; }
.mega__menu > li > a { display: block; margin-bottom: 8px; font-weight: 700; color: var(--c-ink); font-size: 16px; }
.mega__menu > li > a:hover { color: var(--c-brand); }
.mega__menu ul { margin: 0; padding: 0; list-style: none; }
.mega__menu ul a { display: block; padding: 3px 0; color: var(--c-muted); font-size: 14px; }
.mega__menu ul a:hover { color: var(--c-brand); }
.mega__menu ul ul { padding-left: 12px; border-left: 2px solid var(--c-line); margin: 2px 0 6px; }
.mega__menu .count { display: none; }
.mega__promo { padding: 24px; border-radius: var(--radius); background: var(--c-navy); color: #fff; align-self: start; }
.mega__promo-title { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.mega__promo p { font-size: 14px; opacity: .9; }

/* Мобильное меню */
.mobile-nav { position: fixed; inset: 0; z-index: 300; }
.mobile-nav__overlay { position: absolute; inset: 0; background: rgba(13, 42, 60, .5); opacity: 0; transition: opacity .2s; }
.mobile-nav__panel {
	position: absolute; left: 0; top: 0; bottom: 0;
	width: min(380px, 88vw);
	padding: 16px 20px 100px;
	background: #fff;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform .25s var(--ease);
}
.mobile-nav.is-open .mobile-nav__overlay { opacity: 1; }
.mobile-nav.is-open .mobile-nav__panel { transform: none; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mobile-nav__head img { max-height: 40px; width: auto; }
.mobile-nav__close { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.mobile-nav__search { position: relative; margin-bottom: 16px; }
.mobile-nav__search input { width: 100%; height: 46px; padding: 0 46px 0 14px; border: 2px solid var(--c-line); border-radius: var(--radius-sm); }
.mobile-nav__search button { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; background: none; }
.mobile-nav__title { margin: 20px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 700; }
.mobile-nav__menu, .mobile-nav__menu ul { margin: 0; padding: 0; list-style: none; }
.mobile-nav__menu li { position: relative; border-bottom: 1px solid var(--c-line); }
.mobile-nav__menu a { display: block; padding: 12px 44px 12px 0; color: var(--c-ink); font-weight: 600; }
.mobile-nav__menu ul { display: none; padding-left: 14px; border-top: 1px solid var(--c-line); }
.mobile-nav__menu ul li:last-child { border-bottom: 0; }
.mobile-nav__menu ul a { font-weight: 500; color: var(--c-muted); padding-top: 9px; padding-bottom: 9px; }
.mobile-nav__menu .is-open > ul { display: block; }
.mobile-nav__menu .count { display: none; }
.submenu-toggle { position: absolute; right: 0; top: 4px; width: 40px; height: 40px; border: 0; background: none; color: var(--c-muted); cursor: pointer; transition: transform .2s; }
.is-open > .submenu-toggle { transform: rotate(180deg); }
.mobile-nav__contacts { display: grid; gap: 12px; margin-top: 24px; }
.mobile-nav__contacts a:not(.btn) { display: inline-flex; align-items: center; gap: 8px; color: var(--c-ink); font-weight: 600; }

/* Нижняя панель на мобильных */
.mobile-bar { display: none; }

/* Заголовок страницы и крошки ---------------------------------------------- */

.page-head { padding-top: 24px; padding-bottom: 8px; }
.page-title { margin-bottom: 16px; }
.breadcrumbs { margin-bottom: 12px; font-size: 13px; color: var(--c-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--c-line); }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-brand); }
.breadcrumbs__sep { margin: 0 8px; color: var(--c-line); }
.archive-description { max-width: 860px; color: var(--c-muted); }

/* Контент страниц (блоки) ------------------------------------------------- */

.entry-content > * { max-width: calc(var(--container) + var(--gutter) * 2); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.entry-content > .alignfull { max-width: none; padding-left: 0; padding-right: 0; }
.entry-content > .alignwide { max-width: 1400px; }
.entry-content--page { padding-bottom: 60px; }
.entry-content--page > p, .entry-content--page > ul, .entry-content--page > ol, .entry-content--page > h2, .entry-content--page > h3 { max-width: calc(860px + var(--gutter) * 2); margin-left: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.entry-content .wp-block-image img { border-radius: var(--radius-sm); }
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { padding: 10px 12px; border: 1px solid var(--c-line); }
.entry-content .wp-block-table tr:nth-child(even) { background: var(--c-surface); }
.entry-content ul:not([class*="te-"]):not(.wp-block-gallery) li::marker { color: var(--c-brand); }

/* Секции, перенесённые из Elementor */
.te-section { padding: 28px 0; }
.entry-content--landing > .te-section:first-child { padding-top: 0; }
.te-section > * { max-width: var(--container); margin-left: auto !important; margin-right: auto !important; padding-left: var(--gutter); padding-right: var(--gutter); }
.te-section > .te-hero { padding-left: 0; padding-right: 0; max-width: none; }
.te-section > h2.has-text-align-center { margin-top: 28px; }
.te-section--dark, .te-section.is-style-dark, .is-style-dark {
	position: relative;
	padding: 56px 0;
	background-color: var(--c-navy);
	background-position: center;
	color: #fff;
}
.te-section--dark::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 42, 60, .92), rgba(13, 42, 60, .7)); pointer-events: none; }
.te-section--dark > * { position: relative; }
.te-section--dark h1, .te-section--dark h2, .te-section--dark h3, .te-section--dark h4 { color: #fff; }
.te-section--dark a:not(.btn):not(.wp-block-button__link) { color: #fff; text-decoration: underline; }
.te-section--dark .teplo-form a:not(.btn) { color: var(--c-brand); text-decoration: none; }

.te-grid { display: grid; gap: 24px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); align-items: start; }
.te-grid--2 { --cols: 2; }
.te-grid--3 { --cols: 3; }
.te-grid--4 { --cols: 4; }
.te-grid > * { margin: 0; min-width: 0; }
.te-col > :last-child { margin-bottom: 0; }

.te-card, .is-style-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0 0 20px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.te-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.te-card > * { margin-left: 20px; margin-right: 20px; }
.te-card > .te-card__image { position: relative; flex: none; margin: 0 0 16px; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.te-card__image a { display: block; height: 100%; }
.te-card > .te-card__image img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: contain; border-radius: 0 !important; }
.te-card__title { font-size: 18px; margin-bottom: 8px; }
.te-card__title a { color: var(--c-ink); }
.te-card__title a:hover { color: var(--c-brand); }
.te-card ul { padding-left: 18px; font-size: 14px; color: var(--c-muted); }

.te-feature { padding: 24px; border-radius: var(--radius); background: var(--c-surface); height: 100%; }
.te-feature__title { font-size: 18px; margin-bottom: 8px; }
.te-feature__title::before { content: ""; display: block; width: 36px; height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--c-brand); }
.te-feature > :last-child { margin-bottom: 0; }

.te-stat { text-align: center; padding: 16px; }
.te-stat__num { margin: 0; font-size: clamp(40px, 5vw, 60px); font-weight: 800; line-height: 1; color: var(--c-brand); }
.te-stat__label { margin-top: 10px; color: var(--c-muted); font-weight: 500; }

/* Первый экран */
.te-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: clamp(460px, 62vh, 640px);
	padding: 64px max(var(--gutter), calc((100% - var(--container)) / 2)) !important;
	background-color: var(--c-navy);
	background-position: center right;
	color: #fff;
	isolation: isolate;
}
.te-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 30, 44, .88) 0%, rgba(10, 30, 44, .6) 50%, rgba(10, 30, 44, .2) 100%); }
.te-hero > * { max-width: 720px; margin-left: 0 !important; margin-right: 0 !important; }
.te-hero__title, .te-hero h1, .te-hero h2 { color: #fff; font-size: clamp(28px, 4.2vw, 48px); font-weight: 800; line-height: 1.15; text-transform: uppercase; margin-bottom: 18px; }
.te-hero__text { font-size: clamp(16px, 1.6vw, 20px); opacity: .95; margin-bottom: 24px; }
.te-hero__badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 32px; padding: 0; list-style: none; max-width: 760px; }
.te-hero__badges li { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px); font-size: 14px; font-weight: 600; }
.te-hero__badges li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-brand); flex: none; }
.te-hero .wp-block-button__link { min-height: 58px; padding: 16px 36px; font-size: 17px; }
.te-hero--extra { display: none; }

/* Галерея-карусель */
.wp-block-gallery.is-style-carousel {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 16px !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.wp-block-gallery.is-style-carousel::-webkit-scrollbar { display: none; }
.wp-block-gallery.is-style-carousel > .wp-block-image {
	flex: 0 0 calc((100% - 48px) / 4) !important;
	width: auto !important;
	scroll-snap-align: start;
	margin: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	background: #fff;
}
.wp-block-gallery.is-style-carousel > .wp-block-image img { max-height: 320px; width: auto !important; height: auto !important; object-fit: contain !important; flex: none !important; }
.carousel-nav { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.carousel-nav__btn { width: 44px; height: 44px; border: 1px solid var(--c-line); border-radius: 50%; background: #fff; font-size: 24px; line-height: 1; color: var(--c-ink); cursor: pointer; transition: all .15s; }
.carousel-nav__btn:hover { border-color: var(--c-brand); background: var(--c-brand); color: #fff; }

/* Записи: карточки (лента, страница «Блог», «Читайте также») */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { position: relative; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.post-card__thumb { aspect-ratio: 16 / 10; background: var(--c-surface); overflow: hidden; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.post-card__title { margin: 0 0 8px; font-size: 18px; line-height: 1.35; }
.post-card__title a { color: var(--c-ink); }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover .post-card__title a { color: var(--c-brand); }
.post-card__excerpt { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { margin-top: auto; color: var(--c-brand); font-weight: 600; font-size: 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--c-muted); margin-bottom: 8px; }
.post-meta span::before { content: "·"; margin-right: 14px; }
.te-section > .post-grid { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Статья: одна колонка, заголовок, обложка и текст по одной линии */
.article { max-width: calc(760px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter) 24px; }
.article__head { padding-top: 24px; }
.article__title { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; }
.article__head .post-meta { margin-bottom: 24px; font-size: 14px; }
.article__cover { margin: 0 0 28px; }
.article__cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); display: block; }
.post-toc { margin: 0 0 32px; padding: 18px 22px; border-radius: var(--radius); background: var(--c-surface); }
.post-toc summary { font-weight: 700; cursor: pointer; }
.post-toc ol { margin: 12px 0 0; padding-left: 20px; }
.post-toc li { margin: 6px 0; line-height: 1.4; }
.post-toc a { color: var(--c-ink); }
.post-toc a:hover { color: var(--c-brand); }
.entry-content--post { font-size: 17px; line-height: 1.7; color: var(--c-ink); }
.entry-content--post > * { max-width: none; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.entry-content--post > * + * { margin-top: 1em; }
.entry-content--post p { margin: 0 0 1em; }
.entry-content--post h2 { margin: 1.8em 0 .6em; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; scroll-margin-top: 90px; }
.entry-content--post h3 { margin: 1.5em 0 .5em; font-size: 21px; line-height: 1.3; }
.entry-content--post h4 { margin: 1.3em 0 .4em; font-size: 18px; }
.entry-content--post ul, .entry-content--post ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.entry-content--post li { margin: .35em 0; }
.entry-content--post li > ul, .entry-content--post li > ol { margin: .35em 0 0; }
.entry-content--post img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.entry-content--post figure { margin: 1.5em 0; }
.entry-content--post figcaption { margin-top: 6px; font-size: 14px; color: var(--c-muted); text-align: center; }
.entry-content--post blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--c-brand); color: var(--c-muted); }
.entry-content--post a { color: var(--c-brand); text-decoration: underline; text-underline-offset: 2px; }
.entry-content--post .table-scroll, .entry-content--post .wp-block-table { margin: 1.5em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content--post table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.entry-content--post th, .entry-content--post td { padding: 10px 12px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.entry-content--post tr:first-child td, .entry-content--post th { background: var(--c-surface); font-weight: 700; }
.entry-content--post .te-section, .entry-content--post .alignfull, .entry-content--post .alignwide { max-width: none; padding-left: 0; padding-right: 0; }
.article__ask { margin: 40px 0 0; }
.article-related__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.article-related__head h2 { margin: 0; }
.article-related__head a { font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) {
	.entry-content--post { font-size: 16px; }
}
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
/* Только ссылки и текущая страница: у WooCommerce класс page-numbers есть и у самого списка <ul>. */
a.page-numbers, span.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); line-height: 1; text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
a.page-numbers:hover { border-color: var(--c-brand); color: var(--c-brand); }
span.page-numbers.current { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
span.page-numbers.dots { border-color: transparent; background: none; }
ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; border: 0; background: none; list-style: none; }
.post-navigation .nav-links { justify-content: space-between; }

/* Формы ------------------------------------------------------------------ */

.teplo-form {
	position: relative;
	padding: 28px;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow);
	color: var(--c-ink);
	text-align: left;
}
.teplo-form a { color: var(--c-brand); }
.te-section--dark .teplo-form, .cta-band .teplo-form { box-shadow: var(--shadow-lg); }
.teplo-form__head { margin-bottom: 18px; }
.teplo-form__title { margin: 0 0 6px; font-size: 22px; font-weight: 700; line-height: 1.25; }
.teplo-form__subtitle { margin: 0; color: var(--c-muted); font-size: 14px; }
.teplo-form__steps { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--c-brand); text-transform: uppercase; letter-spacing: .04em; }
.teplo-form__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 16px; margin-bottom: 16px; }
.teplo-form__group { grid-column: 1 / -1; margin: 6px 0 -4px; font-weight: 700; font-size: 14px; }
.teplo-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.teplo-field--half { grid-column: span 3; }
.teplo-field--third { grid-column: span 2; }
.teplo-field__label { font-size: 13px; font-weight: 600; color: var(--c-muted); }
.teplo-field .req { color: var(--c-brand); }
.teplo-field input, .teplo-field select, .teplo-field textarea {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1.5px solid var(--c-line);
	border-radius: var(--radius-sm);
	background: #fff;
	font-size: 16px;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}
.teplo-field select {
	padding-right: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='%235b6672'%3E%3Cpath d='M7.4 8.6 12 13.2l4.6-4.6L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
}
.teplo-field textarea { min-height: 88px; resize: vertical; }
.teplo-field input:focus, .teplo-field select:focus, .teplo-field textarea:focus { border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(227, 24, 31, .12); outline: none; }
.teplo-field input[type="file"] { padding: 10px; min-height: 0; font-size: 14px; background: var(--c-surface); border-style: dashed; cursor: pointer; }
.teplo-field__hint { font-size: 12px; color: var(--c-muted); }
.teplo-field.has-error input, .teplo-field.has-error select, .teplo-field.has-error textarea { border-color: var(--c-brand); background: var(--c-brand-soft); }
.teplo-field__error { font-size: 12px; color: var(--c-brand); font-weight: 600; }
.teplo-form__consent { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; font-size: 12px; color: var(--c-muted); line-height: 1.4; cursor: pointer; flex-wrap: wrap; }
.teplo-form__consent input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--c-brand); }
.teplo-form__consent span { flex: 1; min-width: 0; }
.teplo-form__consent.has-error { color: var(--c-brand); }
.teplo-form__submit, .teplo-form__next { width: 100%; min-height: 54px; font-size: 16px; }
.teplo-form__final { display: flex; flex-wrap: wrap; gap: 8px; }
.teplo-form__final > .teplo-form__consent { flex: 1 0 100%; }
.teplo-form__final .teplo-form__submit { flex: 1; }
.teplo-form__prev { flex: none; }
.teplo-form.is-sending .teplo-form__submit { opacity: .7; pointer-events: none; }
.teplo-form__message:empty { display: none; }
.teplo-form__message { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; }
.teplo-form__message.is-success { background: #e8f7ee; color: var(--c-success); }
.teplo-form__message.is-error { background: var(--c-brand-soft); color: var(--c-brand-dark); }
.teplo-form.is-sent .teplo-form__step, .teplo-form.is-sent .teplo-form__final { display: none; }
.teplo-form.is-sent .teplo-form__message { margin-top: 0; padding: 24px; font-size: 16px; text-align: center; }

.teplo-form__product { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 12px; border-radius: var(--radius-sm); background: var(--c-surface); }
.teplo-form__product img { width: 64px; height: 64px; object-fit: contain; border-radius: 6px; background: #fff; flex: none; }
.teplo-form__product-name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.teplo-form__product-price { font-weight: 700; color: var(--c-brand); }

/* Строчная форма (имя + телефон + кнопка) */
.teplo-form--row { padding: 20px; }
.teplo-form--row .teplo-form__step { display: contents; }
@media (min-width: 900px) {
	.teplo-form--row { display: grid; grid-template-columns: 1fr auto; gap: 0 16px; align-items: end; }
	.teplo-form--row .teplo-form__grid { grid-template-columns: 1fr 1fr; margin-bottom: 0; }
	.teplo-form--row .teplo-field--half { grid-column: span 1; }
	.teplo-form--row .teplo-form__final { display: contents; }
	.teplo-form--row .teplo-form__submit { width: auto; padding-left: 32px; padding-right: 32px; min-height: 48px; }
	.teplo-form--row .teplo-form__consent { grid-column: 1 / -1; grid-row: 2; margin: 12px 0 0; }
	.teplo-form--row .teplo-form__message { grid-column: 1 / -1; }
}

/* Форма-калькулятор на странице */
.teplo-form--calc.teplo-form--inline { max-width: 820px; margin-left: auto; margin-right: auto; border-top: 4px solid var(--c-brand); }

/* Модальное окно ----------------------------------------------------------- */

.modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(13, 42, 60, .6); opacity: 0; transition: opacity .2s; }
.modal__dialog {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	border-radius: var(--radius);
	background: #fff;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	transform: translateY(16px) scale(.98);
	transition: opacity .2s, transform .2s var(--ease);
}
.modal.is-open .modal__overlay { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close { position: absolute; right: 8px; top: 8px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--c-muted); cursor: pointer; }
.modal__close:hover { background: var(--c-surface); color: var(--c-ink); }
.modal .teplo-form { box-shadow: none; padding: 32px 28px 28px; }
.modal .teplo-form__title { padding-right: 36px; }
.modal .teplo-form--calc { max-width: none; }
.modal:has(.teplo-form--calc) .modal__dialog { max-width: 720px; }

/* Полоса CTA --------------------------------------------------------------- */

.cta-band { padding: 48px 0; background: var(--c-navy); color: #fff; }
.cta-band__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.cta-band__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.cta-band__text p:last-child { opacity: .85; margin: 0; }

/* Контакты ----------------------------------------------------------------- */

.contacts-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contacts-card__item { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--radius); background: var(--c-surface); }
.contacts-card__item a, .contacts-card__item > span:not(.contacts-card__label) { display: inline-flex; align-items: center; gap: 8px; color: var(--c-ink); font-weight: 600; }
.contacts-card__item .icon { color: var(--c-brand); flex: none; }
.contacts-card__label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 700; }

/* 404 ---------------------------------------------------------------------- */

.error-404 { text-align: center; max-width: 720px; }
.error-404__code { font-size: clamp(80px, 14vw, 140px); font-weight: 800; color: var(--c-brand); line-height: 1; margin-bottom: 8px; }
.error-404__search { max-width: 520px; margin: 24px auto; }
.error-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

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

.site-footer { margin-top: 0; padding-top: 56px; background: var(--c-navy-dark); color: rgba(255, 255, 255, .78); font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.site-footer__logo { margin-bottom: 16px; }
.site-footer__logo img { height: 46px; width: auto; }
.site-footer .logo__sub { color: rgba(255, 255, 255, .6); }
.site-footer__title { margin: 0 0 14px; color: #fff; font-weight: 700; font-size: 16px; }
.site-footer__menu { margin: 0; padding: 0; list-style: none; }
.site-footer__menu li { margin-bottom: 8px; }
.site-footer__menu .count, .site-footer__menu .children { display: none; }
.site-footer a:not(.btn) { color: rgba(255, 255, 255, .78); }
.site-footer a:not(.btn):hover { color: #fff; }
.site-footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer__contacts > a:not(.btn), .site-footer__contacts > span { display: inline-flex; gap: 8px; align-items: flex-start; }
.site-footer__contacts .js-phone { color: #fff; font-weight: 700; font-size: 16px; }
.site-footer__contacts .icon { color: var(--c-brand); flex: none; margin-top: 2px; }
.site-footer__contacts .btn { margin-top: 6px; }
.site-footer__bottom { padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: rgba(255, 255, 255, .5); }
.site-footer__disclaimer { max-width: 960px; }
.site-footer__copy { margin: 0; }

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

@media (max-width: 1360px) {
	.topbar__address { display: none; }
}

@media (max-width: 1200px) {
	.header-cta { display: none; }
	.topbar__item:first-child { display: none; }
}

@media (max-width: 1024px) {
	:root { --header-h: 64px; }
	.topbar { display: none; }
	.header-burger { display: inline-flex; align-items: center; justify-content: center; }
	.header-catalog-btn, .header-contacts, .header-search { display: none; }
	.header-main__inner { gap: 8px; }
	.header-logo { flex: 1; }
	.header-logo img, .custom-logo { max-height: 42px; }
	.header-icon--phone { display: inline-flex; color: var(--c-brand); }
	.mega { display: none !important; }

	.te-grid--4 { --cols: 2; }
	.te-grid--3 { --cols: 2; }
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.cta-band__inner { grid-template-columns: 1fr; }
	.wp-block-gallery.is-style-carousel > .wp-block-image { flex-basis: calc((100% - 16px) / 2) !important; }

	body { padding-bottom: 64px; }
	.mobile-bar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		display: grid; grid-template-columns: repeat(4, 1fr);
		height: 64px;
		padding-bottom: env(safe-area-inset-bottom);
		background: #fff;
		border-top: 1px solid var(--c-line);
		box-shadow: 0 -4px 16px rgba(20, 60, 84, .08);
	}
	.mobile-bar__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--c-ink); font-size: 11px; font-weight: 600; }
	.mobile-bar__item:first-child { color: var(--c-brand); }
	.mobile-bar__item .cart-count { top: 4px; right: calc(50% - 22px); }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 0; }
}

@media (max-width: 640px) {
	:root { --gutter: 16px; }
	.te-grid--2, .te-grid--3 { --cols: 1; }
	.te-grid--4 { --cols: 2; gap: 12px; }
	.te-grid--4 .te-card__title { font-size: 15px; }
	.te-grid--4 .te-card > * { margin-left: 12px; margin-right: 12px; }
	.te-hero { min-height: 0; padding-top: 48px !important; padding-bottom: 48px !important; }
	.te-hero::before { background: rgba(10, 30, 44, .72); }
	.te-hero__badges li { flex: 1 1 100%; }
	.te-hero .wp-block-buttons, .te-hero .wp-block-button, .te-hero .wp-block-button__link { width: 100%; }
	.post-grid { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.teplo-form { padding: 20px 16px; }
	.teplo-form__grid { grid-template-columns: 1fr 1fr; }
	.teplo-field--half { grid-column: 1 / -1; }
	.teplo-field--third { grid-column: span 1; }
	.teplo-field--third:has(select) { grid-column: 1 / -1; }
	.modal { padding: 0; align-items: flex-end; }
	.modal__dialog { max-height: 92vh; border-radius: var(--radius) var(--radius) 0 0; }
	.modal .teplo-form { padding: 28px 16px 20px; }
	.wp-block-gallery.is-style-carousel > .wp-block-image { flex-basis: 78% !important; }
	.te-stat__num { font-size: 40px; }
}

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

/* Заголовки внутри сеток и карточек — компактнее, ссылки в заголовках цветом текста */
.entry-content :is(h1, h2, h3, h4) a { color: inherit; }
.entry-content :is(h1, h2, h3, h4) a:hover { color: var(--c-brand); }
.te-grid :is(h2, h3) { font-size: clamp(18px, 1.6vw, 22px); }
.te-grid .wp-block-image { margin-bottom: 14px; }
.te-grid .wp-block-image img { width: 100%; object-fit: cover; }

/* Информационные страницы (доставка, оплата) */
.te-lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--c-ink); max-width: 860px; }
.te-note { color: var(--c-muted); font-size: 15px; margin-top: 20px; }
.te-price { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: var(--c-brand); }
.te-guarantee { margin-top: 28px; font-size: 18px; font-weight: 700; color: var(--c-navy); }
.te-section--muted { background: var(--c-surface); padding: 48px 0; }
.te-feature--white { background: #fff; box-shadow: var(--shadow); }
.te-card--pad { padding: 28px; }
.te-card--pad > * { margin-left: 0; margin-right: 0; }
.te-card--pad:hover { transform: none; }
.te-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 !important; list-style: none; }
.te-chips li { padding: 8px 14px; border: 1px solid var(--c-line); border-radius: 20px; background: #fff; font-size: 14px; font-weight: 600; }
.te-chips li::marker { content: none; }
.te-promo {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "label btn" "title btn";
	align-items: center;
	gap: 4px 24px;
	margin-top: 24px;
	padding: 28px 32px;
	border-radius: var(--radius);
	background: linear-gradient(120deg, var(--c-brand), var(--c-brand-dark));
	color: #fff;
}
.te-promo--navy { background: linear-gradient(120deg, var(--c-navy), var(--c-navy-dark)); }
.te-promo > * { margin: 0 !important; }
.te-promo__label { grid-area: label; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.te-promo__title { grid-area: title; font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; line-height: 1.2; }
.te-promo .wp-block-buttons { grid-area: btn; }
.is-style-light .wp-block-button__link { background: #fff; color: var(--c-ink); box-shadow: none; }
.is-style-light .wp-block-button__link:hover { background: var(--c-surface); color: var(--c-brand); }
@media (max-width: 640px) {
	.te-promo { grid-template-columns: 1fr; grid-template-areas: "label" "title" "btn"; padding: 22px 18px; gap: 8px; }
	.te-promo .wp-block-button, .te-promo .wp-block-button__link { width: 100%; }
}
.te-section > .te-lead { max-width: var(--container); }
.te-section > .te-promo { max-width: calc(var(--container) - var(--gutter) * 2); }
@media (max-width: 1280px) { .te-section > .te-promo { margin-left: var(--gutter) !important; margin-right: var(--gutter) !important; } }

/* Логотип (SVG) ------------------------------------------------------------ */
.logo { display: inline-flex; align-items: center; }
.logo img, .header-logo .custom-logo { display: block; height: 50px; width: auto; max-width: none; }
.mobile-nav__head .logo img { height: 38px; }
.icon { flex: none; }

/* Мегаменю: разделы слева, подразделы справа -------------------------------- */
.mega { padding: 0; }
.mega__inner { display: grid; grid-template-columns: 260px minmax(0, 1fr) 240px; gap: 0; padding-top: 0; padding-bottom: 0; min-height: 420px; }
.mega__rail { margin: 0; padding: 16px 0; list-style: none; border-right: 1px solid var(--c-line); }
.mega__rail-item a { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 0; color: var(--c-ink); font-weight: 600; font-size: 15px; border-radius: 0; }
.mega__rail-item a span { flex: 1; }
.mega__rail-item .icon-chevron_right { color: var(--c-muted); transition: transform .15s; }
.mega__rail-item.is-active a { color: var(--c-brand); background: linear-gradient(90deg, transparent, var(--c-brand-soft)); }
.mega__rail-item.is-active .icon-chevron_right { color: var(--c-brand); transform: translateX(3px); }
.mega__panels { position: relative; padding: 20px 28px 28px; }
.mega__panel { display: none; animation: mega-in .18s var(--ease); }
.mega__panel.is-active { display: block; }
@keyframes mega-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.mega__panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.mega__panel-title { font-size: 22px; font-weight: 800; color: var(--c-ink); }
.mega__all { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.mega__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mega__card { padding: 12px; border: 1px solid var(--c-line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.mega__card:hover { border-color: transparent; box-shadow: var(--shadow); }
.mega__card-link { display: flex; align-items: center; gap: 10px; color: var(--c-ink); font-weight: 700; font-size: 14px; line-height: 1.3; }
.mega__card-link:hover { color: var(--c-brand); }
.mega__sub { margin: 10px 0 0; padding: 10px 0 0; list-style: none; border-top: 1px dashed var(--c-line); }
.mega__sub a { display: block; padding: 3px 0; font-size: 13px; color: var(--c-muted); }
.mega__sub a::before { content: "•"; margin-right: 6px; color: var(--c-brand); }
.mega__sub a:hover { color: var(--c-brand); }
.mega__promo { margin: 20px 0 20px; display: flex; flex-direction: column; gap: 8px; align-self: start; }
.mega__promo .icon { color: #fff; opacity: .9; }
.menu-thumb { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--c-line); }
.mega__rail .menu-thumb { width: 32px; height: 32px; border-radius: 8px; }
.menu-thumb--icon { display: inline-flex; align-items: center; justify-content: center; color: var(--c-muted); }
.mega__rail-item.is-active .menu-thumb--icon { color: var(--c-brand); background: #fff; }

/* Мобильное меню каталога: уровни открываются вправо ----------------------- */
.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }
.mnav-list { margin: 0; padding: 0; list-style: none; }
.mnav-item { border-bottom: 1px solid var(--c-line); }
.mnav-item:last-child { border-bottom: 0; }
.mnav > .mnav-list > .mnav-item:last-child { border-bottom: 1px solid var(--c-line); }
.mnav-item > a, .mnav-toggle {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 0;
	border: 0; background: none; color: var(--c-ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer;
}
.mnav-toggle > span, .mnav-item > a > span { flex: 1; }
.mnav-toggle .icon { flex: none; color: var(--c-muted); transition: transform .2s var(--ease); }
.mnav-item.is-open > .mnav-toggle { color: var(--c-ink); font-weight: 700; }
.mnav-item.is-open > .mnav-toggle .icon { transform: rotate(180deg); color: var(--c-brand); }
/* Плавное раскрытие по высоте */
.mnav-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s var(--ease); }
.mnav-sub__inner { overflow: hidden; min-height: 0; }
.mnav-item.is-open > .mnav-sub { grid-template-rows: 1fr; }
.mnav-sub .mnav-list { margin: 0 0 10px 2px; padding-left: 14px; border-left: 2px solid var(--c-line); }
.mnav-sub .mnav-item { border-bottom: 0; }
.mnav-sub .mnav-item > a, .mnav-sub .mnav-toggle { min-height: 42px; padding: 8px 0; font-weight: 500; font-size: 15px; color: var(--c-ink-2, #3a4652); }
.mnav-sub .mnav-sub .mnav-item > a { font-size: 14px; color: var(--c-muted); min-height: 38px; }
.mnav-item--all > a { color: var(--c-brand) !important; font-weight: 600 !important; }
.mnav-item--all .icon { flex: none; }
.mnav-item.is-current > a { color: var(--c-brand); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .mnav-sub, .mnav-toggle .icon { transition: none; } }

/* Мегаменю: подпункты с квадратной картинкой под названием ------------------ */
.mega__rail-item a { padding-left: 4px; }
.mega__cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.mega__card-link { flex-direction: column; align-items: stretch; gap: 10px; }
.mega__card-title { display: block; }
.mega__card-link .menu-thumb { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: #fff; transition: transform .2s var(--ease); }
.mega__card-link:hover .menu-thumb { transform: scale(1.03); }

/* Тёмная полоса навигации: «Каталог» + ключевые категории ------------------- */
.key-nav { position: relative; background: var(--c-navy-dark); color: #fff; }
.key-nav__inner { display: flex; align-items: stretch; gap: 0; }
.key-nav__catalog {
	flex: none; display: inline-flex; align-items: center; gap: 8px;
	padding: 0 22px; margin-right: 0; border: 0; background: var(--c-brand); color: #fff;
	font: inherit; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
	transition: background .15s;
}
.key-nav__catalog:hover, .key-nav__catalog.is-active { background: var(--c-brand-dark); }
.key-nav__catalog:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.key-nav__list { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; min-width: 0; }
.key-nav__item > a {
	position: relative; display: flex; align-items: center; gap: 4px; height: 100%;
	padding: 14px 16px; color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.key-nav__item > a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; transition: background .15s; }
.key-nav__item > a .icon { color: rgba(255, 255, 255, .6); transition: transform .15s; }
.key-nav__item:hover > a { background: rgba(255, 255, 255, .06); color: #fff; }
.key-nav__item.is-active > a { background: rgba(255, 255, 255, .08); color: #fff; }
.key-nav__item.is-active > a::after { background: var(--c-brand); }
.key-nav__extra { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 4px 0 16px; color: #ffb3b5; font-weight: 600; font-size: 14px; white-space: nowrap; }
.key-nav__extra:hover { color: #fff; }
.key-nav__drop { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; display: none; background: #fff; color: var(--c-ink); box-shadow: var(--shadow-lg); }
.key-nav__item.has-drop:hover > .key-nav__drop, .key-nav__item.has-drop:focus-within > .key-nav__drop { display: block; }
.key-nav__item.has-drop:hover > a .icon { transform: rotate(180deg); }
.key-nav__drop-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; max-width: var(--container); margin: 0 auto; padding: 22px var(--gutter) 24px; }
.key-nav__col { min-width: 200px; }
/* Панель раздела: пояснение и цифры | подразделы | подбор по задаче */
.kd { display: grid; grid-template-columns: 280px minmax(0, 1fr) 220px; gap: 32px; align-items: start; }
.kd__intro { padding-right: 24px; border-right: 1px solid var(--c-line); }
.kd__title { display: block; color: var(--c-ink); font-size: 18px; font-weight: 800; line-height: 1.25; }
.kd__title:hover { color: var(--c-brand); }
.kd__stats { margin: 6px 0 10px; color: var(--c-brand); font-weight: 700; font-size: 14px; }
.kd__text { margin: 0 0 16px; color: var(--c-muted); font-size: 14px; line-height: 1.5; }
.kd__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.kd__calc { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.kd__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 28px; }
.kd__group-title { display: block; color: var(--c-ink); font-weight: 700; font-size: 15px; }
.kd__group-title:hover { color: var(--c-brand); }
.kd__meta { display: block; margin: 2px 0 8px; color: var(--c-muted); font-size: 12px; }
.kd__list { margin: 0; padding: 0; list-style: none; }
.kd__list a { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--c-line); color: var(--c-ink); font-size: 14px; }
.kd__list li:last-child a { border-bottom: 0; }
.kd__list a:hover { color: var(--c-brand); }
.kd__list em { color: var(--c-muted); font-style: normal; font-size: 12px; }
.kd__group--brands .kd__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.kd__group--brands .kd__list a { justify-content: space-between; padding: 7px 10px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.kd__group--brands .kd__list li:last-child a { border-bottom: 1px solid var(--c-line); }
.kd__group--brands .kd__list a:hover { border-color: var(--c-brand); }
.kd__apps { padding: 16px; border-radius: var(--radius); background: var(--c-surface); }
.kd__apps-title { margin-bottom: 8px; font-weight: 700; font-size: 14px; color: var(--c-ink); }
.kd__apps ul { margin: 0; padding: 0; list-style: none; }
.kd__apps a { display: block; padding: 4px 0; color: var(--c-ink); font-size: 14px; }
.kd__apps a:hover { color: var(--c-brand); }
@media (max-width: 1200px) { .kd { grid-template-columns: 240px minmax(0, 1fr); } .kd__apps { display: none; } }
.key-nav__col-title { display: block; margin-bottom: 8px; color: var(--c-ink); font-weight: 700; }
.key-nav__col ul { margin: 0; padding: 0; list-style: none; }
.key-nav__col li a { display: block; padding: 3px 0; color: var(--c-muted); font-size: 14px; }
.key-nav__col a:hover { color: var(--c-brand); }
.key-nav__cta { display: flex; flex-direction: column; gap: 10px; margin-left: auto; align-items: flex-start; }
.key-nav__calc { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
@media (max-width: 1200px) {
	.key-nav__extra { display: none; }
	.key-nav__item > a { padding: 14px 12px; font-size: 14px; }
}
@media (max-width: 1024px) {
	.key-nav__inner { padding: 0; }
	.key-nav__catalog { display: none; }
	.key-nav__list { overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter); scroll-snap-type: x proximity; }
	.key-nav__list::-webkit-scrollbar { display: none; }
	.key-nav__item { scroll-snap-align: start; }
	.key-nav__item > a { padding: 11px 12px; font-size: 14px; }
	.key-nav__item > a .icon, .key-nav__drop { display: none !important; }
}
.mobile-nav__menu--key li.is-current > a { color: var(--c-brand); }
.mobile-nav__menu--key li.is-current > a::before { content: ""; display: inline-block; width: 4px; height: 18px; margin: 0 10px -3px 0; border-radius: 2px; background: var(--c-brand); }

/* Поле «файл»: своя кнопка вместо системной (в браузере она на английском) */
.teplo-file { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px; border: 1px dashed var(--c-line); border-radius: var(--radius-sm); background: var(--c-surface); cursor: pointer; transition: border-color .15s; }
.teplo-file:hover, .teplo-file:focus-within { border-color: var(--c-brand); }
.teplo-file input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.teplo-file__btn { flex: none; padding: 8px 14px; border-radius: 6px; background: #fff; border: 1px solid var(--c-line); font-size: 14px; font-weight: 700; color: var(--c-ink); }
.teplo-file__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--c-muted); }
.teplo-file.has-file .teplo-file__name { color: var(--c-ink); font-weight: 600; }

/* Мегаменю: карточки не растягиваются по соседней, пункты без подпунктов — плитками */
.mega__cards { align-items: start; }
.mega__card-link { gap: 4px; }
.mega__meta { display: block; font-size: 12px; font-weight: 500; color: var(--c-muted); }
.mega__card-link .menu-thumb { margin-top: 6px; }
.mega__leaves { margin-top: 18px; }
.mega__panel > .mega__leaves:first-of-type { margin-top: 0; }
.mega__cards + .mega__leaves { padding-top: 16px; border-top: 1px solid var(--c-line); }
.mega__leaves-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.mega__leaf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.mega__leaf { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius); color: var(--c-ink); transition: border-color .15s, box-shadow .15s; }
.mega__leaf:hover { border-color: transparent; box-shadow: var(--shadow); color: var(--c-brand); }
.mega__leaf .menu-thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.mega__leaf-text { flex: 1; min-width: 0; }
.mega__leaf-title { display: block; font-weight: 700; font-size: 14px; line-height: 1.3; }
.mega__leaf .icon { flex: none; color: var(--c-muted); }
.mega__leaf:hover .icon { color: var(--c-brand); }

/* Хлебные крошки на телефоне — одной строкой с прокруткой, текущая страница обрезается многоточием */
@media (max-width: 600px) {
	.breadcrumbs ol, .woocommerce-breadcrumb { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
	.breadcrumbs ol::-webkit-scrollbar, .woocommerce-breadcrumb::-webkit-scrollbar { display: none; }
	.breadcrumbs li:last-child { overflow: hidden; text-overflow: ellipsis; max-width: 55vw; }
}

/* Шапка A2: поиск в центре, контакты с почтой, кнопка подбора, светлая строка разделов --- */
.topbar__note b { color: var(--c-ink); font-weight: 600; }
.topbar__time::before { content: "·"; margin-right: 6px; color: var(--c-muted); }
.topbar__callback { color: var(--c-brand); border-bottom: 1px dashed currentColor; line-height: 1.2; }
.topbar__callback:hover { color: var(--c-brand-dark); }
.header-main { border-bottom: 1px solid var(--c-line); }
.header-search input { padding-right: 64px; border-color: var(--c-brand); }
.header-search input:focus { box-shadow: 0 0 0 3px var(--c-brand-soft); }
.header-search button { right: 0; top: 0; width: 56px; height: 46px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--c-brand); color: #fff; }
.header-search button:hover { background: var(--c-brand-dark); color: #fff; }
.header-contacts { align-items: flex-start; gap: 2px; }
.header-mail { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.header-mail > .icon { color: var(--c-muted); }
.header-mail a { color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
.header-mail a:hover { color: var(--c-brand); border-color: currentColor; }
.copy-btn { position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--c-line); border-radius: 6px; background: #fff; color: var(--c-muted); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.copy-btn:hover { border-color: var(--c-brand); color: var(--c-brand); }
.copy-btn .icon { grid-area: 1 / 1; }
.copy-btn .icon:last-child, .copy-btn.is-done .icon:first-child { display: none; }
.copy-btn.is-done .icon:last-child { display: block; }
.copy-btn.is-done { border-color: var(--c-success); background: #eaf7ef; color: var(--c-success); }
.copy-tip { position: absolute; left: 50%; top: calc(100% + 8px); z-index: 120; transform: translateX(-50%); padding: 6px 10px; border-radius: 6px; background: var(--c-ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.copy-tip::before { content: ""; position: absolute; left: 50%; top: -5px; margin-left: -5px; border: 5px solid transparent; border-top: 0; border-bottom-color: var(--c-ink); }
.copy-toast { position: fixed; left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 400; display: flex; align-items: center; gap: 10px; max-width: 480px; margin: 0 auto; padding: 12px 14px; border-radius: 10px; background: var(--c-ink); color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.copy-toast .icon { color: #6fdc9a; flex: none; }
.copy-toast span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.copy-toast a { color: #ffb3b5; font-weight: 700; white-space: nowrap; }
.header-cta { display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 50px; padding: 6px 18px; line-height: 1.2; }
.header-cta small { font-size: 11px; font-weight: 500; opacity: .85; }
.header-icon--mail { display: none; border: 0; background: none; cursor: pointer; }

.key-nav { background: #fff; color: var(--c-ink); border-bottom: 1px solid var(--c-line); }
.key-nav__item > a { padding: 13px 14px; color: var(--c-ink); font-size: 14px; }
.key-nav__item:first-child > a { padding-left: 0; }
.key-nav__item:first-child > a::after { left: 0; }
.key-nav__item > a .icon { color: var(--c-muted); }
.key-nav__item:hover > a, .key-nav__item.is-active > a { background: none; color: var(--c-brand); }
.key-nav__item.is-active > a::after, .key-nav__item:hover > a::after { background: var(--c-brand); }
.key-nav__extra { color: var(--c-brand); padding-right: 0; }
.key-nav__extra:hover { color: var(--c-brand-dark); }
.key-nav__drop { border-top: 1px solid var(--c-line); }

@media (max-width: 1360px) {
	.topbar__time { display: none; }
}
@media (max-width: 1200px) {
	.header-cta { display: inline-flex; }
	.header-cta small { display: none; }
	.header-mail { font-size: 13px; }
	.key-nav__item > a { padding: 13px 10px; }
}
@media (max-width: 1100px) {
	.header-cta { display: none; }
}
@media (max-width: 1024px) {
	.header-main__inner { flex-wrap: wrap; row-gap: 0; }
	.header-search { display: flex; order: 10; flex: 1 0 100%; margin: 0 0 12px; }
	.header-search input { height: 44px; }
	.header-search button { height: 44px; width: 50px; }
	.header-icon--mail { display: inline-flex; }
	.key-nav { border-bottom: 1px solid var(--c-line); }
	.key-nav__list { gap: 8px; padding: 0 var(--gutter) 12px; }
	.key-nav__item > a, .key-nav__item:first-child > a { padding: 7px 14px; border-radius: 18px; background: var(--c-surface); font-size: 13px; }
	.key-nav__item > a::after { display: none; }
	.key-nav__item.is-active > a { background: var(--c-brand-soft); }
}
@media (max-width: 1024px) {
	.header-logo { flex: 1 1 0; min-width: 0; }
	.header-logo img, .header-logo .custom-logo { max-width: 100%; height: auto; max-height: 40px; }
	.header-main__inner > .header-icon { width: 42px; }
}

/* Статья блога: текст + липкая форма справа, автор, спокойные ссылки ------------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 340px; gap: 56px; justify-content: center; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.article-layout .article { max-width: none; margin: 0; padding: 0 0 24px; }
.article__aside { padding-top: 74px; }
.article-layout .article__ask { position: sticky; top: calc(var(--hdr, 170px) + 16px); margin: 0; }
.article__aside .teplo-form { padding: 22px; }
.article__aside .teplo-form__grid { grid-template-columns: 1fr; }
.article__aside .teplo-form__grid > * { grid-column: 1 / -1 !important; }
.article__aside .teplo-form__title { font-size: 20px; }
.post-meta__author { color: var(--c-ink); font-weight: 600; }
.post-meta__author + time::before { content: "·"; margin-right: 14px; color: var(--c-muted); font-weight: 400; }
.entry-content--post a { color: var(--c-brand-dark); text-decoration-color: rgba(185, 18, 26, .35); text-decoration-thickness: 1px; }
.entry-content--post a:hover { color: var(--c-brand); text-decoration-color: currentColor; }
.entry-content--post a strong, .entry-content--post strong a { font-weight: 600; }
.article-author { display: flex; align-items: center; gap: 16px; margin: 36px 0 0; padding: 20px 22px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.article-author__avatar { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--c-navy); color: #fff; font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.article-author__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.article-author__name { display: block; margin: 2px 0; font-size: 17px; font-weight: 700; color: var(--c-ink); }
.article-author__meta { display: block; font-size: 13px; color: var(--c-muted); }
@media (max-width: 1100px) {
	.article-layout { grid-template-columns: minmax(0, 760px); gap: 0; }
	.article__aside { padding-top: 16px; }
	.article-layout .article__ask { position: static; }
	.article__aside .teplo-form__grid { grid-template-columns: 1fr 1fr; }
	.article__aside .teplo-form__grid > .teplo-field { grid-column: span 1 !important; }
}
@media (max-width: 600px) {
	.article__aside .teplo-form__grid { grid-template-columns: 1fr; }
	.article-author { padding: 16px; }
}
.post-meta .post-meta__author::before { content: none; margin: 0; }

/* Подсказки поиска в шапке и разделы над результатами поиска ---------------- */
.header-search { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 150; max-height: min(70vh, 560px); overflow: auto; padding: 6px 0; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; box-shadow: 0 24px 48px rgba(13, 42, 60, .18); }
.suggest__cats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 14px 10px; border-bottom: 1px solid var(--c-line); }
.suggest__cats > span { margin-right: 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c-muted); }
.suggest__cat { padding: 5px 10px; border-radius: 16px; background: var(--c-surface); color: var(--c-ink); font-size: 13px; font-weight: 600; }
.suggest__cat:hover { background: var(--c-brand-soft); color: var(--c-brand); }
.suggest__cat em { margin-left: 2px; font-style: normal; font-weight: 500; color: var(--c-muted); }
.suggest__item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 14px; color: var(--c-ink); }
.suggest__item:hover, .suggest__item.is-active, .suggest__all.is-active { background: var(--c-surface); }
.suggest__item img, .suggest__item i { display: block; width: 44px; height: 44px; border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid var(--c-line); }
.suggest__item b { display: block; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.suggest__item mark { background: none; color: var(--c-brand); }
.suggest__item small { display: block; margin-top: 2px; font-size: 12px; color: var(--c-muted); }
.suggest__item em { font-style: normal; font-weight: 700; font-size: 14px; white-space: nowrap; }
.suggest__all { display: block; padding: 10px 14px 6px; color: var(--c-brand); font-weight: 700; font-size: 14px; }
.suggest__empty { padding: 12px 14px; font-size: 14px; color: var(--c-muted); }
.suggest__empty a { color: var(--c-brand); font-weight: 600; }
.search-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.search-cats > span { font-size: 14px; color: var(--c-muted); }
.search-cats a { padding: 6px 12px; border: 1px solid var(--c-line); border-radius: 18px; color: var(--c-ink); font-size: 14px; font-weight: 600; }
.search-cats a:hover { border-color: var(--c-brand); color: var(--c-brand); }
.search-cats em { font-style: normal; font-weight: 500; color: var(--c-muted); }
.search-empty { margin: 8px 0 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--c-surface); }
.search-empty p { margin: 0 0 12px; }
@media (max-width: 600px) {
	.suggest__item { grid-template-columns: 36px minmax(0, 1fr); }
	.suggest__item img, .suggest__item i { width: 36px; height: 36px; }
	.suggest__item em { grid-column: 2; font-size: 13px; }
}
@media (min-width: 1025px) {
	.suggest { right: auto; width: max(100%, 600px); }
}
.suggest__item b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Крестик очистки в полях поиска: свой, серый, вместо синего системного. */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin-left: 6px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6672' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / 14px no-repeat; opacity: .7; }
input[type="search"]::-webkit-search-cancel-button:hover { opacity: 1; }

/* Ответы карточками (квиз) */
.teplo-field--choice .teplo-field__label { font-size: 17px; font-weight: 700; color: var(--c-ink); }
.teplo-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.teplo-choice__item { position: relative; display: block; cursor: pointer; }
.teplo-choice__item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.teplo-choice__item > span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 54px; padding: 12px 14px 12px 42px; border: 1.5px solid var(--c-line); border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.teplo-choice__item > span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--c-line); border-radius: 50%; background: #fff; transition: border-color .15s, box-shadow .15s; }
.teplo-choice__item b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.teplo-choice__item small { font-size: 12.5px; color: var(--c-muted); line-height: 1.35; }
.teplo-choice__item:hover > span { border-color: var(--c-brand); }
.teplo-choice__item input:checked + span { border-color: var(--c-brand); background: var(--c-brand-soft); }
.teplo-choice__item input:checked + span::before { border-color: var(--c-brand); box-shadow: inset 0 0 0 4px #fff; background: var(--c-brand); }
.teplo-choice__item input:focus-visible + span { box-shadow: 0 0 0 3px var(--c-brand-soft); }
.teplo-choice--small { display: flex; flex-wrap: wrap; }
.teplo-choice--small .teplo-choice__item { flex: 1 1 auto; }
.teplo-choice--small .teplo-choice__item > span b { white-space: nowrap; }
.teplo-choice--small .teplo-choice__item > span { min-height: 44px; padding: 8px 10px 8px 36px; }
.teplo-choice--small .teplo-choice__item > span::before { left: 11px; width: 16px; height: 16px; margin-top: -8px; }
.teplo-field--choice.has-error .teplo-choice__item > span { border-color: var(--c-brand); }
.teplo-form__progress { display: block; height: 6px; margin: 0 0 22px; border-radius: 2px; background: var(--c-line); overflow: hidden; }
.teplo-form__progress i { display: block; height: 100%; background: var(--c-brand); transition: width .3s; }
.teplo-form__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.teplo-form__nav .teplo-form__next { margin-left: auto; }
.teplo-form--quiz .teplo-field--choice { grid-column: 1 / -1; }
@media (max-width: 600px) {
	.teplo-choice { grid-template-columns: 1fr; }
	.teplo-choice--small .teplo-choice__item { flex: 1 1 calc(50% - 10px); }
}
.teplo-form__nav .teplo-form__next { flex: 1; width: auto; margin-left: 0; }
.teplo-form__nav .teplo-form__back { flex: none; min-height: 54px; padding: 0 22px; }
.teplo-form--quiz .teplo-form__steps { margin: 0 0 10px; line-height: 1.4; }
.teplo-form--quiz .teplo-field--choice .teplo-field__label { margin-bottom: 12px; font-size: 17px; line-height: 1.35; }

/* Экран «Передаём заказ менеджеру» на странице «Спасибо» (пока заказ уходит в utmstat/CRM) */
.order-wait { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(2px); transition: opacity .3s; }
.order-wait__box { width: min(100%, 420px); padding: 32px 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); text-align: center; }
.order-wait__spinner { display: block; width: 44px; height: 44px; margin: 0 auto 18px; border: 4px solid var(--c-line); border-top-color: var(--c-brand); border-radius: 50%; animation: order-wait-spin .8s linear infinite; }
.order-wait__title { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.order-wait__text { margin: 0 0 20px; color: var(--c-muted); font-size: 15px; }
.order-wait__bar { display: block; height: 6px; border-radius: 3px; background: var(--c-line); overflow: hidden; }
.order-wait__bar i { display: block; width: 0; height: 100%; background: var(--c-brand); animation: order-wait-bar 4s ease-out forwards; }
.order-wait.is-done .order-wait__spinner { border-color: #1f9d55; animation: none; background: #1f9d55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 22px no-repeat; }
.order-wait.is-done .order-wait__bar i { width: 100% !important; animation: none; background: #1f9d55; }
@keyframes order-wait-spin { to { transform: rotate(360deg); } }
@keyframes order-wait-bar { 0% { width: 0; } 100% { width: 92%; } }
@media (prefers-reduced-motion: reduce) { .order-wait__spinner { animation-duration: 2s; } }

/* Плашка о cookie */
.cookie-notice { position: fixed; left: 20px; bottom: 20px; z-index: 250; display: flex; align-items: center; gap: 16px; max-width: 560px; padding: 16px 18px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lg); }
.cookie-notice[hidden] { display: none; }
.cookie-notice__text { margin: 0; font-size: 13px; line-height: 1.5; color: var(--c-ink); }
.cookie-notice__text a { color: var(--c-brand); }
.cookie-notice__ok { flex: none; min-height: 40px; padding: 0 22px; }
@media (max-width: 1024px) {
	.cookie-notice { left: 10px; right: 10px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); max-width: none; padding: 12px 14px; gap: 12px; }
	.cookie-notice__text { font-size: 12px; }
}
