@charset "UTF-8";

/* ******************************* */
/* Типовой шаблон #3               */
/* v20221020                       */
/* ВЕБ-МАСТЕРСКАЯ.БЕЛ              */
/* ******************************* */

*:focus {outline: none; }

html {font-size: 18px;}
body {background: #f8f8f8;font-family: "Fira Sans Condensed", Arial, sans-serif;font-size: 1em;line-height: 1.4;}

#body_bg {background: url("/files/02174/img/bg_pattern.png") repeat;/* background-size: cover; */position: fixed;top: 0;left: 0;right: 0;bottom: 0;z-index: -100;}


a {color: #f04a3f;text-decoration: underline;}
a:hover, a:focus {color: #ff5722;}
a:visited {color: #333; }


#top_bar {min-height: 32px; padding: 5px 0 5px; }

/* ==========================================================================
   КОМПАКТНАЯ И ЧЕТКАЯ КАРТОЧКА КОНТАКТОВ (ИСПРАВЛЕНО ВЫРАВНИВАНИЕ)
   ========================================================================== */
#header {
    background-color: rgba(255, 255, 255, 0.85) !important;
    padding: 15px 0 20px !important; /* Уменьшили паддинги шапки */
    position: relative;
}

#header .info {
    text-align: right;
    height: 100%;
    position: relative;
    width: 100%;
}

#header .contacts {
    display: inline-block !important;
    font-size: 0.85em;
    color: #333333 !important;
    font-weight: 500 !important;
    text-align: left !important;
    line-height: 1.8 !important;
    order: 1 !important;
    white-space: nowrap !important; /* ЖЕСТКИЙ ЗАПРЕТ: запрещает любые переносы текста на десктопе */
}


/* Обычный текст и блоки внутри контактов */
#header .contacts > div {
    margin-bottom: 6px !important; /* Небольшой фиксированный отступ между строками */
    line-height: 1.4 !important;
    display: flex !important; /* Флекс только для строки, чтобы иконка и текст были на одной линии */
    align-items: center !important; /* Выравнивание иконки строго по центру текста */
}
#header .contacts > div:last-child {
    margin-bottom: 0 !important;
}

/* Стилизация ссылок */
#header .contacts a {
    text-decoration: none !important; 
    color: #b70f03 !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

#header .contacts a:hover {
    color: #b70f03 !important;
    text-decoration: underline !important;
}

/* Иконки FontAwesome теперь стоят идеально */
#header .contacts i {
    display: inline-block !important;
    width: 20px !important; /* Фиксированная база, чтобы текст шел по линейке */
    text-align: left !important;
    color: #b70f03 !important;
    font-size: 13px !important;
    margin-right: 6px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important; /* Защита иконки от сжатия */
}

@media only screen and (min-width: 992px){
	#header > .container {display: flex; }
	
	#header .info {
        text-align: right;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        width: 100%;
        flex-wrap: wrap;
    }
	#header .contacts {
        text-align: left !important;
        min-width: 260px !important;
        background: rgba(0, 0, 0, 0.02) !important;
        padding: 8px 12px !important; /* Сжали карточку по высоте, убрав лишний воздух */
        border-left: 3px solid #b70f03 !important;
        border-radius: 0 8px 8px 0 !important;
        margin-top: 5px !important;
    }
}

#logo {position: relative;display: inline-flex;align-items: center;}
#logo .emblem {display: inline-block;margin-right: 30px;width: 140px;height: 140px;text-align: center;line-height: 140px;}
#logo img {max-width: 100%;display: inline-block;}


#logo .content {
  color: #b70f03;
  display: inline-block;
  text-align: left;       /* ← выравнивание по левому краю */
  padding: 10px 15px;
}

#logo .content p {
  margin: 0 0 5px;        /* убран auto по горизонтали */
  font-size: 1em;
  line-height: 1.25em;
  color: #b70f03;
  font-weight: 400;
}

#logo .title {
  display: block;
  font-size: 1.8em;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #b70f03;
}


@media only screen and (max-width: 767px) {
	#header {padding: 0 0 30px;}
	
	#logo {text-align: center; display: block; }
	#logo .emblem {width: 90px;margin: 15px auto 15px;height: auto;line-height: inherit;}
	#logo .content {display: block; }

	#header .contacts {display: none;}

	#header .info {text-align: center;margin-top: 20px;}
	#header .mod_buttons {margin-bottom: 0;}
}



#date_time {font-size: 0.85em; color: #175a97; }

.mod_buttons {position: relative;z-index: 10;margin: 0 auto 20px;flex: 100%;width: 100%;}
.mod_buttons img {max-height: 24px; }
.mod_buttons a {opacity: 0.7;text-decoration: none;cursor: pointer;font-weight: 500;} 
.mod_buttons a:hover {opacity: 1; }

.mod_buttons .wep_toggle {margin-right: 30px;}
.mod_buttons .wep_toggle span {display: inline-block;vertical-align: middle;font-size: 21px;}

.lng_select a + a {margin-left: 5px;}






#main_menu {clear: both;min-height: 40px;font-weight: normal;border-top: 5px solid #eeeeee;background: #fff;position: sticky;top: -2px;z-index: 100;backdrop-filter: blur(2px);}
#main_menu ul {list-style-type: none; padding: 0; margin: 0; }
#main_menu li {display: block; position: relative; }
#main_menu a {display: block;padding: 0 15px;position: relative;color: #222;text-decoration: none;}
#main_menu a span {display: inline-block;line-height: 1.1em;}

#main_menu .level_0 > li {display: inline-block;line-height: 46px;border-top: 5px solid #f44336;vertical-align: top;padding: 5px;}
#main_menu .level_0 > li:nth-child(2n+2) {border-color: #4CAF50;}
#main_menu .level_0 > li:nth-child(3n+3) {border-color: #FFC107;}
#main_menu .level_0 > li:nth-child(4n+4) {border-color: #9C27B0;}
#main_menu .level_0 > li:nth-child(5n+5) {border-color: #8BC34A;}
#main_menu .level_0 > li:nth-child(6n+6) {border-color: #03A9F4;}


