:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #f8f9fc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --primary: #002284;
    --primary-hover: #001a66;
    --primary-soft: #e8ecf7;
    --accent: #0039a6;
    --uzum: #7000ff;
    --uzum-hover: #5c00d4;
    --success: #059669;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius: 16px;
    --radius-lg: 24px;
    --header-h: 72px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}
/* ——— Мобильная навигация ——— */
.mobile-nav {
    display: none; /* по умолчанию скрыта на десктопе */
}

@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
        justify-content: space-around;
    }

    .mobile-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 0.6rem;
        font-weight: 600;
        border-radius: 10px;
        position: relative;
        min-height: 52px;
        transition: color 0.2s, background 0.2s;
    }

    .mobile-nav__item.is-active {
        color: var(--primary);
        background: var(--primary-soft);
    }

    .mobile-nav__icon {
        font-size: 1.6rem;
        line-height: 1;
        margin-bottom: 2px;
    }

    .mobile-nav__label {
        line-height: 1.2;
        font-size: 0.65rem;
    }

    .mobile-nav__badge {
        position: absolute;
        top: 4px;
        right: calc(50% - 22px);
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--primary);
        color: #fff;
        font-size: 0.6rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ——— Логотип ——— */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo__img {
    height: 100px;
    width: auto;
}
.site-logo__name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}
.site-logo__mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0039a6, #002284);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
}

/* ——— Десктопное меню ——— */
.site-nav--desktop {
    display: flex;
    align-items: center;
    gap: 6px;
}
.site-nav--desktop a {
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}
.site-nav--desktop a:hover,
.site-nav--desktop a.is-active {
    background: var(--primary-soft);
    color: var(--primary);
}
.site-nav--desktop .lang-switcher {
    margin-left: 10px;
}

/* ——— Мобильная навигация (уже есть, но усиливаем) ——— */
.mobile-nav {
    display: none; /* скрыта на десктопе */
}

@media (max-width: 768px) {
    .site-logo__img {
        height: 88px;
    }
    .site-logo__name {
        font-size: 1.1rem;
    }
    .site-logo__mark {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    .site-nav--desktop {
        display: none;
    }
    .mobile-nav {
        display: flex;
        /* остальные стили уже есть в вашем CSS */
    }
    .site-header__center {
        gap: 8px;
    }
    .site-header__search input {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

/* ——— Логотип (без текста) ——— */
.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.site-logo__img {
    height: 88px;
    width: auto;
}
.site-logo__mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0039a6, #002284);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
}

/* ——— Футер в стиле бренда ——— */
.site-footer {
    background: linear-gradient(135deg, #001233 0%, #002284 60%, #0039a6 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 40px 24px 20px;
    margin-top: 48px;
}
.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.site-footer__col h4 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.site-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-footer__col ul li {
    margin-bottom: 8px;
}
.site-footer__col ul li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer__col ul li a:hover {
    color: #fff;
}
.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.site-footer__logo {
    height: 88px;
    width: auto;
    filter: brightness(0) invert(1); /* если лого тёмное, делаем белым */
}
.site-footer__brand-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}
.site-footer__desc {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}
.site-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}
.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.4rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.site-footer__social a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.site-footer__phone {
    width: auto !important;
    padding: 0 18px;
    border-radius: 999px !important;
    gap: 8px;
    font-size: 0.92rem !important;
    font-weight: 600;
    white-space: nowrap;
}

.site-footer__phone svg {
    flex-shrink: 0;
}
.site-footer__bottom {
    max-width: 1280px;
    margin: 16px auto 0;
    text-align: center;
}
.site-footer__copy {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.7;
}
/* ——— Футер в стиле бренда ——— */
.site-footer {
    background: linear-gradient(135deg, #001233 0%, #002284 60%, #0039a6 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 32px 24px 20px;
    margin-top: 48px;
}
.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.site-footer__left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-footer__logo {
    height: 88px;          /* регулируйте под свой логотип */
    width: auto;
    filter: brightness(0) invert(1);  /* делает лого белым */
    transition: filter 0.3s;
}
.site-footer__logo:hover {
    filter: brightness(0) invert(0.8); /* лёгкий эффект при наведении */
}
.site-footer__copy {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: right;
}
@media (max-width: 768px) {
    .site-footer__inner {
        flex-direction: column;
        text-align: center;
    }
    .site-footer__copy {
        text-align: center;
    }
}
/* ——— Мобильная навигация (улучшенная) ——— */
.mobile-nav {
    display: none; /* скрыта на десктопе */
}

@media (max-width: 768px) {
    .site-logo__img {
        height: 88px;
    }
    .site-logo__mark {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    .site-nav--desktop {
        display: none;
    }
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.12);
        justify-content: space-around;
    }
    .mobile-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 0.65rem;
        font-weight: 600;
        border-radius: 10px;
        position: relative;
        min-height: 52px;
        transition: color 0.2s, background 0.2s, transform 0.15s;
    }
    .mobile-nav__item.is-active {
        color: var(--primary);
        background: var(--primary-soft);
        transform: scale(0.96);
    }
    .mobile-nav__icon {
        font-size: 1.5rem;
        line-height: 1;
        transition: transform 0.2s;
    }
    .mobile-nav__item:active .mobile-nav__icon {
        transform: scale(1.2);
    }
    .mobile-nav__badge {
        position: absolute;
        top: 4px;
        right: calc(50% - 22px);
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--primary);
        color: #fff;
        font-size: 0.6rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Футер в мобильной версии — колонки в столбик */
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .site-footer__brand {
        justify-content: center;
    }
    .site-footer__social {
        justify-content: center;
    }
}


