body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;

    background: #fff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

/*PAGE======================================== */
.page {
    overflow: hidden;
}

/*CONTAINER=================================== */
.container {
    width: 100%;
    max-width: 1230px;
    padding: 0 15px;
    margin: 0 auto;
}

.header {
    width: 100%;

    position: absolute;
    top: 0;left: 0;right: 0;z-index: 1000;

    background-color: #fff;
}

.header.fixed {

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;


    transform: translate3d(0, 0, 0);
} 

.logo {
    cursor: pointer;
}

.logo img {
    margin-top: 8px;
    height: 70px; 
    width: auto; 
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/*HEADER__SOCIAL__NEW========================= */
.header__social__new {
    display: flex;
    justify-content: center;
}

/* .nav {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
} */

.nav {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    
    /* Добавляем flex для выравнивания всех элементов в одну линию */
    display: flex;
    align-items: center;
    gap: 10px; /* расстояние между элементами */
}

.nav.active {
    display: block;
}

/* .nav__link {
    display: inline-block;
    vertical-align: top;
    margin: 5px 10px;
    position: relative;

    color: #6e9987;
    text-decoration: none;

    transition: color 0.1s linear; 
} */

.nav__link {
    display: inline-block;
    vertical-align: top;
    margin: 5px 10px;
    position: relative;
    color: #6e9987;
    text-decoration: none;
    transition: color 0.1s linear;
    
    /* Убираем нижнюю границу для десктопа */
    border-bottom: none;
    padding: 10px 0;
}

.nav__link::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;

    background-color: #333;
    opacity: 0;

    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;

    transition: opacity .1s linear;
}

.nav__link:hover {
    color: #333;
}

.nav__link:hover::after {
    opacity: 1;

}

/* .nav__link__icon {
    display: inline-block;
    vertical-align: top;
    margin: 0 10px;
    position: relative;
    
    font-size: 20px;

    color: #6e9987;
    text-decoration: none;

} 

.nav__link__icon:hover {
    color: #333;
} */

.nav__link__icon {
    display: inline-block;
    vertical-align: top;
    margin: 0 5px; /* уменьшаем отступы */
    position: relative;
    font-size: 18px; /* немного уменьшаем размер иконок */
    color: #6e9987;
    text-decoration: none;
    padding: 8px 0; /* добавляем вертикальные отступы для выравнивания */
    
    /* Убираем границу для десктопа */
    border-bottom: none !important;
}

.nav__link__icon:hover {
    color: #333;
}

/* Убираем псевдоэлементы для иконок в десктопе */
.nav__link__icon::after {
    display: none;
}

.phone-icon {
    display: none !important;
}

/* NAV-TOGGLE */
.nav-toggle {
    width: 25px;
    padding: 10px 0;
    display: none;

    font-size: 0;
    color: transparent;

    border: 0;
    background: none;
    cursor: pointer;

    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.nav-toggle:focus {
    outline: 0;
}

.nav-toggle__item {
    display: block;
    width: 100%;
    height: 2px;

    background-color: #6e9987;

    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;

    transition: background .2s linear;

}

.nav-toggle__item::before {
    top: -8px;
}

.nav-toggle__item::after {
    bottom: -8px;
}

.nav-toggle.active .nav-toggle__item{
    background: none;
}

.nav-toggle__item::before,
.nav-toggle__item::after {
    content: "";
    width: 100%;
    height: 2px;

    position: absolute;
    left: 0;
    z-index: 1;

    background-color: #6e9987;

    transition: transform .2s linear;
}

.nav-toggle.active .nav-toggle__item::before{
    transform-origin: left top;
    transform: rotate(45deg) translate3d(2px, -2px, 0);
}

.nav-toggle.active .nav-toggle__item::after{
    transform-origin: left bottom;
    transform: rotate(-45deg) translate3d(1px, 3px, 0);
} 

/* Стили для выпадающего меню */
.nav__dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    padding: 10px 0;
}

.nav__dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 8px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #6e9987;
}

/* Адаптивность для мобильных */
@media (max-width: 770px) {
    .nav__dropdown {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: rgba(110, 153, 135, 0.8);
    }
    
    .nav__dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        color: #fff;
        padding: 12px 40px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown-item:hover {
        background-color: rgba(255,255,255,0.1);
        color: #fff;
    }
    
    .dropdown-toggle::after {
        content: ' ▼';
        font-size: 10px;
    }
}

/*INTRO======================================= */
/* .intro {
    width: 100%;
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: url("../css/img/intro/intro1.jpg") center no-repeat;
    background-color: rgba(0, 0, 0, 0.6); 
    
    -webkit-background-size: cover;
    background-size: cover;

    position: relative;

    min-height: 820px;
} 

.intro::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 1;
}  */

.intro {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 820px;
}

.intro__inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
} 

.intro__title {
    margin: 0 0 30px;
    font-family: "Tektur", sans-serif;
    font-size: 45px;
    font-weight: normal;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}

.intro__subtitle {
    margin-bottom: 50px;
    font-family: "Caveat", cursive;
    font-size: 45px;
    color: #6e9987;
}

/* Слайдер фона для главной страницы */
.intro {
    position: relative;
    overflow: hidden;
}

.intro-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Контент поверх слайдера */
.intro__inner {
    position: relative;
    z-index: 2;
}

/* Индикаторы слайдера */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: #6e9987;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/*BUTTON====================================== */
.btn {
    display: inline-block;
    vertical-align: top;
    padding: 8px 30px;
    border: 0;
    border-radius: 4px;
    background-color: #fff;

    font-family: "Tektur", sans-serif;

    font-size: 14px;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;

    transition: background .1s linear, color .1s linear;
}

.btn:hover {
    background-color: #6e9987; 
    color: #fff;
}

/*Модальное окно консультации====================================== */
/* Модальное окно консультации */
.consultation-modal {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    margin: 10% auto;
}

.consultation-modal h3 {
    color: #6e9987;
    margin-bottom: 10px;
    text-align: center;
}

.consultation-modal p {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
}

/* Форма */
.consultation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.consultation-form input,
.consultation-form textarea {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.consultation-form input:focus,
.consultation-form textarea:focus {
    outline: none;
    border-color: #6e9987;
}

.consultation-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* Стили для крестика в модальном окне консультации */
#consultationModal .close {
    position: absolute;
    top: 8px;
    right: 30px;
    color: #6e9987;
    font-size: 35px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

#consultationModal .close:hover {
    color: #333;
}

.btn-submit {
    background: #6e9987;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-family: "Tektur", sans-serif;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #5a7c6d;
}

/* Сообщение об успехе */
.form-success {
    text-align: center;
    padding: 30px;
}