#main_menu .level_0 > .active,
#main_menu .level_0 > li.parent_active:not(:first-of-type) {/* background-color: #ffc107; */}
#main_menu .level_0 > li a {border-radius: 6px;} 

#main_menu .level_1 {}
#main_menu .level_1 > li {}
#main_menu .level_1 > li a {border-radius: 5px;padding-top: 5px;padding-bottom: 5px;line-height: initial;} 


/* ==========================================================================
   ИСПРАВЛЕННОЕ ГЛАВНОЕ МЕНЮ (СТИЛЬ AIR GLASS & CAPSULE)
   ========================================================================== */

#main_menu {
    clear: both !important;
    min-height: 48px !important;
    font-weight: 500 !important; /* Текст чуть плотнее для лучшей читаемости */
    background: rgba(255, 255, 255, 0.92) !important; /* Полупрозрачный белый */
    border-top: none !important; /* Убираем старую серую толстую рамку */
    border-bottom: 1px solid #e3e3e3 !important; /* Тонкая стильная линия разделения */
    position: sticky !important;
    top: -2px !important;
    z-index: 1000 !important;
    backdrop-filter: blur(8px) !important; /* Эффект матового стекла при скролле */
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

#main_menu ul {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#main_menu li {
    display: block !important;
    position: relative !important;
}

#main_menu a {
    display: block !important;
    padding: 0 16px !important;
    position: relative !important;
    color: #333333 !important; /* Благородный темный цвет текста */
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
}

#main_menu a span {
    display: inline-block !important;
    line-height: 1.1em !important;
}

/* Пункты меню первого уровня */
#main_menu .level_0 > li {
    display: inline-block !important;
    vertical-align: top !important;
    padding: 4px 2px !important; /* Отступы вокруг капсул */
    border-top: none !important; /* Полностью убираем старые разноцветные рамки */
}

/* Переносим высоту строки на ссылку, чтобы капсула была ровной */
#main_menu .level_0 > li > a {
    line-height: 40px !important;
    border-radius: 20px !important; /* Скругление в аккуратную капсулу */
}

/* Элегантный капсульный ховер и активные состояния */
#main_menu .level_0 > li:hover > a,
#main_menu .level_0 > li.active > a,
#main_menu .level_0 > li.parent_active > a {
    background: rgba(255, 85, 0, 0.06) !important; /* Нежный оранжевый фон плашки */
    color: #ff5500 !important; /* Фирменный оранжевый текст */
}

/* Выпадающее меню второго уровня (level_1) — АДАПТАЦИЯ ПОД ЦВЕТА ПОЛИКЛИНИКИ */
#main_menu ul .level_1 {
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(8px) !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 280px !important;
    padding: 8px !important;
    background: #ffffff !important; 
    z-index: 1000 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(183, 15, 3, 0.08) !important; /* Тонкая рамка с оттенком бордового */
    box-shadow: 0 10px 30px rgba(183, 15, 3, 0.06) !important; /* Мягкая благородная тень */
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
}

/* Выпадающее меню ТРЕТЬЕГО уровня (отделения) */
#main_menu ul ul ul {
    display: block !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(-8px) !important;
    position: absolute !important;
    top: -8px !important;
    left: 100% !important;
    margin-left: 2px !important;
    min-width: 260px !important;
    padding: 8px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(183, 15, 3, 0.08) !important;
    box-shadow: 0 10px 30px rgba(183, 15, 3, 0.06) !important;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease !important;
}

/* Ховер и активные пункты на главном уровне (капсулы) */
#main_menu .level_0 > li:hover > a,
#main_menu .level_0 > li.active > a,
#main_menu .level_0 > li.parent_active > a {
    background: rgba(183, 15, 3, 0.06) !important; /* Нежная бордовая полупрозрачная плашка */
    color: #b70f03 !important; /* Фирменный бордовый текст из логотипа */
}

#main_menu .level_1 > li {
    margin-bottom: 2px !important;
    position: relative !important;
}
#main_menu .level_1 > li:last-child {
    margin-bottom: 0 !important;
}

#main_menu .level_1 li a {
    border-radius: 8px !important;
    padding: 10px 14px !important;
    line-height: 1.3 !important;
    font-size: 0.9rem !important;
    color: #444444 !important;
}

/* Ховер внутри выпадающего списка — ТЕПЕРЬ СТРОГИЙ БОРДОВЫЙ */
#main_menu .level_1 li:hover > a {
    background: #b70f03 !important; /* Глубокий медицинский бордовый цвет */
    color: #ffffff !important;
}

/* Логика отображения и ховеров на десктопах */
@media screen and (min-width: 768px) {
    #main_menu .parent > a {
        padding-right: 28px !important;
    }
    
    /* Символ » для внутренних подменю */
    #main_menu .parent > a:after {
        display: inline-block !important;
        content: '\00BB' !important;
        position: absolute !important;
        right: 12px !important;
        color: inherit !important;
        font-size: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        line-height: 1 !important;
    }
    
    /* Стрелочка вниз для первого уровня */
    #main_menu .level_0 > .parent > a:after {
        content: '▾' !important;
        font-size: 11px !important;
    }

    /* Появление блоков */
    #main_menu .level_0 > .parent:hover > ul {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    #main_menu .level_1 > li.parent:hover > ul {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(0) !important;
    }
    
    #main_menu .level_0 {
        display: block !important;
        margin-top: 0 !important;
    }

    /* Иконка "Домик" — ИСПРАВЛЕНО СКРЫТИЕ ТЕКСТА И ФОРМА КАПСУЛЫ */
    #main_menu .level_0 > li:first-child {
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        padding: 4px 6px !important; /* Центрируем круглую кнопку в общей строке */
    }
    #main_menu .level_0 > li:first-child > a {
        padding: 0 !important; /* Сбрасываем боковые паддинги ссылки */
        width: 40px !important; /* Фиксированная ширина */
        height: 40px !important; /* Фиксированная высота */
        line-height: 40px !important;
        text-align: center !important;
        border-radius: 50% !important; /* Превращаем овальную капсулу в идеальный круг */
        display: inline-block !important;
    }
    /* Абсолютное скрытие слова "Главная" для CMS */
    #main_menu .level_0 > li:first-child > a span {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
    }
    #main_menu .level_0 > li:first-child > a:before {
        display: inline-block !important;
        font-family: "FontAwesome" !important;
        vertical-align: middle !important;
        content: "\f015" !important;
        font-size: 18px !important; /* Чуть уменьшили, чтобы домик смотрелся изящно */
        line-height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   АДАПТИВНОЕ МОБИЛЬНОЕ МЕНЮ
   ========================================================================== */
