:root {
    --color-bg-light: #fffef3;
    --color-bg-card: #F6EDDE;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-accent: #956434;
    --color-promo-bg: #222222;
    --color-white: #FFFFFF;
    --color-border: #E5E5E5;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    --pad-x: max(20px, 5.7vw); 
    
    --z-header: 100;
    --z-overlay: 150;
    --z-modal: 200;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

body { font-family: var(--font-body); background-color: var(--color-bg-light); color: var(--color-text-main); overflow-x: hidden; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font-family: inherit; color: inherit; }

/* ИСПРАВЛЕНИЕ БУРГЕРА: Жестко скрываем на ПК */
.mobile-only { display: none !important; }
@media (max-width: 1024px) {
    .mobile-only { display: flex !important; }
    .desktop-only { display: none !important; }
}

.mt-2 { margin-top: 24px; }
.w-100 { width: 100%; }

/* --- HEADER & PROMO --- */
.header-group { position: fixed; top: 0; left: 0; width: 100%; z-index: var(--z-header); transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.4s ease, backdrop-filter 0.4s ease; }
.header-group.is-solid { background-color: rgba(255, 254, 243, 0.9); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: 0 1px 0 rgba(0,0,0,0.05); }

.promo-bar { background-color: var(--color-promo-bg); color: var(--color-white); text-align: center; padding: 10px var(--pad-x); font-size: 12px; letter-spacing: 0.05em; }
.promo-bar a { text-decoration: underline; text-underline-offset: 4px; }

.header { width: 100%; color: var(--color-white); transition: color 0.4s ease; }
.header-group.is-solid .header { color: var(--color-text-main); }
.header__inner { display: flex; justify-content: space-between; align-items: center; padding: 24px var(--pad-x); height: 80px; }

.header__left, .header__right { flex: 1; display: flex; align-items: center; }
.header__right { justify-content: flex-end; gap: 24px; }
.desktop-nav { display: flex; gap: 32px; }

.nav-link, .btn-text { font-size: 14px; font-weight: 400; letter-spacing: 0.08em; position: relative; }
.nav-link::after, .btn-text::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px; background-color: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s ease; }
.nav-link:hover::after, .icon-btn:hover .btn-text::after { transform: scaleX(1); transform-origin: left; }

