   
.body {margin:0; }    
.header {padding:10px 10%;  display: flex; justify-content: space-between; }    
.logo { width: calc(5% );}   
    
    
.categorii-div {  width: 17%;}
.categorii { height: 50px;
    width:100%;
    background-color: #0074D9; 
    color: #fff; 
    padding: 10px 20px;
    border: none;
    cursor: pointer; 
    border-radius: 5px; 
}

.categoriiDiv {display: none; border: solid; width: 90%; max-width:800px;margin-left: auto;    margin-right: auto;   
position: absolute; margin-top:9vh;  height:80vh;  background-color: rgba(255, 255, 255, 1);     transition: background-color 0.3s; /* Плавный переход цвета */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Тень */
  border-radius: 5px; /* Скругленные углы */
  border: 1px solid #ccc; /* Рамка */ }

.categor {width:55%;  float: right; position: relative; ;}

.menu { background-color: DeepSkyBlue; padding:8px;margin:10px; }
.menu:hover {
  background-color: LightSkyBlue; /* Изменяем цвет при наведении */
}
.submenu { background-color: white; padding:10px 10px 10px 10;margin:10px; width:90%;
 display: none;
  top: 0;
  left: 0;
 ; }
 .menu2 {width:45%;}
 
.submenu2 {background-color: DeepSkyBlue; padding:10px;margin:10px; ;color:#000; }

.gor-div { width: 13%;}
.gor { height: 50px;
    width:100%;
    background-color: #0074D9; 
    color: #fff; 
    padding: 10px 20px;
    border: none;
    cursor: pointer; 
    border-radius: 5px; 
}


.regiony-div {  width: 17% ;}
.regiony { height: 50px;
    width:80%;
    background-color: #0074D9;
    color: #fff; 
    padding: 10px 20px; 
    border: none;
    cursor: pointer; 
    border-radius: 5px; 
}
.regiony-option{ appearance: none;;}

.btnvibor {text-align: center; width:100%;}

.list-region {background-color: LightCyan;border-radius: 3px;border: 1px solid PaleTurquoise;   flex: 0 1 calc(33.33% - 10px); padding:1px 25px 2px 25px;
  margin-bottom: 5px;}

.razmestit-div {  width: 15% ;}
.razmestit {  height: 50px;
    width:100%;
    background-color: #cd7f32; 
    color: #fff;
    padding: 10px 20px; 
    border: none; 
    cursor: pointer; 
    border-radius: 5px; 
}




.search-container-div { width: calc(41% );}
.search-container {
    
    display: flex;
    align-items: center; 
}

.search-input { height: 28px; width: calc(96% - 80px);
    padding: 10px; 
    border: 1px solid #0074D9; 
    border-radius: 5px 0 0  5px; 
}

.search-button { height: 50px;width: 80px;
    background-color: #0074D9; 
    color: #fff;
    padding: 10px 20px; 
    border: 1px solid #0074D9; 
    border-radius: 0 5px 5px 0; 
    margin-left: -5px;
    cursor: pointer;
}
.search-button:hover { height: 50px;
    background-color: #0056b3; 
}


.goroda2{   display: flex;  flex-wrap: wrap;}
.gorod{font-size: 0.8vw;}
.goroda3 { flex: 1;;padding: 2px 10px;}
.vibrat {
    background-color: #0074D9; /* Нежно голубой цвет фона */
  color: #fff; /* Белый цвет текста */
  border: none; /* Убираем границу кнопки */
  padding: 10px 20px; /* Отступы вокруг текста в кнопке */
  text-align: center; /* Выравниваем текст по центру */
  text-decoration: none; /* Убираем подчеркивание ссылки (если кнопка - это ссылка) */
  display: inline-block; /* Делаем кнопку блочным элементом */
  font-size: 16px; /* Размер шрифта */
  cursor: pointer; /* Изменяем курсор при наведении */
  border-radius: 5px; /* Закругляем углы кнопки */
  width:50%;
  margin: 20px auto;
}

.select_wrp {
	width: 80%;
	margin: 0 auto;
}
    .reg { flex: 1;  ;padding: 2px 10px;width: 100%;}
    .panel {display: none;}

@media screen and (max-width: 1000px) {
  .header {padding:10px 10px; display: flex;  flex-wrap: wrap;}    
.logo { width: 20% ; display: none;  }   
.gorod{font-size: 1.1vw;}    
    
.categorii-div {  width:  33%;}
.categorii {
    width:100%;
    background-color: #0074D9; height: 70px;
    color: #fff; 
    padding: 10px 20px;
    border: none;
    cursor: pointer; 
    border-radius: 5px; 
}

.gor-div { width: 33%;}
.gor {
    width:100%;
    background-color: #0074D9;  height: 70px;
    color: #fff; 
    padding: 10px 20px;
    border: none;
    cursor: pointer; 
    border-radius: 5px; 
}

.regiony-div { width: 33%;}
.regiony {
    width:100%;
    background-color: #0074D9; height: 70px;
    color: #fff; 
    padding: 10px 20px; 
    border: none;
    cursor: pointer; 
    border-radius: 5px; 
}

    .reg { flex: 1;  ;padding: 2px 10px;}

.razmestit-div { width: 33%;}
.razmestit {
    width:100%;
    background-color: #cd7f32;  height: 70px;
    color: #fff;
    padding: 10px 20px; 
    border: none; 
    cursor: pointer; 
    border-radius: 5px; 
}




.search-container-div { width: 100%;order: 5;padding-top:5px;}
.search-container {
    
    display: flex;
    align-items: center; 
}

.search-input { height: 22px;
    padding: 10px; 
    border: 1px solid #0074D9; 
    border-radius: 5px 0 0  5px; 
}

.search-button { height: 44px;width: 80px;
    background-color: #0074D9; 
    color: #fff;
    padding: 10px 20px; 
    border: 1px solid #0074D9; 
    border-radius: 0 5px 5px 0; 
    margin-left: -5px;
    cursor: pointer;
}
.search-button:hover { height: 44px;
    background-color: #0056b3; 
}  

.gorod{font-size: 5.1vw;}
}



.goroda {  
    z-index: 3 ;
  display: none;
  position: absolute;   border-radius: 5px; 
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1500px;
  max-width: 90%;
padding:20px;
  background-color: white;
  border: 2px solid blue;
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.6); /* Создаем затемнение фона */
  
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}



@media (max-width: 600px) {
  #goroda {
    width: 80vw;
    padding: 20px;
    left: 5%;
    top: 5%;
    transform: none;
  }
  
.panel {
  position: fixed;
  bottom: -3px;
  left: 0px;
  width: calc(100% - 42px);
  background-color: white;
  padding: 0 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
    background-color: #f6f8f9;
     align-items: center;
     height:40px;
}

.box {
  flex: 1;
  padding: 5px;
   align-items: center;
    text-align: center; 
}  
.categoriiDiv { padding-bottom:100px;}
  
}



    .block585 {
            width: calc(45% - 10px); /* Ширина блока - половина ширины контейнера минус отступы */
            margin: 10px; /* Отступы между блоками */
            padding: 1px; /* Внутренние отступы в блоках */
            box-sizing: border-box; /* Учитываем границы и отступы в общей ширине блока */
            float: left; /* Располагаем блоки в ряд */
            cursor: pointer;
            font-size:105%;
            text-align:center;
            line-height: 85%;
        }
        .img585{
            width:100%; max-width:150px;
        }        
        
        .block586 {
            width: calc(32% - 1px); /* Ширина блока - половина ширины контейнера минус отступы */
            margin: 1px; /* Отступы между блоками */
            padding: 1px; /* Внутренние отступы в блоках */
            box-sizing: border-box; /* Учитываем границы и отступы в общей ширине блока */
            float: left; /* Располагаем блоки в ряд */
            cursor: pointer;
            font-size:90%;
            text-align:center;
            line-height: 90%;
        }  
            .img586{
            width:100%; max-width:130px;
        }    
    
