@font-face {
	font-family: 'Gilroy-Regular';
	src: url('/local/templates/uspeh/fonts/gilroy-regular.eot'); /* IE 9 Compatibility Mode */
	src: url('/local/templates/uspeh/fonts/gilroy-regular.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
		url('/local/templates/uspeh/fonts/gilroy-regular.woff2') format('woff2'), /* Super Modern Browsers */
		url('/local/templates/uspeh/fonts/gilroy-regular.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
		url('/local/templates/uspeh/fonts/gilroy-regular.ttf') format('truetype'), /* Safari, Android, iOS */
		url('/local/templates/uspeh/fonts/gilroy-regular.svg#gilroy-regular') format('svg'); /* Chrome < 4, Legacy iOS */
}

@font-face {
	font-family: 'Gilroy-Light';
	src: url('/local/templates/uspeh/fonts/gilroy-light.eot'); /* IE 9 Compatibility Mode */
	src: url('/local/templates/uspeh/fonts/gilroy-light.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
		url('/local/templates/uspeh/fonts/gilroy-light.woff2') format('woff2'), /* Super Modern Browsers */
		url('/local/templates/uspeh/fonts/gilroy-light.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
		url('/local/templates/uspeh/fonts/gilroy-light.ttf') format('truetype'), /* Safari, Android, iOS */
		url('/local/templates/uspeh/fonts/gilroy-light.svg#gilroy-light') format('svg'); /* Chrome < 4, Legacy iOS */
}

@font-face {
	font-family: 'Gilroy-Bold';
	src: url('/local/templates/uspeh/fonts/gilroy-bold.eot'); /* IE 9 Compatibility Mode */
	src: url('/local/templates/uspeh/fonts/gilroy-bold.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
		url('/local/templates/uspeh/fonts/gilroy-bold.woff2') format('woff2'), /* Super Modern Browsers */
		url('/local/templates/uspeh/fonts/gilroy-bold.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
		url('/local/templates/uspeh/fonts/gilroy-bold.ttf') format('truetype'), /* Safari, Android, iOS */
		url('/local/templates/uspeh/fonts/gilroy-bold.svg#gilroy-bold') format('svg'); /* Chrome < 4, Legacy iOS */
}

@font-face {
	font-family: 'Gilroy-Medium';
	src: url('/local/templates/uspeh/fonts/gilroy-medium.eot'); /* IE 9 Compatibility Mode */
	src: url('/local/templates/uspeh/fonts/gilroy-medium.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
		url('/local/templates/uspeh/fonts/gilroy-medium.woff2') format('woff2'), /* Super Modern Browsers */
		url('/local/templates/uspeh/fonts/gilroy-medium.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
		url('/local/templates/uspeh/fonts/gilroy-medium.ttf') format('truetype'), /* Safari, Android, iOS */
		url('/local/templates/uspeh/fonts/gilroy-medium.svg#gilroy-medium') format('svg'); /* Chrome < 4, Legacy iOS */
}

@font-face {
	font-family: 'Gilroy-SemiBold';
	src: url('/local/templates/uspeh/fonts/gilroy-semibold.eot'); /* IE 9 Compatibility Mode */
	src: url('/local/templates/uspeh/fonts/gilroy-semibold.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
		url('/local/templates/uspeh/fonts/gilroy-semibold.woff2') format('woff2'), /* Super Modern Browsers */
		url('/local/templates/uspeh/fonts/gilroy-semibold.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
		url('/local/templates/uspeh/fonts/gilroy-semibold.ttf') format('truetype'), /* Safari, Android, iOS */
		url('/local/templates/uspeh/fonts/gilroy-semibold.svg#gilroy-semibold') format('svg'); /* Chrome < 4, Legacy iOS */
}


body {
	 font-family: "Gilroy-Regular", sans-serif;
	 font-size: 16px;
	 background: #F5F5F5;
	 color: #343737;
}

a {
	color: #343737;
}

#footer {
	background: #323232;
	padding: 30px 0;
	position: relative;
}

#footer:before {
	content: '';
	background: url(/local/templates/uspeh/img/f_before.svg);
	width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left;
  z-index: 1;
}

#footer:after {
	content: '';
	background: url(/local/templates/uspeh/img/f_after.svg);
	width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  right: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
  z-index: 1;
}

.footer {
	display: flex;
	justify-content: space-between;
	z-index: 2;
	position: relative;
}

.footer h3 {
	color: #FFF707;
  font-size: 20px;
  font-weight: 500;
}

#footer .footer a {
	color: #fff;
	font-family: "Gilroy-Light", sans-serif;
}

#footer .f_catalog ul,
#footer .f_contacts ul,
#footer .f_address ul {
margin: 0;
  padding: 0;
  list-style: none;
}

#footer .f_catalog ul li,
#footer .f_contacts ul li {
margin: 9px 0px;
}

#footer .f_catalog ul li a {

}

#footer .f_catalog ul li a:hover {

}

h2.title {
font-family: "Gilroy-Bold", sans-serif;
text-transform: uppercase;
margin-bottom: 60px;
margin-top: 60px;
}

#main_category {
	background: #F5F5F5;
	padding-bottom: 100px;
}

.list_catalog {
	display: flex;
	flex-wrap: wrap;
	gap: 26px;
}

.list_catalog .item {
	width: 32%;
	margin-top: 180px;
position: relative;
}

.list_catalog .item a:hover {
	text-decoration: none;
	color: #000;
}

.list_catalog .item .img {

}

.list_catalog .item .img img {
	width: 100%;
  position: absolute;
  left: auto;
  right: auto;
  display: block;
  z-index: 9;
  //top: -175px;
  text-align: center;
  bottom:100px;
}

.list_catalog .item .name {
	background: #fff;
  border-radius: 4px;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 30px;
  -webkit-box-shadow: 0px 0px 8px -3px rgba(34, 60, 80, 0.2);
-moz-box-shadow: 0px 0px 8px -3px rgba(34, 60, 80, 0.2);
box-shadow: 0px 0px 8px -3px rgba(34, 60, 80, 0.2);
transition: all 0.3s ease;
}

.list_catalog .item .name h3 {
	
}

.list_catalog .item:hover .name {
	-webkit-box-shadow: 0px 0px 8px 2px rgba(34, 60, 80, 0.2);
-moz-box-shadow: 0px 0px 8px 2px rgba(34, 60, 80, 0.2);
box-shadow: 0px 0px 8px 2px rgba(34, 60, 80, 0.2);
transition: all 0.3s ease;
}

.running-line {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font-family: "Tilda Sans", Arial, sans-serif;
  font-weight: 500;
  position: relative;
  padding: 10px 0;
}

#marquee-container {
  display: inline-block;
}