.header__center { flex: 0 1 auto; text-align: center; }
.logo { font-family: var(--font-heading); font-weight: 500; font-size: max(24px, 2.2vw); letter-spacing: 0.15em; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-italic { font-family: var(--font-heading); font-style: italic; font-size: max(14px, 1vw); letter-spacing: 0.05em; margin-top: 4px; margin-left: 20px; }

.icon-btn { display: flex; align-items: center; gap: 8px; transition: opacity 0.3s; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: -8px; right: -10px; background-color: var(--color-accent); color: var(--color-white); font-size: 10px; font-weight: 500; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.header-group.is-solid .cart-count { background-color: var(--color-text-main); }

/* --- HERO SECTION --- */
.hero { position: relative; width: 100%; height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 var(--pad-x) 12svh var(--pad-x); color: var(--color-white); text-align: center; }
.hero__bg-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #141613; z-index: -1; }
.hero__content { max-width: 800px; animation: fadeUp 1s ease forwards; opacity: 0; transform: translateY(30px); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero__subtitle { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; }
.hero__title { font-family: var(--font-heading); font-size: clamp(36px, 5vw, 64px); font-weight: 500; letter-spacing: 0.02em; margin-bottom: 24px; line-height: 1.1; }
.hero__text { font-size: 16px; font-weight: 300; margin-bottom: 40px; color: rgba(255,255,255,0.8); }

/* --- BUTTONS --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 18px 32px; font-size: 14px; font-weight: 500; letter-spacing: 0.05em; cursor: pointer; transition: all 0.4s ease; border: 1px solid transparent; }
.btn svg { transition: transform 0.3s ease; }
.btn:hover svg { transform: translateX(5px); }
.btn--outline-light { border-color: rgba(255,255,255,0.4); color: var(--color-white); width: 100%; max-width: 320px; }
.btn--outline-light:hover { background-color: var(--color-white); color: var(--color-text-main); border-color: var(--color-white); }
.btn--outline-dark { border-color: var(--color-border); color: var(--color-text-main); }
.btn--outline-dark:hover { background-color: var(--color-text-main); color: var(--color-white); border-color: var(--color-text-main); }
.btn--dark { background-color: var(--color-text-main); color: var(--color-white); width: 100%; padding: 14px 24px; }
.btn--dark:hover { background-color: var(--color-accent); border-color: var(--color-accent); }

/* --- PRODUCT CAROUSEL --- */
.section { padding: 100px var(--pad-x); }
.section__header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 60px; }
.section__header-text { max-width: 600px; }
.section__title { font-family: var(--font-heading); font-size: clamp(28px, 3vw, 42px); font-weight: 500; margin-bottom: 16px; }
.section__desc { color: var(--color-text-muted); font-size: 15px; font-weight: 300; }
.carousel-nav { display: flex; gap: 16px; }
.carousel-nav .icon-btn { border: 1px solid var(--color-border); padding: 12px; border-radius: 50%; transition: background 0.3s; }
.carousel-nav .icon-btn:hover { background: var(--color-border); }

.carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 40px; scrollbar-width: none; scroll-behavior: smooth; }
.carousel::-webkit-scrollbar { display: none; }

/* ИСПРАВЛЕНИЕ КАРТОЧКИ ТОВАРА: Воздух и структура */
.product-card { flex: 0 0 320px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; cursor: pointer; }
@media (max-width: 768px) { .product-card { flex: 0 0 85vw; } .section__header { flex-direction: column; gap: 24px; align-items: flex-start; text-align: left; } }

.product-card__bookmark { position: absolute; top: 16px; right: 16px; color: var(--color-text-muted); z-index: 2; transition: color 0.3s; }
.product-card__bookmark:hover { color: var(--color-text-main); }
.product-card__image-wrap { width: 100%; aspect-ratio: 3 / 4; background-color: var(--color-bg-card); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; overflow: hidden; }
.product-card__mock-bottle { width: 60px; height: 140px; background: rgba(0,0,0,0.1); border-radius: 4px 4px 10px 10px; position: relative;}
.product-card__mock-bottle::before { content: ''; position: absolute; top: -20px; left: 15px; width: 30px; height: 20px; background: rgba(0,0,0,0.2); }

.product-card__info { display: flex; flex-direction: column; flex: 1; width: 100%; }
.product-card__title { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.product-card__desc { font-size: 14px; font-weight: 300; color: var(--color-text-muted); margin-bottom: 24px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Контейнер для цены и объема (выравнивание блоками) */
.product-card__meta { margin-bottom: 32px; /* Увеличенный отступ "воздух" перед кнопкой */ }
.product-card__size { display: block; font-size: 12px; color: var(--color-text-muted); margin-bottom: 8px; letter-spacing: 0.05em; }
.product-card__price { display: block; font-size: 16px; font-weight: 500; }

.product-card__add { margin-top: auto; /* Прибивает кнопку к низу */ }

/* --- SPLIT SECTION --- */
.split-section { display: grid; grid-template-columns: 1fr 1fr; padding: 100px var(--pad-x); gap: 80px; align-items: center; }
@media (max-width: 1024px) { .split-section { grid-template-columns: 1fr; gap: 40px; padding: 60px var(--pad-x); } .split-section__image { grid-row: 1; } }
.split-section__label { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 16px; text-transform: uppercase; }
.split-section__title { font-family: var(--font-heading); font-size: clamp(32px, 4vw, 48px); font-weight: 500; margin-bottom: 24px; }
.split-section__text { font-size: 16px; font-weight: 300; color: var(--color-text-muted); margin-bottom: 32px; line-height: 1.6; }
.split-section__image .img-placeholder { width: 100%; aspect-ratio: 4 / 5; background-color: var(--color-bg-card); }

/* --- FOOTER (НОВЫЙ БЛОК) --- */
.footer { background-color: var(--color-promo-bg); color: var(--color-white); padding: 80px var(--pad-x) 40px; }
.footer__main { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 40px; }
@media (max-width: 768px) { .footer__main { grid-template-columns: 1fr; gap: 40px; } }

.footer__title { font-size: 14px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; }
.footer__text { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.7); margin-bottom: 24px; line-height: 1.6; max-width: 400px; }

/* Форма подписки как у люкс брендов */
.subscribe-form { display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.4); padding-bottom: 8px; transition: border-color 0.3s; max-width: 400px; }
.subscribe-form:focus-within { border-color: var(--color-white); }
.subscribe-form input { flex: 1; background: transparent; border: none; color: var(--color-white); font-family: inherit; font-size: 14px; outline: none; }
.subscribe-form input::placeholder { color: rgba(255,255,255,0.4); }
.subscribe-form button { color: var(--color-white); transition: transform 0.3s; }
.subscribe-form button:hover { transform: translateX(5px); }

.footer__nav { display: flex; flex-direction: column; gap: 16px; }
.footer__nav a { font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer__nav a:hover { color: var(--color-white); }

.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer__logo { font-family: var(--font-heading); font-size: 24px; letter-spacing: 0.15em; }
.footer__logo span { font-style: italic; font-size: 14px;}
.footer__copyright { font-size: 12px; color: rgba(255,255,255,0.5); }
.footer__socials { display: flex; gap: 24px; }
.footer__socials a { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-white); }

/* --- MODALS --- */
.global-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); backdrop-filter: blur(5px); z-index: var(--z-overlay); opacity: 0; visibility: hidden; transition: all 0.4s ease; }
.global-overlay.is-active { opacity: 1; visibility: visible; }

