body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
}

.container {
    max-width: 100%;
}

.shadow {
    -webkit-box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
    -moz-box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
    box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
}

.container {
    /*max-width: 1200px;*/
    margin: 0 auto;
    padding: 20px;
}

header {
    /*background: #4CAF50;*/
    background-color: white;
    color: grey;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 999;
}
.footer {
    /*background: #4CAF50;*/
    background-color: white;
    padding: 10px 0;
    width: 100%;
    max-width: 1425px;
    margin: 20px auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-top: 2px solid #4baf50;
}

.main-content {

    /*border: 2px solid orange;*/
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0;
}

.main-container {
    /*border: 1px solid orange;*/
    border-radius: 10px;
    overflow: hidden;
    /*padding: 30px;*/
    position: relative;
    margin: 30px auto;
    height: auto; /* Высота слайдера */
    /*max-height: 600px;*/
    cursor: pointer; /* Изменение курсора при наведении на слайд */
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1452px;
    margin-top: 100px;

}

.section-title {
    /*color: #2352B8;*/
    color: #4CAF50;
    font-weight: 400;
    font-size: 30px;
    text-align: center;
    /*margin-left: 30px;*/
    padding: 20px;
    font-family: "DejaVu Sans";
    text-transform: uppercase;
    width: 100%;
}
.from-us-block {
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    height: 800px;
    width: 100%;
    max-width: 1500px;
    margin: 30px auto;
}

.from-us-block-text-wrapper {
    width: 600px;
}
.from-us-block-text-wrapper > p {
    text-align: justify;
}

.from-us-block-text-wrapper > ul {
    text-align: justify;
}

.from-us-block-image-wrapper {
    padding: 20px;
    width: 50%;
    overflow: hidden;
    height: auto;
    min-height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.from-us-block-image-wrapper > .border > img {
    height: auto;
    max-height: 660px;
    /*border-radius: 10px;*/
}
.border {
    border-radius: 20px;
    overflow: hidden;
}

.main-image-wrapper {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: flex;
    align-items: center;
}
.main-image-wrapper > img {
    border-radius: 10px;
    width: 100%;
}

.catalog {
    border-radius: 10px;

}

.catalog-block {
    text-align: center;
    width: 100%;
    max-width: 1452px;
    margin: 30px auto;
}
.catalog {
    display: flex;
    justify-content: space-between; /* Разделяет элементы по горизонтали */
    flex-wrap: wrap; /* Позволяет элементам переноситься на новую строку при необходимости */
    max-width: 1400px; /* Максимальная ширина контейнера */
    margin: 0 auto; /* Центрирует контейнер */
}

.catalog-item {
    width: 33%; /* Задает ширину элемента равной 33% */
    padding: 20px;
    margin-bottom: 20px; /* Отступ снизу */
    position: relative; /* Позволяет позиционировать дочерние элементы относительно данного блока */
}

.img--wrapper {
    /* Если хотите, чтобы отступы внутри блока были равномерными, можно использовать padding */
    padding: 0; /* Убираем отступы для лучшего контроля */
}

.img--row {
    display: flex; /* Используем flex для центрирования изображения */
    justify-content: center; /* Центрируем по горизонтали */
    align-items: center; /* Центрируем по вертикали */
    border-radius: 10px; /* Скругляем углы */
    overflow: hidden; /* Скрываем лишнюю часть изображения */
    height: 400px; /* Задайте фиксированную высоту, чтобы вся область занимала одинаковое место */
    max-height: 400px; /* Максимальная высота для адаптивности */
}

.img--row > img {
    height: 100%; /* Высота изображения 100% от родителя */
    width: auto; /* Ширина авто, чтобы изображение сохраняло свои пропорции */
    min-width: 100%; /* Ограничиваем максимальную ширину изображения, чтобы оно не выходило за пределы блока */
    object-fit: cover; /* Заполнить блок, обрезая лишние части */
}

.title-row {
    padding: 10px; /* Внутренний отступ */
    text-align: start; /* Выравнивание текста по левому краю */
    position: absolute; /* Позиционирование относительно родителя */
    color: white; /* Цвет текста */
    background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
    border-radius: 10px; /* Скругление углов */
    top: 30px; /* Расположение от верхнего края */
    left: 30px; /* Расположение от левого края */
}

.title-row > h4 {
    font-size: 20px; /* Размер шрифта заголовка */
    font-weight: 600; /* Жирность шрифта заголовка */
}

.title-row > p {
    font-size: 16px; /* Размер шрифта для описания */
    margin: 0; /* Убираем отступы */
}


.fence_title {
    text-transform: uppercase;
    margin: 0;

}
.fence_p {
    font-size: 20px !important;
}
.price_span {
    font-weight: 600;
}
/* Стили для слайдера */
.swiper-container {
    /*border: 1px solid orange;*/
    border-radius: 10px;
    padding: 5px;
    position: relative;
    height: 600px; /* Высота слайдера */
    cursor: pointer; /* Изменение курсора при наведении на слайд */
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    padding: 0;
    width: 100%;
    overflow: hidden;

    align-items: center;
    justify-content: center;
}

.swiper-slide > img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

/* Модальное окно */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    min-height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal .swiper-container {
    width: 90%;
    height: 90%; /* Высота слайдера в модальном окне */
}

.modal img {
    max-width: 90%;
    max-height: 90%;
}

.close {
    position: absolute;
    top: 5px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.description {
    background-color: rgba(0, 0, 0, .5);
    padding: 20px;
    border-radius: 10px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.description_action_block {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.base-block {
    border-radius: 10px;
    margin: 30px auto;
    /*border: 1px solid orange;*/
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px;
}

.contact-info {
    border-radius: 10px;
    margin: 30px auto;
    /*border: 1px solid orange;*/
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px;
}

/*    галерея */
.gallery-block {
    max-width: 1500px;
    border-radius: 10px;
    margin: 30px auto;

    text-align: center;
}

.gallery {
    /*border: 1px solid orange;*/
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /*padding: 40px;*/
}

.gallery-item {
    width: 45%;
    max-width: 300px; /* Фиксированная ширина карточки */
    height: 300px; /* Фиксированная высота карточки */
    cursor: pointer;
    margin: 1.5%;
    transition: transform 0.3s;
    overflow: hidden; /* Для обрезки изображения */
    border-radius: 8px; /* Округление углов карточки, если нужно */
}

.gallery-item img {
    width: 100%; /* Изображение занимает 100% ширины карточки */
    height: 100%; /* Изображение занимает 100% высоты карточки */
    object-fit: cover; /* Заполнение карточки изображением */
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Стили для модального окна (галереи) */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: auto;
    max-height: 80%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8); /* Опционально, для затенения фона */
}

.modal img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Обеспечивает, чтобы изображение сохраняло пропорции */
}


.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    height: 80px;
    /*border: 1px solid orange;*/
}

.header_wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1452px;
    margin: 0 auto;
}

