:root {
    --bg: #F9F8F6;
    --text: #222222;
    --accent: #8E7F70;
    --line: rgba(0,0,0,0.08);
}

/* --- ВАША ПРОВЕРЕННАЯ БАЗА --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    background-color: var(--bg); color: var(--text); 
    font-family: 'Montserrat', sans-serif; overflow-x: hidden; line-height: 1.6; 
}
h1, h2, .item span, em { font-family: 'Cormorant Garamond', serif; font-weight: 300; }

#main-logo { height: 45px; width: auto; display: block; }
.header { padding: 25px 0; position: sticky; top: 0; background: var(--bg); z-index: 1000; }
.header-container { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 0 40px 15px; }

/* ИСПРАВЛЕНИЕ 1: Скрываем триггер меню по умолчанию на десктопе */
.menu-trigger {
    display: none;
    cursor: pointer;
}

/* ИСПРАВЛЕНИЕ 2: Запрещаем ссылкам переноситься на новые строки */
.main-nav, .lang-selector {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.main-nav a, .lang-selector a { 
    text-decoration: none; color: var(--text); font-size: 11px; 
    text-transform: uppercase; letter-spacing: 2px; margin: 0 12px; 
    transition: 0.3s; opacity: 0.5; padding-bottom: 4px;
}
.main-nav a:hover, .lang-selector a:hover { opacity: 1; }
.main-nav a.active, .lang-selector a.active { opacity: 1; font-weight: bold; border-bottom: 1px solid var(--text); }

#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg); z-index: 9999; display: flex; justify-content: center; align-items: center; transition: opacity 0.6s ease; }
.loader-flower { width: 45px; height: 45px; border: 2px solid var(--accent); border-top: 2px solid transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- ИСПРАВЛЕННАЯ КНОПКА ВВЕРХ --- */
#backToTop {
    display: none; position: fixed; bottom: 30px; right: 30px; z-index: 99; border: 1px solid var(--line);
    background-color: var(--bg); color: var(--text); cursor: pointer; width: 45px; height: 45px; border-radius: 50%;
    font-size: 14px; transition: all 0.3s ease; opacity: 0.6; outline: none;
}
#backToTop:hover { 
    background-color: #222222; 
    color: #ffffff; 
    opacity: 1; 
    transform: translateY(-5px); 
    border-color: #222222;
}

.fade-in { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1); }
.fade-in.appear { opacity: 1; transform: translateY(0); }
.reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s cubic-bezier(0.19, 1, 0.22, 1); }
.appear .reveal-img { clip-path: inset(0 0 0 0); }

/* --- HERO SECTION --- */
.hero-editorial { 
    display: flex; align-items: center; justify-content: center; min-height: 90vh; gap: 40px; 
    padding: 20px 40px; max-width: 1400px; margin: 0 auto; position: relative; overflow: visible; 
}
.hero-text { flex: 1; z-index: 10; position: relative; }
.hero-text h1 { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.85; white-space: nowrap; }
.label { font-size: 10px; text-transform: uppercase; letter-spacing: 4px; color: var(--accent); margin-bottom: 20px; display: block; }

.hero-flower-large {
    position: absolute; right: calc((100vw - 100%) / -2); top: 75%; 
    transform: translateY(-50%); width: 65%; max-width: 800px; z-index: 5; 
    pointer-events: none; opacity: 0; transition: all 1.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.appear .hero-flower-large { opacity: 1; right: calc((100vw - 100%) / -2) !important; }

.hero-image { flex: 1; display: flex; justify-content: flex-end; z-index: 1; position: relative; }
.hero-image img { width: 100%; max-width: 480px; height: 70vh; object-fit: cover; box-shadow: 20px 20px 50px rgba(0,0,0,0.05); }

/* --- ABOUT SECTION --- */
.container { max-width: 1300px; margin: 0 auto; padding: 0 40px; }
.about-editorial { padding: 120px 0; }
.about-wrapper { display: flex; gap: 80px; align-items: center; }
.about-photo img { width: 100%; max-width: 450px; height: 600px; object-fit: cover; }
.about-info h2 { font-size: 3.5rem; margin-bottom: 25px; }
.about-info p { max-width: 500px; font-weight: 300; font-size: 1.1rem; margin-bottom: 40px; }

.link-more { 
    text-decoration: none; color: var(--text); font-size: 12px; text-transform: uppercase; 
    letter-spacing: 2px; border-bottom: 1px solid var(--text); padding-bottom: 5px; transition: 0.3s opacity;
}
.link-more:hover { opacity: 0.7; }

/* --- ФУТЕР --- */
.footer { padding: 80px 0 40px; text-align: center; border-top: 1px solid var(--line); }
.footer p { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; margin-bottom: 25px; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; }
.social-icon { font-size: 22px; color: var(--text); transition: 0.4s ease; text-decoration: none; }
.social-icon:hover { color: var(--accent); transform: translateY(-3px); }
.copyright { font-size: 10px; text-transform: uppercase; letter-spacing: 2px; opacity: 0.5; margin-top: 20px; }

/* --- ТЕМНЫЙ ПРЕМИАЛЬНЫЙ ФОН С РАЗМЫТИЕМ (OVERLAY) --- */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.15); 
    backdrop-filter: blur(4px); 
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- ПРЕМИАЛЬНАЯ БОКОВАЯ ПАНЕЛЬ МЕНЮ --- */
.full-menu { 
    position: fixed; 
    top: 0; 
    right: 0; 
    width: 80%; 
    max-width: 340px; 
    height: 100vh; 
    background-color: var(--bg); 
    z-index: 1100; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: flex-start; 
    padding: 0 45px !important; 
    list-style: none !important; 
    box-sizing: border-box;
    margin: 0 !important;
    
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.02);

    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.full-menu.active {
    transform: translateX(0);
}

