:root {
    --bg: #2c2c2e;
    --bg-2: #242426;
    --panel: #363638;
    --panel-2: #3f3f42;
    --red: #e31e24;
    --red-h: #c9181e;
    --text: #ffffff;
    --muted: #a8a8ad;
    --border: rgba(255, 255, 255, 0.1);
    --card: #ffffff;
    --light: #f5f5f7;
    --dark: #1a1a1a;
    --ink: #1a1a1a;
    --ok: #2ea44f;
    --radius: 12px;
    --max: 1480px;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: Manrope, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a,
button,
.btn,
.mp-card,
.mp-cat,
.mp-cat-tile,
.mp-side-item,
.mp-hint,
.upk-cat,
.upk-card,
.product-card,
.cat-card,
.search-item {
    transition:
        color 0.28s ease,
        background 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease,
        transform 0.28s ease,
        opacity 0.28s ease,
        filter 0.28s ease;
}

.site-head {
    transition: box-shadow 0.35s ease, background 0.35s ease;
}

.search-dropdown {
    animation: mp-fade-up 0.22s ease;
}

.mp-home,
.mp-catalog,
.product-page,
.wrap.layout {
    animation: none;
}

@media (prefers-reduced-motion: no-preference) {
    .mp-catalog,
    .product-page,
    .wrap.layout {
        animation: mp-page-in 0.45s ease both;
    }
}

@keyframes mp-page-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes mp-fade-up {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes mp-card-enter {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.mp-card-enter {
    animation: mp-card-enter 0.4s ease both;
    animation-delay: var(--enter-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.wrap {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

.site-head {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    color: #fff;
}

.topbar {
    min-height: 48px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--muted);
}

.topbar .wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.top-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.top-links a:hover {
    color: #fff;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar-cta-phone,
.topbar-cta-btn {
    display: grid;
    gap: 1px;
    align-content: center;
    justify-items: center;
    width: 100%;
    min-height: 44px;
    padding: 6px 12px;
    border: 0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.topbar-cta-phone {
    background: transparent;
    color: inherit;
}

.topbar-cta-phone:hover {
    background: rgba(255, 255, 255, 0.06);
}

.topbar-cta-btn {
    background: var(--red);
    color: #fff;
    box-shadow: 0 6px 14px rgba(229, 27, 35, 0.28);
    font: inherit;
}

.topbar-cta-btn:hover {
    background: var(--red-h);
}

.topbar-cta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.72;
    line-height: 1.2;
    white-space: nowrap;
}

.topbar-cta-btn .topbar-cta-label {
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.88);
}

.topbar-cta-value {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    color: #fff;
}

.topbar-cta-or {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

.topbar-socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.social-link img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.social-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.social-link.is-empty {
    opacity: 0.72;
    pointer-events: none;
}

.social-vk,
.social-max {
    background: #fff;
    box-shadow: 0 6px 14px rgba(0, 119, 255, 0.28);
}

.social-max {
    background: transparent;
    box-shadow: 0 6px 14px rgba(71, 26, 255, 0.35);
}

.social-tg {
    background: #2aabee;
    box-shadow: 0 6px 14px rgba(42, 171, 238, 0.35);
}

.header {
    height: 76px;
    background: var(--bg);
    position: relative;
    z-index: 1;
}

.header .wrap,
.header-bar {
    height: 100%;
    display: grid;
    grid-template-columns: auto auto auto 1fr auto;
    gap: 16px;
    align-items: center;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bg-2);
}

.mobile-nav-inner {
    display: grid;
    gap: 4px;
    padding: 12px 0 16px;
}

.mobile-nav-inner a,
.mobile-nav-inner .btn {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
}

.mobile-nav-inner a:hover,
.mobile-nav-inner a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    outline: none;
}

.mobile-nav-phone {
    color: #fff !important;
}

.mobile-nav-inner .btn {
    justify-content: center;
    margin-top: 8px;
}

body.nav-open {
    overflow: hidden;
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
}

.cart-link:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.cart-icon {
    flex: 0 0 auto;
    display: block;
}

.cart-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 99px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.03em;
    color: #fff;
}

.logo span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #a7a7ab;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.15s ease, transform 0.12s ease, opacity 0.15s ease;
}

.btn:active:not(:disabled) {
    transform: scale(0.97);
}

.btn:disabled {
    cursor: wait;
}

.btn-red {
    background: var(--red);
    color: #fff;
}

.btn-red:hover {
    background: var(--red-h);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.header .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.header .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.search {
    display: flex;
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: visible;
    position: relative;
}

.search input {
    flex: 1;
    background: transparent;
    border: 0;
    color: var(--text);
    padding: 0 16px;
    min-height: 46px;
    outline: none;
}

.search button {
    width: 46px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #121920;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgb(0 0 0 / 35%);
    z-index: 40;
    overflow: hidden;
    max-height: min(70vh, 520px);
    overflow-y: auto;
}

.search-group-title {
    padding: 10px 14px 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.search-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    color: #fff;
}

.search-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.search-item small,
.search-item span:last-child {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.search-item.active,
.search-item:hover {
    background: rgba(229, 27, 35, 0.12);
}

.search-all,
.search-empty {
    display: block;
    padding: 12px 14px;
    color: var(--muted);
}

.search-all {
    color: #fff;
    border-top: 1px solid var(--border);
    font-weight: 700;
}

.page-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 0 8px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-2);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.back-link:hover,
.back-link:focus-visible {
    border-color: var(--red);
    color: #fff;
    outline: none;
    background: rgba(227, 30, 36, 0.12);
}

.menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
}

.hero {
    position: relative;
    min-height: 490px;
    display: grid;
    align-items: center;
    overflow: hidden;
}

.mp-home {
    --upk-ink: #1a1a1a;
    --upk-muted: #6b6b6b;
    --upk-line: #e8e8ea;
    --upk-bg: #f5f5f7;
    --upk-soft: #ececef;
    --upk-card: #ffffff;
    --upk-dark: #2c2c2e;
    --upk-dark-2: #242426;
    --upk-red: var(--red);
    --upk-red-h: var(--red-h);
    background: var(--upk-bg);
    color: var(--upk-ink);
    padding: 0 0 64px;
}

.mp-home .wrap {
    width: min(1240px, calc(100% - 40px));
}

.mp-home .btn-red {
    background: var(--upk-red);
}

.mp-home .btn-red:hover {
    background: var(--upk-red-h);
}

.upk-hero {
    background: var(--upk-card);
    color: var(--upk-ink);
    padding: 40px 0 36px;
    border-bottom: 1px solid var(--upk-line);
}

.upk-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 28px;
    align-items: center;
}

.upk-hero-kicker {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--upk-muted);
}

