
@font-face {
    font-family: Raleway;
    src: url(../font/Raleway-VariableFont_wght.ttf);
  }


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: 0;
    border: 0;
}

:root{
    --black: #000;
    --white: #fff;
    --green-accent: rgb(37, 135, 66);
    --button: rgb(143, 179, 149);
    --bg-green: rgb(210, 237, 216);
    --bg-grey: rgb(247, 247, 247);
    --footer-bg: rgb(88, 88, 88);
    --bg-light-green: rgb(236, 247, 239);


    --button-anim: #0cf;


    --max-width: 80%;
}

img{
    height: 100%;
    width: 100%;
}

body{
    font-family: Raleway, sans-serif;
    /* font-size: 1em; */
    font-size: clamp(14px, 1vw, 2vw);
    font-weight: 500;
    color: var(--black);
    flex-wrap: wrap;
    
}

body.no-scroll {
    overflow: hidden;
    /* Если на странице был скроллбар, его исчезновение может вызвать "прыжок" контента.
       Эта строка помогает минимизировать эффект в некоторых браузерах */
    touch-action: none;
}

h1{
    font-size: clamp(20px, 4vw, 5vw);
    font-weight: 700;
}

h2{
    font-size: clamp(14px, 1vw, 2vw);
    font-weight: 700;
}

.text_h1{
    font-size: clamp(20px, 4vw, 5vw);
    font-weight: 700;
}

h3{
    font-size: clamp(16px, 1.5vw, 2.5vw);
    font-weight: 600;
}

h4{
    font-size: 60px;
    font-weight: 700;
}

p, span{
    font-size: 1em;
    font-weight: 500;
}

a{
    color: var(--black);
    text-decoration: none;
}

button{
    padding: 0.5vw 2vw;
    display: inline-block;
    outline: none;
    border: none;
    border-radius: 1000px;
    background-color: var(--button);
}

button p{
    font-size: clamp(12px, 1vw, 1.5vw);
    color: var(--white);
}

.green{
    color: var(--green-accent);
}

/*header style*/

.header__container{
    height: 5vw;
    min-height: 50px;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5vw;
}

.header__nav{
    display: flex;
    align-items: center;
    gap: 5vw;
}

.header__nav a{
    display: block;
    text-decoration: none;
}

.header__logo a{
    text-decoration: none;
}
.header__logo{
    width: 45%;
    
}

.header__info{
    display: flex;
    align-items: center;
    width: 17%;
    gap: 1vw;
}

.header__info p{
    font-size: clamp(6px, 0.7vw, 0.8vw);
    width: 55%;
    color: rgb(128, 128, 128);
}

.header__logo a img{
    transition: .3s
}


.header__logo_dis a img, .header__logo_active a img:hover{
    filter: brightness(0) saturate(100%);
}

.header__logo_dis a img:hover{
    filter: none;
}

.header__mail{
    text-align: center;

}
.header__mail a:hover, .header_write_us a:hover{
    text-decoration: underline;
}

.header__phone img{
    width: 2vw;
}

.header__phone div{
    display: flex;
    align-items: end;
}

.header__phone p{
    white-space: nowrap;
}

.header__phone{
    display: flex;
    align-items: center;
    gap: 1vw;
}

.header hr{
    border: 3px solid rgb(219, 219, 219);
}

.header a, .header__mail p{
    font-size: clamp(12px, 1.2vw, 1.7vw);
    font-weight: 600;
}

.dropdown {
    position: relative;
    display: inline-block;
  }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff;
    min-width: 20vw;
    /* box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); */
    z-index: 10;
    padding-top: 1.3vw;
    padding-bottom: 16px;
    /* margin-top: 1vw; */
  }
  
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  .dropdown:hover .dropdown-content {display: block;}


/* .header__menu{
    height: 2px;
    width: 30px;
    background-color: black;
    position: relative;
    display: none;
}

.header__menu::before, .header__menu::after{
    content: "";
    position: absolute;
    height: 2px;
    width: 30px;
    background-color: black;
    top: 5px;
    left: 0;

}

.header__menu::after{
    top: -5px;
} */
 
.header__menu{
    display: none;
}

@media (max-width: 1000px) {
    .header__container{
        gap: 4vw;
    }

    .dropdown-content {
        min-width: 30vw;
    }
}

@media (max-width: 900px){
    .header__phone img {
        width: 2.5vw;
    }

    .header__logo {
        width: 100%;
    }

    .header__info{
        display: block;
        width: 8%;
    }

    .header__info p{
        display: none;
    }

    .header__container, .header__nav{
        gap: 3vw;
    }
}

@media (max-width: 700px) {
    .header_write_us{
        display: none;
    }
    .header__container, .header__nav{
        gap: 5vw;
    }
}

@media (max-width: 600px) {
    .header__nav{
        display: none;
    }

    .header__menu{
        display: block;
    }
    .header__container {
        max-width: 90%;
        justify-content: space-between;
    }

    .header__phone img {
        width: 20px;
    }

    .header__logo {
        width: 50px;
    }
}

.sidenav {
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 100;
    top: 0;
    right: -250px;
    background-color: var(--white);
    overflow-x: hidden;
    transition: 0.5s;
  }

.sidenav__container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 80%;
    margin: 0 auto;
  }

.sidenav__container a{
    padding: 0 !important;
}

.sidenav a {
    padding: 12px 24px;
    text-decoration: none;
    font-size: 12px;
    color: #555555;
    display: block;
    transition: 0.3s;
}

.sidenav a, .details__title p{
    transition: .3s;
}

.sidenav a:hover, .details__title p:hover{
    color: black;
}


.sidenav .closebtn {
    font-size: 36px;
    margin-left: 50px;
}

.details {
    position: relative;
    transition: 0.3s;
}

.details::after {
    position: absolute;
    right: 24px;
    top: 15px;
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #818181;
    border-bottom: 2px solid #818181;
    transform: rotate(-45deg);
    transform-origin: center;
    transition: .3s;
}

.details[open]::after {
    transform: rotate(45deg);
}

.details[open] {
    padding-bottom: 50px;
}

.details__title {
    padding: 12px 24px;
    font-size: 12px;
    cursor: pointer;
    list-style: none;
    color: #818181;
    transition: .3s;
}

.details__title::-webkit-details-marker {
    display: none;
}

.details__content {
    padding: 0 12px;
    font-size: 18px;
    margin-bottom: -50px;
    transition: 0.3s
}


details[open] .details__content {
    animation: sweep .5s ease-in-out;
}
  
@keyframes sweep {
    0%    {opacity: 0; transform: translateX(-10px)}
    100%  {opacity: 1; transform: translateX(0)}
}



.bg::after{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    content: "";
    opacity:0.5;
    background-color: Black;
    z-index:10;
}

/*MAIN STYLE*/


.align{
    /* max-width: var(--max-width); */
    margin: 0 auto;
}


/*background_image*/

.background_image{
    background-image: url("../img/main_background.png") !important;
    background-size: cover !important;
    background-position: center !important;
    width: 100%;
    height: 30vw !important;
    text-align: center;
    color: var(--white);
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    padding: 0 20vw;
    /* min-height: 300px; */
}

.background_image2{
    background-image: url("../img/main_background2.png") !important;
}

.background_image3{
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../img/main_background3.jpg") !important;


}

.background_image h1{
    font-size: clamp(10px, 2vw, 3vw);
    margin-bottom: 5vw;
}
.background_image p{
    font-size: clamp(8px, 1vw, 2vw);
}

@media (max-width: 1000px) {
    .background_image{
        height: 50vw !important;
        padding: 0 10vw;
    }
    .background_image h1{
        font-size: clamp(15px, 3vw, 4vw);
        margin-bottom: 5vw;
    }
    .background_image p{
        font-size: clamp(10px, 2vw, 3vw);
    }
}