.full-menu li {
    margin: 14px 0 !important; 
    padding: 0 !important;
    list-style: none !important;
    display: block !important;
    width: 100% !important;
}

.full-menu a {
    display: inline-block !important;
    text-decoration: none !important;
    color: var(--text) !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.8rem !important; 
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2 !important; 
    transition: all 0.3s ease !important;
    opacity: 0.7 !important;
}

.full-menu a:hover {
    opacity: 1 !important;
    color: var(--accent) !important;
    padding-left: 6px !important; 
}

/* --- ФИНАЛЬНЫЕ КОМПАКТНЫЕ СТИЛИ КАТАЛОГА --- */
.bags-title, .items-title { 
    text-align: center; 
    padding: 15px 0 25px; 
    font-size: 2.8rem; 
}
.bags-grid, .items-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); 
    gap: 40px 40px; 
    padding-bottom: 80px; 
}
.bag-card, .item-card { display: flex; flex-direction: column; text-align: center; }

.bag-image-wrap, .item-image-wrap { 
    margin-bottom: 12px; 
    overflow: hidden; 
    background: #f2f2f2; 
}
.bag-image-wrap img, .item-image-wrap img { 
    width: 100%; 
    height: 360px; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1); 
}
.bag-card:hover .bag-image-wrap img, .item-card:hover .item-image-wrap img { transform: scale(1.05); }

.bag-name, .item-name { 
    font-family: 'Cormorant Garamond', serif; 
    font-size: 1.3rem; 
    margin-bottom: -1px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 300; 
}
.bag-price, .item-price { 
    font-size: 1rem; 
    font-weight: 200; 
    margin-bottom: 15px; 
    opacity: 0.7; 
}
.bag-footer, .item-footer { display: flex; justify-content: center; align-items: center; gap: 15px; }

.bag-btn, .item-btn { 
    padding: 10px 24px; 
    background-color: #E6DCD2; 
    color: #222; 
    text-decoration: none; 
    font-size: 9px; 
    text-transform: uppercase; 
    letter-spacing: 2.5px; 
    transition: 0.3s; 
}
.bag-btn:hover, .item-btn:hover { background-color: #222; color: #F9F8F6; }

.bag-status, .item-status { 
    font-size: 8.5px; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    opacity: 0.5; 
}
.bag-status.out, .item-status.out { opacity: 0.3; text-decoration: line-through; }

/* ИСПРАВЛЕНИЕ 3: Перенесли точку включения на 1024px (планшеты), чтобы меню не ломалось */
@media (max-width: 1024px) {
    .menu-trigger { display: block; z-index: 1201; position: relative; }
    .main-nav, .lang-selector { display: none; } 
    
    .hero-editorial { flex-direction: column-reverse; text-align: center; min-height: auto; padding-top: 60px; }
    .hero-flower-large { width: 70%; top: 30%; right: -5%; }
    .hero-image img { height: 50vh; }
    .about-wrapper { flex-direction: column; gap: 40px; text-align: center; }
    
    .bags-grid, .items-grid { grid-template-columns: 1fr; gap: 50px 0; }
    .bag-image-wrap img, .item-image-wrap img { height: 380px; }

.about-info p {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box; /* Чтобы отступы не увеличивали ширину элемента */
    }
}

/* --- КРЕСТИК ЗАКРЫТИЯ --- */
.menu-close {
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    opacity: 0.6;
    transition: 0.3s;
}
.menu-close:hover { opacity: 1; }

/* --- ИСПРАВЛЕНИЕ РАБОТЫ ФОНА --- */
.menu-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Затемнение */
    backdrop-filter: blur(5px);    /* Размытие */
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}
.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- УБЕДИМСЯ, ЧТО МЕНЮ ВЫШЕ ФОНА --- */
.full-menu {
    z-index: 1100;
}
/* Стили для языков в мобильном меню */
.menu-lang-selector {
    display: flex !important;
    justify-content: center;
    gap: 15px;
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--line);
    width: 100% !important;
}

.menu-lang-selector a {
    font-family: 'Montserrat', sans-serif !important; /* Возвращаем шрифт для языка */
    font-size: 10px !important;
    letter-spacing: 2px !important;
    opacity: 0.5 !important;
    text-transform: uppercase;
}

.menu-lang-selector a.active {
    opacity: 1 !important;
    text-decoration: underline;
    color: var(--text) !important;
}
/* Стили для увеличения фото */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(249, 248, 246, 0.95); 
    justify-content: center;
    align-items: center;
}
.modal-content {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0,0,0,0.1);
}
.close-modal {
    position: absolute;
    top: 30px; right: 40px;
    font-size: 40px;
    cursor: pointer;
    color: #222;
    font-family: Arial, sans-serif;
}
.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid var(--accent); /* Используем ваш акцентный цвет */
    color: var(--text);
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    transition: all 0.3s ease;
    background: transparent;
}

.whatsapp-btn:hover {
    background-color: var(--accent);
    color: #fff;
}
.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    
    /* Тонкая рамка в стиле вашего сайта */
    border: 1px solid var(--text); 
    
    color: var(--text);
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    transition: all 0.3s ease;
    background: transparent;
    
    /* Ограничиваем ширину, чтобы кнопка не растягивалась слишком сильно */
    max-width: 250px;
    margin: 10px auto;
}

.whatsapp-link:hover {
    background-color: var(--text);
    color: var(--bg);
}

.whatsapp-link i {
    font-size: 14px;
}