/* Шапка сайта (include/index/_tl_header.php) */

#tl-header {
	position: relative;
	z-index: 1030;
	background: #fff;
	color: #222;
}
#tl-header a { color: #222; text-decoration: none; }
/* !important — перебить старое правило шаблона header a:hover { color: white !important } */
#tl-header a:hover, #tl-header a:focus, #tl-header a:active { color: #000 !important; opacity: .75; }

.tl-container {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 24px;
}

/* 1. Тёмная полоса */
.tl-topline { background: #222; font-size: 12px; font-weight: 300; line-height: 35px; }
.tl-topline__inner { display: flex; justify-content: space-between; align-items: center; }
.tl-topline__group { display: flex; flex-wrap: wrap; }
.tl-topline__item {
	display: inline-block;
	padding: 0 15px;
	border-left: 1px solid rgba(255, 255, 255, .11);
	white-space: nowrap;
}
.tl-topline__item:last-child { border-right: 1px solid rgba(255, 255, 255, .11); }
#tl-header .tl-topline__item, #tl-header .tl-topline__item:hover, #tl-header .tl-topline__item:focus { color: #fff !important; }
.tl-topline__item .fa { margin-right: 3px; }

/* 2. Строка: логотип — информационные блоки — иконки (как на klenmarket.ru) */
.tl-bar { background: #fff; }
.tl-bar__inner { display: flex; align-items: center; min-height: 96px; }
.tl-bar__logo { flex: 0 0 auto; display: flex; align-items: center; padding-right: 24px; }
.tl-logo img { max-height: 64px; max-width: 200px; width: auto; height: auto; display: block; }
.tl-burger { font-size: 32px; line-height: 1; margin-right: 12px; }

.tl-info { flex: 1 1 auto; justify-content: center; align-items: center; gap: 0; }
.tl-info__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 280px;
	padding: 6px 26px;
	border-left: 1px solid #eee;
}
.tl-info__item:first-child { border-left: 0; }
.tl-info__ico { font-size: 22px; line-height: 1; color: #c8102e; margin-top: 1px; }
.tl-info__text { display: flex; flex-direction: column; min-width: 0; }
.tl-info__title { font-size: 13px; font-weight: 600; color: #222; line-height: 1.3; }
.tl-info__sub { font-size: 11px; color: #888; line-height: 1.35; margin-top: 3px; }
#tl-header .tl-info__item:hover { opacity: 1; }
#tl-header .tl-info__item:hover .tl-info__title { color: #c8102e; }

.tl-bar__icons { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; margin-left: auto; padding-left: 16px; }
.tl-icon { display: inline-flex; align-items: center; margin-left: 18px; font-size: 20px; position: relative; }
.tl-icon i.bi { font-size: 20px; }
.tl-icon--label { flex-direction: column; justify-content: center; gap: 2px; font-size: 11px; line-height: 1.2; }
.tl-icon--label > span, .tl-icon--label > a { font-size: 11px; }
.tl-cart.tl-icon--label { flex-direction: column; }

/* 3. Меню отдельной строкой; выпадающие панели привязаны к ней */
.tl-navrow { position: relative; background: #fff; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.tl-nav__list {
	display: flex;
	justify-content: center;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
}
.tl-nav__item { display: flex; }
.tl-nav__item--mega { position: static; }
.tl-nav__link {
	display: flex;
	align-items: center;
	padding: 14px 11px 12px;
	font-size: 13px;
	letter-spacing: .5px;
	white-space: nowrap;
	border-bottom: 2px solid transparent;
}
.tl-nav__caret { font-size: 9px; margin-left: 5px; opacity: .6; }
#tl-header .tl-nav__item.is-active > .tl-nav__link,
#tl-header .tl-nav__item:hover > .tl-nav__link { color: #c8102e !important; opacity: 1; border-bottom-color: #c8102e; }

/* Выпадающие панели на всю ширину */
.tl-mega {
	display: none;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	border-top: 1px solid #eee;
	box-shadow: 0 14px 28px rgba(0, 0, 0, .10);
	padding: 32px 0 36px;
}
.tl-nav__item--mega:hover > .tl-mega,
.tl-nav__item--mega.is-open > .tl-mega { display: block; }
.tl-mega__inner {
	display: flex;
	justify-content: center;
	gap: 48px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}

/* иконка в пункте */
.tl-ico { flex: 0 0 18px; width: 18px; height: 18px; font-size: 16px; line-height: 18px; text-align: center; color: #8a8f96; }
svg.tl-ico { display: block; }

/* Каталог */
.tl-mega__col { flex: 0 1 230px; }
.tl-mega__group { margin-bottom: 18px; }
.tl-mega__title { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.tl-mega__link { display: block; padding-left: 28px; font-size: 12px; line-height: 1.7; color: #555 !important; }
#tl-header .tl-mega__link:hover, #tl-header .tl-mega__title:hover { color: #c8102e !important; opacity: 1; }

/* Фасады: две колонки, кнопка «Весь ассортимент» внизу */
.tl-mega__inner--facades { gap: 60px; align-items: flex-start; }
.tl-facades__col { flex: 1 1 0; max-width: 520px; }
.tl-facades__group { margin-bottom: 18px; }
.tl-facades__title { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; line-height: 1.35; margin-bottom: 6px; color: #222 !important; }
.tl-facades__note { font-weight: 400; text-transform: none; color: #888; letter-spacing: 0; }
.tl-facades__link { display: block; font-size: 12px; line-height: 1.75; color: #555 !important; }
#tl-header .tl-facades__title:hover, #tl-header .tl-facades__link:hover { color: #c8102e !important; opacity: 1; }
.tl-facades__all { text-align: center; max-width: 1092px; margin: 10px auto 0; padding-top: 20px; border-top: 1px solid #eee; }
.tl-facades__all a { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
#tl-header .tl-facades__all a:hover { color: #c8102e !important; opacity: 1; }

/* Ключевые направления */
.tl-mega__inner--key { align-items: stretch; gap: 0; }
.tl-panel__head { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; color: #222; }
.tl-key__main { flex: 1 1 640px; padding-right: 48px; }
.tl-key__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.tl-key__aside { flex: 0 0 340px; padding-left: 40px; border-left: 1px solid #eee; }

.tl-iconlink {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 0;
	font-size: 13px;
	color: #444 !important;
}
.tl-iconlink--big { padding: 11px 0; }
.tl-iconlink--big .tl-ico { font-size: 20px; flex-basis: 22px; width: 22px; }
#tl-header .tl-iconlink:hover { color: #c8102e !important; opacity: 1; }
#tl-header .tl-iconlink:hover .tl-ico { color: #c8102e; }

.tl-key__accent { margin-top: 18px; padding-top: 14px; border-top: 1px solid #eee; }
.tl-iconlink--accent { font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: 12px; }
.tl-iconlink--accent .tl-ico { color: #c8102e; font-size: 20px; flex-basis: 22px; width: 22px; }

/* Каталог: прилипающий блок «крошки + заголовок + разделы» (клон, появляется при прокрутке) */
.tl-sticky-catalog {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1030;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	transform: translateY(-100%);
	transition: transform .2s ease;
	pointer-events: none;
}
.tl-sticky-catalog.is-visible { transform: translateY(0); pointer-events: auto; }
.tl-sticky-catalog .breadcrumb_my { padding-top: 8px !important; }
.tl-sticky-catalog .breadcrumb_my h1 { margin-bottom: 0; }
.tl-sticky-catalog .tl-sticky-sections { margin: 0 !important; }
.tl-sticky-catalog .tl-sticky-sections > .col { margin-top: 4px !important; margin-bottom: 10px !important; }

/* Шапка больше не лежит поверх слайдера — убираем старый отступ под фиксированную шапку */
.breadcrumb_my { padding-top: 20px !important; }

/* Узкие экраны: ужимаем, чтобы меню оставалось в одну строку */
@media (max-width: 1399px) {
	.tl-info__item { padding: 6px 16px; max-width: 240px; }
	.tl-nav__link { padding: 14px 7px 12px; font-size: 12px; letter-spacing: 0; }
}
@media (max-width: 1199px) {
	.tl-container { padding: 0 14px; }
	.tl-nav__link { padding: 13px 5px 11px; font-size: 11.5px; }
	.tl-nav__caret { display: none; }
	.tl-mega__inner { gap: 24px; }
	.tl-key__aside { flex-basis: 280px; padding-left: 24px; }
}
@media (max-width: 991px) {
	.tl-bar__inner { min-height: 64px; }
	.tl-logo img { max-height: 44px; max-width: 150px; }
	.tl-bar__icons { margin-left: auto; }
}