@media screen and (max-width: 767px) {
    body {
        padding-top: 40px !important;
    }
    
    #main_menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: auto !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        border: none !important;
        background: rgba(255, 255, 255, 0.96) !important;
    }
    
    #main_menu > .container {
        padding: 0 !important;
    }
    
    #main_menu_mobile {
        position: relative !important;
        line-height: 42px !important;
    }
    
    #menu_toggle {
        float: left !important;
        height: 42px !important;
        width: 42px !important;
        border-radius: 0 0 10px 0 !important;
        padding: 0 !important;
    }
    
    #main_menu .level_0 {
        display: none; /* Управляется встроенным JS-скриптом шаблона */
    }
    
    #main_menu .level_0 > li {
        display: block !important;
        height: auto !important;
        border-top: none !important;
        padding: 0 !important;
    }
    
    #main_menu .level_0 > li > a {
        font-weight: bold !important;
        line-height: 2.4em !important;
        border-radius: 0 !important;
    }
    
    #main_menu .level_0 ul {
        display: block !important;
        position: static !important;
        clear: both !important;
        padding: 0 15px 15px 20px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }
    
    #main_menu .level_1 li {
        display: inline-block !important;
    }
    #main_menu .level_1 li.parent {
        display: block !important;
    }
    #main_menu .level_1 li a {
        display: inline-block !important;
        padding: 5px 10px !important;
        color: #444444 !important;
    }
    
    #main_menu a:hover {
        background: #EDC067 !important; /* Возвращаем родной цвет ховера мобильного шаблона */
    }
}


#hot_links {text-align: center;padding: 0 0 30px;overflow: hidden;}
#hot_links .wrapper {padding: 0;float: none;flex-shrink: 0;}
#hot_links .item {text-align: center;border-radius: 3px;color: #000;padding: 10px;font-weight: bold;margin: 0 auto 15px;word-break: break-word;}
#hot_links .item .preview {/* height: 128px; *//* line-height: 128px; */margin-bottom: 15px;}
#hot_links .item img {max-height: 128px; display: inline-block;}
#hot_links .item:hover {background-color: #DCB15D;z-index: 1;}
#hot_links .item:hover a {color: inherit; text-decoration: none; }





.hot_contacts {padding: 0 0 45px;}
.hot_contacts a {display: inline-block;}

@media only screen and (max-width: 767px) {
	.hot_contacts {text-align: center;}
}




/* **************************** */
/* Контент на главной странице  */
/* **************************** */

/* === ОБНОВЛЕННЫЙ СЛАЙДЕР НА ГЛАВНОЙ === */

#main_slider {
    margin-bottom: 30px;
    border-radius: 0px; /* Убираем скругления, чтобы слайдер встал встык с сеткой сайта */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Делаем тень более мягкой */
    position: relative;
    border: 1px solid #e3e3e3; /* Легкая рамка в тон остальных блоков */
}

#main_slider .item {
    background-color: #f5f5f5;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-bottom: 44%;
    position: relative;
}

/* Строгая подпись снизу без глубокого затемнения всего слайда */
#main_slider .content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    /* Градиент покороче, чтобы не затемнять фотографии корпусов */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 70%, transparent 100%);
    color: #ffffff;
    padding: 30px 20px 15px;
    font-size: 1rem;
    box-sizing: border-box;
}

#main_slider h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

#main_slider p {
    margin: 0;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

#main_slider a {
    color: inherit;
    text-decoration: none;
}

/* === АККУРАТНЫЕ СТРЕЛКИ НАВИГАЦИИ === */

/* Перезаписываем стандартные полупрозрачные стрелки Bootstrap */
#main_slider .carousel-control-prev,
#main_slider .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.3); /* Темная подложка, чтобы стрелки читались на зимних/светлых фото */
    border: none;
    border-radius: 0px; /* Убираем круги, делаем строгие квадраты под стиль меню */
    opacity: 0; /* Прячем на десктопе до наведения */
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
}

/* Появление при наведении на слайдер */
#main_slider:hover .carousel-control-prev,
#main_slider:hover .carousel-control-next {
    opacity: 1;
}

#main_slider .carousel-control-prev { left: 0; }
#main_slider .carousel-control-next { right: 0; }

/* Эффект при наведении на саму стрелку */
#main_slider .carousel-control-prev:hover,
#main_slider .carousel-control-next:hover {
    background: #ff5500; /* Подсвечиваем фирменным оранжевым цветом поликлиники */
    opacity: 1;
}

/* Заменяем дефолтные серые иконки на чистые белые стрелочки через SVG */
#main_slider .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://w3.org' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
    width: 16px;
    height: 16px;
}

#main_slider .carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://w3.org' fill='%23fff' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
    width: 16px;
    height: 16px;
}

/* === ИСПРАВЛЕННЫЕ ТОЧКИ-ИНДИКАТОРЫ === */

#main_slider .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 10;
    align-items: center; /* Выравниваем точки по центру, чтобы активная не прыгала вниз */
    height: 12px;
}