.cart-drawer { position: fixed; top: 0; right: 0; width: 100%; max-width: 450px; height: 100svh; background: var(--color-bg-light); z-index: var(--z-modal); transform: translateX(100%); transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); display: flex; flex-direction: column; }
.cart-drawer.is-active { transform: translateX(0); }
.cart-drawer__header { padding: 24px 32px; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; }
.cart-drawer__header h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 500; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 32px; }

.cart-item { display: flex; gap: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--color-border); padding-bottom: 24px; }
.cart-item__img { width: 80px; height: 100px; background-color: var(--color-bg-card); flex-shrink: 0; }
.cart-item__info { flex: 1; display: flex; flex-direction: column; }
.cart-item__top { display: flex; justify-content: space-between; margin-bottom: 4px; }
.cart-item__top h4 { font-size: 14px; font-weight: 500; }
.cart-item__price { font-size: 14px; }
.cart-item__size { font-size: 12px; color: var(--color-text-muted); margin-bottom: auto; }
.cart-item__controls { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.quantity-selector { display: flex; align-items: center; gap: 16px; border: 1px solid var(--color-border); padding: 4px 12px; }
.cart-item__remove { font-size: 12px; color: var(--color-text-muted); text-decoration: underline; }

.cart-upsell { background: rgba(0,0,0,0.02); padding: 24px; margin-top: 40px; }
.cart-upsell h5 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.upsell-item { display: flex; align-items: center; gap: 16px; }
.upsell-item__info h6 { font-size: 14px; font-weight: 500; }
.upsell-item__info span { font-size: 12px; color: var(--color-text-muted); }

.cart-drawer__footer { padding: 32px; border-top: 1px solid var(--color-border); background: var(--color-bg-light); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 18px; font-weight: 500; margin-bottom: 12px; }
.cart-shipping-note { font-size: 12px; color: var(--color-text-muted); margin-bottom: 24px; text-align: center; }

.auth-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); background: var(--color-bg-light); padding: 60px 40px; width: 100%; max-width: 480px; z-index: var(--z-modal); opacity: 0; visibility: hidden; transition: all 0.4s ease; text-align: center; }
.auth-modal.is-active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.auth-modal__title { font-family: var(--font-heading); font-size: 32px; font-weight: 500; margin-bottom: 16px; }
.auth-modal__desc { font-size: 14px; color: var(--color-text-muted); margin-bottom: 32px; }
.input-group { margin-bottom: 16px; }
.input-group input { width: 100%; padding: 16px 20px; border: 1px solid var(--color-border); background: transparent; font-family: inherit; font-size: 14px; outline: none; transition: border-color 0.3s; }
.input-group input:focus { border-color: var(--color-text-main); }
.auth-modal__switch { font-size: 13px; color: var(--color-text-muted); margin-top: 24px; }
.auth-modal__switch a { color: var(--color-text-main); text-decoration: underline; }
@media (max-width: 480px) { .auth-modal { padding: 40px 20px; height: 100svh; max-width: 100%; display: flex; flex-direction: column; justify-content: center; } }
/* =========================================
   ДОБАВЛЕНИЕ 1: Плавный скролл и СТРОГИЕ РАМКИ карусели
   ========================================= */
