/* Hero - Start */
.hero-section {
	padding-top: 30px;
	padding-bottom: 30px;
}

.hero-sidebar {
	height: 100%;
	min-height: 0;
	overflow: hidden;
	height: calc(100dvh - var(--header-height) - 60px);
}

.hero-slider .swiper-slide {
	width: 100% !important;
	height: calc(100dvh - var(--header-height) - 60px);
	max-height: 37vw;
	background-position: 50% 100%;
}

@media (max-width: 1279px) {
	.swiper.hero-slider {
		aspect-ratio: 533 / 662;
		width: 100%;
		max-width: 100%;
	}

	/* На mob sidebar схований (.pc), переозначаємо grid на одну колонку — інакше 1fr розрахується від (container - 400 sidebar) і hero-main вилазить за межі viewport */
	.hero-section .container.container-sidebar {
		grid-template-columns: minmax(0, 1fr);
		--side-bar: 0px;
	}

	/* min-width: 0 розриває цикл min-content (slide inline width 733 → wrapper → slider → hero-main → 1fr expand) */
	.hero-section .hero-main {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		overflow: hidden;
	}

	/* Контент slide припинається до низу — title на темній частині фото */
	.hero-slider .swiper-slide {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		height: 100%;
		max-height: 999vw;
	}

}

.hero-categories-box {
	padding: 30px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100%;
	max-height: 100%;
	overflow-y: auto;
	overscroll-behavior-y: contain;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
}

/* Hero categories — sidebar list (свій namespace, не плутати з .catalog-lightbox-wrapper) */
.hero-categories-title {
	margin-bottom: 5px;
}

.hero-categories-brands {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--primary);
	font-family: var(--font-family-1);
	font-weight: 600;
	font-size: 16px;
	line-height: 20px;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.hero-categories-brands:hover {
	opacity: 0.85;
}

.hero-categories-brands .icon-element {
	width: 21px;
	height: 21px;
	min-width: 21px;
}

.hero-categories-brands .icon-element img {
	filter: brightness(0) invert(1);
	width: 14px !important;
	height: 14px !important;
	min-width: 14px !important;
}

.hero-categories-list {
	display: flex;
	flex-direction: column;
	gap: 0px;
}

.hero-categories-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	padding: 5px 0;
	transition: all 0.3s ease;
	cursor: pointer;
}

.hero-categories-link {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	text-decoration: none;
}

.hero-categories-image {
	width: 31px;
	height: 31px;
	min-width: 31px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--white);
	border-radius: var(--radius-small);
}

.hero-categories-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.hero-categories-placeholder img {
	filter: brightness(0) invert(0.7);
}

.hero-categories-name {
	font-family: var(--font-family-1);
	font-size: 16px;
	line-height: 20px;
	font-weight: 500;
	color: var(--black);
	transition: all 0.2s ease;
}

.hero-categories-item:hover .hero-categories-name,
.hero-categories-item.active .hero-categories-name {
	color: var(--primary);
	font-weight: 600;
}

.hero-categories-arrow {
	width: 21px;
	height: 21px;
	min-width: 21px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--primary);
	border-radius: 3px;
}

.hero-categories-arrow img {
	width: 14px;
	height: 14px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

/* Hero subcategories — overlay panel поверх hero-slider при hover */
.hero-subcategories-panel {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	max-width: 800px;
	background: var(--white);
	border-radius: var(--radius-small);
	padding: 30px;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	z-index: 5;
}

.hero-subcategories-panel.active {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}

.hero-subcategories-content {
	display: none;
	flex-direction: column;
	gap: 30px;
	min-height: 100%;
}

.hero-subcategories-content.active {
	display: flex;
}

.hero-subcategories-content-title {
	font-family: var(--font-family-1);
	color: var(--black);
	margin: 0;
}

.hero-subcategories-list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.hero-subcategory-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: calc(100% / 5 - 20px * 4 / 5);
	text-decoration: none;
	color: var(--black);
	transition: color 0.3s ease;
}

.hero-subcategory-image {
	width: 62px;
	height: 62px;
	object-fit: contain;
	border-radius: var(--radius-medium);
	background: var(--light-gray);
}

.hero-subcategory-name {
	display: block;
	font-family: var(--font-family-1);
	font-size: 12px;
	line-height: 14px;
	font-weight: 500;
	color: var(--black);
	text-align: center;
	transition: all 0.3s ease;
}