#logo {
    width: 150px;

}

button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

/* Модальное окно */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: left;
    width: 400px; /* Ширина модального окна */
}

.close {
    position: absolute;
    top: 5px;
    right: 20px;
    color: #198754;
    font-size: 30px;
    cursor: pointer;
}

label {
    display: block;
    margin: 10px 0 5px;
}

input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
/*    модальное окно */

.form {
    width: 50%;
}
.advantages-block {
    width: 100%;
    max-width: 1452px;
    margin: 50px auto;
    display: flex;
    flex-wrap: wrap;
}

.advantages {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.advantages-item {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    width: 30%;
    padding: 20px;
    border-radius: 10px;
    height: 250px;
}
.advantages-title {
    padding-top: 20px;
    width: 100%;
    text-align: center;
 }
.advantages-title > h4 {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 18px;
    height: 30px;
}

.advantages-title > p {
    height: 80px !important;
    font-size: 1rem;
}
.order-section {
    padding: 40px;
    /*background-color: orange;*/
    width: 100%;
    max-width: 1452px;
    margin: 0 auto;
    /*display: flex;*/
    /*flex-wrap: wrap;*/
    /*justify-content: space-between;*/
    border-radius: 10px;
    /*background-color: #373331;*/
    /*background: #2352B8;*/
    background: linear-gradient(90deg, rgb(76, 175, 80) 0%, rgb(67, 222, 134) 50%, rgb(76, 175, 81) 100%);
    color: white;
}
.order-section-title, .action-text {
    width: 100%;
}
.order-section-title-block {
    padding: 20px;
    /*background-color: red;*/
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.order-section-form-block {
    padding: 20px;
    /*background-color: green;*/
    width: 100%;
    position: relative;
}
@keyframes rotateAndMove {
    0% {
        transform: rotate(0deg) translateX(0) translateY(0); /* Начальное положение */
    }
    25% {
        transform: rotate(60deg) translateX(50px) translateY(-25px); /* Вращение и движение вверх */
    }
    50% {
        transform: rotate(120deg) translateX(-10px) translateY(10px); /* Вращение и движение вправо */
    }
    75% {
        transform: rotate(60deg) translateX(10px) translateY(25px); /* Вращение и движение вниз */
    }
    100% {
        transform: rotate(0deg) translateX(0) translateY(0); /* Возвращение в исходное положение */
    }
}

.animated-icon {
    /* Применение анимации к иконке */
    animation: rotateAndMove 5s ease-in-out infinite; /* Время анимации, плавность, зацикленность */
}


.animated-icon {
    animation: rotateAndMove 5s ease-in-out infinite; /* Время анимации 5 секунд, бесконечно */
}

.icon-block > svg {
    position: absolute;
    top: -20px;
    right: 15%;
    transform: rotate(148deg);
}
.call-request-modal {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.swiper-container {
    width: 100%;
    padding: 0;
    max-width: 1452px;
    /*margin: 20px auto;*/
}
.start-block, .end-block {
    width: 50%;
}
.start-block {
    justify-content: flex-start;
}
.end-block {
    justify-content: flex-end;
    text-align: end;

}
.short_fence_row {
    width: 100%;
    max-width: 1452px;
    display: flex;
    margin: 20px auto;
    justify-content: space-between;
    overflow-x: scroll;
}
.icon_block {
    /*border: 3px solid #4bae4f;*/
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    width: 140px;
    color: grey;
}
.icon_block:hover {
    background-color: #4bae4f;
    color: white;
}
.icon_block > img {
    width: 65px;
}
.icon_title {
    width: 100%;
    height: 50px;
    text-align: center;
    font-size: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}
a {
    text-decoration: none !important;
    color: grey;
}
.footer_logo_wrapper {
    text-align: start;
}
.main-image-wrapper {
    display: flex; /* Устанавливаем flex-контейнер */
    flex-direction: column; /* Устанавливаем вертикальную ориентацию */
    gap: 20px; /* Промежуток между элементами, можете изменить значение */
}

.swiper-container {
    flex-grow: 1; /* Позволяет контейнеру занимать все доступное пространство */
}

.description {
    /*background-color: #333; !* Цвет фона, если это необходимо, можете настроить *!*/
    color: white; /* Цвет текста */
    padding: 20px; /* Отступы для описания */
}

.description_action_block {
    display: flex;
    flex-direction: column; /* Вертикальное размещение текста и кнопки */
    align-items: center; /* Центрирование содержимого внутри блока */
    height: 100%; /* Задаём максимальную высоту */
}

.md-hidden {
    display: none;
}
.sm-hidden {
    display: block;
}
@media (max-width: 1350px) {

    .from-us-block-image-wrapper {
        display: none;
    }
    .catalog-item {
        width: 50%;
    }
    .advantages-item {
        width: 50%;
    }
}
@media (max-width: 768px) {
    .call-request-modal {
        width: 80%;
    }
    .title-row > h4 {
        font-size: 16px;
    }

    .call-request-modal > .section-title {
        font-size: 18px;
    }
    .description_action_block > h2 {
        font-size: 20px;
        padding-bottom: 10px;
    }
    .icon_block {
        width: 120px;
        margin: 0 10px;
    }
    .icon_block > img {
        width: 45px;
    }
    .icon_title {
        font-size: 12px;
    }
    .order-section {
        padding: 0;
        height: 450px;
    }
    .order-section-title > h2 {
        font-size: 20px;
        font-weight: 600;
    }
    .form {
        width: 100%;
    }
    .icon-block > svg {
        top: 100%;
        right: 40%  ;
        width: 80px;
    }
    .catalog-item, .from-us-block {
        padding: 0;
    }
    .from-us-block {
        height: auto;
    }
    .advantages-item {
        height: 300px;
    }
    .advantages-title {
        padding-top: 16px;
    }
    .advantages-title > h4 {
        font-size: 14px;
        height: 30px;
    }

    .advantages-title > p {
        height: 80px !important;
        font-size: .8rem;
    }

    .main-image-wrapper {
        height: 300px;
    }
    .gallery-item {
        width: 100%;
        max-width: 500px;
    }
    .main-content {
        flex-direction: column;
    }
    .swiper-container, .base-block, .contact-info {
        width: 100%;
        /*margin: 30px 0;*/
    }
    .catalog-item {
        width: 100%;
    }
    .swiper-container {
        height: auto;
    }

}
@media (max-width: 500px) {
    .md-hidden {
        display: block;
    }

    .sm-hidden {
        display: none;
    }
}

