/* =====================================================
   КРЫМ ЦВЕТЫ — основные стили
   Версия: 1.0 | Mobile-first, CSS-переменные
   ===================================================== */

/* ---------- Дизайн-токены ---------- */
:root {
    --color-pink: #e0526f;
    --color-pink-dark: #c73a57;
    --color-green: #2c5f2d;
    --color-bg: #fff7f9;
    --color-text: #333333;
    --color-muted: #888888;
    --color-white: #ffffff;
    --radius-card: 14px;
    --radius-btn: 30px;
    --shadow-card: 0 3px 12px rgba(0, 0, 0, .08);
    --shadow-header: 0 2px 8px rgba(0, 0, 0, .06);
}

/* ---------- База ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Шапка ---------- */
.site-header {
    background: var(--color-white);
    box-shadow: var(--shadow-header);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    flex-wrap: wrap;
}

.logo { font-size: 22px; font-weight: 700; color: var(--color-pink); text-decoration: none; }

nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--color-text); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--color-pink); }

.phone { font-weight: 700; color: var(--color-green); text-decoration: none; }

.cart-link { text-decoration: none; font-size: 20px; }
.cart-count {
    background: var(--color-pink);
    color: var(--color-white);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 13px;
    vertical-align: top;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    background: var(--color-pink);
    color: var(--color-white);
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 15px;
}
.btn:hover { background: var(--color-pink-dark); }
.btn:focus-visible { outline: 3px solid var(--color-green); outline-offset: 2px; }

.btn-small {
    background: #f3d3da;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    color: #a1273f;
}

/* ---------- Герой-баннер ---------- */
.hero { background: linear-gradient(135deg, #ffd9e9, #fff0f5); padding: 60px 0; text-align: center; }
.hero h1 { font-size: clamp(26px, 5vw, 38px); color: var(--color-green); margin-bottom: 12px; }
.hero p { font-size: 18px; color: #777; margin-bottom: 24px; }

/* ---------- Секции и сетки ---------- */
.section { padding: 40px 0; }
.section h2 { color: var(--color-green); margin-bottom: 20px; font-size: 26px; }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

/* ---------- Карточка товара ---------- */
.card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform .15s;
}
.card:hover { transform: translateY(-4px); }

.card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: linear-gradient(135deg, #ffe3ec, #ffd1e0);
}

.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-weight: 600; }
.card-price { color: var(--color-pink); font-weight: 700; }
.card .btn { margin-top: auto; text-align: center; padding: 10px; }

/* ---------- Категории ---------- */
.cat-card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    padding: 22px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    box-shadow: var(--shadow-card);
    font-weight: 600;
}
.cat-card .emoji { font-size: 44px; display: block; margin-bottom: 8px; }

/* ---------- Чипсы-фильтры ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--color-white);
    text-decoration: none;
    color: var(--color-text);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.chip.active { background: var(--color-pink); color: var(--color-white); }

/* ---------- Страница товара ---------- */
.product-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.product-img {
    height: 340px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffe3ec, #ffd1e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 110px;
}
.badge {
    display: inline-block;
    background: var(--color-green);
    color: var(--color-white);
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 12px;
    margin-right: 6px;
}
.muted { color: var(--color-muted); font-size: 14px; }

/* ---------- Корзина ---------- */
.cart-row {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--color-white);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    flex-wrap: wrap;
}
.cart-emoji { font-size: 40px; }
.cart-sum { margin-left: auto; font-weight: 700; color: var(--color-pink); }
.cart-total {
    background: var(--color-white);
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

/* ---------- Формы ---------- */
.input, .select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: var(--color-white);
}
.input:focus, .select:focus { border-color: var(--color-pink); outline: none; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.radio { display: block; margin: 6px 0; font-weight: 400; }

/* ---------- Оформление заказа ---------- */
.checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.summary { background: var(--color-white); border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.summary .row { display: flex; justify-content: space-between; margin-bottom: 8px; gap: 10px; }

/* ---------- Уведомления ---------- */
.alert-success {
    background: #e6f7e6; border: 1px solid #b7e4b7; color: #2c7a2c;
    padding: 10px 14px; border-radius: 10px; margin: 12px 0;
}
.alert-error {
    background: #fdecec; border: 1px solid #f5c2c2; color: #a1273f;
    padding: 10px 14px; border-radius: 10px; margin: 12px 0;
}
.alert-error ul { margin-left: 18px; }

/* ---------- Подвал ---------- */
footer { background: var(--color-green); color: #eaf5ea; padding: 24px 0; margin-top: 40px; text-align: center; }

/* ---------- Адаптив ---------- */
@media (max-width: 800px) {
    .product-wrap, .form-grid, .checkout-grid { grid-template-columns: 1fr; }
}
/* ===== Карточка товара v2 (фото, чистые классы) ===== */
.card-img--photo { object-fit: cover; }
.product-img--photo { object-fit: cover; background: #fff; width: 100%; }
.product-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product-thumbs img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--color-pink); }
.product-title { color: var(--color-green); }
.product-badges { margin: 10px 0; }
.product-price { font-size: 28px; color: var(--color-pink); font-weight: 700; margin: 14px 0; }
.product-text { margin-top: 10px; }
.product-form { margin-top: 20px; }
.product-form .field { max-width: 320px; }
.product-delivery { margin-top: 10px; color: var(--color-muted); font-size: 14px; }
.similar-title { color: var(--color-green); margin: 36px 0 20px; }
/* ===== Галерея lightbox (v3) ===== */
.product-img--photo,
.product-thumbs img { cursor: zoom-in; }

.gallery-hint { margin-top: 10px; color: var(--color-muted); font-size: 13px; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(10, 10, 10, .92);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox__img {
    max-width: 92vw;
    max-height: 84vh;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    user-select: none;
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .12);
    border: none;
    color: #fff;
    font-size: 40px;
    width: 52px;
    height: 72px;
    border-radius: 12px;
    cursor: pointer;
}
.lightbox__prev { left: 12px; }
.lightbox__next { right: 12px; }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255, 255, 255, .25); }