#marquee-container a:hover {
  color: #fff;
  text-decoration: none;
}

.marquee-text-item {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  margin-right: 50px;
  font-size: 18px;
}

.marquee-text-item:after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 25px;
  background: #fff;
  border-radius: 50%;
  vertical-align: middle;
}

.marquee-text-item:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .marquee-text-item {
    font-size: 14px;
  }
}

#runstroke {
       display: flex;
       overflow-x: hidden;
       background: #A6A6A6;
}

#main_map .map-wrapper {
	position: relative;
	width: 100%;
	line-height: 0;
}

#main_map .map-wrapper iframe {
	display: block;
	width: 100%;
	border: 0;
}

#main_map .map-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: transparent;
	cursor: pointer;
	z-index: 2;
}

#main_map .map-wrapper.is-active .map-overlay {
	display: none;
}

#hit_prodaj {
	padding-top: 30px;
  padding-bottom: 100px;
  background: #fff;
}

.slider_prod {
	background: #F5F5F5;
	border-radius: 4px;
	padding-bottom: 20px;

}

.slider_prod .img {
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 4px 4px 0 0;
	background: #ffffff;
}

.slider_prod .img a {
	display: block;
	width: 100%;
	height: 100%;
}

.slider_prod .img a img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	border-radius: 4px 4px 0 0;
}

.slider_prod .name {
text-align: center;
height: 80px;
  padding: 0 15px;
  margin-top: 20px;
}

.slider_prod .name a {
	color: #535353;
	font-family: "Inter", Arial, sans-serif;
	font-size: 18px;
}

.slider_prod .name a:hover {
	text-decoration: none;
}

.slider_prod .price {
	background: url(/local/templates/uspeh/img/price.png);
	height: 60px;
  text-align: center;
  line-height: 52px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.slider_prod .price span {
	font-family: "Gilroy-SemiBold", Arial, sans-serif;
	font-size: 24px;
}

.phone_f {

}

.phone_f div {

}

.phone_f div a {
display: flex;
  gap: 5px;
  align-items: center;
}

.phone_f div a img {

}

.phone_f div a:hover {

}

.f_address {

}

.f_address p {
color: #fff;
}

.f_address ul {

}

.f_address ul li {
	margin: 3px 0;
}

.f_address ul li a {

}

.f_address .items {
	margin-bottom: 30px;
}

.f_address .items ul  {

}

.f_address .items ul li {
	color: #fff;
}

.f_address span {
color: #B1B1B1;
margin-top: 15px;
display: block;
}

.f_question {

}

.f_question .mail_f {
	margin: 15px 0;
}

.f_question .mail_f a {
	
}

.f_question .ask_question {
	margin-top: 30px;
display: block;
}

.f_question .ask_question a {
	background: #F4D800;
	border-radius: 12px;
	padding: 10px 25px;
	color: #000 !important;
	font-family: "Gilroy-SemiBold", Arial, sans-serif !important;
}

.f_question .ask_question a:hover {
	text-decoration: none;
	background: #B7A200;
}

  .owl-prev {
  background: url('https://res.cloudinary.com/milairagny/image/upload/v1487938188/left-arrow_rlxamy.png') left center no-repeat;
  height: 54px;
  position: absolute;
  top: 50%;
  width: 27px;
  z-index: 1000;
  left: 2%;
  cursor: pointer;
  color: transparent;
  margin-top: -27px;
}

.owl-next {
  background: url('https://res.cloudinary.com/milairagny/image/upload/v1487938220/right-arrow_zwe9sf.png') right center no-repeat;
  height: 54px;
  position: absolute;
  top: 50%;
  width: 27px;
  z-index: 1000;
  right: 2%;
  cursor: pointer;
  color: transparent;
  margin-top: -27px;
}

.owl-prev:hover,
.owl-next:hover {
  opacity: 0.5;
}

header {
	padding: 10px 0;
	position: sticky;
  top: 0;
  background: #f5f5f5;
  z-index: 999;
}

.header {
  
}

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

.header .logo {

}

.header .logo a {

}

.header .logo a img {

}

.header .btn_catalog {
padding: 10px;
  background: #fff;
  border-radius: 4px;
}

.header .btn_catalog a {
display: flex;
align-items: center;
gap: 10px;
font-family: "Gilroy-SemiBold", Arial, sans-serif;
font-size: 18px;
}

.header .btn_catalog a img {

}

.header .btn_catalog a span {

}

.header .btn_catalog a:hover {
	text-decoration: none;
	color: #000;
}

.header .btn_catalog {
	position: relative;
}

.btn_catalog__dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 100;
	min-width: 320px;
	max-width: 520px;
	max-height: 70vh;
	overflow-y: auto;
	padding: 16px 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
	pointer-events: none;
}

.btn_catalog.is-open .btn_catalog__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
	pointer-events: auto;
}

