.main-wrapper {
    justify-content: center;
    text-align: center;
    display: grid;
    place-items: center;
}

.home-content {
    max-width: 1250px;
}

.med-img {
    left: 0;
    border-radius: 10px; /* или другое значение, чтобы задать желаемый радиус */
    opacity: 0.7; 
    width: 100%;
    height: 100%;
    position: absolute;
    transition: opacity 1s ease; /* Плавный переход */
}

.med-container {
    position: relative;
    width: 100%; /* Ширина контейнера */
    height: 700px; /* Высота контейнера */
    overflow: hidden;
    box-shadow: 0 25px 45px -12px rgba(60, 90, 50, 0.35),
                0 2px 10px 0 rgba(180, 210, 160, 0.3);
}

.hidden {
    opacity: 0; /* Скрывает изображение */
}

.med-text {
    width: 40%;
    position: absolute;
    top: 60%; 
    right: 20px; 
    transform: translateY(-50%);
    text-align: left;
    background-color: #f6f7fbd2;
    border-radius: 30px;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.225);
}

.med-text h5 {
    color: #abd373;
    font-size: 150%;
}

.med-text p {
    margin-top: 30px;
    color: #525252;
    border-radius: 20px;
    font-style: italic;
    font-size: 110%;
}

.carousel {
    margin-top: 30px;
    background-color: white;
    /* padding-left: 40px;
    padding-right: 40px; */
    padding-bottom: 40px;
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
    background: linear-gradient(to bottom, #e4efe2, white);
    box-shadow: 0 25px 45px -12px rgba(60, 90, 50, 0.35),
                0 2px 10px 0 rgba(180, 210, 160, 0.3);
}

.galery-container {
    background: linear-gradient(to bottom, #e4efe2, white);
    box-shadow: 0 25px 45px -12px rgba(60, 90, 50, 0.35),
                0 2px 10px 0 rgba(180, 210, 160, 0.3);
}

.track {
    display: flex;
    gap: 12px;
    transition: transform 0.35s ease;
    will-change: transform;
    font-style: italic;
}

.reviews {
    width: 560px;
    height: 800px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 45px -12px rgba(60, 90, 50, 0.35), 0 2px 10px 0 rgba(180, 210, 160, 0.3);
}

.slide {
    flex: 0 0 calc(50% - 30px); /* 2 карточки на экран */
    height: 90px;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    color: #525252;
    margin-right: 20px;
}

.slide:hover {
    transform: scale(1.1);
}

.slide label,
.slide i{
    margin-right: 5px;
    background-color: #f6f7fb;
    padding: 10px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.225);
}

.slide label {
    font-size: clamp(0.8rem, 1.1vw, 1.1rem);
}

.slide i {
    font-size: clamp(1.2rem, 2vw, 2rem);
}
 
h3 {
    font-style: italic;
    font-family: 'Georgia', serif;
    font-weight: 400;
    line-height: 64px;
    margin-bottom: 15px;
    /* color: #abd373; */
    color: #656566;
}

.gallery {
    position: relative;
    z-index: 1;
    display: flex; /* Используем flexbox для расположения изображений */ /* Выравнивание по левому краю */
    flex-wrap: nowrap; /* Запрет на перенос строк */
    margin: 1vw; /* Убираем отступы, используя vw для адаптивности */
    border-radius: 10px;
}

.gallery-scope {
    margin: 1vw; /* Отступы между изображениями, адаптивные */
    flex: 1 1 auto; /* Элементы занимают равное пространство и уменьшаются */
    display: flex; /* Используем flexbox для внутренних элементов */
    flex-direction: column; /* Вертикальное расположение элементов */
    justify-content: center; /* Центрируем содержимое по вертикали */
    align-items: center; /* Центрируем содержимое по горизонтали */
    position: relative; /* Для позиционирования текста */
    cursor: pointer;
    width: 33%;
}

.gallery-scope img {
    width: 100%; /* Изображение заполняет всю ширину контейнера */
    height: auto; /* Автоматическая высота для сохранения пропорций */
    border-radius: 8px; /* Скругление углов изображений */
    max-height: 200px; /* Максимальная высота изображения */
    object-fit: cover; /* Обрезка изображения с сохранением пропорций */
    filter: brightness(55%);
}

.gallery-scope {
    position: relative; /* Убедитесь, что родительский элемент имеет относительное позиционирование */
}


.gallery-scope h3 {
    position: absolute;
    /* bottom: 0;
    left: 50%;
    z-index: -1; */
    /* font-style: italic; */
    font-size: clamp(0.8rem, 1.5vw, 1.5rem); /* Размер шрифта адаптивный */
    text-align: center; /* Центрируем текст */
    color: #ffffffb6; /* Белый цвет текста */
    padding: 1vw; /* Адаптивные отступы */
    border-radius: 15px;
    white-space: pre-line;
    width: 100%; /* Задаем ширину на всю ширину родительского элемента */
    line-height: 1.2rem
}

.gallery-scope:hover img {
    transform: scale(1.1);
    filter: brightness(85%); /* Увеличиваем изображение на 10% при наведении */
}

.scope-active img{
    filter: brightness(85%);
}

.full-width-video {
    width: 100%; /* Занимает 100% ширины родительского элемента */
    height: 500px;
    top: 0; /* Устанавливает верхнюю границу видео */
    left: 0; /* Устанавливает левую границу видео */
    object-fit: cover;
    margin-bottom: 1vw;
    margin-top: 1vw;
    z-index: 1;
    box-shadow: 0 25px 45px -12px rgba(60, 90, 50, 0.35),
                0 2px 10px 0 rgba(180, 210, 160, 0.3);

}

.main-text{
    font-family: 'Georgia', serif; /* Элегантный шрифт */
    align-items: center;
}

.slide-content .main-text{
    display: grid !important;
    place-items: center;
}

.description {
    font-size: clamp(1rem, 1.4vw, 1.7rem);
    color: #5d4037; /* Коричневый цвет */
    line-height: 1.6; /* Интервал между строками */
    font-style: italic; /* Курсив для описания */
    /* text-align: center; */
    width: 80%;
}

.btn-wrap {
    font-size: clamp(0.8rem, 1vw, 1.2rem);
}

.expand-width {
    display: grid !important;
    place-items: center;
}

.expand-width img {
    width: 70%;
}

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

.full-image {
    max-width: 90%;
    max-height: 90%;
    z-index: 99999;
}

.fixed-call-banner {
    /* position: fixed; */
    /* bottom: 190;
    left: 20px; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9; /* Цвет фона */
    border: 1px solid #ccc; /* Граница */
    border-radius: 15px; /* Скругление углов */
    padding: 15px; /* Внутренний отступ */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Тень */
    max-width: 100%;
    background: linear-gradient(to bottom, #e4efe2 0%, #e4efe2 50%, white 100%);
}

.fixed-call-banner p {
    margin: 0; /* Убираем отступы */
    font-size: 16px; /* Размер шрифта */
}

.fixed-call-banner label a b:hover{
    cursor: pointer;
    color: #abd373;
}

.fixed-call-banner input[type='tel'] {
    margin-top: 10px; /* Отступ сверху */
    padding: 10px; /* Внутренний отступ */
    border: 1px solid #ccc; /* Граница */
    border-radius: 3px; /* Скругление углов */
    width: 300px; /* Ширина поля */
}

.go-to-scope-catalog,
.fixed-call-banner button {
    margin-top: 10px; /* Отступ сверху */
    padding: 10px; /* Внутренний отступ */
    background-color: #abd373; /* Цвет фона кнопки */
    color: white; /* Цвет текста */
    border: none; /* Без границы */
    border-radius: 3px; /* Скругление углов */
    cursor: pointer; /* Курсор при наведении */
}

.go-to-scope-catalog:hover,
.fixed-call-banner button:hover {
    background-color: #4c4c4c; /* Цвет кнопки при наведении */
}

.brand-area {
    width: 1250px;
}

.brand-item img{
    max-width: 200px;
}

@media (max-width: 600px) {
    .brand-area {
        max-width: 400px;
    }
    
    .brand-item img{
        max-width: 100px;
    }

    .home-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .med-container {
        width: 370px;
        height: 300px;
    }

    .med-text { 
        width: 100%;
        right: 0;
    }

    .med-text p {
        margin-top: 10px;
        font-size: 80%;
    }

    .med-text h5 {
        font-size: 110%;
    }

    .carousel {
        width: 400px;
    }

    .slide {
        flex: 0 0 calc(100% - 20px);
        margin-right: 10px;
        border-radius: 5px;
        width: 400px;
    }

    .reviews {
        width: 360px;
        height: 500px;
        overflow: hidden;
        position: relative;
        box-shadow: 0 25px 45px -12px rgba(60, 90, 50, 0.35), 0 2px 10px 0 rgba(180, 210, 160, 0.3);
    }

}

.product-list-container {
    display: none;
    margin-bottom: 20px;
}

.add-card {
    position: absolute;
    bottom: 2;
    left: 20%;
    right: 0;
    border: 2px solid #dee2e6;
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    width: 80%;
    opacity: 0.5;
    cursor: pointer;
    background-color: #6c6c6c;
    color: white;
}

.added {
    background-color: #abd373;
    color: black;
    font-weight: 500;
}


.add-card:hover {
    background-color: #abd373;
    transform: scale(1.05);
    font-weight: 500;
}

@media (max-width: 991px) {
    .product-grid-view {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .col-md-4 {
        width: 100%;
    }
    .tab-content {
        margin-top: 35px;
    }
    .add-card {
        width: auto;
    }
}

.product-slider {
    display: flex;
    width: 100%;
    aspect-ratio: 3 / 4; /* Устанавливаем соотношение сторон 3:4 */
    overflow: hidden;
    position: relative;
}






/* MASTER-CONTAINER — главная обёртка (замена .card) */
.master-container {
    max-width: 1100px;
    width: 100%;
    background-color: #ffffffd9;
    backdrop-filter: blur(2px);
    border-radius: 40px;
    box-shadow: 0 25px 45px -12px rgba(60, 90, 50, 0.35),
                0 2px 10px 0 rgba(180, 210, 160, 0.3);
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    border: 1px solid rgba(170, 220, 140, 0.5);
}

/* GALLERY-WRAP — левая часть слайдера (замена .slider-area) */
.gallery-wrap {
    flex: 1 1 45%;
    min-width: 280px;
    background-color: #f8fff5;
    padding: 24px 24px 30px 24px;
    display: flex;
    flex-direction: column;
    border-right: 2px dashed #b1d8a0;
}

/* GALLERY-HEADER (замена .slider-title) */
.gallery-header {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: #558b4a;
    margin-bottom: 16px;
    text-transform: uppercase;
    opacity: 0.8;
    font-style: italic;
}

/* GALLERY-BOX — внешний контейнер фото (замена .slider-frame) */
.gallery-box {
    flex: 1;
    min-height: 380px;
    border-radius: 32px;
    background: #cfe5c3;
    box-shadow: inset 0 2px 12px #b1cf9e, 0 10px 18px -10px #7b9f6b;
    padding: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* GALLERY-VIEW (замена .slider-container) */
.gallery-view {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: #ecfae5;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(70, 110, 50, 0.15);
}

/* PHOTO-STACK (замена .slides-wrapper) */
.photo-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

/* PHOTO-ITEM (замена .slide) */
.photo-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    box-shadow: 0 6px 14px rgba(50, 80, 30, 0.2);
    pointer-events: none;
}

/* VISIBLE (замена .active) */
.photo-item.visible {
    opacity: 1;
    z-index: 2;
}

/* NAVIGATION-DOTS — блок точек (замена .slider-dots) */
.navigation-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

/* DOT-ITEM (замена .dot) */
.dot-item {
    width: 10px;
    height: 10px;
    border-radius: 10px;
    background-color: #b8d9aa;
    transition: 0.3s;
    cursor: default;
    box-shadow: 0 2px 4px #d0e5c0;
}

/* DOT-ITEM.CURRENT (замена .active-dot) */
.dot-item.current {
    width: 30px;
    background-color: #5d914f;
    box-shadow: 0 0 0 2px #ebffe2;
}

/* REQUEST-SECTION — правая часть с формой (замена .form-area) */
.request-section {
    flex: 1 1 45%;
    min-width: 300px;
    padding: 48px 36px;
    background: #f8fff5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* MAIN-HEADING (замена h2) */
.main-heading {
    font-size: 2rem;
    font-weight: 500;
    color: #65676a;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    border-left: 8px solid #65676a;
    padding-left: 24px;
}

/* INFO-BLOCK (замена .description) */
.info-block {
    font-size: 1.1rem;
    color: #3f5c39;
    margin-bottom: 28px;
    line-height: 1.6;
    background: #e2f1d9;
    padding: 20px 22px;
    border-radius: 28px;
    border: 1px solid #c7e3b8;
    box-shadow: 0 8px 12px -8px #b0cd9f;
    font-weight: 350;
    font-style: italic;
}

/* FIELD-CONTAINER (замена .input-group) */
.field-container {
    margin-bottom: 24px;
}

/* FIELD-LABEL (замена label) */
.field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #3b6d34;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* FIELD-INPUT (замена .input-field) */
.field-input {
    width: 100%;
    padding: 16px 22px;
    font-size: 1rem;
    background-color: #ffffff;
    border: 2px solid #cfe3c3;
    border-radius: 44px;
    outline: none;
    transition: 0.2s;
    color: #2c5527;
    box-shadow: 0 4px 10px #e0f0d6;
}

.field-input:focus {
    border-color: #7fb073;
    box-shadow: 0 0 0 4px #dff2d4, 0 4px 12px #b1d5a1;
}

.field-input::placeholder {
    color: #aacb9b;
    font-weight: 300;
}

/* ACTION-BUTTON (замена .call-button) */
.action-button {
    background-color: #abd373;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    padding: 18px 24px;
    border-radius: 60px;
    cursor: pointer;
    transition: 0.15s;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border: 1px solid #a5d191;
    margin-top: 12px;
}

.action-button:hover {
    background-color: #65676a;
    transform: scale(1.01);
}

.action-button:active {
    transform: translateY(3px);
    box-shadow: 0 5px 12px -2px #7eaf6e;
}

/* ADDITIONAL-NOTE (замена .footnote) */
.additional-note {
    margin-top: 28px;
    font-size: 0.85rem;
    color: #97b98b;
    text-align: center;
    border-top: 1px solid #d2e8c4;
    padding-top: 18px;
}

.accept-container {
    display: inline;
}

.accept-container b {
    cursor: pointer;
}

.accept-container b:hover {
    color: #abd373;
}


/* адаптив без изменений имён (медиа-запросы трогать не нужно) */
@media (max-width: 800px) {
    .master-container {
        flex-direction: column;
        border-radius: 32px;
    }
    .gallery-wrap {
        border-right: none;
        border-bottom: 2px dashed #b1d8a0;
    }
    .request-section {
        padding: 36px 28px;
    }
    .main-heading {
        font-size: 1.2rem;
    }
}

@media (max-width: 450px) {
    .gallery-wrap {
        justify-content: center;
        align-items: center;
        display: flex;
    }
    .gallery-box {
        height: 300px;
        width: 250px;
        flex: none;
    }
}