/*advantages*/

section{
    text-align: center;
    padding: 30px 0;
    margin: 0 auto;
}



.advantages h3{
    padding: 20px 0;
}

.advantages__container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    padding-top: 50px;
    /* width: 80%; */
    margin: 0 auto;

}

.advantages__item{
    width: 30%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.advantages__icons{
    /* width: 155px;
    height: 155px; */
    width: 8vw;
    height: 8vw;
    aspect-ratio: 1;
    margin: 0 auto;
    display: flex;
    align-items: center;
}


@media (max-width: 1000px) {
    
    

    .advantages__item{
        max-width: 40%;
    }
}


@media (max-width: 600px) {
    .advantages__container{
        padding-top: 20px;   
        gap: 1rem;
    }

    .advantages__item{
        width: 80%;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }


    .advantages__icons{
        width: 20vw;
        height: 20vw;
    }
}

@media (max-width: 500px) {
    .advantages__container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .advantages__item {
        width: 70%;
        max-width: 100%;
    }
}






/*services*/

.services{
    background-color: var(--bg-grey);
}

.collegs{
    background-color: var(--bg-grey);
}



.services__container{
    padding: 0 2vw;
    display: flex;
    justify-content: flex-start;
    margin: 50px auto;
    gap: 3vw;
    /* flex-wrap: wrap; */


    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    user-select: none;
    cursor: pointer;

    scrollbar-width: none;

   
}

.services__container::-webkit-scrollbar{
    display: none;

}

.services__item{
    min-width: 15vw;
    height: 15vw;

    text-align: center;
    background-color: var(--bg-green);
    border-radius: 10%;
    padding: 17px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;

}


.services__item:nth-child(1) .services_icons{
    width: 60%;
    height: 60%;
}

.services__item img{
    height: auto;
    -webkit-user-drag: none;
}

.services__item button{
    margin: 13px auto;
}

.services_icons{
    width: 50%;
    height: 50%;
    margin-top: 10%;
    display: flex;
    align-items: center;
}



.services__item:nth-child(2n){
    margin-top: 100px;
}


@media (max-width: 1700px) {
    .services__item{
        padding: 10px;
    }

    
}

@media (max-width: 1400px) {
    .services__container{
        flex-wrap: wrap;
        justify-content: center;
    }

    .services__item {
        width: 23vw;
        height: 23vw;
        margin: 0 !important;
    }

    .services h2{
        font-size: clamp(14px, 1.5vw, 2vw);;
    }

    .services button{
        padding: 0.9vw 3vw;
    }

    .services button p {
        font-size: clamp(12px, 1.2vw, 1.5vw);
    }
}


@media (max-width: 1000px) {
    .services__item {
        width: 25vw;
        height: 25vw;
    }

    .services__item:nth-child(5) .services_icons{
        width: 40%;
        height: 40%;
    }



}

@media (max-width: 700px) {
    .services__item {
        width: 40vw;
        height: 40vw;
    }

    .services__item:nth-child(5) .services_icons{
        width: 50%;
        height: 50%;
    }
}

@media (max-width: 500px) {

    .services__container{
        gap: 2rem;
    }
    .services__item {
        width: 70vw;
        height: 55vw;
        border-radius: 30px;
    }

    .services_icons{
        width: 40%;
    }

    .services__item:nth-child(5) .services_icons{
        width: 30%;
    }
}



/*collegs*/

.collegs_list{
    display: flex;
    justify-content: center;
    gap: 2vw;
    margin: 50px auto;
}

.collegs_item:nth-child(3) img{
    width: 60%;
}

.collegs_item{
    width: 15vw;
    border: var(--green-accent) 0.3vw solid;
    border-radius: 10%;
    
    height: 15vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collegs_item img{
    width: 80%;
    height: auto;
}

@media (max-width: 1000px) {
    .collegs_item{
        width: 20vw;
        height: 20vw;
        border: var(--green-accent) 0.4vw solid;
    }
}

@media (max-width: 700px) {
    .collegs_list{
        /* flex-direction: column; */
        align-items: center;
        flex-wrap: wrap;
    }
    .collegs_item{
        width: 35vw;
        height: 35vw;
        border: var(--green-accent) 0.5vw solid;
    }
}



/*our works*/

.our_works__slider{
    width: 90%;
    margin: 50px auto;
    height: 40vw;
    /* min-height: 300px; */
}

.swiper {
    width: 100%;
    height: 100%;
  }

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .swiper-slide img {
    display: block;
    width: 90%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
  }

  .swiper-button-next, .swiper-button-prev{
    color: var(--green-accent) !important;
  }

  .swiper-button-next::after, .swiper-button-prev::after{
    font-size: clamp(3vw, 3vw, 4vw) !important;
  }

  .our_works .swiper-button-next, .our_works .swiper-button-prev{
    width: 50px !important;
  }

  .swiper-pagination-bullet{
    background: var(--bg-light-green) !important;
}

  .swiper-pagination-bullet-active{
    background: var(--green-accent) !important;
  }



  @media (max-width: 1000px) {
    .swiper-slide img{
        width: 100%;
    }
    .our_works .swiper-button-next, .our_works .swiper-button-prev{
        color: var(--white) !important;
      }
      .swiper-button-next::after, .swiper-button-prev::after{
        font-size: 5vw !important;
      }
  }


  @media (max-width: 500px) {
    .our_works__slider{
       height: 50vw;
    }
  }

.our_works__container{
    display: flex;
    justify-content: flex-start;
    gap: 1vw;
    margin-top: 50px;
    padding: 0 2vw;

    width: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    user-select: none;
    cursor: pointer;

    scrollbar-width: none;
}

.our_works__container::-webkit-scrollbar {
    display: none;
}

.our_works__item{
    min-width: 22vw;
    width: 22vw;
    /* height: 30vw; */
    padding: 1vw;
    border-radius: 2vw;
    background: var(--bg-green);
    transition: all .5s;
    flex-direction: column;
    display: flex;
    justify-content: space-between;

    -webkit-user-drag: none;

}

.our_works__item button{
    cursor: pointer;
}


.our_works__item__bg{
    background-size: cover;
    background-position: center;
    height: 15vw;
    border-top-left-radius: 2vw;
    border-top-right-radius: 2vw;
    margin-bottom: 1vw;
}


.our_works__item .img__cont{
    width: 100%;
    position: relative;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    overflow: hidden;
    position: relative;
    border: none;
    margin-bottom: 1rem;
    aspect-ratio: 4 / 3;
    /* ---------------------------------------------------- */
}

.our_works__item .img__cont .category {
    position: absolute;
    top: 15px; /* Отступ от верхнего края */
    left: 15px; /* Отступ от левого края */

    background-color: var(--green-accent); /* Акцентный цвет для фона */
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 10rem; /* Делаем полностью скругленными */
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.05em;
    z-index: 10; /* Размещаем над изображением */
}

.our_works__item .img__cont img{
    object-fit: cover;
    transition: transform 0.5s ease;
    height: 100%;
    width: 100%;
}

@media (max-width: 765px) {

    .our_works__container{
        flex-wrap: wrap;
        justify-content: center;
    }
    .our_works__item{
        min-width: 40vw;
        width: 40vw;
        /* height: 50vw; */
    }
    .our_works__item__bg{
        min-width: 25vw;
        height: 25vw;
    }
}



@media (max-width: 550px) {

    .our_works__container{
        flex-wrap: wrap;
        gap: 3vw;
    }
    .our_works__item{
        width: 70vw;
        height: 350px;
        padding: 3vw;
    }
    .our_works__item__bg{
        height: 25vw;
    }

    .our_works__item .anim_b{
        padding: 1vw 2.5vw;
    }
}

.our_works__item:nth-child(1) .our_works__item__bg{
    background-image: url(../img/out_works/СеалиК/photo_2024-12-30_14-41-20.jpg);
}

.our_works__item:nth-child(2) .our_works__item__bg{
    background-image: url(../img/out_works/Режевскойметаллургическийзавод/photo_2024-12-30_14-42-00.jpg);
}

.our_works__item:nth-child(3) .our_works__item__bg{
    background-image: url(../img/out_works/экомет/photo_2024-12-30_14-42-27.jpg);
}

.our_works__item:nth-child(4) .our_works__item__bg{
    background-image: url(../img/out_works/ТСЖПРИБРЕЖНЫЙ/photo_2024-12-30_14-43-07\ \(2\).jpg);
}

.our_works__item:nth-child(5) .our_works__item__bg{
    background-image: url(../img/out_works/vin/vin_1.jpg);
}

.our_works__item:nth-child(6) .our_works__item__bg{
    background-image: url(../img/out_works/sinagora/sinagora_4.jpg);
}

.our_works__item:nth-child(7) .our_works__item__bg{
    background-image: url(../img/out_works/kolhoz_dvor/kolhoz_dvor_2.jpg);
}

.our_works__item:nth-child(8) .our_works__item__bg{
    background-image: url(../img/out_works/solid/solid_4.jpg);
}


.our_works__item .anim_b{
    color: white;
    font-size: clamp(12px, 1vw, 1.5vw);
    margin-top: 30px;
}


/* ================================================= */
/* === АДАПТАЦИЯ ДИЗАЙНА ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ === */
/* ================================================= */

@media (max-width: 768px) {

    /* 1. Настройка сетки для секции "Наши работы" */

    /* 2. Делаем карточку более компактной */
    .our_works__item {
        flex-direction: column;
        /* Убираем тень, чтобы выглядело чище на мобильных */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
        border-radius: 1rem;
        /* Убираем эффект подъема для тач-устройств */
        transition: none;
        padding: 2vw;
    }

    .our_works__item:hover {
        transform: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    /* 3. Уменьшаем размер иконок/текста в карточке */
    .our_works__item .img__cont {
        height: 200px; /* Делаем изображение немного меньше */
    }

    .our_works__item .text_cont {
        padding: 0 1rem 1rem 1rem; /* Меньшие внутренние отступы */
    }

    .our_works__item h4 {
        font-size: 1.1em; /* Уменьшаем заголовок */
    }

    .our_works__item p {
        font-size: 0.85em; /* Уменьшаем описание */
    }

    .our_works__item .img__cont .category {
        top: 10px;
        left: 10px;
        font-size: 1.1em;
        padding: 0.2rem 0.6rem;
    }
}

.thumbs-grid {
    display: flex;      /* Используем flex для легкого центрирования */
    flex-wrap: wrap;    /* Позволяем перенос на новые строки */
    justify-content: center; /* Центрируем превью по горизонтали */
    gap: 10px;
    width: 100%;
    max-height: 200px;   /* Убираем ограничение высоты */
    overflow-y: auto;
    overflow-x: hidden; /* Запрещаем горизонтальный скролл */
    padding: 10px 0;
    box-sizing: border-box;
    border-top: 1px solid rgba(0,0,0,0.05); /* Легкая линия для отделения */
    align-content: flex-start;
}

/* Скрываем скроллбар в Webkit (Chrome/Safari), если он не нужен */
.thumbs-grid::-webkit-scrollbar {
    width: 6px;
}

/* Показываем дорожку только когда есть прокрутка */
.thumbs-grid::-webkit-scrollbar-track {
    background: transparent;
}

.thumbs-grid::-webkit-scrollbar-thumb {
    background-color: transparent; /* Скрыт по умолчанию */
    border-radius: 10px;
}

/* Проявляем ползунок только при наличии реального переполнения */
.thumbs-grid:hover::-webkit-scrollbar-thumb {
    background-color: var(--green-accent);
}

.thumb-item {
    width: 70px;        /* Фиксированный размер для аккуратности */
    height: 70px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.4;
    transition: 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;     /* Чтобы картинки не сжимались */
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--green-accent);
    transform: translateY(-3px); /* Легкий эффект подъема */
}


/* Эффект при наведении и активное состояние */
.thumb-item:hover {
    opacity: 0.8;
}


.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .thumb-item {
        width: 55px; /* Чуть меньше на телефонах, чтобы больше влезло в ряд */
        height: 55px;
    }

    .lightbox-content {
        padding: 50px 15px 20px; /* Больше места сверху под крестик */
    }
}


.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Темный полупрозрачный фон */
    display: none; /* Изначально скрыт */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(5px); /* Эффект размытия фона */
}