/* ——— Header ——— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.site-header__inner{
    max-width:1400px;
    margin:auto;
    height:78px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    padding:0 30px;
}

.site-header__center {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    gap:20px;
    justify-content: center;
    min-width: 0;
}

.site-header__search {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 480px;
    min-width: 0;
    background: var(--surface-2);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.site-header__search input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
}

.site-header__search input::placeholder {
    color: #94a3b8;
}

.site-header__search input:focus {
    box-shadow: 0 0 0 2px var(--primary-soft);
}

.site-header__search button,
.site-header__search-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: background 0.2s;
}

.site-header__search button:hover,
.site-header__search-btn:hover {
    background: var(--primary-hover);
}

.site-header__search button svg,
.site-header__search-btn svg {
    display: block;
}

.site-logo{
    display:flex;
    align-items:center;
    gap:14px;
    text-decoration:none;
    flex-shrink:0;
}

.site-logo__img {
    height: 100px;          /* увеличенный размер */
    width: auto;
    object-fit: contain;
    display: block;
}

.site-logo__text{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.site-logo__name{
    font-size:30px;
    font-weight:800;
    color:#002284;
    line-height:1;
    letter-spacing:-0.5px;
}

.site-logo__mark{
    width:52px;
    height:52px;
    border-radius:14px;
    background:linear-gradient(135deg,#0039a6,#002284);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:20px;
    font-weight:700;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 10px;
    transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: var(--primary-soft);
    color: var(--primary);
}

.site-nav__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    padding: 4px;
    border-radius: 10px;
    background: var(--surface-2, #f3f4f6);
}

.lang-switcher__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
}

.lang-switcher__btn:hover,
.lang-switcher__btn.is-active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ——— Layout ——— */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.page-main {
    padding-top: 24px;
}

/* ——— Alerts ——— */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.alert--error {
    background: var(--danger-soft);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert--error code {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

/* ——— Hero ——— */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #001233 0%, #002284 45%, #0039a6 100%);
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.hero__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero p {
    margin: 0 0 28px;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-form input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: #fff;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    outline: none;
}

.search-form input::placeholder {
    color: #94a3b8;
}

.search-form button {
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.search-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero__stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.hero__stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.hero__stat span {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ——— Toolbar: categories + sort ——— */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.toolbar__block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toolbar__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.chip:hover {
    border-color: var(--accent);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.chip.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(91, 33, 182, 0.35);
}

/* ——— Section header ——— */
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-head h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-head__meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.count-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

.count-badge strong {
    color: var(--text);
    margin-right: 4px;
}

/* ——— Product grid ——— */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: #c4b5fd;
}

.card__media-wrap {
    position: relative;
}

.card__media {
    position: relative;
    display: block;
    text-decoration: none;
    aspect-ratio: 1;
    background: var(--surface-2);
    overflow: hidden;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
    transition: transform 0.35s;
}

.card:hover .card__media img {
    transform: scale(1.04);
}

.card__variant {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    backdrop-filter: blur(4px);
}

.card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
}

.card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.card__title:hover {
    color: var(--primary);
}

.card__price {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.card__price small {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
}

.card__actions form {
    grid-column: 1 / -1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-align: center;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--primary {
    background: var(--uzum);
    color: #fff;
    box-shadow: 0 4px 14px rgba(112, 0, 255, 0.3);
}

.btn--primary:hover {
    background: var(--uzum-hover);
}

.btn--ghost {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--ghost:hover {
    background: var(--primary-soft);
    border-color: #c4b5fd;
    color: var(--primary);
}

.btn--dark {
    width: 100%;
    background: var(--text);
    color: #fff;
}

.btn--dark:hover {
    background: #1e293b;
}

/* Legacy class aliases */
.card-link { text-decoration: none; color: inherit; }
.price { font-size: 1.35rem; font-weight: 800; }
.button.uzum, .uzum { background: var(--uzum); color: #fff; }
.cart { background: var(--text); color: #fff; width: 100%; }
.more { display: none; }

/* ——— Features ——— */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow 0.25s;
}

.feature-card:hover {
    box-shadow: var(--shadow);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: var(--primary-soft);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
}

.feature-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ——— Empty state ——— */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 2px dashed var(--border);
}

.empty-state__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.empty-state p {
    margin: 0;
    color: var(--text-muted);
}

/* ——— Footer ——— */
.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.78);
    padding: 40px 24px;
    margin-top: 48px;
}

.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-footer__logo {
    height: 86px;
    width: auto;
    max-width: 110px;
    object-fit: contain;
    display: block;
}

.site-footer__brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
}

.site-footer p {
    margin: 0;
    font-size: 0.875rem;
}
.site-footer__left{
    display:flex;
    align-items:center;
    gap:14px;
}

.site-footer__logo{
    width:88px;
    height:88px;
    object-fit:contain;
}

.site-footer__brand{
    font-size:28px;
    font-weight:700;
    color:#fff;
}

.site-footer__copy{
    font-size:16px;
    color:rgba(255,255,255,.85);
}
/* ——— Product page (kept) ——— */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.product-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--surface-2);
}

.product-info h1 {
    margin: 0 0 16px;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.3;
}

.product-info .price {
    font-size: 2rem;
    margin: 16px 0;
    color: var(--primary);
}

/* ——— Banner carousel ——— */
.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
}

