/* toplaer */
    .toplaer {
        display: flex;
        flex-wrap: wrap;
        position: relative;
        margin-left: 0px;
        margin-right: 0px;
        height: auto;
        background-color: black;
        background-repeat: repeat repeat;
        opacity: 0.8;
        color: white;
    }
    .cont_toplaer_1 {
        display: flex;
        flex-wrap: wrap;
        order: 1;
        justify-content: space-between; /* Центр по горизонтали */
        width: auto;
        height: auto;
        text-align: center;
    }
    .cont_toplaer_2 {
        display: flex;
        flex-wrap: wrap;
        order: 3;
        justify-content: space-between; 
        height: 100px;
        text-align: center;
    }
    .cont_toplaer_3 {
        display: flex;
        flex-wrap: wrap;
        order: 4;
        background: url('/images/7_24.png') center no-repeat;
        background-size: contain;
        justify-content: space-between; /* Центр по горизонтали */
        height: 150px;
        /*width: 150px;*/
        text-align: center;
    }
    .cont_toplaer_4 {
        position: absolute;
        top: 78px;
        right: 250px;
        height: 60px;
        width: 350px;
        text-align: center;
        font-size: 40px;
        color: #ffbd00;
    }
    .cont_toplaer_44 {
        display: none;
    }

    .region {
        display: flex;
        flex-wrap: wrap;
        order: 2;
        width: 170px;
        height: auto;
        text-align: left;
    }
    
    /*в toplayer смена регионов*/
    #popup-region{
        display: none;
    }
    .reg-popup{
        z-index: 9;
    }
    .reg-popup .reg-popup-content{
        width:140px;
        height: 100px;
        margin-left: 25px;
        background: rgba(0, 0, 0, 1.0);
    }

    /*.close-button::after {
        content: '\2716'; /* Жирный крестик
        font-size: 24px;   /* Размер крестика
        color: red;        /* Цвет крестика
    }
    }
    .close-button:hover { 
        color: #be1303; 
    }*/
    
    .logotip_png {
        position: relative;
        height: 130px;
        width: auto;
    }

    .adress {
        white-space: nowrap;
    }

    .grafik_raboty{
        right: 45px;
        top: 50px;
        margin: 0px;
        padding: 0px;
    }

    .clock{
        display: block;
        opacity: 1.0;
        right: -15px;
        /*top: 40px;*/
        position: relative;
    }
    /* -------------- */
    
    /* Фильтр подбор шин и дисков */
    .change_to_avto {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        height: auto;
        justify-content: center;
    }

    .change_avto {
        height: 40px;
        margin: 10px;
    }

    .change_to_params {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        height: auto;
        justify-content: center;
    }

    .change_params {
        height: 40px;
        margin: 10px;
    }
    
    .change_params .select_menu{
        min-width: 170px;
        height: 40px;
        border: none;
        color: #000000;
        font-size: 16px;
        font-family: Arial;
        background-color: #666; 
    }

    .change_avto .select_menu{
        min-width: 170px;
        height: 40px;
        border: none;
        color: #000000;
        font-size: 16px;
        font-family: Arial;
        background-color: #666; 
    }
    
    .select_menu:hover{
        color: #ff6f00;
    }
    
    /* Фильтр подбор шин и дисков в podbor_ajax.py */
    .container_change_top {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: space-between;
        padding: 10px;
    }
    
    .container_change_tyres {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        height: auto;
        margin: 0px;
        padding: 0px;
        color:#FFFFFF;
    }
    
    .container_change_tyres_adm {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        height: auto;
        margin: 0px;
        padding: 0px;
        color:black;
    }
    
    .cont_tyres_factory {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column; /* Элементы встанут в колонку */
        justify-content: space-between; /* Центр по горизонтали */
        align-items: center;     /* сверху по вертикали */
        flex: 1 1 230px;
        min-width: 300px;
        margin: 20px;
    }
    
    .cont_tyres_replace {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column; /* Элементы встанут в колонку */
        justify-content: space-between; /* Центр по горизонтали */
        align-items: center;     /* сверху по вертикали */
        flex: 1 1 250px;
        min-width: 300px;
        margin: 20px;
    }
    
    .cont_tyres_tuning {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column; /* Элементы встанут в колонку */
        justify-content: space-between; /* Центр по горизонтали */
        align-items: center;     /* сверху по вертикали */
        flex: 1 1 250px;
        min-width: 300px;
        margin: 20px;
    }
    
    .container_change_wheels {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Центр по горизонтали */
        width: 100%;
        height: auto;
        margin: 0px;
        padding: 0px;
        color:#FFFFFF;
    }
    
    .container_change_wheels_adm {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Центр по горизонтали */
        width: 100%;
        height: auto;
        margin: 0px;
        padding: 0px;
        color:black;
    }
    
    .cont_wheels_factory {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column; /* Элементы встанут в колонку */
        justify-content: space-between; /* Центр по горизонтали */
        align-items: center;     /* сверху по вертикали */
        flex: 1 1 270px;
        min-width: 300px;
        margin: 20px;
    }
    
    .cont_wheels_replace {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column; /* Элементы встанут в колонку */
        justify-content: space-between; /* Центр по горизонтали */
        align-items: center;     /* сверху по вертикали */
        flex: 1 1 270px;
        min-width: 300px;
        margin: 20px;
    }
    
    .cont_wheels_tuning {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column; /* Элементы встанут в колонку */
        justify-content: space-between; /* Центр по горизонтали */
        align-items: center;     /* сверху по вертикали */
        flex: 1 1 270px;
        min-width: 300px;
        margin: 20px;
    }
    
    .cont_wheels_params {
        display: flex;
        justify-content: center; /* Центр по горизонтали */
        align-items: center;
        flex-direction: column; /* Элементы встанут в колонку */
        width: 100%;
        text-align: center;
        height: auto;
    }
    /* ------------ */
    
    /*filter/filter.py */
    .container_price_top {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center; /* Центр по горизонтали */
        padding: 10px;
    }
        
    .container_price {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Центр по горизонтали */
        flex: 1 1 340px;
        max-width: 450px;
        height: 500px;
        margin: 10px;
        padding: 10px;
        border: 2px solid #555;
        box-shadow: 10px 10px 10px rgba(0, 0, 0, 1.0);
        background: rgba(0, 0, 0, 0.9);
        border-radius: 5px;
        color:#FFFFFF;
        transition: transform 0.3s ease; /* Плавность */
        
        /*align-items: top;      сверху по вертикали */
        /*min-height: 100vh;       /* Чтобы родителю было куда центрировать (на весь экран) */
    }
    
    .container_price:hover {
        transform: scale(1.02); /* Увеличение на 10% */
        z-index: 10; /* Чтобы блок был над соседями */
        box-shadow: 10px 10px 10px rgba(0, 0, 0, 1.0); /* Тень усиливает эффект приближения */
    }
    
    .con_price_1 {
        width: 80%;
        text-align: left;
    }
    
    .con_price_4 {
        display: flex;
        justify-content: center;
        width: 20%;
        margin-top: 15px;
    }
    
    .con_price_2 {
        width: 100%;
        text-align: left;
        height: 70px;
    }
    
    .con_price_3 {
        width: 100%;
    }
    .con_price_5 {
        width: 100%;
    }
    .con_price_6 {
        width: 100%;
    }
    .con_price_7 {
        width: 100%;
    }
    .con_price_11 {
        width: 100%;
        text-align: left;
    }
    .con_price_22 {
        width: 50%;
        height: auto;
        margin-left: 20px;
    }

    .con_price_8 {
        justify-content: center;
        position: relative;
        height: auto;
        margin: 0px;
        padding-top: 14px;
        padding-bottom: 0;
        width: 100%;
        background-color: #222;
        border-radius: 5px;
        text-align: center;
        vertical-align: middle;
    }
    
    .con_price_9 {
        display: flex;
        justify-content: center; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        justify-content: center;
        position: relative;
        height: auto;
        margin: 0px;
        padding: 10px;
        width: 45%;
    }
    /* _________________ */
    
    /* shinomontazh.txt */
    
    .container_montazh {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центр по горизонтали */
        padding: 10px;
    /*    align-items: center;      сверху по вертикали */
        height: auto;       /* Чтобы родителю было куда центрировать (на весь экран) */
    }
    
    .montazh_c {
        width: 100%;
        height: auto;
        margin: 10px;
        /*border: 1px solid white;*/
    }
    
    .montazh_l {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Центрирует по горизонтали */
        align-items: left; 
        flex-direction: column; /* Элементы встанут в колонку */
        width: 47%;
        height: auto;
        margin: 10px 10px 10px 0px;
        padding: 12px 20px;
        background-color: rgba(153, 153, 153, .1);
        color: white !important;
        border: 1px solid black;
        border-radius: 8px;
        text-decoration: none;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
        /*border: 1px solid white;*/
    }

    .montazh_r {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        width: 47%;
        height: auto;
        margin: 10px 0px 0px 0px;
        /*border: 1px solid white;*/
    }

    /* _________________ */
    
    /* contacts.txt */
    .container_contacts {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центр по горизонтали */
        padding: 10px;
    /*    align-items: top;      сверху по вертикали */
        height: auto;       /* Чтобы родителю было куда центрировать (на весь экран) */
    }
    
    .contacts_rostov {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Центрирует по горизонтали */
        align-items: center; 
        flex-direction: column; /* Элементы встанут в колонку */
        width: 47%;
        height: auto;
        margin: 10px 10px 10px 0px;
        padding: 12px 20px;
        background-color: rgba(153, 153, 153, .1);
        color: white !important;
        border: 1px solid black;
        border-radius: 8px;
        text-decoration: none;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
        /*border: 1px solid white;*/
    }

    .map_rostov {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        width: 47%;
        height: auto;
        margin: 10px 0px 0px 0px;
        /*border: 1px solid white;*/
    }
    
    .contacts_moscow {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Центрирует по горизонтали */
        align-items: center; 
        flex-direction: column; /* Элементы встанут в колонку */
        width: 47%;
        height: auto;
        margin: 10px 10px 10px 0px;
        padding: 12px 20px;
        background-color: rgba(153, 153, 153, .1);
        color: white !important;
        border: 1px solid black;
        border-radius: 8px;
        text-decoration: none;
        transition: transform 0.2s, box-shadow 0.2s;
        box-shadow: 0px 4px 6px rgba(0,0,0,0.1);
        /*border: 1px solid white;*/
    }

    .map_moscow {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        width: 47%;
        height: auto;
        margin: 10px 0px 0px 0px;
    }

    /* index.txt */

    .container_index_1 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центр по горизонтали */
        align-items: top;     /* сверху по вертикали */
        min-height: auto;       /* Чтобы родителю было куда центрировать (на весь экран) */
    }

    .con_index_1 {
        width: 30%;
        height: auto;
        margin: 10px;
    }

    .con_index_1  img {
        width: 90%;
        
    }
    
    .container_index_2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центр по горизонтали */
        align-items: top;     /* сверху по вертикали */
        min-height: auto;       /* Чтобы родителю было куда центрировать (на весь экран) */
    }
    
    .con_index_kupon {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центр по горизонтали */
        width: 500px;
        height: auto;
        margin: 10px;
        flex-direction: column; /* Элементы встанут в колонку */
        /*border: 1px solid white;*/
    }

    .con_index_2 {
        width: 30%;
        height: auto;
        margin: 10px;
    }


    .con_index_2  img {
        width: 90%;
    }
    /* _________________ */
    
    /*pokupka-obmen-proverka*/
    .messenger {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
        align-items: center;
        height: auto;
    }
    
    .mess_l {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 10px;
        width: 40%;
        height: auto;
    }
    
    .mess_r {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 10px;
        width: 40%;
        height: auto;
    }
     /* =================== */
    
    
    .footer {
        display: flex;
        flex-wrap: wrap;
        /*flex-direction: row;*/
        align-items: top;     /* сверху по вертикали */
        justify-content: center;
        padding: 10px;
    }
    
    .footer_left {
        /*border: 2px solid #555;*/
        justify-content: space-between;
        flex: 1 1 250px;
        min-width: 300px;
        text-align: center;
    }
    
    .footer_center {
        /*border: 2px solid #555;*/
        display: flex;
        justify-content: center;
        flex: 1 1 250px;
        min-width: 300px;
        max-width: 500px;
        height: 210px;
    }
    
    .footer_right {
        /*border: 2px solid #555;*/
        justify-content: space-between;
        flex: 1 1 250px;
        min-width: 300px;
        text-align: center;
        
    }
    
    .footer_bottom {
        padding: 0px;
        width: 80%;
        height: auto;
        text-align: center;
        border-top: 1px solid #555;
    }
    