.lightbox-modal.active {
    display: flex; /* Показываем модальное окно */
}

.lightbox-content {
    background-color: var(--white);
    border-radius: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    height: 90%;
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lightbox-info {
    text-align: center;
    padding-bottom: 0.5rem;
    /* Используем зеленую акцентную полосу */
    border-bottom: 2px solid var(--green-accent);
}

.lightbox-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.6em;
    color: var(--green-accent);
}




.lightbox-modal .swiper {
    width: 100%;
    flex-grow: 1; /* Заставляет слайдер занять все доступное место */
}

.lightbox-modal.active .swiper {
    width: 100%;
    height: 100%; /* Убедиться, что Swiper занимает всю высоту */
}
.lightbox-modal .swiper-wrapper {
    width: 100%;
    height: 100%;
}


.lightbox-modal .swiper-slide {
    width: 100% !important; /* Гарантируем, что каждый слайд занимает ровно 100% ширины */
    flex-shrink: 0; /* Запрещаем браузеру сжимать слайд */
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-modal .swiper-slide img {
    display: block;

    /* Самое главное: ограничиваем максимальную ширину и высоту */
    max-width: 100%;
    max-height: 100%;

    /* Сбрасываем возможные конфликты */
    width: auto;
    height: auto;

    object-fit: contain;
}



.close-btn {
    position: absolute;

    /* Корректируем позицию для нового размера (50px / 2 = 25px) */
    top: -25px;
    right: -25px;

    color: var(--white);
    background-color: var(--black);
    font-size: 2em; /* Размер крестика остается достаточно крупным */
    font-weight: bold;
    cursor: pointer;
    line-height: 1;

    /* === УВЕЛИЧЕННЫЕ РАЗМЕРЫ ДЛЯ ЛУЧШЕГО ВИЗУАЛЬНОГО PADDING === */
    border-radius: 50%;
    width: 50px; /* Увеличенная ширина */
    height: 50px; /* Высота равна ширине - идеальный круг */
    padding: 0;
    /* ========================================================== */

    /* Центрирование контента 'x' с помощью Flexbox */
    display: flex;
    justify-content: center;
    align-items: center;

    transition: background-color 0.3s;
    z-index: 10000;
}




.close-btn:hover {
    background-color: var(--green-accent);
}

@media (max-width: 768px) {
    /* ... (стили карточек выше) ... */

    /* 4. Максимизируем модальное окно */
    .lightbox-modal {
        padding: 0; /* Убираем внешний отступ, чтобы занимать весь экран */
    }

    .lightbox-content {
        max-width: 100vw;
        max-height: 100vh;
        width: 100%;
        height: 100%;
        border-radius: 0; /* Убираем закругленные углы */
        padding: 1.5rem;
        gap: 0.5rem;

    }

    /* 5. Скрываем информационный блок на узких экранах (или делаем его компактным) */
    .lightbox-info {
        /* Можем временно скрыть, чтобы фото было больше: */
        display: none;

        /* ИЛИ сделать компактным (если информация критична):
        text-align: left;
        padding-bottom: 0.2rem;
        border-bottom: 1px solid #ccc; */
    }

    /* 6. Репозиционирование кнопки закрытия */
    .close-btn {
        /* Перемещаем крестик внутрь на 10px, что теперь безопасно,
           так как у родителя padding 1.5rem (~24px) */
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    /* 7. Навигация Swiper: скрываем стрелки на мобильных */
    .lightbox-modal .swiper-button-next,
    .lightbox-modal .swiper-button-prev {
        display: none;
    }

    /* 8. Делаем пагинацию (точки) заметнее */
    .lightbox-modal .swiper-pagination {
        bottom: 15px !important;
    }

    .lightbox-modal .swiper-pagination-bullet {
        background: var(--white) !important;
        opacity: 0.7;
    }

    .lightbox-modal .swiper-pagination-bullet-active {
        background: var(--green-accent) !important;
        opacity: 1;
    }
}



/* Стили для навигационных кнопок Swiper (стрелки) */
.swiper-button-next, .swiper-button-prev {
    color: var(--green-accent) !important;
}




/*portfolio*/
.portfolio > *{
    display: none;
}

#portfolio1:target {
    display: block;
}

#portfolio2:target {
    display: block;
}