.upk-hero-title {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 15ch;
    color: var(--upk-ink);
}

.upk-hero-title em {
    font-style: normal;
    color: var(--upk-red);
}

.upk-hero-lead {
    margin: 16px 0 0;
    max-width: 44ch;
    color: var(--upk-muted);
    font-size: 16px;
    line-height: 1.5;
}

.upk-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.upk-btn {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 15px;
}

.upk-btn-outline {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 10px;
    border: 1px solid #d4d4d8;
    background: #f5f5f7;
    color: var(--upk-ink);
    font-weight: 700;
}

.upk-btn-outline:hover {
    background: #ebebef;
    border-color: #c4c4c8;
    color: var(--upk-ink);
}

.upk-btn-outline:focus-visible,
.upk-btn:focus-visible,
.upk-section-link:focus-visible,
.upk-cat:focus-visible,
.upk-buy:focus-visible {
    outline: 2px solid var(--upk-red);
    outline-offset: 3px;
}

.upk-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.upk-hero-features li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--upk-muted);
    font-size: 13px;
    font-weight: 600;
}

.upk-feat-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(227, 30, 36, 0.08);
    border: 1px solid rgba(227, 30, 36, 0.2);
    position: relative;
}

.upk-feat-ico::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
}

.upk-feat-delivery::before {
    width: 12px;
    height: 8px;
    border: 2px solid var(--upk-red);
    border-radius: 2px;
}

.upk-feat-price::before {
    width: 8px;
    height: 8px;
    border: 2px solid var(--upk-red);
    border-radius: 50%;
}

.upk-feat-check::before {
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--upk-red);
    border-bottom: 2px solid var(--upk-red);
    transform: rotate(-45deg) translate(1px, -1px);
}

.upk-feat-support::before {
    width: 10px;
    height: 10px;
    border: 2px solid var(--upk-red);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.upk-hero-visual {
    min-width: 0;
}

.upk-hero-mosaic {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    max-width: 420px;
    margin-left: auto;
    height: 260px;
}

.upk-hero-shot {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #ececef;
    border: 1px solid var(--upk-line);
    min-height: 0;
}

.upk-hero-shot-main {
    grid-row: 1 / span 2;
}

.upk-hero-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.upk-hero-shot:not(.upk-hero-shot-main) img {
    object-fit: contain;
    padding: 8px;
    background: #fff;
}

.upk-hero-shot figcaption {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(26, 26, 26, 0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.upk-hero-photo {
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(26, 26, 26, 0.04), rgba(26, 26, 26, 0.12)),
        var(--hero, #e8e8ea) center/cover no-repeat;
    border: 1px solid var(--upk-line);
}

.upk-section {
    padding: 48px 0 0;
}

.upk-section-tight {
    padding-top: 28px;
}

.upk-section-last {
    padding-bottom: 8px;
}

.upk-section-light {
    background: var(--upk-card);
    padding: 48px 0;
    margin-top: 48px;
}

.upk-section-light + .upk-section-light {
    margin-top: 0;
    border-top: 1px solid var(--upk-line);
}

.upk-section-soft {
    background: var(--upk-soft);
    padding: 48px 0;
    margin-top: 0;
}

.upk-section-dark {
    background: var(--upk-dark);
    color: #fff;
    padding: 48px 0;
    margin-top: 0;
}

.upk-section-dark .upk-section-title {
    color: #fff;
}

.upk-section-dark .upk-section-link {
    color: #ff7a80;
}

.upk-section-dark .upk-section-link:hover {
    color: #fff;
}

.upk-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.upk-section-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--upk-ink);
}

.upk-section-link {
    color: var(--upk-red);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.upk-section-link:hover {
    color: var(--upk-red-h);
}

.upk-cats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.upk-cat {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    min-height: 220px;
    padding: 14px;
    background: var(--upk-dark-2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    color: #fff;
}

.upk-cat:hover {
    border-color: rgba(227, 30, 36, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.upk-cat-media {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.upk-cat-media img {
    width: 76%;
    height: 76%;
    object-fit: contain;
}

.upk-cat-body {
    display: grid;
    gap: 4px;
    align-content: start;
}

.upk-cat-name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.upk-cat-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.upk-cat-arrow {
    justify-self: end;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 14px;
}

.upk-cat:hover .upk-cat-arrow {
    background: var(--upk-red);
    color: #fff;
}

.upk-opt {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto minmax(220px, 0.8fr);
    gap: 20px;
    align-items: center;
    min-height: 190px;
    padding: 28px 32px;
    border-radius: 16px;
    overflow: hidden;
    color: #fff;
    background: var(--upk-dark-2) var(--promo, var(--upk-dark-2)) center/cover no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.upk-opt-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(36, 36, 38, 0.96) 0%, rgba(36, 36, 38, 0.82) 50%, rgba(36, 36, 38, 0.72) 100%);
}

.upk-opt-main,
.upk-opt-badge,
.upk-opt-list {
    position: relative;
    z-index: 1;
}

.upk-opt-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--upk-red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.upk-opt-title {
    margin: 12px 0 0;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.2;
    font-weight: 800;
    white-space: pre-line;
    max-width: 18ch;
}

.upk-opt-text {
    margin: 10px 0 0;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.45;
}

.upk-opt-main .upk-btn {
    margin-top: 16px;
}

.upk-opt-badge {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--upk-red);
    display: grid;
    place-content: center;
    text-align: center;
    box-shadow: 0 10px 28px rgba(227, 30, 36, 0.4);
    transform: rotate(-8deg);
}

.upk-opt-badge strong {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.9;
}

.upk-opt-badge b {
    font-size: 28px;
    line-height: 1;
    font-weight: 800;
}

.upk-opt-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.upk-opt-list li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.upk-opt-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--upk-red);
}

.upk-banners {
    position: relative;
}

.upk-banners-viewport {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #121820;
    height: 300px;
}

.upk-banner {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 24px;
    align-items: center;
    padding: 28px 72px 32px 32px;
    background:
        linear-gradient(105deg, rgba(8, 12, 16, 0.94) 0%, rgba(8, 12, 16, 0.72) 42%, rgba(8, 12, 16, 0.45) 100%),
        var(--banner-img) center / cover no-repeat;
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
    box-sizing: border-box;
    overflow: hidden;
}

.upk-banner.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 1;
}

.upk-banner.is-leaving {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-18px);
    z-index: 2;
}

