/* ==========================================================================
   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 {
	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 { background: #fff; color: var(--c-navy); }
.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: var(--container); 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: var(--c-surface); 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 { border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.post-card__thumb { display: block; aspect-ratio: 16 / 10; background: var(--c-surface); }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 18px 20px 22px; }
.post-card__title { font-size: 18px; margin-bottom: 8px; }
.post-card__title a { color: var(--c-ink); }
.post-card__excerpt { margin: 0; font-size: 14px; color: var(--c-muted); }
.post-meta { font-size: 13px; color: var(--c-muted); margin-bottom: 6px; }
.single-post__thumb img { border-radius: var(--radius); margin-bottom: 24px; }
.single-post__form { margin: 32px 0; }
.wp-block-latest-posts.is-grid { gap: 24px; padding: 0 !important; }
.wp-block-latest-posts.is-grid li { margin: 0 !important; width: auto !important; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; padding-bottom: 16px; }
.wp-block-latest-posts.is-grid li > *:not(.wp-block-latest-posts__featured-image) { padding: 0 18px; display: block; }
.wp-block-latest-posts__featured-image { margin-bottom: 12px; }
.wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.wp-block-latest-posts__post-title { font-weight: 700; color: var(--c-ink); }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.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); color: var(--c-ink); }
.page-numbers.current, .page-numbers:hover { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.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 { color: rgba(255, 255, 255, .78); }
.site-footer a: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: var(--c-surface); }
.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 { display: flex; align-items: center; border-bottom: 1px solid var(--c-line); }
.mnav-item > a { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--c-ink); font-weight: 600; }
.mnav-item .menu-thumb { width: 32px; height: 32px; border-radius: 8px; }
.mnav-next { flex: none; width: 44px; height: 44px; border: 0; border-left: 1px solid var(--c-line); background: none; color: var(--c-ink); cursor: pointer; }
.mnav-panel {
	position: fixed; inset: 76px 0 0 0; z-index: 5;
	padding: 16px 20px 100px;
	background: #fff;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform .25s var(--ease);
	visibility: hidden;
}
.mnav-item.is-active > .mnav-panel { transform: none; visibility: visible; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--c-line); }
.mnav-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; border: 0; background: none; color: var(--c-ink); font-weight: 700; cursor: pointer; }
.mnav-all { font-size: 13px; font-weight: 600; text-align: right; }

/* Мегаменю: подпункты с квадратной картинкой под названием ------------------ */
.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: var(--c-surface); transition: transform .2s var(--ease); }
.mega__card-link:hover .menu-thumb { transform: scale(1.03); }
.mnav-item > a { min-height: 44px; }

/* Тёмная полоса навигации: «Каталог» + ключевые категории ------------------- */
.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: 8px; 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; }
.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); }