.banner-carousel__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
    position: relative;
    min-width: 100%;
    padding: 48px 56px;
    min-height: 280px;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    text-decoration: none;
}

.banner-slide__photo {
    position: absolute;
    inset: 0;
    background-image: var(--slide-image, none);
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 28%, black 46%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 28%, black 46%);
    pointer-events: none;
}

.banner--violet { background: linear-gradient(135deg, #001a66, #002284); }
.banner--blue { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.banner--pink { background: linear-gradient(135deg, #9d174d, #ec4899); }
.banner--green { background: linear-gradient(135deg, #065f46, #10b981); }
.banner--purple { background: linear-gradient(135deg, #4c1d95, #8b5cf6); }

.banner-slide--full {
    position: relative;
    display: block;
    padding: 0;
    background-image: none;
    background-color: #0a0a1a;
    text-decoration: none;
}

.banner-slide--full .banner-slide__photo { display: none; }

.banner-slide__img {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-slide__img--mobile { display: none; }

.banner-slide__content { max-width: 520px; position: relative; z-index: 1; }

.banner-slide__emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.banner-slide h2 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.banner-slide p {
    margin: 0 0 24px;
    opacity: 0.92;
    font-size: 1.05rem;
    line-height: 1.5;
}

.btn--light {
    display: inline-flex;
    padding: 12px 28px;
    background: #fff;
    color: var(--text);
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn--light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.banner-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.2s;
    z-index: 2;
}

.banner-carousel__arrow:hover { background: #fff; }
.banner-carousel__arrow--prev { left: 16px; }
.banner-carousel__arrow--next { right: 16px; }

.banner-carousel__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.banner-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.banner-carousel__dot.is-active {
    background: #fff;
    transform: scale(1.2);
}

/* ——— Hero compact ——— */
.hero--compact {
    padding: 32px 36px;
    margin-bottom: 28px;
}

.hero--compact h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.hero--compact p {
    margin-bottom: 20px;
}

/* ——— Product sections (rows) ——— */
.product-section {
    margin-bottom: 40px;
}

.section-head__subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
}

.section-head__link {
    text-decoration: none;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    white-space: nowrap;
}

.section-head__link:hover {
    color: var(--accent);
}

.products--row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.products--row .card {
    min-width: 260px;
    max-width: 260px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ——— Favorite button ——— */
.card__fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #cbd5e1;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: color 0.2s, transform 0.15s;
    z-index: 2;
}

.card__fav:hover,
.card__fav.is-active {
    color: #ef4444;
    transform: scale(1.08);
}

.card__media-wrap .card__media {
    display: block;
    text-decoration: none;
}

/* ——— Page header ——— */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.page-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
}

.page-empty {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 48px 24px;
}

.alert--success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

/* ——— Breadcrumbs ——— */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumbs a:hover { text-decoration: underline; }

/* ——— Product gallery ——— */
.product-gallery__main {
    position: relative;
    background: var(--surface-2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}

.product-gallery__fav {
    top: 16px;
    right: 16px;
}

.product-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.product-gallery__thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid var(--border);
    overflow: hidden;
    background: var(--surface);
    transition: border-color 0.2s;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover {
    border-color: var(--accent);
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-stock {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.product-stock--ok { color: var(--success); }
.product-stock__muted { color: var(--text-muted); margin-left: 6px; }

.product-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 16px 0 24px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.product-actions__form { margin: 0; }

.btn--lg {
    padding: 14px 24px;
    font-size: 0.95rem;
    width: 100%;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.back-link:hover { color: var(--primary); }

.product-info .price small {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ——— Cart ——— */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.cart-item__img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 10px;
    background: var(--surface-2);
    flex-shrink: 0;
}

.cart-item__info {
    flex: 1;
    min-width: 0;
}

.cart-item__info h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.cart-item__price {
    font-weight: 700;
    color: var(--primary);
}

.cart-item__remove {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.cart-item__remove:hover {
    background: var(--danger-soft);
    color: var(--danger);
}

.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: calc(var(--header-h) + 16px);
}

.cart-summary h2 {
    margin: 0 0 20px;
    font-size: 1.25rem;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.cart-summary__total {
    font-size: 1.1rem;
    color: var(--text);
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-bottom: 20px;
}

.cart-summary__total strong {
    font-size: 1.35rem;
    color: var(--primary);
}

.cart-summary__note {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 16px;
}

.cart-summary .btn {
    width: 100%;
    margin-bottom: 10px;
}

.cart-summary__clear {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--danger);
    text-decoration: none;
}

.cart-summary__clear:hover { text-decoration: underline; }

/* ============================================================
   MOBILE — phones & tablets
   ============================================================ */
.mobile-nav {
    display: none;
}

.mobile-buy-bar {
    display: none;
}

@media (max-width: 900px) {
    .banner-slide { padding: 36px 28px; min-height: 220px; }
    .banner-slide--full { padding: 0; min-height: 0; aspect-ratio: 1800 / 409; }
    .banner-carousel__arrow { display: none; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .features { grid-template-columns: 1fr; }
    .product-page { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
    .hero { padding: 32px 24px; }
    .hero--compact { padding: 24px 20px; }
    .search-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        max-width: none;
    }
    .search-form button { width: 100%; }
    .hero__stats { gap: 20px; margin-top: 24px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .section-head__link { align-self: flex-start; }
}

@media (max-width: 768px) {
    :root {
        --header-h: 56px;
    }

    body {
        padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
        -webkit-tap-highlight-color: transparent;
    }

    .page-product {
        padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
    }

    /* Header */
    .site-header__inner {
        padding: 10px 16px;
        gap: 0;
    }

    .site-header__center {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        gap: 10px;
    }

    .site-logo {
        justify-content: flex-start;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .site-logo__img {
        height: 84px;
        max-width: 96px;
    }

    .site-logo__mark {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .site-header__search {
        max-width: none;
        flex: 1;
        min-width: 0;
    }

    .site-header__search input {
        padding: 9px 12px;
        font-size: 0.85rem;
    }

    .site-header__search button,
    .site-header__search-btn {
        width: 38px;
        height: 38px;
    }

    .site-nav--desktop {
        display: none;
    }

    /* Нижняя навигация */
    .mobile-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 200;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    }

    .mobile-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 8px 4px;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 0.65rem;
        font-weight: 600;
        border-radius: 10px;
        position: relative;
        min-height: 52px;
        transition: color 0.2s, background 0.2s;
    }

    .mobile-nav__item.is-active {
        color: var(--primary);
        background: var(--primary-soft);
    }

    .mobile-nav__icon {
        font-size: 1.35rem;
        line-height: 1;
    }

    .mobile-nav__label {
        line-height: 1.2;
    }

    .mobile-nav__badge {
        position: absolute;
        top: 4px;
        right: calc(50% - 22px);
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: var(--primary);
        color: #fff;
        font-size: 0.65rem;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Layout */
    .container {
        padding: 0 16px 24px;
    }

    .page-main {
        padding-top: 16px;
    }

    .page-header h1 {
        font-size: 1.4rem;
    }

    /* Карусель */
    .banner-carousel {
        border-radius: var(--radius);
        margin-bottom: 20px;
    }

    .banner-slide {
        padding: 24px 20px 48px;
        min-height: 200px;
        align-items: flex-start;
    }

    .banner-slide--full {
        padding: 0;
        min-height: 0;
        aspect-ratio: 1000 / 558;
    }

    .banner-slide__img--desktop { display: none; }
    .banner-slide__img--mobile { display: block; }

    .banner-slide__emoji {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .banner-slide h2 {
        font-size: 1.35rem;
    }

    .banner-slide p {
        font-size: 0.9rem;
        margin-bottom: 16px;
    }

    .btn--light {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .banner-carousel__dots {
        bottom: 12px;
    }

    /* Hero */
    .hero {
        padding: 24px 20px;
        margin-bottom: 20px;
        border-radius: var(--radius);
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .hero__stat strong {
        font-size: 1.25rem;
    }

    /* Фильтры — горизонтальный скролл */
    .toolbar {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 20px;
    }

    .toolbar__block {
        width: 100%;
        overflow: hidden;
    }

    .toolbar__block .chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding-bottom: 6px;
        margin: 0 -4px;
        padding-left: 4px;
        padding-right: 4px;
        scrollbar-width: none;
    }

    .toolbar__block .chips::-webkit-scrollbar {
        display: none;
    }

    .toolbar__block .chip {
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    /* Сетка товаров — 2 колонки */
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .products--row {
        gap: 12px;
        margin: 0 -4px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .products--row .card {
        min-width: 168px;
        max-width: 168px;
    }

    .card:hover {
        transform: none;
    }

    .card__body {
        padding: 12px;
        gap: 8px;
    }

    .card__title {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-height: 1.35;
    }

    .card__price {
        font-size: 1rem;
    }

    .card__variant {
        font-size: 0.65rem;
        padding: 4px 8px;
        top: 8px;
        left: 8px;
    }

    .card__fav {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
        font-size: 1rem;
    }

    .card__actions {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .card__actions .btn {
        padding: 10px 8px;
        font-size: 0.75rem;
        min-height: 40px;
    }

    .product-section {
        margin-bottom: 28px;
    }

    .section-head h2 {
        font-size: 1.2rem;
    }

    .section-head__subtitle {
        font-size: 0.85rem;
    }

    /* Features */
    .features {
        margin-top: 32px;
        gap: 12px;
    }

    .feature-card {
        padding: 20px 16px;
    }

    .feature-card__icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    /* Footer */
    .site-footer {
        padding: 24px 16px;
        margin-top: 24px;
        margin-bottom: 8px;
    }

    .site-footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .site-footer__social {
        justify-content: center;
        flex-wrap: wrap;
        margin-top: 4px;
    }

    /* Product page */
    .breadcrumbs {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .breadcrumbs span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 200px;
    }

    .product-info h1 {
        font-size: 1.25rem;
    }

    .product-info .price {
        font-size: 1.5rem;
    }

    .product-gallery__thumb {
        width: 56px;
        height: 56px;
    }

    .product-actions {
        display: none;
    }

    /* Sticky buy bar на странице товара */
    .mobile-buy-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: fixed;
        bottom: calc(68px + env(safe-area-inset-bottom, 0px));
        left: 0;
        right: 0;
        z-index: 150;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        padding: 10px 16px;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
    }

    .mobile-buy-bar__price {
        font-size: 1.1rem;
        font-weight: 800;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .mobile-buy-bar__price small {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--text-muted);
    }

    .mobile-buy-bar__actions {
        display: flex;
        gap: 8px;
        flex: 1;
        justify-content: flex-end;
    }

    .mobile-buy-bar__actions form {
        margin: 0;
        flex: 1;
        max-width: 140px;
    }

    .mobile-buy-bar__actions .btn {
        padding: 12px 14px;
        font-size: 0.8rem;
        min-height: 44px;
        white-space: nowrap;
    }

    .mobile-buy-bar__actions .btn--primary {
        flex-shrink: 0;
    }

    /* Cart */
    .cart-item {
        padding: 12px;
        gap: 12px;
    }

    .cart-item__img {
        width: 60px;
        height: 60px;
    }

    .cart-item__info h3 {
        font-size: 0.85rem;
    }

    .empty-state {
        padding: 40px 16px;
    }

    .page-empty {
        padding: 32px 16px;
    }

    .alert {
        font-size: 0.9rem;
        padding: 14px 16px;
    }
}

@media (max-width: 380px) {
    .products {
        grid-template-columns: 1fr;
    }

    .products--row .card {
        min-width: 75vw;
        max-width: 75vw;
    }

    .mobile-buy-bar {
        flex-wrap: wrap;
    }

    .mobile-buy-bar__actions {
        width: 100%;
    }

    .mobile-buy-bar__actions form {
        max-width: none;
    }
}

/* Отключаем hover-эффекты на тач-устройствах */
@media (hover: none) {
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .card:hover .card__media img {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* ——— Лайтбокс (увеличение фото по клику) ——— */
[data-gallery-main] {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.92);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    padding: 24px;
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__img {
    max-width: 92vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    object-fit: contain;
    cursor: zoom-out;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
}

body.lightbox-open {
    overflow: hidden;
}

/* ——— Стрелки навигации по фото товара (влево/вправо) ——— */
.product-gallery__main {
    position: relative;
}

.product-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: background 0.15s ease, transform 0.15s ease;
}

.product-gallery__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.product-gallery__nav--prev {
    left: 12px;
}

.product-gallery__nav--next {
    right: 12px;
}

/* ——— Стрелки навигации в лайтбоксе ——— */
.lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.26);
}

.lightbox__nav--prev {
    left: 20px;
}

.lightbox__nav--next {
    right: 20px;
}

@media (max-width: 640px) {
    .banner-slide h2 {
        margin-bottom: 6px;
    }

    .banner-slide p {
        margin-bottom: 14px;
        font-size: 0.9rem;
    }

    .btn--light {
        padding: 9px 20px;
        font-size: 0.9rem;
    }

    .product-gallery__nav {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .lightbox__nav {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
}