.form-success h4 {
    color: #6e9987;
    margin-bottom: 10px;
}

/* Адаптивность */
@media (max-width: 575px) {
    .consultation-modal {
        padding: 25px;
        margin: 20% auto;
    }
    
    .consultation-form input,
    .consultation-form textarea {
        padding: 12px;
        font-size: 14px;
    }
}

/*SECTION====================================== */
.section {
    padding: 40px 0;

    scroll-margin-top: 80px;
    padding-top: 80px;
    margin-top: -80px;
}

.section__header {
    width: 100%;
    max-width: 950px;
    /* margin: 0 auto 40px; */
    text-align: right;

    margin: 10px auto 15px auto;
}

.section__title {
    /* font-size: 24px; */
    color: #333;
    font-family: "Caveat", cursive;
    font-size: 45px;
}

.section--services {
    background: url("../css/img/intro/fon.jpg");
    -webkit-background-size: cover;
    background-size: cover;

    border-radius: 0 0 30px 30px;
    overflow: hidden; 
}

/* РАСКОММЕНТИТЬ ==============================================*/
.about {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    padding: 20px;
    margin: 0 auto; 
}

.about__item {
    position: relative;
    width: 200px;
    height: 200px;
}

.material__title {
    text-align: center;
    font-family: "Tektur", sans-serif;
    font-weight: normal;
    margin-top: 10px; 
} 

.pulse__image {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    animation: heartbeat 1.5s infinite;
    transform-origin: center;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(0.95); }
    50% { transform: scale(0.9); }
    75% { transform: scale(0.95); }
    100% { transform: scale(1); }
} 
/* РАССКОМЕНТИТЬ=============================================== */




/* WHY WE====================================== */
.choice {
    background: #6e9987;
    padding-bottom: 0;
}

.choi {
    display: flex;
    flex-wrap: wrap;
}

.choi__item {
    flex: 1 1 0;

    text-align: center;
    padding: 50px 20px;
}

.choi__img {
    margin-bottom: 15px;
}

.choi__text {
    font-size: 13px;
    text-transform: uppercase;
    color: #fff;
}

/* STAGES====================================== */
.stages {
    display: flex;
    gap: 40px;
}

.stages__item {
    display: flex; /* Добавляем flex для основного контейнера */
    gap: 40px; /* Отступ между картинкой и текстом */
    width: 100%; /* Занимает всю ширину */
}

.stages__left{
    flex: 0 0 50%; /* Фиксированная ширина 50% без растягивания */
    position: relative;
    min-height: 500px;
    border-radius: 10px;
    overflow: hidden;
}

.stages__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.stages__list {
    flex: 1; /* Занимает оставшееся пространство */
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 25px;
}

.list__item {
    display: flex;
    gap: 15px;
    background: #fff;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.list__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.number {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    background: #6e9987;

    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list__text {
    flex: 1;
}

.title__text {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;

    text-transform: uppercase;
    font-family: "Tektur", sans-serif;
    font-weight: 600;
}

.text__text {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* WORKS====================================== */
.works {
    display: flex;
}

.works__col {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
}

.works__item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1; 

    background: #6e9987;

}

.works__img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.3s ease;

}

/* Стили для модального окна работ - ИСПРАВЛЕННЫЕ ОТСТУПЫ */
.works-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.works-modal .modal-content {
    margin: auto;
    display: block;
    max-width: 80%; /* Уменьшил ширину чтобы было место для стрелок */
    max-height: 80vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoom 0.3s ease;
    border-radius: 5px;
    object-fit: contain;
    background: transparent;
    
    /* Добавляем отступы чтобы не перекрывалось стрелками */
    margin-left: 30px;
    margin-right: 30px;
}

/* КРЕСТИК НАД ПРАВОЙ СТРЕЛКОЙ */
.works-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #6e9987 !important;
    border: none !important;
    font-size: 35px !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    text-decoration: none;
}

.works-modal .modal-close:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: #333 !important;
    transform: scale(1.1);
}

/* СТРЕЛКИ */
.works-modal .modal-prev,
.works-modal .modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8) !important;
    color: #6e9987 !important;
    border: none !important;
    font-size: 30px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.works-modal .modal-prev:hover,
.works-modal .modal-next:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: #333 !important;
    transform: translateY(-50%) scale(1.1);
}

.works-modal .modal-prev {
    left: 30px;
}

.works-modal .modal-next {
    right: 30px;
}

.modal-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    font-size: 16px;
    background: rgba(110, 153, 135, 0.9);
    padding: 10px 20px;
    border-radius: 8px;
    max-width: 80%;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Адаптивность */