html {
    scroll-behavior: smooth;
}

/* Жестко возвращаем карусель в рамки страницы */
.carousel-section {
    padding-left: var(--pad-x); 
    padding-right: var(--pad-x);
}
.section__header {
    padding: 0; 
}
.carousel {
    padding: 0 0 40px 0; 
}


/* =========================================
   ДОБАВЛЕНИЕ 2: СТРАНИЦА ТОВАРА (PRODUCT PAGE)
   ========================================= */

/* Чтобы на внутренних страницах шапка была видна сразу */
.page-inner {
    padding-top: 160px; /* Отступ под шапку */
}
.header-group.is-static {
    position: absolute;
}
.header-group.is-static .header {
    color: var(--color-text-main); /* Темный текст всегда */
}

.product-template {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Половина экран - фото, половина - инфа */
    min-height: calc(100svh - 160px);
    border-top: 1px solid var(--color-border);
}

/* Левая часть - Галерея (Липкая) */
.product-gallery {
    border-right: 1px solid var(--color-border);
    position: relative;
    background-color: var(--color-bg-card); /* Фон как у товара */
}
.product-gallery__inner {
    position: sticky;
    top: 120px; /* Прилипает при скролле */
    padding: 40px var(--pad-x);
    height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery__img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
}

/* Правая часть - Информация */
.product-details {
    padding: 60px var(--pad-x) 100px 80px;
}
.breadcrumb {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}
.breadcrumb a {
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: var(--color-text-main);
}
.breadcrumb span {
    margin: 0 8px;
}

.product-info__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.1;
}
.product-info__desc {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 500px;
}

.product-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
}
.meta-block span {
    display: block;
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.meta-block strong {
    font-size: 16px;
    font-weight: 500;
}

.product-form {
    margin-bottom: 60px;
}

/* АККОРДЕОНЫ (Скрытые разделы) */
.accordions {
    border-top: 1px solid var(--color-border);
}
.accordion {
    border-bottom: 1px solid var(--color-border);
}
.accordion__btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}
.accordion__icon {
    position: relative;
    width: 12px;
    height: 12px;
}
.accordion__icon::before, .accordion__icon::after {
    content: ''; position: absolute; background-color: var(--color-text-main); transition: transform 0.4s ease;
}
.accordion__icon::before { top: 5px; left: 0; width: 100%; height: 1px; }
.accordion__icon::after { top: 0; left: 5px; width: 1px; height: 100%; }

/* Состояние открытого аккордеона */
.accordion.is-open .accordion__icon::after { transform: scaleY(0); }

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.accordion__content-inner {
    padding-bottom: 24px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-text-muted);
}
.accordion__content-inner p { margin-bottom: 16px; }

/* Адаптив страницы товара */
@media (max-width: 1024px) {
    .product-template { grid-template-columns: 1fr; }
    .product-gallery { border-right: none; border-bottom: 1px solid var(--color-border); }
    .product-gallery__inner { position: relative; top: 0; height: auto; padding: 60px var(--pad-x); }
    .product-details { padding: 40px var(--pad-x) 80px var(--pad-x); }
    .product-meta-grid { grid-template-columns: 1fr; gap: 16px; }
}
/* =========================================
   ДОБАВЛЕНИЕ 3: СТРАНИЦА КАТАЛОГА (CATALOG PAGE)
   ========================================= */