#portfolio3:target {
    display: block;
}

#portfolio4:target {
    display: block;
}

#portfolio5:target {
    display: block;
}

#portfolio6:target {
    display: block;
}

#portfolio7:target {
    display: block;
}

#portfolio8:target {
    display: block;
}

.portfolio__item{
    margin-top: 50px;
}

.portfolio__item__grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(0px, 25vw));
    width: 80%;
    margin: 0 auto;
    justify-content: center;
    gap: 1vw;
    margin-top: 50px;
}

.portfolio__item__grid__photo{
    height: 25vw;
    width: 25vw;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}

.portfolio_b{
    padding: 1vw 3vw;
    display: inline-block;
    outline: none;
    border: none;
    border-radius: 1000px;
    background-color: var(--button);
    color: white;
    margin-top: 50px;
    font-size: clamp(14px, 1.5vw, 2vw);
    font-weight: 600;
}

@media (max-width: 600px) {
    .portfolio__item__grid{
        grid-template-columns: repeat(auto-fill, minmax(0px, 40vw));
        gap: 3vw;
        width: 90%;
    }
    .portfolio__item__grid__photo{
        height: 40vw;
        width: 40vw;
    }
}


.portfolio h3{
    font-size: clamp(20px, 2vw, 3vw);
}


/*form*/

.form{
    background-color: #181818;
    /* display: flex; */
    align-items: center;
    /* height: 45vw; */
    justify-content: center;
    padding: 50px 0;
    color: var(--white);
    
}

.form h1{
    font-size: clamp(28px, 3.5vw, 4.5vw);
}



.form__container{
    width: 100%;
    flex-wrap: wrap;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    text-align: left;
    margin-top: 50px;

}

/* .form__container h3{
    font-size: 40px;
    font-weight: 600;
} */


.form__item:nth-child(1){
    width: 25%;
}

.form__item:nth-child(2){
    width: 40%;
    background-color: #2B2B2B;
    padding: 30px 50px;
    border-radius: 20px;
}

.form__item input{
    padding: 17px;
    width: 100%;
    height: 3vw;
    background-color: transparent;
    color: #B4B4B4;
    font-weight: 600;
    border-bottom: 0.1vw solid #D9D9D9;
    vertical-align: middle;
    font-size: clamp(12px, 1vw, 1.5vw);
    margin: 5px 0;
}

.form__item input::placeholder{
    font-size: clamp(12px, 1vw, 1.5vw);
    color: #B4B4B4;
    font-weight: 600;
}

.form__item button{
    width: 40%;
    padding: 0.7vw 2vw;
    background-color: #D9D9D9;
    
}

.form__item button p{
    color: black;
}

.form__container button{
    /* padding: 15px 60px; */
    border-radius: 200px;
}

.main_form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form_agree{
    color: rgb(102, 102, 102);
    margin-top: 30px;
}


@media (max-width: 800px) {
    .form__container{
        flex-direction: column;
        padding: 20px;
        gap: 3rem;
    }

    .form_align{
        max-width: 90%;
    }

    .form__item:nth-child(1){
        width: 40%;
    }
    
    .form__item:nth-child(2){
        width: 60%;
    }
    
}

@media (max-width: 600px) {
    .form__item:nth-child(1){
        width: 60%;
    }
    .form__item:nth-child(2) {
        padding: 30px;
        width: 80%;
    }
    .form__item button{
        width: auto;
        padding: 10px 20px;
    }
}





/*footer*/

.footer{
    background-color: var(--footer-bg);
    color: var(--white);
    /* height: 19vw; */
    display: flex;
    align-items: center;
}

.footer__align{
    width: 80%;
    text-align: center;
}

.footer p{
    color: var(--white);
    font-size: 0.8em;
}

.footer__container{
    display: flex;
    justify-content: space-between;
    align-items: start;

}

.footer__links{
    max-width: 90%;
    margin: 0 auto;
    margin-top: 50px;
}


.footer__container__item a:nth-child(1) p, .footer__title{
    font-weight: 700;
    margin-bottom: 16px;
    font-size: 1em;
    
}


.footer__container__item p{
    margin-bottom: 14px;
}

.footer__container-credits{
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
    margin-bottom: 30px;
}

.footer__container-credits p{
    font-weight: 500;
    font-size: 1.5em;
}

.footer__logo{
    width: 15%;
}

@media (max-width: 800px) {
    .footer__align{
        width: 90%;
    }
}


