/* ===== site.css — общий CSS всех страниц сайта (2026-11-11).
   Склеены прежние app.css + contacts.css + media.css + site.css (в этом порядке, чтобы каскад не поменялся).
   Страничные файлы (lifts-map.css, citypoly.css, style.css новости, home-news.css, clients-carousel.css, vacancies-panel.css) — отдельно. ===== */

/* ----- бывший app.css ----- */
/*@import "contacts.css";*/
/*@import url("contacts.css");*/

body {
    line-height: 1.25;
    /* Montserrat убран 2026-11-09: файл шрифта никогда не загружался (неверный путь), сайт всегда был sans-serif */
    font-family: sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 1rem;
    overflow-x: hidden;
    margin: 0 auto;
}

.page {
  margin: 0 auto;
  max-width: 1200px;
}

.page_wrapper {
  clear: both;
  margin: 0 auto;
  width: auto;
  position: relative;
  padding: 0 15px;
}

.bg-blue {
  background-color: #2d4a46;
}

.nav-link {
    color:white;
    text-transform: uppercase;
}

.nav-link:hover {
    color: rgb(246, 171, 54);
    transition: color 0.5s;
}

p>a, .card-body>a, li>a {
    text-decoration: none;
    color: black;
    -webkit-transition: all 0.5s ease;
            transition: all 0.5s ease;
}

p>a:hover, .card-body>a:hover, li>a:hover {
    color: rgb(246, 171, 54);;
}

.get_consult {
    display:none;
}

.card-service {
    height: 200px;
    object-fit: cover;
    object-position: center;
}

h2, h3 {
    text-align: center;
    padding: 2rem;
}

.card-container, .news-container {
    position: relative;
    transition: box-shadow 0.5s, background-color 0.5s;
    background-color: #f9f9fa;
    border: none;
}



.card-container:hover, .news-container:hover {
    background-color: white;
    box-shadow: 0px 0px 20px rgba(37, 51, 75, 0.15); 
}

.card-body {
    display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: space-between;
}

.news-container {
    height: 500px;
    margin-bottom: 4vh;
}

.news-container>img {
    height: 60%;
    object-fit: cover;
    object-position: center;
}

.card-container>div>a::before, .news-container>div>a::before {
    position: absolute;
    content: '';
    inset: 0; 
}

.card-container>div>a {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8125em;
    display: inline-block;
    padding-right: 0.875rem;
}

.card-container>div>a::after {
    content: "";
  display: block;
  position: absolute;
  left: 7rem;
  bottom: 1.125rem;
  width: 7px;
  height: 7px;
  border-top: 2px solid black;
  border-right: 2px solid black;
  -webkit-transform: translateX(0) translateY(-50%) rotate(45deg);
  -moz-transform: translateX(0) translateY(-50%) rotate(45deg);
  -ms-transform: translateX(0) translateY(-50%) rotate(45deg);
  -o-transform: translateX(0) translateY(-50%) rotate(45deg);
    transform: translateX(0) translateY(-50%) rotate(45deg);
}

.dropdown:hover .dropdown-menu {
      display: block;
}

.header {
  position: sticky;
  top: 0;
  z-index: 2;  
}

.cards-wrapper {
  display: flex;
  justify-content: center;
}
.card img {
  max-width: 100%;
  max-height: 100%;
}

.news-blcok {
    margin: 3rem 0 ;
}

.fa-s {
    position:relative;
}

.fa-s::before {
    content: "";
    background: url(../img/icons/call3.svg) no-repeat center;
    background-size: contain;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    display: block;
    filter: invert(100%) sepia(76%) saturate(0%) hue-rotate(217deg) brightness(105%) contrast(105%);
    position: absolute;
    left: -40px;
    top: 1px;
}

.counter {
    font-weight: 800
}

.logo {
    position: relative;
    text-decoration: none;
    margin: 0 0 0 2.5rem;
}
/* 
.logo-footer {
    filter: unset;
}

.logo-footer::before {
    content: "";
    background: url(../img/Logo-01.png) no-repeat center;
    background-size: contain;
    width: 40px;
    height: 50px;
    display: block;
    position: absolute;
    top: -8px;
    left: -32px;
}
 */
.logo::before {
    content: "";
    background: url(../img/Logo-01.png) no-repeat center;
    background-size: contain;
    width: 48px;
    height: 52px;
    display: block;
    position: absolute;
    top: -17px;
    left: -48px;
   
}

.white-logo::before {
    filter: invert(100%) sepia(76%) saturate(0%) hue-rotate(217deg) brightness(105%) contrast(105%);
    top: -8px;
    left: -52px;
}

.logo-img {
    filter: invert(100%) sepia(76%) saturate(0%) hue-rotate(217deg) brightness(105%) contrast(105%);
}

ol>li, ul>li {
    margin: 1rem 0;
}


.bc_main {
    display: inline-block;
  vertical-align: middle;
  position: relative;
}

.bc_main::after {
    content: "";
    background: url(../img/icons/arrow-right2.svg) no-repeat center;
    display: block;
    position: absolute;
    background-size: contain;
    width: 2.5em;
    height: 2.5em;
    left: 100%;
    top: -50%;
}

.card-img-project {
    height:250px;
    object-fit: cover;
    object-position: center;
}

.row-inner {
    /* flex-direction: row; */
}

.box {
  width:100%;
  background-size: cover;
  background-image: url('/img/bg.jpg');
}

/* ===== Навигационная панель ===== */
.custom-navbar {
    background-color: #2d4a46;
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.custom-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0.25rem;
}

.custom-navbar .navbar-nav .nav-link:hover,
.custom-navbar .navbar-nav .nav-link:focus {
    color: #ffffff;
    transform: translateY(-1px);
}