.catalog-header {
    padding: 40px var(--pad-x);
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}
.catalog-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 500;
    margin-bottom: 16px;
}
.catalog-desc {
    font-size: 16px;
    font-weight: 300;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Сетка товаров */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* На ПК - 3 товара в ряд */
    gap: 80px 40px; /* Отступы между рядами и колонками */
    padding: 80px var(--pad-x) 120px var(--pad-x);
}

/* Переопределяем поведение карточки внутри сетки (убираем ширину карусели) */
.catalog-grid .product-card {
    flex: none;
    width: 100%;
}

/* Убираем подчеркивание у ссылок-картинок */
.product-card__link {
    display: contents; /* Ссылка не ломает flex-структуру карточки */
}

/* Адаптив каталога */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr); /* Планшет - 2 в ряд */
        gap: 60px 20px;
    }
}
@media (max-width: 600px) {
    .catalog-grid {
        grid-template-columns: 1fr; /* Телефон - 1 в ряд */
        gap: 60px 0;
        padding-top: 40px;
    }
}
/* =========================================
   ДОБАВЛЕНИЕ 4: МОБИЛЬНОЕ МЕНЮ (БУРГЕР)
   ========================================= */
.mobile-menu {
    position: fixed; 
    top: 0; left: 0; width: 100%; height: 100svh;
    background-color: var(--color-bg-light); 
    z-index: 300; /* Выше вообще всего сайта */
    transform: translateY(-100%); /* Спрятано наверху */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex; flex-direction: column;
}
.mobile-menu.is-active { 
    transform: translateY(0); /* Выезжает вниз */
}
.mobile-menu__header { 
    padding: 20px var(--pad-x); 
    display: flex; justify-content: space-between; align-items: center; 
    border-bottom: 1px solid var(--color-border); 
}
.mobile-menu__header .logo { font-size: 20px; }
.mobile-menu__body { 
    padding: 60px var(--pad-x) 40px; 
    display: flex; flex-direction: column; flex: 1; 
    overflow-y: auto;
}
.mobile-nav { 
    display: flex; flex-direction: column; gap: 32px; margin-bottom: auto; 
}
/* Крупный красивый шрифт в меню телефона (Aesop style) */
.mobile-nav a { 
    font-family: var(--font-heading); 
    font-size: 36px; 
    font-weight: 500; 
    letter-spacing: 0.05em;
    color: var(--color-text-main);
}
.mobile-menu__footer { margin-top: 60px; }
/* =========================================
   ДОБАВЛЕНИЕ 5: ИЗБРАННОЕ (АНИМАЦИЯ)
   ========================================= */
.product-card__bookmark {
    /* Добавляем плавность */
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.product-card__bookmark.is-active svg {
    fill: var(--color-text-main); /* Заливаем иконку цветом */
    stroke: var(--color-text-main);
    transform: scale(1.1); /* Легкий эффект увеличения при клике */
}
/* =========================================
   ДОБАВЛЕНИЕ 6: СТРАНИЦА О БРЕНДЕ (BENTO GRID)
   ========================================= */

.about-hero {
    padding: 80px var(--pad-x) 60px;
    text-align: center;
}
.about-hero__label {
    font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; 
    color: var(--color-text-muted); margin-bottom: 24px;
}
.about-hero__title {
    font-family: var(--font-heading); font-size: clamp(40px, 5vw, 64px); 
    font-weight: 500; margin-bottom: 24px;
}
.about-hero__title span { font-style: italic; }
.about-hero__desc {
    font-size: 18px; font-weight: 300; line-height: 1.6; 
    max-width: 700px; margin: 0 auto; color: var(--color-text-muted);
}

/* Сама сетка Bento */
.bento-section {
    padding: 0 var(--pad-x) 120px;
}
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr); /* Две одинаковые строки */
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Общий стиль карточки в сетке */
.bento-card {
    border: 1px solid var(--color-border); /* Тонкая строгая рамка */
    padding: 40px;
    display: flex; flex-direction: column;
    background-color: transparent;
    transition: background-color 0.4s ease;
}
.bento-card:hover {
    background-color: var(--color-white); /* Чуть высветляется при наведении */
}