.hero-subcategory-group:hover .hero-subcategory-name {
	color: var(--primary);
}

.hero-subcategories-view-all {
	align-self: flex-start;
	margin-top: auto;
}

/* Ноутбуки та менші екрани — вужчий overlay-panel */
@media (max-width: 1680px) {
	.hero-subcategories-panel {
		max-width: 700px;
	}
}

@media (min-width: 1280px) and (max-width: 1680px) {
	.hero-categories-box {
		padding: 20px;
		gap: 12px;
	}
	.hero-categories-title {
		font-size: 20px;
		line-height: 24px;
		margin-bottom: 0;
	}
	.hero-categories-brands {
		padding-bottom: 10px;
		font-size: 15px;
		line-height: 19px;
	}
	.hero-categories-brands .icon-element {
		width: 18px;
		height: 18px;
		min-width: 18px;
	}
	.hero-categories-brands .icon-element img {
		width: 12px !important;
		height: 12px !important;
		min-width: 12px !important;
	}
	.hero-categories-item {
		padding: 2px 0;
		gap: 10px;
	}
	.hero-categories-image {
		width: 24px;
		height: 24px;
		min-width: 24px;
	}
	.hero-categories-name {
		font-size: 14px;
		line-height: 18px;
	}
	.hero-categories-arrow {
		width: 18px;
		height: 18px;
		min-width: 18px;
	}
	.hero-categories-arrow img {
		width: 11px;
		height: 11px;
	}
}

.hero-main {
	position: relative;
	overflow: clip;
}

/* підкладка під білий текст hero: банер може виявитись світлим (зараз у налаштуваннях слайда — фото товару на світлому тлі),
   і тоді білий заголовок стає невидимим. Градієнт зліва не заважає темним банерам, але рятує світлі. hero-text-scrim */
.hero-slider .swiper-slide::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 35%, rgba(0, 0, 0, 0) 70%);
	pointer-events: none;
}

.hero-banner-content {
	position: relative;
	z-index: 2;
	max-width: 700px;
	padding: 70px;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.hero-title {
	margin: 0;
}

.hero-subtitle {
	font-family: var(--font-family-2);
	font-size: 15px;
	line-height: 23px;
	margin: 0;
	max-width: 500px;
}

.hero-cta {
	min-width: 262px;
	margin-top: 15px;
}

.swiper.hero-slider .swiper-pagination-hero {
	position: absolute;
	bottom: 30px;
	right: 50px;
	left: auto;
	width: auto;
	z-index: 3;
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

.swiper.hero-slider .swiper-pagination-hero .swiper-pagination-bullet {
	width: 76px;
	height: 6px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.4);
	opacity: 1;
	transition: background 0.2s ease;
}

.swiper.hero-slider .swiper-pagination-hero .swiper-pagination-bullet.swiper-pagination-bullet-active {
	background: var(--primary);
}

.hero-mob-catalog {
	display: none;
}
/* Hero - End */


/* Популярні категорії - Start */
.popular-categories-section {
	padding-top: 80px;
	padding-bottom: 0;
}

.popular-categories-section .h2 {
	margin-bottom: 40px;
}

.popular-categories-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: var(--blocks-indent);
}

.category-card {
	position: relative;
	padding: 40px;
	min-height: 377px;
	overflow: hidden;
	display: flex;
	align-items: stretch;
	border-radius: var(--radius-small);
}

.category-card-light {
	background: var(--light-gray);
}

.category-card-dark {
	background: var(--black);
}

.category-card-text {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 15px;
	max-width: 100%;
	/* текстовий шар лежить над посиланням-оверлеєм картки — робимо його прозорим для кліків */
	pointer-events: none;
}

.category-card-title {
	margin: 0;
}

.category-card-dark .category-card-title {
	color: var(--white);
}

.category-card-subtitle {
	font-family: var(--font-family-2);
	font-size: 15px;
	line-height: 23px;
	margin: 0;
	max-width: 432px;
}

.category-subtitle-light {
	color: var(--dark-gray);
}

.category-card-btn {
	min-width: 144px;
	margin-top: 0;
	align-self: flex-start;
	/* сама кнопка — справжнє посилання, клік по ній має вести в каталог */
	pointer-events: auto;
}

.category-card-image {
	position: absolute;
	right: 0;
	bottom: 0;
	top: 0;
	width: 60%;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	pointer-events: none;
}

