/* ==========================================================================
   ZAMOK — Home page (premium 2026)
   Hero-slider, quick-cats с иконками, переиспользование .product-card,
   плавные анимации (cubic-bezier 0.22, 1, 0.36, 1) для всех hover-состояний.
   ========================================================================== */

/* ───────── Глобальные токены секций ───────── */
.home {
    --section-pad-y: clamp(56px, 7vw, 96px);
    --radius-card: 18px;
    --radius-pill: 999px;
    --ink: #0B0F14;
    --ink-soft: #475569;
    --ink-muted: #94A3B8;
    --line: #E5E7EB;
    --line-soft: #EEF0F3;
    --surface: #FFFFFF;
    --surface-2: #F7F8FA;
    --surface-3: #F1F2F5;
    --grad-dark: linear-gradient(135deg, #0B0F14 0%, #16202B 60%, #1E2A38 100%);
    --grad-red: linear-gradient(135deg, #E11E28 0%, #B91722 100%);
    --shadow-soft: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
    --shadow-hover: 0 1px 2px rgba(15,23,42,.05), 0 22px 44px rgba(15,23,42,.14);
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-soft: cubic-bezier(.4, 0, .2, 1);
    --t-fast: .35s;
    --t-base: .5s;
    --t-slow: .8s;
}

/* ───────── Section heading ───────── */
.home-section {
    padding: var(--section-pad-y) 0;
    position: relative;
    /* Учитываем sticky-шапку при скролле к якорным секциям (#cta-callback и пр.) */
    scroll-margin-top: calc(var(--header-height, 120px) + 16px);
}
.home-section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.home-section--dark { background: var(--grad-dark); color: #fff; }
.home-section--surface { background: var(--surface-2); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.section-head__left { max-width: 720px; min-width: 0; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 8px;
    background: rgba(225, 30, 40, 0.08);
    color: var(--color-primary, #E11E28);
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.section-eyebrow::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-primary, #E11E28);
    box-shadow: 0 0 0 4px rgba(225,30,40,.12);
}
.home-section--dark .section-eyebrow {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.home-section--dark .section-eyebrow::before {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,.12);
}

.section-title {
    margin: 0;
    font-family: var(--font-family-heading);
    font-weight: 800;
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.home-section--dark .section-title { color: #fff; }
.section-title em {
    font-style: normal;
    background: linear-gradient(90deg, #E11E28, #FF6B72);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-sub {
    margin: 12px 0 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.55;
    max-width: 620px;
}
.home-section--dark .section-sub { color: rgba(255,255,255,0.7); }

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: #fff;
    transition: background var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out),
                border-color var(--t-fast) var(--ease-out),
                transform var(--t-fast) var(--ease-out);
    white-space: nowrap;
}
.section-link svg { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease-out); }
.section-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section-link:hover svg { transform: translateX(4px); }
.home-section--dark .section-link {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.16);
}
.home-section--dark .section-link:hover { background: #fff; color: var(--ink); }

/* ===========================================================
   1. HERO — warm retail / editorial e-commerce
   ----------------------------------------------------------
   Тёплая палитра (молочный/кремовый фон, мягкие тени, красный
   акцент). Без «программистских» намёков: моно-шрифты убраны,
   фоновая сетка и тёмная подложка заменены тёплыми пятнами.
   =========================================================== */
.hero {
    position: relative;
    color: var(--ink);
    overflow: hidden;
    isolation: isolate;
    padding: clamp(40px, 5vw, 72px) 0 clamp(36px, 4vw, 56px);
    transition: background 0.6s var(--ease-out);
}

/* ───────────────────────────────────────────────
   HERO THEME — светлый #e6e6e6 с фирменным красным
   ----------------------------------------------- */
.hero[data-hero-theme="silver-e6e6"] {
    background:
        /* основной светло-серый градиент */
        linear-gradient(155deg, #f4f4f4 0%, #ececec 35%, #e6e6e6 65%, #d8d8d8 100%);
    color: #1a1c20;
    overflow: hidden;
}
.hero[data-hero-theme="silver-e6e6"] .hero__title { color: #0f1115; }
.hero[data-hero-theme="silver-e6e6"] .hero__sub { color: #4a5060; }
.hero[data-hero-theme="silver-e6e6"] .hero__usp { color: #5a6070; }
.hero[data-hero-theme="silver-e6e6"] .hero__kicker {
    background: rgba(255,255,255,.92);
    border-color: rgba(225,30,40,.28);
    color: #1a1c20;
    box-shadow: 0 2px 8px rgba(225,30,40,.08);
}
.hero[data-hero-theme="silver-e6e6"]::before {
    background: none;
}
.hero[data-hero-theme="silver-e6e6"]::after {
    content: none;
}
.hero[data-hero-theme="silver-e6e6"] .hero-promo__card {
    background: rgba(255,255,255,.88);
    border-color: rgba(0,0,0,.08);
    color: #1a1c20;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.hero[data-hero-theme="silver-e6e6"] .hero-promo__card.is-active,
.hero[data-hero-theme="silver-e6e6"] .hero-promo__card:hover {
    background: #fff;
    border-color: rgba(225,30,40,.4);
    box-shadow: 0 4px 18px rgba(225,30,40,.12);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    transition: background 0.6s var(--ease-out);
}
.hero-slider {
    position: relative;
    z-index: 1;
}
.hero-slider__track {
    position: relative;
    display: grid;
    grid-template-areas: "stack";
    min-height: clamp(440px, 48vw, 560px);
}
.hero-slide {
    grid-area: stack;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(28px, 4.5vw, 64px);
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ── Левая колонка слайда: текст ───────────────────────── */
.hero__copy { min-width: 0; max-width: 600px; }

/* «Кикер» — тёплый бейдж с пульсирующей точкой */
.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 12px;
    margin-bottom: 22px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(225,30,40,.18);
    color: var(--ink);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.005em;
    box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 6px 16px rgba(225,30,40,.08);
}
.hero__kicker-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #E11E28;
    box-shadow: 0 0 0 4px rgba(225,30,40,.18);
    animation: heroPulse 2s ease-out infinite;
}
.hero__kicker--sale { border-color: rgba(225,30,40,.35); background: #FFF1F2; }
.hero__kicker--sale .hero__kicker-dot { background: #E11E28; }
.hero__kicker--smart { border-color: rgba(180,130,80,.3); background: #FFF7EE; }
.hero__kicker--smart .hero__kicker-dot { background: #B97B3A; box-shadow: 0 0 0 4px rgba(185,123,58,.18); }

@keyframes heroPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(225,30,40,.18); }
    50%      { box-shadow: 0 0 0 7px rgba(225,30,40,.05); }
}

.hero__title {
    font-family: var(--font-family-heading);
    font-weight: 800;
    font-size: clamp(32px, 4.4vw, 56px);
    line-height: 1.06;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
    color: var(--ink);
    max-width: 620px;
}
.hero__title-accent {
    color: #E11E28;
    font-weight: 800;
    background: linear-gradient(90deg, #E11E28 0%, #FF6B72 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image:
        linear-gradient(90deg, #E11E28 0%, #FF6B72 100%);
    -webkit-background-clip: text;
    box-shadow: none;
    position: relative;
}

.hero__sub {
    color: #5A5048;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 0 32px;
}

.hero__ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: -0.005em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out),
                border-color var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out),
                transform var(--t-fast) var(--ease-out);
    white-space: nowrap;
}
.hero__btn--primary {
    background: linear-gradient(180deg, #E83440 0%, #C81720 100%);
    color: #fff;
    border-color: #C81720;
    box-shadow: 0 12px 28px rgba(225,30,40,.28), 0 1px 0 rgba(255,255,255,.18) inset;
}
.hero__btn--primary:hover {
    background: linear-gradient(180deg, #C81720 0%, #A8121A 100%);
    color: #fff;
    box-shadow: 0 12px 28px rgba(225,30,40,.32), 0 1px 0 rgba(255,255,255,.18) inset;
}
.hero__btn--ghost {
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(8px);
    color: var(--ink);
    border-color: rgba(26,22,18,.14);
}
.hero__btn--ghost:hover {
    background: #fff;
    color: var(--ink);
    border-color: rgba(26,22,18,.3);
}
.hero__btn svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease-out); }
.hero__btn:hover svg { transform: translateX(3px); }

/* Преимущества под кнопками — тёплая лента иконок */
.hero__usp {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}
.hero__usp li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #4A4239;
    font-weight: 500;
}
.hero__usp svg {
    width: 18px; height: 18px;
    color: #E11E28;
    flex-shrink: 0;
}

/* ── Правая колонка слайда: визуал ───────────────────────── */
.hero__visual {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Без «пятна» под фигурой — лёгкая свечение-тень под рамкой фото выполняется бокс-шадоу .hero__figure */
.hero__visual::before { content: none; }
@keyframes heroBlob {
    0%,100% { border-radius: 38% 62% 55% 45% / 50% 45% 55% 50%; transform: rotate(0deg); }
    50%     { border-radius: 55% 45% 40% 60% / 42% 58% 42% 58%; transform: rotate(6deg); }
}

.hero__figure {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1 / 1.05;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F1E6 100%);
    border: 1px solid rgba(255,255,255,.9);
    box-shadow:
        0 1px 0 rgba(255,255,255,.9) inset,
        0 30px 60px rgba(120,80,40,.18),
        0 8px 20px rgba(120,80,40,.08);
    z-index: 1;
}
.hero__figure img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 1.4s var(--ease-out);
}
.hero-slide.is-active .hero__figure img { transform: scale(1.04); }
/* Мягкий тёплый виньет поверх фото — связывает с палитрой страницы */
.hero__figure::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255,240,225,0) 55%, rgba(60,40,20,.18) 100%),
        radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.18), transparent 70%);
    pointer-events: none;
    z-index: 2;
}

/* Бейдж на фигуре */
.hero__badge {
    position: absolute;
    top: 18px; left: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.005em;
    box-shadow: 0 8px 20px rgba(120,80,40,.18), 0 1px 0 rgba(255,255,255,.9) inset;
    border: 1px solid rgba(0,0,0,.05);
}
.hero__badge--sale  { background: linear-gradient(135deg, #E11E28, #FF5A63); color: #fff; border-color: transparent; box-shadow: 0 10px 24px rgba(225,30,40,.35); }
.hero__badge--smart { background: linear-gradient(135deg, #2B3A55, #4A6286); color: #fff; border-color: transparent; box-shadow: 0 10px 24px rgba(43,58,85,.32); }

/* ===========================================================
   1.1 HERO PROMO — нижняя «полка» с акциями / навигацией
   Карточки служат и индикаторами слайдов (data-hero-go),
   и быстрыми ссылками. Прогресс-бар анимируется на активной.
   =========================================================== */
.hero-promo {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: clamp(28px, 3.5vw, 44px);
}
.hero-promo__card {
    --promo-accent: #E11E28;
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px 12px 12px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 18px;
    box-shadow:
        0 1px 0 rgba(255,255,255,.9) inset,
        0 10px 24px rgba(120,80,40,.10);
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out),
                background var(--t-base) var(--ease-out),
                border-color var(--t-base) var(--ease-out);
    font-family: inherit;
}
.hero-promo__card:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 18px 36px rgba(120,80,40,.16);
}
.hero-promo__card.is-active {
    background: #fff;
    border-color: rgba(225,30,40,.25);
    box-shadow: 0 14px 30px rgba(225,30,40,.14);
}

.hero-promo__thumb {
    flex-shrink: 0;
    width: 56px; height: 56px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #FBF4E8, #F1E6D2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero-promo__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform var(--t-base) var(--ease-out);
}
.hero-promo__card:hover .hero-promo__thumb img { transform: scale(1.08); }

.hero-promo__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}
.hero-promo__tag {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(225,30,40,.1);
    color: #E11E28;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero-promo__tag--sale    { background: #E11E28; color: #fff; }
.hero-promo__tag--smart   { background: #2B3A55; color: #fff; }
.hero-promo__tag--neutral { background: rgba(26,22,18,.08); color: var(--ink); }

.hero-promo__title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -0.005em;
    /* Обрезка длинных названий */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-promo__arrow {
    flex-shrink: 0;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(26,22,18,.06);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out),
                transform var(--t-fast) var(--ease-out);
}
.hero-promo__arrow svg { width: 14px; height: 14px; }
.hero-promo__card--link:hover .hero-promo__arrow {
    background: #E11E28;
    color: #fff;
    transform: translateX(2px);
}

/* Прогресс-бар на активной карточке */
.hero-promo__pbar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: rgba(26,22,18,.06);
    overflow: hidden;
    border-radius: 0 0 18px 18px;
}
.hero-promo__pbar-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    background: linear-gradient(90deg, #E11E28, #FF5A63);
    transform: scaleX(0);
    transform-origin: left;
}
.hero-promo__card.is-active .hero-promo__pbar-fill {
    transform: scaleX(1);
    transition: transform 6.5s linear;
}
.hero-promo__card.is-done .hero-promo__pbar-fill {
    transform: scaleX(1);
    transition: none;
}

/* ── Адаптив hero ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-slide { grid-template-columns: 1fr; gap: 36px; }
    .hero__visual { max-width: 480px; margin: 0 auto; order: 2; }
    .hero__copy   { order: 1; }
    .hero-promo { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .hero { padding: 32px 0 36px; }
    .hero__title { font-size: clamp(28px, 7.6vw, 38px); margin-bottom: 14px; }
    .hero__sub  { font-size: 14.5px; margin-bottom: 24px; }
    .hero__btn  { padding: 13px 20px; font-size: 13.5px; }
    .hero__ctas { gap: 8px; margin-bottom: 24px; }
    .hero__usp { gap: 6px 14px; font-size: 13px; }
    .hero__figure { aspect-ratio: 1/1; max-width: 360px; border-radius: 22px; }
    .hero__visual::before { inset: 12% 8%; }
    .hero-promo { grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
    .hero-promo__card { padding: 10px 14px 10px 10px; }
    .hero-promo__thumb { width: 48px; height: 48px; }
}

/* ===========================================================
   2. QUICK CATEGORIES (с PNG-иконками из IKONKI)
   =========================================================== */
.quick-cats__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.qcat {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 1;
    padding: 18px;
    border-radius: var(--radius-card);
    background: var(--surface-2);
    border: 1px solid transparent;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out),
                border-color var(--t-base) var(--ease-out);
    will-change: transform;
}
.qcat::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,15,20,.05) 0%, rgba(11,15,20,.15) 45%, rgba(11,15,20,.82) 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity var(--t-base) var(--ease-out);
}
.qcat__icon {
    position: absolute;
    top: 14px; left: 14px;
    width: 42px; height: 42px;
    border-radius: 11px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary, #E11E28);
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
    z-index: 3;
    overflow: hidden;
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out);
}
.qcat__icon img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--t-base) var(--ease-out);
}
.qcat__icon svg { width: 22px; height: 22px; }
.qcat__name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.25;
    letter-spacing: -0.005em;
    z-index: 2;
    position: relative;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.qcat__count {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255,255,255,.78);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,.3);
}
.qcat__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: transform 1.2s var(--ease-out), filter var(--t-base) var(--ease-out);
    z-index: 0;
    filter: saturate(.95);
}
.qcat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.qcat:hover .qcat__bg { transform: scale(1.08); filter: saturate(1.1); }
.qcat:hover .qcat__icon { transform: rotate(-4deg) scale(1.06); box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.qcat:hover .qcat__icon img { transform: scale(1.08); }

/* Featured (большая) */
.qcat--feat {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
    background: var(--grad-dark);
    color: #fff;
    padding: 28px;
    overflow: hidden;
}
.qcat--feat .qcat__name { font-size: 24px; color: #fff; }
.qcat--feat .qcat__count { color: rgba(255,255,255,.7); font-size: 13px; }
.qcat--feat .qcat__icon { width: 54px; height: 54px; border-radius: 14px; top: 22px; left: 22px; }
.qcat--feat .qcat__bg { opacity: .9; }
.qcat--feat::before {
    background: linear-gradient(180deg, rgba(11,15,20,.45) 0%, rgba(11,15,20,.25) 35%, rgba(11,15,20,.92) 100%);
}
.qcat--feat > * { position: relative; z-index: 2; }
.qcat--feat:hover .qcat__bg { opacity: 1; }

@media (max-width: 1024px) {
    .quick-cats__grid { grid-template-columns: repeat(4, 1fr); }
    .qcat--feat { grid-column: span 2; }
}
@media (max-width: 640px) {
    .quick-cats__grid { grid-template-columns: repeat(2, 1fr); }
    .qcat--feat { grid-column: span 2; aspect-ratio: 16/9; grid-row: auto; }
}

/* ===========================================================
   3. BESTSELLERS — переиспользуем .product-card из каталога
   =========================================================== */
.bestsellers__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1024px) { .bestsellers__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .bestsellers__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .bestsellers__grid { grid-template-columns: 1fr; } }

/* Микро-доводка карточки в контексте главной (плавнее hover) */
.bestsellers .product-card {
    background: #fff;
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out),
                border-color var(--t-base) var(--ease-out);
}
.bestsellers .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}
.bestsellers .product-card__img,
.bestsellers .product-slider__img {
    transition: transform 1s var(--ease-out);
}
.bestsellers .product-card:hover .product-card__img,
.bestsellers .product-card:hover .product-slider__img--active {
    transform: scale(1.05);
}