.upk-banner-copy {
    display: grid;
    gap: 12px;
    justify-items: start;
    max-width: 560px;
    min-width: 0;
    align-content: center;
}

.upk-banner-tag {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--upk-red, #e51b23);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.upk-banner-title {
    margin: 0;
    font-size: clamp(24px, 3.2vw, 36px);
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.15em * 2);
}

.upk-banner-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.5;
    max-width: 46ch;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: calc(1.5em * 3);
}

.upk-banner-side {
    display: grid;
    justify-items: center;
    gap: 16px;
}

.upk-banner-badge {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: var(--upk-red, #e51b23);
    color: #fff;
    display: grid;
    place-content: center;
    text-align: center;
    box-shadow: 0 12px 28px rgba(229, 27, 35, 0.35);
}

.upk-banner-badge strong {
    font-size: 14px;
    font-weight: 700;
}

.upk-banner-badge b {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.upk-banner-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.upk-banner-list li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.upk-banner-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--upk-red, #e51b23);
}

.upk-banners-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(12, 17, 22, 0.72);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
}

.upk-banners-btn-prev {
    left: 12px;
}

.upk-banners-btn-next {
    right: 12px;
}

.upk-banners-btn:hover {
    border-color: rgba(229, 27, 35, 0.55);
    background: rgba(229, 27, 35, 0.28);
}

.upk-banners-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.upk-banners-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.upk-banners-dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: var(--upk-red, #e51b23);
}

@media (max-width: 767px) {
    .upk-banners-viewport {
        height: 360px;
    }

    .upk-banner {
        grid-template-columns: 1fr;
        padding: 22px 52px 26px 18px;
        gap: 16px;
        align-content: center;
    }

    .upk-banner-side {
        justify-items: start;
        grid-auto-flow: column;
        align-items: center;
        gap: 14px;
    }

    .upk-banner-badge {
        width: 84px;
        height: 84px;
    }

    .upk-banner-badge b {
        font-size: 22px;
    }

    .upk-banner-title {
        font-size: clamp(22px, 6vw, 28px);
        -webkit-line-clamp: 2;
        min-height: calc(1.15em * 2);
    }

    .upk-banner-text {
        font-size: 14px;
        -webkit-line-clamp: 3;
        min-height: calc(1.5em * 3);
    }

    .upk-banners-btn {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
}

.upk-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.upk-card {
    background: var(--upk-card);
    border: 1px solid var(--upk-line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: 0 2px 10px rgba(26, 26, 26, 0.04);
}

.upk-card:hover {
    box-shadow: 0 12px 24px rgba(26, 26, 26, 0.08);
}

.upk-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f7f7f8;
}

.upk-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.upk-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    background: var(--upk-red);
    color: #fff;
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 700;
}

.upk-card-body {
    display: grid;
    gap: 6px;
    padding: 12px;
    flex: 1;
}

.upk-card-title {
    color: var(--upk-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.upk-card-meta {
    color: var(--upk-muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.upk-card-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.upk-card-stock span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9ca3af;
}

.upk-card-stock.is-ok {
    color: #15803d;
}

.upk-card-stock.is-ok span {
    background: #22c55e;
}

.upk-card-stock.is-wait {
    color: #a16207;
}

.upk-card-stock.is-wait span {
    background: #eab308;
}

.upk-card-price {
    color: var(--upk-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.upk-card-price .old {
    margin-left: 6px;
    color: #9ca3af;
    font-size: 13px;
    font-weight: 600;
    text-decoration: line-through;
}

.upk-card-actions {
    margin-top: auto;
    padding-top: 4px;
}

.upk-buy {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    border-radius: 10px;
    font-size: 13px;
    background: var(--upk-red);
}

.upk-buy:hover {
    background: var(--upk-red-h);
}

.upk-trust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 0;
}

.upk-trust-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 4px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.upk-trust-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(227, 30, 36, 0.08);
    border: 1px solid rgba(227, 30, 36, 0.16);
    position: relative;
}

.upk-trust-ico::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 14px;
    height: 14px;
    border: 2px solid var(--upk-red);
    border-radius: 4px;
}

.upk-trust-item strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--upk-ink);
}

