/* =========================================================
   TC Catalog v1.6.0 — категория «Кондиционеры»
   Тема: Hello Elementor. Цвета и шрифты — из Elementor
   Site Settings (глобальные переменные кита):
     --e-global-color-primary    (чёрный)
     --e-global-color-secondary  (жёлтый #FFD629)
     --e-global-color-accent     (зелёный #61CE70)
     --e-global-color-text
     --e-global-typography-*-font-family
   ======================================================= */

.tc-catalog,
.tc-sidebar {
	--tc-accent: var(--e-global-color-secondary, #FFD629);
	--tc-dark: var(--e-global-color-primary, #101214);
	--tc-green: var(--e-global-color-accent, #61CE70);
	--tc-text: var(--e-global-color-text, #4c5158);
	--tc-muted: #878d95;
	--tc-line: #e9ecef;
	--tc-line-dark: #d4d9de;
	--tc-bg: #f5f6f8;
	--tc-card-bg: #ffffff;
	--tc-radius: 18px;
	--tc-radius-s: 12px;
	--tc-shadow: 0 1px 3px rgba(16, 18, 20, .05);
	--tc-shadow-hover: 0 16px 40px -12px rgba(16, 18, 20, .18);
	--tc-accent-hover: color-mix(in srgb, var(--tc-accent) 80%, #ffffff);
	--tc-accent-soft: color-mix(in srgb, var(--tc-accent) 16%, #ffffff);
	font-family: var(--e-global-typography-text-font-family, "Roboto"), sans-serif;
	color: var(--tc-dark);
	line-height: 1.45;
	font-size: 15px;
}
.tc-catalog *, .tc-catalog *::before, .tc-catalog *::after,
.tc-sidebar *, .tc-sidebar *::before, .tc-sidebar *::after { box-sizing: border-box; }

/* ---------------------------------------------------------
   Защита от Theme Style Elementor (Site Settings → Buttons /
   Links применяются ко всем button и a внутри kit).
   .tc-sidebar продублирован, т.к. JS переносит панель в body.
   ------------------------------------------------------- */
.tc-catalog button,
.tc-sidebar button {
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	background-image: none;
	-webkit-appearance: none;
	appearance: none;
}
.tc-catalog button:hover, .tc-catalog button:focus,
.tc-sidebar button:hover, .tc-sidebar button:focus {
	background-image: none;
	box-shadow: none;
}
.tc-catalog a, .tc-sidebar a { text-decoration: none; }
.tc-catalog input[type="text"], .tc-catalog select,
.tc-sidebar input[type="text"] {
	font-family: inherit;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}
.tc-sort select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23878d95' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px !important;
}

/* ---------- Кнопки ---------- */
.tc-catalog .tc-btn,
.tc-sidebar .tc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 0; border-radius: 100px; cursor: pointer;
	font-family: var(--e-global-typography-accent-font-family, inherit);
	font-weight: 600; font-size: 14px; line-height: 1;
	padding: 13px 20px;
	text-decoration: none;
	transition: background .16s, color .16s, border-color .16s, transform .12s;
}
.tc-catalog .tc-btn:active, .tc-sidebar .tc-btn:active { transform: scale(.97); }
.tc-btn--apply { background: var(--tc-accent) !important; color: var(--tc-dark) !important; width: 100%; }
.tc-btn--apply:hover { background: var(--tc-accent-hover, #ffe15c) !important; }
.tc-btn--reset { background: transparent !important; color: var(--tc-muted) !important; width: 100%; padding: 10px !important; }
.tc-btn--reset:hover { color: var(--tc-dark) !important; }
.tc-btn--allfilters {
	width: 100%; background: var(--tc-bg) !important; border: 0; color: var(--tc-dark) !important;
	border-radius: var(--tc-radius-s) !important; margin-top: 6px; justify-content: space-between;
	padding: 14px 16px !important;
}
.tc-btn--allfilters:hover { background: #eef0f3 !important; }
.tc-btn--allfilters[aria-expanded="true"] svg { transform: rotate(180deg); }
.tc-btn--allfilters svg { transition: transform .2s; color: var(--tc-muted); }
.tc-btn--more { background: var(--tc-dark); color: #fff; padding: 15px 34px; }
.tc-btn--more:hover { background: #000; color: var(--tc-accent); }

/* ---------- Баннер онлайн-подбора ---------- */
.tc-calc {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	background: var(--tc-dark); color: #fff;
	border-radius: var(--tc-radius); padding: 26px 30px; margin-bottom: 24px;
	position: relative; overflow: hidden; isolation: isolate;
}
.tc-calc::before {
	content: ""; position: absolute; right: 120px; top: -70px; width: 240px; height: 240px;
	background: radial-gradient(circle, color-mix(in srgb, var(--tc-accent) 30%, transparent), transparent 68%);
	z-index: -1;
}
.tc-calc::after {
	content: ""; position: absolute; right: -46px; bottom: -80px; width: 190px; height: 190px;
	border: 2px dashed color-mix(in srgb, var(--tc-accent) 45%, transparent);
	border-radius: 50%; z-index: -1;
}
.tc-calc__title {
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-size: 20px; font-weight: 700; margin-bottom: 5px;
}
.tc-calc__sub { font-size: 14px; color: #b9bec5; max-width: 600px; }
.tc-btn--calc { background: var(--tc-accent); color: var(--tc-dark); white-space: nowrap; flex-shrink: 0; padding: 15px 26px; }
.tc-btn--calc:hover { background: var(--tc-accent-hover, #ffe15c); }

/* ---------- Сетка страницы ---------- */
.tc-layout { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 24px; align-items: start; }

/* ---------- Сайдбар фильтров ---------- */
.tc-sidebar {
	background: var(--tc-card-bg); border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius); padding: 8px 20px 20px;
	position: sticky; top: 16px; max-height: calc(100vh - 32px);
	overflow-y: auto; overscroll-behavior: contain;
	box-shadow: var(--tc-shadow);
	scrollbar-width: thin;
}
.tc-sidebar__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 4px; }
.tc-sidebar__title {
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-size: 18px; font-weight: 700;
}
.tc-sidebar__close { display: none; background: var(--tc-bg); border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 15px; cursor: pointer; color: var(--tc-dark); }
.tc-sidebar__actions { margin-top: 16px; display: grid; gap: 4px; }

.tc-filter { padding: 14px 0; }
.tc-filter + .tc-filter { border-top: 1px solid var(--tc-line); }
.tc-filter__head {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	width: 100%; background: none !important; border: 0; padding: 0 !important; cursor: pointer;
	font-weight: 700; font-size: 14.5px; line-height: 1.3; font-family: inherit;
	color: var(--tc-dark) !important; text-align: left; border-radius: 0;
}
.tc-filter__head--static { cursor: default; }
.tc-filter__chev { color: var(--tc-muted); transition: transform .2s; flex-shrink: 0; }
.tc-filter__head[aria-expanded="false"] .tc-filter__chev { transform: rotate(-90deg); }
.tc-filter__head[aria-expanded="false"] + .tc-filter__body { display: none; }
.tc-filter__body { padding-top: 12px; }
.tc-unit { color: var(--tc-muted); font-weight: 400; }

/* Чекбоксы */
.tc-checklist { list-style: none; margin: 0 -8px; padding: 0; display: grid; gap: 1px; }
.tc-check {
	display: flex; align-items: center; gap: 10px; padding: 7px 8px;
	border-radius: 10px; cursor: pointer; transition: background .12s;
}
.tc-check:hover { background: var(--tc-bg); }
.tc-check input { position: absolute; opacity: 0; pointer-events: none; }
.tc-check__box {
	width: 19px; height: 19px; flex-shrink: 0; border-radius: 6px;
	border: 1.5px solid var(--tc-line-dark); background: #fff; position: relative; transition: all .12s;
}
.tc-check input:checked + .tc-check__box { background: var(--tc-dark); border-color: var(--tc-dark); }
.tc-check input:checked + .tc-check__box::after {
	content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px;
	border: solid var(--tc-accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tc-check input:focus-visible + .tc-check__box { outline: 2px solid var(--tc-accent); outline-offset: 2px; }
.tc-check__label { font-size: 14px; color: var(--tc-text); flex: 1; }
.tc-check input:checked ~ .tc-check__label { color: var(--tc-dark); font-weight: 500; }
.tc-check__count {
	font-size: 11.5px; font-weight: 600; color: var(--tc-muted);
	background: var(--tc-bg); border-radius: 100px; padding: 2px 8px; min-width: 26px; text-align: center;
}
.tc-check input:checked ~ .tc-check__count { background: var(--tc-accent-soft, #fdf4cc); color: var(--tc-dark); }

.tc-morelink {
	background: none !important; border: 0; padding: 10px 0 0 !important; cursor: pointer;
	font-weight: 600; font-size: 13.5px; font-family: inherit;
	color: var(--tc-dark) !important;
	display: inline-flex; align-items: center; gap: 6px; border-radius: 0;
}
.tc-morelink::after {
	content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); transition: transform .18s;
}
.tc-morelink.is-open::after { transform: rotate(-135deg) translateY(-2px); }
.tc-morelink:hover { color: #000 !important; }

/* Слайдер-диапазон */
.tc-range__inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.tc-range__num {
	width: 100%; min-width: 0; padding: 11px 10px; font-weight: 500; font-size: 14px;
	border: 1.5px solid var(--tc-line); border-radius: var(--tc-radius-s);
	text-align: center; color: var(--tc-dark); background: #fff;
	transition: border-color .15s;
}
.tc-range__num:hover { border-color: var(--tc-line-dark); }
.tc-range__num:focus { outline: none; border-color: var(--tc-dark); }
.tc-range__dash { color: var(--tc-muted); flex-shrink: 0; }
.tc-range__track { position: relative; height: 26px; margin: 0 2px; }
.tc-range__track::before {
	content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
	height: 5px; border-radius: 3px; background: var(--tc-line);
}
.tc-range__fill {
	position: absolute; top: 50%; transform: translateY(-50%);
	height: 5px; border-radius: 3px; background: var(--tc-accent);
}
.tc-range__track input[type="range"] {
	position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0;
	-webkit-appearance: none; appearance: none; background: none !important; pointer-events: none;
	border: 0;
}
.tc-range__track input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; pointer-events: auto;
	width: 22px; height: 22px; border-radius: 50%;
	background: var(--tc-dark); border: 4px solid var(--tc-accent);
	cursor: grab; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
	transition: transform .12s;
}
.tc-range__track input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.tc-range__track input[type="range"]::-moz-range-thumb {
	pointer-events: auto; width: 14px; height: 14px; border-radius: 50%;
	background: var(--tc-dark); border: 4px solid var(--tc-accent); cursor: grab;
}
.tc-range__track input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--tc-dark); outline-offset: 2px; }

/* ---------- Тулбар ---------- */
.tc-toolbar {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	background: var(--tc-card-bg); border: 1px solid var(--tc-line); border-radius: var(--tc-radius);
	padding: 12px 18px; margin-bottom: 14px; box-shadow: var(--tc-shadow);
}
.tc-catalog .tc-btn--drawer { display: none; background: var(--tc-dark); color: #fff; padding: 12px 18px; border-radius: var(--tc-radius-s) !important; }
.tc-btn--drawer .tc-drawer-badge {
	background: var(--tc-accent); color: var(--tc-dark);
	border-radius: 100px; font-size: 11.5px; font-weight: 700;
	padding: 2px 7px; margin-left: 2px;
}
.tc-found { font-size: 14px; color: var(--tc-muted); }
.tc-found b { color: var(--tc-dark); font-weight: 700; }
.tc-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.tc-sort__label { font-size: 14px; color: var(--tc-muted); }
.tc-sort select {
	font-weight: 500; font-size: 14px; font-family: inherit; color: var(--tc-dark);
	border: 1.5px solid var(--tc-line); border-radius: var(--tc-radius-s);
	padding: 10px 14px; background-color: #fff; cursor: pointer;
	transition: border-color .15s;
}
.tc-sort select:hover { border-color: var(--tc-line-dark); }
.tc-sort select:focus { outline: none; border-color: var(--tc-dark); }

/* Сегментированный переключатель вида */
.tc-view {
	display: flex; background: var(--tc-bg); border-radius: var(--tc-radius-s); padding: 3px; gap: 2px;
}
.tc-view__btn {
	width: 38px; height: 34px; display: grid; place-items: center; cursor: pointer;
	background: transparent !important; border: 0; border-radius: 9px !important; color: var(--tc-muted) !important;
	padding: 0 !important;
	transition: background .15s, color .15s;
}
.tc-view__btn svg { fill: currentColor; }
.tc-view__btn:hover { color: var(--tc-dark) !important; }
.tc-view__btn.is-active { background: var(--tc-dark) !important; color: var(--tc-accent) !important; box-shadow: 0 1px 3px rgba(0,0,0,.2) !important; }

/* ---------- Чипы активных фильтров ---------- */
.tc-active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tc-chip {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--tc-accent-soft, #fdf4cc) !important; border: 1px solid transparent; border-radius: 100px !important;
	padding: 8px 14px !important; font-size: 13px; font-weight: 500; font-family: inherit;
	color: var(--tc-dark) !important; cursor: pointer; transition: border-color .15s, background .15s;
}
.tc-chip:hover { border-color: var(--tc-dark); }
.tc-chip__x { color: var(--tc-dark); opacity: .5; font-size: 15px; line-height: 1; }
.tc-chip:hover .tc-chip__x { opacity: 1; }
.tc-chip--clear { background: var(--tc-dark) !important; color: #fff !important; }
.tc-chip--clear:hover { background: #000 !important; }

/* ---------- Листинг: плитка ---------- */
.tc-grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
	transition: opacity .18s;
}
.tc-grid.is-loading { opacity: .45; pointer-events: none; }

@keyframes tc-card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tc-card {
	background: var(--tc-card-bg); border: 1px solid var(--tc-line); border-radius: var(--tc-radius);
	display: flex; flex-direction: column; overflow: hidden;
	transition: box-shadow .2s, border-color .2s, transform .2s;
	animation: tc-card-in .3s ease both;
	box-shadow: var(--tc-shadow);
}
.tc-card:hover { box-shadow: var(--tc-shadow-hover); border-color: var(--tc-line-dark); transform: translateY(-3px); }

.tc-card__media { position: relative; padding: 16px 16px 0; }
.tc-card__stock {
	position: absolute; top: 24px; left: 24px; z-index: 1;
	font-weight: 600; font-size: 12px; border-radius: 100px; padding: 5px 11px;
}
.tc-card__stock.is-in { background: color-mix(in srgb, var(--tc-green) 14%, #ffffff); color: color-mix(in srgb, var(--tc-green) 62%, #000000); }
.tc-card__stock.is-out { background: #f1f2f4; color: var(--tc-muted); }
.tc-card__img { display: block; }
.tc-card__img img {
	width: 100%; height: 190px; object-fit: contain; display: block;
	transition: transform .28s ease;
}
.tc-card:hover .tc-card__img img { transform: scale(1.05); }

.tc-card__body { padding: 14px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.tc-card__title { font-size: 14.5px; font-weight: 600; line-height: 1.4; margin: 0 0 12px; }
.tc-card__title a {
	color: var(--tc-dark) !important;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tc-card__title a:hover { color: #000 !important; }

.tc-card__specs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.tc-card__specs li {
	display: flex; justify-content: space-between; align-items: center; gap: 10px;
	font-size: 13px; background: var(--tc-bg); border-radius: 10px; padding: 8px 12px;
}
.tc-spec__label { color: var(--tc-muted); }
.tc-spec__val { color: var(--tc-dark); font-weight: 600; text-align: right; white-space: nowrap; }

.tc-card__footer { margin-top: auto; }
.tc-card__price { font-size: 20px; font-weight: 700; margin-bottom: 12px; letter-spacing: -.01em; }
.tc-card__price del { color: var(--tc-muted); font-weight: 400; font-size: 14px; margin-right: 6px; }
.tc-card__price ins { text-decoration: none; }
.tc-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tc-btn--ghost { background: #fff !important; border: 1.5px solid var(--tc-line-dark) !important; color: var(--tc-dark) !important; padding: 12px 10px !important; }
.tc-btn--ghost:hover { border-color: var(--tc-dark) !important; background: var(--tc-dark) !important; color: #fff !important; }
.tc-btn--buy { background: var(--tc-accent) !important; color: var(--tc-dark) !important; padding: 12px 10px !important; }
.tc-btn--buy:hover { background: var(--tc-dark) !important; color: var(--tc-accent) !important; }
.tc-btn--buy.added { background: var(--tc-green) !important; color: #fff !important; }
.tc-btn--buy.loading { opacity: .6; pointer-events: none; }

/* ---------- Листинг: список ---------- */
.tc-grid.view-list { grid-template-columns: 1fr; }
.tc-grid.view-list .tc-card { flex-direction: row; align-items: stretch; }
.tc-grid.view-list .tc-card__media { flex: 0 0 230px; padding: 16px; display: flex; align-items: center; }
.tc-grid.view-list .tc-card__img { width: 100%; }
.tc-grid.view-list .tc-card__img img { height: 160px; }
.tc-grid.view-list .tc-card__body { flex-direction: row; align-items: center; gap: 26px; padding: 20px 24px; }
.tc-grid.view-list .tc-card__title { font-size: 16px; flex: 1 1 40%; margin: 0; }
.tc-grid.view-list .tc-card__specs { flex: 1 1 28%; margin: 0; }
.tc-grid.view-list .tc-card__footer { flex: 0 0 200px; margin: 0; }
.tc-grid.view-list .tc-card__actions { grid-template-columns: 1fr; }

/* ---------- Пагинация ---------- */
.tc-pagination { display: grid; justify-items: center; gap: 18px; margin: 28px 0 10px; }
.tc-pagination__pages { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tc-page {
	min-width: 44px; height: 44px; padding: 0 10px !important; cursor: pointer;
	background: var(--tc-card-bg) !important; border: 1px solid var(--tc-line) !important; border-radius: var(--tc-radius-s) !important;
	font-weight: 600; font-size: 14px; font-family: inherit; color: var(--tc-dark) !important;
	transition: border-color .15s, background .15s;
}
.tc-page:hover { border-color: var(--tc-dark) !important; }
.tc-page.is-current { background: var(--tc-dark) !important; border-color: var(--tc-dark) !important; color: var(--tc-accent) !important; }
.tc-page--nav { font-size: 18px; line-height: 1; }
.tc-page[disabled] { opacity: .35; pointer-events: none; }
.tc-page__dots {
	min-width: 28px; height: 44px; display: grid; place-items: center;
	color: var(--tc-muted); font-weight: 600; user-select: none;
}

/* ---------- Пусто / лоадер ---------- */
.tc-empty {
	grid-column: 1 / -1; background: var(--tc-card-bg); border: 1px dashed var(--tc-line-dark);
	border-radius: var(--tc-radius); padding: 48px 30px; text-align: center; color: var(--tc-muted);
}
.tc-empty a { color: var(--tc-dark); font-weight: 600; text-decoration: underline; }
.tc-loader { display: flex; justify-content: center; gap: 6px; padding: 18px; }
.tc-loader span { width: 9px; height: 9px; border-radius: 50%; background: var(--tc-dark); animation: tc-b 1s infinite ease-in-out; }
.tc-loader span:nth-child(2) { animation-delay: .15s; background: var(--tc-accent); }
.tc-loader span:nth-child(3) { animation-delay: .3s; }
@keyframes tc-b { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---------- SEO-текст ---------- */
.tc-seo {
	background: var(--tc-card-bg); border: 1px solid var(--tc-line); border-radius: var(--tc-radius);
	padding: 30px 34px; margin: 32px 0 10px; color: var(--tc-text); font-size: 15px;
	box-shadow: var(--tc-shadow);
}
.tc-seo h2, .tc-seo h3 { color: var(--tc-dark); font-family: var(--e-global-typography-primary-font-family, inherit); }
.tc-seo h2 { font-size: 22px; margin: 24px 0 10px; }
.tc-seo h3 { font-size: 18px; margin: 18px 0 8px; }
.tc-seo h2:first-child { margin-top: 0; }

/* ---------- Мобильный drawer ----------
   JS переносит .tc-sidebar и .tc-overlay в <body>, поэтому
   position:fixed не зависит от transform-обёрток Elementor
   (motion effects / entrance animations ломают fixed внутри). */
.tc-overlay {
	position: fixed; inset: 0; background: rgba(10, 12, 14, .5); z-index: 99998;
	opacity: 0; transition: opacity .22s;
}
.tc-overlay.is-visible { opacity: 1; }

@media (max-width: 1023px) {
	.tc-layout { grid-template-columns: 1fr; }
	.tc-catalog .tc-btn--drawer { display: inline-flex; }

	.tc-sidebar {
		position: fixed; top: 0; left: 0; bottom: 0; z-index: 99999;
		width: min(92vw, 380px); max-height: none; height: 100%;
		margin: 0; border: 0; border-radius: 0 18px 18px 0;
		transform: translateX(-105%); transition: transform .26s ease;
		display: flex; flex-direction: column; padding: 0;
		box-shadow: 24px 0 60px -20px rgba(0, 0, 0, .3);
		overflow: hidden;
	}
	.tc-sidebar.is-open { transform: translateX(0); }
	.tc-sidebar__head {
		padding: 16px 20px; border-bottom: 1px solid var(--tc-line, #e9ecef);
		flex-shrink: 0;
	}
	.tc-sidebar__close { display: grid; place-items: center; }
	.tc-sidebar #tc-filters {
		flex: 1; overflow-y: auto; padding: 4px 20px 12px;
		overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	}
	.tc-sidebar__actions {
		position: sticky; bottom: 0; margin: 0 -20px; padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--tc-line, #e9ecef);
	}
	.tc-sort { margin-left: 0; }
}

@media (max-width: 860px) {
	.tc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tc-card__body { padding: 12px 14px 14px; }
	.tc-card__img img { height: 150px; }
	.tc-grid.view-list .tc-card__body { flex-direction: column; align-items: stretch; gap: 10px; }
	.tc-grid.view-list .tc-card__media { flex-basis: 170px; }
	.tc-grid.view-list .tc-card__footer { flex-basis: auto; }
	.tc-calc { flex-direction: column; align-items: flex-start; padding: 22px; }
	.tc-btn--calc { width: 100%; }
}

@media (max-width: 560px) {
	.tc-catalog { font-size: 14px; }
	.tc-grid { grid-template-columns: 1fr; }
	.tc-grid.view-list .tc-card { flex-direction: column; }
	.tc-toolbar { gap: 10px; padding: 10px 12px; }
	.tc-found { order: 3; width: 100%; }
	.tc-sort { flex: 1; }
	.tc-sort__label { display: none; }
	.tc-sort select { flex: 1; width: 100%; }
	.tc-card__actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.tc-catalog *, .tc-sidebar *, .tc-overlay, .tc-card { transition: none !important; animation: none !important; }
}

/* =========================================================
   TC PRODUCT — страница товара [tc_product]
   ======================================================= */

/* --- Hero: галерея + панель покупки --- */
.tc-phero {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 24px; align-items: start; margin-bottom: 26px;
}

.tc-pgallery {
	background: var(--tc-card-bg); border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius); padding: 18px; box-shadow: var(--tc-shadow);
}
.tc-pgallery__main { position: relative; }
.tc-pgallery__main .tc-card__stock { top: 6px; left: 6px; position: absolute; z-index: 1; }
.tc-pgallery__main img {
	width: 100%; height: 420px; object-fit: contain; display: block;
}
.tc-pgallery__thumbs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.tc-pgallery__thumb {
	width: 68px; height: 68px; padding: 6px !important; cursor: pointer;
	background: #fff !important; border: 1.5px solid var(--tc-line) !important;
	border-radius: var(--tc-radius-s) !important; transition: border-color .15s;
}
.tc-pgallery__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tc-pgallery__thumb:hover { border-color: var(--tc-line-dark) !important; }
.tc-pgallery__thumb.is-active { border-color: var(--tc-dark) !important; }

.tc-pbuy {
	background: var(--tc-card-bg); border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius); padding: 22px 24px; box-shadow: var(--tc-shadow);
	position: sticky; top: 16px;
}
.tc-pbuy__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tc-pbuy__brand {
	background: var(--tc-dark); color: var(--tc-accent);
	font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	border-radius: 100px; padding: 5px 12px;
}
.tc-pbuy__sku { font-size: 13px; color: var(--tc-muted); }

.tc-pbuy__specs { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tc-pbuy__specs li {
	display: flex; flex-direction: column; gap: 2px;
	font-size: 13px; background: var(--tc-bg); border-radius: 10px; padding: 9px 12px;
}
.tc-pbuy__specs .tc-spec__val { text-align: left; white-space: normal; font-size: 13.5px; }

.tc-pbuy__price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.tc-pbuy__price del { color: var(--tc-muted); font-weight: 400; font-size: 18px; margin-right: 8px; }
.tc-pbuy__price ins { text-decoration: none; }

.tc-pbuy__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.tc-btn--big { padding: 16px 18px !important; font-size: 15px; }

.tc-pbuy__benefits { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--tc-line); display: grid; gap: 9px; }
.tc-pbuy__benefits li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--tc-text); }
.tc-pbuy__benefits svg { color: var(--tc-dark); flex-shrink: 0; }

/* --- Якорная навигация --- */
.tc-pnav {
	display: flex; gap: 4px; flex-wrap: wrap;
	background: var(--tc-card-bg); border: 1px solid var(--tc-line);
	border-radius: 100px; padding: 5px; margin-bottom: 22px;
	position: sticky; top: 10px; z-index: 5; box-shadow: var(--tc-shadow);
	width: fit-content; max-width: 100%;
}
.tc-pnav__link {
	border-radius: 100px; padding: 10px 18px;
	font-size: 14px; font-weight: 600; color: var(--tc-text) !important;
	transition: background .15s, color .15s; white-space: nowrap;
}
.tc-pnav__link:hover { color: var(--tc-dark) !important; background: var(--tc-bg); }
.tc-pnav__link.is-active { background: var(--tc-dark); color: var(--tc-accent) !important; }

/* --- Секции --- */
.tc-psection { margin-bottom: 30px; scroll-margin-top: 90px; }
.tc-psection__title {
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-size: 24px; font-weight: 700; margin: 0 0 16px; color: var(--tc-dark);
}

/* --- Характеристики --- */
.tc-pspecs {
	background: var(--tc-card-bg); border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius); padding: 10px 26px 20px; box-shadow: var(--tc-shadow);
}
.tc-pspecs__row {
	display: flex; align-items: baseline; gap: 10px;
	padding: 11px 0; font-size: 14.5px;
}
.tc-pspecs__row + .tc-pspecs__row { border-top: 1px dashed var(--tc-line); }
.tc-pspecs__extra .tc-pspecs__row:first-child { border-top: 1px dashed var(--tc-line); }
.tc-pspecs__label { color: var(--tc-muted); flex-shrink: 0; max-width: 60%; }
.tc-pspecs__dots { flex: 1; border-bottom: 1px dotted var(--tc-line-dark); transform: translateY(-4px); }
.tc-pspecs__val { color: var(--tc-dark); font-weight: 600; text-align: right; }
.tc-pspecs .tc-btn--allfilters { margin-top: 14px; }

/* --- Описание --- */
.tc-pdesc { margin: 0; }
.tc-pdesc ul { padding-left: 20px; }
.tc-pdesc li { margin-bottom: 6px; }

/* --- FAQ --- */
.tc-faq { display: grid; gap: 8px; }
.tc-faq__item {
	background: var(--tc-card-bg); border: 1px solid var(--tc-line);
	border-radius: var(--tc-radius-s); overflow: hidden;
	transition: border-color .15s, box-shadow .15s;
}
.tc-faq__item:hover { border-color: var(--tc-line-dark); }
.tc-faq__item[open] { box-shadow: var(--tc-shadow); border-color: var(--tc-line-dark); }
.tc-faq__q {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 16px 20px; cursor: pointer; list-style: none;
	font-weight: 600; font-size: 15px; color: var(--tc-dark); user-select: none;
}
.tc-faq__q::-webkit-details-marker { display: none; }
.tc-faq__q:hover { background: var(--tc-bg); }
.tc-faq__chev { color: var(--tc-muted); flex-shrink: 0; transition: transform .2s; }
.tc-faq__item[open] .tc-faq__chev { transform: rotate(180deg); }
.tc-faq__a {
	padding: 2px 20px 18px; font-size: 14.5px; color: var(--tc-text); line-height: 1.6;
	border-top: 1px dashed var(--tc-line);
	padding-top: 14px; margin: 0 0;
}

/* --- Похожие --- */
.tc-related { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- Адаптив товара --- */
@media (max-width: 1023px) {
	.tc-phero { grid-template-columns: 1fr; }
	.tc-pbuy { position: static; }
	.tc-pgallery__main img { height: 320px; }
	.tc-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.tc-pbuy__specs { grid-template-columns: 1fr; }
	.tc-pbuy__actions { grid-template-columns: 1fr; }
	.tc-pnav { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
	.tc-pgallery__main img { height: 240px; }
	.tc-pspecs { padding: 6px 16px 16px; }
	.tc-pspecs__row { flex-wrap: wrap; }
	.tc-pspecs__label { max-width: 100%; }
	.tc-pspecs__dots { display: none; }
	.tc-pspecs__val { text-align: left; }
	.tc-related { grid-template-columns: 1fr; }
	.tc-pbuy__price { font-size: 26px; }
}

/* =========================================================
   v1.5.0 — сравнение и блок «Выгоднее»
   ======================================================= */

/* Кнопка «К сравнению» */
.tc-compare-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	background: #fff !important; border: 1.5px solid var(--tc-line) !important;
	border-radius: 100px !important; color: var(--tc-muted) !important;
	cursor: pointer; transition: all .15s; font-size: 13px; font-weight: 600; font-family: inherit;
}
.tc-compare-btn:hover { border-color: var(--tc-dark) !important; color: var(--tc-dark) !important; }
.tc-compare-btn.is-active { background: var(--tc-dark) !important; border-color: var(--tc-dark) !important; color: var(--tc-accent) !important; }
.tc-card__compare { position: absolute; top: 22px; right: 22px; z-index: 2; width: 36px; height: 36px; padding: 0 !important; }
.tc-compare-btn--labeled { padding: 8px 14px !important; }
.tc-compare-btn--demo { padding: 4px 8px !important; vertical-align: middle; cursor: default; }

/* Плавающая панель */
.tc-compare-bar {
	position: fixed; right: 18px; bottom: 18px; z-index: 99990;
	display: inline-flex; align-items: center; gap: 9px;
	background: var(--e-global-color-primary, #101214); color: var(--e-global-color-secondary, #FFD629) !important;
	border-radius: 100px; padding: 14px 22px;
	font: 600 14px/1 var(--e-global-typography-text-font-family, "Roboto"), sans-serif;
	text-decoration: none; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4);
	transition: transform .15s;
}
.tc-compare-bar:hover { transform: translateY(-2px); color: #fff !important; }

/* Блок «Выгоднее» */
.tc-better { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.tc-better__item { display: flex; flex-direction: column; }
.tc-better__item .tc-card { border-radius: var(--tc-radius) var(--tc-radius) 0 0; border-bottom: 0; height: 100%; }
.tc-better__adv {
	list-style: none; margin: 0; padding: 14px 18px 16px;
	background: var(--tc-accent-soft, #fdf4cc);
	border: 1px solid var(--tc-line); border-top: 1px dashed var(--tc-line-dark);
	border-radius: 0 0 var(--tc-radius) var(--tc-radius);
	display: grid; gap: 7px;
}
.tc-better__adv li {
	position: relative; padding-left: 24px;
	font-size: 13.5px; font-weight: 500; color: var(--tc-dark); line-height: 1.4;
}
.tc-better__adv li::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px;
	border-radius: 50%; background: var(--tc-dark);
}
.tc-better__adv li::after {
	content: ""; position: absolute; left: 4.5px; top: 5.5px; width: 4px; height: 7px;
	border: solid var(--tc-accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tc-psection__sub { margin: -10px 0 16px; color: var(--tc-muted); font-size: 14px; }

/* Таблица сравнения */
.tc-compare.is-loading { opacity: .5; }
.tc-cmp__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--tc-line); border-radius: var(--tc-radius); background: #fff; box-shadow: var(--tc-shadow); }
.tc-cmp__table { border-collapse: collapse; width: 100%; min-width: 640px; }
.tc-cmp__table th, .tc-cmp__table td { padding: 13px 18px; text-align: left; vertical-align: top; font-size: 14px; }
.tc-cmp__corner { vertical-align: bottom; min-width: 170px; }
.tc-cmp__diff { padding: 0; }
.tc-cmp__prod { min-width: 210px; position: relative; padding-top: 20px; }
.tc-cmp__remove {
	position: absolute; top: 10px; right: 10px; width: 30px; height: 30px;
	background: var(--tc-bg) !important; border: 0; border-radius: 50% !important;
	color: var(--tc-muted) !important; cursor: pointer; font-size: 13px; padding: 0 !important;
}
.tc-cmp__remove:hover { background: var(--tc-dark) !important; color: #fff !important; }
.tc-cmp__img img { width: 100%; height: 120px; object-fit: contain; display: block; margin-bottom: 10px; }
.tc-cmp__title { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.35; color: var(--tc-dark) !important; margin-bottom: 10px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tc-cmp__btn { width: 100%; padding: 10px !important; font-size: 13px !important; }
.tc-cmp__table tbody tr { border-top: 1px solid var(--tc-line); }
.tc-cmp__table tbody tr:nth-child(odd) { background: #fbfbfc; }
.tc-cmp__label { color: var(--tc-muted); font-weight: 500; }
.tc-cmp__val { color: var(--tc-dark); font-weight: 500; }
.tc-cmp__table tr.is-diff .tc-cmp__val { background: var(--tc-accent-soft, #fdf4cc); }
.tc-compare.diff-only tr.is-same { display: none; }

@media (max-width: 860px) {
	.tc-better { grid-template-columns: 1fr; }
	.tc-card__compare { top: 20px; right: 20px; }
}

/* =========================================================
   v1.6.0 — модалки: форма заявки + калькулятор монтажа
   ======================================================= */
.tc-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; }
.tc-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 12, 14, .55); opacity: 0; transition: opacity .2s; }
.tc-modal.is-open .tc-modal__backdrop { opacity: 1; }
.tc-modal__panel {
	position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px);
	overflow-y: auto; overscroll-behavior: contain;
	background: #fff; border-radius: 20px; padding: 26px 26px 22px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
	transform: translateY(14px) scale(.98); opacity: 0; transition: transform .22s, opacity .22s;
	font-family: var(--e-global-typography-text-font-family, "Roboto"), sans-serif;
	color: var(--e-global-color-primary, #101214); font-size: 15px; line-height: 1.45;
}
.tc-modal.is-open .tc-modal__panel { transform: none; opacity: 1; }
.tc-modal__x {
	position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
	background: #f5f6f8 !important; border: 0; border-radius: 50% !important;
	color: #101214 !important; cursor: pointer; font-size: 14px; padding: 0 !important;
}
.tc-modal__x:hover { background: #101214 !important; color: #fff !important; }
.tc-modal__title {
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-size: 20px; font-weight: 700; margin-bottom: 4px; padding-right: 36px;
}
.tc-modal__product { font-size: 13px; color: #878d95; margin-bottom: 16px; }

.tc-hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
.tc-field { display: block; margin-bottom: 12px; }
.tc-field__label { display: block; font-size: 13px; font-weight: 600; color: #4c5158; margin-bottom: 6px; }
.tc-field__input {
	width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: #101214;
	border: 1.5px solid #e9ecef; border-radius: 12px; background: #fff;
	transition: border-color .15s; -webkit-appearance: none; appearance: none; box-shadow: none;
}
.tc-field__input:hover { border-color: #d4d9de; }
.tc-field__input:focus { outline: none; border-color: #101214; }
textarea.tc-field__input { resize: vertical; min-height: 60px; }

.tc-lead__submit { width: 100%; margin-top: 4px; }
.tc-lead__note { font-size: 12px; color: #a0a5ab; margin: 10px 0 0; line-height: 1.5; }
.tc-lead__error { color: #d93025; font-size: 13.5px; font-weight: 500; margin: 10px 0 0; }
.tc-lead__montazh {
	background: var(--tc-accent-soft, #fdf4cc); border-radius: 12px;
	padding: 10px 14px; font-size: 13.5px; font-weight: 500; margin-bottom: 14px;
}
.tc-lead__done { text-align: center; padding: 14px 0 6px; }
.tc-lead__done-icon {
	width: 58px; height: 58px; margin: 0 auto 12px; display: grid; place-items: center;
	background: var(--e-global-color-accent, #61CE70); color: #fff;
	border-radius: 50%; font-size: 26px; font-weight: 700;
}
.tc-lead__done-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.tc-lead__done p { color: #878d95; margin: 0; }

/* Калькулятор */
.tc-calcm__row { display: flex; align-items: center; gap: 14px; }
.tc-calcm__row input[type="range"] {
	flex: 1; -webkit-appearance: none; appearance: none; height: 5px; border-radius: 3px;
	background: #e9ecef; outline: none; margin: 0; border: 0;
}
.tc-calcm__row input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
	background: var(--e-global-color-primary, #101214);
	border: 4px solid var(--e-global-color-secondary, #FFD629); cursor: grab;
}
.tc-calcm__row input[type="range"]::-moz-range-thumb {
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--e-global-color-primary, #101214);
	border: 4px solid var(--e-global-color-secondary, #FFD629); cursor: grab;
}
.tc-calcm__num { max-width: 84px; text-align: center; }
.tc-calcm__result {
	background: #f5f6f8; border-radius: 14px; padding: 14px 16px; margin: 14px 0 10px;
	display: grid; gap: 9px;
}
.tc-calcm__line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #4c5158; }
.tc-calcm__line b { color: #101214; text-align: right; }
.tc-calcm__total { border-top: 1px dashed #d4d9de; padding-top: 10px; font-size: 15px; }
.tc-calcm__total b { font-size: 17px; }
.tc-calcm__hint { font-size: 12.5px; color: #a0a5ab; line-height: 1.5; margin: 0 0 14px; }
.tc-modal [data-tc-calc-order] { width: 100%; }

@media (prefers-reduced-motion: reduce) {
	.tc-modal__panel, .tc-modal__backdrop { transition: none !important; }
}