/* Tabs */
.bs-tabs {
    display: inline-flex;
    padding: 4px;
    background: var(--surface-2);
    border-radius: var(--radius-pill);
    gap: 4px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.bs-tab {
    border: none;
    background: transparent;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out);
}
.bs-tab:hover { color: var(--ink); }
.bs-tab.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(15,23,42,.08);
}

/* ===========================================================
   4. BENEFITS
   =========================================================== */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.benefit {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-card);
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out),
                border-color var(--t-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.benefit::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base) var(--ease-out);
}
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: transparent; }
.benefit:hover::before { transform: scaleX(1); }
.benefit__icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(225,30,40,0.08);
    color: var(--color-primary, #E11E28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: transform var(--t-base) var(--ease-out),
                background var(--t-base) var(--ease-out);
}
.benefit:hover .benefit__icon {
    transform: scale(1.08) rotate(-4deg);
    background: rgba(225,30,40,.14);
}
.benefit__icon svg { width: 24px; height: 24px; }
.benefit__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.benefit__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink-soft);
}

@media (max-width: 1100px) { .benefits__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .benefits__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .benefits__grid { grid-template-columns: 1fr; gap: 12px; } .benefit { padding: 22px 20px; } }

/* ===========================================================
   5. CTA BANNER
   =========================================================== */
