.brand-menu{
    display: flex; display: -webkit-flex;
    display: -webkit-flex;
    flex-wrap: wrap;
    justify-content: center;
    position: sticky;
    z-index: 5;
    transition: top 0.5s;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 3px 3px 3px rgb(0 0 0 / 15%);
    width: auto;
    margin: 0px 0px;
    padding: 10px 10px;
    /* border:0px 1px 1px 1px solid #dbdbdb;
    border-radius: 0px 0px 5px 5px;
    box-shadow: 0px 3px 3px rgba(0, 0, 0, .15); */
}
.brand-menu a{
    display: inline;
    text-align: center;
    font-size: 24px;
    color: rgb(56, 56, 56);
    padding: 1px 15px 0px;
    margin: 5px 0;
}
/* .brand-menuActive{
    border-bottom: 2px solid #fa0000;
} */
.brand-menu a:active{
    color: rgb(255, 0, 0);
}
.brand-menuActive{
    color: rgb(255, 0, 0) !important;
	/* width: 300px;
	margin: 0 auto;
	padding: 10px 10px; */
	/* position: relative; */
    /* background-color:rgb(154, 196, 250); */
    /* background: linear-gradient(225deg, rgb(000,161,155) 50%, rgba(0, 75, 161, 1) 50%); */
    /* background: linear-gradient(225deg, rgb(255,0,0), rgb(255, 255, 255), rgb(255,0,0)); */
    border-bottom: 1px solid gray;
    border-top: 1px solid gray;
    /* padding: 2px;
    border-radius: 3px; */
	/* background: #eee;
	border-radius: 3px;    */
	/* text-align: center; */
}
/* .brand-menuActive:before {
	content: ""; 
    
	border: solid transparent;
	position: absolute;
 	top: 100%;
	left: 50%;
	border-top-color: #fa0000;
	border-width: 9px;
	margin-left: -9px;
} */
.container_catalog{
    display: flex; display: -webkit-flex;
    display: -webkit-flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 10px;
    height: auto;
}
.container_choice__brand{
    display: flex; display: -webkit-flex;
    display: -webkit-flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 10px;
    height: auto;
}
.container_choice__brand a{
    display: flex; display: -webkit-flex;
    display: -webkit-flex;
    flex-direction: column;
}

.brand-block-horizontal{
    display: flex; display: -webkit-flex;
    position: sticky;
    top: 113px;
    z-index: 1;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: auto;
    height: auto;
    padding: 8px 10px;
    margin: 5px 5px;
}
.brand-block-horizontal img{
    position: relative;
    height: 40px;
}
.brand-block-horizontal p{
    font-size: 30px;
    color: white;
}

.brand-block-vertical{
    display: none;
    position: sticky;
    left: 0px;
    z-index: 1;
    width: auto;
    height: auto;
    padding: 10px 5px;
    /* margin: 5px 5px; */
}
.brand-block-vertical img{
    position: relative;
    width: 20px;
}
.brand-block-vertical p{
    font-size: 20px;
    color: white;
    writing-mode: vertical-rl;
}

.brand_choice_container{
    display: flex; display: -webkit-flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: auto;
    height: auto;
    border: 1px solid #dbdbdb;
    border-radius: 5px;
    padding: 10px 10px;
    margin: 5px 5px;
    min-height: 221px;
    
}
.brand_choice_catalog{
    display: flex; display: -webkit-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: nowrap;
    border: 2px solid white;
    border-radius: 5px;
    width: auto;
    height: auto;
    aspect-ratio: 1/1;
    flex: 1;
}
.brand_choice_caption{
    padding: 10px;
    font-size: 24px;
}
.brand_choice_img{
    position: relative;
    padding: 10px;
}
.brand_choice_img img{
    width: 200px;
    height: auto;
}
.brand_choice_technologies{
    display: flex; display: -webkit-flex;
    flex-direction: row;
    align-self: center;
    align-items: stretch;
    flex-wrap: nowrap;
}
.brand_choice_technologies_block{
    display: flex; display: -webkit-flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    width: min-content;
    justify-content: space-between;
}
.brand_choice_title{
    padding: 10px;
    font-size: calc(10px + 0.7vh);
    text-align: center;
    color: white;
}
.brand-block-horizontal-video{
    position: relative;
    height: auto;
    width: calc(200px + 5vw);
    padding: 10px 10px;
}

.product{
    display: flex; display: -webkit-flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: auto;
    height: auto;
    background: linear-gradient(135deg, rgb(154, 196, 250), rgba(156, 156, 180, 0) 70%);
    border: 1px solid #dbdbdb;
    border-radius: 5px;
    padding: 10px 10px;
    margin: 5px 5px;
    scroll-margin-top: 169px;
}
.picture img{
    height: 165px;
    width: 315px;

}
/*  */

.slides {
    display: flex; display: -webkit-flex;
    justify-content: center;
    transition: transform 0.5s ease-in-out;
   
  }
  
  .slide {
    display: none;
    object-fit: contain;
    width: 315px;
    height: 220px;
  }
  
  .block {
    display: block;
    
  }
  .slider {
    position: relative;
    overflow: hidden;
  }
  .nextButton{
    position: absolute;
    width: 30px;
    height: 30px;
    right: 5px;
    bottom: 0px;
  }
  /* "Эффект размытия картинки для быстрой предзагрузки */
  .blur-up-container {
    position: relative;
    overflow: hidden;
    }
    
    .blur-up-img img {
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    }
    
    .placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
    }
    
    .blur-up-img.loaded img {
    opacity: 1;
    }
    
    .blur-up-img.loaded .placeholder {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    }