.upk-trust-item p {
    margin: 0;
    color: var(--upk-muted);
    font-size: 13px;
    line-height: 1.4;
}

.upk-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.8fr) minmax(220px, 0.9fr);
    gap: 20px;
    align-items: center;
    padding: 28px;
    background: var(--upk-card);
    border: 1px solid var(--upk-line);
    border-radius: 16px;
}

.upk-lead-title {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 18ch;
    color: var(--upk-ink);
}

.upk-lead-text {
    margin: 12px 0 0;
    max-width: 40ch;
    color: var(--upk-muted);
    font-size: 15px;
    line-height: 1.5;
}

.upk-lead-copy .upk-btn {
    margin-top: 20px;
}

.upk-lead-media {
    min-height: 180px;
    border-radius: 14px;
    background: #f3f4f6 var(--lead, #f3f4f6) center/cover no-repeat;
}

.upk-lead-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.upk-lead-list li {
    position: relative;
    padding-left: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--upk-ink);
}

.upk-lead-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(227, 30, 36, 0.1);
    box-shadow: inset 0 0 0 2px rgba(227, 30, 36, 0.35);
}

.upk-lead-list li::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 0.45em;
    width: 7px;
    height: 4px;
    border-left: 2px solid var(--upk-red);
    border-bottom: 2px solid var(--upk-red);
    transform: rotate(-45deg);
}

.upk-empty {
    display: grid;
    gap: 14px;
    justify-items: start;
    padding: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.upk-section-light .upk-empty,
.upk-section-soft .upk-empty {
    background: var(--upk-card);
    border-color: #d1d5db;
    color: var(--upk-muted);
}

.upk-empty p {
    margin: 0;
}


.mp-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.mp-card {
    background: #fff;
    color: var(--ink);
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: var(--shadow-soft);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mp-card:hover {
    transform: translateY(-3px);
    border-color: rgba(227, 30, 36, 0.28);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.mp-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f4f6f8;
}

.mp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.mp-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
    background: var(--red);
    color: #fff;
    border-radius: 6px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 700;
}

.mp-card-body {
    display: grid;
    gap: 6px;
    padding: 10px 10px 12px;
    flex: 1;
}

.mp-card-price {
    color: #121920;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.mp-card-price .old {
    margin-left: 6px;
    color: #8b949c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: line-through;
}

.mp-card-title {
    color: #1b2430;
    font-size: 13px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.mp-card-meta {
    color: #6b7480;
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mp-card-actions {
    margin-top: auto;
    padding-top: 4px;
}

.mp-buy {
    width: 100%;
    justify-content: center;
    padding: 9px 10px;
    font-size: 13px;
}

.card-buy {
    display: grid;
    gap: 8px;
    width: 100%;
}

.card-qty {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    height: 40px;
    border: 1px solid #e5e5e8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.card-qty button {
    height: 100%;
    border: 0;
    background: #f5f5f7;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.card-qty button:hover {
    background: #ececef;
}

.card-qty button:active {
    background: #e0e0e4;
}

.card-qty input {
    width: 100%;
    height: 100%;
    border: 0;
    border-left: 1px solid #e5e5e8;
    border-right: 1px solid #e5e5e8;
    text-align: center;
    font: inherit;
    font-weight: 700;
    color: #1a1a1a;
    background: #fff;
    padding: 0 4px;
    -moz-appearance: textfield;
}

.card-qty input::-webkit-outer-spin-button,
.card-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.card-qty-lg {
    height: 44px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    background: var(--dark);
    border-color: var(--border);
}

.card-qty-lg button {
    background: var(--panel);
    color: #fff;
}

.card-qty-lg button:hover {
    background: var(--panel-2);
}

.card-qty-lg input {
    background: var(--dark);
    color: #fff;
    border-left-color: var(--border);
    border-right-color: var(--border);
}

[data-add-cart].is-adding,
#add-to-cart.is-adding,
#sticky-add-to-cart.is-adding {
    opacity: 0.85;
    transform: scale(0.98);
}

[data-add-cart].is-added,
#add-to-cart.is-added,
#sticky-add-to-cart.is-added {
    background: #1f9d4a !important;
}

.cart-badge-pulse {
    animation: cart-badge-pulse 0.45s ease;
}

@keyframes cart-badge-pulse {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
    }
}

.mp-shelf {
    padding: 14px 0 22px;
}

.mp-shelf-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mp-shelf-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #121920;
}

.mp-shelf-head a {
    color: #6b7480;
    font-size: 14px;
    white-space: nowrap;
}

.mp-shelf-head a:hover {
    color: var(--red);
}



.quick-cats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.quick-cat {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 96px;
    padding: 10px 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: #fff;
}

.quick-cat:hover {
    border-color: rgba(229, 27, 35, 0.5);
    transform: translateY(-1px);
}

.quick-cat-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.quick-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.quick-cat-title {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
}

.quick-cat-arrow {
    color: var(--muted);
}

.quick-cat-all {
    grid-template-columns: minmax(0, 1fr) auto;
    background: rgba(229, 27, 35, 0.12);
    border-color: rgba(229, 27, 35, 0.35);
}

.home-catalog-cta {
    display: flex;
    justify-content: center;
    margin: 18px 0 8px;
}

.home-benefits {
    padding: 8px 0 18px;
}

.benefit-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.benefit-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    display: grid;
    gap: 4px;
}

.benefit-item strong {
    font-size: 18px;
}

