/* ============================================================
   NEOPTOM 3.0 — Design System
   Структура: Desktop base → Tablet → Mobile → Small → 320px
   ============================================================ */

/* === VARIABLES === */
:root {
    --warehouse-gray: #F5F5F5;
    --graphite: #262626;
    --signal-orange: #FF5722;
    --border-gray: #D1D5DB99;
    --white: #FFFFFF;
    --font-sans: 'JetBrains Mono', monospace;
    --font-mono: 'JetBrains Mono', monospace;
    --font-heading: 'Roboto Mono', monospace;
    /* Высота хедера — используется для top sticky-элементов */
    --header-h: 58px;
    --grey-text: #667788ee;

    /* Mirror Gradients */
    --mirror-standart: linear-gradient(135deg, #f8f9fb 0%, #e8eaee 25%, #ffffff 50%, #d8dce2 75%, #eef0f3 100%);
    --mirror-grafit: linear-gradient(135deg, #3a3d42 0%, #5a5e65 30%, #4a4e55 55%, #2e3035 80%, #6a6e76 100%);
    --mirror-bronza: linear-gradient(135deg, #c49a6c 0%, #e8c49a 30%, #d4a870 55%, #b8864c 80%, #ddb882 100%);
}

/* === RESET === */
* {
    box-sizing: border-box;
    border-radius: 0 !important;
    margin: 0;
    padding: 0;
}

input,
textarea {
    caret-color: var(--signal-orange);
}

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

::selection {
    background-color: var(--signal-orange);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--signal-orange);
    color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
}

/* === BASE === */
html,
body {
    background-color: var(--warehouse-gray);
    color: var(--graphite);
    font-family: var(--font-sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* clip — обрезает overflow БЕЗ создания scroll-контейнера,
       поэтому position:sticky работает корректно */
    overflow-x: clip;
    width: 100%;
    -webkit-text-size-adjust: 100%;


--bg-color: #f8f9fa;
    --dot-color: #adb5bd66;
    --dot-size: 1.5px;
    --spacing: 1.5rem;
    /* background-color: var(--bg-color); */
    background-image: radial-gradient(circle, var(--dot-color) var(--dot-size), transparent var(--dot-size));
    background-size: var(--spacing) var(--spacing);
    background-attachment: fixed;

}

/* ============================================================
   COMPONENTS
   ============================================================ */

/* --- Top micro bar (mobile only) --- */
.nav-micro-bar {
    background: var(--graphite);
    color: var(--white);
    font-size: 13px;
    padding: 6px 1.5rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.nav-micro-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 30px;
    width: 100%;
    overflow: hidden;
    flex-wrap: nowrap;
}

.nav-micro-phone {
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-micro-address-wrapper {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.nav-bracket {
    font-weight: 700;
    flex-shrink: 0;
}

.nav-micro-address-scroller {
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    container-type: inline-size;
    min-width: 0;
    width: var(--street-width, 100%);
}

.nav-micro-address {
    display: inline-block;
    white-space: nowrap;
    will-change: transform;
}

@media (min-width: 1024px) {
    .nav-micro-container {
        justify-content: space-between;
    }
    .nav-micro-address-wrapper {
        flex-grow: 0;
        justify-content: flex-end;
    }
    .nav-micro-address-scroller {
        flex-grow: 0;
        overflow: visible;
        container-type: normal;
        width: auto;
    }
}

.nav-micro-address.is-marquee {
    animation: marquee-rtl-pause 10s linear infinite;
}

@keyframes marquee-rtl-pause {
    0% { transform: translateX(100cqi); opacity: 1; }
    50% { transform: translateX(var(--scroll-stop)); opacity: 1; }
    70% { transform: translateX(var(--scroll-stop)); opacity: 1; }
    75% { transform: translateX(var(--scroll-stop)); opacity: 0; }
    80% { transform: translateX(var(--scroll-stop)); opacity: 1; }
    85% { transform: translateX(var(--scroll-stop)); opacity: 0; }
    90% { transform: translateX(var(--scroll-stop)); opacity: 1; }
    95% { transform: translateX(var(--scroll-stop)); opacity: 0; }
    100% { transform: translateX(var(--scroll-stop)); opacity: 1; }
}

.container-1280 {
    max-width: 1230px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    width: 100%;

}

.index-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* --- Header --- */
.header-main {
    position: -webkit-sticky;
    position: sticky;
    top: -1px;
    /* Фикс для бага Android/iOS с потерей липкости на границе */
    z-index: 50;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-gray);
    box-shadow: 0 3px 15px -3px #99999999;
    transform: translateZ(0);
    /* Включает аппаратное ускорение для избежания артефактов при фокусе клавиатуры */
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.75rem 1.5rem;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    min-width: 0;
}

.nav-brand {
    font-size: clamp(1.3rem, 6vw, 2rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    gap: 10px;

    color: inherit;
    text-decoration: none;
        font-family: 'JetBrains Mono'!important;
}


.header-mobile-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

.header-search {
    flex: 1 1 0%;
    max-width: 36rem;
    width: 100%;
    position: relative;
    display: flex;
    align-items: stretch;
}

.header-search-filter {
    position: relative;
    flex-shrink: 0;
}

.header-search-select {
    height: 100%;
    background-color: var(--border-gray);
    border: 1.5px solid var(--border-gray);
    border-right: none;
    padding: 0.5rem 2rem 0.5rem 0.5rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    color: #678;
    outline: none;
    cursor: pointer;
    appearance: none;
    text-transform: uppercase;
}



.header-search-chevron {
    position: absolute;
    right: 0.4rem;
    width: 24px;
    height: 24px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg fill='%23667788' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3e%3cg id='SVGRepo_bgCarrier' stroke-width='0'%3e%3c/g%3e%3cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3e%3c/g%3e%3cg id='SVGRepo_iconCarrier'%3e%3cpath d='M16.003 18.626l7.081-7.081L25 13.46l-8.997 8.998-9.003-9 1.917-1.916z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.search-input {
    flex: 1;
    min-width: 0;
    background-color: var(--white);
    border: 1.5px solid var(--border-gray);
    border-right: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    outline: none;
}

.header-search-btn {
    background-color: var(--signal-orange);
    color: var(--white);
    border: none;
    width: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.header-search-btn:hover {
    background-color: var(--graphite);
}

.search-input::placeholder {
    color: var(--grey-text);
    transition: text-indent 0.3s ease, opacity 0.3s ease;
    opacity: 1;
    font-size: 0.75rem;
    text-transform: none;
}

.search-input:focus {
    background-color: var(--white);
    border-color: var(--signal-orange);
}

.search-input:focus::placeholder {
    text-indent: -20px;
    opacity: 0;
}

.select-config {
    width: 100%;
    background-color: var(--warehouse-gray);
    border: 1.5px solid var(--border-gray);
    padding: 8px 1rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
    cursor: pointer;
}

.select-config:focus {
    border-color: var(--signal-orange);
}

.nav-desktop-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.875rem;
}

.header-badge {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    padding: 4px 8px;
    background-color: var(--warehouse-gray);
    border: 1px solid var(--border-gray);
    white-space: nowrap;
}

.header-phone {
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-btn-catalog {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--border-gray);
    color: var(--graphite);
    padding: 0.5rem;
    border: none;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-sans);
    transition: background-color 0.15s, color 0.15s;
    line-height: 1;
    color: #678;
}

.header-btn-catalog:hover {
    background-color: var(--signal-orange);
    color: var(--white);
}

.catalog-icon-svg {
    fill: currentColor;
    transition: fill 0.15s;
    width: 14px;
    height: 14px;
}

.header-btn-label {
    display: inline;
}

.header-btn-cart {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.header-btn-cart:hover {
    color: var(--signal-orange);
}

.cart-icon-svg {
    fill: currentColor;
    transition: fill 0.15s;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--signal-orange);
    color: var(--white);
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
}

.header-btn-wl,
.header-btn-cmp {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: inherit;
    text-decoration: none;
    padding: 0;
}

.header-btn-wl:hover { color: var(--signal-orange); }
.header-btn-cmp:hover { color: var(--signal-orange); }


/* --- Main content --- */
.main-content {
    flex-grow: 1;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* --- Product header area --- */
.product-title {
    font-size: clamp(1rem, 10vw, 3.2rem);
    font-weight: 900;
    text-transform: uppercase;
    margin: 1rem 0 1.5rem;
    letter-spacing: 0.5px;
}

.product-title span {
    color: var(--grey-text);
    margin-left: 12px;
}


.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-dims {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.product-dims--preview {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-gray);
}

.dimension-badge {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    padding: 4px;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    display: flex;
    max-width: 110px;
    color: var(--grey-text);
}

.bracket {
    display: inline;
}

.product-sku {
    font-size: 10px;
    font-family: var(--font-mono);
    color: var(--grey-text);
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

.price-box {
    text-align: right;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.price-value {
    font-size: 1.4rem;
    font-family: var(--font-mono);
    font-weight: 700;
    line-height: 1;
}

.price-label {
    font-size: 1rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 900;
}

/* --- 3-column config grid --- */
.config-grid {
    display: grid;
    grid-template-columns: 3fr 4fr 3fr;
    gap: 1.25rem;
}

/* --- Left: Preview panel --- */
.preview-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: calc(var(--header-h) + 1.7rem);
    align-self: start;
}

.preview-card {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    padding: 1.25rem;
}



.preview-image-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.preview-image {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 5 / 4;
}

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

/* Thumbnails column — 3 equal rows, shown only when variants > 1 */
.preview-thumbs {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 0.75rem;
    width: 70px;
    flex-shrink: 0;
    padding: 0.75rem 0;
}

.variant-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
}

.variant-thumb--empty {
    cursor: default;
}

.variant-thumb__img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1.5px solid var(--border-gray);
    padding: 2px;
    box-sizing: border-box;
}

.variant-thumb__img-wrap:hover {
    border-color: var(--graphite);
}

.variant-thumb__img-wrap--active {
    border-color: var(--signal-orange) !important;
}

.variant-thumb__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.variant-thumb__label {
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    color: var(--graphite);
    white-space: nowrap;
    flex-shrink: 0;
}

/* legacy (kept for gallery thumbs elsewhere) */
.thumb-btn {
    aspect-ratio: 12 / 8;
    background-color: var(--white);
    border: 1.5px solid var(--border-gray);
    padding: 2px;
    cursor: pointer;
}
.thumb-btn:hover { border-color: var(--graphite); }
.thumb-btn--active { border-color: var(--signal-orange) !important; }
.thumb-img { width: 100%; height: 100%; object-fit: contain; }
.thumb-img--muted { filter: grayscale(1); }

/* --- Center: Config panel --- */
.config-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.config-section {
    background-color: var(--white);
    border: 1px solid var(--border-gray);
    padding: 1.25rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.section-title-marker {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--signal-orange);
    flex-shrink: 0;
}

/* --- Swatches --- */
.swatch-grid--3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.swatch-grid--4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 0.5rem;
}

.swatch-label {
    cursor: pointer;
    display: block;
}

.swatch-input {
    display: none;
}


.swatch-box {
    border: 1.5px solid var(--border-gray);
    padding: 2px;
    position: relative;
}

.swatch-box:hover {
    border: 1.5px solid var(--graphite);
}

.swatch-input:checked+.swatch-box {
    border-color: var(--signal-orange);
}

/* Галочка в правом верхнем углу активного swatch */
.swatch-input:checked+.swatch-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background-color: var(--signal-orange);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg fill='%23ffffff' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3e%3cg id='SVGRepo_bgCarrier' stroke-width='0'%3e%3c/g%3e%3cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3e%3c/g%3e%3cg id='SVGRepo_iconCarrier'%3e%3cpath d='M5 16.577l2.194-2.195 5.486 5.484L24.804 7.743 27 9.937l-14.32 14.32z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}


.swatch-img {
    width: 100%;
    aspect-ratio: 12 / 8;
    background-color: var(--warehouse-gray);
    background-size: cover;
    background-position: center;
}

.swatch-text {
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-weight: 700;
    margin-top: 4px;
    font-size: 0.75rem;
    line-height: 1.1;
    min-height: 20px;
}

.swatch-price {
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--grey-text);
    text-transform: none;
    line-height: 1;
    letter-spacing: none;
}

.section-title .swatch-price {

    margin: auto 0 auto auto;
    font-weight: normal;
}

/* Активный модуль (qty > 0): оранжевая рамка + галочка */
.module-row--active>.swatch-box {
    border-color: var(--signal-orange);
}

.module-row--active>.swatch-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background-color: var(--signal-orange);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg fill='%23ffffff' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3e%3cg id='SVGRepo_bgCarrier' stroke-width='0'%3e%3c/g%3e%3cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3e%3c/g%3e%3cg id='SVGRepo_iconCarrier'%3e%3cpath d='M5 16.577l2.194-2.195 5.486 5.484L24.804 7.743 27 9.937l-14.32 14.32z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}


/* --- Module rows --- */
.module-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.module-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 0.75rem;
    align-items: center;
    min-width: 0;
}

.module-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 3px;
}

.module-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.module-price {
    font-size: 12px;
    font-family: var(--font-mono);
    color: var(--grey-text);
    text-transform: uppercase;
}

.module-qty {
    display: flex;
    justify-content: flex-end;
}

.qty-picker {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-gray);
    background: var(--border-gray);
    padding: 2px;
}

.qty-picker button:hover {
    border: 1.5px solid var(--graphite);
}


.qty-picker button {
    width: 1.6rem;
    height: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    margin: 0;
    padding: 0;
    background-color: #fff;
    border: solid 1.5px #fff;
    margin: 0;
    padding: 0;
}

.qty-picker span {
    width: 1.7rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    display: flex;
    color: #678;
}

.qty-picker span.qty-value--active {
    color: var(--graphite);
/*    background: var(--signal-orange);*/
}

/* --- Door config --- */
.door-config {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.door-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #888;
    text-transform: uppercase;
    margin: 0 0 4px 0;
}

.door-row-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.door-row-header .type-toggle {
    flex: 1;
}