.lightbox__counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    color: #ddd;
    font-size: 14px;
}
/* ===== Мобильная версия v4 + настройки ===== */
.header-actions { display: flex; gap: 16px; align-items: center; }
.footer-note { margin-top: 8px; font-size: 13px; }
.logo__img { height: 34px; width: auto; vertical-align: middle; border-radius: 6px; }

/* Нижняя фиксированная навигация (как в buy-flowers) */
.mobile-nav {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .10);
}
.mobile-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 2px 10px;
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}
.mobile-nav__item:active { background: #ffe3ec; }
.mobile-nav__icon { font-size: 18px; line-height: 1; position: relative; }
.mobile-nav__count {
    position: absolute;
    top: -8px; right: -14px;
    background: var(--color-pink);
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    padding: 1px 6px;
}

@media (max-width: 800px) {
    .container { padding: 10px 10px; }
    body { padding-bottom: 64px; }

    /* Шапка в одну линию: логотип слева, телефон справа */
    .site-nav { display: none; }
    .header-cart { display: none; }
    .header-inner { flex-wrap: nowrap; justify-content: space-between; padding: 10px 0; }
    .logo { font-size: 17px; white-space: nowrap; }
    .phone { font-size: 13px; white-space: nowrap; }

    /* Нижняя навигация */
    .mobile-nav { display: flex; }

    /* Сетка 3 в ряд */
    .cards { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .card-img { height: 90px; font-size: 40px; }
    .card-body { padding: 8px; gap: 4px; }
    .card-title { font-size: 12px; }
    .card-price { font-size: 12px; }
    .card .btn { padding: 6px 4px; font-size: 11px; }
    .cat-card { padding: 12px 6px; font-size: 12px; }
    .cat-card .emoji { font-size: 30px; }

    .hero { padding: 36px 0; }
}
/* ===== Шапка v5: отступы, зона логотипа, масштаб ===== */
.logo__img {
    height: calc(34px * var(--logo-scale, 1));
    width: auto;
    max-width: 100%;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 6px;
}

@media (max-width: 800px) {
    /* Отступы 10px по бокам шапки (наследуется от .container) + компактность */
    .header-inner { padding: 8px 0; gap: 8px; }

    /* Логотипу — выделенная зона 33% ширины */
    .logo { flex: 0 0 33%; max-width: 33%; }

    /* Логотип крупнее и читабельнее на мобильных */
    .logo__img { height: calc(46px * var(--logo-scale, 1)); }

    /* Телефон гарантированно влезает */
    .phone { font-size: 12px; }
    .header-actions { gap: 10px; min-width: 0; }
}
/* ===== Фиксы v6: целостный вид без багов ===== */

/* Убираем "резиновый" розовый фон при быстром скролле */
html {
    background: #ffffff;
    overscroll-behavior-y: none;
}
body {
    overscroll-behavior-y: none;
}

@media (max-width: 800px) {
    /* 1. Шапка: гарантированные 10px слева и справа */
    .site-header .container { padding-left: 10px; padding-right: 10px; }
    .header-inner { padding: 8px 0; gap: 10px; }
    .logo { flex: 0 0 33%; max-width: 33%; min-width: 0; }

    /* Телефон: прижат справа с отступом, размер подстраивается под экран */
    .header-actions { flex: 1; justify-content: flex-end; min-width: 0; }
    .phone { font-size: clamp(10px, 3.4vw, 13px); white-space: nowrap; }

    /* 2. Нижняя навигация: 10px от краёв экрана */
    .mobile-nav {
        height: 60px;
        padding: 0 10px;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .mobile-nav__item {
        height: 100%;
        justify-content: center;
        padding: 4px 2px 6px;
    }

    /* 3. Подвал вплотную к нижней панели — без розовой щели */
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
/* ===== v7: мессенджеры + намертво прижатая нижняя навигация ===== */

/* Иконки мессенджеров в шапке */
.header-messengers { display: flex; gap: 8px; align-items: center; }
.messenger-link { display: inline-flex; }
.messenger-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    transition: transform .15s;
}
.messenger-link:hover .messenger-icon { transform: scale(1.12); }

/* Блоки в админке */
.settings-block { margin-bottom: 18px; }
.settings-block__title { font-size: 15px; margin-bottom: 10px; color: var(--adm-green); }

/* Нижняя навигация: точная высота + прижим к низу на любых устройствах */
:root { --mobile-nav-h: 56px; }

.mobile-nav {
    bottom: 0;
    height: auto;
    padding: 0 10px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-nav__item {
    height: var(--mobile-nav-h);
    justify-content: center;
    padding: 0 2px;
}

@media (max-width: 800px) {
    body { padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 0px)); }

    /* Логотип динамически сжимается, когда появляются иконки */
    .logo { flex: 0 1 33%; }
    .header-messengers { margin-left: auto; }
    .messenger-icon { width: 24px; height: 24px; }
}
/* ===== v8: блоки вплотную к шапке, зазоры 10px, навигация в одну строку ===== */
@media (max-width: 800px) {
    /* Первый блок начинается СРАЗУ после шапки — без полоски фона */
    .hero { margin-top: 0; padding: 26px 0 30px; }

    /* Гармоничные 10px между блоками на всех страницах */
    .section { padding: 0; }
    .section h2 { margin: 10px 0 12px; }

    /* Нижняя навигация: ВСЕГДА одна строка на любых экранах */
    .mobile-nav {
        display: flex;
        flex-wrap: nowrap;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        padding: 0 10px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, .10);
        z-index: 30;
    }
    .mobile-nav__item {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        height: 56px;
        padding: 0;
        font-size: 9.5px;
        font-weight: 600;
        white-space: nowrap;
        color: var(--color-text);
        text-decoration: none;
    }
    .mobile-nav__icon { font-size: 16px; line-height: 1; }

    body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}
/* ===== v9: исправление v8 — отступы 10px и панель без белой полосы ===== */
@media (max-width: 800px) {
    /* Боковые 10px у всех блоков (v8 ошибочно обнулил их) */
    .section { padding: 0 10px; }
    .container { padding-left: 10px; padding-right: 10px; }

    /* Нижняя панель: высота ровно по иконкам, без раздувания */
    .mobile-nav { padding-bottom: 0; }
    body { padding-bottom: 56px; }
}
/* ===== v10: блоки преимуществ + рейтинговый баннер ===== */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.benefits-section { padding-top: 10px; }

.benefits {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefit-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ffe3ec, #fff0f5);
    border-radius: 16px;
    padding: 16px;
}

.benefit-card__body { flex: 1; min-width: 0; }

.benefit-card__title {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 6px;
}

.benefit-card__text {
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.45;
}

.benefit-card__icon { font-size: 44px; }

.rating-banner {
    margin-top: 10px;
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.rating-banner__label { color: #6b6b6b; font-size: 14px; }

.rating-banner__row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.rating-banner__value { font-size: 34px; font-weight: 800; color: #1d1d1d; }

.rating-banner__stars {
    color: #f7b500;
    font-size: 22px;
    letter-spacing: 2px;
}

.rating-banner__note { margin-top: 6px; color: #9a9a9a; font-size: 12px; }

@media (min-width: 801px) {
    .benefits { flex-direction: row; }
    .benefit-card { flex: 1; }
}
/* ===== v11: бегущая строка (акция) ===== */
.marquee {
    height: 40px;
    background: #e11d2e;
    color: #ffffff;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 22s linear infinite;
    will-change: transform;
}

/* Остановка при наведении (ПК) и нажатии (телефон) */
.marquee:hover .marquee__track,
.marquee:active .marquee__track {
    animation-play-state: paused;
}

.marquee__group {
    display: flex;
    align-items: center;
    gap: 56px;
    padding-right: 56px;
    white-space: nowrap;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .3px;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 800px) {
    .benefits-section { padding-top: 0; }
}
/* ===== v12: каталог + выдвижное меню категорий ===== */
:root { --drawer-speed: .5s; }

body.no-scroll { overflow: hidden; }

.catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.catalog-filter-btn { border: none; }

.catalog-reset {
    color: var(--color-muted);
    font-size: 13px;
    text-decoration: none;
}
.catalog-reset:hover { color: var(--color-pink); }

.catalog-pagination { margin-top: 20px; }

/* --- Выдвижная панель --- */
.cat-drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
}

.cat-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity var(--drawer-speed);
}

.cat-drawer__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(320px, 85vw);
    background: #ffffff;
    border-radius: 0 18px 18px 0;
    box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
    transform: translateX(-105%);
    transition: transform var(--drawer-speed) cubic-bezier(.22, .9, .36, 1);
    display: flex;
    flex-direction: column;
}

.cat-drawer.is-open { pointer-events: auto; }
.cat-drawer.is-open .cat-drawer__overlay { opacity: 1; }
.cat-drawer.is-open .cat-drawer__panel { transform: translateX(0); }

.cat-drawer__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eeeeee;
    font-weight: 700;
    color: var(--color-green);
}

.cat-drawer__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999999;
}