.cta-banner {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    color: #fff;
    isolation: isolate;
    /* Цвет фона задаёт модификатор: --dark / --red / --light */
}
.cta-banner::after {
    /* Тонкая светящаяся рамка сверху (общая для всех вариантов, кроме --red где своя) */
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(225,30,40,.6), rgba(255,255,255,.05) 40%, transparent 60%, rgba(225,30,40,.35));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}
.cta-banner__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 40px;
    padding: clamp(36px, 5vw, 64px);
}
.cta-banner__title {
    font-family: var(--font-family-heading);
    font-weight: 800;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: #fff;
}
.cta-banner__sub {
    color: rgba(255,255,255,.75);
    font-size: 15px;
    line-height: 1.55;
    max-width: 520px;
    margin: 0 0 28px;
}
.cta-banner__form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 540px;
}

.cta-banner__form.is-sending {
    opacity: .72;
}

.cta-banner__agree {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-basis: 100%;
    width: 100%;
    min-height: 44px;
    margin-top: 2px;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    line-height: 1.5;
    box-sizing: border-box;
}

.cta-banner__agree input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    accent-color: var(--color-primary);
}

.cta-banner__agree span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cta-banner__agree a {
    color: rgba(255,255,255,.9);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cta-banner__input {
    flex: 1;
    min-width: 200px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    backdrop-filter: blur(10px);
    outline: none;
    transition: border-color var(--t-fast) var(--ease-out),
                background var(--t-fast) var(--ease-out);
}
.cta-banner__input::placeholder { color: rgba(255,255,255,.5); }
.cta-banner__input:focus { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
.cta-banner__submit {
    padding: 16px 28px;
    border-radius: 14px;
    background: var(--grad-red);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(225,30,40,.4);
    transition: transform var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out);
    display: inline-flex; align-items: center; gap: 8px;
}
.cta-banner__submit:hover { background: var(--color-primary-hover, #c2161f); color: #fff; box-shadow: 0 14px 32px rgba(225,30,40,.42); }
.cta-banner__note {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255,255,255,.5);
}
.cta-banner__visual {
    position: relative;
    height: 100%;
    min-height: 280px;
}
.cta-banner__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0,0,0,.4);
}