/* ── 2-column door layout ──────── */
.door-2col-wrap {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.door-2col-img {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.door-thumb-preview {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: var(--border-gray);
    border: 1.5px solid #dde1e7;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ── Kupé door imitation ──────── */
.door-kupe-preview {
    width: min(calc(380px * var(--door-ratio, 0.4286)), 100%);
    aspect-ratio: var(--door-ratio, 0.4286);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    background: var(--border-gray);
}

/* Left and right 5px aluminium profile strips */
/*.door-kupe-profile {
    flex: 0 0 8px;
    background: linear-gradient(
        to right,
        #b0b5bc 0%,
        #e8eaed 30%,
        #d2d6dc 55%,
        #f0f2f4 75%,
        #c0c5cc 100%
    );
}*/

/* ── Profile strips: base color + shape-specific light/shadow overlay ── */
.door-kupe-profile {
    flex: 0 0 calc(var(--profile-mm, 26) / var(--door-width-mm, 900) * 100%);
    background-color: var(--profile-color, #bcc2cc);
    border-right: solid 0.5px rgba(0,0,0,0.12);
    background-position: left;
}
.door-kupe-profile--right {
    background-color: var(--profile-color, #bcc2cc);
    border-left: solid 0.5px rgba(0,0,0,0.12);
    border-right: none;
    background-position: right;
}

/* C – rounded D-cap: deep shadow at edge, sharp specular at ~22%, soft rolloff */
[data-profile-shape="c"] .door-kupe-profile:not(.door-kupe-profile--right) {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.32) 0%, rgb(0 0 0 / 17%) 6%, rgba(255, 255, 255, 0.58) 45%, rgb(255 255 255 / 30%) 80%, rgba(0, 0, 0, 0.30) 85%, rgb(0 0 0 /20%) 100%);

}
[data-profile-shape="c"] .door-kupe-profile--right {
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.32) 0%, rgb(0 0 0 / 17%) 6%, rgba(255, 255, 255, 0.58) 45%, rgb(255 255 255 / 30%) 80%, rgba(0, 0, 0, 0.30) 85%, rgb(0 0 0 /20%) 100%);
}

/* U – open D-channel: slightly softer highlight, same geometry */
[data-profile-shape="u"] .door-kupe-profile:not(.door-kupe-profile--right) {
    background-image: linear-gradient(to right,  rgba(0, 0, 0, 0.33) 3%, rgba(255, 255, 255, 0.55) 20%, rgba(255, 255, 255, 0.15) 35%, rgba(0, 0, 0, 0.45)55%, rgba(255, 255, 255, 0.55) 90%, rgba(0, 0, 0, 0.25) 100%);
}


[data-profile-shape="u"] .door-kupe-profile--right {
    background-image: linear-gradient(to left,  rgba(0, 0, 0, 0.33) 3%, rgba(255, 255, 255, 0.55) 20%, rgba(255, 255, 255, 0.15) 35%, rgba(0, 0, 0, 0.45)55%, rgba(255, 255, 255, 0.55) 90%, rgba(0, 0, 0, 0.25) 100%);
}


/* Q – wide flat face: only thin bevel edge highlights */
[data-profile-shape="q"] .door-kupe-profile:not(.door-kupe-profile--right) {
    background-image: linear-gradient(to right,        rgba(255,255,255,0.55)  0%,        rgba(255,255,255,0.55) 5%,        rgba(0,0,0,0.00)       8%,        rgba(255,255,255,0.25)       95%,        rgba(255,255,255,0.65)      100%    );

}
[data-profile-shape="q"] .door-kupe-profile--right {
    background-image: linear-gradient(to left,        rgba(255,255,255,0.55)  0%,        rgba(255,255,255,0.55) 5%,        rgba(0,0,0,0.00)       8%,        rgba(255,255,255,0.25)       95%,        rgba(255,255,255,0.65)      100%    );
}

/* L – thin right-angle: minimal, just a leading-edge glint */
[data-profile-shape="l"] .door-kupe-profile:not(.door-kupe-profile--right) {
    background-image: linear-gradient(to right,
        rgba(255,255,255,0.32)  0%,
        rgba(255,255,255,0.04) 40%,
        rgba(0,0,0,0.10)      100%
    );
}
[data-profile-shape="l"] .door-kupe-profile--right {
    background-image: linear-gradient(to left,
        rgba(255,255,255,0.32)  0%,
        rgba(255,255,255,0.04) 40%,
        rgba(0,0,0,0.10)      100%
    );
}

/* Central filling area: 3 rows */
.door-kupe-filling {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

/* Top / bottom horizontal rail + section dividers — 11 mm proportional to door height */
.door-kupe-rail--h {
    flex: 0 0 calc(11 / var(--door-height-mm, 2100) * 100%);
    background-color: var(--profile-color, #bcc2cc);
    background-image: linear-gradient(to bottom,
        rgba(255,255,255,0.40)  0%,
        rgba(255,255,255,0.05) 35%,
        rgba(0,0,0,0.25)       65%,
        rgba(255,255,255,0.08) 100%
    );
    box-sizing: border-box;
    z-index: 5;
}



.door-kupe-divider-dynamic {
    flex: 0 0 2px;
    height: 2px;
}

/* Texture / filling area — stretches remaining space */
.door-kupe-texture {
    flex: 1;
    background-size: 100% 100%;
    background-position: center;
    background-color: #e4e8ee;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.door-kupe-pesko-overlay {
    position: absolute;
    inset: 0;
    background-size: 100% 100%;
    background-position: center;
    mix-blend-mode: soft-light;
    opacity: 0.9;
    pointer-events: none;
}

/* Sections mode: stack sections vertically */
.door-kupe-texture--sections {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background-color: transparent;
    background-image: none !important;
}

.door-thumb-num {
    font-size: 2rem;
    font-weight: 800;
    color: #c4cdd6;
    font-family: var(--font-mono);
}

/* ── Accordion items ──────────── */
.door-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid #dde1e7;
    border-radius: 6px;
    overflow: hidden;
}

.door-accordion-item {
    border-bottom: 1px solid #dde1e7;
}

.door-accordion-item:last-child {
    border-bottom: none;
}

.door-acc-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.7rem 1rem;
    background: #f8f9fb;
    border: none;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dark);
    text-align: left;
    transition: background 0.15s ease;
}

.door-acc-trigger:hover {
    background: #f0f2f5;
}

.door-accordion-item.door-acc--active .door-acc-trigger {
    background: var(--signal-orange);
    color: #fff;
}

.door-acc-icon {
    font-size: 0.65rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.door-acc-label {
    flex: 1;
}

.door-acc-price {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.5;
}

.door-acc-body {
    padding: 0.5rem;
    background: #fff;
    animation: fadeIn 0.2s ease;
}

.mirror-select {
    margin-top: 0.75rem;
    animation: fadeIn 0.3s ease;
}

/* ── Mirror vertical list ─────────────────── */
.mirror-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mirror-row-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: border-color 0.15s, background 0.15s;
    background: #fafbfc;
    position: relative;
}

.mirror-row-label:hover {
    background: #f0f2f5;
    border-color: transparent;
}

/* Hide the radio input */
.mirror-row-label .swatch-input {
    display: none;
}

/* Active (checked) state - no background or border on label */
.mirror-row-label:has(.swatch-input:checked) {
    border-color: transparent;
    background: #fafbfc;
}

/* Color swatch square */
.mirror-row-swatch {
    width: 48px;
    height: 36px;
    flex-shrink: 0;
    border: 1.5px solid #dde1e7;
    position: relative;
    overflow: hidden;
    transition: border-color 0.15s;
}

.mirror-row-label:has(.swatch-input:checked) .mirror-row-swatch {
    border-color: var(--signal-orange);
    box-shadow: 0 0 0 1px var(--signal-orange);
}

/* Checkmark on active swatch */
.mirror-row-label:has(.swatch-input:checked) .mirror-row-swatch::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background-color: var(--signal-orange);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg fill='%23ffffff' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5 16.577l2.194-2.195 5.486 5.484L24.804 7.743 27 9.937l-14.32 14.32z'%3e%3c/path%3e%3c/svg%3e");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Name + price column */
.mirror-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mirror-row-name {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--graphite);
}

.mirror-row-price {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--grey-text);
}


.mirror-select-label {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    color: var(--grey-text);
    margin-bottom: 0.5rem;
}

.mirror-swatch-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}


/* ── ЛДСП preview inside door accordion ─── */
.door-ldsp-preview {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.door-ldsp-row {
    cursor: default !important;
    pointer-events: none;
    border-color: transparent !important;
    background: transparent !important;
}

.door-ldsp-row .mirror-row-swatch {
    width: 48px;
    height: 48px;
    border-color: var(--signal-orange);
    flex-shrink: 0;
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.door-label {
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    min-width: 20%;
    text-align: center;
}

.door-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.door-select-wrap {
    flex-grow: 1;
}

.door-label--premium {
    color: var(--signal-orange);
}

.badge-base {
    border: 1px solid var(--border-gray);
    padding: 2px 4px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    background: var(--white);
}

.badge-premium {
    border: 1px solid var(--signal-orange);
    padding: 2px 4px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    color: var(--signal-orange);
    background: var(--white);
}

/* --- Dynamic door blocks --- */
.door-count-tabs {
    margin-bottom: 0;
}

.door-config--dynamic {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-gray);
}

.door-config--dynamic:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Part rows inside razdelenie */
.door-part-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.door-part-label {
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--grey-text);
    white-space: nowrap;
    min-width: 4.5rem;
    letter-spacing: 0.04em;
}

.door-parts-container .door-select-wrap {
    flex: 1;
}

/* Estimate sub-lines (profile/RAL under each door) */
.estimate-line--sub {
    padding-left: 0.25rem;
    opacity: 0.8;
    font-size: 0.82em;
}

.estimate-line--sub .estimate-line-val {
    font-size: 0.82em;
}

.photo-select {
    border-top: 1px solid var(--border-gray);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.photo-select-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--grey-text);
    margin-bottom: 0.5rem;
}

.photo-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}

.photo-scroll::-webkit-scrollbar {
    display: none;
}

.photo-thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--white);
}

.photo-thumb--active {
    border: 2px solid var(--signal-orange);
}

.photo-thumb--inactive {
    border: 1px solid var(--border-gray);
    color: var(--grey-text);
}

/* --- Right: Sidebar / Estimate --- */
.sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.7rem);
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.estimate-card {
    background-color: var(--white);
    border: 2px solid var(--graphite);
    padding: 1.25rem;
}

.estimate-card .section-title {
    margin-bottom: 0.3rem;
}

/* --- Estimate header: LEFT-ALIGNED B2B invoice --- */
.estimate-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.estimate-doc-num {
    font-family: var(--font-mono);
    color: var(--grey-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.estimate-title {
    font-size: 1rem;
    font-family: var(--font-mono);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #111111;
}

.estimate-product {
    border-top: 1px dashed var(--border-gray);
    padding-top: 0.6rem;
    margin-top: 0.6rem;
    width: 100%;
    text-align: left;
}

.estimate-product-name {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 800;
    text-transform: uppercase;
    color: #111111;
    margin-bottom: 0.3rem;
}

/* Теги размеров: [ Ш: 1000 ] */
.estimate-dims {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.estimate-dim-tag {
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 700;
    color: #111111;
    border: 1px solid var(--graphite);
    padding: 2px 6px;
    text-transform: uppercase;
    white-space: nowrap;
}

.estimate-product-fill {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--grey-text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.estimate-product-dims {
    font-size: 0.8rem;
    font-family: var(--font-mono);
    color: var(--graphite);
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 2px 0 6px;
}

/* ============================================================
   ESTIMATE RECEIPT — B2B INDUSTRIAL OVERRIDE
   ============================================================ */
.estimate-section {
    margin-bottom: 0.5rem;
}

/* Заголовок секции — SOLID GRAY BAND, B2B PRINTED TABLE */
.estimate-section-title {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    font-weight: 900;
    text-transform: uppercase;
    color: #111111;
    letter-spacing: 1px;
    background: var(--border-gray);
    padding: 6px 12px;
    margin: 0 -1.25rem 0.4rem;
    border-left: 7px solid var(--graphite);
}

.estimate-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-family: var(--font-mono);
    margin-bottom: 0.3rem;
    color: #111111;
}

.estimate-line-label {
    color: #111111;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

/* Отточия */
.estimate-line-label::after {
    content: '';
    flex: 1;
    min-width: 8px;
    height: 1px;
    border-bottom: 1.5px dotted #999999;
    margin-bottom: 3px;
    opacity: 0.6;
}

/* Имя + значение внутри label */
.estimate-line-label span {
    color: #111111;
    font-weight: 900;
    white-space: nowrap;
}

.estimate-line-val {
    font-weight: 900;
    color: #111111;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.82rem;
}

.estimate-line-val--cross {
    color: var(--grey-text);
    font-weight: 400;
}

.estimate-line-val--orange {
    color: var(--signal-orange);
    font-weight: 900;
}

/* Строка СКИДКИ — максимальный визуальный вес */
.estimate-discount-line {
    background: rgba(255, 87, 34, 0.04);
    padding: 8px 20px;
    margin: 0.6rem -1.25rem 0;
}

.estimate-discount-line .estimate-line-label {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--signal-orange);
}

.estimate-discount-line .estimate-line-val {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--signal-orange);
}

.estimate-discount-line .estimate-line-label::after {
    border-bottom-color: rgba(255, 87, 34, 0.25);
    opacity: 1;
}

.estimate-line-label--muted {
    color: var(--grey-text);
}

.estimate-line-label--orange {
    color: var(--signal-orange);
}

.estimate-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.estimate-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.75rem;
    font-family: var(--font-mono);
}

.estimate-row-label {
    color: var(--grey-text);
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.estimate-row-value {
    font-weight: 700;
    text-transform: uppercase;
    color: var(--graphite);
    font-family: var(--font-mono);
}

.estimate-row-value--discount {
    color: var(--signal-orange);
}

.estimate-row-value--cross {
    text-decoration: line-through;
    color: var(--grey-text);
}

.estimate-divider {
    /*    border-top: 1px dashed var(--border-gray);*/
    margin: 1rem 0;
}

.estimate-total {
    margin-top: 1.25rem;
    border-top: 3px solid #111111;
    padding-top: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.estimate-total-label {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-mono);
}

.estimate-total-price {
    font-size: 1.4rem;
    font-family: var(--font-mono);
    font-weight: 900;
    color: #111111;
    line-height: 1;
}

.btn-add {
    width: 100%;
    background-color: var(--signal-orange);
    color: var(--white);
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
       font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    font-size: inherit;
}

.btn-add:hover {
    background-color: var(--graphite);
}

.btn-pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    margin-top: 1rem;
    font-size: inherit;
    font-weight: 900;
    text-transform: uppercase;
    font-family: var(--font-mono);
    color: #678;
    background: var(--border-gray);
    border: 1.5px solid var(--border-gray);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-pdf:hover {
    color: var(--graphite);
    border-color: var(--graphite);
}

/* --- Rules banner / Guarantees Block --- */
.rules-panel {
    background: var(--white);
    color: var(--graphite);
    padding: 1.25rem;
    border: 1px solid var(--border-gray);
}

.rules-title {
    font-size: 11px;
    font-weight: 900;
    color: var(--signal-orange);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--warehouse-gray);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

.rules-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.rules-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.rules-icon {
    color: var(--signal-orange);
    font-size: 24px !important;
    background: var(--warehouse-gray);
    padding: 8px;
    flex-shrink: 0;
}

.rules-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rules-item-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--graphite);
}