.cat-drawer__list {
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cat-drawer__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    opacity: 0;
    transform: translateX(-14px);
}

.cat-drawer__item:hover { background: #fff0f5; }

.cat-drawer__item.is-active {
    background: var(--color-pink);
    color: #ffffff;
}

.cat-drawer__icon { font-size: 20px; }

/* Каскадное появление пунктов */
.cat-drawer.is-open .cat-drawer__item {
    animation: drawer-item .45s ease forwards;
}
.cat-drawer.is-open .cat-drawer__item:nth-child(1) { animation-delay: .05s; }
.cat-drawer.is-open .cat-drawer__item:nth-child(2) { animation-delay: .09s; }
.cat-drawer.is-open .cat-drawer__item:nth-child(3) { animation-delay: .13s; }
.cat-drawer.is-open .cat-drawer__item:nth-child(4) { animation-delay: .17s; }
.cat-drawer.is-open .cat-drawer__item:nth-child(5) { animation-delay: .21s; }
.cat-drawer.is-open .cat-drawer__item:nth-child(6) { animation-delay: .25s; }
.cat-drawer.is-open .cat-drawer__item:nth-child(7) { animation-delay: .29s; }
.cat-drawer.is-open .cat-drawer__item:nth-child(8) { animation-delay: .33s; }
.cat-drawer.is-open .cat-drawer__item:nth-child(9) { animation-delay: .37s; }
.cat-drawer.is-open .cat-drawer__item:nth-child(10) { animation-delay: .41s; }
.cat-drawer.is-open .cat-drawer__item:nth-child(11) { animation-delay: .45s; }
.cat-drawer.is-open .cat-drawer__item:nth-child(12) { animation-delay: .49s; }
.cat-drawer.is-open .cat-drawer__item:nth-child(13) { animation-delay: .53s; }
.cat-drawer.is-open .cat-drawer__item:nth-child(14) { animation-delay: .57s; }
.cat-drawer.is-open .cat-drawer__item:nth-child(n+15) { animation-delay: .6s; }

@keyframes drawer-item {
    to { opacity: 1; transform: translateX(0); }
}
/* ===== v13: крупный динамический текст нижней навигации ===== */
@media (max-width: 800px) {
    .mobile-nav__item {
        font-size: clamp(9.5px, 3vw, 12.5px);
        font-weight: 700;
        letter-spacing: .1px;
    }
    .mobile-nav__icon {
        font-size: clamp(17px, 5vw, 21px);
    }
}
/* ===== v14: страница "Доставка" ===== */
.page-title {
    color: var(--color-green);
    font-size: clamp(24px, 6vw, 34px);
    margin-bottom: 12px;
}

.page-lead {
    color: #6b6b6b;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.page-subtitle {
    color: var(--color-green);
    font-size: 20px;
    margin: 26px 0 14px;
}

.steps { display: flex; flex-direction: column; gap: 10px; }

.step {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
}

.step__num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-pink);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
}