.benefit-item span {
    color: var(--muted);
    font-size: 13px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 17, 22, 0.92) 0%, rgba(12, 17, 22, 0.55) 52%, rgba(12, 17, 22, 0.35) 100%),
        var(--hero, #121920) center/cover no-repeat;
}

.hero .wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    padding: 48px 0;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 56px);
    line-height: 0.98;
    font-weight: 800;
    letter-spacing: -0.04em;
    white-space: pre-line;
}

.hero h1 b {
    color: var(--red);
    font-weight: 800;
}

.hero p {
    color: var(--muted);
    margin: 18px 0 28px;
    font-size: 18px;
}

.hero-art {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    min-height: 340px;
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    background: #10171e;
}

.hero-art img:first-child {
    grid-row: span 2;
    min-height: 280px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -28px;
    position: relative;
    z-index: 2;
}

.benefit {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 88px;
}

.benefit strong {
    display: block;
    font-size: 15px;
}

.benefit span {
    color: var(--muted);
    font-size: 13px;
}

.ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(229, 27, 35, 0.12);
    color: var(--red);
    display: grid;
    place-items: center;
    flex: none;
}

.section {
    padding: 56px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 22px;
}

h2 {
    font-size: 32px;
    letter-spacing: -0.03em;
}

.more {
    color: var(--muted);
    font-weight: 700;
}

.more:hover {
    color: var(--red);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cat-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    min-height: 168px;
    display: flex;
    flex-direction: column;
    transition: transform 200ms, border-color 200ms;
}

.cat-card img {
    height: 110px;
    width: 100%;
    object-fit: cover;
    transition: transform 200ms;
}

.cat-card div {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

.cat-card:hover {
    border-color: var(--red);
    transform: translateY(-3px);
}

.cat-card:hover img {
    transform: scale(1.03);
}

.mp-catalog {
    padding: 16px 0 56px;
}

.mp-catalog-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.mp-side {
    position: sticky;
    top: 100px;
    background: var(--card);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 14px;
    max-height: calc(100vh - 120px);
    overflow: auto;
    color: var(--ink);
    box-shadow: var(--shadow);
}

.mp-side-title {
    font-size: 12px;
    font-weight: 800;
    color: #8a8a90;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 8px 12px;
}

.mp-side-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    color: #24303c;
    margin-bottom: 4px;
}

.mp-side-item:hover,
.mp-side-item.is-active {
    background: rgba(227, 30, 36, 0.1);
    color: var(--ink);
}

.mp-side-item.is-active {
    box-shadow: inset 3px 0 0 var(--red);
}

.mp-side-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light);
    border: 1px solid #e8e8ea;
    display: grid;
    place-items: center;
}

.mp-side-ico img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.mp-side-ico-all {
    background: rgba(229, 27, 35, 0.12);
    color: var(--red);
    font-size: 16px;
    border-color: rgba(229, 27, 35, 0.2);
}

.mp-side-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mp-catalog-main {
    background: var(--bg-2);
    border-radius: 18px;
    padding: 22px;
    min-width: 0;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    color: var(--text);
}

.mp-catalog-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.mp-catalog-head h1 {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 32px);
    color: #fff;
    letter-spacing: -0.02em;
}

.mp-catalog-desc {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    max-width: 60ch;
}

.mp-catalog-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.mp-catalog-count {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.mp-sort {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
}

.mp-catalog-main select {
    background: var(--panel);
    color: #fff;
    border: 1px solid var(--border);
}

.mp-cat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.mp-cat-tile {
    background: #fff;
    color: #121920;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #e7ebef;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.mp-cat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

.mp-cat-tile-media {
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
}

.mp-cat-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.mp-cat-tile-name {
    padding: 10px 12px 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    background: #fff;
    border-top: 1px solid #f0f2f4;
}

.mp-catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mp-catalog-empty {
    color: var(--muted);
    margin-top: 12px;
}

.mp-catalog-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.mp-catalog-grid > .mp-card {
    animation: mp-card-enter 0.4s ease both;
    border: 1px solid #e7ebef;
}

.mp-load-more {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 28px;
    padding-bottom: 8px;
}

.mp-load-more-btn {
    min-width: 200px;
    justify-content: center;
}

.mp-load-more-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.mp-load-more-hint {
    color: var(--muted);
    font-size: 13px;
}

.mp-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    color: var(--muted);
    color: #5b6672;
    font-size: 14px;
}

.products-btn {
    white-space: nowrap;
}

.mp-hint {
    background: #fff;
    color: #24303c;
}

.mp-hint:hover {
    background: #fff;
    color: var(--red);
    box-shadow: 0 0 0 2px rgba(229, 27, 35, 0.25);
}

.mp-chips span {
    background: #fff;
    border: 1px solid #e7ebef;
    color: #3a4550;
}

.mp-cat-ico {
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.search {
    background: #fff;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.search input {
    color: #121920;
}

.search input::placeholder {
    color: #8b949c;
}

.search button {
    color: var(--red);
}

.search-dropdown {
    background: #fff;
    color: #121920;
    border: 1px solid #e7ebef;
}

.search-item,
.search-all {
    color: #24303c;
}

.search-item.active,
.search-item:hover,
.search-all:hover {
    background: #f4f6f8;
}

.search-group-title,
.search-empty,
.search-item small,
.search-item span:last-child {
    color: #6b7480;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    background: var(--card);
    color: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e4e7ea;
    display: flex;
    flex-direction: column;
    transition: transform 200ms, box-shadow 200ms;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgb(0 0 0 / 18%);
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f4f6f8;
}

.product-card .thumb-frame {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f4f6f8;
    padding: 12px;
}

.variant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.variant-chips-label {
    color: #6b7580;
    font-size: 12px;
    font-weight: 700;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    background: #eef1f4;
    color: #2b333b;
    font-size: 12px;
    font-weight: 700;
}

.chip.more {
    background: rgba(229, 27, 35, 0.1);
    color: var(--red);
}

.option-block {
    margin: 16px 0;
}

.option-label {
    font-weight: 800;
    margin-bottom: 8px;
}

.option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-btn {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.option-btn.active {
    border-color: var(--red);
    box-shadow: inset 0 0 0 1px var(--red);
    background: rgba(227, 30, 36, 0.16);
}

.option-btn.disabled {
    opacity: 0.45;
    text-decoration: line-through;
    cursor: not-allowed;
}

.option-btn:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.product-card .body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-card h3 {
    font-size: 16px;
    line-height: 1.3;
}

.sku,
.meta {
    color: #6b7580;
    font-size: 13px;
}

.price {
    font-weight: 800;
    font-size: 18px;
}

.old {
    color: #8a939c;
    text-decoration: line-through;
    font-weight: 600;
    margin-left: 6px;
}

.badge {
    position: absolute;
    margin: 10px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
}

.thumb {
    position: relative;
}

.promo {
    border-radius: 16px;
    min-height: 280px;
    overflow: hidden;
    position: relative;
    display: grid;
    align-items: center;
}

.promo-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 17, 22, 0.88), rgba(12, 17, 22, 0.35)),
        var(--promo) center/cover no-repeat;
}