@media screen and (max-width: 1250px){
    .cont_toplaer_3{
        display: none;
    }
}
@media screen and (max-width: 1024px){
    
    .cont_toplaer_3{
        display: none;
    }

    .cont_toplaer_4 {
        position: absolute;
        top: 78px;
        right: 170px;
        height: 60px;
        width: 350px;
        text-align: center;
        font-size: 40px;
        color: #ffbd00;
    }
    .cont_toplaer_44 {
        display: none;
    }
    .cont_toplaer_2 {
        display: flex;
        flex-wrap: wrap;
        order: 4;
        margin: 10px;
        justify-content: center; 
        width: 100%;
        height: 100px;
        text-align: center;
    }
    
        /* shinomontazh.txt */
    .montazh_l {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Центрирует по горизонтали */
        align-items: center; 
        flex-direction: column; /* Элементы встанут в колонку */
        width: 80%;
        height: auto;
        margin: 10px;
    }

    .montazh_r {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        width: 80%;
        height: auto;
        margin: 10px;
        /*border: 1px solid white;*/
    }
    /* _________________ */
    
    .contacts_rostov {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* Центрирует по горизонтали */
        align-items: center; 
        flex-direction: column; /* Элементы встанут в колонку */
        width: 80%;
        height: auto;
        margin: 10px;
    }

    .map_rostov {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        width: 80%;
        height: auto;
        margin: 10px;
    }
    
    .contacts_moscow {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        width: 80%;
        height: auto;
        margin: 10px;
    }

    .map_moscow {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        width: 80%;
        height: auto;
        margin: 10px;
    }

    /* index.txt */
    .container_index_1 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центр по горизонтали */
        align-items: top;     /* сверху по вертикали */
        height:auto;       /* Чтобы родителю было куда центрировать (на весь экран) */
    }
    
    .con_index_1 {
        width: 80%;
        height:auto;
        margin: 10px;
    }
    
    .container_index_2 {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центр по горизонтали */
        align-items: top;     /* сверху по вертикали */
        height:auto;      /* Чтобы родителю было куда центрировать (на весь экран) */
    }
    
    .con_index_2 {
        width: 80%;
        margin: 10px;
        height:auto;
    }
    
    .con_price_11 {
        width: 100%;
        text-align: center;
    }
    
    .con_price_22 {
        display: flex;
        justify-content: space-between;
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center;/* Центрирует по вертикали */
        text-align: center;  /* Центрирует текст внутри формы */
        width: 100%;
        height: auto;
        margin: 10px;
    }

    .con_price_9 {
        display: flex;
        justify-content: center; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        position: relative;
        height: auto;
        margin: 0px;
        padding: 10px;
        width: 100%;
        /*max-width: 400px; */
    }
}




