html2, body2 {margin: 0; height: 100%; overflow: auto;}

/* --- 1. ДЛЯ ВСЕХ ВНУТРЕННИХ БЛОКОВ И СТРАНИЦЫ ЦЕЛИКОМ (*) --- */

/* Ширина и высота скроллбара для Chromium (Chrome, Edge, Opera, Safari) */
*, *::before, *::after, html {
  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  
  /* Дорожка скроллбара */
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 12px;
  }
  
  /* Ползунок */
  ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 12px;
    border: 2px solid #f1f1f1;
  }
  
  /* Ползунок при наведении */
  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }
}

/* --- 2. ДЛЯ FIREFOX (Изолируем через @supports, чтобы не ломать Chrome) --- */
@supports (scrollbar-color: auto) {
  html, * {
    scrollbar-width: thin;
    scrollbar-color: #888888 #f1f1f1;
  }
}

/* --- 3. ПЛАВНЫЙ СКРОЛЛ --- */
html {
  scroll-behavior: smooth;
}





    /* Базовые стили слоя, затемнения и модального окна */
.windowsboard {
display: block;    
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 10;
display: none;
position: fixed; /* фиксированное позиционирование */
cursor: default; /* тип курсора */
}

/* активируем слой затемнения */
.windowsboard:target {
display: block;
}

/* стили модального окна

left: 50%;
-webkit-transform: translate(-50%, -500%);
-ms-transform: translate(-50%, -500%);
-o-transform: translate(-50%, -500%);
transform: translate(-50%, -500%);


windowsboardpopup   top: -110%;
*/
.windowsboardpopup {
top: 0px;    
right: 0;
font-size: 14px;
z-index: 20;
margin: 0;
width: 100%;
height: 100vh; /* For 100% screen height */
/* фиксированное позиционирование, окно стабильно при прокрутке */
position: fixed;
padding: 0px 0px 0px 0px;
background: #f7f7f7;

font-size: 14pt;
}

.element {
overscroll-behavior: contain;
height: 100vh;
overflow: auto;
padding: 0px 0px 0px 0px;
}
/* активируем модальный блок
-webkit-transform: translate(-50%, 0);
-ms-transform: translate(-50%, 0);
-o-transform: translate(-50%, 0);
transform: translate(-50%, 0);
*/
.windowsboard:target+.windowsboardpopup {

top: 0px;
}

/* формируем кнопку закрытия */
.windowsclose {
top: -10px;
right: -10px;
width: 20px;
height: 20px;
position: absolute;
padding: 0;
border: 2px solid #ccc;
border-radius: 15px;
background-color: rgba(61, 61, 61, 0.8);
box-shadow: 0px 0px 10px #000;
text-align: center;
text-decoration: none;
font: 13px/20px 'Tahoma', Arial, sans-serif;
font-weight: bold;
transition: all ease .8s;
}

.windowsclose:before {
color: rgba(255, 255, 255, 0.9);
content: "X";
text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
font-size: 12px;
}

.windowsclose:hover {
background-color: rgba(252, 20, 0, 0.8);
transform: rotate(360deg);
}


 .infotextstatus {
padding: 10px;
display: block;
border: 2px solid #5b5b5b;
border-radius: 12px;
transition: background-color 0.6s;
font-size: 14pt;
color: #000;
}



 .knopka_messenger {
display: block;
box-shadow: none;
background-color: #9c9c9c;
color: #fff;
padding: 0;
width: auto;
height: 51px;
border-width: 0;
-webkit-transition: padding .3s 1s;
transition: padding .3s 1s;
padding: 10px;
font-size: 20px;
opacity: 0.8;
border-radius: 30px;
}
 .knopka_messenger_fixed {
visibility: visible;
position: fixed;
height: 75px;
max-height: 100vh;
bottom: 0px;
right: 10px;
z-index: 12345;
left: auto;
}

 .knopka_messenger_icon {
cursor: pointer;
width: 30px;
height: 30px;
opacity: 0.8;
margin: 0px 0px -5px 0px;
}
 .knopka_messenger:hover {
 opacity: 1;
 cursor: pointer;
}


 .who2 {
    width: 400px;
    height: 35px;
    line-height: 25px;
    padding: 5px;
    font-family: arial, sans-serif;
    font-size: 18px;
    color: #333;
    background: #fff;
    border: solid 2px #4d90fe;
    outline: none;
}



.search-results-dropdown{
 display: none; 
 position: absolute;
 top: 100%; 
 left: 0; 
 width: 100%; 
 background: #fff; 
 border: 1px solid #ccc; 
 z-index: 999; 
 box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
 max-height: 400px; 
 overflow-y: auto;
}


/* Контейнер выпадающего списка поиска     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
.search-dropdown-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 0px;
    overflow: hidden;
    z-index: 9999;

}

/* Общий стиль для каждой строки подсказки */
.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    color: #2d3748;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border-bottom: 1px solid #f7fafc;
}

.dropdown-item:last-child {
    border-bottom: none;
}

/* Эффект при наведении мыши или выборе стрелочками */
.dropdown-item:hover, .dropdown-item.active {
    background-color: #f8fafc;
}

.dropdown-item:active {
    transform: scale(0.995);
}

/* Левая часть: Иконка + Текст */
.dropdown-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0; /* Для корректного обрезания длинного текста */
}

/* Иконки в начале строки */
.dropdown-item-icon {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

/* Текст подсказки */
.dropdown-item-text {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Три точки, если текст не влезает */
}

/* Специфичные стили для разных типов */
.dropdown-item[data-source-type="podborka"] .dropdown-item-text {
    color: #1a73e8; /* Синий цвет для рекомендаций */
}
.dropdown-item[data-source-type="podborka"] .dropdown-item-icon {
    background: #e8f0fe;
}

.dropdown-item[data-source-type="razdel"] .dropdown-item-text {
    color: #137333; /* Зеленый цвет для разделов/категорий */
}
.dropdown-item[data-source-type="razdel"] .dropdown-item-icon {
    background: #e6f4ea;
}

.dropdown-item-icon-default {
    background: #f1f3f4;
    color: #5f6368;
}

/* Правая часть: Бейдж (название источника) */
.dropdown-item-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    margin-left: 12px;
    color: #5f6368;
    background-color: #f1f3f4;
}

.dropdown-item[data-source-type="podborka"] .dropdown-item-badge {
    color: #1a73e8;
    background-color: #e8f0fe;
}

.dropdown-item[data-source-type="razdel"] .dropdown-item-badge {
    color: #137333;
    background-color: #e6f4ea;
}

/* Стиль для сообщения "Ничего не найдено" */
.dropdown-no-results {
    padding: 16px;
    color: #718096;
    text-align: center;
    font-size: 14px;
}








   .search{
   position:relative;
}
.search_result2{
    background: #FFF;
    border: 1px #ccc solid;
    border-radius: 4px;
    max-height:200px;
    overflow-y:scroll;
    font-size: 15px;
width: 100%;
}
.search_result2 li{
    list-style: none;
    padding: 10px 10px;
    color: #0896D3;
    border-bottom: 2px #4d90fe; solid;
    cursor: pointer;
    transition:0.3s;
}
.search_result2 li:hover{
    background: #E2BF00;
}


   .search{
   position:relative;
}
.search_resultcity2{
    background: #FFF;
    border: 1px #ccc solid;
    border-radius: 4px;
    max-height:200px;
    overflow-y:scroll;
}
.search_resultcity2 li{
    list-style: none;
    padding: 10px 10px;
    color: #0896D3;
    border-bottom: 2px #4d90fe; 
    cursor: pointer;
    transition:0.3s;
}
.search_resultcity2 li:hover{
    background: #E2BF00;
}
.form-field__clear {
position: absolute;
margin: 0px 0px 0px -30px;
opacity: .5;
z-index: 1;
border: 0;
padding: 0 10px;
font-weight: 400;
transition: opacity .1s ease-out;
background: transparent;
outline: none;
font-size: 30px;
}

.form-field__clear:hover {
  opacity: 1;
}
.resultskol2 {
    background: #3079ED;
  cursor: pointer;
  padding: 5px;
  font-size: 14pt;
  color: #fff;
  border: 2px solid #5b5b5b;
  border-radius: 2px;
}
.resultskol2:hover{
    background: #E2BF00;
  color:#1b4c9c;
}


.modal:not(.modal *) {
  cursor: pointer; /* Измененный курсор для области вокруг модального окна */
}
                                                /* Модал  начало  ПК версия    */

@media only screen and (min-width: 1000px){
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1050; /* Sit on top */
    padding-top: 50px; /* Location of the box */
    padding-bottom: 150px;
    padding-left: 0px;
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    -webkit-transition: opacity 200ms ease-in; 
    -moz-transition: opacity 200ms ease-in;
    transition: opacity 200ms ease-in; /* анимация перехода */
    cursor: default;
}