.table{
    width: max-content;
    text-align: left;
}
table caption{
    white-space: nowrap;
    font-size: 28px; 
    padding-bottom: 15px;
}
.table td, th {
    padding: 2px;
}
.table td:nth-child(2n){
    text-align: right;
}
.mark{
    background: linear-gradient(90deg, rgb(255, 255, 0) 100%, rgba(255, 255, 0, 0.5));
}

.details div{
    position: absolute;
    border-radius: 5px;
    background: rgb(255, 255, 255);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 150%;
    padding: 10px;
    z-index: 500;
}
.details a{
    display: flex; display: -webkit-flex; 
    align-items: center;
    position: relative;
    margin-top: 5px;
    padding: 5px 5px;
    background: linear-gradient(225deg, rgb(000,161,155), rgba(0, 75, 161, 1) 70%);
    color: #ffffff;
    line-height: 1.2;
}
.table-price{
    width: max-content;
    text-align: left;
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}
.table-price td{
    padding: 2px 8px;
}

.table-price td:nth-child(3n){
    width: min-content;
}
.table-price th{
    padding: 5px 2px;
    text-align: left;
}

.table-price tr:nth-child(even) {
    background-color: rgb(154, 196, 250, 0.3);
  }
  .button_body_color {
    border: none;
    border-radius: 50%;
    width: clamp(0.8rem, 2.5vw, 1rem);
    height: auto;
    aspect-ratio: 1/1;
  }
  .buttonForm {
    border: none;
    border-radius: 5px;
    padding: 3px 3px;
    color: white;
    background-color: black;
  }
  /* всплывающее окно приветствия */
  .popup {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 500;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
.popup-content {
    position: relative;
    background: white; 
    border-radius: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    width: max-content;
    height: auto; 
    max-width: 90%;
}
.popup-content H1{
    font-size: clamp(2rem, 2.5vw, 3rem);
}
.popup-content p{
    margin-top: 16px;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}
.basket{
    height: clamp(0.5rem, 2.5vw, 1rem);
    width: auto;
    display: inline;
    padding: 0px 5px;
    vertical-align: baseline;
}
.close-btn { 
    position: absolute; 
    top: 10px; 
    right: 15px; 
    cursor: pointer; 
    font-size: 30px;
}

@media (max-width: 1130px) {

    .container_catalog{
        flex-direction:row;
        justify-content: left;
        overflow-x: auto;
        overflow-y: auto;
        scroll-behavior: smooth;
        margin-left: 0;
        padding: 0px;
        align-items: stretch;
        scroll-snap-type: x mandatory;
        scroll-padding: 35px;
    }
    .container_choice__brand{
        flex-direction:row;
        justify-content: left;
        overflow-x: auto;
        overflow-y: hidden;
        margin-left: 0;
        padding: 0px;
        align-items: stretch;
        scroll-snap-type: x mandatory;
        scroll-padding: 15px;
    }
    .container_choice__brand a{
        flex-direction: row;
        scroll-snap-align: start;
    }
    .brand_choice_container{
        flex-direction: column;
        min-height: 70vh;  
        min-width: 277px;
        align-content: space-between;
        margin: 5px 0 5px 5px;
    }
    .brand_choice_catalog{
        margin-bottom: 3vh;
    }
    .brand_choice_technologies{
        flex-direction: column;
        align-self: flex-end;
    }
    .brand-block-horizontal{
        /* width: 40px; */
        display: none
    }
    .brand-block-vertical{
        width: 40px;
        display: flex; display: -webkit-flex;
        justify-content: space-between;
        flex-direction: column;
        scroll-snap-align: none;
    }
    /* .brand-block-logo{
        transform: rotate(90deg);
        height: 30px;
    }
    .brand-block p{
        transform: rotate(90deg);
        white-space: nowrap;
        width: 40px;
    }
    .brand-block-video{
        position: relative;
        height: auto;
        width: 315px;
        padding: 20px 0px;
    } */
    .details div{
        /* position: relative;
        background-color: transparent; */
        top: 50%; left: 50%; transform: translate(-50%, -50%);
        border: none;
        /* left: 2%; */
        max-width: 96%;
        width: max-content;
        font-size: calc(8px + 0.5vh);
    }
    .product{
        flex-direction: column;
        position: relative;
        scroll-snap-align: start;
        margin: 5px 0 5px 5px;

    }
    .brand_hisense{
        flex-direction: column;
        align-items: flex-start;
        flex-wrap: nowrap;
    }

    .table{
        margin: 35px 0px;
        max-width: 97%;
    }
    .table-price{
        width: 100%;
        min-width: max-content;
    }
    .last_block{
        padding-left: 5px;
    }
}

@media (max-width: 480px) {
    .brand-menu {
        padding-top: 80px;
        padding-bottom: 0px;
    }
    .brand-menu a{
        font-size: 16px;
        padding: 1px 8px 0px;
    }
    .product {
        padding: 10px 0;
    }
    .slide{
        width: 75vw;
    }
    .slider {
        margin: 0 10px;
    }
    .table{
        margin: 0px 0px 15px 0px;
    }
    .buttonForm {
        padding: 2px 2px;
    }
}