.bento-card__icon {
    width: 48px; height: 48px; 
    border-radius: 50%; border: 1px solid var(--color-border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 32px; color: var(--color-accent); /* Иконки медного цвета */
}
.bento-card__title {
    font-family: var(--font-heading); font-size: 24px; font-weight: 500; margin-bottom: 16px;
}
.bento-card__text {
    font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--color-text-muted);
}

/* Большая карточка справа */
.bento-card--large {
    grid-column: 3; /* Занимает 3-ю колонку */
    grid-row: 1 / span 2; /* Растягивается на 2 строки вниз */
    padding: 0; 
    border: none;
    position: relative;
    overflow: hidden;
}
.bento-card__image {
    width: 100%; height: 100%;
    /* Добавляем легкое затемнение поверх фото, чтобы текст читался */
    background-color: var(--color-bg-card); 
}
.bento-card--large .bento-card__content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 40px; background: linear-gradient(to top, rgba(20,22,19,0.9) 0%, rgba(20,22,19,0) 100%);
    color: var(--color-white);
}
.bento-card--large .bento-card__icon { border-color: rgba(255,255,255,0.3); color: var(--color-white); }
.bento-card--large .bento-card__text { color: rgba(255,255,255,0.8); }

/* Адаптив сетки */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .bento-card--large {
        grid-column: 1 / span 2; /* На планшете растягивается на всю ширину */
        grid-row: auto;
        min-height: 400px;
    }
}
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card--large {
        grid-column: 1; 
    }
    .bento-card { padding: 32px 24px; }
}
/* =========================================
   ДОБАВЛЕНИЕ 7: РИТУАЛ, АНИМАЦИИ ИКОНОК И ИЗБРАННОЕ В КОРЗИНЕ
   ========================================= */

/* Анимация иконок в шапке при наведении */
.icon-btn svg { transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), fill 0.3s; }
.icon-btn:hover svg { transform: scale(1.1); }
#headerFavBtn.has-items svg { fill: var(--color-white); stroke: var(--color-white); }
.header-group.is-solid #headerFavBtn.has-items svg { fill: var(--color-text-main); stroke: var(--color-text-main); }

/* Кружок счетчика для избранного (как у корзины) */
#headerFavBtn { position: relative; }
.fav-count {
    position: absolute; top: -8px; right: -10px; background-color: var(--color-text-muted); color: var(--color-white);
    font-size: 10px; font-weight: 500; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s;
}
#headerFavBtn.has-items .fav-count { opacity: 1; }

/* Новый блок "Ритуал PEARL" */
.routine-section {
    padding: 120px var(--pad-x);
    background-color: var(--color-white); /* Белый фон для контраста с молочным */
}
.routine-section__title {
    font-family: var(--font-heading); font-size: clamp(32px, 4vw, 48px); font-weight: 500; 
    text-align: center; margin-bottom: 24px;
}
.routine-section__desc {
    font-size: 16px; font-weight: 300; color: var(--color-text-muted); 
    text-align: center; max-width: 600px; margin: 0 auto 60px; line-height: 1.6;
}
.routine-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto;
}
.routine-step {
    border-top: 1px solid var(--color-border); padding-top: 24px;
}
.routine-step__number {
    font-family: var(--font-heading); font-size: 40px; color: var(--color-accent); 
    line-height: 1; margin-bottom: 16px; font-style: italic;
}
.routine-step__name {
    font-size: 18px; font-weight: 500; margin-bottom: 16px; letter-spacing: 0.05em;
}
.routine-step__text {
    font-size: 14px; font-weight: 300; color: var(--color-text-muted); line-height: 1.6;
}
@media (max-width: 768px) { .routine-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Избранное (Аккордеон) внутри корзины */
.cart-favorites {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 0 32px;
}
.cart-favorites__btn {
    font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-main);
}
.cart-fav-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px dashed var(--color-border);
}
.cart-fav-item:last-child { border-bottom: none; }
.cart-fav-item span { font-size: 13px; font-weight: 500; }
.cart-fav-item button { font-size: 12px; text-decoration: underline; color: var(--color-text-muted); }
/* =========================================
   ДОБАВЛЕНИЕ 8: TOAST УВЕДОМЛЕНИЯ И ИСПРАВЛЕНИЕ АНИМАЦИЙ
   ========================================= */