/* Індивідуальні розміри фото по кожній карточці (PC) */
.popular-categories-grid .category-card:nth-child(1) .category-card-image { width: 70%; }
.popular-categories-grid .category-card:nth-child(2) .category-card-image { width: 50%; }
.popular-categories-grid .category-card:nth-child(3) .category-card-image { width: 40%; right: 20px; bottom: 30px; }
.popular-categories-grid .category-card:nth-child(4) .category-card-image { width: 35%; }
.popular-categories-grid .category-card:nth-child(5) .category-card-image { width: 50%; }
.popular-categories-grid .category-card:nth-child(6) .category-card-image { width: 55%; }

.category-card-image picture {
	display: block;
	width: 100%;
	height: 100%;
}

.category-card-image picture img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: right bottom;
}
/* Популярні категорії - End */


/* Популярні товари - Start */
.popular-products-section {
	padding-top: 80px;
	padding-bottom: 0;
}

.popular-products-header {
	gap: 30px;
	margin-bottom: 30px;
	flex-wrap: wrap;
	align-items: center;
}

.popular-products-title {
	margin: 0;
}

.popular-products-tabs {
	display: flex;
	gap: var(--blocks-indent);
	border-radius: var(--radius-small);
	overflow: hidden;
	margin: 0 auto;
}

.popular-products-arrows {
	margin-left: auto;
}

.popular-products-tab {
	cursor: pointer;
}

/* Tabs — вимикаємо зміну кольору на hover/active (базовий .btn-primary перемикає на accent) */
.popular-products-tab.btn-primary {
	--btn-hover-bg: var(--primary);
	--btn-hover-color: var(--primary-match);
}

.popular-products-tab.btn-light-gray {
	--btn-hover-bg: var(--light-gray);
	--btn-hover-color: var(--black);
}

.popular-products-arrows {
	display: flex;
	gap: 10px;
}

.popular-products-slider-wrap {
	position: relative;
}

.popular-products-slider {
	overflow: hidden;
}

.popular-products-pane-template {
	display: none;
}

.popular-products-footer {
	margin-top: 30px;
	display: flex;
	justify-content: center;
}
/* Популярні товари - End */


/* Виробники - Start */
.brands-section {
	padding-top: 80px;
	padding-bottom: 80px;
	margin-top: 80px;
	overflow: hidden;
}

.brands-section .container {
	color: var(--white);
}

.brands-title {
	margin: 0 0 15px 0;
}

.brands-subtitle {
	font-family: var(--font-family-2);
	font-size: 15px;
	line-height: 23px;
	margin: 0 0 40px 0;
	max-width: 700px;
}

.brands-slider {
	overflow: hidden;
}

/* слайдер брендів тримаємо в тих самих межах, що заголовок і кнопка — інакше плашки впираються у скруглений край секції */
.brands-section .container-full {
	max-width: calc(100% - var(--container-indent));
	width: calc(100% - var(--container-indent));
	margin: 0 auto;
}

.brand-slide {
	width: auto;
}

.brand-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 110px;
	padding: 0 25px;
	overflow: hidden;
	transition: transform 0.2s ease;
}

.brand-logo img {
	height: 100%;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}

.brand-logo:hover {
	transform: translateY(-2px);
}

.brand-logo-text {
	font-weight: 600;
	font-size: 18px;
	color: var(--black);
	text-align: center;
	white-space: nowrap;
}

.brands-footer {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}
/* Виробники - End */


/* Готові комплексні рішення - Start */
.solutions-section {
	padding-top: 80px;
	padding-bottom: 0;
}

.solutions-section .h2 {
	margin-bottom: 40px;
}

.solutions-grid {
	gap: var(--blocks-indent);
}

.solution-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.solution-card-image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 612 / 459;
}

.solution-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.solution-card:hover .solution-card-image img {
	transform: scale(1.03);
}

.solution-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.solution-card-title {
	margin: 0;
}

.solution-card-arrow {
	width: 31px;
	height: 31px;
	min-width: 31px;
}

.solution-card-arrow img {
	filter: brightness(0) invert(1);
}
/* Готові комплексні рішення - End */


/* Про You Security - Start */
.about-section {
	padding-top: 80px;
	padding-bottom: 0;
}

.about-section-grid {
	align-items: stretch;
}

.about-text-col {
	gap: 20px;
}

.about-title {
	margin: 0;
}

.about-text {
	font-family: var(--font-family-2);
	font-size: 15px;
	line-height: 23px;
	margin: 0;
}