@media screen and (max-width: 600px) {  
        .block585 {
            width: calc(45% - 10px); /* Ширина блока - половина ширины контейнера минус отступы */
            margin: 10px; /* Отступы между блоками */
            padding: 1px; /* Внутренние отступы в блоках */
            box-sizing: border-box; /* Учитываем границы и отступы в общей ширине блока */
            float: left; /* Располагаем блоки в ряд */
            cursor: pointer;
            font-size:80%;
            text-align:center;
            line-height: 85%;
        }
        .img585{
            width:100%; max-width:100px;
        }
        
        .block586 {
            width: calc(32% - 1px); /* Ширина блока - половина ширины контейнера минус отступы */
            margin: 1px; /* Отступы между блоками */
            padding: 1px; /* Внутренние отступы в блоках */
            box-sizing: border-box; /* Учитываем границы и отступы в общей ширине блока */
            float: left; /* Располагаем блоки в ряд */
            cursor: pointer;
            font-size:70%;
            text-align:center;
            line-height: 85%;
        }   
      .img586{
            width:100%; max-width:100px;
        }    
    
}




#results {
    position: absolute;
    top: calc(3% + 5px);
    left: 29%;
    width: 65%;
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
}

#results.active {
    display: block;
}

#results ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#results ul li {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

#results ul li:hover {
    background-color: #f0f0f0;
}