.custom-navbar .navbar-nav .active-link {
    color: #ffffff;
    font-weight: 600;
    border-bottom: 2px solid #d4af37;
}

/* Логотип компании */
.white-logo {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
}

/* Контактная информация */
.contact-info {
    text-align: right;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    padding-left: 1rem;
}

.phone-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.phone-link:hover {
    color: #ffc107;
    text-decoration: underline;
}

/* ===== Dropdown (выпадающее меню) ===== */
/* Для десктопа – открытие по наведению */
@media (min-width: 992px) {
    .dropdown-hover:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .dropdown-hover .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    }

    /* Убираем стрелку при наведении на родителя */
    .dropdown-hover:hover > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* Стили самого выпадающего меню */
.custom-dropdown {
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 220px;
}

.custom-dropdown .dropdown-item {
    color: #2d4a46;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.custom-dropdown .dropdown-item:hover,
.custom-dropdown .dropdown-item:focus {
    background-color: #f0f7f6;
    color: #1a3a35;
    padding-left: 1.8rem;
}

/* Стрелка у dropdown-toggle */
.dropdown-toggle::after {
    transition: transform 0.2s;
}

/* Адаптация для мобильных устройств */
@media (max-width: 991.98px) {
    .custom-navbar {
        padding: 0.5rem 0;
    }
    
    .custom-navbar .navbar-nav {
        padding: 1rem 0;
    }
    
    .custom-navbar .navbar-nav .nav-item {
        padding: 0.2rem 0;
    }
    
    .contact-info {
        text-align: left;
        border-left: none;
        padding-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .custom-dropdown {
        background-color: #f8f9fa;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
    
    .custom-dropdown .dropdown-item {
        color: #2d4a46;
        padding-left: 2rem;
    }
    
    /* На мобилках выпадающее меню работает по клику (стандартный Bootstrap) */
    .dropdown-hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        max-width: 85vw;
    }
    
    .dropdown-hover.show .dropdown-menu {
        display: block;
    }
}

/* Дополнительные эффекты для интерактива */
.custom-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}




/*Сервисы*/



    /* Секция услуг */
    .services-section {
        padding: 3rem 0;
        background-color: #f8f9fa;
    }
    
    /* Заголовок секции */
    .section-header {
        text-align: center;
        margin-bottom: 2.5rem;
    }
    
    .section-title-custom {
        color: #2d4a46;
        font-weight: 700;
        font-size: 2rem;
        margin-bottom: 0.75rem;
        position: relative;
        display: inline-block;
    }
    
    .section-title-line {
        width: 80px;
        height: 3px;
        background: #d4af37;
        margin: 0 auto;
    }
    
    /* Карточка услуги */
    .service-card-link {
        text-decoration: none;
        display: block;
        height: 100%;
    }
    
    .service-card {
        background: transparent;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.3s ease;
        height: 100%;
        cursor: pointer;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .service-image-wrapper {
        position: relative;
        height: 280px;
        overflow: hidden;
        border-radius: 12px;
    }
    
    .service-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease, filter 0.3s ease;
    }
    
    .service-card:hover .service-image {
        transform: scale(1.08);
        filter: blur(2px);
    }
    
    /* Оверлей с текстом поверх изображения */
    .service-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(45, 74, 70, 0.4) 0%, rgba(45, 74, 70, 0.3) 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
        transition: all 0.3s ease;
    }
    
    .service-card:hover .service-overlay {
        background: linear-gradient(135deg, rgba(45, 74, 70, 0.85) 0%, rgba(45, 74, 70, 0.75) 100%);
    }
    
    .service-title {
        color: white;
        font-size: 1.35rem;
        font-weight: 700;
        margin-bottom: 1rem;
        line-height: 1.4;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
        transform: translateY(0);
        transition: transform 0.3s ease;
    }
    
    .service-card:hover .service-title {
        transform: translateY(-5px);
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        background: rgba(212, 175, 55, 0.85);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        opacity: 0;
        transform: translateY(10px);
    }
    
    .service-card:hover .service-icon {
        opacity: 1;
        transform: translateY(0);
    }
    
    .service-icon i {
        color: #2d4a46;
        font-size: 1.5rem;
        font-weight: bold;
    }
    
    .service-icon:hover {
        background: #d4af37;
        transform: scale(1.1);
    }
    
    /* Адаптация для мобильных */
    @media (max-width: 768px) {
        .services-section {
            padding: 2rem 0;
        }
        
        .section-title-custom {
            font-size: 1.75rem;
        }
        
        .service-image-wrapper {
            height: 240px;
        }
        
        .service-title {
            font-size: 1.2rem;
        }
        
        .service-icon {
            width: 40px;
            height: 40px;
        }
        
        .service-icon i {
            font-size: 1.3rem;
        }
    }
    
    @media (max-width: 576px) {
        .service-image-wrapper {
            height: 220px;
        }
        
        .service-title {
            font-size: 1.1rem;
        }
    }
    
    
    