.catalog_popup__group {
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.btn_catalog.is-open .catalog_popup__group {
	opacity: 1;
	transform: translateY(0);
}

.btn_catalog.is-open .catalog_popup__group:nth-child(1) { transition-delay: 0.04s; }
.btn_catalog.is-open .catalog_popup__group:nth-child(2) { transition-delay: 0.08s; }
.btn_catalog.is-open .catalog_popup__group:nth-child(3) { transition-delay: 0.12s; }
.btn_catalog.is-open .catalog_popup__group:nth-child(4) { transition-delay: 0.16s; }
.btn_catalog.is-open .catalog_popup__group:nth-child(5) { transition-delay: 0.20s; }
.btn_catalog.is-open .catalog_popup__group:nth-child(6) { transition-delay: 0.24s; }
.btn_catalog.is-open .catalog_popup__group:nth-child(7) { transition-delay: 0.28s; }
.btn_catalog.is-open .catalog_popup__group:nth-child(n+8) { transition-delay: 0.32s; }

.catalog_popup__groups {
	list-style: none;
	margin: 0;
	padding: 0;
}

.catalog_popup__group {
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.catalog_popup__group:last-child {
	border-bottom: none;
}

.catalog_popup__group-title {
	display: block;
	font-family: "Gilroy-SemiBold", Arial, sans-serif;
	font-size: 16px;
	color: #212529;
	text-decoration: none;
}

.catalog_popup__group-title:hover {
	color: #E10010;
	text-decoration: none;
}

.catalog_popup__group--sale .catalog_popup__group-title {
	color: #E10010;
	font-family: "Gilroy-Bold", Arial, sans-serif;
}

.catalog_popup__group--sale .catalog_popup__group-title:hover {
	color: #B80010;
}

.header .delivery {
padding: 10px;
  background: #fff;
  border-radius: 4px;
}

.header .delivery a {
display: flex;
align-items: center;
gap: 10px;
font-family: "Gilroy-SemiBold", Arial, sans-serif;
font-size: 18px;
}

.header .delivery a img {

}

.header .delivery a:hover {
	text-decoration: none;
	color: #000;
}

.header .search {
	position: relative;
}

.header .search input {
width: 375px;
  border: 0px;
  border-radius: 4px;
  padding: 11px 15px 10px 36px;
  font-size: 18px;
  outline: none;
}

.header .search input:focus {
     background: #ffe; /* Цвет фона */
     border: 0px solid #29B0D9; /* Параметры рамки */
   }

.header .search:before {
	content: '';
	background: url(/local/templates/uspeh/img/search.svg);
	width: 18px;
	height: 18px;
	display: block;
	position: absolute;
	margin-top: 14px;
  margin-left: 9px;
  z-index: 1;
}

.header .contacts {
display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.header .contacts .choice_city {
	width: 100%;
	display: flex;
	gap: 10px;
	align-items: center;
}

.header .contacts .choice_city span {
display: flex;
font-family: "Gilroy-SemiBold", Arial, sans-serif;
  font-size: 16px;
  color: #E10010;
}

.header .contacts .choice_city select {
border: 0;
  background: #f5f5f5;
}

.header .contacts .choice_city span:before {
	content: '';
	background: url(/local/templates/uspeh/img/point.svg);
	width: 25px;
	height: 25px;
	display: block;
}

.header .contacts .phones {

}

.header .contacts .phones ul {
	list-style: none;
	padding: 0;
}

.header .contacts .phones ul li {
	padding: 5px 0px;
}

.header .contacts .phones ul li a {
	display: flex;
  align-items: center;
  gap: 5px;
}

.header .contacts .phones ul li a:hover {

}

.header .contacts .phones ul li a img {

}

.header .contacts .phones ul li a span {

}

.header .contacts .address {

}

.header .contacts .address ul {
	list-style: none;
	padding: 0;
}

.header .contacts .address ul li {
display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 0px;
}

.header .contacts .address ul li img {

}

.header .contacts .address ul li span {

}

.banner_content h1 {
	color: #343737;
	font-size: 54px;
	line-height: 1.05;
	text-transform: uppercase;
	font-family: "Gilroy-Bold", Arial, sans-serif;
	margin-bottom: 16px;
}

.banner_content span {
	color: #535353;
	font-size: 20px;
	font-family: "Gilroy-Light", Arial, sans-serif;
}

.banner_content .banner_btn {
	margin-top: 36px;
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 20px;
}

.banner_content .banner_btn a {
	display: inline-block;
	background: #FFF700;
	border-radius: 10px;
	padding: 20px 32px;
	color: #000 !important;
	font-family: "Gilroy-SemiBold", Arial, sans-serif !important;
	font-size: 16px;
	text-decoration: none;
	-webkit-box-shadow: 0px 6px 18px -4px rgba(34, 60, 80, 0.25);
	-moz-box-shadow: 0px 6px 18px -4px rgba(34, 60, 80, 0.25);
	box-shadow: 0px 6px 18px -4px rgba(34, 60, 80, 0.25);
	transition: all 0.3s ease;
}

.banner_content .banner_btn a:hover {
	background: #B7A200;
	text-decoration: none;
	-webkit-box-shadow: 0px 8px 22px -2px rgba(34, 60, 80, 0.35);
	-moz-box-shadow: 0px 8px 22px -2px rgba(34, 60, 80, 0.35);
	box-shadow: 0px 8px 22px -2px rgba(34, 60, 80, 0.35);
}

#catalog {

}

#catalog .catalog {
display: flex;
justify-content: space-between;
gap: 30px;
}

#catalog .catalog .cat_menu {
	width: 19%;
	margin-top: 60px;
}

#catalog .catalog .prod_list {
	width: 80%;
}

#catalog .catalog {

}

#catalog .catalog {

}

#catalog .catalog {

}

#catalog .catalog {

}

.cat_menu .menu-container {
            
            
            border-radius: 16px;
            overflow: hidden;
            
        }

        .cat_menu .menu-header {
            padding: 20px;
            background: #f8f9fa;
            border-bottom: 2px solid #e9ecef;
        }

        .cat_menu .menu-header h3 {
            color: #495057;
            font-weight: 600;
        }

        .cat_menu .menu-item {
            
        }

        .cat_menu .category-link {
            width: 100%;
            font-family: "Gilroy-SemiBold", sans-serif;
            padding: 16px 0px 0 0;
            background: #F5F5F5;
            border: none;
            display: flex;
            align-items: center;
            justify-content: start;
            cursor: pointer;
            font-size: 18px;
            font-weight: 500;
            color: #212529;
            transition: background 0.2s;
        }

        .cat_menu .menu-button:hover {
            background: #F5F5F5;
        }

        .cat_menu .menu-button.active {
            background: #F5F5F5;
            color: #000;
        }

        .cat_menu .icon {
            margin-right: 12px;
            font-size: 30px;
        }

        .cat_menu .icon img {
            width: 25px;
  height: 30px;
        }

        .cat_menu .arrow {
            transition: transform 0.3s ease;
        }

        .cat_menu .menu-button.active .arrow {
            transform: rotate(180deg);
        }

        .cat_menu .submenu {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            background: #f5f5f5;
        }

        .cat_menu .submenu.show {
            max-height: 300px;
            transition: max-height 0.4s ease-in;
        }

        .cat_menu .submenu a {
            display: block;
            padding: 5px 0px 5px 0px;
            color: #5E5E5E;
            text-decoration: none;
            font-size: 18px;
            transition: all 0.2s;
            
        }

        .cat_menu .submenu a:hover {
            
            color: #5E5E5E;
            padding-left: 0px;
        }

        .cat_menu .submenu a:last-child {
            border-bottom: none;
        }

        .cat_menu .controls {
            margin-top: 20px;
            display: flex;
            gap: 10px;
        }

        .cat_menu .control-btn {
            padding: 8px 16px;
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s;
        }

        .cat_menu .control-btn:hover {
            background: #f1f3f5;
            border-color: #adb5bd;
        }

.cat_menu .nav_link {

}

.cat_menu .nav_link a {
font-family: "Gilroy-SemiBold", sans-serif;
display: flex;
  gap: 9px;
  align-items: center;
  font-size: 18px;
  padding: 10px 0;
}

.cat_menu .nav_link a img {
width: 25px;
  height: 30px;
}

.cat_menu .nav_link.red a {
	color: #E10010;
}

.cat_menu .nav_link {

}

.prod_list {
	background: #fff;
	padding: 40px;
}

/*.prod_list .products {
display: flex;
  flex-wrap: wrap;
  justify-content: start;
  gap: 20px;
}*/