.rules-item-text {
    font-family:  var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--grey-text);
    line-height: 1.4;
}

/* --- Footer minimal (mastakmar.ru) --- */
.footer-minimal {
    margin-top: 4rem;
    background-color: #111;
    border-top: 2px solid #FF5722;
    padding: 2.5rem 0 1.5rem;
    font-family: var(--font-mono, monospace);
    color: #ccc;
}

.footer-minimal__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-minimal__name {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.footer-minimal__desc {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
    max-width: 680px;
    line-height: 1.6;
}

.footer-minimal__contacts {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-minimal__contacts a {
    color: #FF5722;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

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

.footer-minimal__copy {
    font-size: 0.75rem;
    color: #555;
    border-top: 1px solid #222;
    padding-top: 1rem;
}

/* --- Footer --- */
.footer-main {
    margin-top: 4rem;
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    padding: 3rem 0 1.5rem;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Логотип в футере */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    color: var(--white);
}

.footer-logo svg path {
    fill: var(--white);
}

.footer-desc {
    color: #999;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Заголовки колонок */
.footer-heading {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Списки складов и категорий */
.footer-warehouses,
.footer-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-warehouses li,
.footer-categories li {
    color: #999;
    font-size: 0.875rem;
    line-height: 1.4;
}

.footer-warehouses li:hover,
.footer-categories li:hover {
    color: var(--white);
}

.footer-soon {
    color: #666;
    font-size: 0.75rem;
}

.footer-categories a {
    color: inherit;
    transition: color 0.2s;
}

.footer-categories a:hover {
    color: var(--white);
}

/* Телефон */
.footer-phone {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    transition: color 0.2s;
}

.footer-phone:hover {
    color: var(--signal-orange);
}

/* Нижняя полоса с копирайтом */
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
}

.footer-copy {
    color: #666;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ============================================================
   SECTION: КАК МЫ СЛОМАЛИ СИСТЕМУ ЦЕН
   ============================================================ */

.kupe-ready-section {
    width: 100%;
    padding: 3rem 0;
}
.kupe-ready-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}
.kupe-ready-heading {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: 0 0 24px;
}

.pricing-section {
    width: 100%;
    padding: 3rem 0;
}

.pricing-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.5rem;
}

.pricing-heading {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.pricing-divider {
    /*    border-top: 2px solid var(--graphite);*/
    margin-bottom: 1.5rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border-gray);
    background-color: var(--white);
}

.pricing-card {
    padding: 1.25rem;
    border-right: 1px solid var(--border-gray);
}

.pricing-card:last-child {
    border-right: none;
}

.pricing-num {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    display: flex;
    background: var(--signal-orange);
    color: #fff;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
}

.pricing-card-title {
    transition: color 0.15s;
    font-size: 1rem;
    font-family: var(--font-mono);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #111111;
    margin: 0.75rem 0;
}

.pricing-card-text {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    line-height: 1.6;
}

/* ============================================================
   SECTION: ОТВЕЧАЕМ НА ВОПРОСЫ (FAQ)
   ============================================================ */

.faq-section {
    width: 100%;
    /*    background-color: var(--white);
    border-top: 1px solid var(--border-gray);*/
    padding: 4rem 0;
}

.faq-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.faq-heading {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-list {
    max-width: 48rem;
    margin: 0 auto;
    background: #fff;
    padding: 0 1.25rem;
    border: solid 1px var(--border-gray);
}

.faq-item {
    border-bottom: 1px solid var(--border-gray);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-sans);
}

.faq-trigger:hover .faq-question {
    color: var(--signal-orange);
}

.faq-question {
    transition: color 0.15s;
    font-size: 1rem;
    font-family: var(--font-mono);
    font-weight: 900;
    letter-spacing: 0;
    color: #111111;
}

.faq-icon {
    color: var(--signal-orange);
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    font-family: var(--font-mono);
    transition: transform 0.2s;
}

.faq-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
}

.faq-answer {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    line-height: 1.6;
    padding-bottom: 1.5rem;
}

/* ============================================================
   TYPE & SIZE FILTER BAR
   ============================================================ */

.type-size-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.75rem;
    /*    border: 1px solid var(--border-gray);*/
    background-color: var(--white);
}

.type-size-bar__group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1 1 0;
}

.type-size-bar__group:last-child {
    border-right: none;
}

.type-size-bar__label {
    font-family: var(--font-mono);
    line-height: 1;
    font-size: 0.75rem;
    color: var(--grey-text);
    padding-top: 3px;
}

/* --- Type toggle buttons: [ ПРЯМОЙ ] / [ УГЛОВОЙ ] --- */
.type-toggle {
padding: 2px;
background: var(--border-gray);
border: solid 1.5px var(--border-gray);
    display: flex;
    flex-direction: row;
    gap: 3px;
}

.type-toggle__btn {
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1.5px solid var(--border-gray);
    background: var(--white);
    color: var(--graphite);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
    position: relative;
}



.type-toggle__btn--active {
    background: var(--graphite);
    color: var(--white);
    border-color: var(--graphite);
    z-index: 2;
}

.type-toggle__btn:not(.type-toggle__btn--active):hover {
    border-color: var(--graphite);
    color: var(--graphite);
    z-index: 2;
}

/* --- Select wrappers --- */
.type-size-bar__select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.type-size-bar__select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: var(--white);
    border: 1.5px solid var(--border-gray);
    padding: 6px 9px;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--graphite);
    cursor: pointer;
    transition: border-color 0.15s;
    border-radius: 0;
}

.type-size-bar__select:focus {
    outline: none;
    border-color: var(--signal-orange);
}

.type-size-bar__select:hover {
    border-color: var(--graphite);
}

/* Select looks "inactive" while custom input is being typed (< 4 chars) */
.type-size-bar__select--pending {
    text-decoration: line-through;
    color: var(--grey-text);
    opacity: 0.6;
    pointer-events: none;
}

.type-size-bar__chevron {
    position: absolute;
    right: 5px;
    pointer-events: none;
    width: 24px;
    height: 24px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg fill='%23ff5722' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3e%3cg id='SVGRepo_bgCarrier' stroke-width='0'%3e%3c/g%3e%3cg id='SVGRepo_tracerCarrier' stroke-linecap='round' stroke-linejoin='round'%3e%3c/g%3e%3cg id='SVGRepo_iconCarrier'%3e%3cpath d='M16.003 18.626l7.081-7.081L25 13.46l-8.997 8.998-9.003-9 1.917-1.916z'%3e%3c/path%3e%3c/g%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.price-box {
    text-align: left;
    margin-left: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    width: 100%;
    padding-top: 0.5rem;
    border-top: solid 1.5px var(--graphite);

}

/* На десктопе все группы выбора в колонку (каждый элемент на своей строке) */
.type-size-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.type-size-bar__group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1 1 auto;
    margin: 0 !important;
}

.type-size-bar__group:first-child {
    padding-top: 0;
}

.type-size-bar__group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.type-size-bar__group:last-child {
    border-right: none;
}

.type-size-bar__select-wrap,
.type-size-bar__input-wrap {
    position: relative;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.type-size-bar__select,
.type-size-bar__input {
width: 100%;
    min-width: 0;
    appearance: none;
    -webkit-appearance: none;
    background: var(--white);
    border: 1.5px solid var(--border-gray);
    padding: 6px 9px;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--graphite);
    transition: border-color 0.15s;
    /* border-radius: 0; */
    line-height: 1;
    /* height: fit-content; */
    height: 32px;
    margin-bottom: 0.5rem;
}

.type-size-bar__input::placeholder {
    color: var(--grey-text);
    font-weight: 400;
    text-transform: none;
}

.type-size-bar__input::-webkit-outer-spin-button,
.type-size-bar__input::-webkit-inner-spin-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
.type-size-bar__input[type=number] {
  -moz-appearance: textfield;
}

.type-size-bar__select:focus,
.type-size-bar__input:focus {
    outline: none;
    border-color: var(--signal-orange);
}

.type-size-bar__select:hover,
.type-size-bar__input:hover {
    border-color: var(--graphite);
}

/* ============================================================
   DIMENSIONS SPLIT LAYOUT
   ============================================================ */

.dimensions-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    align-items: start;
    width: 100%;
}

.dimensions-split__col {
    display: flex;
    flex-direction: column;
}

/* ============================================================
   MEDIA QUERIES — TABLET (max-width: 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .material-symbols-outlined {
        font-size: 28px
    }

    .nav-micro-bar {
        display: flex;
    }

    .header-inner {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem 1.5rem 1.5rem;
    }

    .header-row {
        width: 100%;
    }



    .header-mobile-actions {
        display: flex;
    }

    .header-search {
        max-width: 100%;
    }

    .nav-desktop-info {
        display: none;
    }



    .config-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .preview-panel {
        order: 1;
    }

    .config-panel {
        order: 2;
        gap: 2.5rem;
    }

    /* На планшете sticky отключаем — колонки становятся в строку */
    .preview-panel,
    .sidebar {
        position: static;
        align-self: auto;
    }

    .sidebar {
        order: 3;
    }

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

    .dimension-badge {
        padding: 4px 8px;
    }

    /* Pricing section & FAQ — tablet */
    .pricing-inner,
    .faq-inner {
        padding: 0 1.5rem;
    }

    .pricing-section {
        padding: 2rem 0;
    }

    .faq-section {
        padding: 3rem 0;
    }
}

/* Removed since it's handled above now */

/* ============================================================
   MEDIA QUERIES — MOBILE (max-width: 768px)
   ============================================================ */
@media (max-width: 768px) {

    .header-main {
        position: fixed;
        width: 100%;
        top: 0;
    }

    body {
        padding-top: 145px;
        /* Компенсация высоты fixed header */
    }

    .main-content {
        max-width: 100%;
    }

    .page-header {
        gap: 1rem;
    }

    .preview-image {
        aspect-ratio: 5 / 4;
    }

    .page-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }


    .price-value {
        font-size: 1.5rem;
    }


    /* Контейнеры не должны распирать страницу */
    .config-section,
    .preview-card,
    .door-row,
    .estimate-card,
    .rules-panel {
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    /* --- Config components scaling for mobile --- */


    .dimensions-split__col:not(:first-child) .type-size-bar__group:not(:first-child) {
         margin-top: 0;
    }
    .rules-panel {
        min-width: 0;
        max-width: 100%;
    }

    /* Длинные монострочные тексты переносим */
    .estimate-summary-line,
    .estimate-row-label,
    .estimate-row-value {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-heading {
        text-align: center;
    }

    .footer-warehouses,
    .footer-categories {
        align-items: center;
    }

    .footer-phone {
        display: block;
        text-align: center;
    }

    .footer-desc {
        text-align: center;
    }

    /* Pricing section & FAQ — 768px */
    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        border-right: none;
        border-bottom: 1px solid var(--border-gray);
    }

    .pricing-card:last-child {
        border-bottom: none;
    }

    .pricing-heading,
    .faq-heading {
        font-size: 1.55rem;
        margin-bottom: 2.5rem;
        text-align: center;
    }

    .pricing-inner,
    .faq-inner {
        padding: 0 1rem;
    }

    /* Скрытие меню фабрик при фокусе поля поиска */
    .header-search:has(.search-input:focus) .header-search-filter {
        display: none;
    }
}

/* ============================================================
   MEDIA QUERIES — SMALL MOBILE (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {

    body {
        padding-top: 135px;
        /* Компенсация высоты fixed header для маленьких экранов */
    }

    .nav-micro-bar {
        font-size: 12px;
        padding: 6px 0.75rem;
    }

    .header-inner {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.5rem;
    }

    .main-content {
        padding: 0 0.5rem !important;
    }

    .config-section {
        padding: 0.75rem;
    }

    .preview-card {
        padding: 0.75rem;
    }

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

    .swatch-grid--4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem 0.5rem;
    }

    .module-row {
        grid-template-columns: 1fr 2fr auto;
        gap: 0.5rem;
    }

    /* Pricing section & FAQ — 480px (small mobile) */
    .pricing-section {
        padding: 2.5rem 0;
    }

    .faq-section {
        padding: 2.5rem 0;
    }

    .faq-list {
        padding: 0 1.25rem;
    }

    .pricing-inner,
    .faq-inner {
        padding: 0 0.5rem !important;
    }

    .pricing-card {
        padding: 1.25rem;
    }

}

/* ============================================================
   MEDIA QUERIES — 355px (старые маленькие смартфоны)
   ============================================================ */
@media (max-width: 376px) {
}

/* ============================================================
   MEDIA QUERIES — 355px (старые маленькие смартфоны)
   ============================================================ */
@media (max-width: 355px) {

.section-title{
    font-size: 0.75rem;
}
    .nav-micro-bar {
        padding: 6px 0.5rem;
    }

    .header-inner {
        padding: 0.5rem;
        gap: 0.5rem;
    }


    .main-content {
        padding: 0 0.5rem !important;
    }

    .config-section,
    .preview-card {
        padding: 0.6rem;
    }

    .estimate-card {
        padding: 0.6rem;
    }


    .swatch-grid--4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
    }

    .swatch-grid--3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
    }

    /* Модульный ряд: уменьшаем отступ */
    .module-row {
        gap: 0.4rem;
    }

    /* Кнопки количества: чуть меньше */
    .qty-picker button {
        width: 1.25rem;
        height: 1.25rem;
    }

    .qty-picker span {
        width: 1.25rem;
        font-size: 11px;
    }

    /* Фото миниатюры: немного меньше */
    .photo-thumb {
        width: 40px;
        height: 40px;
        font-size: 10px;
    }

    /* Pricing section & FAQ — 355px */
    .pricing-inner,
    .faq-inner {
        padding: 0 0.6rem;
    }

    .pricing-card {
        padding: 1.25rem;
    }

    .pricing-section {
        padding: 1.25rem 0;
    }

    .faq-section {
        padding: 1.5rem 0;
    }

    .faq-trigger {
        padding: 1rem 0;
    }
}
@media (max-width: 340px) {
}
/* ============================================================
   PROFILE TABS & RAL PALETTE
   ============================================================ */
.profile-tabs {
    margin-bottom: 1rem;
}

.profile-type-toggle {
    display: flex;
    margin-bottom: 0px;
}

.tab-btn-profile,
.type-toggle__btn {
flex: 1;
    background: transparent;
    border: none;
    padding: 0.4rem;
    font-weight: 700;
    font-family: var(--font-mono);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    justify-content: center;
    color: #678;
    border: solid 1.5px #ffffff55;
    background: #ffffff55;
    font-size: 0.75rem;
}


.tab-btn-profile.type-toggle__btn--active,
.type-toggle__btn.type-toggle__btn--active {
background: var(--border-gray);
    background: #fff;
    color: var(--graphite);
}