.cta-banner__success {
    max-width: 660px;
}

.cta-banner__success-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
}

.cta-banner__success-icon svg {
    width: 30px;
    height: 30px;
}

.cta-banner--success .cta-banner__inner {
    grid-template-columns: 1fr;
}
@media (max-width: 768px) {
    .cta-banner__inner { grid-template-columns: 1fr; }
    .cta-banner__visual { display: none; }
}

/* ===========================================================
   CTA BANNER
   =========================================================== */

/* ───── ТЁМНЫЙ + КРАСНЫЙ ГРАДИЕНТ ───── */
.cta-banner--dark-red {
    background:
        linear-gradient(115deg, #c91820 0%, #6a1015 30%, #1a0a0c 65%, #0e0e0e 100%);
}
.cta-banner--dark-red::before {
    content: "";
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(700px 380px at 0% 50%, rgba(255,80,90,.45), transparent 60%),
        radial-gradient(500px 300px at 100% 0%, rgba(0,0,0,.5), transparent 65%),
        radial-gradient(380px 220px at 5% 100%, rgba(255,140,140,.22), transparent 70%);
}
.cta-banner--dark-red::after {
    content: "";
    position: absolute; inset: 0; pointer-events: none; z-index: 2;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(115deg, rgba(255,200,200,.5) 0%, rgba(255,140,140,.35) 40%, rgba(255,255,255,.08));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}

/* ===========================================================
   6. TRENDS / SMART LOCKS
   =========================================================== */
.trends__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
}
.trend {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 4/5;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out);
}
.trend:hover { transform: translateY(-5px); box-shadow: 0 24px 48px rgba(0,0,0,.4); }
.trend--wide { grid-row: span 2; aspect-ratio: 4/8; }
.trend img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out);
    z-index: 0;
}
.trend:hover img { transform: scale(1.07); }
.trend::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(11,15,20,.85) 100%);
    z-index: 1;
}
.trend__body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 2;
    padding: 24px;
}
.trend__tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.trend__title {
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.2;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
.trend__sub { font-size: 13px; opacity: .8; margin: 0; }
.trend__arrow {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    z-index: 2;
    transition: background var(--t-fast) var(--ease-out),
                transform var(--t-fast) var(--ease-out);
}
.trend:hover .trend__arrow { background: var(--color-primary, #E11E28); transform: rotate(-45deg) scale(1.05); }
.trend__arrow svg { width: 18px; height: 18px; }

@media (max-width: 1024px) {
    .trends__grid { grid-template-columns: repeat(2, 1fr); }
    .trend--wide { grid-row: auto; aspect-ratio: 4/5; }
}
@media (max-width: 640px) { .trends__grid { grid-template-columns: 1fr; } }

/* ===========================================================
   7. TRUST / EXPERTISE
   =========================================================== */
.trust__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.trust__media {
    position: relative;
    aspect-ratio: 5/6;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}
.trust__media img {
    width: 100%; height: 100%; object-fit: cover;
    display: block;
    transition: transform 1.4s var(--ease-out);
}
.trust__media:hover img { transform: scale(1.04); }
.trust__media-stat {
    position: absolute;
    bottom: 24px; left: 24px;
    padding: 16px 20px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.trust__media-stat-num {
    display: block;
    font-family: var(--font-family-heading);
    font-weight: 800;
    font-size: 28px;
    color: var(--ink);
    line-height: 1;
}
.trust__media-stat-label {
    display: block;
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 6px;
}
.trust__list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.trust__item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: flex-start;
}
.trust__item-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(225,30,40,.08);
    color: var(--color-primary, #E11E28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.trust__item-icon svg { width: 22px; height: 22px; }
.trust__item-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--ink); }
.trust__item-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 1024px) {
    .trust__inner { grid-template-columns: 1fr; gap: 36px; }
    .trust__media { max-width: 520px; margin: 0 auto; }
}

/* ===========================================================
   8. REVIEWS
   =========================================================== */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.review {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-card);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out),
                border-color var(--t-base) var(--ease-out);
}
.review:hover { box-shadow: var(--shadow-hover); border-color: transparent; transform: translateY(-4px); }
.review__stars { display: inline-flex; color: #F59E0B; gap: 2px; }
.review__stars svg { width: 16px; height: 16px; }
.review__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); flex: 1; }
.review__person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}
.review__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--surface-3);
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--ink);
    font-size: 16px;
}
.review__name { font-weight: 700; font-size: 14px; color: var(--ink); margin: 0; }
.review__role { font-size: 12px; color: var(--ink-muted); margin: 2px 0 0; }
@media (max-width: 1024px) { .reviews__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .reviews__grid { grid-template-columns: 1fr; } }