.prod_list .products .item {
  background: #F5F5F5;
  border-radius: 4px;
  padding-bottom: 20px;
  width: 23%;
}

.prod_list .products .item .img a img {
  border-radius: 4px 4px 0px 0px;
  width: 100%;
}


.prod_list .products .item .name {
  text-align: center;
  height: 90px;
  padding: 0 15px;
  margin-top: 20px;
}

.prod_list .products .item .name a {
  color: #535353;
  font-family: "Inter", Arial, sans-serif;
  font-size: 18px;
}

.prod_list .products .item .price {
  background: url(/local/templates/uspeh/img/price.png);
    background-repeat: repeat;
    background-size: auto;
  height: 44px;
  text-align: center;
  line-height: 43px;
  background-repeat: no-repeat;
  background-size: contain;
}

.prod_list .products .item .price span {
  font-family: "Gilroy-SemiBold", Arial, sans-serif;
  font-size: 24px;
}

.prod_list {
  background: #fff;
  padding: 30px;
}

.prod_list:after {
  content: '';
  background: #fff;
  display: block;
  position: absolute;
  right: -1000px;
  width: 100%;
  height: 100%;
  top: 0;
  z-index: -1;
}

#content {
  overflow: hidden;
}

.quantity-block,
.buttons-block {
  display: none;
}

.product_item {
margin-bottom: 30px;
}

[data-entity="items-row"] { display: flex; flex-wrap: wrap; align-items: stretch; }
.product_item_block { display: flex; }
.product_item { display: flex; width: 100%; }

.product_item .product-item {
  background: #F5F5F5;
  border-radius: 4px;
  padding: 0;
  padding-bottom: 15px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product_item .product-item .product-item-title { flex: 1 1 auto; }

.product_item .product-item .img {
  width: 100%;
  height: 190px;
  display: block;

}

.product_item .product-item .img img {
  width: 100%;
  height: 100%;
object-fit: cover;
border-radius: 4px 4px 0px 0px;
}

.product_item .product-item .product-item-title {
  white-space: inherit;
  text-overflow: inherit;
  padding: 14px 18px;
  height: auto;
  min-height: 56px;
}

.product_item .product-item .product-item-title a {
  font-size: 16px;
color: #535353;
  font-family: "Inter", Arial, sans-serif;
}

.product_item .product-item .product-item-title a:hover {
  text-decoration: none;
}

.product_item .product-item .product-item-price-container {
  background: url(/local/templates/uspeh/img/price.png) no-repeat center center;
  background-size: contain;
  height: 44px;
  text-align: center;
  line-height: 44px;
}

.product_item .product-item .product-item-price-container .product-item-price-current {
  font-family: "Gilroy-SemiBold", Arial, sans-serif;
  font-size: 20px;
  color: #000;
}

.sort-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sort-container > span {
  font-family: "Gilroy-SemiBold", Arial, sans-serif;
  font-size: 14px;
  color: #2C2C2C;
}
.sort-dropdown {
  position: relative;
  display: inline-block;
}
.sort-dropdown .sort-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #2C2C2C;
  border: 1px solid #D9D9D9;
  border-radius: 6px;
  padding: 8px 30px 8px 14px;
  font-family: "Gilroy-SemiBold", Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
  min-width: 200px;
  text-align: left;
  position: relative;
  transition: border-color 0.15s ease;
}
.sort-dropdown .sort-button::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #888;
  border-bottom: 2px solid #888;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.sort-dropdown.is-open .sort-button { border-color: #E63D49; }
.sort-dropdown.is-open .sort-button::after {
  transform: translateY(-30%) rotate(-135deg);
}
.sort-dropdown .sort-options {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #D9D9D9;
  border-radius: 6px;
  z-index: 20;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
.sort-dropdown.is-open .sort-options { display: block; }
.sort-dropdown .sort-options > div a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: #2C2C2C;
  text-decoration: none;
  transition: background 0.15s ease;
}
.sort-dropdown .sort-options > div a:hover {
  background: #F6F6F6;
  color: #E63D49;
}

.smart-filter-form {
  display: flex;
  gap: 30px;
  align-items: center;
}

.smart-filter-parameters-box {
  display: flex;
  align-items: center;
  gap: 15px;
}

.smart-filter-input-group-number .input_price {
  display: flex;
  gap: 15px;
}

.input_price .form-group {
  margin: 0;
}

.bx-active .smart-filter-parameters-box-title-text {
  color: #2C2C2C;
  font-size: 16px;
}

.smart-filter-parameters-box-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0;
  font-size: 18px;
}

.input_price .smart-filter-input-container {
display: flex;
align-items: center;
gap: 10px;
color: #595959;
font-family: "Gilroy-Regular", sans-serif;
}

.input_price .smart-filter-input-container input {
  border: 0px;
  border-bottom: 1px solid #CACACA;
  -webkit-box-shadow: inset 0 0px 0px rgba(0, 0, 0, .075);
  box-shadow: inset 0 0px 0px rgba(0, 0, 0, .075);
  -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
  -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  border-radius: 0;
}

.btn_f .smart-filter-parameters-box-container {
  display: flex;
  gap: 15px;
}

.btn_f .smart-filter-parameters-box-container #set_filter {
  background: transparent;
  border: 0;
  color: #000;
  font-family: "Gilroy-SemiBold", sans-serif;
  font-size: 16px;
}

.btn_f .smart-filter-parameters-box-container #del_filter {
  background: transparent;
  border: 0;
  color: #000;
  font-family: "Gilroy-Regular", sans-serif;
  font-size: 16px;
}

.products .catalog-section {
  display: inline-block;
}






.cat_menu .menu-item-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
    
    .cat_menu .category-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: inherit;
        flex-grow: 1;
        padding: 10px 0;
    }
    
    .cat_menu .category-link .icon {
        margin-right: 10px;
        display: flex;
        align-items: center;
    }
    
    .cat_menu .category-link .icon img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }
    
    .cat_menu .arrow {
        cursor: pointer;
        padding: 0px;
        display: flex;
        align-items: center;
        /*transition: transform 0.3s;*/
        transform: rotate(180deg);
        font-size: 24px;
  color: #5E5E5E;
  padding: 5px;
    }

    .cat_menu .arrow img {
      width: 10px;
    }
    
    .cat_menu .arrow.active {
        transform: rotate(0deg);
    }
    
    .cat_menu .subcategory-link {
        display: flex;
        align-items: center;
        padding: 8px 15px;
        text-decoration: none;
        color: inherit;
    }
    
    .cat_menu .subcategory-icon {
        width: 20px;
        height: 20px;
        object-fit: contain;
        margin-right: 8px;
    }
    
    .cat_menu .submenu {
        display: none;
    }
    
    .cat_menu .submenu.show {
        display: block;
    }

