/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-Book.woff2') format('woff2');
  font-weight: 400; /* 'Book' обычно соответствует нормальному начертанию */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gotham';
  src: url('fonts/Gotham-Bold.woff2') format('woff2');
  font-weight: 700; /* 'Bold' — жирное начертание */
  font-style: normal;
  font-display: swap;
}

/* Дальнейшие стили вашего сайта */
body {
    font-family: 'Gotham', 'Arial', sans-serif;
    background-color: #f3f9ff;
    overflow-x: hidden;
}
/* Main Section */
.main {
    position: relative;
    width: 100%;
    /* УБРАЛИ ФИКСИРОВАННУЮ ВЫСОТУ. Теперь высота секции зависит от контента */
}

/* Контейнер для фоновых картинок */
.main > .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    line-height: 0; /* Убираем возможный отступ у img */
}

/* Стили для фоновых картинок */
.bg-desktop, .bg-mobile {
    width: 100%;
    height: auto; /* Высота подстраивается под ширину, сохраняя пропорции */
}

.bg-mobile {
    display: none; /* По умолчанию мобильная картинка скрыта */
}

/* Основной контент */
.main-content {
    position: relative; /* Изменено на relative, чтобы быть поверх фона */
    width: 100%;
    height: 100%;
    z-index: 5;
    padding-bottom: 1000px; 
}

.logo {
    position: absolute;
    left: 240px;
    top: 39px;
    width: 222px;
    height: 218px;
    z-index: 3;
}