@media (max-width: 600px) {
    .footer__container{
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .footer__logo {
        width: 40%;
    }
    .footer__container-credits {
        margin-top: 20px;
    }
}


/*ABOUT PAGE*/

/*about*/

.about__container{
    width: 80%;
    margin: 0 auto;
    text-align: left;
}

.about__container h1{
    margin-bottom: 1vw;
}

.about__container h3{
    font-size: clamp(18px, 2vw, 3vw);
    font-weight: 700;
    margin: 1vw 0;
}

.about__container p{
    font-size: clamp(16px, 1.7vw, 2.7vw);
    font-weight: 500;
    margin: 0.5vw 0;
}

.about__container ul{
    margin-left: 50px;
}

/*quality*/


.quality__container{
    display: flex;
    margin: 0 auto;
    justify-content: center;
    gap: 5vw;
    align-items: center;


}

.quality__photo{
    width: 25vw;
    height: 25vw;
    background-color: antiquewhite;
    border-radius: 50%;
}

.quality__photo img{
    border-radius: 50%;
}


.quality h3{
    font-size: clamp(18px, 2vw, 3vw);
    font-weight: 700;
}

.quality__text{
    text-align: left;
    max-width: 50%;
}

.quality__text p{
    color: rgb(105, 105, 105);
    font-size: clamp(16px, 1.5vw, 2vw);
    margin: 1.5vw 0;
}


.quality__points{
    display: flex;
    justify-content: center;
    gap: 3%;
    margin-top: 4%;
}

.points__item{
    width: 30%;
    text-align: center;

}

.points__item h4{
    position: relative;
    width: fit-content;
    margin: 0 auto;
    font-size: clamp(20px, 3vw, 4vw);
}

.points__item h4::before{
    content: "";
    position: absolute;
    background-color: var(--green-accent);
    width: 1vw;
    height: 1vw;
    border-radius: 50%;
    top: calc(50% - 1vw / 2);
    left: -2vw;

}

.points__item p{
    font-size: clamp(14px, 1.5vw, 2vw);
    font-weight: 500;
    margin-top: 20px;
}

@media (max-width: 1000px) {
    .quality__container{
        flex-direction: column;
    }

    .quality__text{
        max-width: 80%;
    }

    .quality__photo{
        width: 30vw;
        height: 30vw;
    }
}

/*contact_info*/


.contact_info .table{
    text-align: left;
    margin: 0 auto;
    font-size: 2em;
    max-width: 90%;
    border-collapse:collapse;
    margin-top: 40px;
}

.contact_info .table td:nth-child(2){
    width: 60%;
}

.contact_info .table tr{
    border-top: 0.1vw solid black;
    height: 7vw;
}

.contact_info .table td{
    font-size: clamp(16px, 2vw, 2.5vw);
}



/*CONTACTS*/

/*call us*/

.call_us{
    margin-top: 50px;
    padding: 8vw 0;
}

.call_us__container{
    display: flex;
    max-width: 80%;
    margin: 0 auto;
    align-items: center;
}

.call_us__item:nth-child(1){
    width: 60%;
    text-align: left;
}

.call_us__item:nth-child(2){
    margin: 0 auto;

}

.call_us__item p{
    font-size: clamp(20px, 2vw, 3vw);
    font-weight: 500;
}

.contacts hr{
    border: 0.3vw solid rgb(37, 135, 66);
    margin: 10px 0;
}


/*map*/


.map{
    background-color: var(--bg-grey);
    padding: 8vw 0;
    margin-top: 50px;
}


.map__container{
    display: flex;
    align-items: center;
    max-width: 80%;
    margin: 0 auto;
}

.map__container hr{
    max-width: 70%;
    margin-left: auto;
}

.map__item{
    width: 50%;
}


.map__item iframe{
    width: 100%;
    height: 25vw;
}



.map__item:nth-child(2){
    margin: 0 auto;
    text-align: right;

}

.map__item:nth-child(2) p{
    font-size: clamp(14px, 1vw, 2vw);;
    font-weight: 500;
    max-width: 50%;
    margin-left: auto;
}


/*whrite us*/

.write_us{
    padding: 20vw 0;
}

.write_us hr{
    width: 130%;
}

.write_us__container{
    display: flex;
    align-items: center;
    max-width: 80%;
    justify-content: space-between;
    margin: 0 auto;
}

.write_us__item:nth-child(1){
    width: 50%;
    text-align: left;
}

.write_us__item:nth-child(2){
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.write_us__icons{
    display: flex;
    gap: 1vw;
    width: 100%;
}

.write_us__icons a, .write_us__icons img{
    width: 100%;
}


@media (max-width: 1000px) {
    


    .write_us__item:nth-child(1){
        width: 40%;
    }
    .write_us__item:nth-child(2){
        width: 30%;
    }
}

@media (max-width: 800px) {

    .call_us__container{
        flex-direction: column;
        gap: 3rem;
    }

    .call_us__item:nth-child(1) {
        text-align: center;
    }


    .map__container{
        flex-direction: column-reverse;
        gap: 3rem;
    }

    .map__item{
        width: 100%;
    }

    .map__item iframe{
        height: 40vw;
    }
    .map__item:nth-child(2){
        text-align: center;
    }

    .map__container hr {
        margin: 10px auto;
    }
    .map__item:nth-child(2) p {
        margin: 0 auto;
    }

    .write_us__container{
        flex-direction: column;
        gap: 3rem;
    }

    .write_us__item:nth-child(1){
        width: 60%;
        text-align: center;
    }

    .write_us__item:nth-child(2){
        width: 40%;
    }
}

@media (max-width: 700px){
    .contacts hr{
        border: 0.4vw solid rgb(37, 135, 66);
    }
}

@media (max-width: 600px){
    .call_us__container, .map__container, .write_us__container{
        max-width: 90%;
    }
}

@media (max-width: 500px){
    .contacts hr{
        border: 0.5vw solid rgb(37, 135, 66);
    }
    .write_us__item:nth-child(1){
        width: 100%;
        text-align: center;
    }

    .write_us__item:nth-child(2){
        width: 50%;
    }

    .map__item iframe{
        height: 60vw;
    }
}


/*PRICE*/


/*price*/

.price{
    margin-top: 30px;
}

.price__container{
    max-width: 80%;
    margin: 0 auto;
}



.price__tab_nav{
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 7vw;
    gap: 2%;

    width: 100%;
    overflow-x: scroll;


    user-select: none;
    cursor: pointer;

    scrollbar-width: none;

}

.price__tab_nav::-webkit-scrollbar{
    display: none;
}

.price__tab_content{
    background-color: var(--bg-light-green);
    border-end-end-radius: 100px;
    border-end-start-radius: 100px;
}

.tab-link{
    padding: 1vw 1.5vw;
    background-color: rgb(210, 237, 216);
    border-radius: 0;
    border-start-start-radius: 2vw;
    border-start-end-radius: 2vw;
    transition: padding 0.5s, border-width 0.5s, box-shadow 0.3s;
    min-width: 19%;
    

}

.tab-link h2{
    /* font-size: 20px; */
    font-weight: 700;
}

.tab-link p{
    /* font-size: 20px; */
    font-weight: 300;
    color: red;
    margin-top: 15px;
}

.tab-content {
    /* display: none; */
    padding: 80px;
}

/* .tab-content:target {
    display: block;
} */

.tab-btn-active {
    pointer-events: none;
    border-top: 7px solid rgb(51, 182, 80);
    padding-bottom: 1.65vw;
}

.tab-content:not(.tab-pane-show) {
    display: none;
    
}

.hover{
    padding-bottom: 1.55vw;
    box-shadow: 0px -10px 20px -3px rgba(34, 60, 80, 0.09);
    /* transition: padding 0.2s; */

}

.tab-content{
    transition: all 0.25s;
}



.price__info{
    display: flex;
    text-align: left;
    justify-content: space-between;
    margin-bottom: 100px;
    
}

.price__info p{
    font-weight: 500;
}

.price__info__img{
    width: 30%;
    
}

.price__info__img img{
    border-radius: 1vw;
}


.price__onfo__text{
    width: 55%;
}

.price__info__head{
    display: flex;
    justify-content: space-between;
    margin-bottom: 49px;
}

.price__info__head h2, .price__info__head p{
    font-size: clamp(14px, 2vw, 3vw);
    font-weight: 700;
}



.price__table{
    background-color: var(--bg-green);
    padding: 39px;
    border-radius: 40px;
}    

.table__container{
    overflow-y: auto;
    height: 25vw;
}

/* .tab-content:nth-child(4) .table__container,
.tab-content:nth-child(5) .table__container
{
    height: auto;
} */



.price .table{
    margin: 0 auto;
    text-align: left;
    border-collapse: separate;
    margin-top: 50px;
    width: 100%;
    font-weight: 500;
    border-spacing: 40px 30px;
    

}

.price__table h3{
    font-weight: 700;
}

.tab-price{
    cursor: pointer;
}

.price__info__button .tab-btn-active{
    border: none;
    padding-bottom: 0.5vw !important;
    background-color: #fff;
    box-shadow: 0px 0px 3px 3px rgb(209, 209, 209);

}

.price__info__button{
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
    
}

.price__info__button button{
    padding: 0.8vw 2.5vw;
    width: 25vw;
}

.price__info__descr{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 2vw;
    width: 100%;
    border-top: 0.1vw solid #6c7489;
    border-bottom: 0.1vw solid #6c7489;
    padding: 30px 0;
}

.descr__item{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 10px;
    color: #6c7489;
}

.descr__item__img{
    width: 20%;
}

.price__container-2{
    display: none;
}

.over_title{
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: -60px;
    z-index: 15;
}


@media (min-width: 1500px) {
    .tab-content:nth-child(3) .table__container{
        height: auto;    
    }
}

@media (min-width: 900px) {
    .tab-content:nth-child(4) .table__container,
    .tab-content:nth-child(5) .table__container{
        height: auto;    
    }
}


@media (max-width: 1400px) {
    .price__container{
        max-width: 90%;
    }

    .tab-content {
        padding: 40px;
    }

    .price__tab_content {
        border-end-end-radius: 50px;
        border-end-start-radius: 50px;
    }

    .price__info {
        margin-bottom: 50px;
    }

    .price__table{
        padding: 20px;
    }
}

@media (max-width: 1150px) {
    .price__info__button{
        display: flex;
    }

    .price__info__descr, .price__tab_nav{
        display: none;
    }

    .price__onfo__text{
        width: 65%;
    }
}

@media (max-width: 800px) {


    .price__info__button{
        display: none;
    }
    .price__container{
        display: none;
        max-width: 85%;
    }


    .price__container-2{
        display: flex !important;
        height: 600px;
        align-items: center;
    }

    .price .swiper-slide{
        display: block !important;
        background-color: var(--bg-light-green);
        height: auto;
        padding: 35px 25px;
        position: relative;
        border-radius: 25px;
        /* padding-bottom: 10px; */
    }

    .price__tab_content{
        background-color: transparent;
        height: auto !important;
    }

    .price .table {
        margin-top: 20px;
        border-spacing: 5px 20px;
    }

    .price__table {
        border-radius: 20px;
        padding: 10px;
    }

    td, th{
        font-size: clamp(10px, 14px, 16px);
    }

    .table__container {
        height: 200px;
    }

    .price .swiper-button-next, .price .swiper-button-prev{
        color: var(--bg-green) !important;
        top: 20px !important;
    }
}

@media (max-width: 600px) {
    .table__container {
        height: 250px;
    }
    td, th{
        font-size: 12px;
    }

    .over_title{
        font-size: 12px;
        top: -45px;
    }
    .price{
        padding-bottom: 0;
    }

}

@media (max-width: 400px) {
    .over_title{
        font-size: 10px;
    }
    .price__table h3 {
        font-size: 12px;
    }
    .over_title{
        font-size: 12px;
        top: -50px;
    }
}



.open-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: fixed;
    bottom: 2vw;
    right: 3vw;
    border: 0.5vw solid rgb(82, 206, 95);
    width: 6vw;
    height: 6vw;
    padding: 1vw;
    z-index: 50;
    background-color: var(--white);
    box-shadow: 0px 0px 0.5vw 0.5vw rgba(0, 0, 0, 0.25);
    transition: all .3s;
}

.open-button:hover{
    width: 6.5vw;
    height: 6.5vw;
    bottom: 1.75vw;
    right: 2.75vw;
    box-shadow: 0px 0px 0.5vw 0.5vw rgba(0, 0, 0, 0.3);
}
  
/* The popup chat - hidden by default */
.chat-popup {
    display: none;
    position: fixed;
    bottom: 10vw;
    right: 3vw;
    z-index: 50;
    width: 15vw;
    padding: 5px 0;
    border-radius: 2vw;
    box-shadow: 0px 0px 0.5vw 0.5vw rgba(0, 0, 0, 0.25);
    background-color: var(--white);
}

.chat-popup hr{
    border-bottom: 0.2vw solid rgb(183, 183, 183);;
}

.popup__item{
    display: flex;
    height: 3vw;
    margin: 1vw auto;
    align-items: center;
    cursor: pointer;
    gap: 2vw;
    width: 80%;
    transition: .3s;
    /* justify-content: center; */
}

.popup__item:hover{
    color: rgb(128, 128, 128);
}


.chat-popup{
    animation: show .5s ease-in-out;
}

.chat-popup a{
    opacity: 0;
}

.chat-popup a:nth-of-type(1){
    animation: show .5s ease-in-out;
    animation-delay: .6s;
    animation-fill-mode: forwards;
}

.chat-popup a:nth-of-type(2){
    animation: show .5s ease-in-out;
    animation-delay: .4s;
    animation-fill-mode: forwards;
}

.chat-popup a:nth-of-type(3){
    animation: show .5s ease-in-out;
    animation-delay: .2s;
    animation-fill-mode: forwards;
}

.chat-popup a:nth-of-type(4){
    animation: show .5s ease-in-out;
    animation-delay: 0;
    animation-fill-mode: forwards;
}


  
@keyframes show {
    0%    {opacity: 0;}
    100%  {opacity: 1;}
}

.popup__item .img__cont {
    display: block;
    height: 100%;
}

.popup__item .img__cont img{
    width: auto;
}

.chat-popup p{
    font-size: 1vw;
}


.write{
    display: none;
    position: fixed;
    bottom: 10vw;
    right: 23vw;
    z-index: 50;
    width: 20vw;
    padding: 5px 0;
    border-radius: 2vw;
    box-shadow: 0px 0px 0.5vw 0.5vw rgba(0, 0, 0, 0.25);
    padding: 1vw;
    background-color: var(--white);
    animation: show .5s ease-in-out;
}


.write .main_form{
    gap: 0.5vw;
}

.write h3{
    font-size: clamp(10px, 0.75vw, 1.25vw);
    text-align: center;
}

.write input{
    width: 100%;
    height: 3vw;
    background-color: transparent;
    color: #B4B4B4;
    font-weight: 600;
    border-bottom: 0.1vw solid #D9D9D9;
    vertical-align: middle;
    font-size: clamp(10px, 0.75vw, 1.25vw);
    margin: 5px 0;
}

.write input::placeholder{
    font-size: clamp(10px, 0.75vw, 1.25vw);
    color: #B4B4B4;
    font-weight: 500;
}

.write button{
    padding: 0.7vw 2vw;
    background-color: #D9D9D9;
    margin: 0 auto;
}

.write button p {
    font-size: clamp(10px, 0.75vw, 1.25vw);
}


@media (max-width: 600px) {
    .open-button{
        display: none;
    }
}

.write_us__icons{
    position: relative;
}

.write_us__icons a{
    cursor: pointer;
}

.write2{
    display: none;
    position: absolute;
    z-index: 50;
    right: 0;
    bottom: 8vw;
}

.write__close{
    width: 100vw !important;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    display: none;
}

@media (max-width: 800px) {
    .write2{
        width: 30vw;
        bottom: 10vw;
    }
}


/* КНОПКИ ОТПРАВИТЬ РЭЙНБОУ */

/* ANIMATION*/

/*rainbow*/


.glow-on-hover {
    /* width: 220px;
    height: 50px; */
    border: none;
    outline: none;
    background: #111;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 10px;
}

.glow-on-hover p{
    color: #fff !important;
}

.glow-on-hover:before {
    content: '';
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    position: absolute;
    top: -2px;
    left:-2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 10px;
}

.glow-on-hover:active {
    color: #000000
}

.glow-on-hover:active:after {
    background: transparent;
}

.glow-on-hover:hover:before {
    opacity: 1;
}

.glow-on-hover:after {
    z-index: -1;
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111;
    left: 0;
    top: 0;
    border-radius: 10px;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}




.anim_b {
    display: inline-block;
    /* text-transform: uppercase; */
    transition: all .5s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.anim_b::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--button);
    border-radius: 10rem;
    z-index: -2;
}
.anim_b::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgb(104 129 108);
    transition: all .5s;
    border-radius: 10rem;
    z-index: -1;
}
.anim_b:hover {
    color: #fff;
}
.anim_b:hover::before{
    width: 100%;
}