.promo .inner {
    position: relative;
    padding: 40px;
    max-width: 620px;
}

.promo h2 {
    white-space: pre-line;
    margin-bottom: 12px;
}

.promo ul {
    margin: 16px 0 22px;
    color: var(--muted);
    padding-left: 18px;
}

.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding: 32px 0 64px;
}

.sidebar {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
}

.sidebar a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--muted);
}

.sidebar a.active,
.sidebar a:hover {
    background: rgba(229, 27, 35, 0.12);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--red);
}

.crumbs {
    color: var(--muted);
    font-size: 13px;
}

.crumbs a:hover {
    color: #fff;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0 20px;
    color: var(--muted);
}

select {
    background: var(--panel);
    color: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 10px;
}

.product-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    padding: 28px 0 56px;
}

.product-page > div:last-child {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.product-page h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.8vw, 34px);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.gallery .main-frame {
    background: var(--card);
    border-radius: 18px;
    aspect-ratio: 1 / 1;
    padding: 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow);
}

.gallery img.main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
}

.thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.thumb-btn {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
}

.thumbs img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
}

.avail {
    color: var(--ok);
    font-weight: 700;
}

.qty {
    width: 88px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 8px;
    min-height: 44px;
    padding: 0 10px;
}

.buy-box {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.buy-price .price {
    font-size: 28px;
    margin: 0 0 4px;
    line-height: 1.2;
}

.buy-price .meta {
    margin: 0;
}

.buy-cart {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 12px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.buy-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    min-width: 0;
}

.buy-qty > span {
    color: var(--muted);
    white-space: nowrap;
}

.buy-qty .card-qty {
    width: 148px;
}

.buy-add {
    min-height: 44px;
    width: 100%;
}

.buy-cart-link {
    grid-column: 1 / -1;
    color: var(--muted);
    font-weight: 700;
    font-size: 14px;
    width: fit-content;
}

.buy-cart-link:hover {
    color: #fff;
}

.buy-cart .cart-toast {
    grid-column: 1 / -1;
    margin: 0;
}

.buy-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.buy-contact-call,
.buy-contact-request {
    display: grid;
    gap: 2px;
    align-content: center;
    justify-items: center;
    width: 100%;
    min-height: 52px;
    padding: 8px 12px;
    border: 0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, filter 0.15s ease;
}

.buy-contact-call {
    background: transparent;
    color: inherit;
}

.buy-contact-call:hover {
    background: rgba(255, 255, 255, 0.06);
}

.buy-contact-request {
    background: var(--red);
    color: #fff;
    font: inherit;
    box-shadow: 0 6px 14px rgba(229, 27, 35, 0.28);
}

.buy-contact-request:hover {
    background: var(--red-h);
}

.buy-contact-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.72;
    line-height: 1.2;
}

.buy-contact-request .buy-contact-label {
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.88);
}

