/* styles.css */
/* ========= ГЛОБАЛЬНЫЕ НАСТРОЙКИ ========= */
:root {
    --heading-gradient: linear-gradient(112deg, #AE8625 5%, #F7EF8A 45%, #D2AC47 85%);
    --button-gradient: linear-gradient(132deg, #D2AC47 5%, #F7EF8A 45%, #AE8625 85%);
    --menu-hover: #ffdc43;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #333436; /* Фолбэк цвет */
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/background-pattern.webp'); /* Укажите путь к вашему изображению */
    background-repeat: repeat;
    background-size: 300px 300px; /* Размер паттерна - подберите под ваше изображение */
    opacity: 0.05; /* Прозрачность текстуры */
    z-index: -1;
    pointer-events: none;
}

/* ========= ТИПОГРАФИКА ========= */
h1, h2, h3 {
    font-family: 'Prata', serif;
    font-weight: 400;
    line-height: 1.25;
}

p {
    line-height: 1.8;
}

.color-collection-title {
    text-align: center;
    margin: 15px 0 0;
    font-size: 1.1rem;
    color: #F7EF8A;
}

/* ========= ШАПКА САЙТА ========= */
header {
    position: fixed;
    width: 100%;
    height: 80px;
    top: 0;
    z-index: 1000;
    background: #333436;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.logo {
    height: 40px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-item a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    position: relative;
    padding-bottom: 5px;
    transition: 
        color 0.3s ease,
        transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--menu-hover);
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 100%;
}

.nav-item a:hover {
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* ========= ГЛАВНЫЙ БАННЕР ========= */
.hero {
    height: 100vh;
    background: url('hero-bg.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

@supports (height: 100dvh) {
    .hero {
        height: 100dvh;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

h1 {
    font-size: 2.8rem;
    background-image: var(--heading-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

.advantages-list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.advantages-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 30px;
    list-style-type: none;
}

.advantages-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #F7EF8A;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    background: var(--button-gradient);
    color: #000000;
    text-decoration: none;
    margin: 20px 0 40px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
}

.features {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.feature-item {
    text-align: center;
    max-width: 200px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--heading-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* ========= СЕКЦИИ ПРОДУКЦИИ ========= */
.products-section {
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    margin: 2rem 0 1rem;
    background-image: var(--heading-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
    width: 100%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.product-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 10;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover .product-image {
    opacity: 0.7;
}

.product-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.product-button {
    padding: 10px 20px;
    background: var(--button-gradient);
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.product-button:hover {
    transform: scale(1.05);
}

/* ========= ДЕТАЛЬНЫЕ СЕКЦИИ ========= */
.product-detail {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    gap: 3rem;
}

.product-detail.reverse {
    flex-direction: row-reverse;
}

.product-detail-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-content {
    flex: 1;
}

.product-detail h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background-image: var(--heading-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* ========= ГАЛЕРЕЯ ========= */
.gallery-main {
    padding: 4rem 1rem;
    background: #2a2b2e;
    min-height: 100vh;
}

.gallery-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

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

.gallery-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* ========= ФУТЕР ========= */
footer {
    background: #1e1f21;
    padding: 3rem 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #F7EF8A;
}

.footer-menu {
    list-style: none;
}

.footer-menu a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #F7EF8A;
}

.map-container {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

/* ========= КНОПКА ОБРАТНОГО ЗВОНКА ========= */
.callback-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--button-gradient);
    color: #000000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 25px rgba(215, 172, 71, 0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

.callback-button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 35px rgba(215, 172, 71, 0.6);
}

.callback-button:active {
    transform: scale(0.95);
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(215, 172, 71, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(215, 172, 71, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(215, 172, 71, 0);
    }
}

/* Адаптивность для кнопки */
@media (max-width: 768px) {
    .callback-button {
        width: 60px;
        height: 60px;
        bottom: 25px;
        right: 25px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .callback-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 22px;
    }
}

/* ========= АДАПТИВНОСТЬ ========= */
@media (max-width: 768px) {
    header {
        height: 60px;
        padding: 10px 15px;
    }

    .logo {
        height: 30px;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        right: 0;
        left: 0;
        background: #333436;
        flex-direction: column;
        padding: 1rem;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        margin-bottom: 15px;
    }

    .hamburger {
        display: block;
    }

    .hero {
        padding-top: 60px;
        height: auto;
        min-height: 100vh;
    }

    h1 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }

    .product-card {
        height: 250px;
    }

    .product-detail {
        flex-direction: column;
        margin: 2rem auto;
        padding: 0 15px;
    }

    .product-detail.reverse {
        flex-direction: column;
    }

    .product-detail-image {
        height: 300px;
        width: 100%;
        max-width: 500px;
        margin: 0 auto 20px;
    }

    .features {
        flex-direction: column;
        gap: 1.5rem;
    }

    .map-container {
        height: 250px;
    }

    .section-with-bottom-space {
        margin-bottom: 50px !important;
        padding-bottom: 30px;
    }
    .features {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr); /* Три равные колонки */
        gap: 0.8rem;
        width: 100%;
        padding: 0 10px;
    }

    .feature-item {
        text-align: center;
        padding: 8px;
        min-width: auto !important; /* Убираем фиксированную ширину */
    }

    .feature-icon {
        font-size: 1.6rem !important; /* Оптимальный размер иконок */
        margin-bottom: 0.4rem;
    }

    .feature-item h3 {
        font-size: 0.75rem !important;
        line-height: 1.2;
        white-space: normal; /* Разрешаем перенос текста */
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Ограничиваем текст 2 строками */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    .product-card {
        height: 200px;
        margin-bottom: 10px;
    }
    .features {
        gap: 0.5rem;
        padding: 0 5px;
    }
    .feature-icon {
        font-size: 1.4rem !important;
    }
    .feature-item h3 {
        font-size: 0.7rem !important;
        -webkit-line-clamp: 2; /* Сохраняем 2 строки текста */
    }
}
@media (max-width: 360px) {
    .feature-icon {
        font-size: 1.2rem !important;
    }
    .feature-item h3 {
        font-size: 0.65rem !important;
    }
}

/* ========= СПЕЦИАЛЬНЫЕ ФИКСЫ ========= */
@supports (-webkit-touch-callout: none) {
    h1, .section-title, .product-detail h3 {
        background-image: -webkit-linear-gradient(112deg, #AE8625 5%, #F7EF8A 45%, #D2AC47 85%);
    }
}

@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) { 
    .logo {
        background-image: url('logo@2x.webp');
        background-size: contain;
    }
}

@media screen and (max-width: 767px) {
    input, textarea {
        font-size: 16px;
    }
}

@supports not (--css: variables) {
    :root {
        --menu-hover: #ffdc43;
    }
    
    .cta-button {
        background: linear-gradient(132deg, #D2AC47 5%, #F7EF8A 45%, #AE8625 85%);
    }
}

@media print {
    .hero, footer, .hamburger {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ========= ОРИЕНТАЦИЯ ЭКРАНА ========= */
@media (max-width: 1024px) {
    @media (orientation: landscape) {
        .hero-content {
            padding: 30px 10%;
        }

        .product-grid {
            grid-template-columns: repeat(3, 1fr);
        }

        .map-container {
            height: 400px;
        }
    }

    @media (orientation: portrait) {
        .map-container {
            height: 250px;
        }
    }
}
/* Стили для кнопок в продуктах */
.product-button {
    padding: 12px 24px;
    background: var(--button-gradient);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-align: center;
}

.product-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(215, 172, 71, 0.3);
}

/* Стили для кнопок CTA на главной */
.cta-button {
    padding: 16px 32px;
    background: var(--button-gradient);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-align: center;
    margin: 20px 0 40px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(215, 172, 71, 0.4);
}

/* Улучшенные стили для мобильных кнопок */
@media (max-width: 768px) {
    .product-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 16px;
    }
}

/* ========= КОММЕНТАРИИ ========= */
/*
1. Все стили объединены в логической последовательности
2. Сохранены все оригинальные медиа-запросы и фиксы
3. Добавлены улучшения для Retina-экранов
4. Реализованы кросс-браузерные решения
5. Оптимизирована производительность анимаций
6. Учтены особенности мобильных устройств
7. Добавлена поддержка печатных стилей
8. Улучшена доступность элементов
*/