/* Преимущества*/


    /* Секция преимуществ */
    .advantages-section {
        padding: 2rem 0 1rem;
        background-color: #ffffff;
    }
    
    /* Заголовок секции (общий для всех блоков) */
    .section-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .section-title-custom {
        color: #2d4a46;
        font-weight: 700;
        font-size: 2rem;
        margin-bottom: 0.75rem;
        position: relative;
        display: inline-block;
    }
    
    .section-title-line {
        width: 80px;
        height: 3px;
        background: #d4af37;
        margin: 0 auto;
    }
    
    /* Карточка преимущества */
    .advantage-card {
        background: #f8f9fa;
        border-radius: 16px;
        padding: 2rem 1.5rem;
        text-align: center;
        height: 100%;
        transition: all 0.3s ease;
        border: 1px solid rgba(45, 74, 70, 0.08);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }
    
    .advantage-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(45, 74, 70, 0.12);
        border-color: rgba(45, 74, 70, 0.15);
    }
    
    .advantage-icon {
        width: 70px;
        height: 70px;
        background: linear-gradient(135deg, #2d4a46 0%, #3a6c65 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
        transition: all 0.3s ease;
    }
    
    .advantage-card:hover .advantage-icon {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(45, 74, 70, 0.3);
    }
    
    .advantage-icon i {
        color: #d4af37;
        font-size: 2rem;
    }
    
    .advantage-title {
        color: #2d4a46;
        font-size: 1.35rem;
        font-weight: 700;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .advantage-text {
        color: #555;
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0;
    }
    
    /* Блок с качеством */
    .quality-note {
        background: linear-gradient(135deg, #f0f7f6 0%, #e8f3f1 100%);
        border-left: 4px solid #d4af37;
        border-radius: 8px;
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .quality-text {
        color: #2d4a46;
        font-weight: 600;
        margin-bottom: 0;
        line-height: 1.6;
        font-size: 0.95rem;
    }
    
    /* Секция опыта */
    .experience-section {
        padding: 2rem 0 3rem;
        background-color: #f8f9fa;
    }
    
    /* Адаптация для мобильных */
    @media (max-width: 768px) {
        .section-title-custom {
            font-size: 1.75rem;
        }
        
        .advantage-card {
            padding: 1.5rem 1rem;
        }
        
        .advantage-icon {
            width: 60px;
            height: 60px;
        }
        
        .advantage-icon i {
            font-size: 1.75rem;
        }
        
        .advantage-title {
            font-size: 1.2rem;
        }
        
        .advantage-text {
            font-size: 0.9rem;
        }
        
        .quality-note {
            padding: 1rem;
        }
        
        .quality-text {
            font-size: 0.85rem;
        }
    }
    
    @media (max-width: 576px) {
        .section-title-custom {
            font-size: 1.5rem;
        }
        
        .advantage-title {
            font-size: 1.1rem;
        }
    }
    
    

    /* Карточка проекта */
    
    

    .project-card {
        background: white;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        border: 1px solid rgba(45, 74, 70, 0.08);
    }
    
    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(45, 74, 70, 0.15);
        border-color: rgba(45, 74, 70, 0.15);
    }
    
    .project-image-wrapper {
        position: relative;
        height: 200px;
        overflow: hidden;
    }
    
    .project-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform 0.4s ease;
    }
    
    .project-card:hover .project-image {
        transform: scale(1.08);
    }
    
    .project-body {
        padding: 1.25rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        background: white;
    }
    
    .project-title {
        color: #2d4a46;
        font-size: 1.05rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        line-height: 1.4;
        min-height: 2.8rem;
    }
    
    .project-description {
        color: #555;
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
        flex: 1;
    }
    
    .project-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        color: #d4af37;
        font-weight: 600;
        font-size: 0.85rem;
        text-decoration: none;
        padding: 0.5rem 1rem;
        border-radius: 50px;
        transition: all 0.3s ease;
        background: rgba(212, 175, 55, 0.1);
        width: fit-content;
        margin-top: 0.5rem;
    }
    
    .project-link:hover {
        background: #2d4a46;
        color: white;
        gap: 0.8rem;
    }
    
    .project-link i {
        font-size: 0.9rem;
        transition: transform 0.2s;
    }
    
    .project-link:hover i {
        transform: translateX(3px);
    }
    
    /* Адаптация для мобильных */
    @media (max-width: 992px) {
        .project-image-wrapper {
            height: 180px;
        }
        
        .project-title {
            font-size: 1rem;
            min-height: auto;
        }
        
        .project-description {
            font-size: 0.8rem;
        }
    }
    
    @media (max-width: 768px) {
        .project-image-wrapper {
            height: 200px;
        }
    }
    
    @media (max-width: 576px) {
        .project-image-wrapper {
            height: 180px;
        }
        
        .project-body {
            padding: 1rem;
        }
        
        .project-title {
            font-size: 0.95rem;
        }
        
        .project-description {
            font-size: 0.75rem;
        }
        
        .project-link {
            font-size: 0.8rem;
            padding: 0.4rem 0.8rem;
        }
    }




    /* Секция типов оборудования */
    
    
    
    
    
.equipment-section {
    padding: 3rem 0;
    background-color: #ffffff;
}

/* Заголовок секции */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title-custom {
    color: #2d4a46;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-title-line {
    width: 80px;
    height: 3px;
    background: #d4af37;
    margin: 0 auto;
}

/* Карточка типа оборудования */
.equipment-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 74, 70, 0.08);
    height: 100%;
}

.equipment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 74, 70, 0.1);
    border-color: rgba(45, 74, 70, 0.15);
    background: #ffffff;
}

.equipment-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #2d4a46 0%, #3a6c65 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.equipment-card:hover .equipment-icon {
    transform: scale(1.05);
    box-shadow: 0 5px 12px rgba(45, 74, 70, 0.25);
}

.equipment-icon i {
    color: #d4af37;
    font-size: 1.6rem;
}

.equipment-content {
    flex: 1;
}