.write_us__icons a img{
    filter: grayscale(0.8);
    transition: 0.3s;
}

.write_us__icons a img:hover{
    filter: grayscale(0);
}

@media (pointer:coarse) {
    .write_us__icons a img{
        filter: grayscale(0) !important;
    }
}


.header__nav a, .header__phone{
     transition: .3s;
}


.header__nav a:hover, .header__phone:hover{
    color: rgb(128, 128, 128);
}

.footer a p{
    transition: .3s;
}

.footer a{
    cursor: pointer;
}

.footer a p:hover{
    color: rgb(165, 165, 165);
}


iframe{
    height: 700px;
    width: 699px;
}

.input__control{
    color: white !important;
}



.error-message {
    color: red;
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 10px;
    text-align: left;
}





/* ==========================================================================
   Стили для секции "WHY" (Главный экран)
   ========================================================================== */

.why {
    padding: 80px 20px;
    background: var(--bg-grey);
    font-family: 'Segoe UI', Roboto, sans-serif;
    display: flex;
    justify-content: center;
}

.why__container {
    max-width: var(--max-width);
    width: 100%;
    text-align: center;
}

/* Заголовок H1 — главный акцент страницы */
.why h1 {
    font-size: 38px;
    color: var(--black);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* Краткое описание под заголовком */
.why__description {
    font-size: 18px;
    color: var(--footer-bg); /* Используем темный серый для хорошей читаемости */
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* Основной контейнер инфо-блока */
.why__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Сетка для трех главных преимуществ */
.why__info__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* Карточка отдельного преимущества */
.why__info__item {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--bg-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Эффект при наведении на карточку преимущества */
.why__info__item:hover {
    transform: translateY(-5px);
    background-color: var(--bg-light-green);
    box-shadow: 0 12px 25px rgba(37, 135, 66, 0.15);
}

/* Стилизация иконок Font Awesome */
.why__info__item i {
    font-size: 36px;
    color: var(--green-accent);
    margin-bottom: 15px;
}

/* Текст внутри карточек преимуществ */
.why__info__item p {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin: 0;
}

/* Конверсионная кнопка "Узнать стоимость" */
.why__btn {
    background-color: var(--button);
    color: var(--black); /* Черный текст на светлом фоне кнопки */
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(143, 179, 149, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.3s ease;
}

/* Анимация при наведении на кнопку */
.why__btn:hover {
    background-color: var(--green-accent);
    color: var(--white); /* Меняем текст на белый при активном наведении */
    box-shadow: 0 6px 20px rgba(37, 135, 66, 0.4);
    transform: scale(1.03);
}

.why__btn:active {
    transform: scale(0.98);
}

/* ==========================================================================
   Адаптивность (Media Queries) для смартфонов и планшетов
   ========================================================================== */

@media (max-width: 768px) {
    .why {
        padding: 50px 15px;
    }

    .why h1 {
        font-size: 28px;
    }

    .why__description {
        font-size: 16px;
        margin-bottom: 35px;
    }

    /* На мобильных устройствах сетка выстраивается в один столбец */
    .why__info__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Карточка переключается на горизонтальное отображение (иконка слева, текст справа) */
    .why__info__item {
        padding: 20px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;
    }

    .why__info__item i {
        margin-bottom: 0;
        font-size: 28px;
    }

    /* Кнопка растягивается на всю доступную ширину для удобства клика */
    .why__btn {
        width: 100%;
    }
}

/* ==========================================================================
   Стили для секции "USAGE" (Области применения)
   ========================================================================== */

.usage {
    padding: 80px 20px;
    background: var(--white); /* Светлый фон, так как прошлая секция была серой */
    font-family: 'Segoe UI', Roboto, sans-serif;
}

.usage h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--black);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* Контейнер сетки */
.usage__container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

/* Стилизация карточки */
.usage__item {
    background: var(--bg-grey);
    border: 1px solid transparent; /* Плавный переход для рамки при ховере */
    border-radius: 12px;
    padding: 24px 20px;
    display: flex;
    align-items: center; /* Выравнивание иконки и текста по горизонтали */
    gap: 16px;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
}

/* Эффект при наведении */
.usage__item:hover {
    background-color: var(--bg-light-green);
    border-color: var(--bg-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(37, 135, 66, 0.08);
}

/* Иконка (эмодзи) */
.usage__icon {
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease;
}

/* Легкая микроанимация иконки при наведении на карточку */
.usage__item:hover .usage__icon {
    transform: scale(1.1);
}

/* Текст внутри карточки */
.usage__text {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   Адаптивность для мобильных экранов
   ========================================================================== */

@media (max-width: 768px) {
    .usage {
        padding: 50px 15px;
    }

    .usage h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .usage__container {
        grid-template-columns: 1fr; /* На мобилках строго в один столбец */
        gap: 12px;
    }

    .usage__item {
        padding: 16px; /* Чуть меньше отступы на смартфонах */
    }

    .usage__icon {
        font-size: 24px;
        padding: 8px;
    }

    .usage__text {
        font-size: 15px;
    }
}
.faq-section {
    padding: 60px 20px;

    font-family: sans-serif;
}
.economy {
    position: relative;
    padding: 60px 0;
    background: var(--bg-light-green);
    overflow-x: hidden;
}

.economy__align {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.economy__title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}

.economy__liquid__card {
    border: 2px solid var(--green-accent);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}
.economy__liquid__card__header {
    background-color: var(--green-accent);
    color: #fff;
    padding: 15px 20px;
    font-size: 20px;
}
.economy__liquid__card__list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.economy__liquid__card__list li {
    margin-bottom: 12px;
    &:last-child { margin-bottom: 0; }
}


.economy__subtitle {
    text-align: center;
    font-weight: bold;
    margin: 30px 0 20px;
}

.economy__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.economy__container__item {
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fdfdfd;
    overflow: hidden;
}
.economy__container__item-header {
    background: #555;
    color: #fff;
    padding: 10px 15px;
    font-weight: bold;

}
.economy__container__item ul {
    padding: 15px 15px 15px 30px;
    margin: 0;

}

.economy__container__item ul li p {
    margin: 5px 0;
}



.calc-section {
    padding: 60px 20px;
    background: var(--white);
    font-family: sans-serif;
    max-width: var(--max-width);
    margin: 0 auto;

}
.calc-section h2 {
    text-align: center;
    color: var(--black);
    margin-bottom: 10px;
    font-size: 28px;
}
.calc-subtitle {
    text-align: center;
    color: var(--footer-bg);
    margin-bottom: 40px;
}
.calc-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}
.calc-control {
    background: var(--bg-light-green);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--bg-green);

}
.calc-control label {
    display: block;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--black);
}
.calc-control label span {
    color: var(--green-accent);
    font-size: 26px;
}
.calc-control input[type="range"] {
    width: 100%;
    margin-bottom: 20px;
    accent-color: var(--green-accent);
}
.calc-notes {
    font-size: 13px;
    color: var(--footer-bg);
}
.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.result-box {
    padding: 25px;
    border-radius: 12px;
    background: var(--bg-grey);
    border: 1px solid #e0e0e0;
}
.result-box.wb {
    border-color: var(--green-accent);
    background: var(--white);
    box-shadow: 0 8px 24px rgba(37, 135, 66, 0.1);
}
.result-box h4 {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 15px;
}
.result-box.wb h4 {
    color: var(--green-accent);
}
.result-box p {
    margin: 10px 0;
    color: #333;
}
.price-line {
    font-weight: bold;
    margin-top: 20px !important;
    font-size: 18px;
}
.result-box.wb .price-line span {
    color: var(--green-accent);
    font-size: 22px;
}

@media (max-width: 768px) {
    .calc-results {
        grid-template-columns: 1fr;
    }
}











/* --- Блок FAQ с анимацией --- */
.faq-section {
    padding: 60px 20px;
    background: var(--bg-light-green);
    font-family: sans-serif;
}

.faq-section h2 {
    text-align: center;
    color: var(--black);
    margin-bottom: 40px;
    font-size: 28px;
}

.faq-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Контейнер элемента */
.faq-item {
    background: var(--white);
    border: 1px solid var(--bg-green);
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Чтобы скрытый текст не вылезал раньше времени */
}

/* Стили при активном (открытом) состоянии */
.faq-item.active {
    box-shadow: 0 6px 18px rgba(37, 135, 66, 0.1);
    border-color: var(--green-accent);
}

/* Шапка вопроса */
.faq-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

/* Создаем кастомный плюсик */
.faq-title::after {
    content: '\2b';
    font-size: 20px;
    color: var(--green-accent);
    font-weight: bold;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-left: 15px;
    display: inline-block;
}

/* Анимация плюсика при открытии (поворот на 45 градусов в крестик/минус) */
.faq-item.active .faq-title::after {
    transform: rotate(45deg);
    color: var(--footer-bg);
}

/* Контейнер ответа — изначально скрыт по высоте */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

/* Когда активен — скрипт сам подставит точную высоту в пикселях, а CSS плавно её отобразит */
.faq-item.active .faq-content {
    opacity: 1;
}

/* Внутренний отступ для текста, чтобы анимация высоты не дергалась */
.faq-content-inner {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid var(--bg-grey);
    line-height: 1.6;
    color: #333;
    font-size: 15px;
}

.faq-content-inner p {
    margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-section { padding: 40px 15px; }
    .faq-section h2 { font-size: 22px; margin-bottom: 25px; }
    .faq-title { font-size: 16px; }
    .faq-content-inner { font-size: 14px; }
}







/* Контейнер всплывающей формы */
.write {
    display: none; /* Изначально скрыта */
    position: fixed;
    bottom: 90px; /* Чтобы не перекрывать саму кнопку */
    right: 20px;
    background: var(--white);
    border: 1px solid var(--bg-green);
    border-radius: 12px;
    padding: 30px 25px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 320px; /* Оптимальная ширина для мобилок */
    box-sizing: border-box;
}

/* Кнопка закрытия (Крестик) */
.write__close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: var(--footer-bg);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}
.write__close:hover {
    color: var(--black);
}

.add_form{
    text-align: center;
}

.add_form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--black);
    text-align: center;
}