#main_slider .carousel-indicators {
    align-items: center !important;
    height: 12px !important;
}
#main_slider .carousel-indicators li {
    box-sizing: border-box !important;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.2);
    margin: 0;
    transition: all 0.2s ease;
    cursor: pointer;
}
/* Исправляем баг: меняем цвет фона и убираем смещение */
#main_slider .carousel-indicators li.active {
    background-color: #ff5500; /* Перекрашиваем из бордового в ваш фирменный оранжевый */
    border-color: #ff5500;
    transform: scale(1.2); /* Увеличиваем пропорционально во все стороны без смещения оси */
}

#main_slider .carousel-indicators li:hover {
    background-color: #ffffff;
    border-color: #ff5500;
}

/* === МОБИЛЬНАЯ ВЕРСИЯ === */

@media screen and (max-width: 767px) {
    #main_slider {
        margin-bottom: 20px;
        border: none;
    }
    
    #main_slider .item {
        padding-bottom: 60%; /* На мобильных слайд становится чуть повыше */
    }
    
    #main_slider .content {
        padding: 25px 15px 10px;
        font-size: 0.85rem;
    }
    
    /* На мобильных стрелки всегда видны на полупрозрачной подложке */
    #main_slider .carousel-control-prev,
    #main_slider .carousel-control-next {
        width: 36px;
        height: 36px;
        opacity: 0.8;
    }
    
    #main_slider .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }
    
    #main_slider .carousel-indicators li {
        width: 8px;
        height: 8px;
    }
}

/* слайдер баннеров */
#banners_slider {padding: 0; }
#banners_slider .item {margin: 5px;height: 64px;line-height:  64px;}
#banners_slider .item img {max-width:  100%;width: auto;max-height:  64px;height: auto;display: inline-block;}



/* ==========================================================================
   ОБНОВЛЕННЫЕ ПОСЛЕДНИЕ НОВОСТИ ПОЛИКЛИНИКИ
   ========================================================================== */
/* ==========================================================================
   ФИНАЛЬНЫЙ СТАБИЛЬНЫЙ ВАРИАНТ ДЛЯ ЛЕНТЫ НОВОСТЕЙ (БЕЗ СТУПЕНЕК)
   ========================================================================== */

/* Общий контейнер */
.hot_news {
    display: block !important;
    clear: both !important;
    width: 100% !important;
    text-align: left !important; /* Базовое выравнивание для внутренних блоков */
}

/* Контейнер ряда */
.hot_news .row {
    padding: 0 !important;
    margin: 0 -10px !important; /* Компенсируем боковые отступы карточек */
    display: block !important;
    clear: both !important;
    font-size: 0 !important; /* Убираем микро-отступы между inline-block элементами */
}

/* Обертка карточки от CMS (блок .w) — превращаем в ровные ячейки */
.hot_news .w {
    display: inline-block !important;
    vertical-align: top !important; /* Выравнивание по верхней границе ряда */
    width: 33.333% !important; /* Ровно треть ширины экрана */
    padding: 0 10px !important; /* Одинаковое расстояние (gap) между карточками */
    margin: 0 0 20px 0 !important; /* Отступ между рядами */
    box-sizing: border-box !important;
    float: none !important; /* Гарантированно отключаем старые флоаты */
}

/* Сама карточка новости */
.hot_news .item {
    clear: both !important;
    overflow: hidden !important;
    padding: 15px 15px 65px 15px !important; /* Нижний отступ под кнопку */
    background: #ffffff !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 4px !important;
    
    /* ИЗМЕНЕНО: Уменьшили общую высоту с 440px до 425px, чтобы убрать лишнее пустое пространство */
    height: 375px !important; 
    
    position: relative !important; /* База для кнопки */
    box-sizing: border-box !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03) !important;
    font-size: 1rem !important; /* Возвращаем нормальный размер шрифта для текста */
    transition: all 0.25s ease-in-out !important;
}

/* Эффект при наведении на карточку */
.hot_news .item:hover {
    border-color: #f14a3e !important;
    box-shadow: 0 5px 15px rgba(241, 74, 62, 0.08) !important;
    transform: translateY(-2px) !important;
}

/* Заголовок новости */
.hot_news h3 {
    margin: 0 0 8px !important;
    font-size: 1.05rem !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
    height: 2.6em !important; /* Ограничиваем высоту заголовка под две строки текста */
    overflow: hidden !important; /* Прячем текст, если он длиннее */
}
.hot_news h3 a {
    color: #222222 !important;
    text-decoration: none !important;
}
.hot_news .item:hover h3 a {
    color: #f14a3e !important;
}