.menu65 a {
    text-decoration: none; white-space: nowrap;
}

.menu165 {color:#472323;}

@media (max-width: 1000px) {  
#results {     top:135px;
    left: 1%;
    width: 98%; 
    white-space: normal;
}
.menu165 {font-size:80%;}
}       


.button_razmestit {margin-top:-0px;margin-left:-35px;} 
.kooosa2 {display: none;}
.kooosa3 {display: block;margin:-35px 0px 0 100px;}
.kosa2 {display: none;}
.kosa3 {display: block;margin:-35px 0px 0 100px;}
@media screen and (max-width: 1000px) {
.button_razmestit {margin-top:-23px;font-weight: bold;margin-left:-0px;} 
.kooosa2 {height:2px;;margin-top:-12px;display: block;}
.kooosa3 {display: none;;}
.kosa2 {height:2px;;margin-top:-12px;display: block;}
.kosa3 {display: none;;}
}  



  .image-container235 {
      position: absolute;
      top: 60px;
      right: 18%;
      width: 200px;
      z-index: 9999;
    }

    .image-container235 div {
      position: absolute;
      width: 100%;
      background-color: #ffffff;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2), 0 -8px 16px rgba(0, 0, 0, 0.2);
      padding: 10px;
      border-radius: 10px;
    }

    .image1 {
      z-index: 1;
      animation: zoomInOut1 4s ease-in-out forwards;
      transform-origin: top right;
    }
    @media (max-width: 600px) { .image-container235 {       top: 80px;     right: 12%;}

    @keyframes zoomInOut1 {
      0%, 10% {
        transform: scale(0)  translateY(-200%);
        opacity: 0;
      }
      15%, 95% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
      }
      100% {
        transform: scale(0)  translateY(-200%);
        opacity: 0;
      }
    }
    
    
    
       .container8 {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            padding: 0 8%;
        }

        .container8 .box8 {
            position: relative;
            width: calc(12% - 20px);
            margin: 10px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            transition: transform 0.3s;
        }

        .container8 .box8:hover {
            transform: scale(1.05);
        }

        .container8 .box8 img {
            max-width: 100%;
            max-height: 100%;
            display: block;
            border-radius: 5px; 
            background-color: #eff6f9;
        }

        .container8 .box8::before {
            position: absolute;
            top: 10%; /* Положение надписи по вертикали */
            left: 10%; /* Положение надписи по горизонтали */
         text-shadow: #fff 1px 0 10px;
           font-size: 1.0vw;
            color: gray; /* Цвет текста надписи */
         font-family: Arial, Helvetica, sans-serif;
        }
         .container8 .box81::before {
            content: "Авто"; /* Ваш текст для надписи */ 
         }
         .container8 .box82::before {
            content: "Недвижимость"; /* Ваш текст для надписи */ 
         }
         .container8 .box83::before {
            content: "Работа"; /* Ваш текст для надписи */ 
         }       
         .container8 .box84::before {
            content: "Для детей"; /* Ваш текст для надписи */ 
         }  
         .container8 .box85::before {
            content: "Для красоты"; /* Ваш текст для надписи */ 
         } 
         .container8 .box86::before {
            content: "Услуги"; /* Ваш текст для надписи */ 
         }  
         .container8 .box87::before {
            content: "Животные"; /* Ваш текст для надписи */ 
         } 
         .container8 .box88::before {
            content: "Электроника"; /* Ваш текст для надписи */ 
         }          

        /* Медиа-запрос для экранов шириной меньше 1000px */
        @media (max-width: 1000px) {
            .container8 .box8 {
                width: calc(25% - 20px);
            }
        .container8 .box8::before {
           font-size: 2.0vw;            
        }   
            
            
    
        }

        /* Медиа-запрос для экранов шириной меньше 600px */
        @media (max-width: 600px) {
            .container8 {
                padding: 0 10px;
            }
            .container8 .box8 {
                width: calc(25% - 20px);
            }
        .container8 .box8::before {
           font-size: 2.7vw;            
        }    
                         .container8 .box82::before {    
            font-size: 2.4vw;            
        }
        }
        
        
        
        