.logo-image {
    width: 100%;
    height: 100%;
    background-image: url('img/logo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.text {
    position: absolute;
    left: 239px;
    top:450px;
    width: 619px;
    color: #ffffff;
}

.text h1 {
    font-family: 'Gotham', 'Arial Black', sans-serif;
    font-weight: bold;
    font-size: 80px;
    line-height: normal;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.text p {
    font-family: 'Gotham', 'Arial', sans-serif;
    font-size: 24px;
    line-height: normal;
    font-weight: 400;
}

/* Brand Section */
.brand {
    position: absolute;
    left: 237px;
    margin-top: 850px;
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 40px;
}


.brand h2 {
    font-family: 'Gotham', 'Arial Black', sans-serif;
    font-weight: bold;
    font-size: 50px;
    color: #ffffff;
    line-height: normal;
}

.txts {
    display: flex;
    justify-content: space-between;
    font-family: 'Gotham', 'Arial', sans-serif;
    font-size: 22px;
    color: #ffffff;
    line-height: normal;
        font-weight: 400;
}

.txt-left {
    width: 663px;
}

.txt-right {
    width: 672px;
}

/* --- НАЧАЛО СТИЛЕЙ ДЛЯ КАРТОЧЕК ПРОДУКТОВ (из products.css) --- */

/* Контейнер продуктов */

.products-title {
    text-align: center; /* Центрирование текста по горизонтали */
    width: 100%;       /* Убеждаемся, что заголовок занимает всю ширину контейнера */
    margin-bottom: 40px; /* Отступ снизу до карточек (можете изменить) */

    /* Необязательные стили для красоты */
    font-size: 2.5rem; /* Размер шрифта (36px-40px) */
    font-weight: bold; /* Насыщенность шрифта */
    color: #333;       /* Цвет текста */
}
.products {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    max-width: 1440px;
    margin: 0 auto;
    margin-top: 200px; /* Скорректированный отступ для наложения */
    padding: 0 20px;
    position: relative; /* Для z-index */
    z-index: 10; /* Чтобы карточки были выше фона */
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Общие стили карточки */
.product-card {
    position: relative;
    width: 330px;
    height: 619px;
    border-radius: 35px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Фоновые градиенты */
.card-bg {
    position: absolute;
    left: 0;
    top: 167px;
    width: 100%; /* Заменено на 100% для адаптивности */
    height: 452px;
    border-radius: 35px;
    transition: transform 0.3s ease;
}

.product-card:hover .card-bg {
    transform: scale(1.02);
}

.bg-grusha {
    background: linear-gradient(180deg, #f8f466 0%, #e1b02f 44.508%);
}

.bg-tarhun {
    background: linear-gradient(180deg, #d3e753 0%, #4e9710 50.287%);
}

.bg-saperavi {
    background: linear-gradient(180deg, #b2346f 0%, #8d1b1f 51.235%);
}

.bg-feyhoa {
    background: linear-gradient(180deg, #d3d646 0%, #e0708a 49.734%);
}

/* Область бутылки */
.bottle-area {
    position: absolute;
    left: 46px;
    top: 0;
    width: 238px;
    height: 350px;
}



/* Контейнер бутылки */
.bottle-container {
    position: absolute;
    left: 62px;
    top: 0;
    width: 150px;
    height: 333.741px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .bottle-container {
    transform: scale(1.1);
    /* filter: brightness(1.05) contrast(1.02); */
}

.bottle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Декоративные фрукты */
.fruit {
    position: absolute;
    transition: transform 0.3s ease;
}

.fruit img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Позиции фруктов */
.fruit-1-4, .fruit-2-4, .fruit-3-4, .fruit-4-4 { left: 0; top: 102px; width: 114.305px; height: 107.435px; }
.fruit-1-3, .fruit-2-3, .fruit-3-3, .fruit-4-4 { left: 109.96px; top: 199.22px; width: 139.734px; height: 149.811px; }
.fruit-1-2, .fruit-2-2, .fruit-3-2, .fruit-4-2 { left: 30px; top: 237px; width: 35.736px; height: 37.182px; }
.fruit-1-1, .fruit-2-1, .fruit-3-1, .fruit-4-1 { left: 171px; top: 122px; width: 33.238px; height: 33.724px; }


/* Текст карточки */
.card-text {
    position: absolute;
    left: 30px;
    top: 358px;
    width: 270px;
    text-align: center;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.card-text h3 {
    font-family: 'Gotham', 'Arial Black', sans-serif;
    font-weight: bold;
    font-size: 28px;
    text-transform: uppercase;
    line-height: normal;
    margin: 0;
}

.card-text p {
    font-family: 'Gotham', 'Arial', sans-serif;
    font-size: 16px;
    line-height: normal;
    margin: 0;
    font-weight: 400;
}

/* Анимации плавания фруктов */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(var(--rotation, 0deg));
    }
    50% {
        transform: translateY(-8px) rotate(var(--rotation, 0deg));
    }
}

.fruit {
    animation: float 3s ease-in-out infinite;
}
.fruit-1-1, .fruit-2-1, .fruit-3-1, .fruit-4-1 { animation-delay: 0s; --rotation: 121.612deg; }
.fruit-1-2, .fruit-2-2, .fruit-3-2, .fruit-4-2 { animation-delay: 0.5s; --rotation: -75.757deg; }
.fruit-1-3, .fruit-2-3, .fruit-3-3, .fruit-4-3 { animation-delay: 1s; --rotation: 24.415deg; }
.fruit-1-4, .fruit-2-4, .fruit-3-4, .fruit-4-4 { animation-delay: 1.5s; --rotation: -5.714deg; }


/* Дополнительные эффекты при наведении */
.product-card:hover .fruit {
    animation-duration: 2s;
}

/* .product-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
} */


/* --- КОНЕЦ СТИЛЕЙ ДЛЯ КАРТОЧЕК ПРОДУКТОВ --- */


/* Footer */
.footer {
    position: relative;
    width: 100%;
    background-color: #061c4f;
    overflow: hidden;
    min-height: 360px; /* Используем min-height для гибкости */
}

.footer-bg {
    position: absolute;
    left: 0px;
    width: 1920px;
    height: 400px;
    overflow: hidden;
}

.footer-image {
    position: absolute;
    left: -314px;
    top: -621px;
    width: 2350.629px;
    height: 1445.033px;
    background-image: url('https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=2351&h=1445&fit=crop&blur=7');
    background-size: auto 93.56%;
    background-position: 0% -13.68%;
    background-repeat: no-repeat;
    background-color: rgba(1, 13, 3, 0.67);
    background-blend-mode: overlay;
    filter: blur(7.25px);
    transform: rotate(-1.373deg);
}

.container {
    position: relative;
    z-index: 2;
    left: 240px;
    top: 60px;
    width: 1440px;
    height: 277px;
}

.footer-logo {
    position: absolute;
    left: 0;
    top: 0;
    width: 119px;
    height: 114px;
}

.footer-logo-image {
    width: 100%;
    height: 100%;
    background-image: url('img/logo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.address {
    position: absolute;
    left: 394px;
    top: -7px;
    width: 1047px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #ffffff;
}

.address h3 {
    font-family: 'Gotham', 'Arial Black', sans-serif;
    font-weight: bold;
    font-size: 24px;
    line-height: 31.2px;
}

.address p {
    font-family: 'Gotham', 'Arial', sans-serif;
    font-size: 16.8px;
    line-height: 31.25px;
    white-space: pre-wrap;
        font-weight: 400;
}

.link-vk {
    position: absolute;
    left: 394px;
    top: 248px;
    width: 29px;
    height: 29px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.link-vk:hover {
    transform: scale(1.1);
}


/* --- МЕДИА-ЗАПРОСЫ --- */

@media (max-width: 1440px) {
    .brand h2 {
        font-size: 50px;
        color: #000000;
    }

    .txts {
        font-size: 22px;
        color: #000000;
    }
    .products {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }
}

@media (max-width: 1200px) {
    .main {
        width: 100vw;
        height: auto;
        transform: none;
    }
    
    .logo {
        left: 80px;
        top: 20px;
        width: 150px;
        height: 150px;
    }
    
    .text {
        left: 80px;
        top: 400px;
        width: calc(100vw - 40px);
        max-width: 600px;

    }
    
    .text h1 {
        font-size: 60px;
    }
    
    .text p {
        font-size: 20px;
    }
    
    .brand {
        left: 80px;
        top: 700px;
        margin-top: 0;
        position: relative;
        width: calc(100% - 40px);
    }
    
    .txts {
        flex-direction: column;
        gap: 20px;
        font-size: 18px;
        width: 90%;
    }
    
    .txt-left, .txt-right {
        width: 100%;
    }
    
    .products {
        width: 100vw;
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
        gap: 100px;
        padding: 0 20px;
        margin-top: -200px;
    }
    
    .footer {
        width: 100vw;
        height: auto;
        padding: 0;
        padding-bottom: 100px;

    }
    
    .footer-logo {
        position: relative; /* Делаем логотип частью flex-потока */
        left: 0;
        top: 0;
    }
    
    .container {
        left: 20px;
        width: calc(100vw - 40px);
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    
    .address {
        position: relative;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .link-vk {
        position: relative;
        left: 0;
        top: 0;
    }
    .footer-bg {
        height: 100%;

    }
}

@media (max-width: 768px) {
    /* ✨ ЛОГИКА ПЕРЕКЛЮЧЕНИЯ ФОНА ✨ */
    .bg-desktop {
        display: none; /* Скрываем десктопную картинку */
    }
    .bg-mobile {
        display: block; /* Показываем мобильную */
    }

    .text {
        left: 20px;
        top: 900px;
        text-align: center;
    }


    .text h1 {
        font-size: 40px;
    }
    
    .text p {
        font-size: 16px;
    }
    .brand {
        top: 1100px;
        text-align: center;
        left: 20px;
    }
    .brand h2 {
        font-size: 30px;
    }
    
    .txts {
        font-size: 16px;
    }
    
    .products {
        flex-direction: column;
        align-items: center;
        margin-top: 200px; /* Адаптация отступа для мобильных */
        gap: 40px;
    }
    
    .product-card {
        width: 100%;
        max-width: 330px;
    }
    
    .address p {
        font-size: 14px;
    }
}


@media (max-width: 600px) {
    .text {
       color:  #09772B;
    }
}

@media (max-width: 480px) {
    .logo {
        left: 10px;
        scale: 0.7;
        top: 0px;
    }
    .main {
        height: 1100px;
    }

    .text {
        top: 700px;
    }
    .brand {
        top: 900px;
        display: flex;
        align-items: center;
        left: 20px;
    }

    .text h1 {
        font-size: 32px;
    }
    
    .brand h2 {
        font-size: 24px;
    }

    .products {
        margin-top: 100px;
        gap: 40px;
        padding: 0px;
    }
    
    .product-card {
        width: 300px;
        height: 560px;
    }
    
    .card-text {
        width: 240px;
        left: 30px;
    }
    
    .card-text h3 {
        font-size: 24px;
    }
    
    .card-text p {
        font-size: 12px;
    }

    .bottle-area {
        transform: scale(0.9);
        left: 30px;
    }

    .products-title {
        margin-top: 60px;
        font-size: 26px;
    }
}

@media (max-width: 390px) {
    .text {
    top: 600px;
    }

    .brand {
        top: 850px;
    }
}

@media (max-width: 1530px) {
 .txts p {
    color: #000000;
 }
}

/* Улучшенная анимация для пользователей без предпочтений к уменьшенной движению */
@media (prefers-reduced-motion: no-preference) {
    .product-card {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) ;
    }
    
    .bottle-container {
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Для пользователей с предпочтением уменьшенной анимации */
@media (prefers-reduced-motion: reduce) {
    .fruit {
        animation: none;
    }
    
    .product-card:hover .bottle-container {
        transform: scale(1.05);
    }
    
    .product-card, .bottle-container, .card-bg {
        transition-duration: 0.15s;
    }
}