.step__text { font-size: 14px; }

.delivery-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.delivery-table th,
.delivery-table td {
    padding: 10px 12px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #f0e3e8;
}

.delivery-table th {
    background: #ffe3ec;
    color: var(--color-green);
}

.delivery-table tr:last-child td { border-bottom: none; }

.delivery-note {
    margin-top: 20px;
    background: linear-gradient(135deg, #ffe3ec, #fff0f5);
    border-radius: 14px;
    padding: 16px;
}

.delivery-note__title { font-weight: 700; margin-bottom: 6px; }
.delivery-note p { font-size: 14px; color: #6b6b6b; }

.page-cta { margin: 26px 0 10px; text-align: center; }
/* ===== v15: страница "О нас" + masonry-галерея ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.stat-mini {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 8px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.stat-mini__value { font-size: 22px; font-weight: 800; color: var(--color-pink); }
.stat-mini__label { font-size: 12px; color: #6b6b6b; margin-top: 4px; }

.about-text p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #555555;
    font-size: 15px;
}

.gallery-masonry { columns: 160px; column-gap: 10px; }

.gallery-masonry img {
    width: 100%;
    display: block;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: zoom-in;
}
/* ===== v16: страница "Контакты" ===== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 801px) {
    .contact-cards { grid-template-columns: repeat(4, 1fr); }
}

.contact-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: var(--color-text);
}

.contact-card__icon { font-size: 28px; }
.contact-card__label { font-size: 12px; color: var(--color-muted); margin-top: 6px; }
.contact-card__value { font-weight: 700; font-size: 14px; margin-top: 4px; }

.social-row { display: flex; gap: 10px; flex-wrap: wrap; }

.social-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border-radius: 30px;
    padding: 8px 18px 8px 8px;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
}

.social-card__icon { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.map-wrap { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); }
.map-frame { width: 100%; height: 300px; border: 0; display: block; }

.contact-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow-card);
}

.hp-field { display: none; }
/* ===== v17: мессенджеры — три иконки в ряд, адаптив ===== */
.social-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(10px, 3vw, 16px);
}

.social-card {
    display: inline-flex;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}

.social-card__icon {
    width: clamp(44px, 12vw, 64px);
    height: clamp(44px, 12vw, 64px);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-card);
    transition: transform .15s;
}

.social-card:active .social-card__icon { transform: scale(.94); }
/* ===== v18: OZON-кнопка и количество ===== */
.buy-controls {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: nowrap;
    margin-top: 14px;
}
.buy-controls[hidden] { display: none; }