.cat_list {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.cat_list .catalog-section-list-item {
width: 20%;
}

.pro_detail {
  display: flex;
}

.pro_detail .prod_img {
width: 60%;
}

.pro_detail .pro_info {
width: 40%;
}

.main-button-container {
  display: none;
}

.product-item-detail-price-current {
  text-align: left;
  font-family: "Gilroy-SemiBold", Arial, sans-serif;
  font-size: 25px;
}

.product-item-detail-pay-block {
  position: relative;
  margin-bottom: 15px;
  padding: 0;
  border: 0px solid #e4e4e4;
  border-radius: 3px;
  background-color: transparent;
}

.pro_info h1 {
  font-family: "Gilroy-SemiBold", Arial, sans-serif;
  font-size: 24px;
  margin-bottom: 30px;
}


#banner {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

#banner .banner_slide {
  position: relative;
}

#banner .banner_slide__inner {
  display: flex;
  align-items: center;
  min-height: 600px;
}

#banner .banner_content {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

#banner .banner_slide__media {
  flex: 0 0 60%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#banner .banner_slide__media img {
  display: block;
  max-width: 100%;
  height: auto;
  position: absolute;
  bottom: 0;
  max-width: 905px;
  max-height: 600px;
}

#banner .banner_slide__media img.banner_slide__image--mobile { display: none; }

#banner .container {
  position: relative;
  z-index: 3;
}

/* Breakout: на десктопе правая часть баннера тянется до края viewport */
@media (min-width: 1200px) {
  #banner .banner_slide__inner {
    position: relative;
  }

  #banner .banner_slide__media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 40%;
    right: calc((100vw - 100%) / -2);
    flex: initial;
    justify-content: flex-end;
  }

  #banner .banner_slide__media img {
    right: 0;
    left: auto;
  }
}

/* мобильная раскладка баннера — от 1199px и ниже */
@media (max-width: 1199px) {
  #banner {
    background: #f5f5f5;
  }

  #banner .banner_slide {
    position: relative;
    overflow: hidden;
  }
  /* картинка как фон блока */
  #banner .banner_slide__inner {
    flex-direction: column;
    min-height: 650px;
    align-items: stretch;
    gap: 0;
    padding: 30px 0 40px;
    text-align: center;
    position: relative;
    z-index: 2;
    background-image: url(/local/templates/uspeh/img/banner_mobile.png);
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: min(560px, 85%) auto;
  }

  /* разворачиваем banner_content, чтобы h1/span/btn стали прямыми детьми inner */
  #banner .banner_content {
    display: contents;
  }

  .banner_content h1 {
    order: 1;
    font-size: 36px;
    line-height: 1.1;
    margin: 0 0 10px;
    text-align: center;
  }

  .banner_content span {
    order: 2;
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
    display: block;
  }

  /* скрываем блок с img — фон уже на inner */
  #banner .banner_slide__media { display: none; }

  .banner_content .banner_btn {
    order: 3;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    position: absolute;
    z-index: 3;
    bottom: 60px;
    left: 0;
    right: 0;
  }

  .banner_content .banner_btn a {
    padding: 18px 40px;
    font-size: 16px;
    max-width: 90%;
  }
}

@media (max-width: 900px) {
  #banner .banner_slide__inner { gap: 20px; }
  .banner_content h1 { font-size: 38px; }
  .banner_content span { font-size: 16px; }
}

@media (max-width: 600px) {
  #banner .banner_slide__inner { flex-direction: column; min-height: 570px; align-items: stretch; }
  #banner .banner_content { flex: 1; padding: 24px 0; }
  #banner .banner_slide__media { flex: 1; }
  .banner_content h1 { font-size: 30px; }
}

#banner .owl-nav {
  margin: 0;
}

#banner .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

#banner .owl-nav .owl-prev {
  left: 20px;
}

#banner .owl-nav .owl-next {
  right: 20px;
}

#banner .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 5;
}

.choice_city {
    position: relative;
    display: inline-block;
}

.choice_city__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.choice_city__label {
    color: #e30613;
    font-weight: 600;
}

.choice_city__current {
    color: #333;
    position: relative;
    padding-right: 14px;
}

.choice_city__current::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    transform: translateY(-60%) rotate(45deg);
}

.choice_city__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    z-index: 1000;
    display: none;
}

.choice_city.is-open .choice_city__dropdown {
    display: block;
}

.choice_city__option {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 10px 16px;
    cursor: pointer;
    font: inherit;
    color: #333;
}

.choice_city__option:hover {
    background: #f7f7f7;
}

.choice_city__option.is-active {
    background: #f1f1f1;
    font-weight: 700;
}

/* ============================================= */
/* АДАПТИВ — ГЛАВНАЯ СТРАНИЦА                    */
/* ============================================= */

/* планшеты и меньше */
@media (max-width: 991px) {
  h2.title {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  #main_category {
    padding-bottom: 50px;
  }

  .list_catalog {
    gap: 20px;
  }

  .list_catalog .item {
    width: 48%;
    margin-top: 100px;
  }

  #hit_prodaj {
    padding-top: 20px;
    padding-bottom: 50px;
  }

  #main_map .map-wrapper iframe {
    height: 450px;
  }
}

/* мобильные — iPhone / Android */
@media (max-width: 767px) {
  h2.title {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
  }

  /* БАННЕР: выравнивание по центру, картинка снизу */
  #banner .banner_slide__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
	#banner .banner_slide > .container > .row > .col-md-12 {padding:0 !important;}

  #banner .banner_content {
    flex: 1;
    padding: 20px 0 0;
    text-align: center;
    align-items: center;
  }

  .banner_content h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .banner_content span {
    font-size: 14px;
  }

  .banner_content .banner_btn {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
  }

  .banner_content .banner_btn a {
    padding: 16px 24px;
    font-size: 15px;
    text-align: center;
  }

  #banner .banner_slide__media {
    flex: 1;
    justify-content: center;
  }

  #banner .banner_slide__media img {
    width: 100%;
    max-width: 100%;
  }

  /* БЕГУЩАЯ СТРОКА */
  .marquee-text-item {
    font-size: 13px;
    margin-right: 30px;
  }

  .marquee-text-item:after {
    width: 7px;
    height: 7px;
    margin-left: 15px;
  }

  /* ХИТ ПРОДАЖ — 2 товара в ряд */
  #hit_prodaj {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .slider_prod {
    padding-bottom: 12px;
  }

  .slider_prod .name a {
    font-size: 13px;
  }

  .slider_prod .price span {
    font-size: 14px;
  }

  /* КАТАЛОГ — 1 колонка */
  #main_category {
    padding-bottom: 30px;
  }

  .list_catalog {
    gap: 80px;
    flex-direction: column;
  }

  .list_catalog .item {
    width: 100%;
    margin-top: 60px;
  }

  .list_catalog .item .img img {
    bottom: 70px;
  }

  .list_catalog .item .name {
    padding-top: 80px;
    padding-bottom: 20px;
  }

  .list_catalog .item .name h3 {
    font-size: 16px;
  }

  /* НАШИ МАГАЗИНЫ */
  #main_map .map-wrapper iframe {
    height: 300px;
  }

  /* ФУТЕР — в столбик */
  .footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #footer .f_logo img {
    max-width: 140px;
  }

  #footer:before,
  #footer:after {
    display: none;
  }
}