.equipment-title {
    color: #2d4a46;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.equipment-text {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Адаптация для планшетов */
@media (max-width: 992px) {
    .equipment-section {
        padding: 2.5rem 0;
    }
    
    .section-title-custom {
        font-size: 1.75rem;
    }
    
    .equipment-card {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .equipment-icon {
        width: 50px;
        height: 50px;
    }
    
    .equipment-icon i {
        font-size: 1.4rem;
    }
    
    .equipment-title {
        font-size: 1.1rem;
    }
    
    .equipment-text {
        font-size: 0.85rem;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .equipment-section {
        padding: 2rem 0;
    }
    
    .section-title-custom {
        font-size: 1.5rem;
    }
    
    .equipment-card {
        padding: 1rem;
        gap: 0.875rem;
    }
    
    .equipment-icon {
        width: 45px;
        height: 45px;
    }
    
    .equipment-icon i {
        font-size: 1.2rem;
    }
    
    .equipment-title {
        font-size: 1rem;
    }
    
    .equipment-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .equipment-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .equipment-icon {
        margin-bottom: 0.5rem;
    }
}



/*ЗАКАЗЧИКИ*/




/* Секция клиентов */
.clients-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
}

/* Заголовок секции */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title-custom {
    color: #2d4a46;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
}

.section-title-line {
    width: 80px;
    height: 3px;
    background: #d4af37;
    margin: 0 auto;
}

/* Карточка клиента */
.client-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(45, 74, 70, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(45, 74, 70, 0.12);
    border-color: rgba(45, 74, 70, 0.15);
}

.client-logo-wrapper {
    width: 100%;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.client-logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(0%);
}

.client-card:hover .client-logo {
    transform: scale(1.02);
}

.client-name {
    color: #2d4a46;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.client-card:hover .client-name {
    color: #d4af37;
}

/* Адаптация для планшетов */
@media (max-width: 992px) {
    .clients-section {
        padding: 2.5rem 0;
    }
    
    .section-title-custom {
        font-size: 1.75rem;
    }
    
    .client-card {
        padding: 1.25rem 0.75rem;
    }
    
    .client-logo-wrapper {
        min-height: 60px;
    }
    
    .client-logo {
        max-height: 50px;
    }
    
    .client-name {
        font-size: 0.85rem;
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .clients-section {
        padding: 2rem 0;
    }
    
    .section-title-custom {
        font-size: 1.5rem;
    }
    
    .client-card {
        padding: 1rem 0.75rem;
    }
    
    .client-logo-wrapper {
        min-height: 55px;
    }
    
    .client-logo {
        max-height: 45px;
    }
    
    .client-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .client-logo-wrapper {
        min-height: 50px;
    }
    
    .client-logo {
        max-height: 40px;
    }
    
    .client-name {
        font-size: 0.75rem;
    }
}

:root {
            --primary-color: #2d4a46;
            --primary-rgb: 45, 74, 70;
            --secondary-color: #3a6c65;
            --light-color: #f0f7f6;
            --accent-gray: #f8f9fa;
            --gold: #d4af37;
        }
        
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            line-height: 1.6;
            color: #333;
            padding-top: 0;
            background-color: #f8f9fa;
        }
        
        .hero-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            padding: 4rem 0;
            margin-bottom: 2rem;
            border-radius: 0 0 20px 20px;
            position: relative;
            overflow: hidden;
        }
        
        .hero-title {
            font-weight: 800;
            font-size: 2.8rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        }
        
        .hero-subtitle {
            font-size: 1.3rem;
            opacity: 0.9;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .section-title {
            color: var(--primary-color);
            font-weight: 700;
            padding-bottom: 0.75rem;
            margin-bottom: 1.5rem;
            border-bottom: 3px solid var(--light-color);
            position: relative;
        }
        
        .section-title:after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 80px;
            height: 3px;
            background-color: var(--secondary-color);
        }
        
        .footer-custom {
            background-color: var(--accent-gray);
            color: #6c757d;
            padding: 2.5rem 0;
            margin-top: 3rem;
            border-top: 1px solid #dee2e6;
        }
        
        .text-primary-custom {
            color: var(--primary-color) !important;
        }
        
        /* Стили для страницы сотрудников */
        .departments-sidebar {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            position: sticky;
            top: 20px;
        }
        
        .company-group {
            margin-bottom: 1.5rem;
        }
        
        .company-title {
            font-weight: 700;
            color: var(--primary-color);
            font-size: 1.1rem;
            margin-bottom: 0.75rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid var(--light-color);
        }
        
        .department-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .department-item {
            margin-bottom: 0.5rem;
        }
        
        .department-btn {
            width: 100%;
            text-align: left;
            padding: 0.6rem 1rem;
            background: transparent;
            border: none;
            border-radius: 8px;
            color: #555;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .department-btn:hover {
            background: var(--light-color);
            color: var(--primary-color);
        }
        
        .department-btn.active {
            background: var(--primary-color);
            color: white;
        }
        
        .department-count {
            background: #e9ecef;
            color: #6c757d;
            padding: 0.2rem 0.5rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .department-btn.active .department-count {
            background: rgba(255,255,255,0.3);
            color: white;
        }
        
        /* Карточки сотрудников */
        .employees-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        
        .employee-card {
            background: var(--primary-color);
            border-radius: 12px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .employee-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }
        
        .employee-photo-clickable {
            width: 100%;
/*             aspect-ratio: 3 / 4; */
            object-fit: cover;
            cursor: pointer;
            transition: opacity 0.3s ease;
            display: block;
            object-position: top;
        }
        
        .employee-photo-clickable:hover {
            opacity: 0.9;
        }
        
        .employee-info {
            padding: 1.25rem;
            text-align: center;
            flex: 1;
            display: flex;
            flex-direction: column;
        }
        
        .employee-name {
            font-size: 1.1rem;
            font-weight: 700;
            color: white;
            margin-bottom: 0.5rem;
            line-height: 1.4;
        }
        
        .employee-position {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.8);
            margin-bottom: 0.75rem;
            line-height: 1.4;
        }
        
        .company-logo {
            font-size: 0.8rem;
            color: var(--gold);
            font-weight: 500;
            margin-top: auto;
            padding-top: 0.5rem;
            border-top: 1px solid rgba(255,255,255,0.2);
            display: inline-block;
        }
        
        .empty-state {
            text-align: center;
            padding: 3rem;
            background: white;
            border-radius: 12px;
            color: #6c757d;
        }
        
        /* Модальное окно для фото */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9);
            z-index: 9999;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(5px);
        }
        
        .modal-overlay.active {
            display: flex;
        }
        
        .modal-content {
            max-width: 90%;
            max-height: 90%;
            position: relative;
            animation: zoomIn 0.3s ease;
        }
        
        .modal-content img {
            width: 100%;
            height: auto;
            object-fit: scale-down;
            max-height: 90vh;
            border-radius: 8px;
            box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
        }
        
        .modal-close {
            position: absolute;
            top: -40px;
            right: 0;
            background: white;
            color: var(--primary-color);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
        }
        
        .modal-close:hover {
            transform: rotate(90deg);
            background: var(--primary-color);
            color: white;
        }
        
        @keyframes zoomIn {
            from {
                transform: scale(0.5);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }
        
        /* Адаптация под мобильные */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2rem;
            }
            .hero-subtitle {
                font-size: 1.1rem;
            }
            .departments-sidebar {
                position: relative;
                top: 0;
                margin-bottom: 1.5rem;
            }
            .employees-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
                gap: 1rem;
            }
        }
        
        @media (max-width: 576px) {
            .employees-grid {
                grid-template-columns: 1fr;
            }
        }


    /* Карточки услуг */
    .service-card {
        background: white;
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border: 1px solid rgba(45,74,70,0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(45,74,70,0.12);
    }
    .service-card-header {
        text-align: center;
        margin-bottom: 1rem;
    }
    .service-card-header .icon-box {
        margin: 0 auto;
    }
    .service-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .service-list li {
        padding: 0.5rem 0;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.9rem;
        color: #555;
    }
    .service-list li:last-child {
        border-bottom: none;
    }
    .service-list li i {
        color: #2d4a46;
        font-size: 1.1rem;
        flex-shrink: 0;
        width: 20px;
        text-align: center;
    }

    /* Карточки аварийной службы */
    .emergency-card {
        background: white;
        border-radius: 12px;
        padding: 1.25rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border: 1px solid rgba(45,74,70,0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        height: 100%;
    }
    .emergency-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(45,74,70,0.12);
    }
    .emergency-icon {
        flex-shrink: 0;
        width: 45px;
        height: 45px;
        background: #f0f7f6;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2d4a46;
        font-size: 1.3rem;
    }
    .emergency-content h5 {
        color: #2d4a46;
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.3rem;
    }
    .emergency-content p {
        font-size: 0.85rem;
        color: #555;
        margin-bottom: 0;
        line-height: 1.4;
    }

    @media (max-width: 768px) {
        .service-card {
            padding: 1rem;
        }
        .service-list li {
            font-size: 0.85rem;
        }
        .emergency-card {
            padding: 1rem;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .emergency-icon {
            margin-bottom: 0.5rem;
        }
    }
    
   /* Карточки преимуществ */
    .advantage-card {
        background: white;
        border-radius: 12px;
        padding: 1.5rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border: 1px solid rgba(45,74,70,0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .advantage-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(45,74,70,0.12);
    }
    .advantage-card .icon-box {
        margin: 0 auto 1rem;
    }
    .advantage-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    .advantage-card p {
        font-size: 0.9rem;
        color: #555;
        margin-bottom: 0;
        line-height: 1.5;
    }

    /* Карточки этапов */
    .step-card {
        background: white;
        border-radius: 12px;
        padding: 1.25rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border: 1px solid rgba(45,74,70,0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        height: 100%;
    }
    .step-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(45,74,70,0.12);
    }
    .step-number {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #2d4a46 0%, #3a6c65 100%);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 1.1rem;
    }
    .step-content h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    .step-content p {
        font-size: 0.85rem;
        color: #555;
        margin-bottom: 0;
        line-height: 1.4;
    }

    /* Карточки преимуществ замены */
    .benefit-card {
        background: white;
        border-radius: 12px;
        padding: 1.25rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border: 1px solid rgba(45,74,70,0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .benefit-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(45,74,70,0.12);
    }
    .benefit-icon {
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        background: #f0f7f6;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2d4a46;
        font-size: 1.1rem;
    }
    .benefit-content h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    .benefit-content p {
        font-size: 0.85rem;
        color: #555;
        margin-bottom: 0;
        line-height: 1.4;
    }

    /* Бейджи клиентов */
    .client-badge {
        background: white;
        border-radius: 50px;
        padding: 0.6rem 1rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border: 1px solid rgba(45,74,70,0.08);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        text-align: center;
        transition: all 0.3s ease;
        font-weight: 500;
        color: #2d4a46;
        font-size: 0.9rem;
    }
    .client-badge:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(45,74,70,0.12);
        border-color: #d4af37;
    }
    .client-badge i {
        color: #d4af37;
        font-size: 1.1rem;
    }

    /* Адаптация для мобильных */
    @media (max-width: 768px) {
        .advantage-card {
            padding: 1rem;
        }
        .step-card {
            padding: 1rem;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .benefit-card {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .client-badge {
            padding: 0.5rem 0.75rem;
            font-size: 0.8rem;
        }
    }
    
    .advantage-card .icon-box {
        width: 70px;
        height: 70px;
        background: linear-gradient(135deg, #2d4a46 0%, #3a6c65 100%);
        border-radius: 50%;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 1.5rem !important;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }
    .advantage-card .icon-box i {
        color: #d4af37;
        font-size: 2rem;
        display: inline-block;
        line-height: 1;
    }
    .advantage-card:hover .icon-box {
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(45, 74, 70, 0.3);
    }
    .advantage-card {
        background: white;
        border-radius: 12px;
        padding: 2rem 1.5rem;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        border: 1px solid rgba(45,74,70,0.08);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .advantage-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(45,74,70,0.12);
        border-color: rgba(45,74,70,0.15);
    }
    .advantage-card h4, .advantage-card h5 {
        color: #2d4a46;
        font-weight: 700;
        margin-bottom: 0.75rem;
    }
    .advantage-card p {
        color: #555;
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0;
    }
    .text-primary-custom {
        color: #2d4a46 !important;
    }  
    

/* Карточка новости */
.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(45, 74, 70, 0.08);
    margin-bottom: 1.5rem;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(45, 74, 70, 0.15);
    border-color: rgba(45, 74, 70, 0.15);
}

.news-card-image {
    height: 400px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    object-position: top;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.news-card-date {
    color: #d4af37;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.news-card-title {
    color: #2d4a46;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-card-description {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #d4af37;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(212, 175, 55, 0.1);
    width: fit-content;
    margin-top: 0.5rem;
}

.news-card-link:hover {
    background: #2d4a46;
    color: white;
    gap: 0.8rem;
}

.news-card-link i {
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.news-card-link:hover i {
    transform: translateX(3px);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    
    .news-card-image {
       height: 450px;
    }
    .news-card-title {
        font-size: 1rem;
    }
    .news-card-description {
        font-size: 0.8rem;
    }
    .news-card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .news-card-image {
        height: 350px;
    }
}

@media screen and (orientation: portrait) {
  .news-cards {
      margin-bottom: 1.5rem;
  }
}

@media screen and (orientation: landscape) {
  .news-cards {
      margin-bottom: 1.5rem;
  }
}
    
@media (max-width: 991.98px) {
    .custom-navbar {
        padding: 0.5rem 0;
    }
    .custom-navbar .navbar-nav {
        padding: 1rem 0;
    }
    .custom-navbar .navbar-nav .nav-item {
        padding: 0.2rem 0;
    }
    .contact-info {
        text-align: left;
        border-left: none;
        padding-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.2);
    }
    /* ГЛАВНОЕ: чтобы меню не вылезало */
    .custom-dropdown {
        width: 100%;
        min-width: unset;
        background-color: white;
        box-shadow: none;
        border: none;
        padding: 0;
    }
    .custom-dropdown .dropdown-item {
        padding: 0.5rem 1rem 0.5rem 2rem;
        white-space: normal;
        word-wrap: break-word;
    }
    .custom-dropdown .dropdown-item:hover {
        background-color: rgba(255,255,255,0.1);
    }
    .dropdown-hover {
        width: 100%;
    }
}

 
 
    
    

/* ----- бывший contacts.css ----- */
.company_info {
  grid-area: 1 / 1 / 2 / 2;
  color: #1E2741;
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 6px;
  position: relative;
  padding-left: 1.25em;
  display: inline-block;
}

.company_info p:first-child {
  text-align: justify;
}

.attr_name {
  color: #8c90a7;
}

.contacts_list {
  display: flex;
  flex-direction: column;
	justify-content: space-around;
}

.contact_us {
  display:flex;
   grid-area: 1 / 2 / 3 / 3;
   justify-self: end;
   padding: 0 3em;
}
  
  .contacts_block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
  }
  
  .map {
    margin-top: 3em;
    grid-area: 2 / 1 / 3 / 2;
  }
  
  .contacts p a {
   display:inline-block;
		margin: 1em 0 0 1em;
		position: relative;
  }

.contact_tel::before {
    content: "";
  background: url(../img/icons/phone-call.svg) no-repeat center;
    background-size: auto;
  background-size: contain;
  width: 1em;
  height: 1em;
  margin-left: 10px;
  display: block;
  position: absolute;
  left: -30px;
  top: 4px;
}

.contact_mail::before {
    content: "";
  background: url(../img/icons/email-mail.svg) no-repeat center;
    background-size: auto;
  background-size: contain;
  width: 1em;
  height: 1em;
  margin-left: 10px;
  display: block;
  position: absolute;
  left: -30px;
  top: 4px;
}

.contacts p{
    display: flex;
    flex-direction: column;
}

table {
    margin: 1em 0;
}

/* ----- бывший media.css ----- */
@media (min-width: 768px) {
    .news-cards {

    flex: 0 0 auto;
    width: 33%;
     margin-bottom: 2rem;
    }
}

@media (max-width: 991px), (orientation: portrait) {
    .news-container {
    min-height: 75vh;
    margin-bottom: 4vh;
    }
    
    .logo {
       margin: 0;
    }
    
   .logo::before {
       display:none;
   } 
   

   
   .contacts_block {
       display: flex;
       flex-direction: column;
       flex-wrap: nowrap;
   }
   
    .company_info { grid-area: 1 / 1 / 2 / 2; }
    
    .map { grid-area: 2 / 1 / 3 / 2; }
    
    .contact_us {
        grid-area: 3 / 1 / 4 / 2;
        /*display:block;*/
        margin: 15px 0;
        padding: 0;
        
    }
    
    .contacts_list {
        displat: flex;
        flex-direction: colimn;
        margin: 0 auto;
    /* display: grid;*/
    /*grid-template-columns: repeat(2, 1fr);*/
    /*grid-template-rows: repeat(3, 1fr);*/
    /*grid-column-gap: 15px;*/
    /*grid-row-gap: 15px;  */
    /*align-items: first baseline;*/
    }
    
    .contacts {
        margin-bottom: 2em;
    }
    
    .contacts p {
        font-size: 0.875em;
    }
}

@media (min-width: 860px) {
  .contacts__block {
    padding-top: 3.75em;
  }
}

@media (min-width: 680px) {
  .breadcrumbs ul li a {
    font-size: 0.8125em;
  }
}

/* ----- правки 2026-11 (бывший site.css) ----- */
/* Общие поправки сайта поверх app.css. Подключается из components/navbar.blade.php (шапка есть
   на всех страницах) с меткой версии ?v=. Сюда же при чистке переносить общие стили из app.css. */

/* ===== Шрифты ===== */
/* Golos Text — текст, Unbounded — заголовки (решение 2026-11-09). Вариативные woff2 (одно начертание
   на все веса 400–900), с нашего сервера, лицензия SIL OFL. Кириллица и латиница — отдельные файлы,
   браузер качает только нужный. Пока файл не загрузился или не загрузится вовсе — системный шрифт
   из списка ниже (swap: текст виден сразу). */
@font-face {
    font-family: 'Golos Text';
    src: url('/fonts/golos-text-cyrillic.woff2') format('woff2');
    font-weight: 400 900;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Golos Text';
    src: url('/fonts/golos-text-latin.woff2') format('woff2');
    font-weight: 400 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Unbounded';
    src: url('/fonts/unbounded-cyrillic.woff2') format('woff2');
    font-weight: 400 900;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: 'Unbounded';
    src: url('/fonts/unbounded-latin.woff2') format('woff2');
    font-weight: 400 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Резерв — системные шрифты устройства: Windows — Segoe UI, Mac/iPhone — San Francisco (system-ui),
   Android — Roboto, остальное — Arial */
:root {
    --font-text: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-heading: 'Unbounded', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --bs-body-font-family: var(--font-text);
}

body {
    font-family: var(--font-text);
}

/* Unbounded — крупные заголовки (h1, h2 и заголовки разделов); h3–h6 и мелкие заголовки карточек
   остаются Golos Text — Unbounded широкий, в узких карточках давал бы лишние переносы */
h1, .h1,
h2, .h2,
.section-title-custom,
.hero-title {
    font-family: var(--font-heading);
}

.accordion-header {
    font-family: var(--font-text);
}

/* «Резиновые» заголовки: размер плавно меняется с шириной экрана, без скачков на точках перелома.
   Максимум = прежний размер на компьютере, минимум подобран так, чтобы самые длинные слова
   («Диспетчеризация», «Профессиональный») помещались даже на 320px. Всё в rem — растёт вместе
   с увеличением шрифта в настройках браузера */
h1, .h1 {
    font-size: clamp(1.4rem, 1rem + 2.2vw, 2.5rem);          /* 40px компьютер → 24px телефон */
}

.display-5 {
    font-size: clamp(1.5rem, 1.05rem + 2.6vw, 3rem);         /* 48px → 26px */
}

.hero-title {
    font-size: clamp(1.25rem, 0.85rem + 2.5vw, 2.8rem);      /* 45px → 23px */
}

h2, .h2, .section-title, .section-title-custom {
    font-size: clamp(1.15rem, 0.8rem + 1.75vw, 2rem);        /* 32px → 19px */
}

h3, .h3 {
    font-size: clamp(1.1rem, 0.9rem + 1vw, 1.75rem);         /* 28px → 18px */
}

/* Крайний случай — слово длиннее строки переносится, а не вылезает за экран.
   Слоговых переносов («за-вода») нет: слова переносятся только целиком (решение 2026-11-09) */
h1, .h1, h2, .h2, h3, .h3, .hero-title, .section-title, .section-title-custom {
    overflow-wrap: break-word;
    hyphens: manual;
}

/* ===== Картинки с облегчёнными копиями (components/picture.blade.php) ===== */
/* <picture> не участвует в раскладке: стили блока, как и раньше, действуют прямо на <img> */
.pic {
    display: contents;
}

/* У <img> указаны width/height (страница не «прыгает» при загрузке). Высота при этом — по пропорции,
   а не жёстко из атрибута; :where — нулевой вес, любое своё правило высоты (напр. height: 100%) сильнее */
:where(.pic > img) {
    height: auto;
}

/* Только <img>: в новостях тот же класс у блоков с фото-фоном (div), им нужна их высота из style.css
   (иначе блок схлопывался до ~29px — «Наши герои», 2026-11-11) */
img.employee-photo-clickable {
    height: auto;
}

/* Услуги на главной: заголовок на фото — h3, сбросить общее «h2, h3 { padding: 2rem }» из app.css,
   иначе на телефоне тексту почти не оставалось места */
.service-overlay .service-title {
    padding: 0;
    margin-bottom: 0.75rem;
    font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.35rem);
    line-height: 1.3;
}

/* Планшет и телефон: белая рамка вокруг фото (padding 1.5rem у .service-card из app.css) и отступы
   подложки съедали ширину — на 768px заголовку оставалось ~135px и 5 строк. Тоньше рамка и отступы,
   на планшете 2 колонки вместо 3 (index.blade.php: col-sm-6 col-lg-4) */
@media (max-width: 991.98px) {
    .services-section .service-card {
        padding: 0.6rem;
    }

    .service-overlay {
        padding: 1rem 0.75rem;
    }
}

/* Блок СЛЗ на главной: жёсткие <br> в заголовке — только на широких экранах; на узких строки
   переносятся сами и выравниваются по длине (иначе «дилером», «завода» оставались одни на строке) */
.slz-title {
    text-wrap: balance;
}

@media (max-width: 991.98px) {
    .slz-title br {
        display: none;
    }
}

/* Плашки «Кому мы предлагаем наши услуги» (в тексте услуги из БД): одинаковая высота в ряду */
.client-badge {
    height: 100%;
    min-height: 3.25rem;
}

/* Текст новости (HTML из админки): картинки, видео и таблицы не шире экрана.
   В новостях встречаются картинки с жёсткой шириной и обтеканием (style="float…") */
.news-body img,
.news-body video,
.news-body iframe {
    max-width: 100%;
    height: auto;
}

.news-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 576px) {
    .news-body img {
        float: none !important;
        display: block;
        margin: 10px auto !important;
    }
}

/* Фото-карточки в тексте новостей (.photo-card, напр. «Наш герой»): одна рамка 4:3 для всех фото,
   иначе квадратное и вертикальное фото давали карточки разной высоты. Полное фото — по клику */
.news-body .photo-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
}

/* Главное фото новости: не выше 70% окна — вертикальные и очень большие фото раньше приходилось
   прокручивать. Размер блока = размер фото (без полей-подложки по бокам), фото по центру;
   полное фото — по клику (окно просмотра). width/height: auto — пропорции сохраняются при ограничениях */
.news-main-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(70vh, 640px);
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    cursor: zoom-in;
}

/* Заглушка вместо фото — пониже (это не фото) и без «лупы» */
.news-main-image--placeholder {
    max-height: min(40vh, 360px);
    cursor: default;
}

/* Окно просмотра фото: у части новостей кнопка закрытия без значка (в HTML новости нет класса bi-x-lg) */
.modal-close:not(.bi)::before {
    content: "\2715";
    font-size: 1.1rem;
    line-height: 1;
}

/* ===== Карточка новости (components/news_card) — поверх стилей .news-card из app.css ===== */
/* Заголовок карточки — h3: сбросить общее правило app.css «h2, h3 { padding: 2rem; text-align: center }» */
.news-card .news-card-title {
    padding: 0;
    text-align: left;
    font-family: var(--font-text);
}

/* Картинка: обрезка по рамке. Без неё (1) увеличенная при наведении картинка наезжала на дату,
   (2) пропорция 4:3 / 16:9 не соблюдалась — блок растягивался под настоящий размер фото и картинки «скакали» */
.news-card .news-card-image {
    overflow: hidden;
    flex-shrink: 0;
}

/* Вертикальное/квадратное фото (класс ставит components/news_card): фото целиком по центру,
   по бокам — размытая затемнённая копия того же фото (облегчённая 480px) */
.news-card .news-card-image--fit {
    position: relative;
    background: #2d4a46;
}

.news-card .news-card-image--fit::before {
    content: "";
    position: absolute;
    inset: -24px;
    background: var(--card-blur-bg) center / cover no-repeat;
    filter: blur(18px) brightness(0.85);
}

.news-card .news-card-image--fit img {
    position: relative;
    object-fit: contain;
    object-position: center;
}

/* Воздух внутри карточки: картинка → дата → заголовок → кнопка */
.news-card .news-card-body {
    padding: 1.5rem 1.5rem 1.5rem;
}

.news-card .news-card-date {
    margin-bottom: 0.75rem;
}

.news-card .news-card-title {
    margin-bottom: 1.5rem;
}

/* Кнопка «Читать» — внизу справа: в ряду кнопки на одной линии при разной длине заголовков */
.news-card .news-card-link {
    margin-top: auto;
    align-self: flex-end;
}

/* Кликабельна вся карточка (ссылка «Читать» растянута); при наведении на карточку — подсветка кнопки */
.news-card {
    cursor: pointer;
}

.news-card:hover .news-card-link {
    background: #2d4a46;
    color: #fff;
    gap: 0.8rem;
}

.news-card:hover .news-card-title {
    color: #3a6c65;
}

/* ===== Доступность ===== */

/* «Перейти к содержанию»: скрыта, появляется при переходе с клавиатуры (Tab) */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 1100;
    padding: 0.6rem 1rem;
    background: #d4af37;
    color: #2d4a46;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

#content:focus {
    outline: none;
}

/* Видимый фокус при работе с клавиатуры (мышью — без рамки) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #d4af37;
    outline-offset: 2px;
}

/* «Уменьшить движение» в настройках системы — без анимаций */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== Выпадающее меню шапки ===== */

/* Десктоп: позиция одна и та же при наведении и при клике. Popper отключён
   (data-bs-display="static" у пунктов), меню всегда сразу под пунктом */
@media (min-width: 992px) {
    .dropdown-hover .dropdown-menu {
        top: 100%;
        left: 0;
        margin-top: 0;
    }

    .dropdown-hover .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Бургер-меню: больше воздуха внутри белого блока подменю */
@media (max-width: 991.98px) {
    .custom-navbar .custom-dropdown {
        padding: 0.75rem 0;
        margin: 0.25rem 0 0.75rem;
    }

    .custom-navbar .custom-dropdown .dropdown-item {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    /* Бургер-меню (2026-11-09): было вплотную к краям (кнопка 12px, контакты справа у края).
       Теперь боковые отступы 20px, пункты, подменю и контакты — по центру */
    .custom-navbar > .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .custom-navbar .navbar-nav {
        text-align: center;
    }

    .custom-navbar .navbar-nav .nav-link {
        display: inline-block;
    }

    .custom-navbar .custom-dropdown .dropdown-item,
    .custom-navbar .custom-dropdown .dropdown-item:hover,
    .custom-navbar .custom-dropdown .dropdown-item:focus {
        text-align: center;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .custom-navbar .contact-info,
    .custom-navbar .contact-info p {
        text-align: center !important;     /* у <p> в шаблоне стоит style="text-align: right" */
    }

    .custom-navbar .contact-info {
        padding-bottom: 0.75rem;
    }
}