/* Дата публикации */
.hot_news .date {
    margin-bottom: 10px !important;
    font-size: 0.8rem !important;
    color: #888888 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Превью-картинка новости */
.hot_news .preview {
    display: block !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    
    /* ИЗМЕНЕНО: Увеличили с 55% до 62% (картинка стала более вытянутой по вертикали) */
    padding-bottom: 78% !important; 
    
    margin: 0 -15px 12px -15px !important; /* Картинка ложится в края */
    border-radius: 0 !important;
}

/* Текстовый анонс */
.hot_news .anno {
    font-size: 0.85rem !important;
    color: #555555 !important;
    line-height: 1.4 !important;
    
    /* ИЗМЕНЕНО: Увеличили вместимость до 4 строк (было 4.2em / 3 строки), чтобы текст занимал полезную площадь */
    height: 5.6em !important; 
    overflow: hidden !important; /* Обрезаем лишнее, чтобы текст не вылазил на кнопку */
}

/* Фиксация оранжевой кнопки "Подробнее..." строго на своем месте */
.hot_news .read_more {
    position: absolute !important;
    bottom: 15px !important;
    left: 15px !important;
    right: 15px !important;
    display: block !important;
    padding: 10px 15px !important;
    background: linear-gradient(to right, #ff7b00, #ff5500) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    text-decoration: none !important;
    font-weight: bold !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 6px rgba(255, 85, 0, 0.2) !important;
    box-sizing: border-box !important;
}

.hot_news .read_more:hover {
    opacity: 0.9 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Ссылка "Все новости" в самом низу */
.hot_news .more_news {
    text-align: right !important;
    margin-top: 15px !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
}
.hot_news .more_news a {
    color: #f14a3e !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
}

/* АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ */
@media screen and (max-width: 991px) {
    .hot_news .w {
        width: 50% !important; /* По две в ряд на планшетах */
    }
    .hot_news .item {
        /* ИЗМЕНЕНО: Пропорционально скорректировано под новые размеры (было 460px) */
        height: 445px !important; 
    }
}

@media screen and (max-width: 767px) {
    .hot_news .w {
        width: 100% !important; /* По одной на смартфонах */
        padding: 0 !important;
    }
    .hot_news .item {
        height: auto !important; /* Убираем жесткую высоту на мобильных */
        padding-bottom: 60px !important;
    }
    .hot_news h3, .hot_news .anno {
        height: auto !important; /* Снимаем ограничения под скролл на мобильном */
    }
}

/* ==========================================================================
   ФИНАЛЬНАЯ СЕТКА БАННЕРОВ 3х3 ЧЕРЕЗ СТИЛИ САЙТА (БЕЗ ОШИБОК XSLT)
   ========================================================================== */

#hot_links {
    text-align: left !important;
    padding: 0 0 30px !important;
    overflow: hidden !important;
    display: block !important;
    clear: both !important;
    width: 100% !important;
}

#hot_links .row {
    display: block !important;
    clear: both !important;
    margin: 0 -10px !important;
    padding: 0 !important;
    font-size: 0 !important;
}

/* Нацеливаемся на классы из родного шаблона CMS */
#hot_links .wrapper {
    display: inline-block !important;
    vertical-align: top !important;
    width: 33.333% !important; /* Ровно 3 плитки в ряд */
    padding: 0 10px !important;
    margin: 0 0 25px 0 !important;
    box-sizing: border-box !important;
    float: none !important;
    flex-shrink: 0 !important;
}

#hot_links .item {
    text-align: center !important;
    border-radius: 4px !important;
    background-color: #ffffff !important; /* Убиваем горчичный цвет раз и навсегда */
    border: 1px solid #e3e3e3 !important;
    padding: 15px 10px !important;
    margin: 0 auto !important;
    word-break: break-word !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02) !important;
    height: 220px !important; /* Идеальное выравнивание по высоте */
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 1rem !important;
    transition: all 0.25s ease-in-out !important;
}

#hot_links .item a {
    color: #222222 !important;
    text-decoration: none !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
}

#hot_links .item .preview {
    margin: 0 0 10px 0 !important;
    height: 110px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    float: none !important;
}

#hot_links .item img {
    max-height: 110px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: inline-block !important;
    border-radius: 0px !important;
    object-fit: contain !important; /* Сжимает широкий зеленый баннер внутрь рамки */
}

#hot_links .item .content {
    font-size: 0.9rem !important;
    color: #222222 !important;
    line-height: 1.3 !important;
    margin-top: auto !important;
    font-weight: bold !important;
    height: 2.6em !important; /* Защита заголовка от вылезания */
    overflow: hidden !important;
}

/* Красивый ховер без горчичного цвета */
#hot_links .item:hover {
    background-color: #ffffff !important;
    border-color: #ff5500 !important;
    box-shadow: 0 5px 15px rgba(255, 85, 0, 0.08) !important;
    transform: translateY(-2px) !important;
}

#hot_links .item:hover .content {
    color: #ff5500 !important;
    text-decoration: underline !important;
}

/* Адаптивность под мобильные телефоны */
@media screen and (max-width: 767px) {
    #hot_links .wrapper {
        width: 100% !important;
        padding: 0 !important;
    }
    #hot_links .item {
        height: auto !important;
    }
}