.buy-in-cart {
    background: #16a34a;
    flex: 1 1 auto;
    text-align: center;
    padding: 12px 18px;
}
.buy-in-cart:hover { background: #128a3d; }

.qty-stepper {
    display: inline-flex;
    align-items: center;
    background: #f3f4f6;
    border-radius: 30px;
    padding: 2px 6px;
    flex: 0 0 auto;
}

.qty-btn {
    min-width: 40px;
    height: 44px;
    border: none;
    background: transparent;
    color: #2563eb;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}

.cart-total strong { color: var(--color-pink); }
.link-pink { color: var(--color-pink); }
/* ===== v19: пустая корзина — текст и кнопка в одну линию ===== */
.cart-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
}

.cart-empty__text {
    color: var(--color-muted);
    font-size: 15px;
    white-space: nowrap;
}

.cart-empty__btn { white-space: nowrap; }

@media (max-width: 360px) {
    .cart-empty__text { font-size: 14px; }
    .cart-empty__btn { padding: 10px 18px; font-size: 14px; }
}
/* ===== v20: фирменные шрифты 2026 =====
   Playfair Display — заголовки (премиум-серифа)
   Montserrat — текст, кнопки, цены (геометрический гротеск) */
:root {
    --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
}

body {
    font-family: var(--font-body);
    line-height: 1.5;
}

h1, h2, h3,
.page-title,
.product-title,
.page-subtitle,
.similar-title,
.section h2,
.logo {
    font-family: var(--font-head);
}

/* Заголовки: воздушность + равномерный перенос строк (2026) */
h1, h2,
.page-title,
.product-title {
    letter-spacing: .2px;
    text-wrap: balance;
}

/* Кнопки и цены — геометрический Montserrat */
.btn,
.card-price,
.product-price,
.cart-sum,
.cart-total {
    font-family: var(--font-body);
}
/* ===== v21: отзывы и звёздный рейтинг ===== */
.card-rating { color: #f7b500; font-weight: 700; font-size: 13px; }
.card-rating span { color: var(--color-muted); font-weight: 400; }

.reviews-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.reviews-avg { font-size: 40px; font-weight: 800; }
.reviews-stars { color: #f7b500; font-size: 20px; letter-spacing: 2px; }

.review-item {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-card);
}
.review-item__head { display: flex; justify-content: space-between; gap: 10px; }
.review-item__name { font-weight: 700; }
.review-item__stars { color: #f7b500; margin: 6px 0; letter-spacing: 1px; }
.review-item__text { font-size: 14px; line-height: 1.55; color: #555555; }

.review-form-title {
    margin: 22px 0 12px;
    color: var(--color-green);
    font-family: var(--font-head);
}

.review-form {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow-card);
}

.review-textarea { resize: vertical; min-height: 110px; }

/* Звёздный ввод на чистом CSS */
.star-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 4px;
    justify-content: flex-end;
}
.star-input input { display: none; }
.star-input label {
    font-size: 30px;
    line-height: 1;
    color: #d8d8d8;
    cursor: pointer;
    transition: color .15s;
}
.star-input input:checked + label,
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #f7b500; }
/* ===== v22: промокоды в корзине ===== */
.promo-form {
    display: flex;
    gap: 10px;
    margin: 14px 0 10px;
    flex-wrap: nowrap;
}

.promo-input { flex: 1; text-transform: uppercase; }
.promo-btn { white-space: nowrap; padding: 10px 18px; }

.promo-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #e6f7e6;
    border: 1px solid #b7e4b7;
    color: #2c7a2c;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.cart-total__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.cart-total__row--discount { color: #2c7a2c; }
.cart-total__row--total { font-size: 18px; }
.summary-discount { color: #2c7a2c; }
/* ===== v23: промо-баннер на главной ===== */
.promo-section { margin-top: 10px; }

.promo-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--color-pink), #b83a55);
    border-radius: 16px;
    padding: 18px;
    color: #ffffff;
    box-shadow: var(--shadow-card);
}

.promo-banner__body { flex: 1; min-width: 0; }

.promo-banner__label {
    font-size: 13px;
    font-weight: 600;
    opacity: .9;
    margin-bottom: 6px;
}

.promo-banner__code {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    background: rgba(255, 255, 255, .14);
    border: 2px dashed rgba(255, 255, 255, .7);
    border-radius: 12px;
    padding: 8px 14px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
}

.promo-banner__hint {
    font-size: 10px;
    font-weight: 400;
    opacity: .8;
    letter-spacing: 0;
}

.promo-banner__desc {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
    opacity: .95;
}

.promo-banner__value {
    font-size: clamp(26px, 6vw, 40px);
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .promo-banner { flex-direction: column; align-items: flex-start; }
    .promo-banner__value { align-self: flex-end; }
}
/* ===== v24: динамичное фото в промо-баннере ===== */
.promo-banner--photo {
    background-image: linear-gradient(135deg, rgba(224, 82, 111, .82), rgba(110, 18, 42, .88)), var(--promo-bg);
    background-size: cover;
    background-position: center;
    min-height: 150px;
}
/* ===== v25: избранное ===== */
.fav-link { text-decoration: none; font-size: 20px; }

.fav-count {
    background: var(--color-pink);
    color: #ffffff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 13px;
    vertical-align: top;
}

.card-img-wrap { position: relative; }

.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #c9c9c9;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    z-index: 2;
    transition: color .15s, transform .15s;
}

.fav-btn:active { transform: scale(.9); }
.fav-btn--active { color: var(--color-pink); }

.product-gallery { position: relative; }

.fav-btn--big {
    width: 42px;
    height: 42px;
    font-size: 22px;
    top: 10px;
    right: 10px;
}

/* На очень узких экранах мессенджеры уступают место избранному */
@media (max-width: 360px) {
    .header-messengers { display: none; }
}
/* ===== v26: фиксы избранного и карточек ===== */

/* Фото занимает всю ширину карточки, сердечко — ПОВЕРХ */
.card-img-wrap .card-img { width: 100%; display: block; }

/* Сердечко компактнее */
.fav-btn { width: 30px; height: 30px; font-size: 15px; top: 6px; right: 6px; }

/* Мобильные: сердечко уезжает из шапки в плавающую кнопку */
.fab-fav {
    position: fixed;
    right: 12px;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-pink);
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    z-index: 40;
}

.fab-fav .fav-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ffffff;
    color: var(--color-pink);
}

@media (max-width: 800px) {
    .header-fav { display: none; }
    .fab-fav { display: flex; }
}

/* Возвращаем мессенджеры + компактность на узких экранах */
@media (max-width: 360px) {
    .header-messengers { display: flex; gap: 6px; }
    .messenger-icon { width: 20px; height: 20px; }
    .phone { font-size: 11px; }
    .logo { flex: 0 0 30%; }
}