@media (max-width: 768px) {
    .works-modal .modal-content {
        max-width: 85%; /* Увеличиваем ширину на мобильных */
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .works-modal .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .works-modal .modal-prev,
    .works-modal .modal-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
    
    .works-modal .modal-prev {
        left: 10px;
    }
    
    .works-modal .modal-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .works-modal .modal-content {
        max-width: 90%; /* Еще больше на маленьких экранах */
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .works-modal .modal-close {
        top: 5px;
        right: 10px;
        font-size: 25px !important;
        width: 35px !important;
        height: 35px !important;
    }
    
    .works-modal .modal-prev,
    .works-modal .modal-next {
        width: 35px !important;
        height: 35px !important;
        font-size: 18px !important;
    }
    
    .works-modal .modal-prev {
        left: 10px;
    }
    
    .works-modal .modal-next {
        right: 10px;
    }
}

/* SERVICES====================================== */
.services {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0 -15px; /* Компенсируем padding элементов */
}

.services__link {
    width: 33.33333%;
    padding: 0 15px;
    margin-bottom: 40px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.services__link:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.services__item {
    width: 100%;
    padding: 30px 20px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.services__link:hover .services__item {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background-color: #f9f9f9;
}

.services__icon {
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
}

.services__title {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    font-family: "Tektur", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

.services__text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* PROJECTS====================================== */
.projects__section {
    /* padding: 30px 0; */
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 15px;
    margin: 0;
}

.projects__section--baths {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);;
}

.projects__section--one-story {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.projects__section--two-story {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);;
}

/* Подзаголовки разделов */
.projects__subheader {
    text-align: center;
    margin-bottom: 15px;
}

.projects__subtitle {
    font-family: "Caveat", cursive;
    font-size: 36px;
    color: #6e9987;
    margin-bottom: 0;
}

.projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.projects__card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* =================================================== */

.projects__card.hidden {
    display: none;
}

.projects__card.visible {
    display: block;
}

.show-more-container {
    text-align: center;
    margin-top: 15px;
    padding: 20px 0;

}

.show-more-btn {
    background-color: #6e9987;
    color: white;
    padding: 12px 60px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: "Tektur", sans-serif;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.show-more-btn:hover {
    background-color: #5a7c6d;
}

/* Добавьте в style.css */
.projects__card {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.projects__card.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.projects__card.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Для плавного появления при показе всех проектов */
.projects__card.visible:nth-child(n+5) {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================================== */


.gallery {
    padding: 15px;
}

.projects__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    cursor: pointer;
}

.thumbnails {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.thumbnails img {
    width: 24%;
    aspect-ratio: 4/3; /* соотношение сторон 4:3 */
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}


.thumbnails img:hover {
    opacity: 0.7;
}

.description {
    padding: 0 15px 15px;
}

.description h3 {
    margin-top: 0;
    font-family: "Tektur", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
}

.description p {
    color: #333;
    margin: 10px 0;
}

.price {
    font-weight: bold;
    color: #6e9987 !important;
    font-size: 1.1em;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal__content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.close, .prev, .next {
    position: absolute;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close {
    right: 35px;
    top: 15px;
}

.prev, .next {
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    user-select: none;
}

.prev {
    left: 15px;
}

.next {
    right: 15px;
}

.close:hover, .prev:hover, .next:hover {
    color: #fff;
}

/* Стили для модального окна информации */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.8);
    overflow: auto;
}

.information-modal {
    background-color: #fff;
    margin: auto;
    padding: 25px 30px; /* Уменьшили отступы */
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 8px 32px rgba(51, 51, 51, 0.2);
    border: 2px solid #6e9987;
    
    /* Центрирование */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.information-modal h3 {
    margin-bottom: 12px; /* Уменьшили отступ */
    color: #333;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.information-modal p {
    color: #666;
    margin-bottom: 0;
    font-size: 15px;
    text-align: center;
}

.close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    color: #6e9987;
    transition: color 0.3s ease;
    z-index: 1001;
}

.close:hover {
    color: #333;
}

.messenger-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Уменьшили расстояние между кнопками */
    margin: 20px 0; /* Уменьшили отступы */
}

.messenger-btn {
    display: flex;
    align-items: center;
    padding: 14px 18px; /* Уменьшили кнопки */
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #fff;
    background: #6e9987;
    text-align: center;
    justify-content: center;
}

.messenger-btn i {
    margin-right: 10px;
    font-size: 18px;
}

.messenger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110, 153, 135, 0.4);
    background: #5d8877;
}

.whatsapp-btn:hover {
    background: #1ea952 !important;
}

.telegram-btn:hover {
    background: #0077b5 !important;
}

.vk-btn:hover {
    background: #3a6390 !important;
}

.email-btn:hover {
    background: #d33427 !important;
}

.whatsapp-btn {
    background: #25D366;
}

.telegram-btn {
    background: #0088cc;
}

.vk-btn {
    background: #4C75A3;
}

.email-btn {
    background: #EA4335;
}

.communication-info {
    text-align: center;
    margin-top: 20px; /* Уменьшили отступ */
    padding-top: 18px; /* Уменьшили отступ */
    border-top: 1px solid #e0e0e0;
}

.communication-info p {
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 15px;
}

.communication-numbers {
    font-size: 17px;
    font-weight: 600;
    color: #6e9987;
    margin-top: 8px;
    line-height: 1.4;
}



/* copyright============================ */
.copyright {
    padding: 20px 0;
    border-top: 1px solid #afabab81;
    text-align: center;
}

/* Общие стили для секции контактов */
.contacs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center; /* Добавлено для вертикального выравнивания по центру */
}

/* .contacs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    flex: 1;
    min-width: 300px;
} */

.contacs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    flex: 1;
    min-width: 300px;
}

/* .contacs__inner {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
} */

.contacs__inner {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 150px;
    justify-content: center;
}

.contacs__inner.double-height {
    grid-row: span 2;
    min-height: 320px;
    justify-content: flex-start;
}

/* Расположение блоков в сетке */
.contacs__inner:nth-child(1) { /* Телефоны */
    grid-column: 1;
    grid-row: 1;
}

.contacs__inner:nth-child(2) { /* Email */
    grid-column: 2;
    grid-row: 1;
}

.contacs__inner:nth-child(3) { /* Адрес */
    grid-column: 1;
    grid-row: 2;
}

.contacs__inner:nth-child(4) { /* Проектировщик */
    grid-column: 1;
    grid-row: 3;
}

.contacs__inner:nth-child(5) { /* QR-код */
    grid-column: 2;
    grid-row: 2 / span 2;
}

/* Стили для блока проектировщика */
.contacs__inner .phone-number {
    font-weight: 600;
    color: #6e9987;
    margin-top: 5px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .contacs {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .contacs__inner {
        grid-column: 1 !important;
        grid-row: auto !important;
        min-height: auto;
    }
    
    .contacs__inner.double-height {
        grid-row: auto;
        min-height: auto;
    }
}

.contacs__icon {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #6e9987;
}

.contacs__title {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.contacs__text {
    margin: 5px 0;
    color: #666;
    line-height: 1.5;
}

/* Стили для блока с QR-кодом */
/* .qr-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); 
    
}*/

.qr-code {
    width: 150px;
    height: 150px;
    margin: 10px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.qr-code img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Стили для карты */
.contacs__map {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 400px; /* Фиксированная высота */
    display: flex; /* Добавлено */
    align-items: center; /* Добавлено для вертикального центрирования */
}

.contacs__map > div {
    width: 100%;
    height: 100%;
    position: relative;
}

.contacs__map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phone-number {
    margin: 0 !important;
    padding: 5px 0;
}

/* Стили для заголовка секции */
.section__subtitle {
    text-align: center;
    color: #666;
    margin-top: 10px;
    font-size: 16px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contacs-wrapper {
        flex-direction: column;
    }
    
    .contacs {
        grid-template-columns: 1fr;
    }
    
    .contacs__inner {
        padding: 15px;
    }
    
    .contacs__map {
        height: 300px; /* Уменьшаем высоту на мобильных */
    }
}

.section__new {
    display: flex;
    gap: 40px; /* расстояние между картинкой и аккордеоном */
    align-items: flex-start; /* выравнивание по высоте */
}

.section__new__right {
    flex: 0 0 calc(50% - 20px);
    padding: 0 15px;
}

.section__new__left {
    flex: 0 0 calc(50% - 20px);
    height: 500px; /* фиксированная высота */
    overflow: hidden;
    border-radius: 10px;
    position: sticky;
    top: 20px; /* прилипает при прокрутке */
    
    transform: translateX(20px);
}

.section__new__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.accordion__item {
    margin-bottom: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px; /* Добавим скругление */
    overflow: hidden; /* Обрезаем содержимое */
}

.accordion__item.active .accordion__content {
    display: block;
}

.accordion__item.active .accordion__header {
    border-bottom-color: #e5e5e5;
    background-color: #f9f9f9; /* Подсветка активного */
}

.accordion__item.active .accordion__header::after {
    transform: translateY(-50%) rotate(-45deg);
    margin-top: 5px;
}

.accordion__header {
    /* padding: 15px 20px 15px 65px; */
    position: relative;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease; 

    display: flex;
    gap: 15px;
    background: #fff;
    border-radius: 8px;
    padding: 5px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accordion__header:hover {
    background-color: #f5f5f5;
}

.accordion__header::after {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    border-top: 3px solid #ccc;
    border-right: 3px solid #ccc;
    position: absolute;
    top: 50%;
    right: 20px;
    z-index: 1;
    transform: translateY(-50%) rotate(135deg);
    transition: transform 0.3s ease;
}

.accordion__mun {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    background: #6e9987;

    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 5px;
    margin-left: 5px;
}

.accordion__content {
    padding: 15px 20px;
    display: none;
    background-color: #fff;
}

.accordion__title {
    color: #333;
    font-family: "Caveat", cursive;
    font-size: 26px;
    margin: 0;
}

/* =========================================================== */

/* Стили для страниц услуг */
.service-detail {
    padding: 80px 0;
}

.service-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.service-image {
    flex: 0 0 50%;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
}

.service-description {
    flex: 1;
}

.service-description h2 {
    color: #6e9987;
    margin-bottom: 20px;
}

.service-description h3 {
    margin: 25px 0 15px;
    color: #333;
}

/* ============================================== */
.about-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.about__header {
    text-align: center;
    margin-bottom: -10px;
}

.about__header h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-family: "Tektur", sans-serif;
    font-weight: 200;
}

.about__header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #6e9987;
}

.subtitle {
    font-size: 18px;
    color: #6e9987;
    margin-top: 20px;
    font-family: "Montserrat", sans-serif;
}

.about__content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.about__text {
    flex: 1;
    min-width: 300px;
}

.about__text h3 {
    color: #6e9987;
    margin: 30px 0 15px;
    font-size: 27px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
}

.about__text p {
    margin-bottom: 20px;
    text-align: justify;
}

/* Сетка материалов */
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.material-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.material-item h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.material-item p {
    text-align: left;
}

/* Список преимуществ */
.advantages-list {
    list-style-type: none;
    margin: 20px 0;
}

.advantages-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.advantages-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.conclusion {
    font-style: italic;
    background-color: #f4f6f7;
    padding: 20px;
    border-left: 4px solid #6e9987;
    margin-top: 30px;
}

/* Блок с изображениями */
.about__images {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.image-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.image-placeholder {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.image-1 {
    background-image: url('../css/img/photo_about/brys.jpg'); 
}

.image-2 {
    background-image: url('../css/img/photo_about/kirpich.jpeg');
}

.image-3 {
    background-image: url('../css/img/photo_about/besedka.jpg'); 
} 

.image-4 {
    background-image: url('../css/img/photo_about/karkas.jpeg'); 
} 


.image-card p {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: #6e9987;
}

/* ============================================================== */
/* услуги в фундаменте */

.yslygi-section {
    padding: 80px 0;
}

.yslygi_1_section_title {
    text-align: right;
    font-size: 70px;
    margin-top: -30px;
    margin-bottom: 5px;
    color: #6e9987;
    font-weight: 800;
    font-family: "Caveat", cursive;
}

.yslygi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.yslygi-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.yslygi-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.yslygi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6e9987, #add2c3);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.yslygi-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.yslygi-card:hover .yslygi-img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
}

.yslygi-title {
    color: #6e9987;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.yslygi-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6e9987, #add2c3);
}

.yslygi-description {
    color: #6e9987;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 500;
}

.yslygi-list {
    list-style: none;
    padding: 0;
}

.yslygi-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #4a5568;
    border-bottom: 1px solid #fff;
}

.yslygi-list li:last-child {
    border-bottom: none;
}

.yslygi-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #6e9987, #add2c3);
    color: fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.guarantee-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.guarantee-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.guarantee-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #6e9987;
    margin: 0;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 768px) {
    .yslygi-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .yslygi-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .yslygi-card {
        margin-bottom: 20px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .guarantee-section {
        padding: 30px 20px;
    }
    
    .guarantee-section p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .yslygi-title {
        font-size: 1.3rem;
    }
    
    .card-image {
        height: 150px;
    }
}
/* ============================================================== */

/* ============================================================== */
/* услуги в фундаменте */

.yslygi_1-section {
    padding: 80px 0;
}

.section-title {
    font-family: "Tektur", sans-serif;
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 60px;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #6e9987;
}

.section-title .accent {
    color: #6e9987;
    font-family: "Caveat", cursive;
    font-size: 4rem;
    font-weight: 400;
}

.yslygi-1-block {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    padding: 40px 0;
    border-bottom: 2px solid #f0f0f0;
}

.yslygi-1-block:last-of-type {
    border-bottom: none;
    margin-bottom: 60px;
}

.yslygi-1-block.reverse {
    flex-direction: row-reverse;
}

.yslygi-1-content {
    flex: 1;
}

.yslygi-1-image {
    flex: 1;
}

.yslygi-1-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.yslygi-1-title {
    font-family: "Tektur", sans-serif;
    color: #333;
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.yslygi-1-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #6e9987;
}

.yslygi-1-description {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 25px;
    line-height: 1.6;
    font-weight: 400;
}

.yslygi-1-list {
    list-style: none;
    padding: 0;
}

.yslygi-1-list li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

.yslygi-1-list li:last-child {
    border-bottom: none;
}

.yslygi-1-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background: #6e9987;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.yslygi-1-list strong {
    color: #333;
    font-weight: 600;
}

.guarantee-block {
    background: #6e9987;
    color: #fff;
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    margin-top: 40px;
}

.guarantee-title {
    font-family: "Tektur", sans-serif;
    font-size: 25px;
    margin-bottom: 25px;
    font-weight: 600;
}

.guarantee-text {
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .yslygi-1-block {
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .yslygi-1-title {
        font-size: 2rem;
    }
    
    .yslygi-1-image img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .yslygi_1-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .section-title .accent {
        font-size: 3rem;
    }
    
    .yslygi-1-block {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
        padding: 30px 0;
    }
    
    .yslygi-1-block.reverse {
        flex-direction: column;
    }
    
    .yslygi-1-image {
        width: 100%;
    }
    
    .yslygi-1-image img {
        height: 300px;
    }
    
    .yslygi-1-title {
        font-size: 1.8rem;
    }
    
    .yslygi-1-description {
        font-size: 1.1rem;
    }
    
    .guarantee-block {
        padding: 40px 25px;
    }
    
    .guarantee-title {
        font-size: 2rem;
    }
    
    .guarantee-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-title .accent {
        font-size: 2.5rem;
    }
    
    .yslygi-1-title {
        font-size: 1.6rem;
    }
    
    .yslygi-1-image img {
        height: 250px;
    }
    
    .yslygi-1-list li {
        padding-left: 30px;
        font-size: 0.95rem;
    }
    
    .guarantee-title {
        font-size: 1.7rem;
    }
    
    .guarantee-icon {
        font-size: 3rem;
    }
}
/* ============================================================ */


/* Стили для страницы бань */
.bath-page {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.bath-header {
    text-align: center;
    margin-bottom: 40px;
}

.bath-header h1 {
    font-family: "Tektur", sans-serif;
    font-size: 42px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.bath-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #6e9987;
}

.bath-header p {
    font-size: 18px;
    color: #6e9987;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Фильтры */
/* Стили для фильтрации */
.bath-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #6e9987;
    background: white;
    color: #333;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.filter-btn:hover {
    background: #f8f8f8;
    border-color: #6e9987;
}

.filter-btn.active {
    background: #6e9987;
    color: white;
    border-color: #6e9987;
}

/* Стили для сетки бань */
.baths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.bath-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.bath-card.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.bath-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Сетка бань */
.baths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.bath-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    display: flex; /* Добавляем flex */
    flex-direction: column; /* Вертикальное направление */
    height: 100%; /* Занимает всю доступную высоту */
}

.bath-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.bath-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.bath-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.bath-card:hover .bath-image img {
    transform: scale(1.05);
}

.bath-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #6e9987;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.bath-content {
    padding: 20px;

    display: flex; /* Добавляем flex */
    flex-direction: column; /* Вертикальное направление */
    flex-grow: 1; /* Занимает всё доступное пространство */
}

.bath-title {
    font-family: "Tektur", sans-serif;
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.bath-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.bath-spec {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.bath-spec i {
    margin-right: 5px;
    color: #6e9987;
}

.bath-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.bath-price {
    font-family: "Tektur", sans-serif;
    font-size: 22px;
    color: #6e9987;
    font-weight: 600;
    margin-bottom: 20px;
}

.bath-actions {
    display: flex;
    justify-content: space-between;

    margin-top: auto; /* Прижимает к низу */
}

.btn-details {
    padding: 10px 20px;
    background: #6e9987;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-details:hover {
    background: #5a7c6d;
}

.btn-favorite {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: none;
    border-radius: 50%;
    color: #6e9987;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-favorite:hover {
    background: #6e9987;
    color: white;
}

/* Модальное окно для бань - ИСПРАВЛЕННЫЙ КРЕСТИК */
.bath-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 50px auto;
    max-width: 1000px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/* КРЕСТИК НАД ПРАВОЙ СТРЕЛКОЙ */
.modal-close {
    position: absolute;
    top: 20px;
    right: 30px; /* Такая же позиция как у правой стрелки */
    background: rgba(255, 255, 255, 0.9) !important;
    color: #6e9987 !important;
    border: none !important;
    font-size: 35px !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    text-decoration: none;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: #333 !important;
    transform: scale(1.1);
}

/* СТРЕЛКИ */
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8) !important;
    color: #6e9987 !important;
    border: none !important;
    font-size: 30px !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-arrow:hover {
    background: rgba(255, 255, 255, 1) !important;
    color: #333 !important;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px; /* Такая же позиция как у крестика */
}

/* Галерея в модальном окне */
.modal-gallery {
    position: relative;
    height: auto;
    min-height: 300px;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    
    /* Добавляем отступы чтобы не перекрывалось стрелками */
    padding: 0 60px;
}

.modal-main-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.modal-thumbnails {
    display: flex;
    padding: 15px;
    gap: 10px;
    overflow-x: auto;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

.modal-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.modal-thumbnail:hover,
.modal-thumbnail.active {
    opacity: 1;
    border: 2px solid #6e9987;
}

.modal-info {
    padding: 25px;
}

/* Адаптивность для модального окна проектов */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        width: calc(100% - 40px);
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .modal-arrow {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px; /* Такая же позиция как у крестика */
    }
    
    .modal-gallery {
        padding: 0 40px;
        max-height: 50vh;
    }
    
    .modal-main-image {
        max-height: 50vh;
    }
    
    .modal-thumbnail {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 10px auto;
        width: calc(100% - 20px);
    }
    
    .modal-close {
        top: 5px;
        right: 10px;
        font-size: 25px !important;
        width: 35px !important;
        height: 35px !important;
    }
    
    .modal-arrow {
        width: 35px !important;
        height: 35px !important;
        font-size: 18px !important;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px; /* Такая же позиция как у крестика */
    }
    
    .modal-gallery {
        padding: 0 30px;
        max-height: 40vh;
    }
    
    .modal-main-image {
        max-height: 40vh;
    }
    
    .modal-info {
        padding: 15px;
    }
}

.modal-title {
    font-family: "Tektur", sans-serif;
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
}

.modal-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.modal-spec-item {
    display: flex;
    flex-direction: column;
}

.modal-spec-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.modal-spec-value {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.modal-description {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #555;
}

.modal-price {
    font-family: "Tektur", sans-serif;
    font-size: 28px;
    color: #6e9987;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-consult {
    padding: 12px 30px;
    background: #6e9987;
    color: white;
    border: none;
    border-radius: 5px;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;

    text-decoration: none;
}

.btn-consult:hover {
    background: #5a7c6d;
}

/* Стили для галереи бань */
.bath-gallery {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.bath-gallery .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bath-gallery:hover .main-image {
    transform: scale(1.05);
}

.gallery-thumbnails {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bath-gallery:hover .gallery-thumbnails {
    opacity: 1;
}

.gallery-thumbnails .thumbnail {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-thumbnails .thumbnail:hover {
    border-color: #6e9987;
}

/* Убираем горизонтальную полосу перед кнопкой "Показать еще" */
.show-more-container {
    border-top: none !important;
    padding-top: 20px;
    margin-top: 20px;
}

/* Альтернативный вариант - если полоса создается другим элементом */
.projects__section {
    border-bottom: none !important;
}

.projects__section--baths,
.projects__section--wood-houses,
.projects__section--stone-houses,
.projects__section--frame-houses {
    border-bottom: none !important;
}

/* Индикатор количества фото */
.photo-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Стили для скрытых карточек */
.bath-card--hidden {
    display: none;
}

/* Анимация появления карточек */
.bath-card {
    transition: all 0.3s ease-in-out;
}

/* Контейнер для кнопки "Показать еще" */
.show-more-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.show-more-btn {
    background: #6e9987;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.show-more-btn:hover {
    background: #5a7c6d;
}

/* ВТОРОЙ ВАРИАНТ */

.faq-section {
    padding: 40px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto 50px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-question {
    padding: 20px 25px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Tektur", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #6e9987; 
    transition: all 0.3s ease;
    border-left: 4px solid #6e9987; 
}

.faq-question:hover {
    background-color: #f8f9fa;
    color: #5a7c6d; 
    border-left-color: #5a7c6d;
}

.faq-toggle {
    font-size: 20px;
    color: #6e9987;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-item.active .faq-question {
    background-color: #f0f7f4; 
    color: #5a7c6d;
    border-left-color: #5a7c6d;
}


.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #fff;
    display: none; 
}

.faq-item.active .faq-answer {
    padding: 25px;
    max-height: 1000px;
    display: block; 
}

.faq-answer p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.faq-answer ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.5;
}


.faq-cta {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, #6e9987 0%, #5a7c6d 100%);
    border-radius: 15px;
    margin-top: 40px;
    color: white;
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.faq-cta::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.faq-cta h3 {
    font-family: "Tektur", sans-serif;
    font-size: 28px;
    color: white;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.faq-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    font-size: 16px;
}

.faq-cta .btn {
    background-color: white;
    color: #6e9987;
    border: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-family: "Tektur", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.faq-cta .btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Accordion Styles */
/* Стили для FAQ аккордеона - как было до изменений */
.faq-container .accordion__item {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.faq-container .accordion__item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.faq-container .accordion__item.active .accordion__content {
    display: block;
}

.faq-container .accordion__item.active .accordion__header {
    background: #f8f9fa !important;
    border-left: 4px solid #6e9987;
}

.faq-container .accordion__item.active .accordion__header::after {
    border-color: #6e9987 !important;
}

.faq-container .accordion__header {
    padding: 20px 25px 20px 25px;
    position: relative;
    border-bottom: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-left: 4px solid #6e9987;
}

.faq-container .accordion__header:hover {
    background-color: #f8f9fa;
}

.faq-container .accordion__header::after {
    content: "";
    display: block;
    width: 15px;
    height: 15px;
    border-top: 3px solid #ccc;
    border-right: 3px solid #ccc;
    position: absolute;
    top: 50%;
    right: 20px;
    z-index: 1;
    transform: translateY(-50%) rotate(135deg);
    transition: transform 0.3s ease;
}

.faq-container .accordion__mun {
    display: none; /* Скрываем цифры */
}

.faq-container .accordion__title {
    color: #6e9987;
    font-family: "Tektur", sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    flex: 1;
}

.faq-container .accordion__content {
    padding: 0 25px;
    display: none;
    background-color: #fff;
}

.faq-container .accordion__item.active .accordion__content {
    padding: 25px;
    display: block;
}

.faq-container .accordion__content p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
}

.faq-container .accordion__content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.faq-container .accordion__content li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.5;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
}

.faq-container .accordion__content strong {
    color: #333;
    font-weight: 600;
}

/* FAQ CTA Section */
/* ===== УЛУЧШЕННЫЙ СТИЛЬ ДЛЯ FAQ ===== */
.faq-container {
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.faq-container .accordion {
    margin-bottom: 40px;
} 

.faq-container .accordion__item {
    margin-bottom: 15px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    background: #fff;
}

.faq-container .accordion__item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-container .accordion__item.active {
    box-shadow: 0 8px 25px rgba(110, 153, 135, 0.15);
    border: 1px solid rgba(110, 153, 135, 0.2);
}

.faq-container .accordion__item.active .accordion__header {
    background: #f8f9fa !important; /* Оставляем тот же цвет, что и при обычном состоянии */
    color: #333 !important; /* Оставляем обычный цвет текста */
}

.faq-container .accordion__item.active .accordion__header::after {
    border-color: #6e9987 !important; /* Оставляем обычный цвет стрелки */
}

.faq-container .accordion__header {
    padding: 22px 70px 22px 30px;
    position: relative;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
}

.faq-container .accordion__header:hover {
    background: #edf2f7;
}

.faq-container .accordion__header::after {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    border-top: 3px solid #6e9987;
    border-right: 3px solid #6e9987;
    position: absolute;
    top: 50%;
    right: 30px;
    z-index: 1;
    transform: translateY(-50%) rotate(135deg);
    transition: all 0.3s ease;
}

.faq-container .accordion__item.active .accordion__header::after {
    transform: translateY(-50%) rotate(-45deg);
    border-color: white;
}

.faq-container .accordion__mun {
    display: none;
}

.faq-container .accordion__title {
    color: #333;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-size: 17px;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-container .accordion__item.active .accordion__title {
    color: #333 !important; /* Оставляем обычный цвет заголовка */
}

.faq-container .accordion__content {
    padding: 0 30px;
    display: none;
    background-color: #fff;
    border-radius: 0 0 12px 12px;
}

.faq-container .accordion__item.active .accordion__content {
    padding: 25px 30px 30px;
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-container .accordion__content p {
    margin-bottom: 15px;
    color: #333;
    line-height: 1.6;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
}

.faq-container .accordion__content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.faq-container .accordion__content li {
    margin-bottom: 8px;
    color: #333;
    line-height: 1.5;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    position: relative;
    padding-left: 10px;
}

.faq-container .accordion__content li::before {
    content: "•";
    color: #6e9987;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.faq-container .accordion__content strong {
    color: #333;
    font-weight: 700;
}

/* FAQ CTA Section */
.faq-cta {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #6e9987 0%, #5a7c6d 100%);
    border-radius: 20px;
    margin-top: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(110, 153, 135, 0.3);
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.faq-cta::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.faq-cta h3 {
    font-family: "Tektur", sans-serif;
    font-size: 32px;
    color: white;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.faq-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
    font-size: 18px;
    line-height: 1.6;
}

.faq-cta .btn {
    background-color: white;
    color: #6e9987;
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-family: "Tektur", sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-cta .btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== СТИЛИ ДЛЯ КОРРЕКТНОГО ПЕРЕХОДА НА СТРАНИЦЕ УСЛУГ ===== */

/* Отступы для якорных ссылок на странице услуг */
#stroitelstvo,
#proektirovanie,
#fundament,
#krovlya,
#steny,
#ingenersety {
    scroll-margin-top: 100px;
    padding-top: 80px;
    margin-top: -80px;
}

/* Обеспечиваем плавную прокрутку для всех страниц */
/* Обеспечиваем плавную прокрутку для всех страниц */
html {
    scroll-behavior: smooth;
}

/* Отключаем нативное плавное поведение для лучшего контроля через JS */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: auto;
    }
}

/* Дополнительные отступы для всех секций с якорями */
.yslygi-1-block {
    scroll-margin-top: 100px;
}

/* Убедимся, что header не перекрывает контент */
.section {
    scroll-margin-top: 80px;
}

/* Для мобильных устройств */
@media (max-width: 770px) {
    #stroitelstvo,
    #proektirovanie,
    #fundament,
    #krovlya,
    #steny,
    #ingenersety {
        scroll-margin-top: 80px;
        padding-top: 60px;
        margin-top: -60px;
    }
}

/* Добавьте в конец файла style.css */
/* ===== СТИЛИ ДЛЯ КОРРЕКТНОГО ПЕРЕХОДА НА СТРАНИЦЕ УСЛУГ ===== */

/* Отступы для якорных ссылок на странице услуг */
#stroitelstvo,
#proektirovanie,
#fundament,
#krovlya,
#steny,
#ingenersety {
    scroll-margin-top: 100px;
    padding-top: 80px;
    margin-top: -80px;
}

/* Обеспечиваем плавную прокрутку для всех страниц */
html {
    scroll-behavior: smooth;
}

/* Дополнительные отступы для всех секций с якорями */
.yslygi-1-block {
    scroll-margin-top: 100px;
}

/* Убедимся, что header не перекрывает контент */
.section {
    scroll-margin-top: 80px;
}

/* Для мобильных устройств */
@media (max-width: 770px) {
    #stroitelstvo,
    #proektirovanie,
    #fundament,
    #krovlya,
    #steny,
    #ingenersety {
        scroll-margin-top: 80px;
        padding-top: 60px;
        margin-top: -60px;
    }
}

/* Адаптивность для FAQ */
@media (max-width: 770px) {
    .faq-container .accordion__header {
        padding: 18px 60px 18px 20px;
    }
    
    .faq-container .accordion__header::after {
        right: 20px;
    }
    
    .faq-container .accordion__title {
        font-size: 16px;
    }
    
    .faq-container .accordion__item.active .accordion__content {
        padding: 20px 20px 25px;
    }
    
    .faq-cta {
        padding: 40px 25px;
    }
    
    .faq-cta h3 {
        font-size: 26px;
    }
    
    .faq-cta p {
        font-size: 16px;
    }
    
    .faq-cta .btn {
        padding: 14px 30px;
        font-size: 15px;
    }
}

@media (max-width: 575px) {
    .faq-container .accordion__header {
        padding: 15px 50px 15px 15px;
    }
    
    .faq-container .accordion__header::after {
        right: 15px;
    }
    
    .faq-container .accordion__title {
        font-size: 15px;
    }
    
    .faq-container .accordion__item.active .accordion__content {
        padding: 15px 15px 20px;
    }
    
    .faq-cta {
        padding: 30px 20px;
    }
    
    .faq-cta h3 {
        font-size: 24px;
    }
    
    .faq-cta p {
        font-size: 15px;
    }
    
    .faq-cta .btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .baths-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .bath-header h1 {
        font-size: 32px;
    }
    
    .bath-header p {
        font-size: 16px;
    }
    
    .bath-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .baths-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .modal-gallery {
        height: 300px;
    }
    
    .modal-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .bath-page {
        padding: 60px 0;
    }
    
    .bath-header h1 {
        font-size: 28px;
    }
    
    .bath-image {
        height: 200px;
    }
    
    .bath-content {
        padding: 15px;
    }
    
    .bath-title {
        font-size: 18px;
    }
    
    .modal-info {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .modal-gallery {
        height: 250px;
    }
}

/* ======================================================== */

/* media */
@media (max-width: 1230px) { 

    .intro__subtitle {
        font-size: 40px;
    }

    .intro__title {
        font-size: 40px;
    } 

    .section__new {
        gap: 35px;
    }
    
    .section__new__left {
        flex: 0 0 calc(50% - 17px);
        height: 480px;
        transform: translateX(15px);
    }
    
    .section__new__right {
        flex: 0 0 calc(50% - 17px);
    }

}

@media (max-width: 990px) { 

    .about__content {
        flex-direction: column;
    }
    
    .about__images {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .image-card {
        flex: 0 0 calc(50% - 15px);
    }

    .services__link {
        width: 50%;
    }

    .section__new {
        flex-direction: column; 
        gap: 30px;
    }
    
    .section__new__left {
        flex: none;
        width: 100%;
        height: 400px;
        position: static; 
        transform: none; 
        order: -1; 
    }

    .section__new__right {
        flex: none;
        width: 100%;
        padding: 0 20px;
    }


    .projects__section {
        padding: 40px 0;
    }
    
    .projects__subtitle {
        font-size: 30px;
    }
    
    .projects__description {
        font-size: 16px;
        padding: 0 20px;
    }


    .container {
        padding: 0 25px; 
    }

    .nav__link {
        font-size: 10px;
        padding: 10px 15px; 
    }

    .intro__subtitle {
        font-size:35px;
    }

    .intro__title {
        font-size: 35px;
    }

    .choi {
        justify-content: center;
    }

    .choi__item {
        flex: none;
        width: 33.33333%;
        padding: 10px 35px;

        border-bottom: 1px solid #fff;
        border-right: 1px solid #fff;
    }

    .choi__item:last-child {
        border-right: none;
    }


    .services__item {
        width: 50%;

        padding: 0 15px;
        margin: 15px 0;
    }

    .services__icon {
        width: 40px;  
        height: 40px; 
        margin-bottom: 10px; 
    }

    .services__title {
        font-size: 14px;
    }

    .services__text {
        font-size: 13px;
    }

    .stages__item {
        flex-direction: column; 
    }
    
    .stages__left {
        flex: 0 0 auto; 
        width: 100%; 
        min-height: 300px; 
    }
    
    .stages__list {
        padding-top: 20px; 
        padding-left: 40px;
        padding-right: 40px;
    }

    .contacs__title {
        font-size: 25px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .contacs__text {
        font-size: 20px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .yslygi_1_section_title {
        font-size: 65px;    
    }
}

@media (max-width: 770px) { 

    .phone-icon {
        display: inline-block !important;
    }
    
    .nav.active .phone-icon {
        display: inline-block !important;
        color: #fff !important; /* Белый цвет как у других иконок */
    }
    
    .nav.active .phone-icon:active {
        color: #333 !important;
        background-color: rgba(255, 215, 0, 0.1);
    }
    
    /* Также убедимся, что все иконки в мобильном меню белые */
    .nav.active .nav__link__icon {
        color: #fff !important;
    }
    
    .nav.active .nav__link__icon:active {
        color: #333 !important;
        background-color: rgba(255, 215, 0, 0.1);
    }

    .service-content {
        flex-direction: column;
    }
    
    .service-image {
        flex: none;
        width: 100%;
    }

    .about__header h2 {
        font-size: 28px;
    }
    
    .image-card {
        flex: 0 0 100%;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }

    .section__new {
        gap: 25px;
    }
    
    .section__new__left {
        height: 350px;
    }
    
    .section__new__right {
        padding: 0 15px;
    }
    
    .header__text p {
        font-size: 13px;
        padding-right: 40px;
        padding-left: 30px;
    }

    .header__intro {
        padding-top: 7px;
    }

    .intro {
        min-height: 650px;
    }

    .header__social__new {
        display: none;
    }

    .logo img {
        margin-top: 8px;
        height: 50px; 
        width: auto; 

        cursor: pointer;
    }

    /* Стили для мобильного меню */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: rgba(110, 153, 135, 0.95); 
        width: 100%;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 0 0 15px 15px;
        padding: 10px 0;
        text-align: center;
    }

    .nav__link {
        color: #fff;
        display: block;
        font-size: 16px;
        margin: 0;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .nav__link:last-child {
        border-bottom: none;
    }

    .nav__link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    /* Контейнер для иконок в один ряд */
    .nav__icons-row {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    } 

    /* Стили для иконок в одном ряду */
    .nav__link__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 20px;
        margin: 0;
        padding: 10px 15px;
        text-decoration: none;
        transition: all 0.3s ease;
        flex: 1;
        max-width: 60px;
        border-bottom: none !important;
    }

    .nav__link__icon:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
        transform: scale(1.1);
    }

    /* Активное состояние для всех ссылок */
    .nav__link:active,
    .nav__link__icon:active {
        color: #333 !important;
        background-color: rgba(255, 215, 0, 0.1);
    }

    /* Выпадающее меню в мобильной версии */
    .nav__dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: rgba(90, 124, 109, 0.9);
        padding: 0;
    }

    .nav__dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        color: #fff;
        padding: 12px 40px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        font-size: 14px;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .dropdown-toggle::after {
        content: ' ▼';
        font-size: 10px;
        float: right;
        margin-top: 2px;
    }

    /* Гарантия что иконка телефона отображается и имеет правильный цвет */
    .phone-icon {
        display: flex !important;
        color: #fff !important;
    }

    /* Убедимся что все элементы меню выровнены одинаково */
    .nav__link,
    .dropdown-toggle {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    /* Специфичные стили для активного меню */
    .nav.active {
        display: block;
        box-shadow: 0 5px 15px rgba(51, 51, 51, 0.2);
    }

    .social__item {
        color: #fff;
        text-decoration: none;
        font-size: 15px;
        padding-left: 10px;
        margin-bottom: 10px;
    }

    .nav-toggle {
        display: block;
    }
    
    .about {
        gap: 20px; 
        padding: 15px;
    }
    
    .about__item {
        width: calc(50% - 20px); 
        height: auto; 
        aspect-ratio: 1/1; 
        max-width: 180px; 
    }

    


    /* ========================================================== */
    .section {
        padding-top: 80px; 
        margin-top: -40px; 
    }

    .section__new {
        flex-direction: column; 
        margin: 0 -10px;
    }
    
    .section__new__item {
        width: 100%; 
        padding: 0 10px;
    }
    
    .section__new__item:first-child {
        margin-bottom: 30px; 
        justify-content: center;
    }

    .section__new__img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 0 auto; 
    }

    .works {
        flex-wrap: wrap;
    }

    .works__col {
        flex: none;
        width: 50%;
    }
    
} 

@media (max-width: 575px) { 

    .services__link {
        width: 100%;
    }

    .projects__section {
        padding: 30px 0;
    }
    
    .projects__subtitle {
        font-size: 26px;
    }
    
    .projects__description {
        font-size: 14px;
    }

    .section__new {
        gap: 20px;
    }
    
    .section__new__left {
        height: 280px;
        margin: 0; 
        width: 100%; 
        border-radius: 10px; 
        padding-top: 20px;
    }
    
    .section__new__img {
        border-radius: 10px; 
    }
    
    .section__new__right {
        padding: 0 1px; 
    }

    .accordion__title {
        font-size: 25px;

        margin-left: -10px;
        margin-right: 5px;
    }

    .accordion__content {
        font-size: 12px;
    }


    .intro {
        min-height: 650px;
    }
   
    .intro__subtitle {
        font-size: 30px;
    }

    .intro__title {
        font-size: 30px;
    }

    /*=====================================================  */
    .section {
        padding-top: 70px;
        margin-top: -30px;
    }

    .section__title {
        font-size: 30px;
    }

    .about {
        gap: 15px;
        padding: 10px;
    }
    
    .about__item {
        width: calc(50% - 15px); 
        max-width: 150px; 
    }
    
    .material__title {
        font-size: 14px; 
    }
    
    .pulse__image {
        animation: heartbeat 2s infinite; 
    }

    .choi__item {
        width: 100%;
    }

    .services {
        justify-content: center;
    }

    .services__item {
        width: 100%;
        max-width: 400px;

        position: relative;
        margin-bottom: 30px;
    }

    .services__icon {
        position: absolute;
        top: 0;
        left: 15px;
        z-index: 1;

        margin-top: -15px;
    }

    .services__title {
        text-align: justify;
        padding-left: 55px;
    }

    .services__text {
        text-align: justify;
        hyphens: auto;
    }

    .stages__list {
        padding-top: 0px; 
        padding-left: 0px;
        padding-right: 0px;
    }

    .stages__left {
        margin-top: 10px;
        margin-bottom: -20px;
    }

    .contacs__inner {
        width: 100%;
    }

    .contacs__title {
        font-size: 20px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .contacs__text {
        font-size: 15px;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    .copyright {
        font-size: 13px;
        padding: 10px 0;
    }

    .projects {
        grid-template-columns: 1fr; 
        gap: 30px; 
        padding: 0 15px; 
    }
    
    .projects__card {
        margin-bottom: 20px; 
    }

    .yslygi_1_section_title {
        font-size: 45px;    
    }
}