/* ФУТЕР — сетка 2 колонки на планшетах 768-1199 */
@media (min-width: 768px) and (max-width: 1199px) {
  .footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 40px;
    align-items: start;
  }

  .footer .f_logo {
    grid-column: 1 / -1;
  }

  .footer .f_logo img {
    max-width: 180px;
  }

  #footer:before,
  #footer:after {
    display: none;
  }

  #footer {
    padding: 40px 0 30px;
  }
}

/* очень узкие экраны */
@media (max-width: 480px) {
  .banner_content h1 {
    font-size: 20px;
  }

  #banner .banner_slide__inner {
    min-height: 450px;
    background-size: contain;
  }

  h2.title {
    font-size: 20px;
  }
}

/* ============================================= */
/* АДАПТИВ — ХЕДЕР                                */
/* ============================================= */

/* не выходим за viewport */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* баннер пониженной высоты только в диапазоне 1200–1399, чтобы не конфликтовать с мобильным ≤1199 */
@media (min-width: 1200px) and (max-width: 1399px) {
  #banner .banner_slide__inner {
    min-height: 525px;
  }
}

/* переносим контакты вниз, когда шапка не вмещается в одну строку */
@media (max-width: 1399px) {
  .header {
    flex-wrap: wrap;
    gap: 14px;
  }

  .header .contacts {
    order: 10;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    gap: 32px;
    padding-top: 10px;
  }

  .header .contacts .choice_city {
    width: auto;
    flex-shrink: 0;
  }

  .header .contacts .phones,
  .header .contacts .address {
    flex-shrink: 0;
  }

  .header .contacts .phones ul,
  .header .contacts .address ul {
    margin: 0;
  }

  .header .contacts .phones ul li,
  .header .contacts .address ul li {
    padding: 2px 0;
  }

  .header .search {
    flex: 1;
    min-width: 200px;
  }

  .header .search input {
    width: 100%;
  }
}

@media (max-width: 1199px) {
  .header .contacts .address ul li span,
  .header .contacts .phones ul li a span {
    font-size: 13px;
  }

  .header .btn_catalog a,
  .header .delivery a {
    font-size: 15px;
  }
}

/* ============================================= */
/* ХЕДЕР: переключение desktop / mobile            */
/* ============================================= */

/* по умолчанию — мобильная шапка скрыта */
.header-mobile { display: none; }

/* ≤991px — десктопная скрыта, мобильная активна */
@media (max-width: 991px) {
  header {
    padding: 0;
    position: static;
  }

  .header--desktop { display: none !important; }

  .header-mobile {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  /* Ряд 1: поиск + меню на красном фоне во всю ширину */
  .header-mobile__search-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #E63D49;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 12px calc(50vw - 50%);
  }

  .header-mobile__search {
    flex: 1;
    position: relative;
  }

  .header-mobile__search input {
    width: 100%;
    border: 0;
    background: #fff;
    border-radius: 10px;
    padding: 11px 16px 11px 44px;
    font-size: 15px;
    outline: none;
  }

  .header-mobile__search:before {
    content: '';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url(/local/templates/uspeh/img/search.svg) center / contain no-repeat;
    opacity: 0.8;
    z-index: 2;
    pointer-events: none;
  }

  .header-mobile__menu {
    flex-shrink: 0;
    position: relative;
  }

  .header-mobile__menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 0;
    border-radius: 10px;
    padding: 6px 16px 6px 6px;
    cursor: pointer;
    font-family: "Gilroy-SemiBold", Arial, sans-serif;
    font-size: 16px;
    color: #212529;
  }

  .header-mobile__menu-icon {
    width: 32px;
    height: 32px;
    background: #FFF700;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
  }

  .header-mobile__menu-icon::before,
  .header-mobile__menu-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 2px;
    background: #212529;
    border-radius: 2px;
  }

  .header-mobile__menu-icon::before {
    top: 9px;
    box-shadow: 0 6px 0 #212529;
  }

  .header-mobile__menu-icon::after {
    bottom: 9px;
  }

  /* Ряд 2: город | лого | контакты */
  .header-mobile__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .header-mobile__city {
    flex: 1 1 0;
    min-width: 0;
  }

  .header-mobile__city .choice_city {
    position: relative;
    display: inline-block;
  }

  .header-mobile__city .choice_city__trigger {
    background: none;
    border: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: "Gilroy-SemiBold", Arial, sans-serif;
    color: #E10010;
    font-size: 15px;
    text-decoration: underline;
    text-decoration-color: #E10010;
    text-underline-offset: 3px;
  }

  .header-mobile__city .choice_city__trigger:before {
    content: '';
    background: url(/local/templates/uspeh/img/point.svg) center / contain no-repeat;
    width: 18px;
    height: 18px;
    display: inline-block;
    flex-shrink: 0;
  }

  .header-mobile__city .choice_city__trigger:after {
    display: none;
  }

  .header-mobile__city .choice_city__current {
    color: #E10010;
    padding-right: 0;
    line-height: 1.15;
  }

  .header-mobile__city .choice_city__current::after {
    display: none;
  }

  /* попап меню в мобильной шапке — на планшете половина экрана справа */
  .header-mobile .btn_catalog__dropdown {
    position: fixed;
    left: auto;
    right: 10px;
    top: 140px;
    width: 50%;
    max-width: 520px;
    min-width: 300px;
  }

  .header-mobile__logo {
    flex-shrink: 0;
    display: block;
  }

  .header-mobile__logo img {
    max-width: 100px;
    height: auto;
    display: block;
  }

  .header-mobile__contacts {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
  }

  .header-mobile__phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Gilroy-SemiBold", Arial, sans-serif;
    font-size: 14px;
    color: #212529;
    text-decoration: none;
    white-space: nowrap;
  }

  .header-mobile__phone:hover {
    color: #212529;
    text-decoration: none;
  }

  .header-mobile__phone img {
    width: 20px;
    height: 20px;
  }

  .header-mobile__address {
    font-size: 12px;
    color: #8A8A8A;
    line-height: 1.3;
  }
}