.modal-content {
    border-radius: 15px;
    position: relative;
    background-color: #f7f7f7;
    margin: auto;
    padding: 0;
    border: 2px solid #000;
    width: 70%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    cursor: default;
}

}


@media only screen and (max-width:1000px){                   /* Модал  мобильная версия ниже     */
    
    .modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1050; /* Sit on top */
    padding-top: 2px; /* Location of the box */
    padding-bottom: 1200px;
    padding-left: 0px;
    left: 0;
    top: 1;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    -webkit-transition: opacity 200ms ease-in; 
    -moz-transition: opacity 200ms ease-in;
    transition: opacity 200ms ease-in; /* анимация перехода */
    cursor: default;
}
.modal-content {
    border-radius: 0px;
    position: relative;
    background-color: #f7f7f7;
    margin: auto;
    padding: 0;
    width: 100%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

}

.modal-close {
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #ccc;
    height: 30px;
    line-height: 26px;
    position: absolute;
    right: -5px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 30px;
    font-family: helvetica, arial;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
    top: -5px;
    width: 30px;
    border-radius: 35px;
    box-shadow: 3px -4px -6px #000;
}
.modal-close:hover {
    background-color: rgba(255, 69, 0, 0.8);
}  

.modal-header {
   padding: 5px 0px;
background-color: #686868;
color: white;
font-size: 30px;
}

.modal-body {padding: 5px;}

.modal-footer {
    padding: 5px 16px;
    background-color: #000;
    color: white;
    height: 100px;
}

                                                /* Модал конец     */


                                                /* Прелодер начало     */
      .preloader {
      position: fixed;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      overflow: hidden;
      /* фоновый цвет */
      background: #e0e0e0;
      z-index: 1001;
    }

    .preloader__image {
      position: relative;
      top: 50%;
      left: 50%;
      width: 70px;
      height: 70px;
      margin-top: -35px;
      margin-left: -35px;
      text-align: center;
      animation: preloader-rotate 2s infinite linear;
    }
        @keyframes preloader-rotate {
      100% {
        transform: rotate(360deg);
      }
    }

    .loaded_hiding .preloader {
      transition: 0.3s opacity;
      opacity: 0;
    }

    .loaded .preloader {
      display: none;
    }

.kategorii_left_razdel {font-size: 18px;padding: 5px 5px 5px 0px;display: block;}
.kategorii_left {font-size: 18px;padding: 5px 5px 5px 10px;display: block;}