.profile-tab-content {
    animation: fadeIn 0.3s ease;
}

.ral-step-title {
font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
    color: var(--graphite);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ral-step-title .swatch-price{font-weight: normal;}

.ral-palette-inline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.ral-color-label {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ral-color-input {
    display: none;
}

.ral-color-swatch {
    border: 1.5px solid transparent;
    display: block;
    position: relative;
}

.inline-swatch {
    width: 100%;
    aspect-ratio: 12 / 8;
}

.grid-swatch {
    width: 100%;
    aspect-ratio: 12 / 8;
}

.ral-color-label:hover .ral-color-swatch {
    border-color: var(--graphite);
}

.ral-color-input:checked+.ral-color-swatch {
    border-color: var(--signal-orange);
}

.ral-color-input:checked+.ral-color-swatch::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background-color: var(--signal-orange);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg fill='%23ffffff' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5 16.577l2.194-2.195 5.486 5.484L24.804 7.743 27 9.937l-14.32 14.32z'%3e%3c/path%3e%3c/svg%3e");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}

.btn-open-ral-modal,
.btn-catalog-open {
    padding: 0.7rem 1rem;
    font-weight: 900;
    font-family: var(--font-mono);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    background: var(--border-gray);
    border: solid 1.5px var(--border-gray);
    color: #678;
    align-items: center;
    display: flex;
    justify-content: center;
    font-size: inherit;
    gap: 0.5rem;
}

.btn-open-ral-modal:hover,
.btn-catalog-open:hover {
    color: var(--graphite);
    border-color: var(--graphite);
}

/* --- RAL Modal --- */
.ral-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(38, 38, 38, 0.85);
    /* graphite overlay */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.ral-modal-dialog {
    background: var(--warehouse-gray);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 2px solid var(--graphite);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.ral-modal-header {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ral-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
    font-family: var(--font-sans);
    letter-spacing: 0.5px;
}

.ral-modal-close {
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--grey-text);
    transition: color 0.2s;
}

.ral-modal-close:hover {
    color: var(--signal-orange);
}

.ral-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    background: var(--white);
}

.ral-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.75rem;
}

.ral-color-name {
    font-size: 9px;
    font-family: var(--font-mono);
    text-align: center;
    color: var(--grey-text);
    margin-top: 2px;
}

/* ============================================================
   PESKOSTRUI CATALOG MODAL
   ============================================================ */
.pesko-group + .pesko-group {
    margin-top: 1.75rem;
}

.pesko-group-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--grey-text);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--border-gray);
}

.pesko-clear-btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
    padding: 8px;
    background: #f5f5f5;
    border: 1.5px dashed var(--border-gray);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--grey-text);
    cursor: pointer;
    text-align: center;
}

.pesko-clear-btn:hover {
    border-color: var(--signal-orange);
    color: var(--signal-orange);
}

.pesko-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.5rem;
}

.swatch-img--portrait {
    aspect-ratio: 1 / 3;
}

#pesko-group-2 .swatch-img--portrait,
#print-group-2 .swatch-img--portrait {
    aspect-ratio: 2 / 3;
}

#pesko-group-3 .swatch-img--portrait,
#print-group-3 .swatch-img--portrait {
    aspect-ratio: 1 / 1;
}

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media (max-width: 480px) {
    .ral-palette-inline {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 320px) {

    .price-value {
        font-size: 1.25rem;
    }

    .dimension-badge {
        padding: 4px 6px;
        font-size: 9px;
    }

    .swatch-grid--3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .config-section {
        padding: 0.5rem;
        box-sizing: border-box;
        max-width: calc(100vw - 1rem);
    }

    .estimate-card {
        padding: 0.5rem;
    }

    .preview-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

    .module-row {
        gap: 0.3rem;
    }

    .qty-picker button {
        width: 1.25rem;
        height: 1.25rem;
    }

    .qty-picker span {
        width: 1.25rem;
        font-size: 10px;
    }

    .photo-thumb {
        width: 36px;
        height: 36px;
        font-size: 9px;
    }



    /* Pricing section & FAQ — 320px */
    .pricing-inner,
    .faq-inner {
        padding: 0 0.5rem !important;
    }

    .pricing-card {
        padding: 1.25rem;
    }

    .pricing-section {
        padding: 1rem 0;
    }

    .faq-section {
        padding: 1.25rem 0;
    }

    .pricing-heading,
    .faq-heading {
        font-size: 1rem;
    }
}

/* ============================================================
   DOOR BLOCK — УЛУЧШЕННЫЙ БЛОК ДВЕРЕЙ (plan.md)
   ============================================================ */

/* ── Заголовок блока двери ──────────────────────────────────── */
.door-block-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.door-block-title {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--graphite);
    text-transform: uppercase;
    margin: 0;
}

/* ── Полноширинные табы секций (ЦЕЛЬНАЯ / 3 / 4 / 5) ──────── */
.door-section-tabs--full {
    height: auto !important;
    padding: 2px !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.door-section-tabs--full .door-section-tab {
    font-size: 10px;
    padding: 6px 4px !important;
    text-align: center;
    white-space: nowrap;
}

/* ── Секции в превью двери-купе ─────────────────────────────── */
.door-kupe-section {
    flex: 1;
    background-color: #e4e8ee;
    background-size: 100% 100%;
    position: relative;
    transition: box-shadow 0.15s ease;
}

.door-kupe-section:hover {
    box-shadow: inset 0 0 0 2px rgba(255, 87, 34, 0.45);
}

/* Активная секция (открыта в BOM) — оранжевая рамка */
.door-kupe-section--active {
    box-shadow: inset 0 0 0 2.5px var(--signal-orange) !important;
}

/* Hover-подсветка при наведении на соответствующую BOM-строку */
.door-kupe-section--bom-hover {
    box-shadow: inset 0 0 0 2px rgba(255, 87, 34, 0.3) !important;
}

/* ── BOM (спецификация наполнения секций) ───────────────────── */
.door-bom-title {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--grey-text);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.door-bom-menu {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--border-gray);
    overflow: hidden;
}

.door-bom-item {
    border-bottom: 1px solid var(--border-gray);
}

.door-bom-item:last-child {
    border-bottom: none;
}

.door-bom-menu-item {
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    cursor: pointer;
    background: #f8f9fb;
    transition: background 0.15s;
}

.door-bom-menu-item:hover {
    background: #f0f2f5;
}

.door-bom-menu-item--active {
    background: #fff3ee;
    border-left: 3px solid var(--signal-orange);
    padding-left: 7px;
}

.door-bom-row-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.door-bom-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--graphite);
    letter-spacing: 0.04em;
}

.door-bom-value {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--grey-text);
    text-align: right;
    white-space: nowrap;
}

/* Раскрывающаяся панель секции */
.door-bom-disclosure {
    padding: 2px;
    background: var(--border-gray);
    border-top: 1px solid var(--border-gray);
    animation: fadeIn 0.18s ease;
}

.bom-sub-selection {
    margin-top: 8px;
}


/* Ссылка «Применить ко всем секциям» */
.apply-all-link {
    display: block;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--signal-orange);
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.03em;
    padding: 6px 0;
    border-top: 1px dashed rgba(255, 87, 34, 0.3);
}

.apply-all-link:hover {
    color: var(--graphite);
}

/* ── Сетка выбора материала (цельная дверь) ─────────────────── */
.door-material-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border-gray);
    border: 1.5px solid var(--border-gray);
    margin-bottom: 8px;
}

.door-material-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 9px 6px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--white);
    color: var(--graphite);
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-align: center;
    line-height: 1.2;
}

.door-material-btn:hover:not(.door-material-btn--active) {
    background: #f4f5f7;
}

.door-material-btn--active {
    background: var(--graphite);
    color: var(--white);
}

.door-material-btn--active .door-material-price {
    color: rgba(255, 255, 255, 0.65);
}

.door-material-btn-label {
    display: block;
}

.door-material-price {
    font-size: 9px;
    font-weight: 600;
    color: var(--signal-orange);
    font-family: var(--font-mono);
}
/* ============================================================
   MINIMALIST DARK FOOTER (QUANTIS STYLE)
   ============================================================ */
.footer-main {
    background-color: #000000;
    color: #ffffff;
    padding: 100px 0 40px;
    font-family: var(--font-sans);
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

/* Watermark Background (Full Width Refined) */
.footer-main::after {
    content: 'NEOPTOM';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 17.5vw;
    font-weight: 950;
    color: #ffffff15;
    pointer-events: none;
    line-height: 0.8;
    white-space: nowrap;
    z-index: 1;
    letter-spacing: -0.5vw;
    text-align: center;
    width: 100%;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    letter-spacing: 2px;
    text-decoration: none;
}

.footer-logo svg path {
    fill: #FF5722 !important;
}

.footer-desc {
    font-size: 0.75rem;
    color: #ffffff;
    line-height: 1.8;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.9;
    max-width: 300px;
}

.coming-soon-text {
    opacity: 0.5;
    font-size: 0.85em;
    margin-left: 8px;
}

.footer-phone {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    text-decoration: none;
    letter-spacing: 1px;
}

.footer-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 25px;
}

.footer-warehouses {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.warehouse-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #ffffff;
    text-transform: uppercase;
    opacity: 0.7;
}

.footer-brand, .footer-warehouses, .footer-navigation, .footer-intelligence {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50% !important;
    flex-shrink: 0;
}