/* мобильные — ≤767 */
@media (max-width: 767px) {
  .header-mobile__logo img { max-width: 92px; }

  .header-mobile__phone { font-size: 13px; }
  .header-mobile__phone img { width: 18px; height: 18px; }

  .header-mobile__address { font-size: 11px; }

  .header-mobile__city .choice_city__trigger { font-size: 13px; }

  .btn_catalog__dropdown {
    position: fixed;
    left: 10px;
    right: 10px;
    top: 130px;
    max-width: none;
    min-width: 0;
  }
}

/* очень узкие — компактнее, но телефон и адрес остаются видимыми */
@media (max-width: 480px) {
  .header-mobile__logo img { max-width: 80px; }
  .header-mobile__phone { font-size: 12px; }
  .header-mobile__phone img { width: 16px; height: 16px; }
  .header-mobile__address { font-size: 10px; }
}

/* ==================== Каталог: мобильный тулбар + drawer ==================== */
.catalog-mobile-toolbar { display: none; }
.catalog-drawer-close { display: none; }

@media (max-width: 991px) {
  .catalog-mobile-toolbar {
    display: flex;
    align-items: stretch;
    background: #EAEAEA;
    margin: 12px 0 0;
  }
  .catalog-mobile-toolbar__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    background: transparent;
    border: 0;
    font-family: "Gilroy-SemiBold", Arial, sans-serif;
    font-size: 17px;
    color: #2C2C2C;
    cursor: pointer;
  }
  .catalog-mobile-toolbar__btn:first-child { justify-content: flex-start; }
  .catalog-mobile-toolbar__btn:last-child { justify-content: flex-end; }
  .catalog-mobile-toolbar__btn:active { background: rgba(0,0,0,0.04); }
  .catalog-mobile-toolbar__icon {
    display: inline-flex;
    align-items: center;
    color: #2C2C2C;
  }

  /* основной контейнер каталога — колонкой, категории и фильтр сверху скрыты */
  #catalog .catalog {
    flex-direction: column;
    gap: 0;
  }
  #catalog .catalog .cat_menu {
    width: 100%;
    margin-top: 0;
    display: none;
  }
  #catalog .catalog .prod_list {
    width: 100%;
  }
  #catalog .catalog .prod_list .filters {
    display: none;
  }

  /* открытое состояние — поп‑ап в потоке страницы (карточка со скроллом) */
  body.catmenu-open #catalog .catalog .cat_menu,
  body.catfilter-open #catalog .catalog .prod_list .filters {
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 20px 20px 24px;
    margin-top: 10px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 8px 22px -2px rgba(0,0,0,.18);
    position: relative;
  }

  /* белый фон для всех внутренних элементов раскрытого меню (кроме кнопки закрытия) */
  body.catmenu-open .cat_menu,
  body.catmenu-open .cat_menu .menu-container,
  body.catmenu-open .cat_menu .menu-item,
  body.catmenu-open .cat_menu .menu-item-header,
  body.catmenu-open .cat_menu .category-link,
  body.catmenu-open .cat_menu .menu-button,
  body.catmenu-open .cat_menu .submenu,
  body.catmenu-open .cat_menu .nav_link,
  body.catmenu-open .cat_menu .nav_link a,
  body.catfilter-open .prod_list .filters,
  body.catfilter-open .prod_list .filters * {
    background: #fff !important;
  }
  body.catmenu-open .cat_menu .catalog-drawer-close,
  body.catfilter-open .prod_list .filters .catalog-drawer-close {
    background: #F3F3F3 !important;
  }

  .catalog-drawer-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #F3F3F3;
    border: 0;
    border-radius: 50%;
    color: #2C2C2C;
    cursor: pointer;
    z-index: 2;
  }
  body.catmenu-open .cat_menu .catalog-drawer-close,
  body.catfilter-open .prod_list .filters .catalog-drawer-close {
    display: inline-flex;
  }

  /* сетка товаров — принудительно 2 равные колонки на любом варианте */
  [data-entity="items-row"] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
  [data-entity="items-row"] > [class*="col-"],
  [data-entity="items-row"] > .product_item_block,
  [data-entity="items-row"] > .product-item-big-card,
  [data-entity="items-row"] > .product-item-small-card {
    width: auto !important;
    max-width: none !important;
    flex: initial !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 0 !important;
  }

  /* smart filter в drawer — вертикальная раскладка */
  body.catfilter-open .smart-filter-form {
    display: block;
  }
  body.catfilter-open .smart-filter-parameters-box {
    display: block;
    margin-bottom: 18px;
  }
  body.catfilter-open .smart-filter-input-group-number .input_price {
    flex-wrap: wrap;
    gap: 10px;
  }
  body.catfilter-open .btn_f .smart-filter-parameters-box-container {
    flex-direction: column;
    gap: 10px;
  }
}

/* ≤767 — дополнительная адаптация карточки товара */
@media (max-width: 767px) {
  .product_item_block { padding-left: 6px; padding-right: 6px; }
  .product_item .product-item .img { height: 280px; }
  .product_item .product-item .product-item-title {
    padding: 12px 12px 8px;
    height: auto;
    min-height: 64px;
  }
  .product_item .product-item .product-item-title a { font-size: 13px; }
  .product_item .product-item .product-item-price-container { height: 38px; line-height: 38px; }
  .product_item .product-item .product-item-price-container .product-item-price-current { font-size: 16px; }
}

/* подсветка текущего раздела в левом меню каталога */
.cat_menu .category-link.is-current,
.cat_menu .category-link.is-current .icon,
.cat_menu .menu-item.has-active-child > .menu-item-header > .category-link {
  color: #E63D49;
}
.cat_menu .category-link.is-current {
  font-family: "Gilroy-SemiBold", sans-serif;
}
.cat_menu .subcategory-link.is-current {
  color: #E63D49;
  font-family: "Gilroy-SemiBold", sans-serif;
}