.about-btn {
	min-width: 196px;
	align-self: flex-start;
	margin-top: 10px;
}

.about-features {
	display: flex;
	gap: 20px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.about-card {
	width: 212px;
	min-height: 162px;
	padding: 20px;
	border-radius: 7px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 20px;
}
.about-card img {
	width: 35px;
	object-fit: contain;
}

.about-card .icon-element {
	border: 2.5px solid var(--primary);
	border-radius: 7px;
	width: 55px;
	height: 55px;
}

.about-card-active .icon-element {
	border-color: var(--white);
}

.about-card-text {
	font-family: var(--font-family-1);
	font-weight: 600;
	font-size: 15px;
	line-height: 19px;
}

.about-image {
	width: 100%;
	overflow: hidden;
	height: 100%;
}

.about-image picture,
.about-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
@media (min-width: 1280px) and (max-width: 1680px) {
	.about-card {
		width: 190px;
	}
	.about-image picture, 
	.about-image img {
        height: auto;
        min-height: 35vw;
        border-radius: 15px;
        object-position: 27% 50%;
	}
}
/* Про You Security - End */


/* Залишились питання? - Start */
.cta-section {
	padding-top: 80px;
	padding-bottom: 120px;
}

.cta-section-grid {
	align-items: stretch;
}

.cta-image {
	width: 100%;
	overflow: hidden;
	height: 100%;
	min-height: 469px;
}

.cta-image picture,
.cta-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cta-form-col {
	justify-content: center;
}

.cta-form-wrap {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.cta-form-title {
	margin: 0;
}

.cta-form-text {
	font-family: var(--font-family-2);
	font-size: 15px;
	line-height: 23px;
	margin: 0;
}

.cta-form .form-data-group {
	display: flex;
	gap: 20px;
}

.cta-form .form-data-group .col-50 {
	flex: 1;
	min-width: 0;
}

.cta-form-submit {
	display: flex;
	align-items: center;
	gap: 25px;
	margin-top: 5px;
}

.cta-form-submit .btn {
	min-width: 176px;
}

.cta-form-social {
	display: none;
}

.cta-social-btn img {
	filter: brightness(0) invert(1);
	width: 18px !important;
	height: 18px !important;
	min-width: 18px !important;
}
/* Залишились питання? - End */


@media (max-width: 1680px) {
	.hero-banner-content {
		padding: 40px;
	}

	.hero-card {
		min-height: 140px;
		max-width: 200px;
	}

	.popular-categories-section,
	.popular-products-section,
	.brands-section,
	.solutions-section,
	.about-section,
	.cta-section {
		padding-top: 60px;
	}

	.brands-section {
		padding-bottom: 60px;
		margin-top: 60px;
	}

	.cta-section {
		padding-bottom: 100px;
	}
}


@media (max-width: 1279px) {
	.hero-section {
		padding-top: 15px;
		padding-bottom: 0;
	}

	.hero-sidebar {
		display: none;
	}

	.hero-main {
		min-height: auto;
	}

	.hero-banner {
		min-height: 441px;
		padding: 25px;
		border-radius: var(--radius-small);
	}

	.hero-banner-content {
		margin-top: 0;
		gap: 15px;
		padding: 20px 20px 60px 20px;
		max-width: 100%;
	}

	.hero-subtitle {
		display: none;
	}

	.hero-cta {
		display: none;
	}

	.swiper.hero-slider .swiper-pagination-hero {
		left: 20px;
		right: auto;
		bottom: 20px;
		transform: none;
		justify-content: flex-start;
		gap: 6px;
	}

	.swiper.hero-slider .swiper-pagination-hero .swiper-pagination-bullet {
		width: 24px;
		height: 4px;
		background: #DCDCDC;
	}

	.swiper.hero-slider .swiper-pagination-hero .swiper-pagination-bullet.swiper-pagination-bullet-active {
		background: var(--primary);
	}

	.hero-mob-catalog {
		display: flex;
		margin-top: 20px;
	}


	.popular-categories-section {
		padding-top: 40px;
	}

	.popular-categories-section .h2 {
		margin-bottom: 25px;
	}

	.popular-categories-grid {
		grid-template-columns: 1fr 1fr;
		gap: 15px;
	}

	.category-card {
		padding: 15px;
		min-height: 175px;
		flex-direction: column;
	}

	.category-card-text {
		max-width: 100%;
		gap: 8px;
	}

	.category-card-subtitle {
		display: none;
	}

	.category-card-btn {
		display: none;
	}

	.category-card-image {
		position: absolute;
		bottom: 0;
		right: 0;
		left: 0;
		width: 60%;
		height: 100%;
		opacity: 1;
		margin: 0 auto;
	}

	/* Індивідуальні розміри фото по карточці (mob) */
	.popular-categories-grid .category-card:nth-child(1) .category-card-image { width: 80%; }
	.popular-categories-grid .category-card:nth-child(2) .category-card-image { width: 70%; }
	.popular-categories-grid .category-card:nth-child(3) .category-card-image { width: 60%; right: 0; bottom: 10px; top: initial; }
	.popular-categories-grid .category-card:nth-child(4) .category-card-image { width: 50%; }
	.popular-categories-grid .category-card:nth-child(5) .category-card-image { width: 65%; }
	.popular-categories-grid .category-card:nth-child(6) .category-card-image { width: 70%; bottom: 10px; top: initial; }

	.category-card-title {
		font-size: 14px;
		line-height: 18px;
	}


	.popular-products-section {
		padding-top: 40px;
	}

	.popular-products-header {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}

	.popular-products-tabs {
		width: 100%;
	}

	.popular-products-tab {
		flex: 1;
		min-width: 0;
		padding: 0 12px;
	}

	.popular-products-arrows.pc {
		display: none;
	}

	.popular-products-arrows-mob {
		display: flex;
		justify-content: space-between;
		gap: 10px;
		margin-top: 15px;
		position: absolute;
		top: 50%;
		left: 0;
		right: 0;
		transform: translateY(-50%);
		pointer-events: none;
		z-index: 5;
		padding: 0 5px;
	}

	.popular-products-arrows-mob .swiper-button-prev,
	.popular-products-arrows-mob .swiper-button-next {
		pointer-events: auto;
		width: 35px;
		height: 35px;
		border-radius: var(--radius-max);
		background: var(--primary);
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.popular-products-arrows-mob .swiper-button-prev img,
	.popular-products-arrows-mob .swiper-button-next img {
		width: 14px;
		height: 14px;
	}

	.popular-products-section .container:last-child {
		position: relative;
	}


	.brands-section {
		padding-top: 40px;
		padding-bottom: 40px;
		margin-top: 40px;
	}

	.brands-subtitle {
		margin-bottom: 25px;
		font-size: 14px;
		line-height: 22px;
	}

	.brand-logo {
		height: 79px;
		padding: 0 20px;
	}

	.brands-footer {
		margin-top: 25px;
	}


	.solutions-section {
		padding-top: 40px;
	}

	.solutions-section .h2 {
		margin-bottom: 25px;
	}

	.solutions-grid {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}

	.solution-card-image {
		aspect-ratio: 355 / 266;
	}


	.about-image-col {
		order: -1;
	}

	.about-image {
		min-height: auto;
		aspect-ratio: 355 / 250;
	}

	.about-features {
		flex-wrap: wrap;
		gap: 15px;
	}

	.about-card {
		flex: 1 1 calc(50% - 7.5px);
		width: auto;
		min-height: 131px;
	}

	.about-card:nth-child(3) {
		flex: 0 0 calc(50% - 7.5px);
	}


	.cta-section {
		padding-top: 40px;
		padding-bottom: 40px;
	}

	.cta-image {
		min-height: auto;
		aspect-ratio: 355 / 250;
	}

	.cta-form .form-data-group {
		flex-direction: column;
		gap: 15px;
	}

	.cta-form-submit {
		flex-direction: row;
		gap: 15px;
		align-items: center;
		flex-wrap: nowrap;
	}

	.cta-form-submit .btn {
		min-width: 176px;
	}

	.cta-form-social {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 15px;
	}

	.cta-form-or {
		font-family: var(--font-family-1);
		font-weight: 600;
		font-size: 17px;
		line-height: 21px;
		color: var(--black);
	}

	.cta-form-socials {
		display: flex;
		gap: 15px;
	}

	.cta-social-btn {
		width: 42px !important;
		height: 42px !important;
		min-width: 42px !important;
	}
}


@media (max-width: 768px) {
	.popular-categories-grid {
		gap: 10px;
	}

	.category-card {
		padding: 12px;
		min-height: 173px;
	}

	.about-card {
		min-height: 120px;
		padding: 15px;
	}

	.about-card-text {
		font-size: 13px;
		line-height: 17px;
	}
}