/* Анимация закладок (Избранное) */
.product-card__bookmark {
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.product-card__bookmark:hover svg {
    stroke: var(--color-text-main); /* При наведении обводка темнеет */
}
.product-card__bookmark.is-active svg {
    fill: var(--color-accent);     /* Золотая заливка */
    stroke: var(--color-accent);   /* Золотая обводка */
    transform: scale(1.15) translateY(-2px); /* Прыжок и увеличение */
}

/* Контейнер для всплывающих уведомлений */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none; /* Чтобы не мешали кликать сквозь них */
}

/* Сами плашки уведомлений */
.toast {
    background-color: var(--color-text-main);
    color: var(--color-white);
    padding: 16px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.26, 1.55); /* Эффект пружинки */
}

/* Иконка внутри уведомления */
.toast svg {
    color: var(--color-accent);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Адаптив уведомлений под телефон */
@media (max-width: 768px) {
    .toast-container {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    .toast {
        width: 100%;
        justify-content: center;
    }
}
.hero__bg-placeholder { background: url('hero.jpg') center/cover no-repeat; }
.hero__bg-placeholder::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(20,22,19,0.3) 0%, rgba(20,22,19,0.8) 100%); }
.product-card__img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.split-section__image .img-placeholder { background: url('philosophy.jpg') center/cover no-repeat; }
.bento-card__image { background: url('bento.jpg') center/cover no-repeat; width: 100%; height: 100%; }

.checkout-page { padding: 140px var(--pad-x) 80px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; max-width: 1400px; margin: 0 auto; min-height: 100svh; }
.checkout-form h2, .checkout-summary h2 { font-family: var(--font-heading); font-size: 32px; margin-bottom: 32px; font-weight: 500; }
.checkout-section { margin-bottom: 40px; }
.checkout-section h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 24px; border-bottom: 1px solid var(--color-border); padding-bottom: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checkout-summary { background: var(--color-white); padding: 40px; border: 1px solid var(--color-border); position: sticky; top: 120px; }
.summary-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px dashed var(--color-border); }
.summary-item img { width: 60px; height: 80px; object-fit: cover; }
.summary-details { flex: 1; margin-left: 16px; }
.summary-details h4 { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.summary-details span { display: block; font-size: 12px; color: var(--color-text-muted); }
.summary-total { border-top: 1px solid var(--color-border); padding-top: 24px; display: flex; justify-content: space-between; font-size: 18px; font-weight: 500; margin-bottom: 32px; }
@media (max-width: 1024px) { .checkout-page { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .checkout-summary { position: static; padding: 24px; } }

.footer__doc-links {
    gap: 10px;
}

.footer__doc-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 16px;
    font-size: 12px;
}

.footer__company {
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 24px 0;
    margin-bottom: 32px;
}

.footer__company p {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    margin-bottom: 6px;
}

.footer__company p:last-child {
    margin-bottom: 0;
}

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    padding-bottom: 80px;
}

.legal-page h1 {
    font-family: var(--font-heading);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
    margin-bottom: 20px;
}

.legal-page p {
    color: var(--color-text-muted);
    font-size: 16px;
}

.legal-page__section {
    margin-top: 28px;
}

.legal-page h2 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 500;
    margin-bottom: 12px;
}

.legal-page ul {
    margin: 8px 0 16px 20px;
    color: var(--color-text-muted);
}

.legal-page li {
    margin-bottom: 6px;
}

.legal-page a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