@media screen and (max-width: 768px) {
    
    /* shinomontazh.txt */
    .montazh_l {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        width: 100%;
        height: auto;
        margin: 10px 0px;
    /*border: 1px solid white;*/
    }

    .montazh_r {
        display: flex;
        justify-content: center; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        width: 100%;
        height: auto;
        margin: 10px 0px;
        /*border: 1px solid white;*/
    }
    /* _________________ */
    
    
    /* contacts.txt */
    .container_contacts {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центр по горизонтали */
        padding: 10px;
        align-items: top;     /* сверху по вертикали */
        height: auto;       /* Чтобы родителю было куда центрировать (на весь экран) */
    }
    .contacts_rostov {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        width: 100%;
        height: auto;
        margin: 10px 0px;
    }

    .map_rostov {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        width: 100%;
        height: auto;
        margin: 10px 0px;
    }
    
    .contacts_moscow {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        width: 100%;
        height: auto;
        margin: 10px 0px;
    }

    .map_moscow {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center;
        width: 100%;
        height: auto;
        margin: 10px 0px;
    }


    /* _________________ */
    
    /* index.txt */
    .con_index_1 {
        width: 100%;
        height:auto;
        margin: 10px;
    }
    .con_index_2 {
        width: 100%;
        margin: 10px;
        height:auto;
    }
    
    .con_index_kupon {
        display: flex;
        justify-content: center; /* Центрирует по горизонтали */
        flex-direction: column; /* Элементы встанут в колонку */
        align-items: center; 
        width: calc(100% - 20px);
        height: auto;
        /*border: 1px solid white;*/
    }
    
        /*pokupka-obmen-proverka*/
    .messenger {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
        align-items: center;
        height: auto;
    }
    
    .mess_l {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 10px;
        width: auto;
        height: auto;
    }
    
    .mess_r {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 10px;
        width: auto;
        height: auto;
    }
     /* =================== */
    
    /*toplaer*/
    .region {
        position: absolute;
        order: 2;
        width: 170px;
        height: auto;
        text-align: left;
        margin: 10px;
    }
    .logotip_png {
        display: none;
    }
    .cont_toplaer_4 {
        display: none;
    }
    .cont_toplaer_44 {
        display: flex;
        flex-wrap: wrap;
        order: 3;
        margin-top: 60px;
        justify-content: center; /* Центр по горизонтали */
        height: 60px;
        width: 100%;
        font-size: 40px;
        text-align: center;
        color: #ffbd00;
    }

}


@media screen and (max-width: 480px) {


    
    
}