/* объявления */
.announcements {margin-bottom: 30px;overflow: hidden;background: #f5f5f5;clear: both;}
.announcements .item {padding: 0;}
.announcements .item:not(:first-of-type) {margin-top: 15px; border-top: dashed 2px #ccc; }



/* RSS-новости на главной */
.rss_news {}
.rss_news .item {font-size: 0.85em; color: #555; }



#body {clear: both; }

		
/* **************************** */
/* Контент на обычных страницах */
/* **************************** */


/* Основное содержание страницы */
#body_content {margin: 17px auto 23px;padding: 18px 18px 20px;background: #fff;border-radius: 10px;}
#body_content_wrapper {padding-left: 0;margin-bottom: 30px;}



@media only screen and (max-width: 768px) {
	#body_content_wrapper {padding-right: 0; }
}

h1,	h2,	h3,	h4,	h5,	h6,
.panel-heading {line-height: 1.2em;margin-bottom: 15px;}

h1 {color: #f14a3e;padding: 0;font-size: 36px;font-weight: 500;margin: 0 auto 15px;}
h2 {font-size: 30px; margin: 0 auto 15px;}
h3 {font-size: 24px; margin: 0 auto 15px;}

.section_heading {padding: 0 0 5px;display: block;margin: 0 auto 20px;color: #f14a3e;font-size: 1.6em;font-weight: 500;position: relative;}
.section_heading:after {top: 100%;display: block;left: 0;width: 120px;height: 4px;background: #8cc152;content: "";position: absolute;}



.breadcrumbs {border: 1px solid #eee;margin-bottom: 15px;padding: 8px 10px;border-radius: 5px;}

.entry {padding: 0 0 30px;overflow-x: auto;word-break: break-word;}
	
	.spoiler .preview {min-height: 80px; }
		.spoiler .preview img {display: inline-block; }
		
	.spoiler .anno {overflow: hidden;}
	.spoiler .content {display: none;clear: both;}
	#body_content .spoiler.entry:not(:last-of-type) {margin-bottom: 15px; border-bottom: dashed 2px #ccc; }
	.spoiler .content .button {margin: 15px 0 0; }


@media only screen and (max-width: 768px) {
	.spoiler .preview {margin-bottom: 15px; text-align: center; }
	.spoiler .anno {clear: both; overflow: initial; }
}


#body_content iframe {max-width: 100%; }
#body_content img {max-width: 100%; height: auto; }	

img[align="left"] {margin: 5px 10px 5px 0; }
img[align="right"] {margin: 5px 0 5px 10px; }






.page_share_buttons {margin-top: 45px; margin-bottom: -15px; }




/* Боковая колонка */
#sidebar {padding-left: 0; padding-right: 0; }
#sidebar .panel {margin: 0 0 15px 0;}

#sidebar ul,
.cool_list {list-style-type: none; list-style: none; margin: 0px; padding: 0px;	}

#sidebar ul li,
.cool_list li {padding: 2px 0 2px 12px;background: url("/files/00034/img/list.png") 0 10px no-repeat;}


.section_menu li {display: none; }
.section_menu a {color: #333;text-decoration: none;}
.section_menu a:hover {color: #ff5722;text-decoration: underline;}

/*
.section_menu .level_0 > li,
.section_menu .level_1 > li {display: block; }
*/

.section_menu .parent_active,
.section_menu .parent_active > ul,
.section_menu .parent_active > li,
.section_menu .active,
.section_menu .parent.active > ul > li {display: block; }



/* поле поиска */
.search_field {border: 1px solid #ccc;text-align: left;padding: 10px 40px 10px 10px;margin-bottom: 15px;border-radius: 5px;position: relative;overflow: hidden;}
.search_form {line-height: 1em; }
.search_form input[type="search"] {background: none; color: #979797; border: 0; width: 100%; padding: 0; margin: 0; outline: none; font-size: 0.9em; }

.search_field .button {position: absolute;top: 0;right: 0;bottom: 0;width: 40px;text-align: center;padding: 0;height: auto;border-radius: 0;}
.search_field .button:before {height: 1em; width: 1em; display: inline-block; position: absolute; top: 50%; left: 50%; margin-top: -.5em; margin-left: -.5em;}
.search_field .button:hover {color: #000 !important;}



/* Вариант 1: Современный минимализм с Zoom-эффектом */
.attention_block {
    overflow: hidden;
}
.attention_block .item {
    margin: 0 auto 15px !important;
    text-align: center !important;
    background: none !important; /* Никаких лишних белых коробок */
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    border-radius: 6px !important; /* Скругляем саму картинку */
    transition: transform 0.3s ease, filter 0.3s ease !important;
}
.attention_block img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    transition: all 0.3s ease !important;
}
/* При наведении баннер элегантно увеличивается внутри своей зоны */
.attention_block .item:hover {
    transform: scale(1.02) !important; 
    filter: brightness(1.05) !important; /* Становится чуть сочнее */
}



/* опросы на главной */
.poll_answers {margin-top: 5px; }

.poll_answers label {display: block; margin: 0; }
.poll_answers > span {display: block; clear: both; }
.poll_answers input {margin-right: 0.3em; }

.poll_submit button {margin-top: 10px; }

.poll_results {margin-top: 15px; font-size: .86em;}



/* ************************************** */
/* Архивы по датам (новости, фотогалереи) */
/* ************************************** */
.archive_header {margin: 1.5em 0 1em; }
.archive_header.item {overflow: hidden; padding: 15px 0; }
.archive_list .item {overflow: hidden; margin-bottom: 30px; }
.archive_list .item h3 {margin-top: 0;  }
.archive_list .item .preview {display: block; float: left; background-position: 50%; background-repeat: no-repeat; background-size: cover; width: 96px; height: 96px; margin-right: 15px; }


/* тип 3: настраиваемый */
.archive_header > span,
.archive_header > a
{display: inline-block; line-height: 32px; padding: 0 0.4em; margin-right: 0.3em; }

.archive_header > span	{font-weight: 600; background-color: #f5f5f5; }
.archive_header > a:hover {background-color: #f14a3e; }


/* тип 2: закладки */
.archive_header .MapTabs {border-bottom: solid 2px #f14a3e;}
.archive_header .MapTabs .tabSelect {background-color: #f14a3e;color: #fff;}
.archive_header .MapTabs span {display: inline-block; line-height: 32px; padding: 0 0.4em; margin-right: 0.3em; cursor: pointer; }

.archive_header .MapTabsBody {}
.archive_header .MapTabsBody > span {line-height: 32px; margin-right: 0.3em; }

.archive_header .MapTabsBody > span > span {display: inline-block;font-weight: 500;padding: 0 0.4em;background: #ee5045;color: #fff;}
.archive_header .MapTabsBody > span > a {display: inline-block; text-decoration: underline; padding: 0 0.4em; }
.archive_header .MapTabsBody > span > a:hover {text-decoration: none; background-color: #f5f5f5; }

/* */



/* Фотогалереи */
.gallery {overflow: hidden; }
.gallery > .item {display: block; float: left; margin: 5px; position: relative; overflow: hidden; }
.gallery > .item > span {opacity: 0; position: absolute; bottom: 0; left: 0; right: 0; height: 22px; line-height: 22px; background: rgba(34, 101, 164, 0.75); color: #ccc; font-size: 14px; overflow: hidden; text-align: center;
transition: opacity 0.3s ease-in; }
.gallery > .item:hover > span {opacity: 1; }



/* карточка сотрудника, учащегося, вакансия, продукция и т.п. */
.item_card {overflow: hidden; padding: 15px 0; }
.item_card h3 {margin-top: 0; }
.item_card .preview {display: block; float: left; background-position: 50%; background-repeat: no-repeat; background-size: contain; width: 196px; height: 196px; margin-right: 15px; margin-bottom: 10px;}
.item_card .content {/* float: left; */}

@media (max-width: 520px) {
	.item_card .preview {float: none;} 
}

/* формы обратной связи */
.ww_form {list-style-type: square; padding: 15px; }
.ww_form li {padding: 15px 0; border-bottom: dotted 2px #ccc; clear: both; color: #f14a3e; }
.ww_form li > * {color: #333; }
.ww_form li:last-of-type {border-bottom: none; }

.ww_form label {display: block; margin: 0; }

.ww_form input[type="text"],
.ww_form input[type="email"],
.ww_form select,
.ww_form textarea {border: solid 2px #bbb; line-height: 1.6em;  }

.ww_form input[type="text"]:focus,
.ww_form input[type="email"]:focus,
.ww_form select:focus,
.ww_form textarea:focus {border-color: #2265A4; }

.ww_form input[type="text"],
.ww_form input[type="email"],
.ww_form select,
.ww_form textarea,
.ww_form .Captcha {width: 100%; font-size: 0.8em; max-width: 100%; padding: 0 0.2em; min-height: 28px; }


[data-bind="u"] {display: none; }
[field="captcha"] {display: block; width: 100%; clear: both; margin-top: 15px;  }


@media (min-width: 768px) {
	.ww_form input[type="text"],
	.ww_form input[type="email"],
	.ww_form select {min-width: 350px; width: 50%; }
}




/* блоки-панели */
.panel {border-radius: 5px;}
.panel-heading {background: #8bc34a;margin: 0 0 12px;padding: 10px;color: #fff;line-height: 1em;font-weight: normal;text-decoration: none;border-radius: 5px;border-bottom: 3px solid #529603;}
.panel-body {padding: 0 15px 15px;}
.panel-body ul,
.panel-body ol {padding-left: 1em; font-size: 0.9em;  }



.social_networks {}
.social_networks a {display: inline-block;width: 26px;height: 26px;line-height: 26px;color: inherit;font-size: 20px;text-align: center;opacity: .75;color: #000;}
.social_networks a:hover {opacity: 1; }



/* кнопки */
button, .button {color: #fff;background: #ff5722;padding: 8px 14px;font-size: .9em;line-height: 16px;display: inline-block;text-decoration: none;border: none;cursor: pointer;border-radius: 5px;}
button:hover, .button:hover {background: #ffc107;text-decoration: none;color: #000;}
a.button {color: #fff;}

button[disabled],
button.disabled,
.button.disabled {pointer-events: none; opacity: .5;}



.nav-tabs {clear: both;/* overflow: hidden; */text-align: left;margin: 0;padding: 0;}
.nav-tabs > li {display: inline-block;border: solid 1px transparent;line-height: 1.1em;vertical-align:  bottom;border-radius: 5px 5px 0 0;}
.nav-tabs > .active {background-color: #ff5722;color: #fff;}
.nav-tabs > li > a {color: inherit;display: block;line-height: 1.1em;padding: 5px 15px;text-decoration: none;border-radius: 5px;vertical-align: bottom;}
.nav-tabs > li > a:hover {background: #eee;}
.nav-tabs > .active > a {}
.nav-tabs > .active > a:hover {background: none;}


@media screen and (max-width: 991px) {
	.nav-tabs > li {display: block; clear: both; width: 100%; }
}

.tab-content {border-top: solid 2px #ff5722;padding: 15px 15px 30px;}




.pagination {text-align: center; display: block; margin: 15px 0; padding: 15px; font-weight: bold; }
.pagination span {border: solid 1px #ccc;display: inline-block;line-height: 26px;height: 28px;width: 28px;margin: 0 3px;padding: 0; overflow:  hidden;}
.pagination span:hover {background: #dcb15d; border-color: #dcb15d; color: #fff;}
.pagination span:hover a { }
.pagination .page_hidden {margin: 3px; background: none; }
.pagination span a {color: inherit; display: block; text-decoration: none; }
.pagination .page_current {border: solid 1px #2265a4;background: #2265a4;margin: 0 5px;color:  #fff;}






/* ****** */
/* Подвал */
/* ****** */
#footer {background: rgb(169 69 38 / 92%);padding: 0 0 25px;color: #fff;font-size: .9em;}
#footer a {color: inherit;text-decoration: none;}
#footer a:hover {text-decoration: underline;}
#footer_content {padding: 15px 0 15px;}


.fixed-footer {position: relative; min-height: 100vh; }
.fixed-footer #footer {position: absolute; left: 0; right: 0; bottom: 0; }


#copyrights {padding: 0 15px 0;}

#last_mod {margin-top: 5px;opacity: .5;font-size: .9em;}


/* mini-framework */
.container.row {padding-left: 0; padding-right: 0; margin-left: auto; margin-right: auto; }

.row-eq-height {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display:         flex;
  flex-wrap: wrap;
}




.popup_layer {display: block;text-align: center;position: fixed;top: 0;left: 0;right: 0;bottom: 0;background: rgba(0,0,0,.3);font-size: 0;z-index: 2100;}
.popup_layer:before {content: "";display: inline-block;width: 0;height: 100%;vertical-align: middle;}

.popup_layer .popup_window {display: inline-block;vertical-align: middle;width: 100%;font-size: 1rem;max-width: 600px;background: #fff;padding: 15px;position: relative;text-align: left;box-shadow: 0 2px 20px 4px rgba(0,0,0,.5);}
.popup_layer .popup_window .caption {margin: -15px -15px 15px;height: 40px;background: #f14a3e;position: relative;text-align: left;padding: 0 20px;line-height: 40px;}
.popup_layer .popup_window .caption .close {display: block;color: #fff;width: 30px;height: 30px;position: absolute;right: 5px;top: 5px;line-height: 30px;opacity: 1;font-weight: 400;text-align: center;}

.popup_layer .popup_window .title {/* text-align: center; */font-weight: 600;font-size: 1em;color: #fff;padding-right: 30px;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;}
.popup_layer .popup_window .content {padding: 5px 5px 5px;}





#scroll_up_button {position: fixed;bottom: 45px;right: 45px;display: none;width: 42px;height: 42px;font-size: 26px;line-height: 42px;opacity: 0.5;text-align: center;cursor: pointer;z-index: 999;padding: 0;}
#scroll_up_button:hover {opacity: 1; transition: opacity 0.5s ease; }




/* Красивые таблицы в содержании */
.tbl {
	border-collapse: collapse;
	border-spacing: 0;
	max-width: 100%;
	font-size: .9em;
}

.tbl tr {background: #fafafa;}
.tbl td {
	border: 1px solid #f44336;
	border-bottom-width: 1px;
	padding: 6px;
}

.tbl thead td,.tbl th {
	background: #f44336;
	color: #fff;
	border: 1px solid #f44336;
	padding: 8px 6px;
}

.tbl tr:hover {background: #fff;color: #000;}
.tbl tr:hover td:hover {background: #fff2f1;color: #000;}





/* GoogleTranslate hack */
body {top: 0 !important;}
#google_translate_element,
.skiptranslate,
.goog-te-banner-frame {display: none !important;}






/* === СНЕГ: КАЖДАЯ СНЕЖИНКА — УНИКАЛЬНА (CSS-only) === */

/*body::before,
body::after {
  content: "";
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 9999 !important;
}

/* Слой 1 — медленные, крупные, плавные */
/*body::before {
  background-image: 
    radial-gradient(circle, #ffffff 1.8px, transparent 1.8px),
    radial-gradient(circle, #ffffff 1.2px, transparent 1.2px);
  background-size: 180px 180px, 140px 140px;
  background-position: 20% 0%, 70% 0%;
  animation: fall-slow 24s linear infinite, sway-dance-1 12s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  opacity: 0.85;
}

/* Слой 2 — быстрые, мелкие, резкие */
/*body::after {
  background-image: 
    radial-gradient(circle, #ffffff 0.9px, transparent 0.9px),
    radial-gradient(circle, #ffffff 1.4px, transparent 1.4px);
  background-size: 100px 100px, 160px 160px;
  background-position: 40% 0%, 85% 0%;
  animation: fall-fast 18s linear infinite, sway-dance-2 9s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  opacity: 0.9;
}

@keyframes fall-slow { to { background-position: 20% 105vh, 70% 105vh; } }
@keyframes fall-fast { to { background-position: 40% 105vh, 85% 105vh; } }

@keyframes sway-dance-1 {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-18px) rotate(-8deg); }
  45% { transform: translateX(22px) rotate(10deg); }
  70% { transform: translateX(-14px) rotate(-6deg); }
}

@keyframes sway-dance-2 {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(16px) rotate(7deg); }
  50% { transform: translateX(-20px) rotate(-9deg); }
  75% { transform: translateX(12px) rotate(6deg); }
}*/

/* === УЛУЧШЕННЫЙ POPUP === */

/* Затемнённый фон с размытием */
.popup_layer {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px); /* Для Safari */
}

/* Белое окно — нормальный размер, как было */
.popup_layer .popup_window {
    display: inline-block !important;
    vertical-align: middle !important;
    width: 100% !important;
    max-width: 600px !important; /* ← Вернули оригинальный размер */
    font-size: 1rem !important;
    background: #fff !important;
    padding: 20px !important;
    position: relative !important;
    text-align: left !important;
    border-radius: 16px !important; /* Скруглённые углы */
    border: 1px solid rgba(0, 0, 0, 0.08) !important; /* Тонкая рамка */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important; /* Мягкая тень */
}

/* Скрываем красную шапку, но оставляем в DOM */
.popup_layer .popup_window .caption {
    background: transparent !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    position: relative !important;
}

/* Прячем текст заголовка */
.popup_layer .popup_window .caption .title {
    display: none !important;
}

/* Крестик — аккуратная кнопка */
.popup_layer .popup_window .caption .close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    display: block !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 30px !important;
    font-size: 20px !important;
    text-align: center !important;
    color: #999 !important;
    background: #f5f5f5 !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    z-index: 2200 !important;
    cursor: pointer !important;
    opacity: 0.85 !important;
    transition: all 0.2s ease !important;
}

.popup_layer .popup_window .caption .close:hover {
    color: #fff !important;
    background: #f14a3e !important;
    border-color: #f14a3e !important;
    opacity: 1 !important;
    transform: scale(1.1);
}

/* Контент внутри окна */
.popup_layer .popup_window .content {
    padding: 5px !important;
}

/* === МОБИЛЬНАЯ ВЕРСИЯ === */
@media screen and (max-width: 767px) {
    .popup_layer .popup_window {
        max-width: 92% !important; /* На телефоне — почти во весь экран, но с отступами */
        padding: 15px !important;
        border-radius: 12px !important;
        margin: 10px !important;
    }
    
    .popup_layer .popup_window .caption .close {
        top: 8px !important;
        right: 8px !important;
        width: 30px !important;
        height: 30px !important;
        line-height: 26px !important;
        font-size: 18px !important;
    }
}

/* ==========================================================================
   ОЧИСТКА САЙДБАРА: СКРЫВАЕМ НЕФУНКЦИОНАЛЬНЫЕ ЗЕЛЕНЫЕ БЛОКИ
   ========================================================================== */

/* Скрываем первые три зеленых блока в боковой колонке */
#sidebar .panel:nth-child(1),
#sidebar .panel:nth-child(2),
#sidebar .panel:nth-child(3) {
    display: none !important;
}

/* Форма поиска (если она встроена в первый блок и пропала — возвращаем её) */
#sidebar .search_field {
    display: block !important;
}

/* Оставляем блок "Обратите внимание" видимым и оформляем заголовок */
#sidebar .panel:nth-child(4) {
    display: block !important;
    margin-top: 0 !important;
}

/* Перекрашиваем оставшийся заголовок "Обратите внимание" в наш фирменный бордовый */
#sidebar .panel:nth-child(4) .panel-heading {
    background: #b70f03 !important; /* Родной бордовый цвет вместо зеленого */
    border-bottom: 3px solid #8e0b02 !important; /* Тёмно-бордовая линия снизу */
    color: #ffffff !important;
}
