@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
    --primary: #5D4037;
    /* Muted Cocoa Brown */
    --primary-light: #8D6E63;
    --secondary: #3E2723;
    --accent: #A1887F;
    --bg-main: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-dark: #263238;
    --text-light: #78909C;
    --glass: rgba(255, 255, 255, 0.95);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --border-radius: 12px;
    /* Less rounded for a more serious look */
}

* {
    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: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 2000;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 45px;
    width: auto;
    margin-right: 12px;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    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(1.8rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: white;
}

.hero h1 span {
    color: var(--accent);
}

.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);
    color: white;
    padding: 1rem 2.8rem;
    border-radius: 8px;
    /* More classic button shape */
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
}

.btn-order:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* 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: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
}

.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);
}

.hidden-item {
    display: none !important;
}

.show-more-container {
    text-align: center;
    margin-top: 50px;
}

.gallery-item.show-animation {
    animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 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;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(139, 90, 43, 0.5);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* New Section Styles */
.section-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.char-item {
    background: #fdfdfd;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(139, 90, 43, 0.05);
    transition: all 0.3s ease;
}

.char-item:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.char-title {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.char-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.char-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}