/* ===========================================================
   9. BRANDS
   =========================================================== */
.brands__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.brand {
    aspect-ratio: 5/2;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-heading);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--ink-soft);
    text-decoration: none;
    transition: transform var(--t-base) var(--ease-out),
                color var(--t-base) var(--ease-out),
                border-color var(--t-base) var(--ease-out),
                filter var(--t-base) var(--ease-out),
                opacity var(--t-base) var(--ease-out);
    filter: grayscale(1);
    opacity: .75;
}
.brand:hover {
    color: var(--ink);
    border-color: var(--ink);
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-3px);
}

/* Tablet / Mobile: горизонтальный swipe-слайдер на scroll-snap (без JS) */
@media (max-width: 1024px) {
    .brands__grid {
        display: flex;
        grid-template-columns: none;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* edge-to-edge с «подсказкой» следующего слайда */
        margin: 0 calc(var(--container-padding, 16px) * -1);
        padding: 4px var(--container-padding, 16px) 16px;
        scroll-padding-inline: var(--container-padding, 16px);
    }
    .brands__grid::-webkit-scrollbar { display: none; }
    .brand {
        flex: 0 0 calc((100% - 12px * 3) / 3.2); /* ~3 видимых + подсказка */
        scroll-snap-align: start;
        aspect-ratio: 5/2;
        /* На тач-устройствах hover-эффекты не нужны */
        filter: grayscale(0);
        opacity: 1;
    }
    .brand:hover { transform: none; }
}
@media (max-width: 640px) {
    .brands__grid { gap: 10px; }
    .brand {
        flex: 0 0 calc((100% - 10px * 2) / 2.3); /* ~2 видимых + подсказка */
        font-size: 16px;
    }
}

