/**
 * Базовые стили сайта (без Tailwind).
 * Витрина: ecommerce-стиль (белый фон, синий акцент).
 * Палитра AIST TRADE: синий #01A4EF; красный #F25022 — скидки.
 */

:root {
    --ocean-50: #e8f7fd;
    --ocean-100: #d1effb;
    --ocean-400: #33b8ef;
    --ocean-500: #01A4EF;
    --ocean-600: #0183bf;
    --ocean-700: #01628f;
    --ocean-ink: #1e293b;
    --aist-red: #F25022;
    --aist-red-600: #c9401b;
    --surface: #ffffff;
    --muted: #64748b;
    --shop-bg: #f4f6f8;
    --shop-border: #e2e8f0;
    --shop-radius: 0.625rem;
}

/* —— Shop UI (публичная витрина) —— */
.shop-page {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1rem 2rem;
    min-width: 0;
}

@media (min-width: 640px) {
    .shop-page {
        padding: 1.25rem 1.5rem 2.5rem;
    }
}

.shop-card {
    background: var(--surface);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    border: 1px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    cursor: pointer;
    text-decoration: none;
}

.shop-btn--primary {
    background: var(--ocean-500);
    color: #fff;
    border-color: var(--ocean-500);
}

.shop-btn--primary:hover {
    background: var(--ocean-600);
    border-color: var(--ocean-600);
    color: #fff;
}

.shop-btn--ghost {
    background: #fff;
    color: var(--ocean-ink);
    border-color: var(--shop-border);
}

.shop-btn--ghost:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--ocean-ink);
}

.shop-btn--block {
    width: 100%;
}

.shop-btn--sm {
    min-height: 2.25rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    min-width: 0;
}

@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

.shop-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--muted);
}

.shop-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.shop-breadcrumb a:hover {
    color: var(--ocean-600);
}

.shop-breadcrumb__sep {
    color: #94a3b8;
    user-select: none;
}

.shop-breadcrumb__current {
    color: var(--ocean-ink);
    font-weight: 600;
}

.shop-layout {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
}

@media (min-width: 1024px) {
    .shop-layout--sidebar {
        grid-template-columns: 15.5rem minmax(0, 1fr);
        gap: 1.5rem;
        align-items: start;
    }
}

.shop-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .shop-sidebar {
        display: block;
        position: sticky;
        top: 5.5rem;
    }
}

.shop-sidebar__card {
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    padding: 1rem;
}

.shop-sidebar__title {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.shop-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-product-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.18);
}

.shop-product-card__media {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
    overflow: hidden;
}

.shop-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.shop-product-card:hover .shop-product-card__media img {
    transform: scale(1.04);
}

.shop-product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #cbd5e1;
    font-size: 1.75rem;
}

.shop-product-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem 0.85rem;
    min-width: 0;
}

.shop-product-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 650;
    line-height: 1.35;
    color: var(--ocean-ink);
    text-decoration: none;
}

@media (min-width: 640px) {
    .shop-product-card__title {
        font-size: 0.875rem;
    }
}

.shop-product-card__title:hover {
    color: var(--ocean-600);
}

.shop-product-card__meta {
    margin: 0;
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-product-card__cta {
    margin-top: auto;
    padding-top: 0.35rem;
}

.shop-product-card--recommend {
    border-color: #fde68a;
}

.shop-product-card--recommend:hover {
    border-color: #fbbf24;
}

.shop-header-search {
    display: flex;
    flex: 1;
    min-width: 0;
    max-width: 40rem;
    border: 1px solid var(--shop-border);
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
}

.shop-header-search:focus-within {
    border-color: var(--ocean-500);
    box-shadow: 0 0 0 3px rgba(1, 164, 239, 0.15);
}

.shop-header-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    color: var(--ocean-ink);
    background: transparent;
}

.shop-header-search button {
    flex-shrink: 0;
    border: 0;
    background: var(--ocean-500);
    color: #fff;
    padding: 0 1rem;
    font-weight: 700;
    font-size: 0.8125rem;
    cursor: pointer;
}

.shop-header-search button:hover {
    background: var(--ocean-600);
}

.shop-catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    background: var(--ocean-500);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    border: 0;
    cursor: pointer;
}

.shop-catalog-btn:hover {
    background: var(--ocean-600);
    color: #fff;
}

.shop-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.shop-header-icon {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 3.25rem;
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    color: #475569;
    font-size: 0.65rem;
    font-weight: 650;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.shop-header-icon:hover {
    background: #f1f5f9;
    color: var(--ocean-700);
}

.shop-header-icon i {
    font-size: 1.1rem;
    color: var(--ocean-500);
}

.shop-header-icon__badge {
    position: absolute;
    top: 0.15rem;
    right: 0.35rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: var(--ocean-500);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.1rem;
    text-align: center;
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Баннеры на главной (над блоком «Торговые точки») */
.home-promo {
    --home-promo-gap: 0.65rem;
    --home-promo-radius: 0.75rem;
    --home-promo-ar-w: 21;
    --home-promo-ar-h: 9;
    container-name: home-promo;
    container-type: inline-size;
    position: relative;
    margin: 0 0 1.25rem;
    padding: 0;
}

.home-promo__scroller {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0;
}

.home-promo__scroller::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.home-promo__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--home-promo-gap);
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
}

.home-promo__item {
    flex: 0 0 100cqi;
    width: 100cqi;
    max-width: 100cqi;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-width: 0;
}

@supports not (width: 1cqi) {
    .home-promo__item {
        flex-basis: 100%;
        width: 100%;
        max-width: 100%;
    }
}

.home-promo__card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--home-promo-radius);
    width: 100%;
    height: auto;
    aspect-ratio: var(--home-promo-ar-w) / var(--home-promo-ar-h);
    min-height: 9.5rem;
    background: #01A4EF;
    border: 1px solid var(--shop-border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}

.home-promo__card:hover {
    box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.18);
}

.home-promo__card:focus-visible {
    outline: 2px solid var(--ocean-500);
    outline-offset: 3px;
}

@media (min-width: 640px) {
    .home-promo__card {
        aspect-ratio: 21 / 8.5;
        min-height: 11rem;
    }
}