/* ≤500 — одна колонка товаров + drawer на весь экран */
@media (max-width: 500px) {
  [data-entity="items-row"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .product_item .product-item .img { height: 240px; }

  body.catmenu-open,
  body.catfilter-open { overflow: hidden; }

  body.catmenu-open #catalog .catalog .cat_menu,
  body.catfilter-open #catalog .catalog .prod_list .filters {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1060 !important;
    background: #fff !important;
    overflow-y: auto !important;
    padding: 60px 16px 24px !important;
    margin-top: 0 !important;
    max-height: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .catalog-drawer-close {
    position: fixed !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 1070 !important;
  }

  /* header menu ≤500 — тоже на весь экран */
  .btn_catalog__dropdown {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    border-radius: 0 !important;
    overflow-y: auto;
    z-index: 1060;
    padding: 60px 16px 24px;
  }
  .btn_catalog__close {
    display: inline-flex !important;
  }
}

/* ==================== Выпадающий поиск ==================== */
.js-title-search { position: relative; }

.title-search-popup {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  box-shadow: 0 8px 22px -2px rgba(0,0,0,.18);
  padding: 6px 0;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 1070;
  font-size: 14px;
  color: #2C2C2C;
}
.title-search-popup[hidden] { display: none; }

.title-search-popup__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  color: #2C2C2C;
  text-decoration: none;
  line-height: 1.3;
}
.title-search-popup__item:hover {
  background: #F5F5F5;
  color: #2C2C2C;
  text-decoration: none;
}
.title-search-popup__item img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #F5F5F5;
}
.title-search-popup__noimg {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: #F5F5F5;
  flex-shrink: 0;
}
.title-search-popup__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.title-search-popup__price {
  margin-left: 8px;
  font-family: "Gilroy-SemiBold", sans-serif;
  color: #000;
  white-space: nowrap;
}
.title-search-popup__empty {
  padding: 14px;
  color: #8A8A8A;
  text-align: center;
}
.title-search-field {
  position: relative;
  width: 100%;
}
.title-search-ghost {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  color: #B4B4B4;
  pointer-events: none;
  white-space: pre;
  overflow: hidden;
  max-width: 100%;
  background: transparent;
}
.header .search .title-search-ghost { font-size: 18px; }
.header-mobile__search .title-search-ghost { font-size: 15px; }

.title-search-popup__section-title {
  padding: 10px 14px 6px;
  font-family: "Gilroy-SemiBold", sans-serif;
  font-size: 12px;
  color: #8A8A8A;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.title-search-popup__section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #2C2C2C;
  text-decoration: none;
  line-height: 1.3;
}
.title-search-popup__section:hover {
  background: #F5F5F5;
  color: #2C2C2C;
  text-decoration: none;
}
.title-search-popup__section svg {
  color: #8A8A8A;
  flex-shrink: 0;
}

.title-search-popup__history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}
.title-search-popup__history-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #F3F3F3;
  border: 0;
  border-radius: 999px;
  color: #2C2C2C;
  font-size: 13px;
  cursor: pointer;
}
.title-search-popup__history-item:hover { background: #E8E8E8; }
.title-search-popup__history-item svg { color: #8A8A8A; flex-shrink: 0; }

.title-search-popup__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
}
.title-search-popup__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #EAEAEA;
  border-top-color: #E63D49;
  border-radius: 50%;
  animation: title-search-spin 0.8s linear infinite;
}
@keyframes title-search-spin {
  to { transform: rotate(360deg); }
}

/* кнопка закрытия в header‑меню (по умолчанию скрыта, виден только в fullscreen) */
.btn_catalog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #F3F3F3;
  border: 0;
  border-radius: 50%;
  color: #2C2C2C;
  cursor: pointer;
  z-index: 2;
}

/* Модалка "Задать вопрос" в футере */
.ask-question__modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.ask-question__modal.is-open { display: flex; }

.ask-question__modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.ask-question__modal-body {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 40px 30px 30px;
  max-width: 480px;
  width: calc(100% - 30px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.ask-question__title {
  margin: 0 0 20px;
  font-family: "Gilroy-SemiBold", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  color: #2C2C2C;
}

.ask-question__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 32px;
  height: 32px;
}
.ask-question__close:hover { color: #2C2C2C; }

.ask-question__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ask-question__input {
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: "Gilroy-Regular", Arial, sans-serif;
  font-size: 15px;
  color: #2C2C2C;
  outline: none;
  transition: border-color 0.2s ease;
}
.ask-question__input--area { min-height: 100px; resize: vertical; }
.ask-question__input:focus { border-color: #37aee2; }

.ask-question__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #37aee2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 24px;
  margin-top: 4px;
  font-family: "Gilroy-SemiBold", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.ask-question__submit:hover { background: #2b97c4; }

.ask-question__ico {
  width: 20px;
  height: 20px;
  background: url(/local/templates/uspeh/components/bitrix/catalog.element/uspeh/img/telegram.svg) no-repeat center / contain !important;
  display: inline-block;
  flex-shrink: 0;
}

.ask-question__success {
  text-align: center;
  padding: 30px 10px;
  color: #1FB855;
  font-family: "Gilroy-SemiBold", Arial, sans-serif;
  font-size: 16px;
}

/* Скрываем блок ввода количества в карточках каталога */
.product-item-amount,
[data-entity="quantity-block"] {
  display: none !important;
}

/* Боковое меню категорий на странице Распродажа */
.sale-sidebar .catalog-drawer__body {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 16px 14px;
}
.sale-sidebar .catalog-drawer__group + .catalog-drawer__group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #F0F0F0;
}
.sale-sidebar .catalog-drawer__parent {
  display: block;
  font-family: "Gilroy-SemiBold", Arial, sans-serif;
  font-size: 15px;
  color: #2C2C2C;
  text-decoration: none;
  margin-bottom: 6px;
}
.sale-sidebar .catalog-drawer__parent:hover { color: #E63D49; }
.sale-sidebar .catalog-drawer__sublist {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}
.sale-sidebar .catalog-drawer__sublist li { margin: 2px 0; }
.sale-sidebar .catalog-drawer__sublist a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: color 0.15s ease;
}
.sale-sidebar .catalog-drawer__sublist a:hover { color: #E63D49; }

@media (max-width: 767px) {
  .sale-sidebar { margin-bottom: 20px; }
}

/* Горизонтальная сортировка — в подразделах каталога и на Распродаже */
.catalog-sort {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Gilroy-Regular", Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  margin-left: auto;
  margin-bottom: 14px;
}
.catalog-sort a {
  color: #2C2C2C;
  text-decoration: none;
  transition: color 0.15s ease;
  white-space: nowrap;
  line-height: 1;
  padding: 0;
  margin: 0;
}
.catalog-sort a:hover { color: #E63D49; }
.catalog-sort a.is-active { color: #E63D49; }

/* Скрыть кнопку "Сбросить" в smart.filter */
.prod_list .filters #del_filter,
.prod_list .filters input[name="del_filter"] { display: none !important; }

/* Горизонтальный фильтр в подразделах каталога — в одну строку со ссылками */
.prod_list .filters {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
}
.prod_list .filters > .filters__smart { flex: 0 1 auto; min-width: 0; }
.prod_list .filters > .catalog-sort { flex-shrink: 0; margin-left: auto; }
.prod_list .filters > .catalog-drawer-close { order: -1; }

@media (max-width: 1199px) {
  .prod_list .filters { flex-wrap: wrap; }
  .prod_list .filters > .catalog-sort { margin-left: 0; }
}

@media (max-width: 991px) {
  .catalog-sort {
    width: 100%;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
  }
}