.add_form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

/* Стилизация блока быстрых мессенджеров внутри формы */
.form-fast-messengers {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid var(--bg-grey);
    padding-top: 15px;
}

.form-fast-messengers p {
    font-size: 13px;
    color: var(--footer-bg);
    margin: 0 0 10px 0;
}

.fast-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.fast-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-grey);
    transition: transform 0.2s, background-color 0.2s;
}

.fast-link img {
    width: 22px;
    height: 22px;
}

.fast-link:hover {
    transform: scale(1.1);
}
.fast-link.wa:hover { background-color: var(--bg-light-green); } /* Родной цвет WhatsApp при ховере */
.fast-link.tg:hover { background-color: var(--bg-light-green); } /* Родной цвет Telegram при ховере */

/* Адаптация под мелкие экраны */
@media (max-width: 400px) {
    .write {
        right: 10px;
        left: 10px;
        width: auto; /* На мелких телефонах форма растянется по экрану */
        bottom: 85px;
    }
}

@media (max-width: 600px) {
    .write {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        bottom: auto;
        right: auto;

        /* Делаем форму чуть шире на узких экранах, чтобы использовать полезную площадь */
        width: 88%;
        max-width: 360px;

        padding: 40px 24px 30px; /* Увеличили верхний отступ */
        border-radius: 24px; /* Более современное, мягкое скругление */
        box-shadow: 0 0 0 100vw rgba(0, 0, 0, 0.4), 0 20px 50px rgba(0, 0, 0, 0.3);
        box-sizing: border-box;
    }

    .add_form h3 {
        font-size: 24px; /* Чуть крупнее и увереннее заголовок */
        margin-bottom: 24px;
        font-weight: 700;
    }

    .add_form input {
        width: 100%;
        padding: 16px 16px; /* Увеличили высоту инпутов за счет отступов */
        margin-bottom: 14px;
        border: 1px solid #ccc;
        border-radius: 10px; /* Скругление под стать форме */
        font-size: 16px; /* Спасает от авто-зума на iOS! */
        box-sizing: border-box;
    }

    /* Главная кнопка отправки */
    .add_form button[type="submit"] {
        width: 100%;
        padding: 16px; /* Сделали кнопку такой же объемной, как инпуты */
        border-radius: 10px;
        margin-top: 6px;
    }

    .add_form button[type="submit"] p {
        font-size: 16px;
        font-weight: 600;
        margin: 0;
    }

    /* Блок мессенджеров в 1 клик */
    .form-fast-messengers {
        margin-top: 24px;
        padding-top: 20px;
    }

    .form-fast-messengers p {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .fast-links {
        gap: 20px;
    }

    /* Сами круглые иконки делаем заметнее */
    .fast-link {
        width: 50px;
        height: 50px;
        background: #f4f4f4;
    }

    .fast-link img {
        width: 26px;
        height: 26px;
    }
}


/* Блок политики конфиденциальности */
.form-policy {
    margin-top: 5px;
    margin-bottom: 15px;
    text-align: left; /* Выравнивание строго по левому краю */
}

.policy-label {
    display: flex;
    align-items: flex-start; /* Выравниваем галочку по верхней линии первой строки текста */
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

/* Стилизация самого квадратика чекбокса */
.policy-label input[type="checkbox"] {
    width: 18px !important; /* Жестко задаем размер, чтобы его не раздуло */
    height: 18px !important;
    margin: 2px 0 0 0 !important; /* Легкое смещение вниз для идеального выравнивания с текстом */
    accent-color: var(--green-accent); /* Окрашивает галочку в ваш фирменный зеленый в современных браузерах */
    flex-shrink: 0; /* Запрещаем флажку сжиматься */
}

/* Текст согласия */
.policy-text {
    font-size: 13px;
    line-height: 1.4;
    color: var(--footer-bg); /* Используем ваш спокойный серый цвет для второстепенного текста */
}

/* Ссылка на саму политику */
.policy-text a {
    color: var(--green-accent);
    text-decoration: underline;
    transition: color 0.2s;
}

.policy-text a:hover {
    color: #1b6330;
}

/* Корректировка для мобильных экранов меньше 600px */
@media (max-width: 600px) {
    .form-policy {
        margin-bottom: 18px; /* Чуть больше отступ до кнопки на мобилках */
    }
    .policy-text {
        font-size: 12px; /* Чуть компактнее текст на телефонах */
    }
}

/* Переводим карточку в режим главного контейнера */
.services__item {
    position: relative !important;
    overflow: hidden !important; /* Чтобы кликабельная зона не вылезала за скругленные углы карточки */
}

/* Кнопку-div делаем статичной, чтобы она не держала внутри себя ::after */
.services__item .tab-price {
    position: static !important;
}

/* Растягиваем невидимый слой на ВЕСЬ прямоугольник карточки */
.services__item .tab-price::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;

    /* Сбрасываем скругление в 0, так как overflow: hidden на карточке сам всё скруглит */
    border-radius: 0 !important;

    background: transparent !important; /* Делаем его полностью прозрачным */
    z-index: 10 !important; /* Поднимаем над текстом и картинкой */
    cursor: pointer !important;
}