/* ==========================================================================
   Баннеры главной 2026 — слайдер (4 баннера) + постоянный «Окна»
   ========================================================================== */

.banners.has-static {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.36fr);
	gap: 22px;
	align-items: stretch;
}
.banners.has-static .carousel {
	position: relative;
	width: 100%;
	min-width: 0;
	aspect-ratio: 2.70 / 1;
}
.banners.has-static .static-wrap {
	position: relative;
	min-width: 0;
}
.banners.has-static .static {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	min-width: 0;
	width: auto;
	float: none;
	margin: 0;
	height: 100%;
	box-sizing: border-box;
}

/* --- карточка баннера --- */
.tsm-banner {
	position: relative;
	overflow: hidden;
	border-radius: 18px;
	background: #0f1114;
}
.tsm-banner > picture {
	display: block;
	width: 100%;
	height: 100%;
}
.tsm-banner__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* --- левый слайдер --- */
.banners.has-static .carousel .owl-carousel,
.banners.has-static .carousel .owl-stage-outer,
.banners.has-static .carousel .owl-stage,
.banners.has-static .carousel .owl-item {
	height: 100%;
}
.banners.has-static .carousel .item.tsm-banner--main {
	display: block;
	height: 100% !important;
	padding: 0;
	background-color: #0f1114 !important;
	background-image: none !important;
}
.banners.has-static .carousel .item.tsm-banner--main .text { display: none; }

/* --- правый постоянный баннер: цельное фото без белой панели --- */
.banners.has-static .static .item.tsm-banner--windows {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	background-image: none !important;
}
.banners.has-static .static .item.tsm-banner--windows > picture {
	display: block;
	width: 100%;
	height: 100%;
}
.banners.has-static .static .item.tsm-banner--windows .tsm-banner__img {
	object-position: left center;
}

/* --- оранжевая кнопка: единая вертикальная линия с текстом баннера --- */
.tsm-banner__cta {
	position: absolute;
	left: 3.75%;
	top: calc(64.8% + 22px);
	bottom: auto;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 264px;
	width: auto;
	height: 52px;
	padding: 0 28px;
	color: #fff;
	font-family: Roboto, Arial, "Helvetica Neue", sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	background-color: #ef550e;
	border-radius: 10px;
	box-shadow: none;
	box-sizing: border-box;
	cursor: pointer;
	transition: background-color .18s ease;
	-webkit-tap-highlight-color: transparent;
}
.tsm-banner__cta:hover { background-color: #d64a0b; }
.tsm-banner__cta:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; box-shadow: 0 0 0 4px rgba(239, 85, 14, .55); }

/* ссылка в баннере окон — текстом поверх фото, без плашки */
.tsm-banner__cta.tsm-banner__cta--text {
	left: 5.94%;
	top: calc(47.5% + 16px);
	bottom: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	color: #1b9fc6;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	text-decoration: none;
	transition: color .18s ease;
}
.tsm-banner__cta.tsm-banner__cta--text:hover {
	color: #178aa9;
	background: transparent;
}
.tsm-banner__cta--text .tsm-banner__cta-text { text-decoration: none; }
.tsm-banner__cta--text:hover .tsm-banner__cta-text { text-decoration: underline; }
.tsm-banner__cta-arrow {
	display: block;
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	transition: transform .18s ease;
}
.tsm-banner__cta--text:hover .tsm-banner__cta-arrow { transform: translateX(3px); }
.tsm-banner__cta.tsm-banner__cta--text:focus-visible {
	outline: 2px solid #1b9fc6 !important;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .85);
}