.home-promo__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-promo__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.1rem 0.95rem;
    background: linear-gradient(180deg, transparent, rgba(8, 15, 25, 0.78));
    color: #fff;
    font-size: clamp(1.15rem, 2.85cqi, 1.4rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.25;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.home-promo__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-52%);
    width: 2.65rem;
    height: 2.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 0.85rem;
    box-shadow: 0 10px 28px -12px rgba(15, 23, 42, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.home-promo__nav:hover:not(:disabled) {
    transform: translateY(-52%) scale(1.05);
    box-shadow: 0 14px 32px -12px rgba(15, 23, 42, 0.45);
}

.home-promo__nav:disabled {
    opacity: 0.28;
    cursor: default;
    box-shadow: none;
}

.home-promo__nav--prev {
    left: 0.45rem;
}

.home-promo__nav--next {
    right: 0.45rem;
}

.home-promo:not(.home-promo--scrollable):not(:has(.home-promo__item:nth-child(2))) .home-promo__nav {
    display: none;
}

/* Мобилка: без стрелок — свайп пальцем */
@media (max-width: 639px) {
    .home-promo__nav {
        display: none !important;
    }
}

@media (min-width: 640px) {
    .home-promo {
        --home-promo-gap: 0.85rem;
        --home-promo-radius: 0.75rem;
        margin-bottom: 1.5rem;
        padding: 0;
    }

    .home-promo__nav {
        width: 3rem;
        height: 3rem;
    }

    .home-promo__nav--prev {
        left: 0.35rem;
    }

    .home-promo__nav--next {
        right: 0.35rem;
    }
}

@media (min-width: 1024px) {
    .home-promo {
        --home-promo-radius: 1.4rem;
    }
}

/* Шаблонные баннеры — современные геометрические макеты */
.home-promo__tpl {
    --tp-bg: #01A4EF;
    --tp-title: #fff;
    --tp-text: #f0fdfa;
    --tp-accent: #ffffff;
    --tp-btn-text: #115e59;
    background: var(--tp-bg);
    color: var(--tp-text);
    isolation: isolate;
}

.home-promo__tpl-inner {
    display: grid;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.home-promo__tpl-media {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: color-mix(in srgb, var(--tp-bg) 82%, #000 18%);
    z-index: 1;
}

.home-promo__tpl-media img,
.home-promo__tpl-media-ph {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-promo__tpl-media-ph {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 55%),
        repeating-linear-gradient(
            -28deg,
            rgba(255, 255, 255, 0.12) 0 8px,
            transparent 8px 16px
        ),
        color-mix(in srgb, var(--tp-bg) 78%, #000 22%);
}

.home-promo__tpl-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.85rem 1.1rem;
    position: relative;
    z-index: 2;
}

.home-promo__tpl-title {
    margin: 0;
    color: var(--tp-title);
    font-size: clamp(1.15rem, 3.1cqi, 1.85rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.08;
    text-wrap: balance;
    text-transform: uppercase;
}

.home-promo__tpl--tone-dark .home-promo__tpl-title {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.home-promo__tpl-text {
    margin: 0;
    color: var(--tp-text);
    font-size: clamp(0.78rem, 1.7cqi, 1rem);
    font-weight: 600;
    line-height: 1.35;
    opacity: 0.95;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.home-promo__tpl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: 0.35rem;
    padding: 0.48rem 1.05rem;
    border-radius: 999px;
    background: var(--tp-accent);
    color: var(--tp-btn-text);
    font-size: clamp(0.78rem, 1.55cqi, 0.95rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease, filter 0.15s ease;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.home-promo__tpl-btn:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.04);
}

.home-promo__tpl-badge {
    display: none;
}

/* ——— split: шеврон / диагональ, фото слева ——— */
.home-promo__tpl--split .home-promo__tpl-inner {
    grid-template-columns: 1.15fr 1fr;
}

.home-promo__tpl--split .home-promo__tpl-media {
    clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
    filter: saturate(1.08) contrast(1.05);
}

.home-promo__tpl--split .home-promo__tpl-inner::before {
    content: "";
    position: absolute;
    left: 48%;
    top: -8%;
    bottom: -8%;
    width: 14%;
    background: color-mix(in srgb, var(--tp-accent) 88%, #fff 12%);
    clip-path: polygon(55% 0, 100% 0, 45% 100%, 0 100%);
    z-index: 3;
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.home-promo__tpl--split .home-promo__tpl-copy {
    padding-left: 0.35rem;
    padding-right: 1.15rem;
}

.home-promo__tpl--split .home-promo__tpl-copy::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 18%;
    width: 2.4rem;
    height: 3px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tp-accent) 70%, transparent);
}

/* ——— overlay: фото + геометрические слои ——— */
.home-promo__tpl--overlay .home-promo__tpl-inner {
    display: block;
}

.home-promo__tpl--overlay .home-promo__tpl-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-promo__tpl--overlay .home-promo__tpl-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, var(--tp-bg) 0%, color-mix(in srgb, var(--tp-bg) 78%, transparent) 42%, transparent 68%),
        linear-gradient(200deg, color-mix(in srgb, #0f172a 35%, transparent), transparent 45%);
}

.home-promo__tpl--overlay .home-promo__tpl-inner::before,
.home-promo__tpl--overlay .home-promo__tpl-inner::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.home-promo__tpl--overlay .home-promo__tpl-inner::before {
    right: 6%;
    top: -18%;
    width: 42%;
    height: 70%;
    background: color-mix(in srgb, var(--tp-accent) 55%, transparent);
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 78%);
    opacity: 0.55;
}

.home-promo__tpl--overlay .home-promo__tpl-inner::after {
    left: 4%;
    bottom: 10%;
    width: 3.2rem;
    height: 3.2rem;
    border: 2px solid color-mix(in srgb, var(--tp-accent) 70%, transparent);
    border-radius: 999px;
    background: repeating-linear-gradient(
        -35deg,
        color-mix(in srgb, var(--tp-accent) 55%, transparent) 0 2px,
        transparent 2px 6px
    );
    opacity: 0.7;
}

.home-promo__tpl--overlay .home-promo__tpl-copy {
    width: min(58%, 18rem);
    height: 100%;
    padding: 0.9rem 1.1rem;
}

.home-promo__tpl--overlay .home-promo__tpl-title,
.home-promo__tpl--overlay .home-promo__tpl-text {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* ——— spotlight: ромб / diamond frame ——— */
.home-promo__tpl--spotlight .home-promo__tpl-inner {
    grid-template-columns: 0.95fr 1.15fr;
    align-items: center;
    padding: 0.55rem 0.85rem 0.55rem 0.45rem;
    gap: 0.35rem;
}

.home-promo__tpl--spotlight .home-promo__tpl-inner::before {
    content: "";
    position: absolute;
    right: -6%;
    top: -20%;
    width: 38%;
    height: 70%;
    background: color-mix(in srgb, var(--tp-accent) 45%, transparent);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 55%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.home-promo__tpl--spotlight .home-promo__tpl-media {
    width: min(78%, 9.5rem);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 1.1rem;
    transform: rotate(45deg);
    border: 3px solid color-mix(in srgb, var(--tp-accent) 85%, #fff 15%);
    box-shadow:
        0 14px 32px -12px rgba(0, 0, 0, 0.45),
        0 0 0 6px color-mix(in srgb, var(--tp-bg) 70%, transparent);
    z-index: 2;
}

.home-promo__tpl--spotlight .home-promo__tpl-media img,
.home-promo__tpl--spotlight .home-promo__tpl-media-ph {
    transform: rotate(-45deg) scale(1.42);
    transform-origin: center;
}

.home-promo__tpl--tone-light.home-promo__tpl--spotlight .home-promo__tpl-media {
    border-color: color-mix(in srgb, var(--tp-title) 55%, #fff);
}

.home-promo__tpl--spotlight .home-promo__tpl-copy {
    padding: 0.25rem 0.25rem 0.25rem 0.15rem;
}

.home-promo__tpl--spotlight .home-promo__tpl-copy::after {
    content: "";
    position: absolute;
    right: 0.4rem;
    bottom: 12%;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--tp-accent);
    transform: rotate(45deg);
    border-radius: 0.25rem;
    opacity: 0.85;
    pointer-events: none;
}

/* ——— editorial: светлая панель + наклонный кадр ——— */
.home-promo__tpl--editorial .home-promo__tpl-inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    background:
        radial-gradient(circle at 12% 80%, color-mix(in srgb, var(--tp-accent) 22%, transparent), transparent 42%),
        var(--tp-bg);
}

.home-promo__tpl--editorial .home-promo__tpl-copy {
    padding: 0.85rem 1rem 0.85rem 1.15rem;
}

.home-promo__tpl--editorial .home-promo__tpl-copy::before {
    content: "";
    display: block;
    width: 2.75rem;
    height: 3px;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    background: var(--tp-accent);
}

.home-promo__tpl--editorial .home-promo__tpl-title {
    font-size: clamp(1.25rem, 3.4cqi, 2rem);
    letter-spacing: -0.035em;
}

.home-promo__tpl--editorial .home-promo__tpl-media {
    margin: 0.55rem 0.75rem 0.55rem 0.15rem;
    border-radius: 1.15rem;
    transform: rotate(3.5deg);
    box-shadow:
        0 16px 34px -16px rgba(0, 0, 0, 0.45),
        0 0 0 4px color-mix(in srgb, #fff 55%, transparent);
    overflow: hidden;
}

.home-promo__tpl--editorial .home-promo__tpl-inner::after {
    content: "";
    position: absolute;
    right: 1.1rem;
    bottom: 0.55rem;
    width: 2.1rem;
    height: 2.1rem;
    border: 2px solid color-mix(in srgb, var(--tp-accent) 80%, #fff);
    transform: rotate(45deg);
    border-radius: 0.35rem;
    z-index: 3;
    pointer-events: none;
    opacity: 0.9;
}

/* ——— ribbon: диагональные слои / tech stripes ——— */
.home-promo__tpl--ribbon .home-promo__tpl-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
}

.home-promo__tpl--ribbon .home-promo__tpl-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(118deg, transparent 42%, color-mix(in srgb, #fff 55%, transparent) 42.5%, color-mix(in srgb, #fff 55%, transparent) 46%, transparent 46.5%),
        linear-gradient(118deg, transparent 48%, color-mix(in srgb, var(--tp-accent) 40%, transparent) 48.5%, color-mix(in srgb, var(--tp-accent) 40%, transparent) 58%, transparent 58.5%),
        linear-gradient(118deg, var(--tp-bg) 54%, color-mix(in srgb, var(--tp-bg) 55%, #fff 45%) 54%);
    opacity: 0.95;
}

.home-promo__tpl--ribbon .home-promo__tpl-copy {
    z-index: 2;
    padding: 0.8rem 0.85rem 0.8rem 1.15rem;
}

.home-promo__tpl--ribbon .home-promo__tpl-copy::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 0.7rem;
    width: 1.6rem;
    height: 0.55rem;
    background: repeating-linear-gradient(
        90deg,
        var(--tp-accent) 0 3px,
        transparent 3px 6px
    );
    opacity: 0.85;
}

.home-promo__tpl--ribbon .home-promo__tpl-media {
    z-index: 1;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    filter: saturate(1.12) contrast(1.04);
}

.home-promo__tpl--ribbon .home-promo__tpl-inner::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: 10%;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, #fff 70%, transparent);
    background: repeating-linear-gradient(
        -40deg,
        color-mix(in srgb, #fff 45%, transparent) 0 2px,
        transparent 2px 5px
    );
    z-index: 3;
    pointer-events: none;
    opacity: 0.75;
}

/* ——— stack: компактный «curve» кадр справа ——— */
.home-promo__tpl--stack .home-promo__tpl-inner {
    grid-template-columns: 1.05fr 1fr;
    grid-template-rows: none;
}

.home-promo__tpl--stack .home-promo__tpl-media {
    margin: 0.4rem;
    border-radius: 1.35rem 0.55rem 1.35rem 0.55rem;
    box-shadow:
        0 14px 28px -14px rgba(0, 0, 0, 0.4),
        inset 0 0 0 3px color-mix(in srgb, #fff 35%, transparent);
    transform: rotate(-2deg);
}

.home-promo__tpl--stack .home-promo__tpl-inner::before {
    content: "";
    position: absolute;
    left: -4%;
    bottom: -25%;
    width: 42%;
    height: 70%;
    background: color-mix(in srgb, var(--tp-accent) 28%, transparent);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.home-promo__tpl--stack .home-promo__tpl-copy {
    z-index: 2;
    padding: 0.75rem 0.65rem 0.75rem 1.1rem;
}

.home-promo__tpl--stack .home-promo__tpl-text {
    -webkit-line-clamp: 2;
}

.home-promo__tpl--stack .home-promo__tpl-copy::before {
    content: "";
    display: block;
    width: 2.75rem;
    height: 3px;
    margin-bottom: 0.35rem;
    border-radius: 999px;
    background: var(--tp-accent);
}

/* Мобилка: длинный текст скрыт, «?» в углу */
.home-promo__tpl-tip {
    display: none;
}

.home-promo__tpl-tip-pop {
    display: none;
}

@media (max-width: 639px) {
    .home-promo__tpl-text {
        display: none !important;
    }

    .home-promo__tpl-tip {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 0.45rem;
        right: 0.45rem;
        z-index: 6;
        width: 1.23rem;
        height: 1.23rem;
        padding: 0;
        border: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.96);
        color: #0f172a;
        font-size: 0.62rem;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0;
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.55) inset,
            0 8px 16px -10px rgba(15, 23, 42, 0.55);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    }

    .home-promo__tpl--tone-light .home-promo__tpl-tip {
        background: rgba(15, 23, 42, 0.9);
        color: #fff;
        box-shadow: 0 10px 22px -12px rgba(15, 23, 42, 0.5);
    }

    .home-promo__tpl-tip:active {
        transform: scale(0.96);
    }

    .home-promo__tpl-tip[aria-expanded="true"] {
        background: #fff;
        color: #0f172a;
        box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 12px 24px -12px rgba(15, 23, 42, 0.55);
    }

    .home-promo__tpl--tone-light .home-promo__tpl-tip[aria-expanded="true"] {
        background: #0f172a;
        color: #fff;
        box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.18), 0 12px 24px -12px rgba(15, 23, 42, 0.45);
    }

    .home-promo__tpl-tip-pop {
        position: absolute;
        top: 1.9rem;
        right: 0.4rem;
        z-index: 7;
        width: min(17.5rem, calc(100% - 1rem));
        padding: 0.75rem 0.85rem;
        border-radius: 0.85rem;
        background: rgba(15, 23, 42, 0.96);
        color: #f8fafc;
        box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.65);
        transform-origin: top right;
    }

    .home-promo__tpl-tip-pop::before {
        content: "";
        position: absolute;
        top: -0.35rem;
        right: 0.55rem;
        width: 0.7rem;
        height: 0.7rem;
        background: rgba(15, 23, 42, 0.96);
        transform: rotate(45deg);
        border-radius: 0.12rem;
    }

    .home-promo__tpl.is-tip-open .home-promo__tpl-tip-pop {
        display: block;
        animation: home-promo-tip-in 0.16s ease-out;
    }

    .home-promo__tpl-tip-pop-text {
        margin: 0;
        font-size: 0.86rem;
        font-weight: 600;
        line-height: 1.4;
        letter-spacing: -0.01em;
    }

    .home-promo__tpl--split .home-promo__tpl-inner,
    .home-promo__tpl--ribbon .home-promo__tpl-inner,
    .home-promo__tpl--editorial .home-promo__tpl-inner,
    .home-promo__tpl--stack .home-promo__tpl-inner {
        grid-template-columns: 1fr 1fr;
    }

    .home-promo__tpl--split .home-promo__tpl-inner::before {
        left: 42%;
        width: 16%;
    }

    .home-promo__tpl--spotlight .home-promo__tpl-inner {
        grid-template-columns: 0.85fr 1.15fr;
        padding: 0.4rem 0.55rem;
        gap: 0.2rem;
    }

    .home-promo__tpl--spotlight .home-promo__tpl-media {
        width: min(86%, 6.5rem);
        border-width: 2px;
    }

    .home-promo__tpl-copy {
        padding: 0.55rem 0.65rem;
        gap: 0.3rem;
    }

    .home-promo__tpl-btn {
        margin-top: 0.25rem;
        padding: 0.42rem 0.85rem;
    }

    .home-promo__tpl--editorial .home-promo__tpl-title {
        font-size: clamp(1.05rem, 4cqi, 1.4rem);
    }

    .home-promo__tpl--editorial .home-promo__tpl-media {
        margin: 0.4rem 0.45rem 0.4rem 0;
        transform: rotate(2deg);
    }

    .home-promo__tpl--stack .home-promo__tpl-media {
        margin: 0.3rem;
        transform: none;
    }
}

@keyframes home-promo-tip-in {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Модалка создания баннера */
html.promo-modal-open,
body.promo-modal-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.promo-modal.is-open {
    animation: promo-modal-in 0.18s ease-out;
}

.promo-modal__panel {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    animation: promo-modal-panel-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.promo-modal__grabber {
    display: flex;
    justify-content: center;
    padding: 0.55rem 0 0.15rem;
}

.promo-modal__grabber span {
    display: block;
    width: 2.5rem;
    height: 0.28rem;
    border-radius: 999px;
    background: #cbd5e1;
}

.promo-modal__body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

@keyframes promo-modal-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes promo-modal-panel-in {
    from {
        opacity: 0.7;
        transform: translateY(1rem) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 639px) {
    .promo-modal {
        align-items: flex-end !important;
    }

    .promo-modal__panel {
        width: 100%;
        max-width: none;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .promo-modal__subtitle {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .promo-builder__tabs {
        position: sticky;
        top: 0;
        z-index: 2;
        margin-left: -0.15rem;
        margin-right: -0.15rem;
    }

    .promo-builder__tpl-mini {
        height: 4.75rem;
    }

    .promo-builder__tpl-meta strong {
        font-size: 0.78rem;
    }

    .promo-builder__tpl-meta span {
        display: none;
    }

    @keyframes promo-modal-panel-in {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}

/* Конструктор в кабинете / модалке */
.promo-builder__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.35rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.promo-builder__tab {
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    border-radius: 0.85rem;
    padding: 0.6rem 1.05rem;
    font-size: 0.875rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.promo-builder__tab:hover {
    color: #0f172a;
    background: #f8fafc;
}

.promo-builder__tab.is-active {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
    box-shadow: 0 8px 18px -12px rgba(15, 118, 110, 0.8);
}

.promo-builder__layout {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .promo-builder__layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
        align-items: start;
        gap: 1.5rem;
    }
}

.promo-builder__section {
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    background: #fff;
    padding: 1rem 1.05rem 1.1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.promo-builder__section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 0.9rem;
}

.promo-builder__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: #ecfeff;
    color: #0f766e;
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.promo-builder__actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 -0.15rem;
    padding: 0.85rem 0.15rem 0.15rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0), #f8fafc 28%);
}

.promo-builder__tpl-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

@media (min-width: 640px) {
    .promo-builder__tpl-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.promo-builder__tpl-opt {
    position: relative;
    display: block;
    cursor: pointer;
}

.promo-builder__tpl-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.promo-builder__tpl-card {
    position: relative;
    border: 2px solid #e2e8f0;
    border-radius: 1.1rem;
    overflow: hidden;
    background: #f8fafc;
    height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.promo-builder__tpl-opt:hover .promo-builder__tpl-card {
    border-color: #99f6e4;
    background: #fff;
}

.promo-builder__tpl-opt input:checked + .promo-builder__tpl-card {
    border-color: #0f766e;
    background: #fff;
    box-shadow: 0 14px 30px -18px rgba(15, 118, 110, 0.75);
    transform: translateY(-1px);
}

.promo-builder__tpl-check {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: #fff;
    background: #0f766e;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.35);
}

.promo-builder__tpl-opt input:checked + .promo-builder__tpl-card .promo-builder__tpl-check {
    opacity: 1;
    transform: scale(1);
}

.promo-builder__tpl-mini {
    height: 4.5rem;
    display: grid;
    background: linear-gradient(135deg, #f97316, #ea580c);
    overflow: hidden;
    position: relative;
}

.promo-builder__tpl-mini--split {
    grid-template-columns: 1.1fr 1fr;
}

.promo-builder__tpl-mini--split .promo-builder__ph-media {
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

.promo-builder__tpl-mini--split::after {
    content: "";
    position: absolute;
    left: 46%;
    top: 0;
    bottom: 0;
    width: 12%;
    background: #fff;
    clip-path: polygon(60% 0, 100% 0, 40% 100%, 0 100%);
    opacity: 0.9;
}

.promo-builder__tpl-mini--overlay {
    background: #01A4EF;
}

.promo-builder__tpl-mini--overlay::before {
    content: "";
    position: absolute;
    right: 8%;
    top: -20%;
    width: 40%;
    height: 80%;
    background: rgba(255, 255, 255, 0.28);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 70%);
}

.promo-builder__tpl-mini--spotlight {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    padding: 0.45rem;
    gap: 0.25rem;
    background: linear-gradient(135deg, #f97316, #c2410c);
}

.promo-builder__tpl-mini--spotlight .promo-builder__ph-media {
    aspect-ratio: 1;
    width: 70%;
    margin: 0 auto;
    border-radius: 0.55rem;
    transform: rotate(45deg);
    border: 2px solid rgba(255, 255, 255, 0.85);
}

.promo-builder__tpl-mini--editorial {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0.2rem;
    padding: 0.35rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.promo-builder__tpl-mini--editorial .promo-builder__ph-media {
    border-radius: 0.65rem;
    transform: rotate(3deg);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45);
}

.promo-builder__tpl-mini--ribbon {
    grid-template-columns: 1fr 1fr;
    position: relative;
    background: linear-gradient(118deg, #14b8a6 52%, #5eead4 52%);
}

.promo-builder__tpl-mini--ribbon .promo-builder__ph-media {
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.promo-builder__tpl-mini--ribbon::after {
    content: "";
    position: absolute;
    left: 10%;
    top: 18%;
    width: 1.4rem;
    height: 4px;
    background: repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 6px);
}

.promo-builder__tpl-mini--stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    padding: 0.3rem;
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.promo-builder__tpl-mini--stack .promo-builder__ph-media {
    border-radius: 0.85rem 0.35rem;
    margin: 0.15rem;
}

.promo-builder__ph-media {
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.promo-builder__ph-copy {
    padding: 0.45rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.22rem;
}

.promo-builder__ph-line {
    height: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    width: 72%;
}

.promo-builder__ph-line--sm {
    width: 90%;
    height: 0.25rem;
    opacity: 0.7;
}

.promo-builder__ph-btn {
    width: 42%;
    height: 0.5rem;
    border-radius: 0.35rem;
    background: #fff;
    margin-top: 0.1rem;
}

.promo-builder__tpl-meta {
    padding: 0.55rem 0.65rem 0.7rem;
}

.promo-builder__tpl-meta strong {
    display: block;
    font-size: 0.8rem;
    color: #0f172a;
}

.promo-builder__tpl-meta span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.3;
}

.promo-builder__palettes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

@media (min-width: 640px) {
    .promo-builder__palettes {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.promo-builder__palette {
    position: relative;
    cursor: pointer;
}

.promo-builder__palette input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.promo-builder__palette-card {
    border: 2px solid #e2e8f0;
    border-radius: 0.95rem;
    padding: 0.6rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.promo-builder__palette:hover .promo-builder__palette-card {
    border-color: #cbd5e1;
}

.promo-builder__palette input:checked + .promo-builder__palette-card {
    border-color: #0f766e;
    box-shadow: 0 10px 22px -16px rgba(15, 118, 110, 0.75);
    transform: translateY(-1px);
}

.promo-builder__swatches {
    display: flex;
    gap: 0.28rem;
    margin-bottom: 0.4rem;
}

.promo-builder__swatch {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.promo-builder__palette-card small {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
}

.promo-builder__preview-wrap {
    position: relative;
}

@media (min-width: 1024px) {
    .promo-builder__preview-sticky {
        position: sticky;
        top: 0.25rem;
        border: 1px solid #e2e8f0;
        border-radius: 1.35rem;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 10px 28px -22px rgba(15, 23, 42, 0.35);
    }
}

.promo-builder__preview {
    container-type: inline-size;
}

.promo-builder__preview .home-promo__card {
    width: 100%;
    max-width: 100%;
}

.promo-builder__mode[hidden] {
    display: none !important;
}

/* Статистика баннеров */
.promo-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

@media (min-width: 640px) {
    .promo-stats {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.promo-stats__item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    padding: 0.55rem 0.65rem;
}

.promo-stats__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.6rem;
    background: #ecfeff;
    color: #0f766e;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.promo-stats__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.promo-stats__value {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.promo-stats__label {
    margin-top: 0.12rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
}

.promo-stats--compact .promo-stats__item {
    padding: 0.45rem 0.55rem;
}

.promo-stats--compact .promo-stats__value {
    font-size: 0.84rem;
}


@media (min-width: 640px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.catalog-card {
    display: block;
    background: var(--surface);
    border-radius: var(--shop-radius);
    border: 1px solid var(--shop-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.catalog-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.18);
    transform: none;
}

.catalog-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
}

.catalog-card__banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.catalog-card:hover .catalog-card__banner {
    transform: scale(1.04);
}

.catalog-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7aa8b5;
    font-size: 2.5rem;
}

.catalog-card__logo {
    position: absolute;
    bottom: 0.625rem;
    left: 0.625rem;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px -2px rgba(15, 47, 58, 0.25);
    object-fit: cover;
    background: #fff;
}

.catalog-card__body {
    padding: 1rem 1.25rem 1.15rem;
}

.catalog-card__title {
    font-weight: 650;
    color: var(--ocean-ink);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.catalog-card:hover .catalog-card__title {
    color: var(--ocean-600);
}

.catalog-card__meta {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0.25rem 0 0;
}

.catalog-card__rating {
    display: inline-flex;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #b45309;
}

.catalog-card__rating .fa-star {
    margin-right: 0.35rem;
    font-size: 0.7rem;
    color: #f59e0b;
}

/* Кабинет: нижняя навигация на мобильных */
.cabinet-bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 768px) {
    .cabinet-bottom-nav {
        display: none !important;
    }
}

body.has-cabinet-bottom-nav .admin-shell-scroll {
    padding-bottom: 5.5rem;
}

/* Плавные появления */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fade-up 0.45s ease-out both;
}

/* Баннер точки: затемнение снизу (как Facebook), читаемость на светлых фото */
.outlet-hero-scrim {
    pointer-events: none;
    background:
        linear-gradient(
            to top,
            rgba(6, 18, 24, 0.92) 0%,
            rgba(6, 18, 24, 0.78) 28%,
            rgba(6, 18, 24, 0.42) 52%,
            rgba(6, 18, 24, 0.12) 72%,
            transparent 88%
        ),
        linear-gradient(
            to right,
            rgba(6, 18, 24, 0.28) 0%,
            transparent 42%
        );
}

.outlet-hero-title {
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 4px 18px rgba(0, 0, 0, 0.45);
}

.outlet-hero-meta {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.outlet-hero-logo-wrap {
    position: relative;
}

.outlet-hero-logo-upload {
    position: absolute;
    right: -0.3rem;
    bottom: -0.3rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    border: 2px solid #fff;
    background: #01A4EF;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: background 0.15s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.outlet-hero-logo-upload i {
    font-size: 0.7rem;
    line-height: 1;
}

.outlet-hero-logo-upload:hover {
    background: #0f766e;
    transform: scale(1.06);
}

.outlet-hero-logo-upload:active {
    transform: scale(0.96);
}

@media (min-width: 640px) {
    .outlet-hero-logo-upload {
        width: 2.125rem;
        height: 2.125rem;
        right: -0.35rem;
        bottom: -0.35rem;
    }

    .outlet-hero-logo-upload i {
        font-size: 0.85rem;
    }
}

/* Кнопки соцсетей / действий в hero точки */
.outlet-hero-actions {
    row-gap: 0.35rem;
}

.outlet-hero-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    /* Было ~44px → −10% ≈ 39.6px */
    width: 2.475rem;
    height: 2.475rem;
    min-height: 2.475rem;
    padding: 0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.outlet-hero-icon-btn i {
    /* Внутренний глиф +10% относительно прежнего ~1rem */
    font-size: 1.1rem;
    line-height: 1;
}

.outlet-hero-icon-btn__label {
    display: none;
}

.outlet-hero-icon-btn--phone {
    background: #10b981;
}

.outlet-hero-icon-btn--phone:hover {
    background: #34d399;
}

.outlet-hero-icon-btn--wa {
    background: #25d366;
}

.outlet-hero-icon-btn--wa:hover {
    filter: brightness(1.08);
}

.outlet-hero-icon-btn--wa i {
    font-size: 1.21rem;
}

.outlet-hero-icon-btn--tg {
    background: #0088cc;
}

.outlet-hero-icon-btn--tg:hover {
    filter: brightness(1.08);
}

.outlet-hero-icon-btn--ig {
    background: linear-gradient(90deg, #f43f5e, #f59e0b);
}

.outlet-hero-icon-btn--ig:hover {
    filter: brightness(1.08);
}

.outlet-hero-icon-btn--secondary {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.outlet-hero-icon-btn--secondary:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.outlet-hero-icon-btn--dashed {
    border-style: dashed;
    background: rgba(0, 0, 0, 0.32);
}

@media (min-width: 640px) {
    .outlet-hero-actions {
        row-gap: 0.625rem;
    }

    .outlet-hero-icon-btn {
        width: auto;
        height: auto;
        min-height: 2.75rem;
        padding: 0.625rem 0.875rem;
        border-radius: 0.75rem;
    }

    .outlet-hero-icon-btn i {
        font-size: 1rem;
    }

    .outlet-hero-icon-btn--wa i {
        font-size: 1.125rem;
    }

    .outlet-hero-icon-btn__label {
        display: inline;
    }
}

.outlet-hero-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.outlet-hero-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.outlet-hero-btn-secondary.border-dashed {
    border-style: dashed;
    background: rgba(0, 0, 0, 0.32);
}

/* Витрина торговой точки */
.outlet-section {
    border-radius: 1.25rem;
    border: 1px solid rgba(208, 240, 246, 0.85);
    background: #fff;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 1px 2px rgba(15, 47, 58, 0.04), 0 10px 28px -18px rgba(26, 138, 168, 0.28);
}

.outlet-section.scroll-mt-outlet,
.outlet-page section.scroll-mt-outlet {
    scroll-margin-top: var(--outlet-sticky-offset, 7.5rem);
}

@media (min-width: 640px) {
    .outlet-section {
        padding: 1.75rem 2rem;
    }
}

.outlet-section__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #173f51;
}

.outlet-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin: 0 0 1rem;
}

.outlet-section__head .outlet-section__title {
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
}

.outlet-section__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    padding-top: 0.1rem;
}

.outlet-section__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(208, 240, 246, 0.95);
    background: #f8fcfd;
    color: #01628f;
    box-shadow: 0 1px 2px rgba(15, 47, 58, 0.04);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

.outlet-section__action:hover {
    background: #eff9fb;
    border-color: #a3e0ec;
    color: #0a2438;
}

.outlet-section__action:active {
    transform: scale(0.96);
}

.outlet-section__action--primary {
    background: #01A4EF;
    border-color: #01A4EF;
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(26, 138, 168, 0.65);
}

.outlet-section__action--primary:hover {
    background: #0183bf;
    border-color: #0183bf;
    color: #fff;
}

.outlet-section__action i {
    font-size: 0.85rem;
}


/* Горизонтальный слайдер блоков витрины */
.outlet-hslider {
    --outlet-hslider-gap: 0.75rem;
    position: relative;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

.outlet-hslider__scroller {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 0.15rem 0.25rem 0.35rem;
}

.outlet-hslider__scroller::-webkit-scrollbar {
    display: none;
}

.outlet-hslider__track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--outlet-hslider-gap);
    width: max-content;
    min-width: 100%;
}

.outlet-hslider__item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-width: 0;
}

.outlet-hslider__item.is-filter-hidden {
    display: none !important;
}

.outlet-hslider--card .outlet-hslider__item {
    width: min(72vw, 15.5rem);
}

/* Каталог «Рекомендуем»: на мобиле видно ~1.5 карточки, свайп + стрелки */
.outlet-hslider--recommend .outlet-hslider__item {
    width: min(15.5rem, calc((100vw - 2.75rem - var(--outlet-hslider-gap)) / 1.5));
}

/* Рекомендуемые точки на главной */
.outlet-hslider--outlet-recommend .outlet-hslider__item {
    width: min(17.5rem, calc((100vw - 2.75rem - var(--outlet-hslider-gap)) / 1.5));
}

.outlet-hslider--outlet-recommend .catalog-card {
    min-height: 100%;
}

.outlet-hslider--service .outlet-hslider__item {
    width: min(84vw, 19rem);
}

.outlet-hslider--advantage .outlet-hslider__item {
    width: min(84vw, 20rem);
}

.outlet-hslider--review .outlet-hslider__item {
    width: min(88vw, 22rem);
}

.outlet-hslider--photo .outlet-hslider__item {
    width: min(78vw, 17rem);
}

.outlet-hslider--video .outlet-hslider__item {
    width: min(90vw, 26rem);
}

.outlet-hslider--instagram .outlet-hslider__item {
    width: min(86vw, 20.5rem);
}

.outlet-ig-embed {
    height: 32rem;
    min-height: 28rem;
    background: #fff;
    border: 0;
}


@media (min-width: 640px) {
    .outlet-hslider {
        --outlet-hslider-gap: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .outlet-hslider--card .outlet-hslider__item {
        width: 15.5rem;
    }

    .outlet-hslider--recommend .outlet-hslider__item {
        width: 15.5rem;
    }

    .outlet-hslider--outlet-recommend .outlet-hslider__item {
        width: 17.5rem;
    }

    .outlet-hslider--service .outlet-hslider__item {
        width: 19.5rem;
    }

    .outlet-hslider--advantage .outlet-hslider__item {
        width: 20.5rem;
    }

    .outlet-hslider--review .outlet-hslider__item {
        width: 23rem;
    }

    .outlet-hslider--photo .outlet-hslider__item {
        width: 18rem;
    }

    .outlet-hslider--video .outlet-hslider__item {
        width: 28rem;
    }

    .outlet-hslider--instagram .outlet-hslider__item {
        width: 20.5rem;
    }
}

.outlet-hslider__item > * {
    height: 100%;
}

.outlet-hslider__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-55%);
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(208, 240, 246, 0.95);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #01628f;
    box-shadow: 0 8px 22px -10px rgba(15, 47, 58, 0.35);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.outlet-hslider__nav:hover:not(:disabled) {
    background: #eff9fb;
    color: #0a2438;
}

.outlet-hslider__nav:active:not(:disabled) {
    transform: translateY(-55%) scale(0.96);
}

.outlet-hslider__nav:disabled {
    opacity: 0.28;
    cursor: default;
    box-shadow: none;
}

.outlet-hslider__nav--prev {
    left: 0.15rem;
}

.outlet-hslider__nav--next {
    right: 0.15rem;
}

@media (min-width: 640px) {
    .outlet-hslider__nav--prev {
        left: -0.35rem;
    }

    .outlet-hslider__nav--next {
        right: -0.35rem;
    }
}

.outlet-hslider:not(.outlet-hslider--scrollable) .outlet-hslider__nav {
    display: none;
}


.outlet-section__title::before {
    content: '';
    display: inline-block;
    width: 0.25rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #01A4EF;
    flex-shrink: 0;
}

.outlet-hidden-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.5rem;
    padding: 0.15rem 0.5rem;
}

.outlet-sec-link.is-active {
    background: #d0f0f6;
    color: #0183bf;
}

.scrollbar-none {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scrollbar-none::-webkit-scrollbar {
    display: none;
}

@media (min-width: 640px) {
    .outlet-mobile-cta {
        display: none !important;
    }
}

/* Публичная нижняя навигация (мобильные) */
.site-mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    border-top: 1px solid var(--shop-border);
    background: #fff;
    box-shadow: 0 -4px 16px -8px rgba(15, 23, 42, 0.12);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.site-mobile-bottom-nav__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    max-width: 32rem;
    margin: 0 auto;
    padding: 0.35rem 0.25rem 0.4rem;
}

.site-mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 3.15rem;
    padding: 0.35rem 0.25rem;
    border-radius: 0.85rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.site-mobile-bottom-nav__item i {
    font-size: 1.05rem;
    line-height: 1;
}

.site-mobile-bottom-nav__item[aria-current="page"] {
    background: rgba(1, 164, 239, 0.08);
    color: var(--ocean-600);
}

body.has-site-mobile-nav {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
}

/* Плашка установки приложения (PWA) */
.app-install-banner {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    z-index: 120;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 2.25rem 0.7rem 0.7rem;
    border-radius: 1rem;
    background: #01A4EF;
    color: #fff;
    box-shadow: 0 12px 36px -10px rgba(15, 47, 58, 0.45);
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
}

.app-install-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.app-install-banner.hidden {
    display: none !important;
}

.app-install-banner__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.7rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.app-install-banner__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-install-banner__text {
    min-width: 0;
    flex: 1 1 auto;
}

.app-install-banner__title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.app-install-banner__sub {
    margin: 0.15rem 0 0;
    font-size: 0.68rem;
    line-height: 1.35;
    opacity: 0.9;
}

.app-install-banner__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: #fff;
    color: #01628f;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease, background 0.15s ease;
}

.app-install-banner__btn:hover {
    background: #f0f9fb;
}

.app-install-banner__btn:active {
    transform: scale(0.97);
}

.app-install-banner__btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.app-install-banner__close {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.app-install-banner__close:hover {
    background: rgba(255, 255, 255, 0.28);
}

body.has-app-install-banner.has-site-mobile-nav {
    padding-bottom: calc(4.25rem + 5.25rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
    .app-install-banner {
        display: none !important;
    }
}

/* Форма ответа в чате — над нижней навигацией на мобильных */
.message-thread-compose {
    z-index: 20;
}
@media (max-width: 767.98px) {
    body.has-site-mobile-nav .message-thread-compose {
        bottom: calc(4.25rem + 0.5rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 768px) {
    .site-mobile-bottom-nav {
        display: none !important;
    }
    body.has-site-mobile-nav {
        padding-bottom: 0;
    }
}

/* Карта: полноэкранная оболочка */
.home-map-shell {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: calc(100dvh - 3.75rem - 4.5rem - env(safe-area-inset-bottom, 0px));
}

body.has-site-mobile-nav .home-map-shell {
    min-height: calc(100dvh - 3.75rem - 4.5rem - env(safe-area-inset-bottom, 0px));
}

.home-map-shell #map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    z-index: 0;
}

.home-map-float {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
}

.home-map-float > * {
    pointer-events: auto;
}

.home-view-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(208, 240, 246, 0.95);
    box-shadow: 0 8px 24px -10px rgba(15, 47, 58, 0.35);
}

.home-view-toggle a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    color: #5b6b73;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.home-view-toggle a.is-active {
    background: #01A4EF;
    color: #fff;
    box-shadow: 0 4px 12px -4px rgba(1, 164, 239, 0.45);
}

/* —— Shop filter bar (главная) —— */
.shop-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 1.15rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 28px -14px rgba(15, 23, 42, 0.18), 0 1px 3px rgba(15, 23, 42, 0.06);
}

.shop-filter-bar--float {
    width: 100%;
    max-width: min(80rem, 100%);
    min-width: 0;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 14px 40px -16px rgba(15, 23, 42, 0.35), 0 2px 8px -2px rgba(15, 23, 42, 0.08);
}

.shop-filter-bar--mob-sheet {
    flex-direction: column;
    align-items: stretch;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 0.65rem;
}

.shop-filter-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
    min-height: 2.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.shop-filter-pill__text {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
}

.shop-filter-pill__chevron {
    font-size: 0.65rem;
    opacity: 0.7;
}

.shop-filter-pill__dot {
    position: absolute;
    top: 0.35rem;
    right: 0.45rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(1, 164, 239, 0.35);
}

.shop-filter-pill--primary {
    background: #01A4EF;
    color: #fff;
}

.shop-filter-pill--primary:hover {
    background: #0183bf;
    color: #fff;
}

.shop-filter-pill--ghost {
    background: #fff;
    color: #334155;
    border-color: #e2e8f0;
}

.shop-filter-pill--ghost:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.shop-filter-pill--ghost.is-on {
    border-color: #01A4EF;
    color: #01628f;
    background: #e8f7fd;
}

.shop-filter-pill--ghost.is-on .shop-filter-pill__dot {
    background: #01A4EF;
}

.shop-filter-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    order: 1;
}

.shop-filter-search {
    display: flex;
    flex: 1 1 12rem;
    align-items: stretch;
    min-width: 0;
    min-height: 2.5rem;
    order: 2;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.shop-filter-search:focus-within {
    border-color: #01A4EF;
    box-shadow: 0 0 0 3px rgba(1, 164, 239, 0.14);
}

.shop-filter-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    color: #0f172a;
    background: transparent;
}

.shop-filter-search input::placeholder {
    color: #94a3b8;
}

.shop-filter-search__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    flex-shrink: 0;
    border: 0;
    padding: 0 1.15rem;
    background: #01A4EF;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.shop-filter-search__btn:hover {
    background: #0183bf;
}

.shop-filter-search--sheet {
    border-radius: 0.75rem;
}

.shop-filter-search--sheet .shop-filter-search__btn-label {
    display: none;
}

.shop-filter-actions__short {
    display: none;
}

/* —— Mobile: поиск сверху, чипы с подписями + горизонтальный скролл —— */
@media (max-width: 767px) {
    .shop-filter-bar:not(.shop-filter-bar--mob-sheet) {
        gap: 0.55rem;
        padding: 0.55rem;
        border-radius: 1rem;
    }

    .shop-filter-bar .shop-filter-search {
        order: 1;
        flex: 1 1 100%;
        width: 100%;
        min-height: 2.75rem;
        border-radius: 0.85rem;
    }

    .shop-filter-bar .shop-filter-actions {
        order: 2;
        flex: 1 1 100%;
        width: 100%;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0.4rem;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        padding: 0.05rem 0.1rem 0.2rem;
        margin: 0 -0.1rem;
    }

    .shop-filter-bar .shop-filter-actions::-webkit-scrollbar {
        display: none;
    }

    .shop-filter-bar .shop-filter-actions__label {
        display: none;
    }

    .shop-filter-bar .shop-filter-actions__short {
        display: inline;
        font-size: 0.6875rem;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: 0.01em;
        white-space: nowrap;
    }

    .shop-filter-bar .home-view-toggle--inset,
    .shop-filter-bar .shop-filter-view {
        display: contents;
    }

    .shop-filter-bar .home-view-toggle--inset a,
    .shop-filter-bar .shop-filter-view a {
        position: relative;
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        min-height: 2.35rem;
        width: auto;
        height: auto;
        padding: 0.45rem 0.7rem;
        border-radius: 999px;
        font-size: 0.8125rem;
        scroll-snap-align: start;
        background: #f1f5f9;
        color: #475569;
        box-shadow: none;
        border: 1px solid transparent;
    }

    .shop-filter-bar .home-view-toggle--inset a.is-active,
    .shop-filter-bar .shop-filter-view a.is-active {
        background: #01A4EF;
        color: #fff;
        border-color: #01A4EF;
        box-shadow: 0 4px 12px -4px rgba(1, 164, 239, 0.45);
    }

    .shop-filter-bar .shop-filter-pill {
        position: relative;
        flex: 0 0 auto;
        justify-content: center;
        align-items: center;
        gap: 0.35rem;
        width: auto;
        height: auto;
        min-height: 2.35rem;
        padding: 0.45rem 0.7rem;
        border-radius: 999px;
        scroll-snap-align: start;
    }

    .shop-filter-bar .shop-filter-pill__dot {
        top: 0.22rem;
        right: 0.28rem;
        width: 0.4rem;
        height: 0.4rem;
    }

    .shop-filter-bar .shop-filter-search__btn-label {
        display: none;
    }

    .shop-filter-bar .shop-filter-search__btn {
        padding: 0;
        min-width: 2.75rem;
    }

    .home-cat-strip--filtered {
        margin-top: 0.15rem;
    }

    .home-cat-chip {
        padding: 0.5rem 0.8rem;
        font-size: 0.78rem;
        max-width: 12rem;
    }
}

@media (min-width: 768px) {
    .shop-filter-bar {
        gap: 0.65rem;
        padding: 0.6rem 0.7rem;
    }

    .shop-filter-bar .shop-filter-pill {
        flex: 0 1 auto;
        min-width: 0;
    }

    .shop-filter-bar .shop-filter-pill__text {
        max-width: 10rem;
    }

    .shop-filter-search {
        flex: 1 1 10rem;
        min-width: 0;
    }

    /* На средних экранах: ряд кнопок, затем поиск на всю ширину */
    .shop-filter-bar--float .shop-filter-actions,
    .shop-filter-bar:not(.shop-filter-bar--mob-sheet) .shop-filter-actions {
        flex: 1 1 100%;
        order: 1;
        min-width: 0;
    }

    .shop-filter-bar--float .shop-filter-search,
    .shop-filter-bar:not(.shop-filter-bar--mob-sheet) .shop-filter-search {
        flex: 1 1 100%;
        order: 2;
    }
}

@media (min-width: 1100px) {
    .shop-filter-bar:not(.shop-filter-bar--mob-sheet) {
        flex-wrap: nowrap;
    }

    .shop-filter-bar:not(.shop-filter-bar--mob-sheet) .shop-filter-search {
        flex: 1 1 auto;
        min-width: 12rem;
        order: 2;
    }

    .shop-filter-bar:not(.shop-filter-bar--mob-sheet) .shop-filter-actions {
        flex: 0 0 auto;
        order: 1;
    }

    .shop-filter-bar .shop-filter-pill__text {
        max-width: 14rem;
    }
}

@media (min-width: 768px) and (max-width: 1099px) {
    .shop-filter-bar:not(.shop-filter-bar--mob-sheet) .home-view-toggle--inset a .shop-filter-actions__label {
        display: none;
    }

    .shop-filter-bar:not(.shop-filter-bar--mob-sheet) .shop-filter-pill {
        padding: 0.55rem 0.85rem;
    }
}

/* Mega modals */
.shop-mega-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.shop-mega-modal.hidden {
    display: none !important;
}

.shop-mega-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.shop-mega-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: min(92dvh, 40rem);
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -12px 40px -16px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

.shop-mega-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.shop-mega-modal__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.shop-mega-modal__x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
}

.shop-mega-modal__x:hover {
    background: #f8fafc;
}

.shop-cat-layout,
.shop-place-layout {
    display: grid;
    grid-template-columns: minmax(9.5rem, 11.5rem) minmax(0, 1fr);
    min-height: 0;
    flex: 1;
    overflow: hidden;
}

.shop-cat-roots,
.shop-place-cities {
    overflow-y: auto;
    border-right: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0.35rem;
}

.shop-cat-root,
.shop-place-city {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.65rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.shop-cat-root:hover,
.shop-place-city:hover {
    background: #fff;
}

.shop-cat-root.is-active,
.shop-place-city.is-active {
    background: #fff;
    color: #0f172a;
    box-shadow: inset 3px 0 0 #01A4EF;
}

.shop-cat-root__icon {
    display: inline-flex;
    width: 1.5rem;
    justify-content: center;
    color: #01A4EF;
    flex-shrink: 0;
}

.shop-cat-root__name,
.shop-place-city span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-cat-root__chevron,
.shop-place-city__chevron {
    font-size: 0.65rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.shop-cat-pane,
.shop-place-pane {
    overflow-y: auto;
    padding: 0.85rem 1rem 1.25rem;
    min-width: 0;
}

.shop-cat-pane__header {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    background: none;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
}

.shop-cat-pane__header:hover {
    color: #0183bf;
}

.shop-cat-pane__header i {
    font-size: 0.75rem;
    color: #94a3b8;
}

.shop-cat-cols {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 1.25rem 1.5rem;
}

.shop-cat-col__head {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.45rem;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.875rem;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
}

.shop-cat-col__head:hover {
    color: #01A4EF;
}

.shop-cat-col__head i {
    font-size: 0.65rem;
    color: #94a3b8;
}

.shop-cat-col__link,
.shop-cat-col__more {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.2rem 0;
    border: 0;
    background: none;
    text-align: left;
    font-size: 0.8125rem;
    color: #475569;
    cursor: pointer;
}

.shop-cat-col__link:hover,
.shop-cat-col__more:hover {
    color: #01A4EF;
}

.shop-cat-col__more {
    color: #01A4EF;
    font-weight: 650;
    margin-top: 0.15rem;
}

.shop-cat-empty {
    margin: 0;
    color: #94a3b8;
    font-size: 0.875rem;
}

.shop-place-pane__hint {
    margin: 0;
    color: #64748b;
    font-size: 0.875rem;
}

.shop-place-group {
    margin: 0.85rem 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.shop-place-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.75rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 550;
    color: #334155;
    cursor: pointer;
}

.shop-place-item:hover {
    background: #f1f5f9;
}

.shop-place-item--primary {
    background: #e8f7fd;
    color: #01628f;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.shop-place-item--primary:hover {
    background: #d1effb;
}

@media (min-width: 768px) {
    .shop-mega-modal {
        align-items: center;
        padding: 1.5rem;
    }

    .shop-mega-modal__panel {
        width: min(56rem, 100%);
        max-height: min(80vh, 36rem);
        border-radius: 0.85rem;
    }

    .shop-mega-modal__panel--place {
        width: min(42rem, 100%);
    }

    .shop-cat-layout {
        grid-template-columns: 14rem minmax(0, 1fr);
    }

    .shop-place-layout {
        grid-template-columns: 13rem minmax(0, 1fr);
    }
}

/* Переключатель внутри общей белой панели карты */
.home-view-toggle--inset {
    background: #f1f5f9;
    border-color: #e2e8f0;
    box-shadow: none;
}

.home-map-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.9rem;
    background: #fff;
    border: 1px solid rgba(208, 240, 246, 0.95);
    color: #173f51;
    box-shadow: 0 8px 24px -10px rgba(15, 47, 58, 0.35);
}

.home-map-search-btn.has-filters {
    color: #01A4EF;
}

.home-map-search-btn .filter-dot {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #01A4EF;
    box-shadow: 0 0 0 2px #fff;
}

/* Плавающая панель фильтров на больших экранах */
.home-map-desk-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0.65rem 0.75rem;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(208, 240, 246, 0.95);
    box-shadow: 0 14px 40px -16px rgba(15, 47, 58, 0.4), 0 2px 8px -2px rgba(15, 47, 58, 0.08);
    backdrop-filter: blur(8px);
}

.home-map-desk-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.home-map-desk-filters .home-filter-search,
.home-map-desk-filters select {
    width: auto;
    min-width: 0;
    flex: 1 1 8.5rem;
    max-width: none;
    padding: 0.55rem 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.25rem;
    border-radius: 0.75rem;
    background: #fff;
    border-color: #e2e8f0;
}

.home-map-desk-filters .home-filter-search {
    flex: 1 1 12rem;
    min-width: 10rem;
}

.home-map-desk-filters select.home-filter-place {
    flex: 1 1 11rem;
}

.home-map-desk-submit {
    min-height: 2.5rem;
}

/* Сетка на главной: та же панель, скрыта на мобильных */
.home-grid-desk-bar {
    display: none;
}

@media (min-width: 640px) {
    .home-grid-desk-bar {
        display: flex;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        box-shadow: 0 8px 28px -14px rgba(15, 47, 58, 0.22), 0 2px 8px -2px rgba(15, 47, 58, 0.06);
    }
}

@media (min-width: 640px) {
    .home-map-shell {
        min-height: calc(100dvh - 4.5rem);
        height: calc(100dvh - 4.5rem);
    }
    .home-map-shell #map {
        position: absolute;
        inset: 0;
        min-height: 0;
        height: 100%;
        border-radius: 0;
        border: 0;
    }
    .home-map-float--mobile-only {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .home-map-desk-bar {
        flex-wrap: nowrap;
        gap: 1rem;
        padding: 0.7rem 0.85rem;
    }
    .home-map-desk-filters {
        flex-wrap: nowrap;
        gap: 0.6rem;
    }
    .home-map-desk-filters .home-filter-search {
        flex: 1 1 auto;
        min-width: 12rem;
    }
    .home-map-desk-filters select {
        flex: 0 1 auto;
        min-width: 9rem;
    }
    .home-map-desk-filters select.home-filter-place {
        flex: 1 1 auto;
        min-width: 11rem;
        max-width: 16rem;
    }
    .home-map-desk-submit {
        flex: 0 0 auto;
    }
}

/* Горизонтальная лента категорий (drill-down) */
.home-cat-strip {
    min-width: 0;
}

.home-cat-strip__label {
    margin: 0 0 0.45rem;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5b8a97;
}

.home-cat-strip__crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.35rem;
    margin: 0 0 0.55rem;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
}

.home-cat-crumb {
    color: #01A4EF;
    font-weight: 600;
    text-decoration: none;
}

.home-cat-crumb:hover {
    text-decoration: underline;
}

.home-cat-crumb.is-current {
    color: #0a2438;
    font-weight: 700;
    pointer-events: none;
}

.home-cat-strip__crumb-sep {
    color: #94a3b8;
    font-size: 0.55rem;
    line-height: 1;
}

.home-cat-strip__scroller {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.15rem 0.15rem 0.45rem;
    margin: 0 -0.15rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(26, 138, 168, 0.35) transparent;
}

.home-cat-strip__scroller::-webkit-scrollbar {
    height: 4px;
}

.home-cat-strip__scroller::-webkit-scrollbar-thumb {
    background: rgba(26, 138, 168, 0.35);
    border-radius: 999px;
}

.home-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    scroll-snap-align: start;
    max-width: 16rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #d0f0f6;
    background: #fff;
    color: #173f51;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 4px 14px -10px rgba(15, 47, 58, 0.35);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.home-cat-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-cat-chip:hover {
    border-color: #6cc8db;
    background: #eff9fb;
    color: #0f5f75;
}

.home-cat-chip.is-active {
    background: #01A4EF;
    border-color: #01A4EF;
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(26, 138, 168, 0.65);
}

.home-cat-chip.has-children .home-cat-chip__chev {
    font-size: 0.65rem;
    opacity: 0.65;
}

.home-cat-chip.is-active .home-cat-chip__chev {
    opacity: 0.9;
}

.home-cat-chip--back {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

.home-cat-chip--back:hover {
    background: #e2e8f0;
    color: #0a2438;
}

.home-cat-strip--filtered .home-cat-strip__crumbs {
    margin-bottom: 0.45rem;
}

.home-cat-strip--filtered:not(:has(.home-cat-strip__scroller)) .home-cat-strip__crumbs {
    margin-bottom: 0;
}

.home-cat-strip--float {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.55rem;
    padding: 0.55rem 0.65rem 0.35rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(208, 240, 246, 0.95);
    box-shadow: 0 12px 32px -16px rgba(15, 47, 58, 0.38);
    backdrop-filter: blur(8px);
}

.home-cat-strip--float.home-cat-strip--filtered:not(:has(.home-cat-strip__scroller)) {
    padding-bottom: 0.55rem;
}

.home-cat-strip--float .home-cat-strip__crumbs {
    margin-bottom: 0.4rem;
}

.home-map-float--desk {
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}


/* —— Публичная навигация: dropdown / accordion —— */
.site-nav-dd.is-open .site-nav-dd__chevron {
    transform: rotate(180deg);
}
.site-nav-dd__panel[hidden] {
    display: none !important;
}
.site-nav-acc__panel {
    transition: max-height 0.28s ease;
}
@media (hover: hover) and (pointer: fine) {
    .site-nav-dd:hover > .site-nav-dd__btn {
        background-color: rgba(239, 249, 251, 0.95);
        color: #174b60;
    }
}