.dropbtn { width: 20px; height: 20px;   border: none; background: url("/img/menu/menuuser.png") no-repeat center;  background-size: auto;background-size: 20px;background-color: #f1f1f1;}
.dropdown { padding: 0px 0px 0px 0px;  margin: 0px 0px 0px 13px; position: absolute;z-index: 1;}
.dropdown-content {    display: none;    position: absolute;    background-color: #f1f1f1;    min-width: 130px;    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);z-index: 1;margin: 0px 0px 0px -130px;font-size: 10pt;}
.dropdown-content a {    color: black;    padding: 8px 12px;    text-decoration: none;    display: block;}
.dropdown-content a:hover {background-color: #ddd;}
.dropdown:hover .dropdown-content {display: block;}
.dropdown:hover .dropbtn {background-color: #3e8e41;} 

.buttons-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.buttons-container .scrollingcontent_button {
  display: block;
  width: 24%;
  margin: 0 0 5px 0;
}




.views{display: none;color: #ffffff;background-color: rgba(0, 0, 0, 0.80);padding: 1px 6px 3px 7px;position: absolute;z-index: 1;margin: 10px 0px 0px 5px;opacity: 0.8;font-size: 16px;}




.tn-box {position: relative;margin: 0 auto 20px auto;padding: 20px 10px;text-align: left;border-radius: 5px;box-shadow: 0 1px 1px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6); opacity: 0;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";	filter: alpha(opacity=0);		cursor: default;	display: none;}
/* Пауза при наведении      
.tn-box:hover, .tn-progress{	-webkit-animation-play-state: paused;	-moz-animation-play-state: paused;	-o-animation-play-state: paused;	-ms-animation-play-state: paused;	animation-play-state: paused; }
 Пауза при наведении      */
.tn-box p {font-weight: bold; margin: 0;	text-shadow: 0 1px 1px rgba(255,255,255,0.6);}


.tn-progress {width: 0;	height: 4px;background: rgba(255,255,255,0.3);position: absolute;bottom: 5px;left: 2%;border-radius: 3px;box-shadow: 	inset 0 1px 1px rgba(0,0,0,0.05),	0 -1px 0 rgba(255,255,255,0.6);}

/* Colors */
.tn-box-color-1{background: #ffe691;border: 1px solid #f6db7b;}
.tn-box-color-1 p {	color: #000;}

.tn-box-color-2{background: #99ffb1;border: 1px solid #7ce294;}
.tn-box-color-2 p {color: #000;}

.tn-box-color-3{background: #dd9aff;border: 1px solid #b367db;}
.tn-box-color-3 p {	color: #000;}

/* Fire the animations         */

/* input.fire-check:checked ~ section       */
 .tn-box {
    display: block;
    -webkit-animation: fadeOut 3s linear forwards;
    -moz-animation: fadeOut 3s linear forwards;
    -o-animation: fadeOut 3s linear forwards;
    -ms-animation: fadeOut 3s linear forwards;
    animation: fadeOut 3s linear forwards;
}

/* input.fire-check:checked ~ section       */
 .tn-box .tn-progress {
    -webkit-animation: runProgress 2s linear forwards 0.5s;
    -moz-animation: runProgress 2s linear forwards 0.5s;
    -o-animation: runProgress 2s linear forwards 0.5s;
    -ms-animation: runProgress 2s linear forwards 0.5s;
    animation: runProgress 2s linear forwards 0.5s;
}

/* If you use JavaScript you could add a class instead: */

.tn-box.tn-box-active {
    display: block;
    -webkit-animation: fadeOut 2s linear forwards;
    -moz-animation: fadeOut 2s linear forwards;
    -o-animation: fadeOut 2s linear forwards;
    -ms-animation: fadeOut 2s linear forwards;
    animation: fadeOut 2s linear forwards;
}

.tn-box.tn-box-active .tn-progress {
    -webkit-animation: runProgress 2s linear forwards 0.5s;
    -moz-animation: runProgress 2s linear forwards 0.5s;
    -o-animation: runProgress 2s linear forwards 0.5s;
    -ms-animation: runProgress 2s linear forwards 0.5s;
    animation: runProgress 2s linear forwards 0.5s;
}


@-webkit-keyframes fadeOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; -webkit-transform: translateY(0px);}
    99% { opacity: 0; -webkit-transform: translateY(130px);}
    100% { opacity: 0; -webkit-transform: translateY(130px);}
}

@-moz-keyframes fadeOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; -moz-transform: translateY(0px);}
    99% { opacity: 0; -moz-transform: translateY(130px);}
    100% { opacity: 0; -moz-transform: translateY(130px);}
}

@-o-keyframes fadeOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; -o-transform: translateY(0px);}
    99% { opacity: 0; -o-transform: translateY(130px);}
    100% { opacity: 0; -o-transform: translateY(130px);}
}

@-ms-keyframes fadeOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; -ms-transform: translateY(0px);}
    99% { opacity: 0; -ms-transform: translateY(130px);}
    100% { opacity: 0; -ms-transform: translateY(130px);}
}

@keyframes fadeOut {
    0% { opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; transform: translateY(0px);}
    99% { opacity: 0; transform: translateY(130px);}
    100% { opacity: 0;  transform: translateY(130px);}
}

@-webkit-keyframes runProgress {
    0%{ width: 0%; background: rgba(255,255,255,0.3); }
    100%{ width: 96%; background: rgba(255,255,255,1); }
}

@-moz-keyframes runProgress {
    0%{ width: 0%; background: rgba(255,255,255,0.3); }
    100%{ width: 96%; background: rgba(255,255,255,1); }
}

@-o-keyframes runProgress {
    0%{ width: 0%; background: rgba(255,255,255,0.3); }
    100%{ width: 96%; background: rgba(255,255,255,1); }
}

@-ms-keyframes runProgress {
    0%{ width: 0%; background: rgba(255,255,255,0.3); }
    100%{ width: 96%; background: rgba(255,255,255,1); }
}

@keyframes runProgress {
    0%{ width: 0%; background: rgba(255,255,255,0.3); }
    100%{ width: 96%; background: rgba(255,255,255,1); }
}


/* Let's add some different durations for the demo ниже задается время */

 .tn-box:nth-child(2) {
    -webkit-animation-duration: 6s;
    -moz-animation-duration: 6s;
    -o-animation-duration: 6s;
    -ms-animation-duration: 6s;
    animation-duration: 6s;
    
    -webkit-animation-delay: 0.2s;
    -moz-animation-delay: 0.2s;
    -o-animation-delay: 0.2s;
    -ms-animation-delay: 0.2s;
    animation-delay: 0.2s;
}

 .tn-box:nth-child(2) .tn-progress {
    -webkit-animation-duration: 5s;
    -moz-animation-duration: 5s;
    -o-animation-duration: 5s;
    -ms-animation-duration: 5s;
    animation-duration: 5s;
    
    -webkit-animation-delay: 0.7s;
    -moz-animation-delay: 0.7s;
    -o-animation-delay: 0.7s;
    -ms-animation-delay: 0.7s;
    animation-delay: 0.7s;
}

 .tn-box:nth-child(3) {
    -webkit-animation-duration: 9s;
    -moz-animation-duration: 9s;
    -o-animation-duration: 9s;
    -ms-animation-duration: 9s;
    animation-duration: 9s;
    
    -webkit-animation-delay: 0.4s;
    -moz-animation-delay: 0.4s;
    -o-animation-delay: 0.4s;
    -ms-animation-delay: 0.4s;
    animation-delay: 0.4s;
}

 .tn-box:nth-child(3) .tn-progress {
    -webkit-animation-duration: 7.5s;
    -moz-animation-duration: 7.5s;
    -o-animation-duration: 7.5s;
    -ms-animation-duration: 7.5s;
    animation-duration: 7.5s;
    
    -webkit-animation-delay: 0.9s;
    -moz-animation-delay: 0.9s;
    -o-animation-delay: 0.9s;
    -ms-animation-delay: 0.9s;
    animation-delay: 0.9s;
}

/* Last example pauses on hover (causes problems in WebKit browsers) */

.tn-box.tn-box-hoverpause:hover, 
.tn-box.tn-box-hoverpause:hover .tn-progress{
    -webkit-animation-play-state: paused;
    -moz-animation-play-state: paused;
    -o-animation-play-state: paused;
    -ms-animation-play-state: paused;
    animation-play-state: paused;
}

 

 .knopkamenu { position: absolute;margin: 2px 0px 0px -150px;padding: 7px; background: #e0e0e0;    }
  .knopkamenu:hover {    background: #E2BF00;    cursor: pointer;    }
  
  .whospisok {position: absolute;margin: 2px 0px 0px -175px;padding: 7px; background: #cbcbcb; }
  .whospisok:hover {background: #E2BF00; cursor: pointer;}
  .whospisokcat2 {position: absolute;margin: 12px 0px 0px -175px;padding: 7px; background: #cbcbcb; }
  .whospisokcat2:hover {background: #E2BF00;    cursor: pointer;}
  .whospisokcat3 {position: absolute;margin: 12px 0px 0px -175px;padding: 7px; background: #cbcbcb; }
  .whospisokcat3:hover {background: #E2BF00;    cursor: pointer;}
  .whospisokcat4 {position: absolute;margin: 12px 0px 0px -175px;padding: 7px; background: #cbcbcb; }
  .whospisokcat4:hover {background: #E2BF00;    cursor: pointer;}  
  .whospisokcat5 {position: absolute;margin: 12px 0px 0px -175px;padding: 7px; background: #cbcbcb; }
  .whospisokcat5:hover {background: #E2BF00;    cursor: pointer;}  
  .whospisokcat6 {position: absolute;margin: 12px 0px 0px -175px;padding: 7px; background: #cbcbcb; }
  .whospisokcat6:hover {background: #E2BF00;    cursor: pointer;}  
.vid_obyavleniy{background-color:#fff;margin: 0px 0px 10px 0px;border: 1px solid #515151;border-radius: 12px;box-shadow: 0 4px 24px rgba(0,0,0,0.15);}
.vid_obyavleniy:hover{background-color:#d1d1d1;}
.hidemenuobyavleniy {  display: none;}
.vid_obyavleniy:hover,.scrollingcontent_button:hover  .hidemenuobyavleniy { display: block;}

.resultskolobyavleniy{display: block;float: right;margin: 3px 5px 5px 10px;letter-spacing: 0px;font-size: 18px;text-transform: full-size-kana;font-weight: 700;}


.search_resultcat2{
    background: #FFF;
    border: 1px #ccc solid;
    border-radius: 4px;
    max-height:400px;
    overflow-y:scroll;
}
.search_resultcat2 li{
    list-style: none;
    padding: 10px 10px;
    color: #0896D3;
    border-bottom: 2px #4d90fe;
    cursor: pointer;
    transition:0.3s;
}
.search_resultcat2 li:hover{
    background: #E2BF00;
}

.search_resultcat3{
    background: #FFF;
    border: 1px #ccc solid;
    border-radius: 4px;
    max-height:400px;
    overflow-y:scroll;
}
.search_resultcat3 li{
    list-style: none;
    padding: 10px 10px;
    color: #0896D3;
    border-bottom: 2px #4d90fe;
    cursor: pointer;
    transition:0.3s;
}
.search_resultcat3 li:hover{
    background: #E2BF00;
}


.search_resultcat4{
    background: #FFF;
    border: 1px #ccc solid;
    border-radius: 4px;
    max-height:400px;
    overflow-y:scroll;
}
.search_resultcat4 li{
    list-style: none;
    padding: 10px 10px;
    color: #0896D3;
    border-bottom: 2px #4d90fe;
    cursor: pointer;
    transition:0.3s;
}
.search_resultcat4 li:hover{
    background: #E2BF00;
}



.search_resultcat5{
    background: #FFF;
    border: 1px #ccc solid;
    border-radius: 4px;
    max-height:400px;
    overflow-y:scroll;
}
.search_resultcat5 li{
    list-style: none;
    padding: 10px 10px;
    color: #0896D3;
    border-bottom: 2px #4d90fe;
    cursor: pointer;
    transition:0.3s;
}
.search_resultcat5 li:hover{
    background: #E2BF00;
}

.search_resultcat6{
    background: #FFF;
    border: 1px #ccc solid;
    border-radius: 4px;
    max-height:400px;
    overflow-y:scroll;
}
.search_resultcat6 li{
    list-style: none;
    padding: 10px 10px;
    color: #0896D3;
    border-bottom: 2px #4d90fe;
    cursor: pointer;
    transition:0.3s;
}
.search_resultcat6 li:hover{
    background: #E2BF00;
}
.half-stars {
}
.half-stars .rating-group {
    display: inline-flex;
}
.half-stars .rating-group2 {
    display: inline-flex;
}
.half-stars input {
    position: absolute;
    left: -9999px;
}
.half-stars label {
    margin: 0;
    cursor: pointer;
}
.half-stars label svg {
    margin: 1px;
    height: 15px;
    width: 15px;
    fill: #BFE2FF;
    transition: fill 0.3s;
}
.half-stars .hsr {
    padding-right: 0;
    margin-right: -15px;
    width: 15px;
    overflow: hidden;
    z-index: 1;
}
.half-stars input:checked ~ label svg {
    fill: #BFE2FF;
}
.half-stars .rating-group:hover label svg {
    fill: #337AB7;
}
.half-stars .rating-group input:hover ~ label svg {
    fill: #BFE2FF;
}


     #overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999;
    -webkit-animation: fade .6s;
    -moz-animation: fade .6s;
    animation: fade .6s;
    overflow: auto;
    z-index: 1117;
}
.popup2 {
    top: 25%;
    left: 0;
    right: 0;       
    font-size: 14px;
    margin: auto;
    width: 85%;
    min-width: 320px;
    max-width: 600px;
    position: absolute;
    padding: 15px 20px;
    border: 1px solid #383838;
    background: #fefefe;
    z-index: 1000;
    border-radius: 4px;
    font: 14px/18px 'Tahoma', Arial, sans-serif;
    box-shadow: 0 15px 20px rgba(0,0,0,.22),0 19px 60px rgba(0,0,0,.3);
    animation: fade .6s;
}
.close2 {
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    position: absolute;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 131, 119, 0.9);
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
    cursor: pointer;
    outline: none;
 
}
.close2:before {
    color: rgba(255, 255, 255, 0.9);
    content: "X";
    font-family:  Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: normal;
    text-decoration: none;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}
/* кнопка закрытия при наведении */
.close2:hover {
    background-color: rgba(252, 20, 0, 0.8);
}



h1, h2, h3, h4, h5, h6{font-size: 24px;font-weight: bold;border-bottom: 2px solid #b0b0b0;margin-bottom: 3px;padding: 5px;}
.foto_vidadd {width: 100%;height: 150px;border: 2px solid #515151; display: inline-block;}
.img_foto_vidadd {overflow: hidden;}
.img_foto_vidadd img { width: 101%;transform: translate(-50%, -50%);top: 50%;left: 50%;position: relative; }

.foto_vid1mobila {width: 100%;height: 130px;background: black;border-radius: 12px;}
.img_foto_vid1mobila {overflow: hidden;}
.img_foto_vid1mobila img { width: 101%;transform: translate(-50%, -50%);top: 50%;left: 50%;position: relative; }

.foto_vid2mobila {width: 100%;height: 110px;background: black;border-radius: 12px;}
.img_foto_vid2mobila {overflow: hidden;}
.img_foto_vid2mobila img { width: 101%;transform: translate(-50%, -50%);top: 50%;left: 50%;position: relative; }


.foto_vid1 {width: 100%;height: 200px;background: black;border-radius: 12px;}
.img_foto_vid1 {overflow: hidden;}
.img_foto_vid1 img { width: 101%;transform: translate(-50%, -50%);top: 50%;left: 50%;position: relative; }

.foto_vid2 {width: 100%;height: 220px;background: black;border-radius: 12px;}
.img_foto_vid2 {overflow: hidden;}
.img_foto_vid2 img { width: 101%;transform: translate(-50%, -50%);top: 50%;left: 50%;position: relative; }




.navbarmenuicon {
cursor: pointer;
width: 30px;
height: 30px;
opacity: 0.8;
margin: 0px 0px -5px 0px;
}
.navbarmenuicon:hover {
    opacity: 1;
}   

 #navbarmenu {position: sticky;top:0;z-index: 2;display:block;margin: -3px 0px 0px 0px;} 



#mobilarazdeli {
top: 105;
width: 100%; /* Растянем на всю ширину */
transition: top 1.2s; /* Эффект трансформации при выдвижении вниз (и вверх) */
position: sticky; /* Зафиксируем меню */
font-size: 12pt;
z-index: 2;   
}



.favourites {
  position: absolute;
  top: 8px;   /* Отступ сверху от края кнопки (можно поставить 0, если нужно впритык) */
  right: 8px; /* Отступ справа от края кнопки (можно поставить 0, если нужно впритык) */
      cursor:pointer; 
    width:32px; 
    height: 32px; 
    line-height:0; 
    font-size:0; 
    text-indent:-999px;
    color: transparent;  
    background: url("/img/menu/favorites.png") no-repeat  center; 
    border-radius: 2px;
    background-size: 34px;
    z-index: 1;
}
.favourites:hover {
background: url("/img/menu/favorites.png") no-repeat center; 
background-size: 38px;
}   

.favourites2 {
  position: absolute;
  top: 8px;   /* Отступ сверху от края кнопки (можно поставить 0, если нужно впритык) */
  right: 8px; /* Отступ справа от края кнопки (можно поставить 0, если нужно впритык) */
      cursor:pointer; 
    width:32px; 
    height: 32px; 
    line-height:0; 
    font-size:0; 
    text-indent:-999px;
    color: transparent;  
    background: url("/img/menu/favoriteshover.png") no-repeat  center; 
    border-radius: 2px;
    background-size: 34px;
    z-index: 1;
}
.favourites2:hover {
background: url("/img/menu/favoriteshover.png") no-repeat center; 
background-size: 38px;
}   


.edit {
    display: inline-block;
    cursor:pointer; 
    width:24px; 
    height: 24px; 
    line-height:0; 
    font-size:0; 
    text-indent:-999px;
    color: transparent;  
    background: url("/img/menu/edit.png") no-repeat  center; 
    border-radius: 2px; 
    background-size: 24px;
}
.edit:hover {
    background: url("/img/menu/edit.png") no-repeat center; 

background-size: 24px;
} 


.add {
    display: inline-block;
    cursor:pointer; 
    width:24px; 
    height: 24px; 
    line-height:0; 
    font-size:0; 
    text-indent:-999px;
    color: transparent;  
    background: url("/img/menu/add.png") no-repeat  center; 
    border-radius: 2px;
    background-size: 24px;
}
.add:hover {
    background: url("/img/menu/add.png") no-repeat center; 

background-size: 24px;
} 



.del {
    display: inline-block;
    cursor:pointer; 
    width:24px; 
    height: 24px; 
    line-height:0; 
    font-size:0; 
    text-indent:-999px;
    color: transparent;  
    background: url("/img/menu/del.png") no-repeat  center; 
    border-radius: 2px; 
    background-size: 24px;
}
.del:hover {
    background: url("/img/menu/del.png") no-repeat center; 

background-size: 24px;
} 

.arhiv {
    display: inline-block;
    cursor:pointer; 
    width:24px; 
    height: 24px; 
    line-height:0; 
    font-size:0; 
    text-indent:-999px;
    color: transparent;  
    background: url("/img/menu/arhiv.png") no-repeat  center; 
    border-radius: 2px;
    background-size: 24px;
}
.arhiv:hover {
    background: url("/img/menu/arhiv.png") no-repeat center; 

background-size: 24px;
} 




.reklama {
    display: inline-block;
    cursor:pointer; 
    width:24px; 
    height: 24px; 
    line-height:0; 
    font-size:0; 
    text-indent:-999px;
    color: transparent;  
    background: url("/img/menu/reklama.png") no-repeat  center; 
    border-radius: 2px;
background-size: 24px;
}
.reklama:hover {
    background: url("/img/menu/reklama.png") no-repeat center; 

background-size: 24px;
} 
.bron,.bron_del {
    display: inline-block;
    cursor:pointer; 
    width:24px; 
    height: 24px; 
    line-height:0; 
    font-size:0; 
    text-indent:-999px;
    color: transparent;  
    background: url("/img/menu/bron.png") no-repeat  center; 
    border-radius: 2px; 
background-size: 24px;
}
.bron:hover,.bron_de:hover {
    background: url("/img/menu/bron.png") no-repeat center; 

background-size: 24px;
} 

.share {
    display: inline-block;
    cursor:pointer; 
    width:24px; 
    height: 24px; 
    line-height:0; 
    font-size:0; 
    text-indent:-999px;
    color: transparent;  
    background: url("/img/menu/share.png") no-repeat  center; 
    border-radius: 2px;
    background-size: 24px;
}
.share:hover {
    background: url("/img/menu/share.png") no-repeat center; 

background-size: 24px;
} 



.notes {
    display: inline-block;
    cursor:pointer; 
    width:24px; 
    height: 24px; 
    line-height:0; 
    font-size:0; 
    text-indent:-999px;
    color: transparent;  
    background: url("/img/menu/zametka.png") no-repeat  center; 
    border-radius: 2px;
    background-size: 24px;
}
.notes:hover {
    background: url("/img/menu/zametka.png") no-repeat center; 

background-size: 24px;
} 

.share {
    display: inline-block;
    cursor:pointer; 
    width:24px; 
    height: 24px; 
    line-height:0; 
    font-size:0; 
    text-indent:-999px;
    color: transparent;  
    background: url("/img/menu/share.png") no-repeat  center; 
    border-radius: 2px; 
    background-size: 24px;
}
.share:hover {
    background: url("/img/menu/share.png") no-repeat center; 

background-size: 24px;
} 





.form_radio {	margin-bottom: 0px;}
.form_radio input[type=radio] {	display: none;}
.form_radio label {	display: inline-block;	cursor: pointer;	position: relative;	padding-left: 25px;	margin-right: 0;	line-height: 18px;	user-select: none;}
.form_radio label:before {	content: "";	display: inline-block;	width: 143px;	height: 172px;	position: absolute;	left: 0;	bottom: 12px;}
 /* Checked */
.form_radio input[type=radio]:checked + label:before {	background: url(/img/osnfoto.png) 0 0 no-repeat;background-size: 140px auto;}
 /* Hover 
.form_radio label:hover:before {	filter: brightness(120%);}*/
 /* Disabled */
.form_radio input[type=radio]:disabled + label:before {	filter: grayscale(100%);}



.rubl {
    border-bottom: 0.07em solid;
    line-height: 0.2em;
    display: inline-block;
    width: 0.5em;
}




#load{
width: 30%x;
height: 70px;
text-align: center;
margin: 10px auto;
    
}
#load div{
    margin: 5px;
    background: #6483aa;
    color:#fff;
    font-size: 1px;
}
@media only screen and (min-width:1170px){
    
    
/* Всплывающее окно */	
.parent_popup {
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
#popup { 
  background: #fff;
    width: 50%;
    margin: 10% auto;
    padding: 5px 20px 13px 20px;
    border: 10px solid #ddd;
    position: relative;
    /*--CSS3 CSS3 Тени для Блока--*/
    box-shadow: 0px 0px 20px #000;
    /*--CSS3 Закругленные углы--*/
    border-radius: 10px;
}
#popuph1 {
    font-size:22px;
    font-weight: bold;
    text-align: center;
    color: #008000;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);

    }

/* кнопка закрытия */
.close {
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #ccc;
    height: 24px;
    line-height: 20px;
    position: absolute;
    right: -24px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-family: helvetica, arial;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
    top: -24px;
    width: 24px;
    border-radius: 15px;
    box-shadow: 1px 1px 3px #000;
}
.close:hover {
    background-color: rgba(255, 69, 0, 0.8);
}  
.who {
    width: 400px;
    height: 35px;
    line-height: 25px;
    padding: 5px;
    font-family: arial, sans-serif;
    font-size: 18px;
    color: #333;
    background: #fff;
    border: solid 2px #4d90fe;
    outline: none;
}


}

   .search{
   position:relative;
}
.search_result{
    background: #FFF;
    border: 1px #ccc solid;
    border-radius: 4px;
    max-height:200px;
    overflow-y:scroll;
}
.search_result li{
    list-style: none;
    padding: 10px 10px;
    color: #0896D3;
    border-bottom: 2px #4d90fe; solid;
    cursor: pointer;
    transition:0.3s;
}
.search_result li:hover{
    background: #E2BF00;
}


   .search{
   position:relative;
}
.search_resultcity{
    background: #FFF;
    border: 1px #ccc solid;
    border-radius: 4px;
    max-height:200px;
    overflow-y:scroll;
}
.search_resultcity li{
    list-style: none;
    padding: 10px 10px;
    color: #0896D3;
    border-bottom: 2px #4d90fe; solid;
    cursor: pointer;
    transition:0.3s;
}
.search_resultcity li:hover{
    background: #E2BF00;
}


 /* В мобильной версии */ /* В мобильной версии */ /* В мобильной версии */ /* В мобильной версии */ /* В мобильной версии */ /* В мобильной версии */ /* В мобильной версии */ /* В мобильной версии */ /* В мобильной версии */ /* В мобильной версии */ /* В мобильной версии */ /* В мобильной версии */ /* В мобильной версии */ /* В мобильной версии */



@media screen and (max-width:1200px){ 
    /* В мобильной версии */

       .search{
   position:relative;
}
.search_result{
    background: #FFF;
    border: 1px #ccc solid;
    width: 250px;
    border-radius: 4px;
    max-height:200px;
    overflow-y:scroll;
    font-size: 16px;
}
.search_result li{
    list-style: none;
    padding: 10px 10px;
    color: #0896D3;
    border-bottom: 2px #4d90fe; solid;
    cursor: pointer;
    transition:0.3s;
}
.search_result li:hover{
    background: #E2BF00;
}

.search_resultcity{
    background: #FFF;
    border: 1px #ccc solid;
    border-radius: 4px;
    max-height:200px;
    overflow-y:scroll;
    font-size: 16px;
}
.search_resultcity li{
    list-style: none;
    padding: 10px 10px;
    color: #0896D3;
    border-bottom: 2px #4d90fe; solid;
    cursor: pointer;
    transition:0.3s;
}
.search_resultcity li:hover{
    background: #E2BF00;
}
    
.who {
    width: 250px;
    height: 35px;
    line-height: 25px;
    padding: 5px;
    font-family: arial, sans-serif;
    font-size: 18px;
    color: #333;
    background: #fff;
    border: solid 2px #4d90fe;
    outline: none;
}    
    
/* Всплывающее окно */	
.parent_popup {
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  position: fixed;
  z-index: 99999;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
#popup { 
  background: #fff;
    width: 90%;
    margin: 10% auto;
    padding: 5px 20px 13px 20px;
    border: 10px solid #ddd;
    position: relative;
    /*--CSS3 CSS3 Тени для Блока--*/
    box-shadow: 0px 0px 20px #000;
    /*--CSS3 Закругленные углы--*/
    border-radius: 10px;
}
#popuph1 {
    font-size:14px;
    font-weight: bold;
    text-align: center;
    color: #008000;
    text-shadow: 0 1px 3px rgba(0,0,0,.3);

    }

/* кнопка закрытия */
.close {
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #ccc;
    height: 24px;
    line-height: 20px;
    position: absolute;
    right: -24px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-family: helvetica, arial;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.9);
    top: -24px;
    width: 24px;
    border-radius: 15px;
    -moz-box-shadow: 1px 1px 3px #000;
    -webkit-box-shadow: 1px 1px 3px #000;
    box-shadow: 1px 1px 3px #000;
  transition: background-color 0.6s;
}
.close:hover {
    background-color: rgba(255, 69, 0, 0.8);
}    

.navbar { 

/*transition: top 0.7s; Эффект трансформации при выдвижении вниз (и вверх)  background-color: #f7f7f7; */
height: 50px;
position: sticky; /* Зафиксируем меню */
z-index:99999;	
}


#mobilarazdeli {
top: 60;
width: 100%; /* Растянем на всю ширину */
transition: top 1.2s; /* Эффект трансформации при выдвижении вниз (и вверх) */
position: sticky; /* Зафиксируем меню */
font-size: 12pt;
z-index: 2;
background-color: #f7f7f7;    

}

.poiskforma{
    height: 40px;
    line-height: 25px;
    padding: 3px;
    font-size: 14px;
    color: #333;
    background: #fff;
    border: solid 1px #4d90fe;
    outline: none;
    border-radius: 5px;
}

}  /* В мобильной версии конец */


.poiskforma{
    height: 40px;
    line-height: 25px;
    padding: 5px;
 font-family: arial, sans-serif;
font-size: 16px;
    color: #333;
    background: #fff;
    border: solid 1px #4d90fe;
    outline: none;
    border-radius: 5px;
}

.menu_uprav {
padding: 10px;
}

.poiskpkimobila {
top: 0;
width: 100%; /* Растянем на всю ширину */
transition: top 1.2s; /* Эффект трансформации при выдвижении вниз (и вверх) */
position: sticky; /* Зафиксируем меню */
font-size: 14pt;
z-index: 3;
background-color: #f7f7f7;    
border-radius: 12px;
border: 1px solid #dbdbdb;    
}



#navbar{
transition: top 0.7s; /* Эффект трансформации при выдвижении вниз (и вверх) */
position: -webkit-sticky; /* Зафиксируем меню */
position: sticky; /* Зафиксируем меню */
font-size: 14pt;
z-index: 4;
}


.menupkimobila {
/* Прижмем к верху top: 0; */
width: 100%; /* Растянем на всю ширину */
/*transition: top 0.7s; Эффект трансформации при выдвижении вниз (и вверх)  background-color: #f7f7f7; */
height: 60px;
position: sticky; /* Зафиксируем меню */
z-index:99999;	
}







.poisk_knopka {
    cursor: pointer;
    width: 40px;
    height: 40px;
    line-height: 0;
    font-size: 0;
    text-indent: -999px;
    color: transparent;
    background: url("/img/search.png") no-repeat #4d90fe center;
    border: 2px solid #3079ED;
    border-radius: 2px;
    display:none;
    border-radius: 5px;
}



.resultskol {
    background: #3079ED;
  cursor: pointer;
  padding: 5px;
  font-size: 14pt;
  color: #fff;
  border: 2px solid #5b5b5b;
  border-radius: 2px;
}
.resultskol:hover{
    background: #E2BF00;
  color:#1b4c9c;
}


.knopka {
    background: #3079ED;
  cursor: pointer;
  padding: 5px;
  line-height: 2;
  font-size: 14pt;
  color: #fff;
  border: 2px solid #5b5b5b;
  border-radius: 10px;
  transition: background-color 0.6s;
}
.knopka:hover{
    background: #E2BF00;
  color:#1b4c9c;
}
.knopka.active {
background-color: #344a62;
border-color: #000;
}


#knopkazakrep {
  position: sticky;
bottom: 10px;
transition: top 1.2s;
}


.knopka_dop {
  background: #5DC35E;
  cursor: pointer;
  padding: 5px;
  line-height: 0;
  font-size: 14pt;
  color: #fff;
  border: 2px solid #5b5b5b;
  border-radius: 10px;
  transition: background-color 0.6s;
}
.knopka_dop:hover{
    background: #E2BF00;
  color:#1b4c9c;
}
.knopka_user {
    background: #3079ED;
  cursor: pointer;
  padding: 5px;
  line-height: 0;
  font-size: 14pt;
  color: #fff;
  border: 2px solid #5b5b5b;
  border-radius: 10px;
  transition: background-color 0.6s;
}
.knopka_user:hover{
    background: #E2BF00;
  
}


.knopki_edit {
  background: #bbb;
  width: 100%;
  border: 2px solid #777;
  color: #000;
  padding: 10px 16px;
  transition: background-color 0.6s;
  text-align: center;
}
.knopki_edit:hover{color:#1b4c9c;background: #e6e6e6;}


.knopki:hover{
    border-radius: 10px;
opacity: 0.7;
}

#ok {
display: inline-block;
background: #5DC35E;
cursor: pointer;
padding: 15px;
line-height: 0;
font-size: 14pt;
color: #fff;
border: 1px solid #5b5b5b;
border-radius: 10px;
transition: background-color 0.6s;
font-size: 20px;
}
#ok:hover{
border-radius: 10px;
background: #E2BF00;
opacity: 0.7;
}


#off {
display: inline-block;
background: #A2A2A2;
cursor: pointer;
padding: 15px;
line-height: 0;
font-size: 14pt;
color: #fff;
border: 1px solid #5b5b5b;
border-radius: 10px;
transition: background-color 0.6s;
font-size: 20px;
}
#off:hover{
border-radius: 10px;
background: #E2BF00;
opacity: 0.7;
}


.knopka_info {
  display: inline-block;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  font-size: 12pt;
  border: 1px solid #5b5b5b;
  border-radius: 10px;
  transition: background-color 0.6s;
  box-shadow: 0 4px 16px 2px rgba(0,26,52,.16);
  margin: 2px;
  width: 120px;
}
.knopka_info:hover{
    background: #E2BF00;
  
}
.knopka_info_dop {
  font-size: 10pt;
 
}

.km {
  position: absolute;
  margin: 7px 0px 0px -40px;
  z-index: 1;
  border: 0;
  padding: 0 10px;
  font-weight: 400;
opacity: 1;
  background: transparent;
  outline: none;
  font-size: 16px;
}

.rub {
  position: absolute;
  margin: 7px 0px 0px -47px;
  z-index: 1;
  border: 0;
  padding: 0 10px;
  font-weight: 400;
opacity: 1;
  background: transparent;
  outline: none;
  font-size: 16px;
}



.form-field__clear {
position: absolute;
margin: 0px 0px 0px -30px;
opacity: .5;
z-index: 1;
border: 0;
padding: 0 10px;
font-weight: 400;
transition: opacity .1s ease-out;
background: transparent;
outline: none;
font-size: 30px;
}

.form-field__clear:hover {
  opacity: 1;
}



.form-field__clear_2 {
position: absolute;
margin: 10px 0px 0px -30px;
opacity: .5;
z-index: 1;
border: 0;
padding: 0 10px;
font-weight: 400;
transition: opacity .1s ease-out;
background: transparent;
outline: none;
font-size: 20px;
display: inline;
cursor: pointer;
}

.form-field__clear_2:hover {
  opacity: 1;
}






.mesto_knopka_parametr {
position: absolute;
margin: -5px 0px 0px 0px;
z-index: 1;
border: 0;
font-weight: 400;
transition: opacity .1s ease-out;
background: transparent;
outline: none;
}


.mesto_knopka_on {
position: absolute;
margin: -5px 0px 0px 40px;
z-index: 1;
border: 0;
font-weight: 400;
transition: opacity .1s ease-out;
background: transparent;
outline: none;
}


.mesto_knopka_onpc {
width: 200px;
height: 40px;
padding: 5px;
font-family: arial, sans-serif;
font-size: 16px;    
color: #333;
background: #fff;
border: solid 2px #4d90fe;
outline: none;
text-align: left;
background-image: url("/img/geo.png");
background-repeat: no-repeat;
background-size: 35px;
background-position: right;
border-radius: 5px;
}

.form-field__clear_3 {
position: absolute;
margin: 5px 0px 0px -65px;
opacity: .2;
z-index: 1;
border: 0;
padding: 0 10px;
font-weight: 400;
transition: opacity .1s ease-out;
background: transparent;
outline: none;
font-size: 20px;
}

.form-field__clear_3:hover {
  opacity: 1;
}







.field__wrapper {
  width: 100%;
  margin: 5px 0;
}
 
.field__file {
  opacity: 0;
  visibility: hidden;
  position: relative;
  width: 1px;
}
 
.field__file-wrapper {
  width: 100%;
}
 
.field__file-fake {
  height: 60px;
  width: calc(100% - 130px);
  padding: 0 15px;
  border: 1px solid #c7c7c7;
  border-radius: 3px 0 0 3px;
  border-right: none;
}
 
.field__file-button {
background: url(/img/photo_camera.png) center no-repeat;    
background-size: 100px;
width: 100px;
height: 100px;
  font-weight: 700;
  display: -webkit-box;
  display: -ms-flexbox;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  margin: 0px 8px -20px 0px;
}












 
/* Стили для вывода превью */
.img-item {
  display: block;
  margin: 0 5px 10px 10px;
  position: relative;
  user-select: none;
  width: 140px;
  float: left;
}

/*.img-item:hover {
background: #C4C4C4;
} */
.img-item img {
    border: 1px solid #767676;
}
.img-item a {
display: inline-block;
background: url(/img/remove.png) 0 0 no-repeat;
position: absolute;
top: -8px;
right: -8px;
width: 20px;
height: 20px;
cursor: pointer;
z-index: 12;
}
  #ads-table-spisok-title {
    padding: 10px;
color: #1c1e21;
text-align: center;
font-size: 22px;
  }

  #ads-table-spisok {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
  }
  #ads-table-spisok th,
  #ads-table-spisok td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: left;
  }
  #ads-table-spisok th {
    background-color: #f5f5f5;
    font-weight: bold;
  width: 30%; 
  white-space: nowrap; 
  }
  #ads-table-spisok tr:hover {
    background-color: #fafafa;
  }


/* 
Табы
*/
/* --- СТИЛИ ДЛЯ КОМПЬЮТЕРОВ (ПК) --- */
/* --- СТИЛИ ДЛЯ КОМПЬЮТЕРОВ (ПК) --- */
.tabs {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.tabs__caption {
  display: flex;            /* Включаем флекс для распределения на ПК */
  justify-content: space-between; /* Растягиваем элементы равномерно по ширине */
  width: 100%;
  height: 29px; 
  line-height: 25px; 
  list-style: none; 
  background: #FFF;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.tabs__caption li {
  flex: 1;                  /* На ПК каждая вкладка имеет одинаковую ширину */
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  padding: 0 5px;
  box-sizing: border-box;
}

/* --- МОНОЛИТНЫЙ ВАРИАНТ ДЛЯ СМАРТФОНОВ (Экран меньше 768px) --- */
@media (max-width: 767px) {
  .tabs {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important; /* Жестко запрещаем внешнему блоку вылезать */
    box-sizing: border-box !important;
  }
  
  .tabs__caption {
    display: flex !important;
    justify-content: flex-start !important; /* Выстраиваем вкладки в один ряд с начала */
    flex-wrap: nowrap !important;          /* ЗАПРЕЩАЕМ вкладкам переноситься на новую строку */
    
    /* ПЕРЕНОСИМ СКРОЛЛ СЮДА */
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;           /* Включаем скролл прямо на списке */
    overflow-y: hidden !important;
    
    -webkit-overflow-scrolling: touch !important; /* Плавный скролл на iOS */
    scrollbar-width: none !important;            /* Скрываем скроллбар в Firefox */
    
    box-sizing: border-box !important;
    padding: 0 0px !important;
  }
  
  /* Скрываем скроллбар в Chrome, Safari, Opera и Edge */
  .tabs__caption::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
  
  .tabs__caption li {
    flex: 0 0 auto !important;    /* ЖЕСТКИЙ ЗАПРЕТ: вкладки не сжимаются и сохраняют свой размер */
    width: auto !important;
    padding: 0 15px !important;   /* Удобные отступы для тапа пальцем */
    text-align: center !important;
  }
}




.tabs__caption li {font-size: 20px;float: left; display: inline; margin: 0; padding: 0 10px 1px; color: #777; cursor: pointer;  border: 1px solid #000; position: relative;}
.tabs__caption li:hover,.vertical .tabs__caption li:hover {color: #F70; padding: 0 10px; background: #FFFFDF; border: 1px solid #FFCA95;}
.tabs__caption .active {color: #000; padding: 0 10px 2px; border: 1px solid #000; border-bottom: 1px solid #fff;}
.tabs__content {    display: none;    border-width: 0 1px 1px;        padding: 0 5px;}
.tabs__content.active {    display: block;  border-bottom: 1px solid #000;  border-right: 1px solid #000;  border-left: 1px solid #000;padding-bottom: 20px;}
.tabs.vertical {
    width: 440px;
    border-left: 160px solid #FFF;
}
.vertical .tabs__caption {
    width: 160px;
    float: left;
    display: inline;
    margin: 0 0 0 -160px;
}
.vertical .tabs__caption li {
    padding: 0 13px;
    margin: 0 0 1px;
    border: 1px solid #E4E4E4;
    border-right: 1px solid #F9F9F9;
    width: 132px;
    height: 25px;
}
.vertical .tabs__caption li:hover {
    width: 131px;
}
.vertical .tabs__caption .active {
    width: 133px;
    color: #444;
    background: #EFEFEF;
    border: 1px solid #D4D4D4;
    border-right: 1px solid #EFEFEF;
    margin-right: -1px;
}
.vertical .tabs__content {
    border-width: 1px;
}
/* 
Табы
*/





/* checkbox style */
.checkbox-other {
    display: block;
    margin: 0 0 10px 0;
    cursor: pointer;
    user-select: none;
    position: relative;
}
.checkbox-other input[type=checkbox] {
    position: absolute;
    z-index: -1;
    opacity: 0;
    display: block;
    width: 0;
    height: 0;
}
.checkbox-other span {
    display: inline-block;
    position: relative; 
    padding: 0 0 0 35px; 
    line-height: 22px;    
}
.checkbox-other span:before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 0;
    top: 0;
    background: url(/img/checkbox-3.png) 0 0 no-repeat;
}
 
/* Checked */
.checkbox-other input[type=checkbox] + span:after {
    content: "";	
    opacity: 0;
    transition: opacity 0.3s ease;
}
.checkbox-other input[type=checkbox]:checked + span:after {
    display: inline-block;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 4px;
    top: -5px;
    background: url(/img/checkbox-4.png) 0 0 no-repeat;
    opacity: 1;
}
 
/* Focus */
.focused span:before {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
 
/* Hover */
.checkbox-other span:hover:after {
    filter: brightness(110%);
}
 
/* Active */
.checkbox-other span:active:before,
.checkbox-other span:active:after {
    filter: brightness(80%);
}
 
/* Disabled */
.checkbox-other input[type=checkbox]:disabled + span {
    color: #666;
    cursor: default;
}
.checkbox-other input[type=checkbox]:disabled + span:before,
.checkbox-other input[type=checkbox]:disabled + span:after 

/* checkbox style конец*/




/* radio style */
#radio-other {
    display: block;
    margin: 0 0 10px 0;
    cursor: pointer;
    user-select: none;
    position: relative;
}
.radio-other {
    display: block;
    margin: 0 0 10px 0;
    cursor: pointer;
    user-select: none;
    position: relative;
}
.radio-other input[type=radio] {
    position: absolute;
    z-index: -1;
    opacity: 0;
    display: block;
    width: 0;
    height: 0;
}
.radio-other span {
    display: inline-block;
    position: relative; 
    padding: 0 0 0 35px; 
    line-height: 22px;    
}
.radio-other span:before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 0;
    top: 0;
    background: url(/img/checkbox-3.png) 0 0 no-repeat;
}
 
/* Checked */
.radio-other input[type=radio] + span:after {
    content: "";	
    opacity: 0;
    transition: opacity 0.3s ease;
}
.radio-other input[type=radio]:checked + span:after {
    display: inline-block;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 4px;
    top: -5px;
    background: url(/img/checkbox-4.png) 0 0 no-repeat;
    opacity: 1;
}
 
/* Focus */
.focused span:before {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
 
/* Hover */
.radio-other span:hover:after {
    filter: brightness(110%);
}
 
/* Active */
.radio-other span:active:before,
.radio-other span:active:after {
    filter: brightness(80%);
}
 
/* Disabled */
.radio-other input[type=radio]:disabled + span {
    color: #666;
    cursor: default;
}
.radio-other input[type=radio]:disabled + span:before,
.radio-other input[type=radio]:disabled + span:after {
    filter: grayscale(100%);
    opacity: 0.6;
}


/* radio style конец */






.cookies {
position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100000001;
  display: grid;
  grid-gap: 35px;
  grid-template-columns: repeat(2, auto);
  align-items: center;
  width: calc(100% - 8px);
  max-width: 416px;
  padding: 16px;
  border-radius: 10px;
  color: #fff;
  background-color: #242424;
  box-shadow: 0 4px 4px rgba(0, 0, 0, .04), 0 4px 20px rgba(0, 0, 0, .1);
}
.cookies__button {
margin: 0;
border: 0;
color: inherit;
font: inherit;  
font-weight: inherit;
font-size: inherit; 
line-height: inherit;-webkit-tap-highlight-color: transparent;padding: 10px 20px;
border-radius: 6px;
font-weight: 500;
font-size: 14px;
line-height: 20px;
background-color: #383837;
cursor: pointer;
transition: background-color .15s ease-out;
}


   /* Контейнер меню  вертикальное*/
.vertical-menu {
  width: 100%;
  max-width: 290px; /* Ограничиваем максимальную ширину на ПК */
  background: #ffffff;
  border: 1px solid #dbdbdb;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
  overflow: auto;
  max-height: 700px;
  margin: 0px 0px 5px 0px;
}

/* Список */
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0px; /* Зазор между пунктами */
}

/* Элемент списка */
.menu-item {
  width: 100%;
}

/* Ссылка внутри пункта меню */
.menu-item a {
  display: flex;
  align-items: center;
  gap: 12px; /* Расстояние между иконкой и текстом */
  padding: 7px 16px;
  color: #262626; /* Цвет текста */
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
  box-sizing: border-box;
}

/* Иконка SVG */
.menu-icon {
  width: 25px;
  height: 25px;
  transition: fill 0.2s ease, transform 0.2s ease;
  flex-shrink: 0; /* Запрещаем иконке сжиматься */
    font-size: 25px;
}

/* Эффект наведения на пункт меню */
.menu-item a:hover {
  background-color: #f5f5f5;
  color: #000000;
}

.menu-item a:hover .menu-icon {
  fill: #3079ED; /* Иконка синеет при наведении */
  transform: scale(1.15); /* Легкое увеличение иконки */
}

/* Активное (текущее) состояние пункта меню */
.menu-item.active a {
  background-color: #3079ED; /* Синий фон */
  color: #ffffff !important;  /* Белый текст */
}

.menu-item.active a .menu-icon {
  fill: #ffffff !important; /* Белая иконка */
}

/* АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ (Экран меньше 768px) */
@media (max-width: 767px) {
  .vertical-menu {
    max-width: 100%; /* На смартфонах меню растягивается во всю ширину */
    border-radius: 8px;
  }
  
  .menu-item a {
    padding: 12px 16px; /* Увеличиваем область тапа для пальца */
    font-size: 15px;
  }
}

/* Контейнер для иконки */
.menu-icon-wrapper {
width: 34px;
height: 34px;
background: linear-gradient(135deg, #e0e6ed 0%, #d1d9e6 100%);
color: #4a5568;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
border-radius: 50%;
letter-spacing: 0.5px;
border: 1px solid rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.04);
user-select: none;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}

/* Стили для реальной картинки, если она есть */
.menu-img {
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

/* Эффект при наведении на пункт меню */
.menu-item:hover .menu-img {
    transform: scale(1.1);
}

/* Стили для текстовой заглушки (если картинка пропала) */
.menu-img-placeholder {
    display: none; /* Убрали !important, теперь по умолчанию скрыто */
}


/* Индивидуальные стили для текста ссылки */
.menu-text {
    font-size: 15px;
    color: #2d3748;
    vertical-align: middle;
}

/* Навигация табов */
.menu-tabs-nav {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    padding: 0 10px;
    border-bottom: 1px solid #e2e8f0;
}

/* Кнопки переключения */
.menu-tab-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-tab-btn:hover {
    color: #4a5568;
}

/* Активный таб */
.menu-tab-btn.active {
    color: #3182ce;
    border-bottom-color: #3182ce;
}

/* Контент табов */
.menu-tab-content {
    display: none; /* Скрыты по умолчанию */
}

.menu-tab-content.active {
    display: block; /* Показывается только активный */
}

/* Контейнер для поля поиска */
.menu-search-wrapper {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Стили самого инпута */
#menu-live-search {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    outline: none;
    background-color: #f7fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Фокус на инпуте */
#menu-live-search:focus {
    border-color: #3182ce;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}




  /* Контейнер меню----------------------------------------------------------  горизантальное*/


.horizontal-menu {
  background: #ffffff;
}

/* Список */
.menu-horizontal-list {
display: flex;
align-items: center;
cursor: pointer;
font-size: 11px;
color: #262626;
min-width: 68px;
flex-shrink: 0;
}

/* Элемент списка */
.menu-horizontal-item {
  width: 100px;
}

/* Ссылка внутри пункта меню */
.menu-horizontal-item a {
display: flex;
flex-direction: column;
align-items: center;
cursor: pointer;
font-size: 14px;
color: #262626;
min-width: 68px;
min-height: 120px;    
flex-shrink: 0;
padding: 5px;
}

/* Иконка SVG */
.menu-horizontal-icon {
  width: 25px;
  height: 25px;
  transition: fill 0.2s ease, transform 0.2s ease;
  flex-shrink: 0; /* Запрещаем иконке сжиматься */
    font-size: 25px;
}

/* Эффект наведения на пункт меню */
.menu-horizontal-item a:hover {
  color: #000000;
}

.menu-horizontal-item a:hover .menu-icon {
  fill: #3079ED; /* Иконка синеет при наведении */
  transform: scale(1.15); /* Легкое увеличение иконки */
}

/* Активное (текущее) состояние пункта меню */
.menu-horizontal-item.active a {
  background-color: #3079ED; /* Синий фон */
  color: #ffffff !important;  /* Белый текст */
}

.menu-horizontal-item.active a .menu-icon {
  fill: #ffffff !important; /* Белая иконка */
}

/* АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ (Экран меньше 768px) */
@media (max-width: 767px) {
  .horizontal-menu {
    max-width: 100%; /* На смартфонах меню растягивается во всю ширину */
    border-radius: 8px;
  }
  
  .menu-horizontal-item a {
    padding: 6px 8px; /* Увеличиваем область тапа для пальца */
    font-size: 14px;
  }
}

/* Контейнер для иконки */
.menu-horizontal-icon-wrapper {
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #e0e6ed 0%, #d1d9e6 100%);
color: #4a5568;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
border-radius: 50%;
letter-spacing: 0.5px;
border: 1px solid rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.04);
user-select: none;    
width: 74px;
height: 74px;
border-radius: 50%;
padding: 2px;
display: flex;
justify-content: center;
align-items: center;
}

/* Стили для реальной картинки, если она есть */
.menu-horizontal-img {
    object-fit: contain;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

/* Эффект при наведении на пункт меню */
.menu-horizontal-item:hover .menu-horizontal-img {
    transform: scale(1.1);
}

/* Стили для текстовой заглушки (если картинка пропала) */
.menu-horizontal-img-placeholder {
    display: none; /* Убрали !important, теперь по умолчанию скрыто */

}

/* Индивидуальные стили для текста ссылки */
.menu-horizontal-text {
  white-space: normal;       
  overflow-wrap: break-word;  
  word-break: break-word;  
  max-width: 100%;  
  margin-top: 4px;
     text-align: center;
}

/* Навигация табов */
.menu-horizontal-tabs-nav {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    padding: 0 10px;
    border-bottom: 1px solid #e2e8f0;
    position: absolute;
top: -11px;
left: 150px;
}

/* Кнопки переключения */
.menu-horizontal-tab-btn {
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-horizontal-tab-btn:hover {
    color: #4a5568;
}

/* Активный таб */
.menu-horizontal-tab-btn.active {
    color: #3182ce;
    border-bottom-color: #3182ce;
}

/* Контент табов */
.menu-horizontal-tab-content {
    display: none; /* Скрыты по умолчанию */
}

.menu-horizontal-tab-content.active {
    display: flex; /* Показывается только активный */
}

/* Контейнер для поля поиска */
.menu-horizontal-search-wrapper {
    padding: 10px;
    width: 140px;
   position: absolute;
top: -7px;
}

/* Стили самого инпута */
#menu-horizontal-live-search {
    width: 100%;
    padding: 5px 12px;
    font-size: 13px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    outline: none;
    background-color: #f7fafc;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

/* Фокус на инпуте */
#menu-horizontal-live-search:focus {
    border-color: #3182ce;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* меню горизонтал---------------------------------------------------------------конец */






/* Контейнер ленты историй---------------------------------------------------------------начало */
/* Новый родительский контейнер */
.timeline-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Ваша текущая лента с небольшими улучшениями для стабильности */
.timeline { 
  display: flex; 
  gap: 16px; 
  padding: 12px 16px; 
  background: #ffffff; 
  border: 1px solid #dbdbdb; 
  border-radius: 12px; 
  width: 100%; 
  margin-bottom: 10px;  
  
  /* ИСПРАВЛЕНИЕ: Прячем системный скролл, но оставляем скролл-режим для скрипта */
  overflow-x: hidden; 
  overflow-y: hidden;
  
  white-space: nowrap; 
  box-shrink: 0;
  box-sizing: border-box; 
  scroll-behavior: smooth; /* Плавный скролл для кнопок-стрелок */
  
  /* Убираем выделение текста и картинок при перетаскивании мышкой */
  user-select: none;
  -webkit-user-select: none;
}

.timeline::-webkit-scrollbar { display: none; }

.avatar-wrapper { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  cursor: pointer; 
  font-size: 11px; 
  color: #262626; 
  min-width: 68px; 
  flex-shrink: 0;           /* Запрещает аватаркам сжиматься */
}
.avatar-wrapper span { max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.ring { width: 64px; height: 64px; border-radius: 50%; padding: 2px; display: flex; justify-content: center; align-items: center; background: linear-gradient(45deg, #fff, #03079e, #5457bc); }
.avatar-wrapper.viewed .ring { background: #e2e2e2; }
.ring img { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }

/* ОБЩИЙ СТИЛЬ СТРЕЛОК НАВИГАЦИИ */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dbdbdb;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #262626;
  opacity: 0;
  visibility: hidden; /* По умолчанию скрыты, JS включит при необходимости */
  transition: opacity 0.2s ease, visibility 0.2s;
}

.nav-btn:hover {
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-left { left: 8px; }
.btn-right { right: 8px; }

/* Класс, который JS будет давать кнопкам, когда они нужны */
.nav-btn.show {
  opacity: 1;
  visibility: visible;
}



    
    /* Окно попап-плеера */
    .popup { position: fixed; inset: 0; background: #1a1a1a; z-index: 2000; display: none; justify-content: center; align-items: center; touch-action: none; }
    .popup.open { display: flex; }
    .story-box { position: relative; width: 100%; max-width: 420px; height: 100%; background-color: #000; overflow: hidden; }
    @media (min-width: 426px) { .story-box { border-radius: 16px; height: 92vh; box-shadow: 0 10px 40px rgba(0,0,0,0.6); } }
    
    /* Линии времени */
    .progress-bars { position: absolute; top: 12px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 10; }
    .track { flex: 1; height: 2px; background: rgba(255, 255, 255, 0.35); border-radius: 2px; overflow: hidden; }
.fill { 
  height: 100%; 
  width: 0%; /* По умолчанию полоса пустая */
  background: #ffffff; 
  border-radius: 2px; 
  transform-origin: left;
  transition: none; /* Никаких анимаций до команды старта */
}

/* Включается только тогда, когда контент РЕАЛЬНО загружен и готов */
.fill.active { 
  width: var(--progress, 0%); 
  transition: width var(--duration, 0ms) linear; 
}

/* Когда история полностью просмотрена */
.fill.completed { 
  width: 100% !important;
  transition: none !important; 
}


    
    /* Верхняя панель */
    .story-header { position: absolute; top: 24px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; color: #fff; z-index: 10; font-size: 14px; font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,0.6); }
    .user-block { display: flex; align-items: center; gap: 8px; }
    .story-header img { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); object-fit: cover; }
    
    .header-actions { display: flex; align-items: center; gap: 12px; }

    .icon-btn { background: none; border: none; color: #fff; cursor: pointer; padding: 4px; line-height: 1; display: flex; align-items: center; justify-content: center; }
    .icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
    .close-btn { font-size: 32px; padding: 0; margin-top: -4px; opacity: 0.8; }
    
    #volumeBtn { display: none; }
    #volumeBtn.visible { display: block; }

      /* Пример для кнопок управления. Убедитесь, что у кнопок есть эти стили */
#volumeBtn, #likeBtn, .close-btn, #storyTimeInfo {
  position: relative; /* или absolute, смотря как они у вас сверстаны */
  z-index: 11 !important; /* Поднимаем кнопки НАД зонами навигации */
  pointer-events: auto !important; /* Разрешаем клики */
}

      
    /* Слайды и интерактив */
    .slide { width: 100%; height: 100%; display: none; justify-content: center; align-items: center; color: #fff; font-size: 24px; font-weight: bold; text-align: center; padding: 0px; box-sizing: border-box; }
    .slide.active { display: flex; }
   /*.slide img, .slide video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }*/
     .slide img, .slide video { max-width: 100%; max-height: 100%;  box-shadow: 0 4px 24px rgba(0,0,0,0.5);object-fit: contain; }

      
    .tap-zone { position: absolute; top: 0; bottom: 60px; z-index: 5; cursor: pointer; }
    .zone-left { left: 0; width: 25%; }
    .zone-right { right: 0; width: 75%; }

    /* Лайки */
    .story-footer { position: absolute; bottom: 0; left: 0; right: 0; height: 60px; display: flex; justify-content: flex-end; align-items: center; padding-right: 20px; z-index: 15; background: linear-gradient(transparent, rgba(0,0,0,0.4)); }
    .like-btn { background: none; border: none; cursor: pointer; padding: 10px; outline: none; }
    .like-btn svg { width: 28px; height: 28px; fill: none; stroke: #ffffff; stroke-width: 2; transition: transform 0.2s, fill 0.2s; }
    .like-btn.liked svg { fill: #ff3040; stroke: #ff3040; transform: scale(1.2); }


/* Контейнер ленты историй — и меню топ---------------------------------------------------------------конец */







