@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --primary: #8B5A2B;
    --primary-light: #B8860B;
    --primary-gradient: linear-gradient(135deg, #8B5A2B 0%, #B8860B 100%);
    --secondary: #2C241E;
    --accent: #D2B48C;
    --bg-main: #FDFBFA;
    --card-bg: #FFFFFF;
    --text-dark: #1A1512;
    --text-light: #6C757D;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --border-radius: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Glass Navigation */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: -1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Premium Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 120px;
    /* Отступ сверху для навигации */
    padding-bottom: 60px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/static/images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-main), transparent);
}

.hero-content {
    max-width: 900px;
    padding: 0 5%;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4.5rem);
    /* Уменьшил максимальный размер для планшетов */
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    opacity: 0.95;
    margin-bottom: 3.5rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-order {
    background: var(--primary-gradient);
    color: white;
    padding: 1.2rem 3.5rem;
    border-radius: 100px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 15px 35px rgba(139, 90, 43, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-order:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(139, 90, 43, 0.5);
}

/* Sections Styling */
section {
    padding: 100px 5%;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Comparison Cards */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.comp-card {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: transform 0.3s;
}

.comp-card.premium {
    background: var(--secondary);
    color: white;
    transform: scale(1.05);
    border: 2px solid var(--primary);
}

.comp-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.comp-card ul {
    list-style: none;
    text-align: left;
}

.comp-card li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comp-card.premium li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comp-card li i {
    color: var(--primary);
    margin-right: 10px;
}

/* Product Catalog */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-15px) rotate(1deg);
}

.card-img-container {
    height: 320px;
    overflow: hidden;
    position: relative;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.card:hover img {
    transform: scale(1.1);
}

.card-content {
    padding: 2.5rem;
}

.card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 2rem;
}

.toggle-btn {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn:hover {
    background: var(--primary);
    color: white;
}

.batches-details {
    margin-top: 20px;
    padding: 1.5rem;
    background: #FDFBFA;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    cursor: zoom-in;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 40px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 80px 5%;
    text-align: center;
}

footer .logo {
    color: white;
    margin-bottom: 2rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1.2rem;
        border-radius: 30px;
        top: 10px;
        width: 95%;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 140px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    /* Уменьшил шрифт для телефонов */
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .comp-card.premium {
        transform: scale(1);
        margin: 20px 0;
    }

    .btn-order {
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
    }

    .gallery-item {
        height: 250px;
    }

    /* Уменьшил высоту фото в галерее для мобильных */
}

/* Seasonal Decoration */
.particle {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}