.buy-contact-value {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

.buy-contact-or {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.sticky-cta {
    display: none;
}

.specs {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 28px;
}

.specs td {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.specs td:first-child {
    color: var(--muted);
    width: 40%;
}

.page-content {
    padding: 32px;
    max-width: 860px;
    margin: 24px auto 56px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.page-content h1 {
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.page-content p,
.page-content li {
    color: var(--muted);
    margin-bottom: 12px;
}

.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 48px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
    gap: 24px;
}

.footer h3 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 15px;
}

.footer a,
.footer p {
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.footer a:hover {
    color: #fff;
}

.copy {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 55%);
    display: none;
    place-items: center;
    z-index: 50;
    padding: 16px;
}

.modal.open {
    display: grid;
}

.modal-card {
    width: min(460px, 100%);
    background: var(--bg-2);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.modal-card h2 {
    font-size: 24px;
    margin-bottom: 12px;
    padding-right: 36px;
}

.field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
}

.field input,
.field textarea {
    background: var(--dark);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 10px;
    padding: 12px;
}

.field input.is-invalid,
.field textarea.is-invalid {
    border-color: #ff8a90;
}

.field-error {
    color: #ff8a90;
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
}

.field-error[hidden] {
    display: none !important;
}

.form-result .form-err,
.form-err {
    color: #ff8a90;
    margin-top: 10px;
    font-weight: 600;
}

.hp {
    position: absolute;
    left: -9999px;
}

.form-msg {
    margin-top: 10px;
    color: var(--ok);
}

.hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    margin-top: 10px;
}

@media (max-width: 1199px) {
    .hero .wrap,
    .home-hero-grid,
    .product-page,
    .layout,
    .benefits,
    .benefit-strip,
    .cat-grid,
    .product-grid,
    .quick-cats,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .mp-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .upk-cats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .upk-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .upk-opt {
        grid-template-columns: 1fr auto;
    }

    .upk-opt-list {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .upk-trust {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .upk-lead {
        grid-template-columns: 1fr 1fr;
    }

    .upk-lead-list {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .upk-hero-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .upk-hero-visual {
        order: -1;
    }

    .upk-hero-mosaic {
        height: 220px;
        max-width: 360px;
        margin: 0 auto;
        grid-template-columns: 1.2fr 1fr;
    }

    .upk-hero-photo {
        aspect-ratio: 16 / 9;
        max-height: 280px;
    }

    .upk-hero-title {
        max-width: none;
    }

    .mp-catalog-layout {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .mp-cat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .mp-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quick-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .header .wrap,
    .header-bar {
        grid-template-columns: auto auto auto 1fr auto;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-side {
        position: static;
    }
}

@media (max-width: 767px) {
    .wrap {
        width: min(var(--max), calc(100% - 24px));
    }

    .top-links {
        display: none;
    }

    .topbar .wrap {
        justify-content: center;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .topbar-actions {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .topbar-socials {
        display: none;
    }

    .topbar-cta {
        width: 100%;
        max-width: none;
        grid-template-columns: 1fr 1fr;
        column-gap: 8px;
    }

    .topbar-cta-or {
        display: none;
    }

    .topbar-cta-phone,
    .topbar-cta-btn {
        padding: 8px 10px;
        min-height: 42px;
    }

    .topbar-cta-value {
        font-size: 13px;
    }

    .topbar-cta-label {
        font-size: 10px;
    }

    .header {
        height: auto;
        position: sticky;
        top: 0;
        z-index: 40;
        background: var(--bg);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .header-bar {
        height: auto;
        min-height: 64px;
        padding: 10px 0;
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "logo cart menu"
            "search search search";
        gap: 10px;
    }

    .header-bar .logo {
        grid-area: logo;
        min-width: 0;
    }

    .header-bar .logo span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-bar .catalog-btn,
    .header-bar .products-btn {
        display: none;
    }

    .header-bar .search {
        grid-area: search;
        width: 100%;
        min-width: 0;
    }

    .header-bar .cart-link {
        grid-area: cart;
    }

    .header-bar .menu-btn {
        grid-area: menu;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 10px;
        font-size: 18px;
        line-height: 1;
    }

    .header.open .mobile-nav {
        display: block;
    }

    .cart-link {
        padding: 0;
        width: 44px;
    }

    .cart-link-text {
        display: none;
    }

    .cart-badge {
        position: absolute;
        top: -4px;
        right: -4px;
    }

    .logo {
        font-size: 17px;
    }

    .logo span {
        font-size: 10px;
    }

    .hero,
    .hero .wrap,
    .home-hero-grid,
    .benefits,
    .benefit-strip,
    .cat-grid,
    .product-grid,
    .quick-cats,
    .layout,
    .product-page,
    .footer-grid,
    .copy,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .mp-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .mp-catalog-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
        scroll-snap-type: none;
        padding-bottom: 0;
        gap: 10px;
    }

    .mp-catalog-layout {
        grid-template-columns: 1fr;
    }

    .mp-side {
        position: static;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        max-height: none;
        padding: 10px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .mp-side-title {
        display: none;
    }

    .mp-side-item {
        flex: 0 0 auto;
        width: 96px;
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        margin: 0;
        padding: 8px;
    }

    .mp-side-name {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }

    .mp-catalog-head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .mp-catalog-grid .mp-card {
        flex: none;
        max-width: none;
        width: auto;
    }

    .mp-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mp-card {
        flex: 0 0 46%;
        max-width: 180px;
        scroll-snap-align: start;
    }

    .mp-home {
        padding-bottom: 40px;
    }

    .mp-home .wrap {
        width: min(1240px, calc(100% - 24px));
    }

    .upk-hero {
        padding: 20px 0 18px;
    }

    .upk-hero-photo {
        max-height: 200px;
        border-radius: 14px;
    }

    .upk-hero-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        height: auto;
        max-width: none;
        margin: 0;
        gap: 8px;
    }

    .upk-hero-shot-main {
        grid-column: 1 / -1;
        grid-row: auto;
        height: 140px;
    }

    .upk-hero-shot:not(.upk-hero-shot-main) {
        height: 92px;
    }

    .upk-hero-shot figcaption {
        font-size: 11px;
        padding: 6px 8px;
    }

    .upk-hero-title {
        max-width: none;
        font-size: clamp(24px, 7vw, 30px);
        line-height: 1.12;
    }

    .upk-hero-lead {
        font-size: 14px;
    }

    .upk-hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .upk-btn,
    .upk-btn-outline {
        width: 100%;
        justify-content: center;
    }

    .upk-hero-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 10px;
        margin-top: 18px;
    }

    .upk-hero-features li {
        font-size: 12px;
        gap: 6px;
    }

    .upk-feat-ico {
        width: 24px;
        height: 24px;
        flex: 0 0 auto;
    }

    .upk-section {
        padding-top: 28px;
    }

    .upk-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 14px;
    }

    .upk-section-title {
        font-size: 20px;
    }

    .upk-cats,
    .upk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .upk-cat {
        min-height: 0;
        padding: 12px;
    }

    .upk-cat-desc {
        display: none;
    }

    .upk-card-actions .card-buy {
        gap: 6px;
    }

    .upk-card-actions .card-qty {
        height: 36px;
        grid-template-columns: 32px minmax(0, 1fr) 32px;
    }

    .upk-buy,
    .mp-buy {
        min-height: 40px;
        font-size: 12px;
        padding: 8px;
    }

    .upk-opt {
        grid-template-columns: 1fr;
        padding: 18px 14px;
        gap: 14px;
    }

    .upk-opt-badge {
        width: 84px;
        height: 84px;
        justify-self: start;
    }

    .upk-opt-list {
        grid-template-columns: 1fr;
    }

    .upk-trust {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .upk-lead {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .upk-lead-list {
        grid-template-columns: 1fr;
    }

    .upk-lead-media {
        min-height: 140px;
        order: -1;
    }

    .quick-cat {
        min-height: 84px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .sticky-cta {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        position: sticky;
        bottom: 0;
        z-index: 20;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: var(--bg-2);
        border-top: 1px solid var(--border);
    }

    .hero-art {
        display: none;
    }

    .cart-page {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .cart-page h1 {
        font-size: 28px;
    }

    .cart-item {
        grid-template-columns: 64px 1fr;
        gap: 12px;
        padding: 12px;
        align-items: start;
    }

    .cart-info h2 {
        font-size: 16px;
    }

    .cart-qty {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .cart-qty label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .cart-qty input {
        margin-left: 0;
        width: 72px;
    }

    .cart-line-total {
        font-size: 16px;
    }

    .cart-summary,
    .cart-form {
        padding: 14px;
    }

    .cart-form .btn {
        width: 100%;
    }

    .buy-cart {
        grid-template-columns: 1fr;
    }

    .buy-qty {
        width: 100%;
        justify-content: space-between;
    }

    .buy-qty .card-qty {
        width: min(180px, 100%);
        flex: 1;
    }

    .buy-add {
        width: 100%;
    }

    .buy-contact {
        column-gap: 10px;
    }

    .buy-contact-value {
        font-size: 14px;
    }

    .buy-contact-label {
        font-size: 10px;
    }

    .product-page .actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .product-page .actions .btn,
    .product-card .actions {
        width: 100%;
    }

    .product-card .actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .qty-row input {
        width: 100%;
        max-width: 120px;
        margin-left: 0;
    }

    .modal {
        padding: 0;
        align-items: end;
    }

    .modal-card {
        width: 100%;
        max-height: min(92vh, 100%);
        overflow: auto;
        border-radius: 16px 16px 0 0;
        padding: 22px 16px calc(18px + env(safe-area-inset-bottom));
    }

    .option-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .footer {
        padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .footer-grid {
        gap: 22px;
    }

    .mp-catalog-tools {
        flex-wrap: wrap;
        gap: 8px;
    }

    .mp-catalog-tools select {
        width: 100%;
    }

    .crumbs {
        font-size: 12px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
    }

    .crumbs::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 480px) {
    .upk-cats,
    .upk-grid,
    .mp-catalog-grid,
    .mp-cat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .upk-hero-features {
        grid-template-columns: 1fr;
    }

    .upk-hero-shot-main {
        height: 120px;
    }

    .topbar-cta-value {
        font-size: 12px;
    }

    .card-buy {
        gap: 6px;
    }
}

.qty-row {
    margin-bottom: 8px;
}

.qty-row input,
.cart-qty input {
    width: 88px;
    background: var(--panel);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 8px;
    padding: 8px 10px;
    margin-left: 8px;
}

.cart-toast {
    margin-top: 10px;
    color: var(--ok);
    font-weight: 700;
}

.cart-page {
    padding-bottom: 64px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-top: 24px;
}

.cart-item {
    display: grid;
    grid-template-columns: 96px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.cart-summary,
.cart-form {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
}

.cart-form input,
.cart-form textarea {
    background: var(--dark);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.cart-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: 10px;
    padding: 8px;
}

.cart-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-info h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.cart-qty {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.cart-line-total {
    font-weight: 800;
    font-size: 18px;
    min-width: 90px;
    text-align: right;
}

.cart-side {
    position: sticky;
    top: 148px;
    align-self: start;
}

.cart-summary,
.cart-form {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-soft);
}

.cart-form .field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 13px;
}

.cart-form input,
.cart-form textarea {
    background: var(--dark);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
}

.cart-alert {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 10px;
}

.cart-alert.ok {
    background: rgba(88, 180, 110, 0.14);
    color: #9fd6a8;
}

.cart-alert.err {
    background: rgba(229, 27, 35, 0.14);
    color: #ff9aa0;
}

.product-card .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.product-card .actions .card-buy {
    flex: 1 1 100%;
}

@media (max-width: 980px) and (min-width: 768px) {
    .mp-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mp-catalog-layout {
        grid-template-columns: 1fr;
    }

    .mp-side {
        position: static;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        max-height: none;
        padding: 10px;
        scrollbar-width: thin;
    }

    .mp-side-title {
        display: none;
    }

    .mp-side-item {
        flex: 0 0 auto;
        width: 108px;
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        margin: 0;
        padding: 8px;
    }

    .mp-side-name {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .mp-cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mp-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mp-catalog-head {
        flex-direction: column;
        align-items: stretch;
    }

    .mp-catalog-tools {
        justify-content: space-between;
    }
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-side {
        position: static;
    }

    .cart-item {
        grid-template-columns: 72px 1fr;
    }

    .cart-qty,
    .cart-line-total {
        grid-column: 1 / -1;
    }

    .cart-line-total {
        text-align: left;
    }
}