/* ===========================================================
   Reveal-on-scroll (плавное появление)
   =========================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-slide { transition: opacity .3s ease; }
}

/* ===========================================================
   10. REVIEWS SLIDER
   =========================================================== */
.reviews-slider { position: relative; }
.reviews-slider__viewport { overflow: hidden; padding: 6px 2px 6px; margin: 0 -10px; }
.reviews-slider__track {
    display: flex;
    gap: 20px;
    transition: transform .6s var(--ease-out);
    will-change: transform;
    padding: 0 10px;
}
.reviews-slider .review {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
}
.reviews-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line-soft);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    transition: background var(--t-fast) var(--ease-out),
                color var(--t-fast) var(--ease-out),
                transform var(--t-fast) var(--ease-out);
    z-index: 5;
}
.reviews-slider__arrow:hover { background: var(--color-primary, #E11E28); color: #fff; border-color: var(--color-primary, #E11E28); transform: translateY(-50%) scale(1.06); }
.reviews-slider__arrow:disabled { opacity: .35; cursor: default; transform: translateY(-50%); }
.reviews-slider__arrow svg { width: 18px; height: 18px; }
.reviews-slider__arrow--prev { left: -22px; }
.reviews-slider__arrow--next { right: -22px; }
.reviews-slider__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.reviews-slider__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--line);
    cursor: pointer;
    padding: 0;
    transition: background var(--t-fast) var(--ease-out), width var(--t-fast) var(--ease-out);
}
.reviews-slider__dot.is-active { background: var(--color-primary, #E11E28); width: 26px; border-radius: 4px; }
@media (max-width: 1024px) {
    .reviews-slider .review { flex-basis: calc((100% - 20px) / 2); }
    .reviews-slider__arrow--prev { left: 6px; }
    .reviews-slider__arrow--next { right: 6px; }
}
@media (max-width: 640px) {
    .reviews-slider .review { flex-basis: 100%; }
    .reviews-slider__arrow { width: 40px; height: 40px; }
}

/* ===========================================================
   11. CLIENTS B2C / B2B
   =========================================================== */
.clients__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.client-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-card);
    padding: 36px;
    border: 1px solid var(--line-soft);
    overflow: hidden;
    isolation: isolate;
    transition: transform var(--t-base) var(--ease-out),
                box-shadow var(--t-base) var(--ease-out);
}
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.client-card--b2b {
    background: var(--grad-dark);
    color: #fff;
    border-color: transparent;
}
.client-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.client-card__tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: rgba(225,30,40,.1);
    color: var(--color-primary, #E11E28);
}
.client-card--b2b .client-card__tag { background: rgba(255,255,255,.12); color: #fff; }
.client-card__title { font-family: var(--font-family-heading); font-size: clamp(22px, 2.4vw, 28px); margin: 0; font-weight: 800; }
.client-card__lead { font-size: 15px; line-height: 1.55; opacity: .85; margin: 0 0 22px; }
.client-card__list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.client-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
}
.client-card__list svg {
    flex-shrink: 0;
    width: 18px; height: 18px;
    margin-top: 2px;
    color: var(--color-primary, #E11E28);
    background: rgba(225,30,40,.12);
    border-radius: 50%;
    padding: 3px;
    box-sizing: border-box;
}
.client-card--b2b .client-card__list svg { color: #fff; background: rgba(255,255,255,.14); }
.client-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--color-primary, #E11E28);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.client-card__btn svg { width: 16px; height: 16px; }
.client-card__btn:hover { background: #c2161f; color: #fff; }
.client-card--b2b .client-card__btn { background: #fff; color: var(--ink); }
.client-card--b2b .client-card__btn:hover { background: var(--color-primary, #E11E28); color: #fff; }
@media (max-width: 768px) { .clients__grid { grid-template-columns: 1fr; } .client-card { padding: 28px 24px; } }

/* ===========================================================
   12. WAREHOUSES
   =========================================================== */
.warehouses__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.warehouse {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-card);
    padding: 30px;
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.warehouse:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.warehouse__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.warehouse__pin {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(225,30,40,.1);
    color: var(--color-primary, #E11E28);
    display: inline-flex; align-items: center; justify-content: center;
}
.warehouse__pin svg { width: 24px; height: 24px; }
.warehouse__city { font-family: var(--font-family-heading); font-size: 22px; margin: 0; font-weight: 800; color: var(--ink); }
.warehouse__addr { margin: 4px 0 0; font-size: 13px; color: var(--ink-muted); }
.warehouse__stats {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    border-top: 1px solid var(--line-soft);
    padding-top: 18px;
}
.warehouse__stats li { display: flex; flex-direction: column; gap: 2px; }
.warehouse__stats b { font-family: var(--font-family-heading); font-size: 18px; color: var(--ink); font-weight: 800; }
.warehouse__stats span { font-size: 12px; color: var(--ink-muted); }
@media (max-width: 768px) { .warehouses__grid { grid-template-columns: 1fr; } .warehouse__stats { grid-template-columns: 1fr 1fr; } }

/* ===========================================================
   13. DELIVERY & PAYMENT
   =========================================================== */
.dp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dp-card {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-card);
    padding: 32px;
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.dp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.dp-card__title { font-family: var(--font-family-heading); font-size: clamp(22px, 2.4vw, 28px); margin: 14px 0 8px; font-weight: 800; color: var(--ink); }
.dp-card__title em { font-style: normal; color: var(--color-primary, #E11E28); }
.dp-card__sub { margin: 0 0 22px; font-size: 14px; color: var(--ink-muted); line-height: 1.5; }
.dp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dp-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}
.dp-chip:hover { background: #fff; border-color: var(--color-primary, #E11E28); color: var(--color-primary, #E11E28); }
@media (max-width: 768px) { .dp__grid { grid-template-columns: 1fr; } .dp-card { padding: 26px 22px; } }


/* ==================================================================
   CATEGORIES BENTO — асимметричная сетка категорий каталога
   - Флагман «Замки» 2×2 с фоном-фото
   - Электронные замки 1×2 — вертикальная плитка с акцентом
   - Фурнитура 2×1 — широкая плитка
   - Остальные 1×1 — компактные плитки с иконкой и счётчиком
   ================================================================== */

.cats-bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 168px;
    gap: 16px;
}

.cats-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    background: #fff;
    border: 1px solid rgba(120,80,40,.08);
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out);
    isolation: isolate;
    min-width: 0;
}
.cats-tile::after {
    /* мягкий красный акцент при hover, появляется снизу */
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: var(--color-primary, #E11E28);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s var(--ease-out);
    z-index: 2;
}
.cats-tile:hover {
    border-color: rgba(225,30,40,.22);
    box-shadow: 0 18px 36px -18px rgba(120,80,40,.22);
}
.cats-tile:hover::after { transform: scaleX(1); }

/* — Иконка категории — */
.cats-tile__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fbf6ee 0%, #f0e6d4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform .35s var(--ease-out);
}
.cats-tile__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    display: block;
}
.cats-tile:hover .cats-tile__icon { transform: scale(1.06) rotate(-2deg); }

/* — Контент — */
.cats-tile__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cats-tile__title {
    font-family: var(--font-display, inherit);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--ink, #1a1a1a);
    margin: 0;
    letter-spacing: -.01em;
}
.cats-tile__count {
    font-size: 12px;
    color: var(--color-text-muted, #888);
    font-weight: 600;
    margin: 0;
    letter-spacing: .02em;
}
.cats-tile__desc {
    font-size: 14px;
    color: var(--color-text-secondary, #555);
    line-height: 1.5;
    margin: 0;
}

/* — CTA снизу — */
.cats-tile__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary, #E11E28);
    margin-top: auto;
    padding-top: 12px;
}
.cats-tile__cta svg {
    width: 14px; height: 14px;
    transition: transform .25s var(--ease-out);
}
.cats-tile:hover .cats-tile__cta svg { transform: translateX(4px); }

/* — Бейдж — */
.cats-tile__badge {
    position: absolute;
    top: 14px; right: 14px;
    padding: 4px 10px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(120,80,40,.12);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-secondary, #555);
    letter-spacing: .02em;
    z-index: 3;
}
.cats-tile__badge--accent {
    background: var(--color-primary, #E11E28);
    color: #fff;
    border-color: transparent;
}

/* — Теги (только в hero-плитке) — максимум 4 в строку, лишние переносятся — */
.cats-tile__tags {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, max-content));
    gap: 6px;
    margin-top: 10px;
    justify-content: start;
}
.cats-tile__tags span {
    padding: 4px 10px;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(120,80,40,.12);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--ink, #1a1a1a);
    white-space: nowrap;
    text-align: center;
}

/* ───── Pills (декоративные плашки в углу плитки, например «фурнитура» / «ключи») ───── */
.cats-tile__pills {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 3;
    pointer-events: none;
}
.cats-tile__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1;
    color: var(--ink-soft, #475569);
    background: var(--surface-2, #F7F8FA);
    border: 1px solid var(--line, #E5E7EB);
    box-shadow: none;
    transition: color .25s var(--ease-out), background .25s var(--ease-out), border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.cats-tile__pill::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ink-muted, #94A3B8);
    flex-shrink: 0;
    transition: background .25s var(--ease-out);
}
/* Первичная плашка — акцент бренда (красная точка) */
.cats-tile__pill--fittings {
    color: var(--ink, #0B0F14);
    background: #fff;
    border-color: var(--line, #E5E7EB);
}
/* Вторичная — нейтральная */
.cats-tile__pill--keys {
    color: var(--ink-soft, #475569);
    background: var(--surface-2, #F7F8FA);
    border-color: var(--line, #E5E7EB);
}
.cats-tile:hover .cats-tile__pill {
    border-color: rgba(225,30,40,.22);
    color: var(--ink, #0B0F14);
}

/* ───── Hero-плитка: 2×2, фоновое фото с blur+затемнением ───── */
.cats-tile--hero {
    grid-column: span 2;
    grid-row: span 2;
    padding: 28px;
    color: #fff;
    background: #2a1f15;
    border-color: transparent;
}
/* Слой с фоновой картинкой — размыта и затемнена, чтобы текст был читаем */
.cats-tile--hero::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--cat-img) center / cover no-repeat;
    filter: blur(8px) brightness(.55) saturate(1.05);
    transform: scale(1.06);
    z-index: 0;
}
/* Градиент сверху для контраста в нижней части */
.cats-tile--hero > * { position: relative; z-index: 1; }
.cats-tile--hero .cats-tile__title { color: #fff; font-size: 28px; }
.cats-tile--hero .cats-tile__desc { color: rgba(255,255,255,.92); font-size: 15px; max-width: 360px; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.cats-tile--hero .cats-tile__cta {
    color: #fff;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 16px;
    border-radius: 999px;
    align-self: flex-start;
    border: 1px solid rgba(255,255,255,.28);
    transition: background .25s var(--ease-out);
    z-index: 2;
}
.cats-tile--hero:hover .cats-tile__cta { background: rgba(255,255,255,.28); }
.cats-tile--hero:hover { box-shadow: 0 24px 48px -20px rgba(40,20,10,.55); }
.cats-tile--hero .cats-tile__badge {
    background: rgba(255,255,255,.22);
    color: #fff;
    border-color: rgba(255,255,255,.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
}

/* ───── Tall: 1×2 — вертикальная ───── */
.cats-tile--tall { grid-row: span 2; }
.cats-tile--tall .cats-tile__icon { width: 64px; height: 64px; }

/* ───── Accent: красный фон (электронные) ───── */
.cats-tile--accent {
    background: linear-gradient(160deg, #fff 0%, #fff 55%, #fff5f5 100%);
    border-color: rgba(225,30,40,.18);
}
.cats-tile--accent:hover { border-color: rgba(225,30,40,.42); }

/* ───── Wide: 2×1 — широкая ───── */
.cats-tile--wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
}
.cats-tile--wide .cats-tile__body { flex: 1; }
.cats-tile--wide .cats-tile__cta { margin-top: 0; padding-top: 0; }

/* ===== Tablet (≤960px): 3 колонки, hero становится 3×1 ===== */
@media (max-width: 960px) {
    .cats-bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 152px;
    }
    .cats-tile--hero {
        grid-column: span 3;
        grid-row: span 1;
        min-height: 240px;
        flex-direction: row;
        align-items: flex-end;
        gap: 24px;
    }
    .cats-tile--hero .cats-tile__body { flex: 1; }
    .cats-tile--hero .cats-tile__cta { align-self: flex-end; }
    /* Теги на планшете — до 4 в ряд, не растягиваем, переносим лишние вниз */
    .cats-tile--hero .cats-tile__tags { grid-template-columns: repeat(4, minmax(0, max-content)); }
    .cats-tile--tall { grid-row: span 1; }
    .cats-tile--wide { grid-column: span 3; }
    /* Если последняя плитка одна в ряду — растягиваем на всю ширину */
    .cats-tile:last-child:nth-child(3n+1) { grid-column: span 3; }
    .cats-tile:last-child:nth-child(3n+2) { grid-column: span 2; }
}

/* ===== Mobile (≤640px): 2 колонки ===== */
@media (max-width: 640px) {
    .cats-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 138px;
        gap: 12px;
    }
    .cats-tile { padding: 14px; border-radius: 14px; }
    .cats-tile__icon { width: 44px; height: 44px; border-radius: 11px; }
    .cats-tile__icon img { border-radius: 11px; }
    .cats-tile__title { font-size: 15px; }
    .cats-tile__count, .cats-tile__cta { font-size: 11px; }
    .cats-tile__desc { font-size: 12.5px; }

    /* Hero — на 2 колонки сверху, без фоторазмаха */
    .cats-tile--hero {
        grid-column: span 2;
        grid-row: auto;
        min-height: 200px;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .cats-tile--hero .cats-tile__title { font-size: 22px; }
    .cats-tile--hero .cats-tile__desc { font-size: 13px; }
    .cats-tile--hero .cats-tile__tags { display: none; }
    .cats-tile--hero .cats-tile__cta,
    .cats-tile--hero .cats-tile__badge { display: none; }

    /* Wide и tall — обычные плитки */
    .cats-tile--wide {
        grid-column: span 2;
        flex-direction: row;
    }
    .cats-tile--wide .cats-tile__cta { display: none; }
    /* Если последняя плитка одна в ряду (нечётная) — во всю ширину */
    .cats-tile:last-child:nth-child(odd) { grid-column: span 2; }
}

/* ===== Совсем узкие (≤380px): однуколоночные плитки тоже становятся компактными ===== */
@media (max-width: 380px) {
    .cats-tile__body { gap: 2px; }
    .cats-tile__icon { width: 40px; height: 40px; }
}

/* ==========================================================================
   Правки 21.07.2026: равная высота карточек, мобильный слайдер, ряды трендов,
   раскрытие подкатегорий в мобильном меню. Блок в конце файла — перекрывает
   базовые правила по порядку следования.
   ========================================================================== */

/* --- «Покупают чаще всего»: карточки одинаковой высоты, низ выровнен ------- */
/* Каждая ячейка сетки — обёртка data-admin-edit-url; растягиваем её и карточку,
   чтобы блок цены (margin-top:auto) прижимал «В корзину» к общему низу. */
.bestsellers__grid > * { display: flex; }
.bestsellers__grid > * > .product-card { flex: 1; width: 100%; }
.product-card { height: 100%; }

/* --- «Покупают чаще всего» на мобильных: горизонтальный слайдер ------------ */
@media (max-width: 640px) {
    .bestsellers__grid {
        display: flex;
        grid-template-columns: none;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 4px 12px;
        margin: 0 -4px;
        scroll-padding-left: 4px;
    }
    .bestsellers__grid::-webkit-scrollbar { display: none; }
    .bestsellers__grid > * {
        flex: 0 0 78%;
        max-width: 300px;
        scroll-snap-align: start;
    }
}

/* --- «Тренды 2026»: равные ряды бенто, низы карточек выровнены ------------- */
.trends__grid { grid-auto-rows: 1fr; }
.trend { aspect-ratio: auto; height: 100%; min-height: 280px; }
.trend--wide { grid-row: span 2; min-height: 0; }
@media (max-width: 1024px) {
    .trend { min-height: 240px; }
    .trend--wide { grid-row: auto; min-height: 240px; }
}
@media (max-width: 640px) {
    .trend, .trend--wide { min-height: 210px; }
}