/* Пустое избранное/корзина: аккуратная колонка на мобильных */
@media (max-width: 480px) {
    .cart-empty {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }
    .cart-empty__btn { width: 100%; }
}
/* ===== v27: белый FAB + шапка динамика ===== */

/* Сердечко на белом круге, бейдж в стиле корзины */
.fab-fav { background: #ffffff; }
.fab-fav .fav-count { background: var(--color-pink); color: #ffffff; }

@media (max-width: 800px) {
    /* Мессенджеры — по центру между логотипом и телефоном */
    .header-messengers {
        flex: 1;
        margin-left: 0;
        justify-content: center;
        gap: clamp(6px, 2vw, 12px);
    }

    /* Иконки динамические ~25px */
    .messenger-icon {
        width: clamp(22px, 6.5vw, 28px);
        height: clamp(22px, 6.5vw, 28px);
    }

    /* Телефон подстраивается под доступное место */
    .phone {
        font-size: clamp(11px, 3.6vw, 14px);
    }
}
/* ===== v28: цвета бейджей + подвал с фото ===== */
.badge--hit { background: #f7b500; }
.badge--new { background: #dc2626; }

.footer--photo {
    background-image: linear-gradient(rgba(44, 95, 45, .78), rgba(31, 68, 32, .86)), var(--footer-bg);
    background-size: cover;
    background-position: center;
}
/* ===== v29: блог и карусель ===== */
.blog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.blog-arrows { display: flex; gap: 8px; }

.blog-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: var(--color-pink);
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.blog-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 10px;
    -webkit-overflow-scrolling: touch;
}

.blog-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
}

.blog-card__img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    display: block;
}

.blog-card__img--empty {
    background: #ffe3ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.blog-card__body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.blog-card__date { font-size: 11px; color: var(--color-muted); }

.blog-card__title {
    font-weight: 700;
    font-size: 14px;
    font-family: var(--font-head);
}

.blog-card__excerpt {
    font-size: 12px;
    color: #6b6b6b;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__more {
    margin-top: auto;
    color: var(--color-pink);
    font-weight: 600;
    font-size: 13px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.post__img {
    width: 100%;
    border-radius: 16px;
    max-height: 420px;
    object-fit: cover;
}

.post__meta { color: var(--color-muted); font-size: 13px; margin: 14px 0 8px; }
.post__title { color: var(--color-green); margin-bottom: 14px; }
.post__content { line-height: 1.7; font-size: 15px; color: #444444; }

.footer-link { color: inherit; text-decoration: underline; }

@media (max-width: 800px) {
    .blog-card { flex-basis: 220px; }
    .blog-arrows { display: none; }
}
/* ===== v30: заголовок секции + кнопка Каталог ===== */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
    margin: 10px 0 12px;
}

.section-head__title {
    margin: 0;
    font-size: clamp(17px, 5.5vw, 24px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-head__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-pink);
    color: #ffffff;
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 600;
    font-size: clamp(11px, 3.4vw, 14px);
    text-decoration: none;
    white-space: nowrap;
    flex: 0 0 auto;
    box-shadow: var(--shadow-card);
}

.section-head__arrow { font-size: 1.2em; line-height: 1; }
/* ===== v31: личный кабинет, бургер, меню справа ===== */
.account-link {
    position: relative;
    font-size: 20px;
    text-decoration: none;
}

.account-dot {
    position: absolute;
    top: -2px;
    right: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-pink);
}

.burger {
    display: none;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--color-green);
}

@media (max-width: 800px) {
    .burger { display: block; }
}

/* Меню справа */
.site-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
}

.site-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity .4s;
}

.site-menu__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: min(300px, 85vw);
    background: #ffffff;
    border-radius: 18px 0 0 18px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, .18);
    transform: translateX(105%);
    transition: transform .45s cubic-bezier(.22, .9, .36, 1);
    display: flex;
    flex-direction: column;
}

.site-menu.is-open { pointer-events: auto; }
.site-menu.is-open .site-menu__overlay { opacity: 1; }
.site-menu.is-open .site-menu__panel { transform: translateX(0); }

.site-menu__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    font-weight: 700;
    color: var(--color-green);
    border-bottom: 1px solid #eeeeee;
}

.site-menu__list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-menu__list a {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
}

.site-menu__list a:hover { background: #fff0f5; }

.site-menu__messengers {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #eeeeee;
    margin-top: auto;
}

.site-menu__messengers img { width: 32px; height: 32px; border-radius: 50%; }

/* Формы входа/регистрации */
.auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow-card);
}

.auth-title { color: var(--color-green); margin-bottom: 14px; }
.auth-switch { margin-top: 14px; font-size: 14px; text-align: center; }

/* Кабинет */
.order-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-card);
}

.order-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.order-badge {
    background: #ffe3ec;
    color: var(--color-pink);
    border-radius: 12px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
}

