/* =====================================================================
   Avgifts — Theme 2026
   Слой современного дизайна. Подключается ПОСЛЕ /css/app.css.
   Переопределяет дизайн-токены (вся палитра/типографика/радиусы каскадом)
   и добавляет плавающие 3D-детали, стекло, градиенты и микро-анимации.
   Не изменяет исходный app.css — только дополняет.
   ===================================================================== */

/* ========================================================
   1. Дизайн-токены (переопределение :root)
======================================================== */
:root {
    /* Палитра — индиго/фиолет/маджента «чернил для нанесения» */
    --color-primary:        #4f46e5;
    --color-primary-dark:   #4338ca;
    --color-primary-light:  #6366f1;
    --color-secondary:      #64748b;
    --color-accent:         #ec4899;
    --color-success:        #10b981;
    --color-warning:        #f59e0b;
    --color-danger:         #ef4444;

    --color-text:           #0f172a;
    --color-text-light:     #5b657a;
    --color-text-muted:     #94a3b8;

    --color-bg:             #ffffff;
    --color-bg-light:       #f3f4fb;
    --color-bg-dark:        #0d1326;

    --color-border:         #e8e9f5;
    --color-border-dark:    #d2d6ee;

    /* Типографика */
    --font-family:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Радиусы — мягче и крупнее */
    --radius-sm:   .5rem;
    --radius-md:   .75rem;
    --radius-lg:   1rem;
    --radius-xl:   1.375rem;
    --radius-2xl:  1.875rem;
    --radius-full: 9999px;

    /* Тени — цветные, многослойные */
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --shadow-md: 0 8px 22px -8px rgba(15,23,42,.14), 0 2px 6px -3px rgba(15,23,42,.08);
    --shadow-lg: 0 22px 48px -16px rgba(79,70,229,.26), 0 8px 20px -12px rgba(15,23,42,.14);
    --shadow-xl: 0 34px 70px -22px rgba(79,70,229,.34), 0 12px 28px -14px rgba(15,23,42,.16);

    /* Фирменные градиенты */
    --grad-1: #6366f1;
    --grad-2: #a855f7;
    --grad-3: #ec4899;
    --grad-4: #22d3ee;
    --brand-gradient:      linear-gradient(120deg, #6366f1 0%, #9333ea 48%, #ec4899 100%);
    --brand-gradient-soft: linear-gradient(120deg, #eef1ff 0%, #f4ecff 50%, #ffeef7 100%);

    --transition-fast: 160ms cubic-bezier(.4,0,.2,1);
    --transition-base: 240ms cubic-bezier(.4,0,.2,1);
    --transition-slow: 420ms cubic-bezier(.4,0,.2,1);

    --header-height: 132px;
}

/* ========================================================
   2. Глобальная отделка
======================================================== */
html { scroll-padding-top: 96px; }

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background:
        radial-gradient(900px 600px at 8% -6%,  rgba(99,102,241,.10), transparent 60%),
        radial-gradient(820px 560px at 100% 4%, rgba(236,72,153,.08), transparent 58%),
        linear-gradient(180deg, #fafbff 0%, #f2f3fb 100%);
    background-attachment: fixed;
    /* clip, не hidden: overflow-x hidden делает body scroll-контейнером
       и убивает все position: sticky на странице (сайдбар чекаута).
       Первая строка — запасной вариант для браузеров без clip. */
    overflow-x: hidden;
    overflow-x: clip;
}

h1, h2, h3, h4,
.section__title,
.hero__title,
.cta__title,
.about-home__title,
.footer__title,
.stat__value {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

::selection { background: rgba(124,58,237,.22); color: #1e1043; }

/* Аккуратный фокус для доступности */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.btn:focus-visible {
    outline: 3px solid rgba(99,102,241,.45);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

/* Тонкий брендовый скроллбар */
* { scrollbar-color: #c4c8ec transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c7caee, #b3a8e8);
    border: 3px solid transparent;
    border-radius: 9999px;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg,#a8acea,#9a8ce4); background-clip: padding-box; }

/* Контент над фоновыми деталями */
.breadcrumbs, .main, .footer { position: relative; z-index: 1; }
/* Шапка остаётся «липкой» и НАД контентом, иначе выпадающее мега-меню
   (position:absolute) прячется за hero-секцией */
.header { position: sticky; top: 0; z-index: 200; }

/* Больше воздуха по краям — на широких экранах текст не липнет к границе.
   Плюс: в app.css у .container стоит overflow-x:hidden, а по спецификации CSS
   это заставляет overflow-y вычисляться как auto. Из-за этого в hero (где
   декоративное свечение выходит за низ контейнера) появлялась лишняя
   вертикальная прокрутка. overflow:clip по X клипает так же, но без этого
   побочного эффекта. */
.container {
    padding-left: clamp(16px, 2.6vw, 40px);
    padding-right: clamp(16px, 2.6vw, 40px);
    overflow-x: clip;
    overflow-y: visible;
}

/* ========================================================
   3. Плавающие 3D-детали фона
======================================================== */

/* Глобальный фиксированный слой — мягкие «авроры» */
.fx-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    contain: strict;
}
.fx-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    will-change: transform;
}
.fx-blob--1 {
    width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
    top: -8vw; left: -10vw;
    background: radial-gradient(circle at 30% 30%, #818cf8, rgba(129,140,248,0) 70%);
    animation: fxDrift1 26s ease-in-out infinite;
}
.fx-blob--2 {
    width: 40vw; height: 40vw; max-width: 540px; max-height: 540px;
    top: 18vh; right: -12vw;
    background: radial-gradient(circle at 60% 40%, #f0abfc, rgba(240,171,252,0) 70%);
    opacity: .42;
    animation: fxDrift2 32s ease-in-out infinite;
}
.fx-blob--3 {
    width: 34vw; height: 34vw; max-width: 460px; max-height: 460px;
    bottom: -10vw; left: 30vw;
    background: radial-gradient(circle at 50% 50%, #67e8f9, rgba(103,232,249,0) 70%);
    opacity: .34;
    animation: fxDrift3 38s ease-in-out infinite;
}

@keyframes fxDrift1 {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    50%     { transform: translate3d(6vw,4vh,0) scale(1.08); }
}
@keyframes fxDrift2 {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    50%     { transform: translate3d(-5vw,5vh,0) scale(1.12); }
}
@keyframes fxDrift3 {
    0%,100% { transform: translate3d(0,0,0) scale(1); }
    50%     { transform: translate3d(4vw,-4vh,0) scale(1.1); }
}

/* ---- Глянцевые 3D-объекты (в hero и CTA) ---- */
.shape3d {
    position: absolute;
    will-change: transform;
    pointer-events: none;
    --fl: 7s;
    animation: floatY var(--fl) ease-in-out infinite;
}
@keyframes floatY {
    0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); }
    50%     { transform: translateY(-22px) rotate(calc(var(--rot,0deg) + 6deg)); }
}

/* Сфера */
.shape3d--sphere {
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, #ffffff 0%, rgba(255,255,255,.65) 9%, transparent 26%),
        radial-gradient(circle at 70% 78%, rgba(76,29,149,.55), transparent 60%),
        radial-gradient(circle at 50% 45%, #818cf8 0%, #6d28d9 78%);
    box-shadow: 0 26px 50px -18px rgba(91,33,182,.55), inset -6px -10px 22px rgba(49,15,107,.45);
}

/* Кольцо (тор) */
.shape3d--ring {
    border-radius: 50%;
    background: conic-gradient(from 200deg, #ec4899, #a855f7, #6366f1, #22d3ee, #ec4899);
    -webkit-mask: radial-gradient(circle, transparent 38%, #000 39%, #000 100%);
            mask: radial-gradient(circle, transparent 38%, #000 39%, #000 100%);
    box-shadow: 0 22px 44px -20px rgba(168,85,247,.6);
    filter: drop-shadow(0 4px 10px rgba(99,102,241,.35));
}

/* Подарочная коробка */
.shape3d--gift {
    border-radius: 22%;
    background:
        radial-gradient(circle at 28% 22%, rgba(255,255,255,.55), transparent 40%),
        linear-gradient(145deg, #f472b6 0%, #db2777 100%);
    box-shadow: 0 24px 46px -18px rgba(190,24,93,.55), inset -5px -8px 18px rgba(131,16,71,.4);
}
.shape3d--gift::before { /* лента вертикаль */
    content: ""; position: absolute; left: 42%; top: 0; bottom: 0; width: 16%;
    background: rgba(255,255,255,.85);
    border-radius: 4px;
}
.shape3d--gift::after { /* лента горизонталь */
    content: ""; position: absolute; top: 42%; left: 0; right: 0; height: 16%;
    background: rgba(255,255,255,.85);
    border-radius: 4px;
}

/* Капсула (стилизованная ручка/маркер) */
.shape3d--capsule {
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,.6), transparent 35%),
        linear-gradient(135deg, #34d399 0%, #0ea5e9 100%);
    box-shadow: 0 20px 40px -18px rgba(8,145,178,.55), inset -4px -6px 16px rgba(7,89,133,.4);
}

/* Изометрический куб (настоящий 3D) */
.shape3d--cube {
    transform-style: preserve-3d;
    animation: cubeFloat 11s ease-in-out infinite;
}
.shape3d--cube i {
    position: absolute; inset: 0; display: block; border-radius: 14%;
}
.cube__top   { background: linear-gradient(135deg,#a5b4fc,#818cf8); transform: rotateX(90deg) translateZ(var(--cz)); }
.cube__left  { background: linear-gradient(135deg,#6366f1,#4f46e5); transform: rotateY(-90deg) translateZ(var(--cz)); filter: brightness(.82); }
.cube__front { background: linear-gradient(135deg,#818cf8,#6d28d9); transform: translateZ(var(--cz)); }
@keyframes cubeFloat {
    0%,100% { transform: translateY(0) rotateX(-22deg) rotateY(18deg); }
    50%     { transform: translateY(-20px) rotateX(-22deg) rotateY(54deg); }
}

/* ========================================================
   4. Шапка — стекло
======================================================== */
.header {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
.header__top {
    background: rgba(255,255,255,.0);
    border-bottom: 1px solid rgba(15,23,42,.06);
    backdrop-filter: blur(10px);
}
.header__main {
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(15,23,42,.06);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}
.header.is-scrolled .header__main {
    background: rgba(255,255,255,.9);
    box-shadow: 0 10px 30px -16px rgba(15,23,42,.22);
}
.header__phone { font-weight: 700; }

.header__catalog-btn {
    background: var(--brand-gradient);
    border-radius: var(--radius-full);
    font-weight: 600;
    padding: var(--spacing-3) var(--spacing-5);
    box-shadow: 0 10px 22px -10px rgba(124,58,237,.6);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.header__catalog-btn:hover {
    background: var(--brand-gradient);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px -12px rgba(124,58,237,.7);
}

.header__search input {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(15,23,42,.05);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.header__search input:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 4px rgba(99,102,241,.16);
}

.header__cart {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(99,102,241,.08);
    transition: background var(--transition-fast), transform var(--transition-fast);
}
.header__cart:hover { background: rgba(99,102,241,.16); transform: translateY(-1px); }
.header__cart-count {
    background: var(--color-accent);
    box-shadow: 0 2px 8px -1px rgba(236,72,153,.7);
}

.header__callback-btn {
    border: 1.5px solid var(--color-border-dark);
    border-radius: var(--radius-full);
    color: var(--color-primary-dark);
    font-weight: 600;
    background: #fff;
    transition: all var(--transition-fast);
}
.header__callback-btn:hover {
    background: rgba(99,102,241,.08);
    border-color: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.search-suggest { border-radius: var(--radius-lg); border-color: var(--color-border); box-shadow: var(--shadow-lg); }

/* ========================================================
   5. Кнопки — градиентные «пилюли»
======================================================== */
.btn {
    border-radius: var(--radius-full);
    font-weight: 600;
    letter-spacing: .01em;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 12px 26px -12px rgba(124,58,237,.65);
}
.btn--primary:hover {
    background: var(--brand-gradient);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 38px -14px rgba(124,58,237,.78);
}

.btn--outline {
    border: 1.5px solid rgba(99,102,241,.45);
    color: var(--color-primary-dark);
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(6px);
}
.btn--outline:hover {
    background: rgba(99,102,241,.1);
    color: var(--color-primary-dark);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.btn--white {
    background: #fff;
    color: var(--color-primary-dark);
    box-shadow: 0 12px 26px -14px rgba(15,23,42,.4);
}
.btn--white:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(15,23,42,.5); }

/* ========================================================
   6. Hero — иммерсивный блок со сценой 3D
======================================================== */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--brand-gradient-soft);
    padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 6.5rem);
    border-bottom: 1px solid rgba(99,102,241,.1);
}
.hero::before { /* световое пятно */
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(620px 380px at 78% 20%, rgba(168,85,247,.20), transparent 62%),
        radial-gradient(540px 360px at 12% 90%, rgba(34,211,238,.16), transparent 60%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { gap: clamp(2rem, 5vw, var(--spacing-12)); }

.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-family);
    font-size: var(--font-size-sm); font-weight: 600;
    color: var(--color-primary-dark);
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(99,102,241,.25);
    padding: 7px 14px; border-radius: var(--radius-full);
    margin-bottom: var(--spacing-5);
    backdrop-filter: blur(6px);
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gradient); box-shadow: 0 0 0 4px rgba(124,58,237,.18); }

.hero__title {
    font-size: clamp(2.1rem, 4.6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
}
.hero__title span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero__text {
    font-size: clamp(1rem, 1.4vw, var(--font-size-lg));
    color: #475067;
    max-width: 38ch;
}
.hero__actions { flex-wrap: wrap; }

.hero__trust {
    display: flex; flex-wrap: wrap; gap: 10px 22px;
    margin-top: var(--spacing-6);
    font-size: var(--font-size-sm); color: #4a5468; font-weight: 500;
}
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust span::before {
    content: ""; width: 18px; height: 18px; border-radius: 50%;
    background: rgba(16,185,129,.16);
    box-shadow: inset 0 0 0 1.5px rgba(16,185,129,.45);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center;
}

/* Сцена с изображением товаров */
.hero__image { position: relative; z-index: 2; }
.hero__image::before {
    content: "";
    position: absolute; left: 6%; right: -4%; top: 8%; bottom: -6%;
    background: linear-gradient(135deg, rgba(99,102,241,.5), rgba(236,72,153,.4));
    border-radius: var(--radius-2xl);
    opacity: .5;
    filter: blur(36px);
    z-index: 0;
}
.hero__image img {
    position: relative; z-index: 2;
    border-radius: var(--radius-2xl);
    border: 6px solid rgba(255,255,255,.9);
    background: rgba(255,255,255,.55);
    box-shadow: 0 40px 80px -28px rgba(79,70,229,.4), 0 12px 30px -16px rgba(15,23,42,.18);
    backdrop-filter: blur(2px);
}

/* Расстановка 3D-объектов вокруг hero */
.hero .shape3d { z-index: 1; }
.hero .shape3d--sphere  { width: 84px;  height: 84px;  top: 7%;    right: 5%;   --fl: 8s;  }
.hero .shape3d--ring    { width: 118px; height: 118px; bottom: 0;  right: 28%;  --rot: -8deg; --fl: 9.5s; }
.hero .shape3d--gift    { width: 72px;  height: 72px;  top: 58%;   right: 3%;   --rot: 6deg;  --fl: 7.5s; }
.hero .shape3d--capsule { width: 128px; height: 56px;  top: 2%;    left: 25%;   --rot: -12deg; --fl: 8.8s; }
.hero .shape3d--cube    { width: 68px;  height: 68px;  top: 0;     left: 47%;   --cz: 34px; }

/* ========================================================
   7. Заголовки секций — с эйбрау-акцентом
======================================================== */
.section { padding: clamp(2.75rem, 6vw, var(--spacing-16)) 0; }

.section__title {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 800;
    position: relative;
}
.section__title::after {
    content: "";
    display: block;
    width: 56px; height: 4px;
    margin-top: 14px;
    border-radius: 999px;
    background: var(--brand-gradient);
}
.section__header { align-items: flex-end; }
.section__header .section__title { margin-bottom: 0; }
.section__link {
    font-weight: 600;
    color: var(--color-primary-dark);
    transition: color var(--transition-fast), transform var(--transition-fast);
    display: inline-flex;
}
.section__link:hover { color: var(--color-accent); transform: translateX(3px); }

/* ========================================================
   8. Преимущества — карточки
======================================================== */
.features { background: transparent; }
.features__grid { gap: clamp(1rem, 2vw, var(--spacing-6)); }
.feature {
    background: rgba(255,255,255,.75);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.25rem, 2.2vw, var(--spacing-6));
    backdrop-filter: blur(6px);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99,102,241,.35);
}
.feature__icon {
    background: var(--brand-gradient);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 26px -12px rgba(124,58,237,.6);
}
.feature__icon .icon { color: #fff; }
.feature__title { font-family: var(--font-display); font-weight: 700; }

/* ========================================================
   9. Карточки категорий
======================================================== */
.categories-grid { gap: clamp(1rem, 2vw, var(--spacing-6)); }
.category-card {
    background: rgba(255,255,255,.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(6px);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.category-card:hover {
    border-color: rgba(99,102,241,.4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}
.category-card__placeholder {
    background: linear-gradient(135deg, #eef1ff 0%, #f6ecff 100%);
    border-radius: var(--radius-lg);
}
.category-card:hover .category-card__placeholder {
    background: linear-gradient(135deg, #e3e7ff 0%, #f0dcff 100%);
}
.category-card__placeholder .icon { color: var(--color-primary); }
.category-card__title { font-family: var(--font-display); font-weight: 700; }
.category-card__count {
    display: inline-block;
    margin-top: 4px;
    color: var(--color-primary-dark);
    background: rgba(99,102,241,.1);
    padding: 3px 10px; border-radius: var(--radius-full);
    font-weight: 600;
}

/* ========================================================
   10. Карточки товаров
======================================================== */
.product-card {
    background: rgba(255,255,255,.85);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(4px);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.product-card:hover {
    border-color: rgba(99,102,241,.4);
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}
.product-card__image {
    background: linear-gradient(160deg, #f7f8ff 0%, #eef0fb 100%);
}
.product-card__image img { transition: transform var(--transition-slow); }
.product-card:hover .product-card__image img { transform: scale(1.06); }

.product-card__badge {
    border-radius: var(--radius-full);
    padding: 4px 10px;
    letter-spacing: .03em;
    box-shadow: 0 4px 10px -4px rgba(15,23,42,.35);
    backdrop-filter: blur(2px);
}
.product-card__badge--new  { background: var(--brand-gradient); }
.product-card__badge--eco  { background: linear-gradient(135deg,#10b981,#059669); }
.product-card__badge--sale { background: linear-gradient(135deg,#f43f5e,#e11d48); }

.product-card__title { font-weight: 600; }
.product-card__price {
    font-family: var(--font-display);
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.product-card__price--request {
    -webkit-text-fill-color: initial; color: var(--color-text-light);
    background: none; font-weight: 600;
}
.product-card__quick-view {
    border-radius: var(--radius-md);
    border-color: var(--color-border);
}
.product-card__quick-view:hover {
    border-color: var(--color-primary-light);
    color: var(--color-primary);
    background: rgba(99,102,241,.08);
}
.product-card__qty { border-radius: var(--radius-md); }
.product-card__qty-btn { background: rgba(99,102,241,.06); }
.product-card__qty-btn:hover { background: rgba(99,102,241,.16); color: var(--color-primary-dark); }
.product-card__actions .add-to-cart { box-shadow: 0 10px 20px -10px rgba(124,58,237,.55); }

/* ---- Компактные ряды: промо-секции главной + «Похожие товары» ----
   6 карточек в ряд на десктопе, плавно уменьшается, 2 в ряд на телефоне.
   НЕ затрагивает основной листинг каталога (.catalog-main .products-grid). */
.products-section .products-grid,
.similar-products .products-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(.6rem, 1vw, 1.15rem);
}
.products-section .product-card__title,
.similar-products .product-card__title { font-size: var(--font-size-sm); }
@media (max-width: 1280px) {
    .products-section .products-grid,
    .similar-products .products-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 1024px) {
    .products-section .products-grid,
    .similar-products .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .products-section .products-grid,
    .similar-products .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    /* перебиваем app.css, где на узких экранах .products-grid → 1 колонка !important */
    .products-section .products-grid,
    .similar-products .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
}

/* ========================================================
   11. CTA-секция
======================================================== */
.cta {
    position: relative;
    overflow: hidden;
    background: var(--brand-gradient);
    border-radius: var(--radius-2xl);
    box-shadow: 0 40px 80px -30px rgba(124,58,237,.6);
}
.cta::before {
    content: "";
    position: absolute; width: 360px; height: 360px; border-radius: 50%;
    top: -140px; right: -80px;
    background: radial-gradient(circle, rgba(255,255,255,.35), transparent 70%);
    pointer-events: none;
}
.cta::after {
    content: "";
    position: absolute; width: 280px; height: 280px; border-radius: 50%;
    bottom: -150px; left: 10%;
    background: radial-gradient(circle, rgba(34,211,238,.4), transparent 70%);
    pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta__title { font-weight: 800; }
.cta .shape3d { z-index: 1; }
.cta .shape3d--ring   { width: 92px; height: 92px; top: 14%; right: 8%; opacity: .9; --fl: 9s; }
.cta .shape3d--sphere { width: 56px; height: 56px; bottom: 16%; right: 28%; --fl: 7.5s; }

/* ========================================================
   12. Блок «О компании» — статистика
======================================================== */
.about-section { background: transparent; }
.stat {
    background: rgba(255,255,255,.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(6px);
}
.stat:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.stat__value {
    font-family: var(--font-display);
    font-weight: 800;
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.about-home__list li::before { background: var(--color-primary); }
.about-home__list li::after { color: var(--color-primary); }

/* SEO-блок — мягкая карточка */
.seo-section .seo-text {
    background: rgba(255,255,255,.7);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, var(--spacing-10));
    backdrop-filter: blur(6px);
}

/* ========================================================
   13. Подвал — акценты
======================================================== */
.footer {
    background:
        radial-gradient(800px 300px at 80% -40%, rgba(124,58,237,.4), transparent 60%),
        linear-gradient(180deg, #131a30 0%, #0b1020 100%);
    position: relative;
}
.footer::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--brand-gradient);
    opacity: .9;
}
.footer__title { font-family: var(--font-display); font-weight: 700; }
.footer__socials a { border-radius: var(--radius-lg); }
.footer__socials a:hover { background: var(--brand-gradient); }

/* ========================================================
   14. Хлебные крошки / прочее
======================================================== */
.breadcrumbs { background: transparent; }
/* ссылки крошек — нейтральный серый, не синий; текущий пункт — тёмный */
.breadcrumbs__item a { color: #6b7280; }
.breadcrumbs__item a:hover { color: var(--color-primary); }
.breadcrumbs__item:last-child span { color: var(--color-text); font-weight: 600; }

/* Мобильное меню — мягче */
.mobile-menu__link--primary { background: var(--brand-gradient) !important; border-radius: var(--radius-full) !important; }

/* ========================================================
   15. Внутренние страницы — единый стиль
   (каталог, листинг, товар, корзина, оформление,
    контентные страницы, успех заказа, 404)
======================================================== */

/* ---- Заголовки страниц: дисплейный шрифт + градиентная черта ---- */
.catalog-page__title,
.catalog-index__title,
.catalog-products__title,
.delivery-page__title,
.branding-page__title,
.contacts-page__title,
.cart-page .cart-page__title,
.checkout-page .checkout-page__title,
.about-hero h1,
.error-page .error-page__title,
.product-page .product-info__title,
.similar-products__title,
.product-sizes-table__title {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--color-text);
}
.catalog-page__title::after,
.catalog-index__title::after,
.catalog-products__title::after,
.delivery-page__title::after,
.branding-page__title::after,
.contacts-page__title::after,
.cart-page__title::after,
.checkout-page__title::after {
    content: "";
    display: block;
    width: 56px; height: 4px;
    margin-top: 14px;
    border-radius: var(--radius-full);
    background: var(--brand-gradient);
}

/* мягкое свечение-орб за крупными заголовками */
.catalog-page__header,
.catalog-index__header,
.error-page__content { position: relative; }
.catalog-page__header::before,
.catalog-index__header::before,
.error-page__content::before {
    content: "";
    position: absolute;
    top: -48px; right: -24px;
    width: 300px; height: 300px;
    background: radial-gradient(circle at 50% 50%, rgba(99,102,241,.16), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ---- Каталог: дерево категорий ---- */
.category-block {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}
.category-block:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: transparent;
}
.category-block__icon {
    border-radius: var(--radius-lg);
    background: var(--brand-gradient-soft);
    color: var(--color-primary);
}
.catalog-index .category-block__title { font-family: var(--font-display); font-weight: 700; }
.category-block__count,
.category-child__count { color: var(--color-text-muted); }
.category-child {
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.category-child:hover { background: rgba(99,102,241,.07); color: var(--color-primary-dark); }

/* ---- Компактная плитка категорий (/catalog) ----
   Grid с порядком ПО СТРОКАМ: вверху обоих столбцов — самые крупные категории,
   ниже — меньше (сортировка по количеству идёт из контроллера/модели).
   align-items:start — низкие карточки не растягиваются под высоту соседней. */
.catalog-index { background: transparent; min-height: 0; padding-top: var(--spacing-8); }
.catalog-index__header { margin-bottom: var(--spacing-8); }
.categories-tree {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    align-items: start;
}
.categories-tree .category-block {
    margin: 0;
    width: 100%;
}
/* JS-masonry (theme-2026.js): карточки пакуются в самый короткий столбец без зазоров,
   порядок по убыванию количества сохраняется. Без JS остаётся grid выше. */
.categories-tree.is-masonry {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.categories-tree.is-masonry .masonry-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.categories-tree.is-masonry .masonry-col > .category-block { width: 100%; margin: 0; }
.categories-tree .category-block__header {
    gap: 14px;
    padding: 15px 18px;
}
.categories-tree .category-block__icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
}
.categories-tree .category-block__icon .icon { width: 22px; height: 22px; }
.catalog-index .category-block__title { font-size: var(--font-size-base); }
.categories-tree .category-block__children {
    padding: 13px 18px 16px;
    gap: 7px;
}
.categories-tree .category-child {
    padding: 5px 11px;
    font-size: 13px;
}
@media (max-width: 720px) {
    .categories-tree { grid-template-columns: 1fr; }
}

/* ---- Плитки подкатегорий ---- */
.subcategory-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}
.subcategory-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--color-primary-light);
}
.subcategory-card__name { font-weight: 600; }
.subcategory-card__count { color: var(--color-text-muted); }

.catalog-page__info strong { color: var(--color-primary-dark); }

/* ---- Боковая панель фильтров — стекло ---- */
.catalog-sidebar {
    background: rgba(255,255,255,.72);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}
.catalog-sidebar__header h3 { font-family: var(--font-display); font-weight: 700; }
.filter-group__apply {
    background: rgba(99,102,241,.1);
    color: var(--color-primary-dark);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: background var(--transition-fast);
}
.filter-group__apply:hover { background: rgba(99,102,241,.18); }
.price-range input,
.filters-form input[type="number"] {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.price-range input:focus,
.filters-form input[type="number"]:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(99,102,241,.16);
    outline: none;
}
.checkbox input:checked + .checkbox__mark {
    background: var(--brand-gradient);
    border-color: transparent;
}
.checkbox__count { color: var(--color-text-muted); }
.color-filter__dot { box-shadow: inset 0 0 0 1px rgba(15,23,42,.12); }
.color-filter__dot--active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--color-primary); }

/* ---- Тулбар листинга ---- */
.catalog-toolbar {
    background: rgba(255,255,255,.66);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.catalog-toolbar__sort select {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.catalog-toolbar__sort select:focus {
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(99,102,241,.16);
    outline: none;
}
.catalog-toolbar__view-btn { border-radius: var(--radius-md); transition: background var(--transition-fast), color var(--transition-fast); }
.catalog-toolbar__view-btn.active { background: var(--brand-gradient); color: #fff; }
.catalog-toolbar__filter-btn {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}
.catalog-toolbar__filter-btn:hover { border-color: var(--color-primary-light); color: var(--color-primary); }

/* ---- Применённые фильтры (теги) ---- */
.filter-tag {
    background: var(--brand-gradient-soft);
    color: var(--color-primary-dark);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
}
.filter-tag__remove:hover { color: var(--color-accent); }

/* ---- Пагинация — пилюли ---- */
.pagination__link {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.pagination__link:hover { border-color: var(--color-primary-light); color: var(--color-primary); transform: translateY(-1px); }
.pagination__link--active {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(124,58,237,.6);
}

/* ---- Пустой результат ---- */
.products-empty .icon,
.catalog-empty .icon { color: var(--color-primary-light); }
.products-empty h3,
.catalog-empty h3 { font-family: var(--font-display); font-weight: 700; }

/* ========================================================
   Страница товара
======================================================== */
.product-gallery__main {
    aspect-ratio: auto;
    height: clamp(340px, 46vh, 460px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: linear-gradient(155deg, #f7f8ff 0%, #edeffa 100%);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-3);
}
/* панель — это просто обёртка показа/скрытия, не делаем её картой
   (иначе белая карта в белой карте = «бельмо» между фото и превью) */
.product-gallery__panel { background: transparent; border: 0; box-shadow: none; padding: 0; }
.product-gallery__arrow {
    background: rgba(255,255,255,.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
}
.product-page .product-info__price-value {
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    font-family: var(--font-display); font-weight: 800;
}
.product-info__price-currency { color: var(--color-primary); }
.product-quick-spec {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
    align-items: center;
}
.product-quick-spec__label { color: var(--color-text-muted); }
.product-quick-spec__value { font-weight: 700; }
.product-colors__item { border-radius: var(--radius-md); transition: box-shadow var(--transition-fast), transform var(--transition-fast); }
.product-colors__item:hover { transform: translateY(-2px); }
.product-tabs__btn { font-weight: 600; transition: color var(--transition-fast); position: relative; }
.product-tabs__btn.active { color: var(--color-primary); }
.product-tabs__btn.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
    background: var(--brand-gradient); border-radius: var(--radius-full);
}
.size-badge { border-radius: var(--radius-full); }

/* ========================================================
   Корзина
======================================================== */
.cart-item,
.cart-summary__card {
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}
.cart-item:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary-light); }
.cart-summary__card { box-shadow: var(--shadow-md); }
.cart-page .cart-summary__row--total {
    font-family: var(--font-display);
    font-weight: 800;
}
.cart-page .cart-summary__row--total span:last-child,
.cart-page .cart-item__total-value {
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.cart-quantity-input {
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
}

/* ========================================================
   Оформление заказа (формы уже на токенах — добавляем свечение фокуса)
======================================================== */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.contacts-form input:focus,
.contacts-form textarea:focus {
    box-shadow: 0 0 0 3px rgba(99,102,241,.16);
}
.checkout-page .checkout-section,
.checkout-page .checkout-summary { box-shadow: var(--shadow-md); }
.checkout-page .checkout-summary__total {
    font-family: var(--font-display);
    font-weight: 800;
}
.checkout-page .checkout-summary__total span:last-child {
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ========================================================
   Контентные страницы
======================================================== */
.about-hero {
    background: var(--brand-gradient-soft);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border);
    padding: clamp(28px, 4.5vw, 56px) clamp(24px, 6vw, 64px);
}
.about-hero__lead { color: var(--color-text-light); }
.about-stat,
.delivery-option,
.payment-option,
.info-block,
.branding-method,
.process-step,
.code-item,
.contact-block {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
}
.about-stat:hover,
.delivery-option:hover,
.branding-method:hover,
.code-item:hover,
.contact-block:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}
.about-page .about-stat__value,
.branding-page .process-step__num {
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    font-family: var(--font-display); font-weight: 800;
}
.about-stat__label { color: var(--color-text-muted); }
.delivery-option__icon { color: var(--color-primary); }
/* контакт-блоки стали карточками — нужен внутренний отступ, чтобы текст не липнул к краю */
.contact-block { padding: 20px 24px; }
.code-item__code {
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    color: var(--color-primary-dark);
    font-weight: 700;
}

/* Контентные CTA — как на главной */
.about-cta,
.branding-cta {
    border-radius: var(--radius-2xl);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255,255,255,.16), transparent 50%),
        var(--brand-gradient);
    color: #fff;
    box-shadow: var(--shadow-xl);
}
.about-cta :is(h2,h3,p,span),
.branding-cta :is(h2,h3,p,span) { color: #fff; }
.about-cta .btn--primary,
.branding-cta .btn--primary {
    background: #fff;
    color: var(--color-primary-dark);
}
.about-cta .btn--primary:hover,
.branding-cta .btn--primary:hover { background: #fff; transform: translateY(-2px); }

/* ========================================================
   Успешный заказ + 404
======================================================== */
.order-success__icon { color: #fff; }
.order-success .order-success__number,
.error-page .error-page__code {
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    font-family: var(--font-display); font-weight: 800;
}
.order-info-card,
.order-items-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

/* ---- Адаптив внутренних страниц ---- */
@media (max-width: 768px) {
    .catalog-page__header::before,
    .catalog-index__header::before,
    .error-page__content::before { display: none; }
    .about-hero { border-radius: var(--radius-xl); }
    .catalog-page__title::after,
    .delivery-page__title::after,
    .branding-page__title::after,
    .contacts-page__title::after { width: 44px; height: 3px; margin-top: 10px; }
}

/* ========================================================
   16. Появление при прокрутке
======================================================== */
html.reveal-on .reveal-item {
    opacity: 0;
    transform: translateY(22px);
}
html.reveal-on .reveal-item.is-in {
    opacity: 1;
    transform: none;
    transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}

/* ========================================================
   17. Адаптив + reduced-motion
======================================================== */
@media (max-width: 1024px) {
    .hero .shape3d--cube,
    .hero .shape3d--capsule { display: none; }
}
@media (max-width: 768px) {
    .hero .shape3d--ring,
    .hero .shape3d--gift,
    .cta .shape3d { display: none; }
    .hero .shape3d--sphere { width: 64px; height: 64px; top: 2%; right: 4%; }
    .fx-blob { filter: blur(54px); opacity: .4; }
    .section__title::after { width: 44px; height: 3px; margin-top: 10px; }
    .header__main { background: rgba(255,255,255,.92); }
}

@media (prefers-reduced-motion: reduce) {
    .fx-blob,
    .shape3d,
    .shape3d--cube,
    .product-card__image img,
    .hero__image img {
        animation: none !important;
        transition: none !important;
    }
    html.reveal-on .reveal-item { opacity: 1 !important; transform: none !important; }
}

/* ========================================================
   Страница товара — раскладка под маркетплейс (Ozon-style)
   Переопределяет предыдущие правила карточки (этот блок ниже по файлу).
======================================================== */
/* 3 колонки: галерея | характеристики | блок покупки (липкий) */
.product-page__main {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) 332px;
    gap: 26px;
    align-items: start;
}
.product-gallery { position: static; }

/* --- Галерея: вертикальные превью слева --- */
.product-gallery__panel {
    display: flex;
    flex-direction: row-reverse;   /* превью (идут в DOM после фото) — слева */
    gap: 12px;
    align-items: flex-start;
}
.product-gallery__main {
    flex: 1 1 auto;
    min-width: 0;
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 560px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: linear-gradient(155deg, #f7f8ff 0%, #edeffa 100%);
}
.product-gallery__image { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.product-gallery__thumbs {
    flex: 0 0 60px;
    width: 60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 560px;
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
}
.product-gallery__thumb {
    flex: 0 0 auto;
    width: 60px; height: 60px;
    padding: 0; border-radius: 10px; overflow: hidden;
    border: 2px solid transparent; background: #fff; cursor: pointer;
    transition: border-color .15s;
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb.active { border-color: var(--color-primary); }
.product-gallery__thumb:hover { border-color: var(--color-primary-light); }
/* зум-иконка на фото */
.product-gallery__main::after {
    content: "";
    position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px;
    background: rgba(255,255,255,.9) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/><line x1='11' y1='8' x2='11' y2='14'/><line x1='8' y1='11' x2='14' y2='11'/></svg>") center/18px no-repeat;
    border-radius: 50%; box-shadow: var(--shadow-sm); pointer-events: none; opacity: .85;
}

/* --- Средняя колонка: характеристики --- */
.product-info { display: flex; flex-direction: column; gap: 14px; }
.product-info__header { margin: 0; }

/* --- Цвета: компактные плитки --- */
.product-colors__list { display: flex; flex-wrap: wrap; gap: 6px; }
.product-colors__item { width: 46px; height: 46px; border-radius: 9px; overflow: hidden; border: 2px solid transparent; position: relative; }
.product-colors__item img { width: 100%; height: 100%; object-fit: cover; }
.product-colors__item--active { border-color: var(--color-primary); }
.product-colors__item:hover { transform: none; border-color: var(--color-primary-light); }
.product-colors__out { font-size: 9px; padding: 0; inset: auto 0 0 0; }

/* --- Размеры: компактная таблица --- */
.product-sizes-table { max-height: 300px; overflow-y: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.product-sizes-table__title { padding: 10px 12px 0; }
.product-sizes-table .sizes-table th,
.product-sizes-table .sizes-table td { padding: 7px 12px; }
.product-sizes-table .size-qty-input { transform: scale(.92); transform-origin: right center; }

/* --- Правая колонка: блок покупки (липкий) --- */
.product-buybox {
    position: sticky; top: 84px; align-self: start;
    display: flex; flex-direction: column; gap: 14px;
    background: #fff; border: 1px solid var(--color-border);
    border-radius: var(--radius-xl); padding: 18px; box-shadow: var(--shadow-sm);
}
.product-buybox .product-info__price-block { margin: 0; }
.product-buybox .product-info__actions { margin: 0; }
.product-buybox .btn--lg { width: 100%; justify-content: center; }

/* Рекомендованные — под галереей (левая колонка), как на маркетплейсах */
.product-gallery .pdp-reco-slot { margin-top: 26px; }

/* --- Адаптив --- */
@media (max-width: 1080px) {
    .product-page__main { grid-template-columns: minmax(0,1fr) 320px; }
    .product-info { grid-column: 1 / 2; }
    .product-buybox { grid-column: 2 / 3; grid-row: 1 / 3; }
}
@media (max-width: 760px) {
    .product-page__main { grid-template-columns: 1fr; }
    .product-info, .product-buybox { grid-column: 1; grid-row: auto; }
    /* блок покупки — компактный «липкий» бар внизу экрана */
    .product-buybox {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; order: 0;
        margin: 0; border-radius: 16px 16px 0 0;
        background: #fff; box-shadow: 0 -6px 22px rgba(0,0,0,.16);
        padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
        max-height: 58vh; overflow-y: auto;
    }
    /* в баре — только цена и кнопки; объёмные блоки прячем (они показываются в потоке) */
    .product-buybox .branding-note,
    .product-buybox .product-info__order-info,
    .product-buybox .product-info__inway { display: none; }
    /* плашка цены — убираем серый фон и паддинг 24px (это и съедало пол-экрана) */
    .product-buybox .product-info__price-block {
        display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px;
        padding: 0; background: transparent; border-radius: 0; margin: 0 0 6px;
    }
    .product-buybox .product-info__price { margin: 0; }
    .product-buybox .product-info__stock { margin: 0; font-size: 13px; }
    .product-buybox .product-info__actions { margin: 0; gap: 8px; }
    /* количество ниже (было 44px → 36px) */
    .product-buybox .quantity-input { border-width: 1px; }
    .product-buybox .quantity-input__btn { width: 42px; height: 36px; }
    .product-buybox .quantity-input input { height: 36px; }
    /* кнопка «Добавить» компактнее */
    .product-buybox .add-to-cart-main--stacked { padding-top: 7px; padding-bottom: 7px; }
    .product-buybox .add-to-cart-main--stacked .add-to-cart-main__title { font-size: 16px; }
    .product-buybox .add-to-cart-main--stacked .add-to-cart-main__sub { font-size: 11px; }
    /* цена меньше (была ~30px) — бар ещё компактнее */
    .product-buybox .product-info__price-value { font-size: 26px; }
    .product-buybox .product-info__price-old { font-size: 15px; margin-right: 4px; }
    .product-buybox .product-info__price-disc { font-size: 11px; padding: 2px 7px; margin-left: 6px; }
    .product-info { order: 3; }
    .product-gallery { order: 1; }
    .product-gallery__panel { flex-direction: column; }
    .product-gallery__thumbs { flex-direction: row; width: 100%; flex: 0 0 auto; max-height: none; overflow-x: auto; }
    .product-gallery__main { aspect-ratio: 1/1; }
}

/* ========================================================
   Фуллскрин-галерея (лайтбокс)
======================================================== */
.pdp-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; background: rgba(15,17,26,.94); }
.pdp-lightbox.open { display: flex; }
.pdp-lb__thumbs { width: 92px; flex: 0 0 92px; padding: 18px 10px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.pdp-lb__thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; cursor: pointer; flex: 0 0 auto; }
.pdp-lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-lb__thumb.active { border-color: #fff; }
.pdp-lb__stage { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; position: relative; padding: 24px; }
.pdp-lb__img { max-width: 100%; max-height: 92vh; object-fit: contain; }
.pdp-lb__close { position: absolute; top: 18px; right: 22px; width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 26px; cursor: pointer; line-height: 1; }
.pdp-lb__close:hover { background: rgba(255,255,255,.25); }
.pdp-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: none; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pdp-lb__nav:hover { background: rgba(255,255,255,.25); }
.pdp-lb__nav--prev { left: 18px; } .pdp-lb__nav--next { right: 18px; }
@media (max-width: 760px) {
    .pdp-lb__thumbs { display: none; }
    .pdp-lb__nav { width: 42px; height: 42px; }
}

/* Плитки методов нанесения для каталожных товаров (именованные, не коды) */
.product-print-methods--named .product-print-methods__list { display: flex; flex-wrap: wrap; gap: 8px; }
.product-print-method--named {
    width: auto; min-width: 0; height: auto; padding: 5px 12px;
    border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.3;
    cursor: default; background: var(--color-bg-light);
    border: 1px solid var(--color-border); color: var(--color-text);
}
.product-print-method--named:hover { border-color: var(--color-primary-light); }

/* Кнопка «Добавить» в две строки (крупно действие + мелко выбранное) */
.add-to-cart-main--stacked {
    flex-direction: column;
    gap: 2px;
    height: auto;
    padding-top: 11px;
    padding-bottom: 11px;
    line-height: 1.2;
    white-space: normal;
}
.add-to-cart-main__title {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 17px; font-weight: 700;
}
.add-to-cart-main__title .icon { width: 20px; height: 20px; flex: 0 0 auto; }
.add-to-cart-main__sub {
    display: block; max-width: 100%;
    font-size: 12px; font-weight: 500; opacity: .92;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Блок покупки: количество и кнопка — в колонку, во всю ширину (не вылезают) */
.product-buybox .product-info__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 0;
}
.product-buybox .quantity-input { width: 100%; justify-content: center; }
.product-buybox .add-to-cart-main { width: 100%; max-width: 100%; }

/* ── Фикс иконки «в корзину» в мини-карточке (была залита в пятно из-за fill:currentColor) ── */
.product-card__actions .add-to-cart {
    display: inline-flex; align-items: center; justify-content: center;
}
.product-card__actions .add-to-cart .cart-icon-inline {
    width: 20px; height: 20px; color: #fff;
    fill: #fff !important; stroke: none !important;
}
.product-card__actions .add-to-cart .cart-icon-inline path {
    fill: #fff !important; stroke: none !important;
}

/* ── Зачёркнутая «старая» цена на карточке товара ── */
.product-card__price-old {
    display: inline-block;
    color: #9ca3af; text-decoration: line-through;
    font-weight: 500; font-size: .78em;
    margin-right: 6px; vertical-align: middle;
}
.product-card__price-value { vertical-align: middle; }

/* ── Компактный заголовок каталога/поиска: заголовок + счётчик в одну строку ── */
.catalog-page { padding-top: var(--spacing-5); }
.catalog-page__headline,
.search-page__headline {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 6px 20px; flex-wrap: wrap;
}
.catalog-page__headline .catalog-page__title,
.search-page__headline .search-page__title { margin-bottom: 0; }
.catalog-page__count,
.search-page__meta {
    margin: 0; font-size: 15px; color: var(--color-text-light); white-space: nowrap;
}
.catalog-page__count strong,
.search-page__meta strong { color: var(--color-primary-dark); }
.catalog-page__header,
.search-page__header { margin-bottom: var(--spacing-4); }
/* черта под заголовком — компактнее, чтобы не растягивала блок */
.catalog-page__title::after,
.search-page__title::after { margin-top: 8px; }
@media (max-width: 600px) {
    .catalog-page__count, .search-page__meta { font-size: 13.5px; }
}

/* ── Напоминание о брендировании (под блоком цены/кнопок на странице товара) ── */
.branding-note {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 14px; padding: 12px 14px;
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
    border: 1px solid #e0e7ff; border-radius: 12px;
}
.branding-note .icon {
    flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px;
    color: var(--color-primary, #6366f1);
    fill: none; stroke: currentColor; stroke-width: 2;
}
.branding-note__text { font-size: 13.5px; line-height: 1.5; color: #374151; }
.branding-note__text strong { color: #1f2430; }
.branding-note__text a { color: var(--color-primary, #6366f1); font-weight: 600; text-decoration: none; }
.branding-note__text a:hover { text-decoration: underline; }
@media (max-width: 760px) {
    .branding-note { margin-top: 10px; padding: 10px 12px; }
    .branding-note__text { font-size: 12.5px; }
}

/* ── Пометка о брендировании рядом с логотипом ── */
.header__tagline {
    font-size: 11px; line-height: 1.3; font-weight: 500;
    color: var(--color-text-light, #6b7280);
    max-width: 170px; padding-left: 12px; margin-left: 2px;
    border-left: 1px solid var(--color-border, #e5e7eb);
}
@media (max-width: 1320px) { .header__tagline { display: none; } }

/* ── Чипы активных фильтров (в блоке заголовка каталога) ── */
.active-filters {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px;
}
.active-filters__label { font-size: 14px; color: var(--color-text-light, #6b7280); font-weight: 500; }
.active-filters__chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 10px 5px 12px; border-radius: 999px;
    background: #eef2ff; color: var(--color-primary-dark, #4338ca);
    font-size: 13px; font-weight: 500; text-decoration: none;
    border: 1px solid #e0e7ff; transition: background .15s ease;
}
.active-filters__chip:hover { background: #e0e7ff; }
.active-filters__x { width: 13px; height: 13px; flex: 0 0 auto; opacity: .7; }
.active-filters__chip:hover .active-filters__x { opacity: 1; }
.active-filters__clear {
    font-size: 13px; color: #ef4444; text-decoration: none; font-weight: 600; margin-left: 4px;
}
.active-filters__clear:hover { text-decoration: underline; }

/* ── Зачёркнутая старая цена + % скидки на странице товара ── */
.product-info__price-old {
    color: #9ca3af; text-decoration: line-through; font-weight: 500;
    font-size: 20px; align-self: baseline; margin-right: 6px;
}
.product-info__price-disc {
    align-self: center;
    background: #ef4444; color: #fff; font-size: 13px; font-weight: 700;
    padding: 3px 9px; border-radius: 999px; margin-left: 8px;
}

/* ── Футер: ссылки каталога в 2 колонки (.footer__menu — flex, поэтому grid, а не columns) ── */
.footer__col--catalog .footer__menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2) 22px;
}

/* ── Карточка: цена и «наличие» в одну строку, без переноса части цены ──
   nowrap на цену → «1 583 ₽» никогда не разрывается; шрифт чуть меньше, чтобы влезало;
   flex-wrap на футер → если совсем узко, «В наличии» уходит на строку ниже (цена цела). */
.product-card__footer { flex-wrap: wrap; gap: 2px 8px; }
.product-card__price {
    font-size: var(--font-size-lg);
    white-space: nowrap;
}
.product-card__price-old { font-size: .7em; margin-right: 4px; }
.product-card__stock { white-space: nowrap; flex-shrink: 0; }

/* ── Карточка ≤768px: кнопка «в корзину» не должна схлопываться в «пятно» ──
   На узких (2 в ряд) карточках flex:1 + большие боковые паддинги съедали ширину и иконка
   не помещалась. Решение: меньше боковых паддингов + min-width под иконку; qty сжимаем, отдаёт место. */
@media (max-width: 768px) {
    .product-card__actions { gap: 6px; }
    /* qty может ужиматься (было flex:0 0 auto / min-width:90 — не давало места кнопке) */
    .product-card__qty { flex: 0 1 auto; min-width: 0; }
    /* обе кнопки −/+ строго одинаковой фикс-ширины и НЕ сжимаются → ровно;
       поле «1» по центру само забирает/отдаёт место симметрично */
    .product-card__qty-btn { flex: 0 0 26px; width: 26px; min-width: 26px; padding: 0; box-sizing: border-box; }
    .product-card__qty-input { flex: 1 1 26px; width: 26px; min-width: 0; padding: 0; text-align: center; }
    /* корзина: остаётся растяжимой, но НИКОГДА не уже иконки; боковые паддинги минимальны */
    .product-card__actions .btn {
        min-width: 44px;
        padding-left: 4px; padding-right: 4px;
    }
    .product-card__actions .btn .icon { width: 20px; height: 20px; }
    .product-card__quick-view { width: 40px; height: 40px; flex: 0 0 auto; }
}

/* ── Карточка: название всегда высотой ровно в 2 строки (короткое — резервирует место,
   длинное — обрывается «…» на 2-й строке). Так блоки ниже не съезжают. Фиксируем line-height,
   чтобы 2.8em было ровно 2 строки и на десктопе, и на мобиле. ── */
.product-card__title {
    line-height: 1.4;
    min-height: 2.8em;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
}

/* ── Мобайл: убираем «двойной тап → зум» на интерактивных элементах (бесит при частом
   нажатии +/−). touch-action: manipulation отключает ТОЛЬКО double-tap-zoom и спец-жесты;
   пинч-зум двумя пальцами и обычная прокрутка работают как прежде. ── */
button,
a,
input,
select,
textarea,
label,
.btn,
[role="button"],
.product-card__qty-btn,
.product-card__qty-input,
.size-qty-btn,
.quantity-input {
    touch-action: manipulation;
}

/* ── Страница товара: не ломать цену посередине числа ──
   В узкой правой колонке (320px) крупная 5-значная цена не влезала и рвалась («10»/«494»,
   ₽ отдельно). Запрещаем разрыв числа + на десктопе чуть уменьшаем, чтобы строка помещалась. */
.product-info__price { flex-wrap: wrap; }
.product-info__price-value,
.product-info__price-old,
.product-info__price-currency { white-space: nowrap; }
@media (min-width: 761px) {
    .product-page .product-info__price-value { font-size: 26px; }
    .product-info__price-old { font-size: 15px; }
    .product-info__price-disc { font-size: 12px; padding: 2px 7px; margin-left: 8px; }
}
/* ─── Умный подбор (ИИ-поиск) ─────────────────────────────────────────────── */
/* Плашка «подобрали по смыслу» над результатами */
.ai-hint {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0 4px;
    padding: 12px 14px;
    border-radius: var(--radius-lg, 14px);
    background: rgba(99, 102, 241, .07);
    border: 1px solid rgba(99, 102, 241, .22);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text, #1f2937);
}
.ai-hint__icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #7c3aed;
}
.ai-hint__body a {
    color: var(--color-primary, #6366f1);
    text-decoration: none;
    border-bottom: 1px dashed rgba(99, 102, 241, .5);
}
.ai-hint__body a:hover {
    border-bottom-style: solid;
}
.ai-hint__off {
    display: inline-block;
    margin-left: 6px;
    white-space: nowrap;
    color: var(--color-text-light, #6b7280) !important;
    border-bottom-color: rgba(107, 114, 128, .5) !important;
}

@media (max-width: 768px) {
    .ai-hint {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* Ловушка для ботов в формах заявок: человек поле не видит и не заполняет */
.form-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none;
}

/* ========================================================
   Шапка на узких телефонах (≤480px): всё в одну строку в пределах экрана.
   «Войти в ЛК» → только иконка, «Каталог» компактнее; ≤374 и ≤340 — ещё плотнее.
   Выше 480px ничего не меняется.
======================================================== */
@media (max-width: 480px) {
    .header__main-inner { gap: 8px; }
    .header__catalog-btn { padding: 8px 12px; font-size: 14px; gap: 6px; }
    .header__catalog-btn .icon { width: 18px; height: 18px; }
    .header__actions { gap: 6px; }
    /* margin-right задан inline в разметке — перебиваем !important */
    .header .header__account {
        width: 40px; height: 40px;
        justify-content: center;
        margin-right: 0 !important;
        border-radius: var(--radius-full);
        background: rgba(99,102,241,.08);
    }
    .header__account-text { display: none; }
    .header__cart { width: 40px; height: 40px; }
    .header__mobile-btn { width: 36px; flex-shrink: 0; }
}
@media (max-width: 374px) {
    .header__main-inner { gap: 6px; }
    .header__logo img { height: 30px; }
    .header__actions { gap: 4px; }
    .header .header__account,
    .header__cart { width: 36px; height: 36px; }
    .header__mobile-btn { width: 32px; }
}
@media (max-width: 340px) {
    .header__logo img { height: 26px; }
    .header__catalog-btn .icon { display: none; }
}

/* ========================================================
   Посадочные: /nanesenie, /nanesenie/{slug}, товарные хабы (30.09.2026)
======================================================== */
.landing-page { padding: 24px 0 64px; }
.landing-page__header { margin-bottom: 20px; max-width: 900px; }
.landing-page__title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 700; line-height: 1.2; margin: 0 0 12px; }
.landing-page__lead { color: var(--color-text-light); font-size: 1.05rem; line-height: 1.6; margin: 0 0 16px; }
.landing-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.landing-facts__item {
    padding: 6px 12px; border-radius: 999px; font-size: 14px; line-height: 1.3;
    background: var(--color-bg-light); border: 1px solid var(--color-border); color: var(--color-text);
}
.landing-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.landing-chips__item {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
    background: #fff; border: 1px solid var(--color-border); color: var(--color-text); font-size: 14px;
    text-decoration: none; transition: border-color .15s, color .15s;
}
.landing-chips__item:hover { border-color: var(--color-primary); color: var(--color-primary); }
.landing-chips__item--all { font-weight: 600; }
.landing-chips__count { color: var(--color-text-light); font-size: 13px; }

.landing-products { margin-bottom: 32px; scroll-margin-top: 90px; }
.landing-products .products-grid { grid-template-columns: repeat(5, 1fr); gap: clamp(.6rem, 1vw, 1.15rem); }
@media (max-width: 1280px) { .landing-products .products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .landing-products .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
    /* app.css на узких экранах делает .products-grid в 1 колонку !important — здесь компактнее, 2 */
    .landing-products .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
}

.landing-block { margin: 32px 0; }
.landing-block__title { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); font-weight: 600; margin: 0 0 14px; }
.landing-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.landing-links__item {
    display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px;
    background: var(--color-bg-light); border: 1px solid transparent; color: var(--color-text); text-decoration: none;
    min-width: 0;
}
.landing-links__item:hover { border-color: var(--color-primary); background: #fff; }
.landing-links__name { font-weight: 500; overflow-wrap: anywhere; }
.landing-links__note { font-size: 13px; color: var(--color-text-light); }
@media (max-width: 600px) {
    .landing-links { grid-template-columns: 1fr 1fr; gap: 8px; }
    .landing-links__item { padding: 9px 11px; font-size: 14px; }
    .landing-links__note { font-size: 12px; }
    .landing-facts { gap: 6px; }
    .landing-facts__item { font-size: 13px; padding: 5px 10px; }
    .landing-page__lead { font-size: 1rem; }
}

/* Посадочные: таблица «тираж → цена за штуку» */
.landing-price { margin: 20px 0 8px; }
.landing-price__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; }
.landing-price__table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.landing-price__table th, .landing-price__table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line, #e5e7eb); white-space: nowrap; }
.landing-price__table thead th { background: var(--surface-2, #f8fafc); font-weight: 600; }
.landing-price__table tbody tr:last-child td { border-bottom: 0; }
.landing-price__table td:not(:first-child), .landing-price__table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.landing-price__note { margin: 10px 0 0; color: var(--muted, #6b7280); font-size: 13.5px; }
.landing-price__list { display: none; list-style: none; margin: 0; padding: 0; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; overflow: hidden; }
.landing-price__list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line, #e5e7eb); font-size: 15px; }
.landing-price__list li:last-child { border-bottom: 0; }
.landing-price__list li:nth-child(odd) { background: var(--surface-2, #f8fafc); }
/* На телефоне таблица из 5 колонок не влезает — показываем её списком «тираж → цена» без горизонтального скролла */
@media (max-width: 640px) { .landing-price__wrap { display: none; } .landing-price__list { display: block; } }
/* Прайс-лист по изделиям: цифры без «от» и «₽» в ячейках, название переносится — 5 колонок влезают в 375 px */
.landing-pricelist__title { margin: 22px 0 10px; font-size: 18px; font-weight: 600; }
.landing-pricelist__table { min-width: 0; }
.landing-pricelist__table td:first-child, .landing-pricelist__table th:first-child { white-space: normal; }
.landing-pricelist__table td:first-child a { color: inherit; text-decoration: underline; text-decoration-color: var(--line, #cbd5e1); text-underline-offset: 3px; }
@media (max-width: 640px) {
    .landing-price__wrap.landing-pricelist { display: block; }
    .landing-pricelist__table { font-size: 13.5px; }
    .landing-pricelist__u { display: none; }
    .landing-pricelist__table th, .landing-pricelist__table td { padding: 8px 6px; }
    .landing-pricelist__table th:first-child, .landing-pricelist__table td:first-child { padding-left: 10px; }
    .landing-pricelist__table th:last-child, .landing-pricelist__table td:last-child { padding-right: 10px; }
}
.landing-text { max-width: 100%; }
.landing-text h2 { margin-top: 22px; }
.landing-text h2:first-child { margin-top: 0; }
.landing-text ul, .landing-text ol { margin: 0 0 14px; padding-left: 20px; }
.landing-text li { margin-bottom: 6px; list-style: disc; }
.landing-text a { color: var(--color-primary); }

.landing-faq__item { border-bottom: 1px solid var(--color-border); }
.landing-faq__q {
    cursor: pointer; padding: 14px 28px 14px 0; font-weight: 500; position: relative; list-style: none;
}
.landing-faq__q::-webkit-details-marker { display: none; }
.landing-faq__q::after {
    content: ''; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
    transition: transform .15s;
}
.landing-faq__item[open] .landing-faq__q::after { transform: rotate(-135deg); margin-top: -2px; }
.landing-faq__a { padding: 0 0 14px; color: var(--color-text-light); line-height: 1.6; }

.landing-cta {
    margin: 32px 0; padding: 24px; border-radius: 16px; background: var(--color-bg-light);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.landing-cta__text { margin: 0; max-width: 640px; line-height: 1.55; }
.landing-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) {
    .landing-cta { padding: 18px; }
    .landing-cta__actions, .landing-cta__actions .btn { width: 100%; }
    .landing-cta__actions .btn { justify-content: center; text-align: center; }
}

.method-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 10px; }
@media (max-width: 1024px) { .method-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .method-cards { grid-template-columns: 1fr; } }
.method-card {
    display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; min-width: 0;
    background: #fff; border: 1px solid var(--color-border); color: var(--color-text); text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
.method-card:hover { border-color: var(--color-primary); box-shadow: 0 6px 18px rgba(79, 70, 229, .08); }
.method-card__name { font-size: 1.1rem; font-weight: 600; }
.method-card__text { color: var(--color-text-light); font-size: 14px; line-height: 1.5; flex: 1; }
.method-card__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }
.method-card__price { font-weight: 600; }
.method-card__days { color: var(--color-text-light); }
.method-card__more { color: var(--color-primary); font-size: 14px; font-weight: 500; }
.method-cards__note { font-size: 13px; color: var(--color-text-light); margin: 0 0 28px; }

/* Строка «Нанесение: …» на категории и карточке товара */
.print-links { font-size: 14px; color: var(--color-text-light); margin: 0 0 12px; line-height: 1.6; }
.print-links a { color: var(--color-primary); white-space: nowrap; }
.print-links--product { margin: 8px 0 0; font-size: 13px; }
.print-links--promo a { white-space: normal; }

/* Подвал: пятая колонка «Нанесение» */
@media (min-width: 1025px) {
    .footer__inner { grid-template-columns: 1.6fr 1.2fr 1fr 1fr 1.3fr; }
}

/* ===== Примеры нанесения: галерея /primery-naneseniya, блоки на /nanesenie/* и главной ===== */
.works-filter { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; min-width: 0; }
.works-filter__label { flex: 0 0 64px; font-size: 13px; font-weight: 600; color: var(--color-text-light); text-transform: uppercase; letter-spacing: .03em; }
.works-filter__row { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.works-filter .landing-chips__item { padding: 6px 12px; }
.landing-chips__item.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.landing-chips__item.is-active .landing-chips__count { color: rgba(255,255,255,.8); }
@media (max-width: 768px) {
    /* На телефоне ряд чипов листается пальцем внутри себя — страница не уезжает вбок */
    .works-filter { flex-direction: column; gap: 6px; align-items: stretch; }
    .works-filter__label { flex: none; }
    .works-filter__row {
        flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
        margin: 0 -16px; padding: 0 16px 4px;
    }
    .works-filter__row::-webkit-scrollbar { display: none; }
    .works-filter .landing-chips__item { flex: 0 0 auto; white-space: nowrap; }
}

.works-section { margin: 18px 0 32px; scroll-margin-top: 90px; }
.works-section__found { font-size: 14px; color: var(--color-text-light); margin: 0 0 12px; }
.works-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.6rem, 1vw, 1.15rem); }
.works-grid--compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1280px) { .works-grid, .works-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1024px) { .works-grid, .works-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .works-grid, .works-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.work { margin: 0; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--color-border); border-radius: 14px; overflow: hidden; }
.work__photo { display: block; aspect-ratio: 1 / 1; background: var(--color-bg-light); overflow: hidden; cursor: zoom-in; }
.work__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.work__photo:hover img { transform: scale(1.04); }
.work__caption { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; font-size: 14px; line-height: 1.35; min-width: 0; flex: 1; }
.work__method { font-weight: 600; color: var(--color-text); }
.work__product { color: var(--color-text-light); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work__product:hover { color: var(--color-primary); }
.work__order { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; color: var(--color-primary); font-weight: 500; text-decoration: none; }
.work__order:hover { text-decoration: underline; }
.works-grid--compact .work__caption { padding: 8px 10px 10px; font-size: 13px; }
/* Короткая лента (12 фото) — ровно два ряда на широком экране, дальше лишнее прячем */
@media (max-width: 1280px) { .works-grid--compact .work:nth-child(n+9) { display: none; } }
@media (max-width: 1024px) { .works-grid--compact .work:nth-child(n+7) { display: none; } }
@media (max-width: 600px) {
    .work__caption { padding: 8px 9px 10px; font-size: 13px; }
}

.works-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.works-block__more { color: var(--color-primary); font-weight: 500; text-decoration: none; white-space: nowrap; }
.works-block__more:hover { text-decoration: underline; }
.home-works { padding-top: 0; }

/* Лайтбокс галереи — оформление .pdp-lightbox, плюс подпись со ссылкой на товар */
.works-lb .pdp-lb__stage { flex-direction: column; }
.works-lb__caption {
    position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: calc(100% - 32px);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
    padding: 10px 16px; border-radius: 12px; background: rgba(15,17,26,.72); color: #fff; font-size: 14px; text-align: center;
}
.works-lb__caption a { color: #fff; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.works-lb .pdp-lb__img { max-height: calc(92vh - 70px); }
body.works-lb-open #neurochat-root { opacity: 0; pointer-events: none; }

/* ===== О компании (/about) ===== */
.about2-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .about2-cards { grid-template-columns: 1fr; } }
.about2-card { padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--color-border); min-width: 0; }
.about2-card__icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: var(--color-bg-light); color: var(--color-primary); margin-bottom: 10px; }
.about2-card__title { font-size: 1.05rem; font-weight: 600; margin: 0 0 6px; }
.about2-card p { margin: 0; color: var(--color-text-light); line-height: 1.55; font-size: 15px; }
.about2-note { margin: 12px 0 0; color: var(--color-text-light); font-size: 14px; }

.about2-steps { list-style: none; margin: 0; padding: 0; counter-reset: about2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .about2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .about2-steps { grid-template-columns: 1fr; gap: 10px; } }
.about2-step { counter-increment: about2; position: relative; padding: 16px 16px 16px 16px; border-radius: 16px; background: var(--color-bg-light); min-width: 0; }
.about2-step::before {
    content: counter(about2); display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 10px;
}
.about2-step__title { font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
.about2-step p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--color-text-light); }
.about2-step a, .about2-list a, .about2-req a { color: var(--color-primary); }

.about2-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.about2-list li { position: relative; padding-left: 28px; line-height: 1.55; }
.about2-list li::before {
    content: ''; position: absolute; left: 4px; top: 5px; width: 12px; height: 7px;
    border-left: 2px solid var(--color-primary); border-bottom: 2px solid var(--color-primary); transform: rotate(-45deg);
}

.about2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 32px 0; }
@media (max-width: 768px) { .about2-grid { grid-template-columns: 1fr; } }
.about2-box { padding: 20px; border-radius: 16px; border: 1px solid var(--color-border); background: #fff; min-width: 0; }
.about2-req { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; margin: 0; font-size: 15px; }
.about2-req dt { color: var(--color-text-light); }
.about2-req dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .about2-req { grid-template-columns: 88px minmax(0, 1fr); font-size: 14px; } .about2-box { padding: 16px; } }
@media (max-width: 340px) { .about2-req { grid-template-columns: 1fr; gap: 2px; } .about2-req dd { margin-bottom: 8px; } }

/* Совет с книгой/курсом агентства на праздничных категориях (src/Data/event-links.php) */
.event-tip { display: flex; gap: 14px; align-items: flex-start; margin: 32px 0 8px; padding: 18px 20px;
  border-radius: 16px; background: rgba(124, 58, 237, .06); border: 1px solid rgba(124, 58, 237, .14); }
.event-tip__icon { flex: 0 0 auto; color: #7c3aed; margin-top: 2px; }
.event-tip__text { margin: 0; font-size: 15px; line-height: 1.55; color: inherit; }
.event-tip__text a { color: #6d28d9; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 480px) { .event-tip { padding: 14px 16px; gap: 10px; } .event-tip__text { font-size: 14px; } }

/* ---- Заявка на мероприятие «Авентуры» (партиал event-lead-form.php) ----
   Повтор формы av55.ru (section-upg-form): фото мероприятия, стеклянная карточка,
   телефон «пилюлей», кнопка с фирменным градиентом агентства. */
.event-lead { position: relative; isolation: isolate; overflow: hidden; margin: 20px 0 8px;
  padding: 16px; border-radius: 24px; background: #2a1840; color: #fff; }
.event-lead__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.event-lead::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 10, 35, .35), rgba(20, 10, 35, .55)); }
.event-lead__card { display: flex; flex-direction: column; gap: 20px; padding: 20px;
  border: 2px solid rgba(255, 255, 255, .9); border-radius: 22px;
  background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.event-lead__eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; opacity: .9; }
.event-lead__title { margin: 0 0 12px; font-size: 20px; line-height: 1.25; font-weight: 800;
  text-transform: uppercase; color: #fff; overflow-wrap: anywhere; }
.event-lead__text { margin: 0; font-size: 15px; line-height: 1.5; color: #fff; }
.event-lead__side { min-width: 0; }
.event-lead__form { position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.event-lead__field input { box-sizing: border-box; display: block; width: 100%; height: 54px; margin: 0; padding: 0 18px;
  border: 1px solid #fff; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff;
  font: inherit; font-size: 18px; text-align: center; outline: none; }
.event-lead__field input::placeholder { color: rgba(255, 255, 255, .92); }
.event-lead__field input:focus { background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 3px rgba(252, 188, 0, .45); }
.event-lead__field input.is-invalid { border-color: #ffb4a8; box-shadow: 0 0 0 3px rgba(255, 91, 74, .35); }
.event-lead__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; cursor: pointer; }
.event-lead__consent input { appearance: none; -webkit-appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0;
  border: 2px solid #fff; border-radius: 5px; background: transparent; cursor: pointer; display: grid; place-content: center; }
.event-lead__consent input::after { content: ""; width: 10px; height: 6px; margin-top: -2px;
  border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); transition: transform .15s; }
.event-lead__consent input:checked { background: linear-gradient(90deg, #fcbc00, #d71400); border-color: transparent; }
.event-lead__consent input:checked::after { transform: rotate(-45deg) scale(1); }
.event-lead__consent input:focus-visible { outline: 3px solid rgba(252, 188, 0, .6); outline-offset: 2px; }
.event-lead__consent.is-invalid input { border-color: #ffb4a8; box-shadow: 0 0 0 3px rgba(255, 91, 74, .35); }
.event-lead__consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.event-lead__btn { width: 100%; min-height: 54px; padding: 14px 20px; border: 0; border-radius: 999px;
  background: linear-gradient(90deg, #fcbc00 0%, #d71400 100%); color: #fff; font: inherit; font-size: 18px; font-weight: 700;
  cursor: pointer; transition: filter .15s, transform .15s; }
.event-lead__btn:hover { filter: brightness(1.06); }
.event-lead__btn:active { transform: translateY(1px); }
.event-lead__btn:disabled { opacity: .7; cursor: default; }
.event-lead__msg { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(215, 20, 0, .55);
  font-size: 14px; line-height: 1.4; }
.event-lead__done { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .16); font-size: 15px; line-height: 1.5; }
.event-lead__form[hidden], .event-lead__done[hidden], .event-lead__msg[hidden] { display: none; }
.event-lead__done svg { flex: 0 0 auto; color: #fcbc00; margin-top: 1px; }
.event-lead__done p { margin: 0; }
@media (min-width: 768px) {
  .event-lead { padding: 40px; }
  .event-lead__card { padding: 28px; }
  .event-lead__title { font-size: 24px; }
  .event-lead__text { font-size: 17px; }
}
@media (min-width: 1100px) {
  .event-lead { padding: 56px 48px; }
  .event-lead__card { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding: 32px 36px; border-radius: 30px; }
  .event-lead__content { flex: 1 1 auto; }
  .event-lead__side { flex: 0 0 380px; }
  .event-lead__title { font-size: 28px; }
  .event-lead__text { font-size: 19px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .event-lead__card { background: rgba(30, 15, 50, .72); }
}

/* ---- Большая строка поиска: hero главной и шапка /catalog (partials/big-search.php) ---- */
.big-search { position: relative; z-index: 20; width: 100%; max-width: 640px; margin: 0 0 var(--spacing-6); }
.big-search__form {
    position: relative; display: flex; align-items: center; gap: 6px;
    background: #fff; border-radius: 999px; padding: 6px 6px 6px 18px;
    border: 1.5px solid rgba(124,58,237,.22);
    box-shadow: 0 18px 40px -22px rgba(79,70,229,.55), 0 2px 6px rgba(15,23,42,.05);
    transition: border-color .2s, box-shadow .2s;
}
.big-search__form:focus-within {
    border-color: rgba(124,58,237,.65);
    box-shadow: 0 0 0 5px rgba(124,58,237,.12), 0 18px 40px -22px rgba(79,70,229,.6);
}
.big-search__icon { flex: 0 0 auto; color: #7c3aed; }
.big-search__input {
    flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 17px; color: #0f172a; padding: 12px 6px; height: 52px;
}
.big-search__input::placeholder { color: #8a93a6; }
.big-search__input::-webkit-search-cancel-button { cursor: pointer; }
.big-search__btn {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
    height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--brand-gradient); color: #fff; font: inherit; font-weight: 700; font-size: 16px;
    box-shadow: 0 10px 22px -10px rgba(124,58,237,.7);
    transition: transform .15s, box-shadow .15s;
}
.big-search__btn:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -10px rgba(124,58,237,.8); }
.big-search__btn-icon { display: none; }
.big-search__suggest { top: calc(100% + 8px); border-radius: 18px; text-align: left; }
.big-search__hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.big-search__hints-label { font-size: 13px; color: #6b7385; margin-right: 2px; }
.big-search__hint {
    font-size: 13px; line-height: 1; padding: 8px 12px; border-radius: 999px; text-decoration: none;
    color: #4c1d95; background: rgba(255,255,255,.75); border: 1px solid rgba(124,58,237,.18);
    transition: background .15s, border-color .15s;
}
.big-search__hint:hover { background: #fff; border-color: rgba(124,58,237,.45); }
.big-search--catalog { max-width: 760px; margin: var(--spacing-6) 0 0; }

@media (max-width: 600px) {
    .big-search { margin-bottom: var(--spacing-5); }
    .big-search__form { padding: 5px 5px 5px 14px; }
    .big-search__icon { width: 20px; height: 20px; }
    .big-search__input { font-size: 16px; height: 46px; padding: 10px 4px; } /* 16px — iOS не зумит поле */
    .big-search__btn { height: 46px; width: 46px; padding: 0; justify-content: center; }
    .big-search__btn-text { display: none; }
    .big-search__btn-icon { display: block; }
    .big-search__hints { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
        margin-right: -16px; padding-right: 16px; -webkit-overflow-scrolling: touch; }
    .big-search__hints::-webkit-scrollbar { display: none; }
    .big-search__hint { white-space: nowrap; flex: 0 0 auto; }
    .big-search__hints-label { flex: 0 0 auto; }
}
/* у .hero overflow: hidden (световые пятна) — пока открыты подсказки, не обрезаем выпадашку */
.hero:has(.big-search__suggest.active) { overflow: visible; }
/* грид-колонка hero не должна растягиваться по ширине ленты подсказок (nowrap на мобильном) */
.hero__inner > * { min-width: 0; }
.big-search, .big-search__hints { min-width: 0; max-width: 100%; }
/* у поля внутри «пилюли» — без собственной рамки фокуса, фокус показывает сама форма */
.big-search__input:focus, .big-search__input:focus-visible { outline: none; box-shadow: none; border: 0; background: transparent; }
/* /catalog: заголовок по центру — и поиск по центру */
.big-search--catalog { margin: var(--spacing-6) auto 0; }
.big-search--catalog .big-search__hints { justify-content: center; }
@media (max-width: 600px) { .big-search--catalog .big-search__hints { justify-content: flex-start; } }

/* ── Мобильная выдача: 2 карточки в ряд, как на маркетплейсах (просьба Михаила 01.10.2026) ──
   app.css на ≤480px ставит .products-grid в 1 колонку !important — перебиваем для всех листингов:
   категории, поиск, /catalog?…, посадочные. Карточка компактнее: цена крупно, название 2 строки мелко,
   «быстрый просмотр» прячем (не влезает рядом с −/+ и корзиной, карточка и так открывается тапом). */
@media (max-width: 600px) {
    .products-grid,
    .catalog-main .products-grid,
    .search-page .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
    .products-grid .product-card { border-radius: 14px; }
    .products-grid .product-card__content { padding: 8px 10px 4px; }
    .products-grid .product-card__title { font-size: 13px; line-height: 1.35; min-height: 2.7em; margin-bottom: 2px; }
    .products-grid .product-card__code { font-size: 11px; margin-bottom: 4px; }
    .products-grid .product-card__price { font-size: 17px; font-weight: 800; }
    .products-grid .product-card__price-old { font-size: 11px; }
    .products-grid .product-card__stock { font-size: 11px; }
    .products-grid .product-card__stock .icon { width: 12px; height: 12px; }
    .products-grid .product-card__badge { font-size: 10px; padding: 3px 7px; }
    .products-grid .product-card__actions { padding: 0 8px 8px; gap: 5px; }
    .products-grid .product-card__quick-view { display: none; }
    .products-grid .product-card__qty-btn { flex-basis: 24px; width: 24px; min-width: 24px; height: 34px; }
    .products-grid .product-card__qty-input { height: 34px; font-size: 13px; }
    .products-grid .product-card__actions .btn { height: 34px; min-width: 40px; flex: 1 1 auto; }
}

/* ========================================================
   Мобильная навигация как в приложении маркетплейса (01.10.2026, пример — Ozon)
   ≤768px: сверху липкая шапка = логотип + строка поиска (при прокрутке остаётся только поиск),
   снизу — нижнее меню (Главная, Каталог, Корзина, Кабинет, Ещё). Над меню — плашка минзаказа,
   над ними — чат (виджет читает --nc-bottom, его выставляет JS в layouts/main.php).
   На карточке товара нижнего меню нет — снизу свой блок покупки (.product-buybox).
======================================================== */
.tabbar { display: none; }
.product-card__price-disc { display: none; } /* «−N%» — только в мобильной выдаче */
.mobile-menu__link--btn {
    width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
    font-family: inherit; font-size: 18px; line-height: 1.6; color: var(--color-text, #0f172a);
}

@media (max-width: 768px) {
    :root { --tabbar-h: 56px; }

    /* ---- Шапка: одна строка, 57px ---- */
    .header__main { position: relative; padding: 8px 0; }
    .header__main-inner { gap: 8px; }
    .header__tagline,
    .header__catalog-btn,
    .header__actions,
    .header__mobile-btn { display: none; }
    .header__logo {
        order: 1; display: block; flex: 0 0 auto; max-width: 150px; overflow: hidden;
        transition: max-width .25s ease, opacity .2s ease, margin .25s ease;
    }
    .header__logo img { height: 28px; }
    /* прокрутили — логотип уезжает, поиск на всю ширину (высота шапки не меняется) */
    .header.is-scrolled .header__logo { max-width: 0; opacity: 0; margin-right: -8px; }

    /* строка поиска «пилюлей», лупа слева */
    .header__search {
        order: 2; display: flex; align-items: center; flex: 1 1 auto; min-width: 0;
        position: static; margin: 0; height: 40px; border-radius: 999px;
        background: #f1f2f6; border: 1.5px solid transparent;
        transition: border-color .15s, background .15s, box-shadow .15s;
    }
    .header__search:focus-within {
        background: #fff; border-color: rgba(124,58,237,.55);
        box-shadow: 0 0 0 3px rgba(124,58,237,.12);
    }
    .header__search button {
        order: -1; position: static; transform: none; flex: 0 0 auto;
        display: flex; align-items: center; justify-content: center;
        width: 36px; height: 100%; padding: 0 0 0 6px; color: #6b7280;
        background: none; border: 0;
    }
    .header__search button .icon { width: 20px; height: 20px; }
    .header .header__search input,
    .header .header__search input:focus {
        flex: 1 1 auto; min-width: 0; width: auto; height: 100%;
        padding: 0 12px 0 4px; margin: 0; border: 0; border-radius: 0 999px 999px 0;
        background: transparent; box-shadow: none; outline: none;
        font-size: 16px; /* iOS не зумит поле */
        -webkit-appearance: none; appearance: none;
    }
    .header__search input::placeholder { color: #8a93a6; }
    /* подсказки — на всю ширину экрана под шапкой (от .header__main), не выше нижнего меню */
    .header__search .search-suggest {
        top: calc(100% + 4px); left: 8px; right: 8px; border-radius: 16px;
        max-height: calc(100vh - var(--header-h, 57px) - var(--tabbar-h) - 40px);
    }

    /* карточка товара: нижнего меню нет — в шапке остаются корзина и бургер */
    body.page-product .header__actions { display: flex; order: 3; margin-left: 0; gap: 4px; }
    body.page-product .header .header__account,
    body.page-product .header__callback-btn { display: none !important; }
    body.page-product .header__mobile-btn { display: flex; order: 4; }

    /* ---- Мобильное меню («Ещё»): под шапкой, поиск остаётся виден ---- */
    .mobile-menu {
        top: var(--header-h, 57px); padding-top: 8px;
        padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px);
    }
    .mobile-menu__search { display: none; }
    /* body.no-scroll (overflow:hidden) делает body scroll-контейнером — sticky-шапка уезжает вверх
       вместе с прокруткой страницы. Пока меню открыто, шапку фиксируем — поиск виден над меню. */
    .header.mobile-menu-open { position: fixed; top: 0; left: 0; right: 0; }

    /* ---- Нижнее меню ---- */
    .tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001;
        height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
        padding: 0 4px env(safe-area-inset-bottom, 0px);
        background: rgba(255,255,255,.97);
        -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
        border-top: 1px solid rgba(15,23,42,.08);
        box-shadow: 0 -4px 18px rgba(15,23,42,.06);
    }
    .tabbar__item {
        flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 3px; padding: 6px 2px 5px; margin: 0; border: 0; background: none; cursor: pointer;
        color: #6b7280; font: inherit; font-size: 10.5px; font-weight: 500; line-height: 1.1;
        text-decoration: none; -webkit-tap-highlight-color: transparent;
    }
    .tabbar__item svg { width: 24px; height: 24px; flex: 0 0 auto; }
    .tabbar__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .tabbar__item.is-active,
    .tabbar__item.is-open { color: #6d28d9; font-weight: 600; }
    .tabbar__item.is-active svg,
    .tabbar__item.is-open svg { stroke-width: 2.3; }
    .tabbar__item:active { color: #6d28d9; }
    .tabbar__icon { position: relative; display: inline-flex; }
    .tabbar__badge {
        position: absolute; top: -5px; left: 13px; min-width: 18px; height: 18px; padding: 0 5px;
        box-sizing: border-box; border-radius: 9px; border: 2px solid #fff;
        background: #6d28d9; color: #fff; font-size: 10px; font-weight: 700; line-height: 14px;
        display: flex; align-items: center; justify-content: center;
    }
    .tabbar__badge[hidden] { display: none; }
    body.page-product .tabbar { display: none; }
    /* открыта модалка / фильтры — меню и плашку прячем; открыто «Ещё» — меню остаётся (закрыть тем же пунктом) */
    body.no-scroll .tabbar { display: none; }
    body.no-scroll:has(.header.mobile-menu-open) .tabbar { display: flex; }
    body.no-scroll .min-order-banner { display: none; }
    .header.mobile-menu-open ~ #neurochat-root { opacity: 0; pointer-events: none; }
    /* открыты подсказки поиска — пузырь чата не лежит поверх списка */
    body:has(.header__search .search-suggest.active) #neurochat-root { opacity: 0; pointer-events: none; }

    /* контент не прячется под барами: меню + плашка (JS пишет точную высоту) */
    body.has-tabbar:not(.page-product) {
        padding-bottom: var(--bottom-bars-h, calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)));
    }

    /* ---- Плашка минзаказа: над нижним меню, компактнее ---- */
    body.has-tabbar:not(.page-product) .min-order-banner {
        bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -2px 12px rgba(0,0,0,.12);
    }
    /* body — перебить инлайн-стили плашки в layouts/main.php (они идут позже этого файла) */
    body .min-order-banner { padding: 8px 46px 8px 14px; }
    body .min-order-banner__content { font-size: 12.5px; line-height: 1.35; gap: 8px; }
    body .min-order-banner__icon { width: 18px; height: 18px; }
    body .min-order-banner__close { right: 8px; width: 30px; height: 30px; }
}
@media (max-width: 400px) {
    body .min-order-banner__icon { display: none; }
    body .min-order-banner { padding: 7px 40px 7px 12px; }
    body .min-order-banner__content { font-size: 12px; line-height: 1.3; }
    body.page-product .header__logo { display: none; } /* поиск + корзина + бургер на узком экране */
}

/* ---- Выдача на мобильном в стиле маркетплейса: цена сверху, потом название, потом наличие/артикул ---- */
@media (max-width: 600px) {
    .products-grid .product-card__content { display: flex; flex-direction: column; }
    .products-grid .product-card__footer { display: contents; }
    .products-grid .product-card__price {
        order: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 5px;
        white-space: normal; margin: 0 0 4px; line-height: 1.15;
    }
    .products-grid .product-card__price-value { order: 1; }
    .products-grid .product-card__price-currency { order: 2; margin-left: -2px; }
    /* старая цена и «−N%» — всегда второй строкой (перенос строки флекса псевдоэлементом) */
    .products-grid .product-card__price:has(.product-card__price-old)::after {
        content: ""; order: 3; flex-basis: 100%; height: 0;
    }
    .products-grid .product-card__price-old {
        order: 4; font-size: 11.5px; font-weight: 500; margin: 0; white-space: nowrap;
    }
    /* цена залита градиентом (text-fill transparent) — у бейджа свой цвет текста */
    .products-grid .product-card__price-disc {
        order: 5; display: inline-block; padding: 1px 5px; border-radius: 6px;
        background: #ffe4ea; color: #e11d48; -webkit-text-fill-color: #e11d48;
        font-size: 11px; font-weight: 700; line-height: 1.35; white-space: nowrap;
    }
    .products-grid .product-card__price--request { font-size: 14px; }
    .products-grid .product-card__title { order: 2; }
    .products-grid .product-card__stock { order: 3; margin: 0 0 2px; }
    .products-grid .product-card__code { order: 4; margin: 0 0 2px; color: #9aa1b1; }
}

/* ── Футер на мобильном: компактно, 2 равные колонки (просьба Михаила 01.10.2026) ──
   Было 1344px в одну колонку. «О компании» — на всю ширину сверху, ниже сетка 2×2:
   Каталог | Нанесение, Информация | Контакты — строки выровнены, колонки равной ширины. */
@media (max-width: 768px) {
    .footer { padding-top: 28px; }
    .footer .footer__inner {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas: "about about" "cat print" "info contacts";
        gap: 0 16px;
    }
    .footer .footer__col--about    { grid-area: about; }
    .footer .footer__col--catalog  { grid-area: cat; }
    .footer .footer__col--print    { grid-area: print; }
    .footer .footer__col--contacts { grid-area: contacts; }
    .footer .footer__col:not([class*="footer__col--"]) { grid-area: info; }
    .footer .footer__col {
        display: block;
        width: auto;
        margin: 0 0 18px;
        padding: 0;
        min-width: 0;
    }
    .footer .footer__col--about {
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .footer .footer__about { font-size: 13px; line-height: 1.45; margin: 8px 0 10px; }
    .footer .footer__title { font-size: 14px; margin: 0 0 8px; }
    .footer .footer__menu { gap: 6px; }
    .footer__col--catalog .footer__menu { grid-template-columns: 1fr; gap: 6px; }
    .footer .footer__menu a,
    .footer .footer__contacts,
    .footer .footer__contacts a,
    .footer .footer__worktime { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
    .footer .footer__phone { font-size: 14px; font-weight: 700; }
    .footer .footer__bottom { padding: 14px 0; gap: 8px; font-size: 12px; }
}

/* Подсказки поиска: последняя строка — «Все результаты по …»; на телефоне лишние строки
   обрезаются JS (fitSuggestions), чтобы список не уходил под нижнее меню и за экран. */
.search-suggest__all {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 12px 16px; font-size: 14px; font-weight: 600; text-decoration: none;
    color: #6d28d9; border-top: 1px solid var(--color-border, #e5e7eb); background: rgba(124,58,237,.04);
}
.search-suggest__all:hover { background: rgba(124,58,237,.09); }
/* пузырь/кнопка чата не лезут поверх подсказок большого поиска (как у поиска в шапке) */
body:has(.big-search .search-suggest.active) #neurochat-root { opacity: 0; pointer-events: none; }

/* Телефон с фильтром (24.10.2026): подпись «заказы от … ₽ · часы», на мобильном вместо звонка — чат */
.header__phone-note {
    display: flex;
    align-items: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-text);
    opacity: .75;
    white-space: nowrap;
    margin-left: -14px;
}
.chat-mobile { display: none !important; }
.mobile-menu__chat { width: 100%; justify-content: center; }
.mobile-menu__phone--text { display: flex; flex-direction: column; gap: 2px; font-size: var(--font-size-lg); color: var(--color-text); }
.mobile-menu__phone--text small { font-size: 12px; font-weight: 400; color: var(--color-text-light); }
@media (max-width: 1100px) {
    .header__top .header__email { display: none; } /* подпись к телефону важнее, почта есть в подвале */
    .header__top .header__nav-top { gap: 14px; font-size: 13px; }
}
@media (max-width: 960px) {
    .header__phone-note { display: none; }
}
@media (max-width: 768px) {
    .tel-desktop { display: none !important; }
    .chat-mobile { display: inline-flex !important; }
    span.chat-mobile, p.chat-mobile { display: block !important; }
    .cta__phone .chat-mobile + .chat-mobile, .cart-help .chat-mobile + .chat-mobile { margin-top: 8px; }
    .footer__contacts .btn.chat-mobile { margin: 6px 0; align-self: flex-start; max-width: 100%; padding: 10px 16px; font-size: 14px; }
}

/* ───────────────────────────────────────────────────────────────────────────
   Индикатор поиска (26.11.2026): при отправке формы сразу видно, что поиск
   пошёл — полоса сверху и панель с крутящимся кольцом. Страница результатов
   грузится заново, поэтому панель живёт на старой странице до перерисовки.
   ─────────────────────────────────────────────────────────────────────────── */
.srch-bar {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999;
    background: rgba(214, 31, 38, .15); overflow: hidden; pointer-events: none;
}
.srch-bar::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
    background: linear-gradient(90deg, transparent, #d61f26 45%, #ff6a70 60%, transparent);
    animation: srchBar 1.05s linear infinite;
}
@keyframes srchBar { from { left: -40%; } to { left: 100%; } }

.srch-panel {
    position: fixed; z-index: 9998; top: 84px; right: 18px; width: 320px; max-width: calc(100vw - 32px);
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; border-radius: 14px; background: #fff;
    border: 1px solid #ececf2; box-shadow: 0 14px 40px rgba(18, 20, 32, .16);
    font-size: 14px; line-height: 1.35; color: #15161d;
    animation: srchIn .18s ease-out;
}
@keyframes srchIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.srch-panel__ring {
    flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
    border: 2.5px solid rgba(214, 31, 38, .22); border-top-color: #d61f26;
    animation: srchSpin .7s linear infinite;
}
@keyframes srchSpin { to { transform: rotate(360deg); } }
.srch-panel__title { font-weight: 600; }
.srch-panel__q { color: #d61f26; }
.srch-panel__hint { margin-top: 3px; color: #6c6f80; font-size: 12.5px; }

@media (max-width: 768px) {
    /* Сразу под шапкой: внизу живут меню-таббар и плашка минимального заказа,
       панель ложилась поверх их текста (26.11.2026) */
    .srch-panel {
        top: calc(var(--header-h, 57px) + 8px); bottom: auto;
        left: 8px; right: 8px; width: auto; max-width: none;
        border-radius: 14px; padding: 12px 14px;
        box-shadow: 0 12px 30px rgba(18, 20, 32, .18);
    }
}

/* Крутилка прямо в строке поиска, пока грузятся подсказки */
.search-loading { position: relative; }
.search-loading::after {
    content: ''; position: absolute; top: 50%; right: 46px; width: 15px; height: 15px;
    margin-top: -7.5px; border-radius: 50%; border: 2px solid rgba(214, 31, 38, .25);
    border-top-color: #d61f26; animation: srchSpin .7s linear infinite; pointer-events: none;
}