.status-dot--working { background-color: #4CAF50; }
.status-dot--coming { background-color: #FFC107; }


.footer-categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.footer-categories-grid--single {
    grid-template-columns: 1fr;
    gap: 12px;
}

.footer-cat-link {
    font-size: 0.75rem;
    color: #ffffff;
    opacity: 0.6;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-cat-link:hover {
    opacity: 1;
}

.footer-bottom {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}

/* Responsive Footer Refinements */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer-navigation {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 60px 0 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .footer-brand, .footer-warehouses {
        align-items: center;
        text-align: center;
    }
    .footer-navigation {
        grid-column: span 1;
    }
    .footer-categories-grid {
        justify-items: center;
    }
    .footer-desc {
        max-width: 100%;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
    }
}


/* ═══════════════════════════════════════ brw_catalog__template ══ */
/* ─── BRW Catalog Page ──────────────────────────────────── */
.brw-page-header { 
display: flex;
    gap: 24px;
    align-items: self-start;
    justify-content: space-between;
        border-bottom: solid 2px;

    margin-bottom: 1rem;
}
.brw-page-title {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin: 0 0 4px;
}
.brw-page-sub {
font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    /* color: #fff; */
    letter-spacing: .08em;
    text-transform: uppercase;
    /* margin: 0 0 22px; */
    padding: 0.5rem;
    background-color: #cccccc;
    font-weight: 700;
}

/* ─── Category Tabs ─────────────────────────────────────── */
.brw-cat-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 8px;
    scrollbar-width: none;
}
.brw-cat-tabs::-webkit-scrollbar { display: none; }
.brw-cat-tab {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 7px 14px;
    border: 1.5px solid #d0d0d0;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    color: #666;
    transition: border-color .13s, color .13s, background .13s;
    flex-shrink: 0;
}
.brw-cat-tab:hover { border-color: #222; color: #222; }
.brw-cat-tab.active { border-color: #FF5722; background: #FF5722; color: #fff; }

.brw-count {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #999;
    margin: 10px 0 18px;
    letter-spacing: .04em;
}

/* ─── Product Grid ──────────────────────────────────────── */
.brw-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
@media (max-width: 1300px) { .brw-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .brw-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .brw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .brw-grid { grid-template-columns: 1fr; } }

/* Сайдбар-лейаут (страница категории МИФ) — 4 колонки */
.brw-col-content .brw-grid                              { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .brw-col-content .brw-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .brw-col-content .brw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .brw-col-content .brw-grid { grid-template-columns: 1fr; } }

/* ─── Product Card ──────────────────────────────────────── */
.brw-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: box-shadow .15s, border-color .15s;
}
.brw-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); border-color: #ccc; }

.brw-card__img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.brw-card__img { height: 100%; object-fit: contain; display: block; }
.mif-var-card__gallery .brw-card__img {object-position: center; }
.brw-card__img-wrap:not(.mif-var-card__gallery) { padding: 12px; }
.brw-card__no-img {
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    color: #ccc;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.brw-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.brw-card__subcat {
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #FF5722;
}
.brw-card__name {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #111;
    line-height: 1.45;
    margin: 2px 0 4px;
}
.brw-card__sizes {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #888;
    margin: 0 0 10px;
}
.brw-card__btn {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    border: 2px solid #222;
    background: #fff;
    color: #111;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background .13s, color .13s;
    border-radius: 2px;
}
.brw-card__btn:hover { background: #111; color: #fff; }

/* ─── No results / Show more ────────────────────────────── */
.brw-noresults {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-family: 'Roboto Mono', monospace;
    color: #999;
    font-size: 14px;
    display: none;
}
.brw-noresults.visible { display: block; }

.brw-show-more {
    display: flex;
    justify-content: center;
    padding: 20px 0 40px;
}
.brw-show-more__btn {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border: 2px solid #222;
    background: #fff;
    color: #222;
    padding: 13px 40px;
    cursor: pointer;
    border-radius: 2px;
    transition: background .13s, color .13s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.brw-show-more__btn:hover { background: #222; color: #fff; }

/* ─── VV Catalog extras ─────────────────────────────────── */
.vv-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .vv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .vv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .vv-grid { grid-template-columns: 1fr; } }
.vv-card__img-link { display: block; text-decoration: none; }
.vv-chars {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.vv-chars li { font-size: 12px; color: #555; line-height: 1.4; }
.vv-char__key {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #bbb;
    margin-right: 4px;
}

/* ═══════════════════════════════════════ brw_collection__template ══ */
/* ─── Layout ────────────────────────────────────────────── */
.brw-col-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 32px;
    align-items: start;
}
@media (max-width: 860px) { .brw-col-layout { grid-template-columns: 1fr; } }

/* ─── Hero ──────────────────────────────────────────────── */
.brw-col-hero {
    display: flex;
    align-items: flex-end;
    gap: 28px;
    padding: 28px 0 22px;
    border-bottom: 2px solid #111;
    margin-bottom: 28px;
}
.brw-col-hero__img-wrap {
    flex-shrink: 0;
    width: 110px;
    height: 82px;
    overflow: hidden;
    border-radius: 2px;
    border: 1px solid #e5e5e5;
    background: #f5f5f5;
}
.brw-col-hero__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brw-col-hero__info { flex: 1; min-width: 0; }
.brw-col-hero__breadcrumb {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #999;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 6px;
}
.brw-col-hero__breadcrumb a { color: #999; text-decoration: none; }
.brw-col-hero__breadcrumb a:hover { color: #FF5722; }
.brw-col-hero__title {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(20px, 3.5vw, 34px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin: 0 0 4px;
    color: #111;
}
.brw-col-hero__count {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #999;
    letter-spacing: .06em;
}

/* ─── Sidebar ───────────────────────────────────────────── */
.brw-sidebar {
    position: sticky;
    top: 88px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    overflow: hidden;
}
.brw-sidebar__head {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #999;
    padding: 10px 14px 8px;
    border-bottom: 1px solid #e5e5e5;
    margin: 0;
}
.brw-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 2px 0;
}
.brw-sidebar__item a {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #444;
    text-decoration: none;
    padding: 5px 14px;
    border-left: 2px solid transparent;
    transition: color .13s, border-color .13s, background .13s;
    line-height: 1.3;
}
.brw-sidebar__item a:hover { color: #FF5722; background: #fff7f5; border-left-color: #FF5722; }
.brw-sidebar__item a.active { color: #FF5722; font-weight: 700; border-left-color: #FF5722; background: #fff7f5; }
.brw-sidebar__item a.scroll-active { color: #FF5722; border-left-color: #FF5722; }
.brw-sidebar__item--group { padding: 0; margin-top: 12px; }
.brw-sidebar__item--group:first-child { margin-top: 0; }
.brw-sidebar__group-title {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #bbb;
    padding: 6px 12px 4px;
}
.brw-sidebar__count {
    font-size: 10px;
    color: #bbb;
    flex-shrink: 0;
}

/* ─── Content ───────────────────────────────────────────── */
.brw-subcat-section { margin-bottom: 44px; scroll-margin-top: 88px; }
.brw-subcat-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
}
.brw-subcat-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #111;
    margin: 0;
}
.brw-subcat-qty {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #999;
}

/* ─── Card (collection variant) ────────────────────────── */
.brw-card__price {
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    font-weight: 900;
    color: #FF5722;
    margin: 0;
}
.brw-card__article {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #bbb;
    letter-spacing: 0.06em;
    white-space: nowrap;
}
.brw-card__color {
    font-size: 11px;
    color: #888;
    margin: 0 0 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brw-card__footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: auto 0 10px;
}

/* ─── Photo scrubber dots ───────────────────────────────── */
.brw-card__dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 5px 0 0;
    min-height: 12px;
    pointer-events: none;
}
.brw-card__dot {
    width: 18px;
    height: 2px;
    background: #e8e8e8;
    border-radius: 1px;
    transition: background .15s;
}
.brw-card__dot.active { background: #FF5722; }

/* ─── Action buttons ────────────────────────────────────── */
.brw-card__actions {
    display: flex;
    gap: 6px;
    padding: 0 14px 14px;
    margin-top: -4px;
}
.brw-card__act {
    flex: 1;
    padding: 7px 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    border: 1.5px solid #ddd;
    border-radius: 2px;
    background: #fff;
    color: #888;
    cursor: pointer;
    transition: border-color .13s, color .13s, background .13s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}
.brw-card__act:hover { border-color: #999; color: #333; }
.brw-card__act.active-wl  { border-color: #FF5722; color: #FF5722; background: #fff7f5; }
.brw-card__act.active-cart { border-color: #FF5722; color: #FF5722; background: #fff7f5; }

/* ─── Back link ─────────────────────────────────────────── */
.brw-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #666;
    text-decoration: none;
    margin-bottom: 40px;
}
.brw-back-link:hover { color: #FF5722; }

@media (max-width: 860px) {
    .brw-sidebar { display: none; }
}


/* ═══════════════════════════════════════ brw_collections__template ══ */
/* ─── Collections Grid ──────────────────────────────────── */
.brw-collections-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}
@media (max-width: 900px)  { .brw-collections-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .brw-collections-grid { grid-template-columns: 1fr; } }

/* ─── Collection Card ───────────────────────────────────── */
.brw-col-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    overflow: hidden;
    transition: box-shadow .15s, border-color .15s;
    position: relative;
}
.brw-col-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); border-color: #bbb; }

.brw-col-card__img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f5f5f5;
}
.brw-col-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.brw-col-card:hover .brw-col-card__img { transform: scale(1.04); }

.brw-col-card__no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #ccc;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.brw-col-card__body {
    padding: 16px 18px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.brw-col-card__name {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.3;
}
.brw-col-card__arrow {
    font-size: 18px;
    color: #FF5722;
    flex-shrink: 0;
    transition: transform .15s;
}
.brw-col-card:hover .brw-col-card__arrow { transform: translateX(4px); }


/* ═══════════════════════════════════════ brw_cards__template ══ */
/* ─── Breadcrumb ─────────────────────────────────────────── */
.brw-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 18px 0 14px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #999;
    flex-wrap: wrap;
}
.brw-breadcrumb a { color: #999; text-decoration: none; }
.brw-breadcrumb a:hover { color: #222; }
.brw-breadcrumb__sep { color: #ddd; }
.brw-breadcrumb__current { color: #111; }

/* ─── Page Layout ────────────────────────────────────────── */
.brw-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    column-gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}
.brw-product__left,
.brw-chars,
.brw-desc,
.brw-reviews { grid-column: 1; min-width: 0; }
.brw-layout__side {
    grid-column: 2;
    grid-row: 1 / -1;
    position: sticky;
    top: 88px;
    align-self: start;
}
@media (max-width: 960px) {
    .brw-layout { grid-template-columns: 1fr; }
    .brw-layout__side { grid-column: 1; grid-row: auto; position: static; }
}

/* ─── Gallery Layout ─────────────────────────────────────── */
.brw-gallery--has-thumbs {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
    align-items: start;
}
.brw-gallery__thumbs {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.brw-gallery__thumb {
    width: 64px;
    height: 64px;
    border: 2px solid #e5e5e5;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    flex-shrink: 0;
    transition: border-color .13s;
    padding: 4px;
    box-sizing: border-box;
    touch-action: manipulation;
}
.brw-gallery__thumb:hover { border-color: #999; }
.brw-gallery__thumb.active { border-color: #FF5722; }
.brw-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brw-gallery__main-wrapper { position: relative; }
.brw-gallery__main {
    aspect-ratio: 4/3;
    background: #fff;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.brw-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}
.brw-gallery__no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #bbb;
    letter-spacing: .08em;
}
/* ─── Gallery Arrows ─────────────────────────────────────── */
.brw-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 52px;
    background: rgba(38,38,38,0.72);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: background .13s;
    padding: 0;
}
.brw-gallery__arrow:hover { background: #FF5722; }
.brw-gallery__arrow--prev { left: 0; }
.brw-gallery__arrow--next { right: 0; }
@media (max-width: 900px) {
    .brw-gallery--has-thumbs {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .brw-gallery__main-wrapper { order: 1; }
    .brw-gallery__thumbs {
        order: 2;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
        padding-bottom: 3px;
    }
    .brw-gallery__thumb {
        width: 64px;
        height: 64px;
        flex-shrink: 0;
    }
}

/* ─── Lightbox ───────────────────────────────────────────── */
.brw-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.brw-lightbox.active { display: flex; }
.brw-lightbox__img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    display: block;
    user-select: none;
}
.brw-lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(38,38,38,0.9);
    border: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .13s;
    z-index: 2;
}
.brw-lightbox__close:hover { background: #FF5722; }
.brw-lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 66px;
    background: rgba(38,38,38,0.7);
    border: none;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .13s;
    z-index: 2;
    padding: 0;
}
.brw-lightbox__arrow:hover { background: #FF5722; }
.brw-lightbox__arrow--prev { left: 12px; }
.brw-lightbox__arrow--next { right: 12px; }
.brw-lightbox__counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    letter-spacing: .08em;
    pointer-events: none;
}

/* ─── Info Panel ─────────────────────────────────────── */
.brw-info {
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}
.brw-info__collection {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    text-decoration: none;
    color: #111;
    transition: background .13s;
}
.brw-info__collection:hover { background: #f5f5f5; }
.brw-info__collection-arrow {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1.5px solid #e0e0e0;
    border-radius: 2px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: border-color .13s, background .13s, transform .13s;
}
.brw-info__collection:hover .brw-info__collection-arrow {
    border-color: #999;
    background: #eee;
    transform: translateX(-3px);
}
.brw-info__collection-img {
    width: auto;
    height: 70px;
    object-fit: contain;
    border: 1px solid #e5e5e5;
    flex-shrink: 0;
    padding: 2px;
}
.brw-info__collection-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.brw-info__collection-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #aaa;
}
.brw-info__collection-name {
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.brw-info__body { padding: 20px 20px 16px; }
.brw-info__stock-row { margin-bottom: 12px; }
.brw-info__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #2e7d32;
    letter-spacing: .04em;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 2px;
    padding: 5px 10px;
}
.brw-info__price {
    font-family: 'Roboto Mono', monospace;
    font-size: 30px;
    font-weight: 900;
    color: #111;
    margin: 0 0 16px;
    letter-spacing: -.01em;
    line-height: 1.1;
}
.brw-info__sizes-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.brw-info__size-chip {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 5px 10px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #333;
}
.brw-info__size-chip span { color: #999; font-weight: 400; margin-right: 3px; }
.brw-info__delivery {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #666;
    margin-bottom: 18px;
    padding: 9px 13px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 2px;
}
.brw-info__cta-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: stretch;
}
.brw-info__btn-order {
    flex: 1;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 12px 16px;
    background: #FF5722;
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background .13s;
}
.brw-info__btn-order:hover { background: #e64919; }
.brw-info__btn-icon {
    width: 44px;
    flex-shrink: 0;
    border: 1.5px solid #e0e0e0;
    border-radius: 2px;
    background: #fff;
    color: #aaa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .13s, color .13s, background .13s;
    padding: 0;
}
.brw-info__btn-icon:hover { border-color: #999; color: #333; }
.brw-info__btn-icon.active-wl  { border-color: #FF5722; color: #FF5722; background: #fff7f5; }
.brw-info__btn-icon.active-cart { border-color: #FF5722; color: #FF5722; background: #fff7f5; }

/* Params table */
.brw-params-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.brw-params-table tr:nth-child(even) td { background: #fafafa; }
.brw-params-table td {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    padding: 7px 10px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.4;
}
.brw-params-table td:first-child { color: #888; width: 44%; }
.brw-params-table td:last-child  { color: #111; font-weight: 700; }

/* Color chips */
.brw-info__colors { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.brw-info__color-chip {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 4px 8px;
    color: #555;
}
.brw-info__color-chip strong { color: #111; }

/* PDF button */
.brw-info__pdf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    border: 1.5px solid #ddd;
    border-radius: 2px;
    padding: 9px 16px;
    color: #555;
    text-decoration: none;
    transition: border-color .13s, color .13s;
}
.brw-info__pdf:hover { border-color: #999; color: #111; }

/* ─── Client Photos ─────────────────────────────────────────── */
.brw-product__left {
    min-width: 0;
}
.brw-client-photos {
    margin-top: 20px;
    margin-bottom: 24px;
}
.brw-client-photos__title {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #888;
    margin: 0 0 10px;
}
.brw-client-photos__grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    padding-bottom: 4px;
}
.brw-client-photo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: block;
    object-fit: cover;
    border: 2px solid #e5e5e5;
    background: #fff;
    padding: 4px;
    box-sizing: border-box;
    cursor: zoom-in;
    touch-action: manipulation;
    transition: border-color .13s, opacity .13s;
}
.brw-client-photo:hover { border-color: #FF5722; opacity: .88; }

/* ─── Characteristics ────────────────────────────────────── */
.brw-chars {
    margin-bottom: 48px;
    padding-top: 36px;
    border-top: 2px solid #111;
}
.brw-chars__heading {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin: 0 0 28px;
    color: #111;
}
.brw-chars__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
.brw-chars__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px dashed #e0e0e0;
}
.brw-chars__row:nth-child(odd)  { background: #fafafa; }
.brw-chars__row:nth-child(even) { background: #fff; }
.brw-chars__key {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}
.brw-chars__val {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #111;
    text-align: right;
}

/* ─── Description ─────────────────────────────────────────── */
.brw-desc {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    padding: 24px 28px;
    margin-bottom: 24px;
}
.brw-desc__title {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #aaa;
    margin: 0 0 14px;
}
.brw-desc__text {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: #444;
    line-height: 1.8;
    margin: 0 0 12px;
}

/* ─── Variants in right panel ─────────────────────────────── */
.brw-info__variants {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
}
.brw-info__variants-title {
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #aaa;
    margin: 0 0 10px;
}
.brw-info__variants-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.brw-info__variant {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    width: 68px;
}
.brw-info__variant-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 2px solid #e5e5e5;
    border-radius: 2px;
    padding: 3px;
    background: #fff;
    transition: border-color .13s;
}
.brw-info__variant:hover .brw-info__variant-img { border-color: #999; }
.brw-info__variant.active .brw-info__variant-img { border-color: #FF5722; }
.brw-info__variant-name {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #777;
    text-align: center;
    text-transform: capitalize;
    line-height: 1.3;
}
.brw-info__variant.active .brw-info__variant-name { color: #FF5722; font-weight: 700; }

/* ─── Reviews ─────────────────────────────────────────────── */
.brw-reviews {
    border-top: 2px solid #222;
    padding-top: 28px;
    margin-bottom: 48px;
}
.brw-reviews__heading {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 24px;
}
.brw-review {
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    padding: 16px 18px;
    margin-bottom: 12px;
    background: #fff;
}
.brw-review__header {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.brw-review__name {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #111;
}
.brw-review__date {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #aaa;
}
.brw-review__text {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #444;
    line-height: 1.7;
    margin: 0 0 10px;
}
.brw-review__photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.brw-review__photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid #e0e0e0;
}

/* ─── Order Modal ────────────────────────────────────────── */
.brw-order-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.brw-order-overlay.active { display: flex; }
.brw-order-dialog {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    width: 100%;
    max-width: 420px;
    margin: 16px;
    overflow: hidden;
}
.brw-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}
.brw-order-header h3 {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #111;
    margin: 0;
}
.brw-order-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #aaa;
    line-height: 1;
    padding: 0 4px;
}
.brw-order-close:hover { color: #111; }
.brw-order-body { padding: 20px; }
.brw-order-product {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #777;
    margin: 0 0 16px;
}
.brw-order-field { margin-bottom: 12px; }
.brw-order-field label {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #888;
    margin-bottom: 5px;
}
.brw-order-field input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    padding: 9px 12px;
    border: 1.5px solid #ddd;
    border-radius: 2px;
    outline: none;
    transition: border-color .13s;
}
.brw-order-field input:focus { border-color: #FF5722; }
.brw-order-submit {
    width: 100%;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 12px;
    background: #FF5722;
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background .13s;
    margin-top: 4px;
}
.brw-order-submit:hover { background: #e64919; }
.brw-order-submit:disabled { background: #ccc; cursor: default; }
.brw-order-msg {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    margin-top: 10px;
    min-height: 18px;
    color: #e53935;
}
.brw-order-msg.ok { color: #388e3c; }


/* ═══════════════════════════════════════ cart__template ══ */
/* ─── Page ─────────────────────────────────────────────── */
.cart-page { max-width: 1280px; margin: 0 auto; padding: 0 24px 60px; }
.cart-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 28px 0 6px;
    border-bottom: 2px solid #111;
    margin-bottom: 36px;
    gap: 16px;
    flex-wrap: wrap;
}
.cart-title {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin: 0;
    color: #111;
}
.cart-clear {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #999;
    background: none;
    border: 1.5px solid #ddd;
    border-radius: 2px;
    padding: 8px 16px;
    cursor: pointer;
    transition: color .13s, border-color .13s;
    display: flex;
    align-items: center;
    gap: 6px;
    touch-action: manipulation;
}
.cart-clear:hover { color: #c00; border-color: #c00; }

/* ─── Empty ─────────────────────────────────────────────── */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
    font-family: 'Roboto Mono', monospace;
}
.cart-empty__icon { font-size: 48px; margin-bottom: 16px; opacity: .2; }
.cart-empty__text { font-size: 14px; color: #999; margin: 0 0 24px; }
.cart-empty__link {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border: 2px solid #222;
    padding: 10px 28px;
    color: #111;
    text-decoration: none;
    border-radius: 2px;
    transition: background .13s, color .13s;
}
.cart-empty__link:hover { background: #111; color: #fff; }

/* ─── Layout ─────────────────────────────────────────────── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 860px) {
    .cart-layout { grid-template-columns: 1fr; }
}

/* ─── Items list ─────────────────────────────────────────── */
.cart-items { display: flex; flex-direction: column; gap: 10px; }
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}
.cart-item__factory {
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    border: 1px solid;
    letter-spacing: 0.03em;
}
.cart-item__factory--mif  { background: rgba(139,92,246,0.08); color: #7c3aed; border-color: rgba(139,92,246,0.22); }
.cart-item__factory--brw  { background: rgba(14,165,233,0.08); color: #0284c7; border-color: rgba(14,165,233,0.22); }
.cart-item__factory--other { background: #f4f4f5; color: #71717a; border-color: #d4d4d8; }
@media (max-width: 600px) {
    .cart-item {
        grid-template-columns: 64px 1fr auto;
        grid-template-rows: auto auto;
    }
    .cart-item__qty { grid-column: 2; grid-row: 2; }
    .cart-item__total { grid-column: 3; grid-row: 2; }
    .cart-item__remove { grid-column: 3; grid-row: 1; justify-self: end; }
}

.cart-item__img-wrap {
    width: 80px;
    height: 80px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}
@media (max-width: 600px) { .cart-item__img-wrap { width: 64px; height: 64px; } }
.cart-item__img { width: 100%; height: 100%; object-fit: contain; display: block; }

.cart-item__info { min-width: 0; }
.cart-item__name {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 0 0 4px;
    text-decoration: none;
    display: block;
}
.cart-item__name:hover { color: #FF5722; }
.cart-item__sizes {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #888;
    margin: 0;
}

.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #ddd;
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}
.cart-item__qty-btn {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .1s;
    touch-action: manipulation;
    flex-shrink: 0;
}
.cart-item__qty-btn:hover { background: #eee; }
.cart-item__qty-input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1.5px solid #ddd;
    border-right: 1.5px solid #ddd;
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    background: #fff;
    outline: none;
    -moz-appearance: textfield;
}
.cart-item__qty-input::-webkit-inner-spin-button,
.cart-item__qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.cart-item__total {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.cart-item__remove {
    width: 30px;
    height: 30px;
    background: none;
    border: 1.5px solid #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    transition: color .13s, border-color .13s;
    flex-shrink: 0;
    touch-action: manipulation;
}
.cart-item__remove:hover { color: #c00; border-color: #c00; }

/* ─── Summary sidebar ────────────────────────────────────── */
.cart-summary {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    padding: 24px;
    position: sticky;
    top: 88px;
}
.cart-summary__title {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #111;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}
.cart-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #666;
}
.cart-summary__row--total {
    font-size: 18px;
    font-weight: 900;
    color: #111;
    padding-top: 14px;
    margin-top: 10px;
    border-top: 2px solid #111;
    margin-bottom: 20px;
}
.cart-summary__val { font-weight: 700; color: #111; white-space: nowrap; }
.cart-summary__val--total { font-weight: 900; font-size: 18px; }
.cart-order-btn {
    display: block;
    width: 100%;
    padding: 14px 12px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: #FF5722;
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
    transition: background .13s;
    touch-action: manipulation;
}
.cart-order-btn:hover { background: #e64a19; }
.cart-summary__note {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #bbb;
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

/* ─── Order Modal ────────────────────────────────────────── */
.cart-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cart-modal-overlay.active { display: flex; }
.cart-modal {
    background: #fff;
    border-radius: 3px;
    padding: 32px;
    width: 100%;
    max-width: 440px;
    position: relative;
}
.cart-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: none;
    border: 1.5px solid #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: color .13s, border-color .13s;
    touch-action: manipulation;
}
.cart-modal__close:hover { color: #c00; border-color: #c00; }
.cart-modal__title {
    font-family: 'Roboto Mono', monospace;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #111;
    margin: 0 0 6px;
}
.cart-modal__subtitle {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #999;
    margin: 0 0 24px;
}
.cart-modal__field { margin-bottom: 14px; }
.cart-modal__label {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #666;
    margin-bottom: 6px;
}
.cart-modal__input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    color: #111;
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 2px;
    outline: none;
    transition: border-color .13s;
    box-sizing: border-box;
}
.cart-modal__input:focus { border-color: #FF5722; }
.cart-modal__submit {
    width: 100%;
    height: 50px;
    padding: 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: #FF5722;
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background .13s;
    margin-top: 6px;
    touch-action: manipulation;
}
.cart-modal__submit:hover { background: #e64a19; }
.cart-modal__submit:disabled { background: #ccc; cursor: not-allowed; }
.cart-modal__ok {
    text-align: center;
    padding: 16px 0 8px;
    font-family: 'Roboto Mono', monospace;
}
.cart-modal__ok-icon { font-size: 36px; margin-bottom: 10px; }
.cart-modal__ok-text { font-size: 13px; font-weight: 700; color: #111; margin: 0 0 4px; }
.cart-modal__ok-sub  { font-size: 11px; color: #999; margin: 0; }


/* ═══════════════════════════════════════ compare__template ══ */
/* ─── Page ────────────────────────────────────────────── */
.cmp-page { max-width: 1280px; margin: 0 auto; padding: 0 24px 60px; }
.cmp-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 28px 0 6px;
    border-bottom: 2px solid #111;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}
.cmp-title {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin: 0;
    color: #111;
}
.cmp-clear {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #999;
    background: none;
    border: 1.5px solid #ddd;
    border-radius: 2px;
    padding: 8px 16px;
    cursor: pointer;
    transition: color .13s, border-color .13s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cmp-clear:hover { color: #c00; border-color: #c00; }

/* ─── Filter tabs ─────────────────────────────────────── */
.cmp-filter {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}
.cmp-filter__btn {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 8px 18px;
    border: 1.5px solid #d0d0d0;
    border-radius: 2px;
    background: #fff;
    color: #666;
    cursor: pointer;
    transition: border-color .13s, color .13s, background .13s;
}
.cmp-filter__btn:hover { border-color: #222; color: #222; }
.cmp-filter__btn.active { background: #FF5722; border-color: #FF5722; color: #fff; }

/* ─── Empty ───────────────────────────────────────────── */
.cmp-empty {
    text-align: center;
    padding: 80px 20px;
    font-family: 'Roboto Mono', monospace;
}
.cmp-empty__icon { font-size: 48px; margin-bottom: 16px; opacity: .25; }
.cmp-empty__text { font-size: 14px; color: #999; margin: 0 0 24px; }
.cmp-empty__link {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border: 2px solid #222;
    padding: 10px 28px;
    color: #111;
    text-decoration: none;
    border-radius: 2px;
    transition: background .13s, color .13s;
}
.cmp-empty__link:hover { background: #111; color: #fff; }

/* ─── Table ───────────────────────────────────────────── */
.cmp-table-wrap { overflow-x: auto; }
.cmp-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* First column — param names */
.cmp-table td:first-child,
.cmp-table th:first-child {
    width: 160px;
    min-width: 140px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #888;
    padding: 12px 16px 12px 0;
    border-bottom: 1px dashed #e0e0e0;
    vertical-align: top;
    white-space: nowrap;
}

/* Product columns */
.cmp-table td, .cmp-table th {
    padding: 12px 16px;
    border-bottom: 1px dashed #e0e0e0;
    vertical-align: top;
    min-width: 180px;
}
.cmp-table tr:nth-child(even) td { background: #fafafa; }
.cmp-table tr:nth-child(even) td:first-child { background: transparent; }

/* Product header cell */
.cmp-prod-head {
    text-align: left;
    padding-bottom: 20px !important;
    border-bottom: 2px solid #e5e5e5 !important;
    vertical-align: top;
    background: #fff !important;
}
.cmp-prod-img {
    aspect-ratio: 4/3;
    width: 100%;
    max-width: 200px;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
    background: #fafafa;
    padding: 6px;
}
.cmp-prod-remove {
    display: block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    color: #aaa;
    font-size: 12px;
    margin-bottom: 8px;
    transition: color .13s, border-color .13s;
}
.cmp-prod-remove:hover { color: #c00; border-color: #c00; }
.cmp-prod-name {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #111;
    line-height: 1.4;
    margin: 0 0 8px;
}
.cmp-prod-sizes {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #888;
    margin: 0 0 12px;
}
.cmp-prod-btn {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: 2px solid #222;
    padding: 7px 14px;
    color: #111;
    text-decoration: none;
    border-radius: 2px;
    transition: background .13s, color .13s;
}
.cmp-prod-btn:hover { background: #FF5722; border-color: #FF5722; color: #fff; }

/* Value cells */
.cmp-val {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #111;
}
.cmp-val--diff { color: #FF5722; }
.cmp-val--empty { color: #ccc; font-weight: 400; }


/* ═══════════════════════════════════════ cupe_cards__template ══ */
@media print {
    @page { margin: 0; size: A4 portrait; }
    body > *:not(#pdf-smeta) { display: none !important; }
    #pdf-smeta { display: block !important; width: 210mm; }
}

#order-modal-overlay { display: none; }
#order-modal-overlay.is-open { display: flex !important; }
#order-phone:focus, #order-name:focus { border-color: #FF5722; }
#order-phone.error { border-color: #e53935; }


/* ═══════════════════════════════════════ cupe_catalog__template ══ */
/* ─── Catalog Page Header ─────────────────────────────────── */
.catalog-page-header {
    padding: 28px 0 10px;
}
.catalog-page-title {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(22px, 4vw, 38px);
    font-weight: 900;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0 0 6px;
    line-height: 1.1;
}
.catalog-page-subtitle {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #999;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 22px;
}

/* ─── Filter Bar ──────────────────────────────────────────── */
.catalog-filter {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 14px 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
@media (max-width: 640px) {
    .catalog-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 14px;
    }
    .catalog-filter__type-group {
        order: -1;
    }
    .catalog-filter__sizes-row {
        display: flex;
        gap: 8px;
        align-items: flex-end;
    }
    .catalog-filter__sizes-row .catalog-filter__group {
        flex: 1;
    }
    .catalog-filter__sizes-row .catalog-filter__select {
        min-width: 0;
        width: 100%;
        font-size: 12px;
        padding: 7px 24px 7px 8px;
    }
    .catalog-filter__sizes-row .catalog-filter__reset {
        margin-top: 16px;
        flex-shrink: 0;
    }
}
.catalog-filter__group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.catalog-filter__label {
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
}
.catalog-filter__select-wrap {
    position: relative;
}
.catalog-filter__select {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    border: 1.5px solid #222;
    border-radius: 2px;
    background: #fff;
    padding: 7px 32px 7px 12px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    min-width: 155px;
    color: #222;
}
.catalog-filter__select:focus {
    outline: none;
    border-color: #FF5722;
}
.catalog-filter__chevron {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 10px;
    height: 6px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #333;
}
.catalog-filter__reset {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid #ccc;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    transition: border-color .15s, color .15s;
    margin-top: 18px;
    flex-shrink: 0;
}
.catalog-filter__reset:hover {
    border-color: #FF5722;
    color: #FF5722;
}
.catalog-filter__type-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ─── Catalog Grid ────────────────────────────────────────── */
.catalog-section {
    padding-bottom: 40px;
}
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1100px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .catalog-grid { grid-template-columns: 1fr; } }

/* ─── Product Card ────────────────────────────────────────── */
.catalog-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .15s, border-color .15s;
}
.catalog-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,.10);
    border-color: #ccc;
}
.catalog-card__image-wrap {
    position: relative;
    background: #f5f5f5;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.catalog-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.catalog-card__blueprint {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #bbb;
    width: 100%;
    height: 100%;
}
.catalog-card__blueprint svg {
    opacity: 0.35;
}
.catalog-card__blueprint-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #bbb;
    text-align: center;
    line-height: 1.6;
}
.catalog-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #FF5722;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 2px;
    text-transform: uppercase;
    z-index: 2;
}
.catalog-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}
.catalog-card__dims {
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 0;
}
.catalog-card__series-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin: 0 0 6px;
}
.catalog-card__price-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #aaa;
    margin: 0;
}
.catalog-card__price {
    font-family: 'Roboto Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
}
.catalog-card__price span {
    font-size: 13px;
    font-weight: 400;
    color: #888;
    margin-right: 4px;
}
.catalog-card__btn {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid #222;
    background: #fff;
    color: #111;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background .13s, color .13s, border-color .13s;
    border-radius: 2px;
    margin-top: auto;
}
.catalog-card__btn:hover {
    background: #111;
    color: #fff;
}
.catalog-card__btn--accent {
    background: #FF5722;
    border-color: #FF5722;
    color: #fff;
}
.catalog-card__btn--accent:hover {
    background: #e64a19;
    border-color: #e64a19;
}
.catalog-card[data-hidden="true"] {
    display: none;
}

/* ─── Show More Button ────────────────────────────────────── */
.catalog-show-more {
    display: flex;
    justify-content: center;
    padding: 10px 0 40px;
}
.catalog-show-more__btn {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: 2px solid #222;
    background: #fff;
    color: #222;
    padding: 13px 40px;
    cursor: pointer;
    border-radius: 2px;
    transition: background .13s, color .13s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.catalog-show-more__btn:hover {
    background: #222;
    color: #fff;
}
.catalog-show-more__btn[data-hidden="true"] {
    display: none;
}

/* ─── No Results ──────────────────────────────────────────── */
.catalog-noresults {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-family: 'Roboto Mono', monospace;
    color: #999;
    font-size: 14px;
    display: none;
}
.catalog-noresults[data-visible="true"] {
    display: block;
}


/* ═══════════════════════════════════════ index__template ══ */
/* ═══════════════════════════════════════════════════════════
   INDEX PAGE — дополнительные стили
   Все базовые стили (header, footer, pricing-section) из css/style.css
   ═══════════════════════════════════════════════════════════ */

/* ── Общие секционные элементы ─────────────────────────────── */
.index-section-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: #FF5722;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 6px;
}
.index-section-heading {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.05;
}
.index-section-header {
    display: block;
    margin-bottom: 44px;
    padding: 0;
}
.index-section-divider {
    flex: 1;
    height: 1px;
    background: #222;
    opacity: 0.15;
    margin: 0 28px 10px;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #222;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.70) 35%, rgba(0,0,0,0.30) 65%, rgba(0,0,0,0.10) 100%);
    pointer-events: none;
}
.hero-left {
    position: relative;
    z-index: 1;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    max-width: 760px;
}
.hero-terminal-badge {
    display: inline-block;
    background: #FF5722;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 5px 12px;
}
.hero-title {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(26px, 3.5vw, 50px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0;
    color: #fff;
}
.hero-desc {
    border-left: 4px solid #FF5722;
    padding-left: 20px;
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    max-width: 460px;
    line-height: 1.65;
    margin: 0;
}
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
.hero-tag {
    border: 1px solid rgba(255,255,255,0.35);
    padding: 5px 14px;
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255,255,255,0.08);
    color: #fff;
    text-decoration: none;
    transition: background .12s, color .12s, border-color .12s;
}
.hero-tag:hover {
    background: #FF5722;
    color: #fff;
    border-color: #FF5722;
}
.hero-cta-btn {
    display: inline-block;
    background: #FF5722;
    color: #fff;
    padding: 20px 42px;
    font-family: 'Roboto Mono', monospace;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1.5px solid #fff;
    box-shadow: 4px 4px 0 0 rgba(255,255,255,0.3);
    cursor: pointer;
    transition: transform .1s;
    text-decoration: none;
    align-self: flex-start;
}
.hero-cta-btn:hover {
    transform: translate(1px, -1px);
    color: #fff;
}
.hero-location-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 10px 16px;
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
@media (max-width: 900px) {
    .hero-section { min-height: 420px; }
    .hero-left { padding: 40px 24px; gap: 20px; }
    .hero-title { font-size: clamp(26px, 7vw, 48px); }
    .hero-cta-btn { padding: 16px 28px; font-size: 13px; }
}
@media (max-width: 540px) {
    .hero-section { min-height: 360px; }
    .hero-left { padding: 32px 16px; gap: 16px; max-width: 100%; }
    .hero-title { font-size: clamp(24px, 8vw, 36px); line-height: 1; }
    .hero-desc { font-size: 14px; padding-left: 14px; }
    .hero-tags { gap: 6px; }
    .hero-tag { font-size: 11px; padding: 4px 10px; }
    .hero-cta-btn { padding: 14px 22px; font-size: 12px; width: 100%; text-align: center; box-sizing: border-box; }
    .hero-location-badge { display: none; }
    .hero-terminal-badge { font-size: 9px; }
}

/* ── Hero catalog button (wider) ───────────────────────────── */
.hero-cta-btn--catalog {
    min-width: 340px;
    text-align: center;
    display: block;
}

/* ── Factory Connect ───────────────────────────────────────── */
.factory-connect-section {
    background: #fff;
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    padding: 5rem 1.5rem;
}

.factory-connect-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.factory-connect-text {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 620px;
}

.factory-connect-label {
    font-size: 0.7rem;
    font-family: var(--font-mono, monospace);
    color: #FF5722;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.factory-connect-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.2;
}

.factory-connect-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.factory-connect-btn {
    flex-shrink: 0;
    white-space: nowrap;
    border-color: transparent !important;
    box-shadow: 4px 4px 0 0 rgba(255, 87, 34, 0.25) !important;
}

@media (max-width: 900px) {
    .factory-connect-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    .factory-connect-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .hero-cta-btn--catalog {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ── Partners ──────────────────────────────────────────────── */
.partners-section {
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
    background: #f5f5f5;
}
.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.partner-card {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    transition: border-color .15s;
    display: flex;
    flex-direction: column;
}
.partner-card:hover {
    border-color: #FF5722;
}
.partner-card:hover .catalog-card__btn {
    background: #111;
    color: #fff;
}
.partner-card__img-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    background: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Partner Slideshows ─────────────────────────────────────── */
#brw-partner-slideshow,
#mif-partner-slideshow,
#vv-partner-slideshow,
#kupe-partner-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.brw-partner-slide,
.mif-partner-slide,
.vv-partner-slide,
.kupe-partner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
/* ── MIF Catalog Category Card Slideshow ──────────────────── */
.mif-cat-slideshow {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.mif-cat-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.partner-card__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #bbb;
}
.partner-card__placeholder-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ccc;
}
.partner-card__body {
    padding: 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.partner-card__name {
    font-family: 'Roboto Mono', monospace;
    font-size: 18px;
    font-weight: 900;
    margin: 0 0 4px;
    color: #111;
}
.partner-card__stock {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 20px;
    flex: 1;
}
.partner-card__stock--available { color: #4caf50; }
.partner-card__stock--low       { color: #ff9800; }
.partner-card__stock--preorder  { color: #999; }
.partner-card__subtitle {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 20px;
    flex: 1;
}
@media (max-width: 900px)  { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .partners-grid { grid-template-columns: 1fr; } }
@media (max-width: 780px)  { .partners-section { padding: 32px 0; } }
@media (max-width: 540px) {
    .index-section-header { flex-direction: column; align-items: flex-start; margin-bottom: 24px; gap: 8px; }
    .index-section-divider { display: none; }
    .index-section-heading { font-size: clamp(20px, 6vw, 28px); }
    .partner-card__img-wrap { height: 200px; }
}

/* ── Popular Products ──────────────────────────────────────── */
.products-section {
    padding: 60px 0;
    border-bottom: 1px solid #e0e0e0;
    background: #fff;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1.5px solid #222;
}
.product-item {
    padding: 32px;
    border-right: 1px solid #e0e0e0;
    transition: background .13s;
    cursor: pointer;
    position: relative;
}
.product-item:last-child { border-right: none; }
.product-item:hover { background: #f7f7f7; }
.product-item:hover .product-item__img { filter: grayscale(0); }
.product-item:hover .product-item__cart-icon { opacity: 1; }
.product-item__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.product-item__id {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.product-item__cart-icon {
    color: #FF5722;
    opacity: 0;
    transition: opacity .13s;
    font-size: 20px;
}
.product-item__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    filter: grayscale(1);
    transition: filter .2s;
    margin-bottom: 20px;
    background: #f0f0f0;
}
.product-item__img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #ccc;
}
.product-item__name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    color: #111;
}
.product-item__prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.product-item__price {
    font-family: 'Roboto Mono', monospace;
    font-size: 22px;
    font-weight: 900;
    color: #111;
}
.product-item__old-price {
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}
@media (max-width: 780px) {
    .products-grid { grid-template-columns: 1fr; }
    .product-item { border-right: none; border-bottom: 1px solid #e0e0e0; }
    .products-section { padding: 32px 0; }
}

/* ── Requisites Page ───────────────────────────────────────── */
.req-page {
    background: #ecedef;
    min-height: 100vh;
    padding: 48px 20px 80px;
}
.req-doc {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 4px 40px rgba(0,0,0,0.13);
}

/* Header strip */
.req-doc__header {
    background: #111;
    padding: 40px 56px 36px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.req-doc__header-left { flex: 1; }
.req-doc__label {
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 12px;
    display: block;
}
.req-doc__title {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.92;
    margin: 0;
    color: #fff;
}
.req-doc__title span { color: #FF5722; }
.req-doc__stamp {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 16px 20px;
}
.req-doc__stamp svg circle { stroke: #FF5722; }
.req-doc__stamp-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #FF5722;
    text-transform: uppercase;
    text-align: center;
}
.req-doc__stamp-sub {
    font-family: 'Roboto Mono', monospace;
    font-size: 7px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

/* Body */
.req-doc__body {
    padding: 0 56px 48px;
}

/* Sections */
.req-doc__section {
    border-bottom: 1px solid #ebebeb;
    padding: 32px 0;
}
.req-doc__section:last-of-type { border-bottom: none; }
.req-doc__section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #FF5722;
    margin-bottom: 20px;
}
.req-doc__section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #f0f0f0;
}

/* Rows */
.req-dl { display: flex; flex-direction: column; gap: 0; }
.req-dl__row {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}
.req-dl__row:last-child { border-bottom: none; }
.req-dl dt {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-right: 20px;
    line-height: 1.6;
}
.req-dl dd {
    font-size: 14px;
    color: #111;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}
.req-dl__mono {
    font-family: 'Roboto Mono', monospace;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #111;
    background: #f7f7f7;
    padding: 3px 10px;
    display: inline-block;
}
.req-dl a { color: #FF5722; text-decoration: none; font-weight: 600; }
.req-dl a:hover { text-decoration: underline; }

/* Footer */
.req-doc__footer {
    background: #f7f7f7;
    border-top: 2px solid #ebebeb;
    padding: 28px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.req-doc__footer-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    color: #bbb;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.req-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FF5722;
    color: #fff;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 13px 24px;
    text-decoration: none;
    transition: background .15s, transform .1s;
    white-space: nowrap;
    flex-shrink: 0;
}
.req-download-btn:hover { background: #e04a1a; color: #fff; transform: translateY(-1px); }

@media (max-width: 640px) {
    .req-doc__header { padding: 28px 20px 24px; flex-direction: column; align-items: flex-start; }
    .req-doc__body { padding: 0 20px 36px; }
    .req-dl__row { grid-template-columns: 1fr; gap: 2px; padding: 10px 0; }
    .req-dl dt { font-size: 9px; }
    .req-dl dd { font-size: 13px; }
    .req-doc__footer { flex-direction: column; align-items: flex-start; padding: 20px; gap: 16px; }
    .req-doc__stamp { display: none; }
}


/* ═══════════════════════════════════════ wishlist__template ══ */
/* ─── Page ────────────────────────────────────────────── */
.wl-page { max-width: 1280px; margin: 0 auto; padding: 0 24px 60px; }
.wl-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 28px 0 6px;
    border-bottom: 2px solid #111;
    margin-bottom: 36px;
    gap: 16px;
    flex-wrap: wrap;
}
.wl-title {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .01em;
    margin: 0;
    color: #111;
}
.wl-clear {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #999;
    background: none;
    border: 1.5px solid #ddd;
    border-radius: 2px;
    padding: 8px 16px;
    cursor: pointer;
    transition: color .13s, border-color .13s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wl-clear:hover { color: #c00; border-color: #c00; }

/* ─── Empty ───────────────────────────────────────────── */
.wl-empty {
    text-align: center;
    padding: 80px 20px;
    font-family: 'Roboto Mono', monospace;
}
.wl-empty__icon { font-size: 48px; margin-bottom: 16px; opacity: .25; }
.wl-empty__text { font-size: 14px; color: #999; margin: 0 0 24px; }
.wl-empty__link {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    border: 2px solid #222;
    padding: 10px 28px;
    color: #111;
    text-decoration: none;
    border-radius: 2px;
    transition: background .13s, color .13s;
}
.wl-empty__link:hover { background: #111; color: #fff; }

/* ─── Group ───────────────────────────────────────────── */
.wl-group { margin-bottom: 48px; }
.wl-group__header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 18px;
}
.wl-group__name {
    font-family: 'Roboto Mono', monospace;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #111;
    margin: 0;
}
.wl-group__count {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    color: #999;
}

/* ─── Grid ────────────────────────────────────────────── */
.wl-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1100px) { .wl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .wl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px)  { .wl-grid { grid-template-columns: 1fr; } }

/* ─── Card ────────────────────────────────────────────── */
.wl-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: box-shadow .15s, border-color .15s;
    cursor: pointer;
}
.wl-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.1); border-color: #ccc; }
.wl-card:hover .wl-card__btn { background: #FF5722; border-color: #FF5722; color: #fff; }

.wl-card__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,.92);
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .13s, border-color .13s;
    color: #aaa;
    font-size: 14px;
    line-height: 1;
}
.wl-card__remove:hover { background: #fff; border-color: #c00; color: #c00; }

.wl-card__img-wrap {
    aspect-ratio: 4/3;
    background: #fafafa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.wl-card__img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wl-card__no-img {
    font-family: 'Roboto Mono', monospace;
    font-size: 9px;
    color: #ccc;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.wl-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 3px;
}
.wl-card__name {
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #111;
    line-height: 1.45;
    flex: 1;
    margin: 0 0 6px;
}
.wl-card__sizes {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #888;
    margin: 0 0 10px;
}
.wl-card__btn {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    border: 2px solid #222;
    background: #fff;
    color: #111;
    text-align: center;
    text-decoration: none;
    transition: background .13s, color .13s;
    border-radius: 2px;
    margin-top: auto;
}

/* ============================================================
   MIF — Фабрика МИФ (переиспользует BRW-классы + доп. стили)
   ============================================================ */

/* Сетка категорий на странице /collections/mif */
.mif-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

/* Карточка категории (текстовая, без фото) */
.mif-cat-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 20px;
    border: 1px solid #ddd;
    background: #fafafa;
    text-decoration: none;
    color: inherit;
    transition: border-color .18s, background .18s;
    position: relative;
}
.mif-cat-card:hover {
    border-color: var(--signal-orange);
    background: #fff7f5;
}
.mif-cat-card__arrow {
    position: absolute;
    top: 20px;
    right: 18px;
    font-size: 1.3rem;
    color: var(--signal-orange);
    line-height: 1;
}
.mif-cat-card__name {
    font-family: 'Roboto Mono', monospace;
    font-size: .95rem;
    font-weight: 700;
    color: #111;
    padding-right: 24px;
}
.mif-cat-card__sub {
    font-size: .78rem;
    color: #888;
    font-family: 'Roboto Mono', monospace;
}

/* Оффер-селектор на карточке товара МИФ */
.mif-offer-select {
    margin: 12px 0;
}
.mif-offer-label {
    font-size: .78rem;
    font-family: 'Roboto Mono', monospace;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.mif-offer-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.mif-offer-tab {
    padding: 6px 11px;
    border: 1px solid #ddd;
    background: #fff;
    font-family: 'Roboto Mono', monospace;
    font-size: .75rem;
    cursor: pointer;
    text-align: left;
    color: #333;
    transition: border-color .15s, background .15s, color .15s;
    line-height: 1.35;
}
.mif-offer-tab:hover {
    border-color: #999;
    background: #f5f5f5;
}
.mif-offer-tab.active {
    border-color: var(--signal-orange);
    background: #fff7f5;
    color: var(--signal-orange);
    font-weight: 700;
}

/* Заголовок коллекции МИФ (без hero-фото) */
.mif-col-hero {
    padding: 32px 0 24px;
    border-bottom: 1px solid #eee;
    margin-bottom: 32px;
}
.mif-col-hero__breadcrumb {
    font-size: .78rem;
    color: #888;
    font-family: 'Roboto Mono', monospace;
    margin-bottom: 10px;
}
.mif-col-hero__breadcrumb a {
    color: #888;
    text-decoration: underline;
    text-decoration-color: #ddd;
}
.mif-col-hero__breadcrumb a:hover { color: var(--signal-orange); }
.mif-col-hero__title {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 900;
    color: #111;
    margin-bottom: 8px;
}
.mif-col-hero__count {
    font-size: .82rem;
    color: #888;
    font-family: 'Roboto Mono', monospace;
}

@media (max-width: 600px) {
    .mif-cats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .mif-offer-tabs { gap: 4px; }
    .mif-offer-tab { font-size: .72rem; padding: 5px 9px; }
}
.wl-card__btn:hover { background: #111; color: #fff; }

/* ── MIF Variant Card swatches ────────────────────────────── */
.mif-var-card__colors-label {
    font-size: 11px;
    color: #aaa;
    margin: 0 0 6px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.mif-var-card__swatches {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin: 6px 0 8px;
}
.mif-swatch-btn {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid #e0e0e0;
    background: #f5f5f5;
    padding: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .12s;
    flex-shrink: 0;
}
.mif-swatch-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mif-swatch-btn.active { border-color: #FF5722; }
.mif-swatch-btn:hover  { border-color: #111; }

.mif-var-card__sborka {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
}
.mif-var-card__sborka:hover { color: #FF5722; }

/* ── MIF Collection Page ───────────────────────────────────── */
.mif-main { max-width: 1280px; margin: 0 auto; padding: 0 24px 60px; }
.mif-var-card__open { display: block; width: 100%; text-align: center; margin-top: auto; }
.mif-back-wrap { margin-top: 40px; }
.mif-col-page__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #aaa;
    padding: 20px 0 28px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.mif-col-page__breadcrumb a { color: #FF5722; text-decoration: none; }
.mif-col-page__breadcrumb a:hover { text-decoration: underline; }

.mif-col-page__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Gallery */
.mif-gallery__main {
    background: #f7f7f7;
    aspect-ratio: 1;
    overflow: hidden;
}
.mif-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .2s;
}
.mif-gallery__thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.mif-thumb-btn {
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    background: #f0f0f0;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s;
}
.mif-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mif-thumb-btn.active { border-color: #FF5722; }
.mif-thumb-btn:hover { border-color: #111; }

/* Info panel */
.mif-col-page__cat-label {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #FF5722;
    margin-bottom: 10px;
}
.mif-col-page__title {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    color: #111;
    line-height: 1.1;
}
.mif-col-page__name {
    font-size: 13px;
    color: #555;
    margin: 0 0 18px;
    line-height: 1.5;
}
.mif-col-page__price-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 14px;
}
.mif-col-page__price {
    font-family: 'Roboto Mono', monospace;
    font-size: 26px;
    font-weight: 900;
    color: #111;
}
.mif-col-page__code {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #bbb;
    letter-spacing: 0.06em;
}
.mif-col-page__color-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
}
.mif-col-page__color-label span { color: #111; font-weight: 600; }

/* Variant swatches */
.mif-col-page__variants {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.mif-variant-btn {
    width: 52px;
    height: 52px;
    border: 2px solid #e0e0e0;
    background: #f5f5f5;
    padding: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s;
}
.mif-variant-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mif-variant-btn.active { border-color: #FF5722; }
.mif-variant-btn:hover { border-color: #111; }

/* Actions */
.mif-col-page__actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.mif-col-page__btn-order {
    flex: 1;
    background: #FF5722;
    color: #fff;
    border: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 16px 24px;
    cursor: pointer;
    transition: background .15s;
}
.mif-col-page__btn-order:hover { background: #e04a1a; }
.mif-col-page__btn-wl {
    width: 52px;
    height: 52px;
    border: 1.5px solid #e0e0e0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    flex-shrink: 0;
}
.mif-col-page__btn-wl:hover { border-color: #111; }
.mif-col-page__btn-wl.active-wl { border-color: #FF5722; background: #fff5f2; }
.mif-col-page__btn-wl.active-wl svg { stroke: #FF5722; fill: #FF5722; }

.mif-col-page__sborka {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #888;
    text-decoration: none;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 1px;
}
.mif-col-page__sborka:hover { color: #FF5722; border-color: #FF5722; }

/* brw-card as link */
a.brw-card--link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }

@media (max-width: 860px) {
    .mif-col-page__layout { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 540px) {
    .mif-variant-btn { width: 44px; height: 44px; }
    .mif-thumb-btn { width: 52px; height: 52px; }
}

/* ── MIF Accordion Sidebar ─────────────────────────────────── */
.mif-accordion { padding: 0; }
.mif-accordion__group { border-bottom: 1px solid #f0f0f0; }
.mif-accordion__group:last-child { border-bottom: none; }
.mif-accordion__btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    text-align: left;
    transition: color .15s;
}
.mif-accordion__btn:hover { color: #FF5722; }
.mif-accordion__btn.open  { color: #111; }
.mif-accordion__arrow {
    transition: transform .2s;
    flex-shrink: 0;
}
.mif-accordion__btn.open .mif-accordion__arrow { transform: rotate(180deg); }
.mif-accordion__list {
    list-style: none;
    margin: 0;
    padding: 0 0 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}
.mif-accordion__list li { margin: 0; }
.mif-accordion__link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px 7px 18px;
    font-size: 12px;
    color: #555;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color .12s, background .12s, border-color .12s;
    line-height: 1.3;
}
.mif-accordion__link:hover { color: #FF5722; background: #fff7f5; border-left-color: #FF5722; }

/* ── MIF Product Page ──────────────────────────────────────── */
.mif-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    margin-top: 8px;
}
.mif-product__gallery {}
.mif-product__main-img-wrap {
    background: #f5f5f5;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 12px;
}
.mif-product__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mif-product__thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.mif-product__thumb-btn {
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    background: #f0f0f0;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s;
}
.mif-product__thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mif-product__thumb-btn.active { border-color: #FF5722; }
.mif-product__thumb-btn:hover  { border-color: #111; }

.mif-product__info {}
.mif-product__cat {
    font-family: 'Roboto Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #FF5722;
    margin: 0 0 10px;
}
.mif-product__title {
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
    color: #111;
    line-height: 1.1;
}
.mif-product__label {
    font-size: 12px;
    color: #888;
    margin: 0 0 10px;
}
.mif-product__label span { color: #111; font-weight: 600; }
.mif-product__swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.mif-product__swatch {
    width: 52px;
    height: 52px;
    border: 2px solid #e0e0e0;
    background: #f5f5f5;
    padding: 2px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .15s;
}
.mif-product__swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mif-product__swatch.active { border-color: #FF5722; }
.mif-product__swatch:hover  { border-color: #111; }
.mif-product__price-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 8px;
}
.mif-product__price {
    font-family: 'Roboto Mono', monospace;
    font-size: 30px;
    font-weight: 900;
    color: #111;
    margin: 0;
}
.mif-product__code {
    font-family: 'Roboto Mono', monospace;
    font-size: 11px;
    color: #bbb;
    letter-spacing: 0.06em;
}
.mif-product__actions { margin-top: 24px; }
.mif-product__order-btn {
    display: block;
    width: 100%;
    background: #FF5722;
    color: #fff;
    border: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 18px 24px;
    cursor: pointer;
    transition: background .15s;
    margin-bottom: 12px;
}
.mif-product__order-btn:hover { background: #e04a1a; }
.mif-product__act-row {
    display: flex;
    gap: 10px;
}
.mif-product__act-row .brw-card__act {
    flex: 1;
    justify-content: center;
    padding: 10px;
    font-size: 12px;
}

@media (max-width: 860px) {
    .mif-product { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 540px) {
    .mif-product__swatch { width: 44px; height: 44px; }
    .mif-product__thumb-btn { width: 52px; height: 52px; }
    .mif-product__price { font-size: 24px; }
}

/* ═══════════════════════════════════════════════════════════
   CATALOG OVERLAY  (классы cat-ovl__ чтобы не конфликтовать)
════════════════════════════════════════════════════════════ */
.cat-ovl {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 900;
    background: #fff;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.cat-ovl--open { display: block; }

.cat-ovl__backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
}

.cat-ovl__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 9px;
}

.cat-ovl__header {
display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 6px 0px;
    /* border-bottom: 1px solid #f0f0f0; */
    margin-bottom: 14px;
}

.cat-ovl__title {
    font-size: 32px;
    font-weight: 900;
    /* letter-spacing: .08em; */
    text-transform: uppercase;
    /* color: #999; */
}

.cat-ovl__close {
display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: transparent;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    color: #fff;
    transition: color .15s, border-color .15s;
}
.cat-ovl__close:hover { color: #FF5722; border-color: #FF5722; }

@keyframes cat-ovl-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cat-ovl--open .cat-ovl__inner { animation: cat-ovl-in 0.18s ease both; }

.cat-ovl__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
}

.cat-ovl__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Text at the bottom */
    padding: 12px;
    aspect-ratio: 1/1; /* 1:1 ratio */
    border: 2px solid transparent; /* No border by default, use transparent to avoid layout shift */
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-color: #f5f5f5;
    position: relative;
    overflow: hidden;
    transition: border-color .15s;
}
.cat-ovl__card:hover {
    border-color: #FF5722;
}

.cat-ovl__icon {
    display: none; /* No icons */
}

.cat-ovl__name {
    position: relative;
    z-index: 2;
    font-size: 22px;
    font-weight: 900; /* Bold font */
    text-align: center;
    line-height: 1.3;
    color: #1a1a1a;
}

@media (max-width: 1000px) { .cat-ovl__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .cat-ovl__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 460px)  {
    .cat-ovl__grid { grid-template-columns: repeat(2, 1fr); }
    .cat-ovl__card { padding: 14px 8px 8px; height: auto; }
}

/* ═══════════════════════════════════════════════════════════
   CATALOG ALL PAGE (/catalog/{slug})
════════════════════════════════════════════════════════════ */
.cat-all-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

#cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

#cat-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    min-width: 170px;
}

#cat-filter-reset {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    color: #999;
}
#cat-filter-reset:hover { color: #FF5722; border-color: #FF5722; }

.cat-brand-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 7px;
    border-radius: 3px;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 2;
    cursor: pointer;
}
.cat-brand-badge--brw     { background: #1a1a1a; color: #fff; }
.cat-brand-badge--mif     { background: #FF5722; color: #fff; }
.cat-brand-badge--vv      { background: #2563eb; color: #fff; }
.cat-brand-badge--senator { background: #7c3aed; color: #fff; }

/* ══════════════════════════════════════════════════════════
   AI BRAND SUMMARY — .home-ai-summary
   Блок "Что такое НЕОПТОМ?" на главной (GEO/AEO)
   ══════════════════════════════════════════════════════════ */
.home-ai-summary {
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    padding: 1.75rem 0;
}

.home-ai-summary__inner {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 2.5rem;
    align-items: start;
}

/* Левая колонка — заголовок + описание */
.home-ai-summary__left h2 {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--graphite);
    margin-bottom: 0.65rem;
}

.home-ai-summary__left p {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* Правая колонка — атрибуты */
.home-ai-summary__right h3 {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--signal-orange);
    margin-bottom: 0.55rem;
}

.home-ai-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.3rem;
}

.home-ai-summary ul li {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--graphite);
    padding-left: 1.3rem;
    position: relative;
}

.home-ai-summary ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--signal-orange);
    font-weight: 700;
}

@media (max-width: 860px) {
    .home-ai-summary__inner {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }
    .home-ai-summary {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .home-ai-summary {
        padding: 1.25rem 0;
    }
    .home-ai-summary__left h2 {
        font-size: 0.9rem;
    }
    .home-ai-summary__left p,
    .home-ai-summary ul li {
        font-size: 0.75rem;
    }
}

/* ══════════════════════════════════════════════════════════
   HOME BUYING PROCESS — Как работает покупка мебели в НЕОПТОМ?
   ══════════════════════════════════════════════════════════ */

.home-buying-process {
    background: var(--warehouse-gray);
    border-bottom: 1px solid var(--border-gray);
    padding: 1.75rem 0;
}

.home-buying-process__inner {
    max-width: 920px;
}

.home-buying-process h2 {
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--graphite);
    margin-bottom: 0.65rem;
}

.home-buying-process p {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 0;
}

.home-buying-process p + p {
    margin-top: 0.75rem;
}

.home-buying-process h3 {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--signal-orange);
    margin: 1rem 0 0.55rem;
}

.home-buying-process__steps {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: grid;
    gap: 0.45rem;
    counter-reset: buying-step;
}

.home-buying-process__steps li {
    counter-increment: buying-step;
    padding-left: 1.6rem;
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.home-buying-process__steps li::before {
    content: counter(buying-step) '.';
    position: absolute;
    left: 0;
    color: var(--signal-orange);
    font-weight: 900;
    font-family: var(--font-heading);
    line-height: 1.45;
}

.home-buying-process__steps strong {
    display: block;
    font-weight: 700;
    color: var(--graphite);
    margin-bottom: 0.1rem;
    line-height: 1.45;
}

.home-buying-process__steps span {
    display: block;
    color: #555;
    line-height: 1.55;
}

@media (max-width: 768px) {
    .home-buying-process {
        padding: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .home-buying-process {
        padding: 1.25rem 0;
    }
    .home-buying-process h2 {
        font-size: 0.9rem;
    }
    .home-buying-process p,
    .home-buying-process__steps li {
        font-size: 0.75rem;
    }
}

/* ── Breadcrumbs (SEO migration) ─────────────────────────── */
.breadcrumbs {
    background: #f7f7f7;
    border-bottom: 1px solid #e9e9e9;
    font-size: 13px;
    color: #666;
}
.breadcrumbs__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 24px;
    white-space: nowrap;
    overflow-x: auto;
}
.breadcrumbs a { color: #666; text-decoration: none; }
.breadcrumbs a:hover { color: #ff5722; text-decoration: underline; }
.breadcrumbs__sep { margin: 0 8px; color: #bbb; }
.breadcrumbs__current { color: #222; font-weight: 500; }