.order-card__items { font-size: 13px; color: #6b6b6b; margin: 8px 0; }
.account-logout { margin-top: 18px; }

.btn--muted { background: #9aa0a6; }
.btn--muted:hover { background: #848b91; }

.review-verified {
    display: block;
    color: #2c7a2c;
    font-size: 11px;
    margin-top: 2px;
}
/* ===== v32: контакт-блок — иконки над телефоном ===== */
.header-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.header-contact .header-messengers {
    flex: 0 0 auto;
    margin-left: 0;
}

.header-contact .phone {
    font-size: clamp(11px, 3.2vw, 15px);
}

/* На узких экранах мессенджеры остаются, но компактнее */
@media (max-width: 360px) {
    .header-messengers { display: flex; }
    .messenger-icon { width: 18px; height: 18px; }
}
/* ===== v33: контакт-блок центрируется сам на любых экранах ===== */
.header-contact {
    flex: 1;
    min-width: 0;
}
/* ===== v34: оформление заказа + самовывоз ===== */
.checkout-wrap { display: grid; gap: 20px; }

@media (min-width: 900px) {
    .checkout-wrap { grid-template-columns: 1fr 340px; align-items: start; }
}

.form-section-title {
    color: var(--color-green);
    margin: 18px 0 12px;
    font-family: var(--font-head);
}

.form-section-title--first { margin-top: 0; }

.btn-full { width: 100%; padding: 14px; margin-top: 16px; }

.pickup-label {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #e6f7e6;
    border: 1px solid #b7e4b7;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c7a2c;
    cursor: pointer;
}

.pickup-label input[type="checkbox"] { width: 18px; height: 18px; }

.field-disabled { opacity: .55; }

.pay-row { display: flex; flex-direction: column; gap: 8px; }

.pay-option {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.summary {
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-card);
}

.summary .row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 14px;
}

.summary hr { border: none; border-top: 1px solid #eeeeee; margin: 10px 0; }
.summary-note { margin-top: 10px; }
/* ===== v35: FAQ + логотип десктоп + рейтинг с фото ===== */
@media (min-width: 801px) {
    .logo__img { height: calc(72px * var(--logo-scale)); }
    .logo { font-size: 24px; }
}

.rating-banner--photo {
    background-image: linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .9)), var(--rating-bg);
    background-size: cover;
    background-position: center;
}

.faq-item {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color .2s;
}

.faq-item.is-open { border-color: var(--color-pink); }

.faq-item__q {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    font-family: var(--font-body);
}

.faq-item__flower {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffe3ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.faq-item__text { flex: 1; }

.faq-item__plus {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-pink);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform .3s;
}

.faq-item.is-open .faq-item__plus { transform: rotate(45deg); }

.faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.faq-item__a p {
    margin: 0;
    padding: 0 16px 16px 62px;
    color: #6b6b6b;
    font-size: 13px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .faq-item__a p { padding-left: 16px; }
}
/* ===== v36: секция рейтинга в контейнере ===== */
.rating-section { margin-top: 14px; }
/* ===== v37: страница успешного заказа ===== */
.success-section { text-align: center; }
.success-icon { font-size: 80px; }
.success-total { margin: 14px 0; font-size: 18px; }
.success-btn { margin-top: 24px; }
/* ===== v38: гео-карточки доставки ===== */
.delivery-geo { margin: 20px 0; }
.delivery-geo h2 { font-family: var(--font-head); color: var(--color-green); font-size: 20px; margin: 18px 0 8px; }
.geo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.geo-card { background: #ffffff; border-radius: 12px; padding: 12px; box-shadow: var(--shadow-card); text-align: center; }
.geo-card b { display: block; font-size: 14px; color: var(--color-green); }
.geo-card span { font-size: 12px; color: #8a8a8a; }
/* ===== v39: контейнер гео-секций ===== */
.delivery-geo { margin: 24px auto; }

/* ===== v36: SEO-текст категории ===== */
.category-seo-text { margin: 24px auto; max-width: 800px; padding: 16px 20px; background: #f9f9f9; border-radius: 12px; font-size: 14px; line-height: 1.6; color: #555; }

/* ===== v40: админ-таблица категорий ===== */
.admin-table { width: 100%; border-collapse: collapse; background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.admin-table th, .admin-table td { padding: 10px 12px; text-align: left; font-size: 14px; border-bottom: 1px solid #eeeeee; }
.admin-table th { background: #f5f5f5; font-weight: 600; }
.alert-success { background: #e6f6e6; color: #2c7a2c; padding: 10px 14px; border-radius: 10px; margin: 10px 0; }
.admin-subtitle { margin: 18px 0 8px; font-size: 17px; }

/* ===== v41: чипы поводов ===== */
.occasion-links { margin: 18px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.occasion-chip { background: #ffffff; border: 1px solid #e5d5dd; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: #333333; text-decoration: none; transition: all .2s; }
.occasion-chip:hover { border-color: #d764a0; color: #d764a0; }

/* ===== v41: чипы поводов ===== */
.occasion-links { margin: 18px 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.occasion-chip { background: #ffffff; border: 1px solid #e5d5dd; border-radius: 999px; padding: 6px 14px; font-size: 13px; color: #333333; text-decoration: none; transition: all .2s; }
.occasion-chip:hover { border-color: #d764a0; color: #d764a0; }

/* ===== v42: баннеры праздников ===== */
.holiday-hero { margin: 14px 0 10px; border-radius: 16px; padding: 34px 20px; text-align: center; color: #ffffff; }
.holiday-hero--pink { background: linear-gradient(135deg, #e85d8a, #b23a67); }
.holiday-hero--red { background: linear-gradient(135deg, #d64545, #8f2b2b); }
.holiday-hero--green { background: linear-gradient(135deg, #3f8f5f, #2c6b45); }
.holiday-hero--blue { background: linear-gradient(135deg, #3f6f8f, #2b4d6b); }
.holiday-hero--gold { background: linear-gradient(135deg, #c9962e, #8f6a1d); }
.holiday-hero__icon { font-size: 46px; }
.holiday-hero h2 { color: #ffffff; margin: 8px 0; }
.holiday-hero p { opacity: .95; margin: 0 0 6px; }
.holiday-timer { display: flex; gap: 8px; justify-content: center; margin: 14px 0; font-weight: 700; flex-wrap: wrap; }
.holiday-timer span { background: rgba(255,255,255,.18); border-radius: 10px; padding: 8px 12px; min-width: 62px; }
.holiday-timer--dark span { background: rgba(215,100,160,.12); color: #b23a67; }
.holiday-bar { background: #fff7fb; border: 1px solid #f3d3e3; border-radius: 12px; padding: 10px 14px; margin: 12px 0; font-size: 14px; }
.holiday-boost { background: #fff7fb; border: 1px dashed #d764a0; border-radius: 12px; padding: 14px; margin: 0 0 16px; text-align: center; }

/* ===== v43: полировка праздников ===== */
.holiday-timer { flex-wrap: nowrap; gap: 6px; }
.holiday-timer span { min-width: 0; padding: 8px 10px; font-size: 14px; white-space: nowrap; }
@media (max-width: 480px) {
    .holiday-timer { gap: 4px; }
    .holiday-timer span { padding: 6px 6px; font-size: 12px; border-radius: 8px; }
}
.holiday-hero { position: relative; background-size: cover; background-position: center; }
.holiday-hero > * { position: relative; z-index: 1; }
.holiday-hero.has-image::before { content: ''; position: absolute; inset: 0; z-index: 0; }
.holiday-hero--pink.has-image::before { background: rgba(178, 58, 103, .78); }
.holiday-hero--red.has-image::before { background: rgba(143, 43, 43, .78); }
.holiday-hero--green.has-image::before { background: rgba(44, 107, 69, .78); }
.holiday-hero--blue.has-image::before { background: rgba(43, 77, 107, .78); }
.holiday-hero--gold.has-image::before { background: rgba(143, 106, 29, .78); }
.holiday-bar { display: flex; align-items: center; gap: 10px; background: #fff7fb; border: 1px solid #f3d3e3; border-radius: 12px; padding: 12px 14px; margin: 12px 0; font-size: 14px; color: #333333; text-decoration: none; transition: all .2s; }
.holiday-bar:hover { border-color: #d764a0; box-shadow: 0 2px 10px rgba(215,100,160,.15); transform: translateY(-1px); }
.holiday-bar__icon { font-size: 22px; }
.holiday-bar__text { flex: 1; }
.holiday-bar__arrow { color: #d764a0; font-weight: 700; font-size: 18px; }
/* ===== v44: баннер — скругления + прозрачнее ===== */
.holiday-hero { overflow: hidden; }
.holiday-hero--pink.has-image::before { background: rgba(178, 58, 103, .45); }
.holiday-hero--red.has-image::before { background: rgba(143, 43, 43, .45); }
.holiday-hero--green.has-image::before { background: rgba(44, 107, 69, .45); }
.holiday-hero--blue.has-image::before { background: rgba(43, 77, 107, .45); }
.holiday-hero--gold.has-image::before { background: rgba(143, 106, 29, .45); }
/* ===== v45: цвета текста баннера с фото ===== */
.holiday-hero.has-image h2,
.holiday-hero.has-image p { color: #2c5f2d; }
.holiday-hero.has-image .holiday-timer span { color: #e0526f; background: rgba(255,255,255,.85); }
/* ===== v46: белый текст + оверлей .60 ===== */
.holiday-hero.has-image h2,
.holiday-hero.has-image p { color: #ffffff; }
.holiday-hero--pink.has-image::before { background: rgba(178, 58, 103, .60); }
.holiday-hero--red.has-image::before { background: rgba(143, 43, 43, .60); }
.holiday-hero--green.has-image::before { background: rgba(44, 107, 69, .60); }
.holiday-hero--blue.has-image::before { background: rgba(43, 77, 107, .60); }
.holiday-hero--gold.has-image::before { background: rgba(143, 106, 29, .60); }
/* ===== v47: white and transparent banner ===== */
.holiday-hero--white { background: #ffffff; }
.holiday-hero--white.has-image::before { background: rgba(255, 255, 255, .82); }
.holiday-hero--white h2, .holiday-hero--white p { color: #2c5f2d; }
.holiday-hero--white .holiday-timer span { color: #e0526f; background: rgba(44, 95, 45, .08); }
.holiday-hero--transparent { background: transparent; }
.holiday-hero--transparent.has-image::before { background: rgba(0, 0, 0, .28); }
/* ===== v48: контент статей блога ===== */
.post__content { font-size: 16px; line-height: 1.7; color: #333333; }
.post__content h2 { font-size: 22px; margin: 28px 0 12px; color: #2c5f2d; }
.post__content h3 { font-size: 18px; margin: 20px 0 10px; color: #b23a67; }
.post__content p { margin: 0 0 14px; }
.post__content ul, .post__content ol { margin: 0 0 16px; padding-left: 24px; }
.post__content li { margin: 4px 0; }
.post__content a { color: #d764a0; text-decoration: underline; text-underline-offset: 2px; }
.post__content a:hover { color: #b23a67; }
.post__content strong { color: #2c5f2d; }
.post__content blockquote { border-left: 3px solid #d764a0; padding: 8px 16px; margin: 16px 0; background: #fff7fb; color: #6a3a50; border-radius: 0 8px 8px 0; }
.post__content img { max-width: 100%; border-radius: 12px; margin: 16px 0; }