/* --- стрелки слайдера: круглые кнопки поверх баннера --- */
.tsm-banner__nav {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
}
.tsm-banner__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	color: #fff;
	background: rgba(24, 27, 31, .55);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 50%;
	box-shadow: none;
	box-sizing: border-box;
	cursor: pointer;
	pointer-events: auto;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	transition: background-color .18s ease, border-color .18s ease, opacity .18s ease;
	-webkit-tap-highlight-color: transparent;
}
.tsm-banner__arrow--prev { left: 12px; }
.tsm-banner__arrow--next { right: 12px; }
.tsm-banner__arrow:hover { background: rgba(15, 17, 20, .78); border-color: rgba(255, 255, 255, .22); }
.tsm-banner__arrow:focus-visible { outline: 2px solid #fff !important; outline-offset: 2px; box-shadow: 0 0 0 3px rgba(239, 85, 14, .7); }
.tsm-banner__arrow:disabled { opacity: .35; cursor: default; }
.tsm-banner__arrow svg { display: block; }

/* owl-nav не используется: стрелки кастомные, без дублей */
#top_banner_carousel .owl-nav { display: none !important; }

/* --- точки --- */
#top_banner_carousel .owl-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	z-index: 3;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	gap: 9px;
	margin: 0;
	padding: 0;
	pointer-events: none;
}
#top_banner_carousel .owl-dots .owl-dot {
	display: block;
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	pointer-events: auto;
}
#top_banner_carousel .owl-dots .owl-dot::before,
#top_banner_carousel .owl-dots .owl-dot::after {
	content: none !important;
	display: none !important;
}
#top_banner_carousel .owl-dots .owl-dot span {
	display: block;
	width: 8px;
	height: 8px;
	margin: 0;
	background: rgba(255, 255, 255, .55);
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	transition: background-color .18s ease;
}
#top_banner_carousel .owl-dots .owl-dot:hover span { background: rgba(255, 255, 255, .85); }
#top_banner_carousel .owl-dots .owl-dot.active span { background: #ef550e; }
#top_banner_carousel .owl-dots .owl-dot:focus-visible { outline: 2px solid #ef550e; outline-offset: 2px; }

/* --- планшет и телефон: карточки друг под другом --- */
@media (max-width: 900px) {
	.banners.has-static { display: block; }
	.banners.has-static .carousel {
		aspect-ratio: auto;
		width: 100%;
		height: auto;
	}
	.banners.has-static .carousel .owl-stage-outer,
	.banners.has-static .carousel .owl-stage,
	.banners.has-static .carousel .owl-item { height: auto !important; }

	.banners.has-static .carousel .item.tsm-banner--main {
		display: block;
		height: auto !important;
		background: #0f1114;
	}
	.banners.has-static .carousel .item.tsm-banner--main > picture {
		display: block;
		height: auto;
	}
	.banners.has-static .carousel .item.tsm-banner--main .tsm-banner__img {
		height: auto;
		aspect-ratio: 750 / 1080;
	}

	.banners.has-static .carousel .tsm-banner__cta {
		position: absolute;
		left: 8.8%;
		top: 36.2%;
		bottom: auto;
		display: inline-flex;
		min-width: 0;
		width: auto;
		max-width: 76%;
		height: 46px;
		margin: 0;
		padding: 0 18px;
		font-size: 15px;
		box-sizing: border-box;
	}

	.tsm-banner__arrow { width: 38px; height: 38px; top: 51.5%; }
	.tsm-banner__arrow--prev { left: 8px; }
	.tsm-banner__arrow--next { right: 8px; }
	.tsm-banner__arrow svg { width: 16px; height: 16px; }

	.banners.has-static .static-wrap {
		position: static;
		width: 100%;
		margin: 16px 0 0;
	}
	.banners.has-static .static {
		position: static;
		display: block;
		width: 100%;
		height: auto;
		margin: 0;
	}
	.banners.has-static .static .item.tsm-banner--windows {
		height: auto;
		background: transparent;
	}
	.banners.has-static .static .item.tsm-banner--windows > picture { height: auto; }
	.banners.has-static .static .item.tsm-banner--windows .tsm-banner__img {
		height: auto;
		aspect-ratio: 1280 / 1138;
	}
	.banners.has-static .static .item.tsm-banner--windows .tsm-banner__cta--text {
		left: 6%;
		top: calc(47.5% + 16px);
		font-size: 16px;
	}

	#top_banner_carousel .owl-nav { display: none; }
	#top_banner_carousel .owl-dots { bottom: 6px; }
}

@media (max-width: 480px) {
	.banners.has-static .carousel .tsm-banner__cta {
		top: 36.2%;
		height: 46px;
		margin: 0;
		padding: 0 16px;
		font-size: 15px;
	}
	.tsm-banner { border-radius: 16px; }
}
