@import url('/fonts/filament/filament/inter/index.css');

/* ============================================================
   ShopRoom.by — современный дизайн (v3)
   Акцент: оранжевый #fc4c02 (фирменный цвет shoproom.by)
   ============================================================ */

:root {
    --accent: #fc4c02;
    --accent-dark: #d63f00;
    --dark: #17233b;
    --dark-2: #1f2f4d;
    --blue: #1b67a6;
    --text: #232a35;
    --muted: #7a8494;
    --border: #e6e9ef;
    --bg: #f5f6f9;
    --white: #fff;
    --green: #16a34a;
    --red: #dc2626;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(23, 35, 59, .08);
    --shadow-hover: 0 10px 30px rgba(23, 35, 59, .14);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'TT Commons', 'Inter Variable', Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container { max-width: 1480px; margin: 0 auto; padding: 0 24px; }

a { color: var(--blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent); text-decoration: none; }

h1 { font-size: 27px; font-weight: 700; margin: 18px 0 16px; color: var(--dark); }
h2 { font-size: 20px; margin: 24px 0 12px; }
h3 { font-size: 17px; }
.muted { color: var(--muted); }

img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

/* ---------- Топ-бар ---------- */
.topbar { background: var(--dark); color: #c3cbd9; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; gap: 18px; padding: 7px 20px; }
.topbar-phone { color: #fff; font-weight: 700; }
.topbar-phone:hover { color: var(--accent); }
.topbar-hours { color: #8b95a8; }
.topbar-links { margin-left: auto; display: flex; gap: 16px; }
.topbar-links a { color: #c3cbd9; }
.topbar-links a:hover { color: #fff; }

/* ---------- Шапка ---------- */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; gap: 22px; padding: 14px 20px; }

.logo { font-size: 25px; font-weight: 800; color: var(--dark); letter-spacing: -.5px; white-space: nowrap; }
.logo span { color: var(--accent); }

.catalog-wrap { position: relative; }
.catalog-btn {
    display: flex; align-items: center; gap: 9px;
    background: var(--accent); color: #fff; border: none; border-radius: 10px;
    padding: 11px 20px; font-size: 15px; font-weight: 700; cursor: pointer;
    transition: background .15s;
}
.catalog-btn:hover, .catalog-btn.active { background: var(--accent-dark); }

.catalog-dropdown {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; z-index: 200;
    background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(23,35,59,.22);
    padding: 24px; width: 860px; max-width: calc(100vw - 40px);
    grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.catalog-dropdown.open { display: grid; }
.catalog-col-title {
    display: block; font-weight: 700; color: var(--dark); font-size: 15px; margin-bottom: 8px;
}
.catalog-col-link { display: block; color: var(--muted); font-size: 13.5px; padding: 3px 0; }
.catalog-col-link:hover { color: var(--accent); }

.header-search {
    flex: 1; display: flex; max-width: 620px;
    border: 2px solid var(--accent); border-radius: 10px; overflow: hidden;
}
.header-search input {
    flex: 1; padding: 10px 16px; border: none; font-size: 14.5px; outline: none;
}
.header-search button {
    background: var(--accent); color: #fff; border: none; padding: 0 20px;
    cursor: pointer; display: flex; align-items: center;
}
.header-search button:hover { background: var(--accent-dark); }

.header-cart {
    display: flex; align-items: center; gap: 9px; position: relative;
    color: var(--dark); font-weight: 700; font-size: 14.5px;
    padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border);
}
.header-cart:hover { border-color: var(--accent); color: var(--accent); }
.cart-badge {
    position: absolute; top: -7px; right: -7px;
    background: var(--accent); color: #fff; border-radius: 12px;
    padding: 1px 7px; font-size: 12px; font-weight: 700;
}

/* ---------- Кнопки ---------- */
.btn-accent {
    display: inline-block; background: var(--accent); color: #fff; border: none;
    border-radius: 10px; padding: 12px 24px; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: background .15s; text-align: center;
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-accent:disabled { background: #c4c9d2; cursor: default; }
.btn-ghost {
    display: inline-block; background: transparent; color: var(--dark);
    border: 1.5px solid var(--border); border-radius: 10px; padding: 11px 22px;
    font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: center;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { display: block; width: 100%; }

/* ---------- Главная: hero ---------- */
.hero {
    background: linear-gradient(115deg, var(--dark) 55%, var(--dark-2) 100%);
    color: #fff; position: relative; overflow: hidden;
}
.hero::after {
    content: ''; position: absolute; right: -120px; top: -120px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(252,76,2,.35), transparent 65%);
}
.hero-inner { padding: 64px 20px 72px; position: relative; z-index: 1; }
.hero-text { max-width: 640px; }
.hero h1 { color: #fff; font-size: 36px; line-height: 1.2; margin: 0 0 14px; }
.hero p { font-size: 17px; color: #b9c2d4; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hero .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Преимущества ---------- */
.benefits {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 26px 0 8px;
}
.benefit {
    display: flex; align-items: center; gap: 13px;
    background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.benefit-icon { font-size: 26px; }
.benefit strong { display: block; font-size: 14.5px; color: var(--dark); }
.benefit span { font-size: 12.5px; color: var(--muted); }

/* ---------- Секции ---------- */
.section-title { font-size: 22px; font-weight: 700; color: var(--dark); margin: 30px 0 16px; }
.section-head { display: flex; justify-content: space-between; align-items: center; }

/* Плитки категорий */
.category-tiles {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px;
}
.category-tile {
    background: #fff; border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s;
    border-left: 3px solid var(--accent);
}
.category-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.category-tile-name { display: block; font-weight: 700; color: var(--dark); font-size: 15.5px; }
.category-tile-count { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ---------- Сетка товаров ---------- */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px; margin: 16px 0 30px;
}
.product-card {
    background: #fff; border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; box-shadow: var(--shadow);
    transition: box-shadow .18s, transform .18s;
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.product-card-image { display: block; padding: 16px 16px 8px; text-align: center; }
.product-card-image img { height: 165px; object-fit: contain; }
.product-card-body { padding: 8px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.product-card-content { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.product-card-list-code,
.product-card-list-specs,
.product-card-list-delivery,
.product-card-list-purchase-info,
.product-card-list-old-price { display: none; }
.product-brand { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.product-name {
    font-size: 14px; font-weight: 600; color: var(--text); margin: 3px 0 8px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-stock { font-size: 12.5px; font-weight: 600; margin-bottom: 9px; }
.product-stock.in { color: var(--green); }
.product-stock.out { color: var(--muted); }
.product-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.product-price-wrap { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.product-price {
    font-weight: 800; font-size: 25px; line-height: 1; letter-spacing: -.035em;
    color: var(--dark); white-space: nowrap;
}
.product-price small { font-size: 11px; letter-spacing: 0; color: var(--muted); font-weight: 700; }
.product-installment {
    margin: 7px 0 0; padding: 0; background: none; border: none;
    color: var(--blue); font: 700 12.5px/1.25 inherit; text-align: left; cursor: pointer;
    border-bottom: 1px dashed color-mix(in srgb, var(--blue) 55%, transparent);
}
.product-installment:hover { color: var(--accent); border-bottom-color: currentColor; }
.product-installment:focus-visible { outline: 2px solid rgba(252, 76, 2, .25); outline-offset: 3px; border-radius: 2px; }
.btn-buy {
    display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px;
    background: var(--accent); color: #fff; border: none; border-radius: 50%;
    padding: 0; cursor: pointer;
    box-shadow: 0 8px 18px rgba(252, 76, 2, .24);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-buy svg { width: 23px; height: 23px; }
.btn-buy .btn-buy__check-icon { display: none; }
.btn-buy.is-added { background: #18a65b; box-shadow: 0 8px 18px rgba(24, 166, 91, .25); }
.btn-buy.is-added .btn-buy__cart-icon { display: none; }
.btn-buy.is-added .btn-buy__check-icon { display: block; }
.btn-buy.is-loading { pointer-events: none; }
.btn-buy.is-loading svg { animation: cart-button-pulse .7s ease-in-out infinite alternate; }
.btn-buy:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 11px 22px rgba(252, 76, 2, .3); }
.btn-buy:focus-visible { outline: 3px solid rgba(252, 76, 2, .25); outline-offset: 3px; }
.btn-buy:disabled { background: #c4c9d2; box-shadow: none; cursor: default; transform: none; }
.btn-buy span { display: none; }

/* ---------- Узнать о поступлении ---------- */
.btn-restock {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    min-height: 34px; padding: 6px 10px;
    background: #fff2ec; color: var(--accent);
    border: 1.5px solid var(--accent); border-radius: 999px;
    font: 700 11px/1.25 inherit; text-align: center; cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
}
.btn-restock:hover {
    background: var(--accent); color: #fff;
    transform: translateY(-2px);
}
.btn-restock:focus-visible { outline: 3px solid rgba(252, 76, 2, .25); outline-offset: 3px; }
.btn-restock.is-loading { pointer-events: none; opacity: .75; }
.btn-restock.is-loading svg { animation: cart-button-pulse .7s ease-in-out infinite alternate; }
.btn-restock svg { flex: 0 0 auto; }
.btn-restock--lg {
    width: 100%; min-height: 52px; padding: 14px 18px;
    font-size: 15.5px; border-radius: 14px;
}
.product-footer .btn-restock { max-width: 118px; }
.product-grid--list .btn-restock { width: 100%; max-width: none; }
.restock-head__icon { background: #fff2ec; color: var(--accent); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    font-size: 13px; color: var(--muted); margin: 16px 0 4px;
    display: flex; flex-wrap: wrap; gap: 7px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Категория ---------- */
.subcategories { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.subcategory-chip {
    background: #fff; border: 1px solid var(--border); border-radius: 20px;
    padding: 7px 16px; font-size: 13.5px; color: var(--text); font-weight: 600;
}
.subcategory-chip:hover { border-color: var(--accent); color: var(--accent); }

.catalog-layout {
    display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start;
    margin-bottom: 36px;
}

/* Фильтры */
.filters {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 6px 18px 18px; position: sticky; top: 86px;
}
.filter-group { border-bottom: 1px solid var(--border); padding: 12px 0; }
.filter-group:last-of-type { border-bottom: none; }
.filter-group-title {
    font-weight: 700; font-size: 14.5px; color: var(--dark); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 0;
}
.filter-group-title::after {
    content: '▾'; color: var(--muted); font-size: 12px; transition: transform .15s;
}
.filter-group.collapsed .filter-group-title::after { transform: rotate(-90deg); }
.filter-group.collapsed .filter-group-body { display: none; }
.filter-group-body { padding-top: 8px; max-height: 260px; overflow-y: auto; }

.filter-option {
    display: flex; align-items: center; gap: 9px; padding: 4px 0;
    font-size: 13.5px; cursor: pointer; color: var(--text);
}
.filter-option input { accent-color: var(--accent); width: 16px; height: 16px; }
.filter-option span { flex: 1; }
.filter-option em { font-style: normal; color: var(--muted); font-size: 12px; }
.filter-option:hover { color: var(--accent); }

.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
    width: 100%; padding: 8px 10px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 13.5px; outline: none;
}
.price-inputs input:focus { border-color: var(--accent); }
.price-inputs span { color: var(--muted); }

.filter-actions { padding-top: 14px; }
.filter-reset {
    display: block; text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px;
}

.btn-filters-mobile {
    display: none; width: 100%; background: #fff; border: 1px solid var(--border);
    border-radius: 10px; padding: 11px; font-size: 14.5px; font-weight: 700;
    margin-bottom: 14px; cursor: pointer;
}

/* Тулбар */
.catalog-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 10px 18px; margin-bottom: 16px; font-size: 14px;
}
.toolbar-count { color: var(--muted); }
.sort-form select {
    padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px;
    font-size: 13.5px; margin-left: 6px; outline: none; background: #fff;
}
.category-description {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px 24px; color: #495057; font-size: 14px; margin-top: 26px;
}
.empty-state {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 44px; text-align: center;
}

/* ---------- Карточка товара ---------- */
.product-layout {
    display: grid; grid-template-columns: minmax(300px, 520px) 1fr; gap: 30px; margin: 18px 0 30px;
}
.product-main-image {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 26px; text-align: center;
}
.product-main-image img { max-height: 420px; object-fit: contain; }
.product-thumbs { display: flex; gap: 9px; margin-top: 12px; flex-wrap: wrap; }
.product-thumbs img {
    width: 66px; height: 66px; object-fit: contain; background: #fff;
    border: 1px solid var(--border); border-radius: 9px; padding: 5px; cursor: pointer;
    transition: border-color .15s;
}
.product-thumbs img:hover { border-color: var(--accent); }

.buy-card {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 24px; position: sticky; top: 86px;
}
.buy-card-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13.5px; }
.buy-brand { font-weight: 700; text-transform: uppercase; letter-spacing: .4px; font-size: 12.5px; }
.buy-model { color: var(--muted); }
.buy-rating { color: #f59e0b; font-weight: 700; }
.buy-rating em { color: var(--muted); font-weight: 400; font-style: normal; }
.buy-price { font-size: 33px; font-weight: 800; color: var(--dark); margin: 6px 0 4px; }
.buy-price small { font-size: 16px; color: var(--muted); }

.buy-form { display: flex; flex-direction: column; gap: 11px; margin: 16px 0; }
.qty-wrap { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; width: 130px; }
.qty-wrap button {
    width: 40px; background: var(--bg); border: none; font-size: 18px; cursor: pointer; color: var(--dark);
}
.qty-wrap input {
    flex: 1; border: none; text-align: center; font-size: 15px; padding: 10px 0; outline: none;
    -moz-appearance: textfield;
}
.qty-wrap input::-webkit-outer-spin-button, .qty-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.btn-buy-lg { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; font-size: 16px; }
.btn-buy-lg__icon { display: none; }
.btn-buy-lg.is-added { background: #18a65b; }
.btn-buy-lg.is-added .btn-buy-lg__icon { display: block; }
.btn-buy-lg.is-loading { opacity: .72; pointer-events: none; }

@keyframes cart-button-pulse { to { transform: scale(.72); opacity: .55; } }
.buy-benefits { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); }
.buy-benefits li { font-size: 13.5px; color: var(--text); padding: 3px 0; }

/* Вкладки */
.tabs { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 30px; }
.tabs-nav {
    display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 18px;
}
.tabs-nav button {
    background: none; border: none; padding: 15px 14px; font-size: 15px; font-weight: 600;
    color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.tabs-nav button.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-pane { display: none; padding: 22px 24px; }
.tab-pane.active { display: block; }
.attr-group-title { color: var(--dark); margin: 18px 0 8px; }
.attr-group-title:first-child { margin-top: 0; }

.attributes-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.attributes-table th, .attributes-table td {
    text-align: left; padding: 8px 14px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.attributes-table th { width: 42%; color: var(--muted); font-weight: 600; }

.review { border-top: 1px solid var(--border); padding: 14px 0; }
.review:first-of-type { border-top: none; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-rating { color: #f59e0b; }
.review-answer {
    background: var(--bg); border-radius: 9px; padding: 10px 14px; margin-top: 8px; font-size: 14px;
}

/* ---------- Корзина ---------- */
.cart-table {
    width: 100%; border-collapse: collapse; background: #fff;
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 16px 0;
}
.cart-table th, .cart-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.cart-table th { background: var(--bg); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.cart-table tfoot td { font-size: 17px; border-bottom: none; }
.qty-input {
    width: 62px; padding: 7px; border: 1px solid var(--border); border-radius: 8px; text-align: center;
}
.cart-actions { display: flex; gap: 12px; justify-content: flex-end; margin: 16px 0 34px; }
.btn-remove { background: none; border: none; color: var(--red); font-size: 21px; cursor: pointer; }

/* Современная корзина */
.cart-page { padding-bottom: 42px; }
.cart-page__head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
    margin: 30px 0 20px;
}
.cart-page__head h1 { margin: 3px 0 0; font-size: 34px; letter-spacing: -.03em; }
.cart-page__eyebrow {
    display: block; color: var(--accent); font-size: 11px; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase;
}
.cart-page__count {
    padding: 7px 12px; border-radius: 999px; background: #f2f4f7;
    color: var(--muted); font-size: 13px; font-weight: 700;
}
.cart-layout {
    display: grid; grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px; align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cart-item {
    display: grid; grid-template-columns: 96px minmax(0, 1fr) 132px 135px 40px;
    grid-template-areas: "image info quantity total remove";
    align-items: center; gap: 18px; min-width: 0; padding: 17px;
    background: #fff; border: 1px solid #edf0f4; border-radius: 15px;
    box-shadow: 0 5px 20px rgba(23,35,59,.055);
}
.cart-item__image {
    grid-area: image; display: grid; place-items: center; width: 96px; height: 96px;
    padding: 5px; border-radius: 11px; background: #f8f9fb;
}
.cart-item__image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cart-item__info { grid-area: info; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.cart-item__brand {
    margin-bottom: 5px; color: var(--accent); font-size: 10px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
}
.cart-item__name { color: var(--dark); font-size: 15px; font-weight: 750; line-height: 1.35; }
.cart-item__name:hover { color: var(--accent); }
.cart-item__model, .cart-item__unit-price { margin-top: 5px; color: var(--muted); font-size: 11.5px; }
.cart-item__unit-price { display: none; }
.cart-item__quantity { grid-area: quantity; }
.cart-item__total { grid-area: total; display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.cart-item__total strong { color: var(--dark); font-size: 16px; }
.cart-item__label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.cart-qty {
    display: grid; grid-template-columns: 34px 44px 34px; width: max-content;
    height: 40px; overflow: hidden; border: 1px solid #dfe3e9; border-radius: 10px; background: #fff;
}
.cart-qty__button {
    display: grid; place-items: center; padding: 0; border: 0; background: #f5f6f8;
    color: var(--dark); font-size: 19px; cursor: pointer; transition: background .15s, color .15s;
}
.cart-qty__button:hover { background: var(--accent); color: #fff; }
.cart-qty__button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cart-qty .qty-input {
    width: 44px; min-width: 0; padding: 0; border: 0; border-radius: 0;
    color: var(--dark); background: #fff; font-size: 14px; font-weight: 800; text-align: center;
    appearance: textfield; -moz-appearance: textfield;
}
.cart-qty .qty-input::-webkit-inner-spin-button,
.cart-qty .qty-input::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }
.cart-item__remove {
    grid-area: remove; display: grid; place-items: center; width: 38px; height: 38px;
    padding: 0; border: 0; border-radius: 50%; background: #f6f7f9; color: #9aa2af;
    cursor: pointer; transition: background .15s, color .15s, transform .15s;
}
.cart-item__remove:hover { background: #fff0ed; color: #d63c17; transform: scale(1.05); }
.cart-summary {
    position: sticky; top: 96px; padding: 22px; background: #fff;
    border: 1px solid #edf0f4; border-radius: 16px; box-shadow: 0 9px 30px rgba(23,35,59,.09);
}
.cart-summary h2 { margin: 0 0 18px; color: var(--dark); font-size: 20px; }
.cart-summary__row { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.cart-summary__delivery {
    display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; padding: 12px;
    border-radius: 10px; background: #effaf3; color: #327348; font-size: 12px; line-height: 1.35;
}
.cart-summary__delivery span {
    display: grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px;
    border-radius: 50%; background: #48a868; color: #fff; font-size: 11px; font-weight: 900;
}
.cart-summary__total {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    margin: 19px 0; padding-top: 17px; border-top: 1px solid var(--border); color: var(--dark);
}
.cart-summary__total span { font-size: 14px; font-weight: 700; }
.cart-summary__total strong { font-size: 22px; line-height: 1; white-space: nowrap; }
.cart-checkout {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px;
    padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 800;
}
.cart-recalculate {
    width: 100%; min-height: 43px; margin-top: 9px; padding: 0 16px;
    border: 1px solid #dfe3e9; border-radius: 10px; background: #fff;
    color: var(--dark); font-size: 13px; font-weight: 700; cursor: pointer;
}
.cart-recalculate:hover { border-color: var(--accent); color: var(--accent); background: #fff8f5; }
.cart-continue { display: block; margin-top: 15px; color: var(--muted); font-size: 12.5px; font-weight: 650; text-align: center; }
.cart-continue:hover { color: var(--accent); }
.cart-empty {
    display: flex; flex-direction: column; align-items: center; max-width: 680px;
    margin: 0 auto 30px; padding: 58px 24px; border: 1px solid #edf0f4;
    border-radius: 18px; background: #fff; box-shadow: 0 9px 30px rgba(23,35,59,.065); text-align: center;
}
.cart-empty__icon {
    display: grid; place-items: center; width: 82px; height: 82px; margin-bottom: 18px;
    border-radius: 50%; background: #fff0e9; color: var(--accent);
}
.cart-empty h2 { margin: 0; font-size: 23px; }
.cart-empty p { margin: 9px 0 22px; color: var(--muted); }
.cart-empty__button { display: inline-flex; min-height: 45px; align-items: center; padding: 0 22px; border-radius: 10px; }

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

@media (max-width: 680px) {
    .cart-page__head { margin-top: 21px; }
    .cart-page__head h1 { font-size: 27px; }
    .cart-item {
        grid-template-columns: 78px minmax(0, 1fr) 36px;
        grid-template-areas: "image info remove" "image quantity total";
        gap: 13px; padding: 13px;
    }
    .cart-item__image { width: 78px; height: 86px; }
    .cart-item__model { display: none; }
    .cart-item__unit-price { display: block; }
    .cart-item__label { display: none; }
    .cart-item__total strong { font-size: 14px; }
    .cart-summary { padding: 19px; }
}

@media (max-width: 410px) {
    .cart-page__count { display: none; }
    .cart-item { grid-template-columns: 68px minmax(0, 1fr) 34px; }
    .cart-item__image { width: 68px; height: 78px; }
    .cart-qty { grid-template-columns: 31px 38px 31px; height: 37px; }
    .cart-qty .qty-input { width: 38px; }
    .cart-item__total strong { font-size: 13px; }
}

/* ---------- Оформление заказа ---------- */
.checkout-page { padding-bottom: 44px; }
.checkout-page__head { position: relative; margin: 30px 0 22px; }
.checkout-page__eyebrow {
    color: var(--accent); font-size: 11px; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase;
}
.checkout-page__head h1 { margin: 4px 0 0; font-size: 34px; letter-spacing: -.03em; }
.checkout-progress {
    position: absolute; top: 9px; right: 0; display: flex; align-items: center;
    gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700;
}
.checkout-progress span { display: flex; align-items: center; gap: 7px; }
.checkout-progress b {
    display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%;
    background: #eef1f4; color: #8c95a2; font-size: 11px;
}
.checkout-progress .is-complete { color: #46915e; }
.checkout-progress .is-complete b { background: #e7f7ec; color: #46915e; }
.checkout-progress .is-current { color: var(--dark); }
.checkout-progress .is-current b { background: var(--accent); color: #fff; }
.checkout-progress i { width: 34px; height: 1px; background: #dfe3e8; }
.checkout-errors { margin: 0 0 18px; }
.checkout-errors strong { display: block; margin-bottom: 5px; }
.checkout-errors ul { margin: 0; padding-left: 19px; }
.checkout-form {
    display: grid; grid-template-columns: minmax(0, 1fr) 350px;
    gap: 22px; align-items: start; margin-bottom: 38px;
}
.checkout-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.checkout-card {
    padding: 24px; background: #fff; border: 1px solid #edf0f4;
    border-radius: 16px; box-shadow: 0 5px 22px rgba(23,35,59,.055);
}
.checkout-card__title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 21px; }
.checkout-card__number {
    display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px;
    border-radius: 9px; background: #fff0e9; color: var(--accent); font-size: 13px; font-weight: 900;
}
.checkout-card__title h2 { margin: 0; color: var(--dark); font-size: 19px; line-height: 1.25; }
.checkout-card__title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.checkout-fields { display: grid; gap: 15px; }
.checkout-fields--contacts { grid-template-columns: 1fr 1fr; }
.checkout-field { display: block; min-width: 0; color: var(--dark); font-size: 12px; font-weight: 750; }
.checkout-field--wide { grid-column: 1 / -1; }
.checkout-field > span:first-child { display: block; margin-bottom: 7px; }
.checkout-field em { color: var(--accent); font-style: normal; }
.checkout-field small { margin-left: 5px; color: #a0a7b2; font-size: 10px; font-weight: 500; }
.checkout-input-wrap { position: relative; display: block; color: #9aa2ad; }
.checkout-input-wrap > svg { position: absolute; top: 50%; left: 13px; z-index: 1; transform: translateY(-50%); pointer-events: none; }
.checkout-input-wrap--textarea > svg { top: 14px; transform: none; }
.checkout-field input, .checkout-field textarea, .checkout-field--comment textarea {
    display: block; width: 100%; margin: 0; border: 1px solid #dfe3e9; border-radius: 10px;
    background: #fff; color: var(--dark); font-family: inherit; font-size: 14px; font-weight: 500;
    outline: 0; transition: border-color .15s, box-shadow .15s, background .15s;
}
.checkout-field input { height: 47px; padding: 0 13px 0 42px; }
.checkout-field textarea { min-height: 72px; padding: 13px 13px 13px 42px; resize: vertical; }
.checkout-field--comment textarea { min-height: 84px; margin-top: 7px; padding: 12px 13px; }
.checkout-field input:hover, .checkout-field textarea:hover { border-color: #c9ced6; }
.checkout-field input:focus, .checkout-field textarea:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px rgba(252,76,2,.1); background: #fff;
}
.checkout-options { display: grid; gap: 10px; }
.checkout-options--delivery { grid-template-columns: 1fr 1fr; }
.checkout-options--payment { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkout-option {
    position: relative; display: flex; align-items: center; gap: 11px; min-width: 0;
    min-height: 70px; padding: 11px 38px 11px 12px; border: 1px solid #e0e4e9;
    border-radius: 11px; background: #fff; color: var(--dark); cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.checkout-option:hover { border-color: #ffad89; background: #fffaf8; }
.checkout-option:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(252,76,2,.12); }
.checkout-option:has(input:checked) { border-color: var(--accent); background: #fff7f3; }
.checkout-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.checkout-option__icon {
    display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px;
    border-radius: 10px; background: #f3f5f7; color: #76808e;
}
.checkout-option:has(input:checked) .checkout-option__icon { background: #ffe8dd; color: var(--accent); }
.checkout-option__text { display: flex; flex-direction: column; min-width: 0; }
.checkout-option__text strong { font-size: 12.5px; line-height: 1.25; }
.checkout-option__text small { margin-top: 3px; color: var(--muted); font-size: 10.5px; font-weight: 500; line-height: 1.25; }
.checkout-option__check {
    position: absolute; top: 9px; right: 9px; display: none; place-items: center;
    width: 19px; height: 19px; border-radius: 50%; background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 900;
}
.checkout-option:has(input:checked) .checkout-option__check { display: grid; }
.checkout-option--payment { min-height: 62px; padding: 10px; gap: 9px; }
.checkout-option__radio {
    flex: 0 0 18px; width: 18px; height: 18px; border: 1.5px solid #b7bec8;
    border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px #fff;
}
.checkout-option:has(input:checked) .checkout-option__radio { border-color: var(--accent); background: var(--accent); }
.checkout-field--address, .checkout-field--comment { margin-top: 17px; }
.checkout-summary {
    position: sticky; top: 96px; padding: 22px; background: #fff;
    border: 1px solid #edf0f4; border-radius: 16px; box-shadow: 0 9px 30px rgba(23,35,59,.09);
}
.checkout-summary__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.checkout-summary__head h2 { margin: 0; color: var(--dark); font-size: 20px; }
.checkout-summary__head a { color: var(--accent); font-size: 11.5px; font-weight: 750; }
.checkout-summary__products { max-height: 255px; overflow-y: auto; padding-right: 3px; }
.checkout-product {
    display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center;
    gap: 10px; padding: 10px 0; border-bottom: 1px solid #eef0f3;
}
.checkout-product__image {
    position: relative; display: grid; place-items: center; width: 52px; height: 52px;
    padding: 3px; border-radius: 9px; background: #f6f7f9;
}
.checkout-product__image img { width: 100%; height: 100%; object-fit: contain; }
.checkout-product__image b {
    position: absolute; top: -5px; right: -5px; display: grid; place-items: center;
    min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    background: var(--dark); color: #fff; font-size: 9px;
}
.checkout-product__name { overflow: hidden; color: var(--dark); font-size: 11.5px; font-weight: 700; line-height: 1.3; }
.checkout-product > strong { font-size: 11.5px; white-space: nowrap; }
.checkout-summary__row { display: flex; justify-content: space-between; gap: 12px; padding-top: 13px; color: var(--muted); font-size: 12px; }
.checkout-summary__row strong { color: var(--dark); font-weight: 750; white-space: nowrap; }
.checkout-summary__row .checkout-summary__delivery { color: #47925f; font-size: 11px; }
.checkout-summary__total {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
    margin-top: 17px; padding-top: 17px; border-top: 1px solid var(--border); color: var(--dark);
}
.checkout-summary__total span { font-size: 14px; font-weight: 750; }
.checkout-summary__total strong { font-size: 22px; line-height: 1; white-space: nowrap; }
.checkout-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    min-height: 49px; margin-top: 19px; padding: 0 17px; border: 0; border-radius: 10px;
    font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
}
.checkout-summary__agreement { margin: 10px 3px 0; color: #9ba3af; font-size: 9.5px; line-height: 1.4; text-align: center; }
.checkout-summary__safe {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 13px; color: #6e7784; font-size: 10.5px; font-weight: 650;
}
.checkout-summary__safe svg { color: #4ca268; }

@media (max-width: 960px) {
    .checkout-form { grid-template-columns: 1fr; }
    .checkout-summary { position: static; }
}

@media (max-width: 680px) {
    .checkout-page__head h1 { font-size: 27px; }
    .checkout-progress { position: static; margin-top: 15px; }
    .checkout-card { padding: 18px 15px; }
    .checkout-fields--contacts, .checkout-options--delivery, .checkout-options--payment { grid-template-columns: 1fr; }
    .checkout-field--wide { grid-column: auto; }
    .checkout-option { min-height: 64px; }
    .checkout-option--payment { min-height: 57px; }
    .checkout-summary { padding: 19px; }
}
.checkout-success { text-align: center; padding: 50px 0 70px; }

/* ---------- Прочее ---------- */
.alert-success {
    background: #dcfce7; color: #166534; border-radius: 10px; padding: 12px 18px; margin-top: 16px; font-weight: 600;
}
.alert-error { background: #fee2e2; color: #991b1b; border-radius: 10px; padding: 12px 18px; margin: 16px 0; }
.brands-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 30px; }
.brand-chip {
    background: #fff; border: 1px solid var(--border); border-radius: 20px;
    padding: 8px 18px; font-size: 14px; font-weight: 600; color: var(--text);
}
.brand-chip:hover { border-color: var(--accent); color: var(--accent); }
.brand-chip span { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.page-content { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; margin-bottom: 34px; }
.page-content img { max-width: 100%; height: auto; }
main { min-height: 50vh; padding-bottom: 10px; }

/* Пагинация */
nav[role="navigation"] svg { max-height: 18px; }
nav[role="navigation"] .relative { border-radius: 8px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--dark); color: #97a1b5; margin-top: 46px; }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 40px 20px 30px;
}
.footer-logo { color: #fff; font-size: 22px; }
.footer-col p { font-size: 13.5px; margin: 10px 0 0; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.footer-col a { display: block; color: #97a1b5; font-size: 13.5px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-phone { font-size: 17px; font-weight: 700; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 15px 0; font-size: 12.5px; }

/* ---------- Мобильная адаптация ---------- */
@media (max-width: 1024px) {
    .catalog-dropdown { grid-template-columns: repeat(2, 1fr); width: 560px; }
    .benefits { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
    .logo { font-size: 21px; }
    .header-search { order: 3; width: 100%; max-width: none; flex: 1 1 100%; }
    .header-cart span:not(.cart-badge) { display: none; }
    .topbar-hours { display: none; }
    .topbar-links { display: none; }
    .catalog-dropdown { grid-template-columns: 1fr; width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto; }

    .catalog-layout { grid-template-columns: 1fr; }
    .filters {
        display: none; position: fixed; inset: 0; z-index: 300; border-radius: 0;
        overflow-y: auto; padding: 20px;
    }
    .filters.open { display: block; }
    .btn-filters-mobile { display: block; }

    .product-layout, .checkout-layout { grid-template-columns: 1fr; }
    .buy-card, .filters, .checkout-summary { position: static; }
    .hero h1 { font-size: 26px; }
    .hero-inner { padding: 40px 16px 48px; }
    h1 { font-size: 22px; }
    .tabs-nav { overflow-x: auto; }
}

/* Страница контактов */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; margin: 24px 0 48px; }
.contacts-block { background: #fff; border-radius: 12px; padding: 20px 24px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(23,35,59,.08); }
.contacts-block h3 { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: #8a94a6; }
.contacts-block p { margin: 0; font-size: 16px; line-height: 1.5; }
.contacts-phone { font-size: 20px; font-weight: 700; color: #17233b; text-decoration: none; }
.contacts-form-wrap { background: #fff; border-radius: 12px; padding: 24px 28px; box-shadow: 0 1px 4px rgba(23,35,59,.08); }
.contacts-form-wrap h3 { margin: 0 0 16px; }
.contacts-form { display: flex; flex-direction: column; gap: 12px; }
.contacts-form input, .contacts-form textarea { padding: 12px 14px; border: 1px solid #dfe4ec; border-radius: 10px; font-size: 15px; font-family: inherit; }
.contacts-form input:focus, .contacts-form textarea:focus { outline: none; border-color: #fc4c02; }
.alert-error { background: #fdecea; color: #b3261e; border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
@media (max-width: 800px) { .contacts-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Главная v4 — композиция витрины в духе MirCli
   ============================================================ */
body { background: #fff; }

/* Двухуровневая шапка */
.topbar {
    background: #fff; color: #5f6774; border-bottom: 1px solid #edf0f4;
    font-size: 13px;
}
.topbar-inner { min-height: 45px; padding: 7px 24px; gap: 22px; }
.city-selector { position: relative; flex: 0 0 auto; }
.topbar-location {
    display: inline-flex; align-items: center; gap: 7px; padding: 4px 0;
    color: var(--dark); background: transparent; border: 0; white-space: nowrap;
    font-size: 13px; font-weight: 600; cursor: pointer;
}
.topbar-location svg { color: var(--accent); }
.topbar-location__chevron { color: #8f97a4 !important; transition: transform .15s; }
.topbar-location[aria-expanded="true"] .topbar-location__chevron { transform: rotate(180deg); }
.topbar-location:hover, .topbar-location:focus-visible { color: var(--accent); }
.topbar-location:focus-visible { outline: 2px solid rgba(252,76,2,.25); outline-offset: 4px; border-radius: 3px; }
.topbar-links { margin: 0; gap: 20px; }
.topbar-links a { color: #4e5663; white-space: nowrap; }
.topbar-links a:hover { color: var(--accent); }
.topbar-contacts { margin-left: auto; display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.topbar-contacts a { color: var(--dark); }
.topbar-contacts .topbar-phone { color: var(--dark); font-size: 14px; }
.topbar-hours { color: var(--muted); }

.site-header { top: 0; box-shadow: 0 5px 18px rgba(23,35,59,.04); }
.header-inner { min-height: 96px; padding: 18px 24px; gap: 18px; }
.logo { flex: 0 0 auto; line-height: 0; }
.logo img { display: block; width: 154px; height: auto; }
.catalog-btn {
    min-height: 52px; border-radius: 9px; padding: 0 19px; gap: 11px;
    background: var(--accent); font-size: 15px;
}
.catalog-btn:hover, .catalog-btn.active { background: var(--accent-dark); }
.catalog-btn__close { display: none; }
.catalog-btn.active .catalog-btn__grid { display: none; }
.catalog-btn.active .catalog-btn__close { display: block; }
.catalog-dropdown {
    --catalog-side-offset: max(24px, calc((100vw - 1500px) / 2));
    position: fixed; top: var(--catalog-menu-top, 96px); right: 0; bottom: 0; left: 0;
    z-index: 300; width: 100vw; max-width: none; height: auto; padding: 0; overflow: hidden;
    grid-template-columns: calc(318px + var(--catalog-side-offset)) minmax(0, 1fr); gap: 0;
    border: 0; border-top: 1px solid var(--border); border-radius: 0;
    box-shadow: 0 24px 60px rgba(23, 35, 59, .14);
}
.catalog-menu-nav {
    min-width: 0; padding: 14px 12px 30px var(--catalog-side-offset); overflow-y: auto;
    background: #fbfbfc; border-right: 1px solid var(--border);
}
.catalog-menu-root {
    display: grid; grid-template-columns: 48px minmax(0, 1fr) 18px; align-items: center;
    gap: 12px; min-height: 64px; padding: 7px 12px; border-radius: 10px;
    color: var(--dark); font-size: 14.5px; font-weight: 700; transition: background .15s, color .15s;
}
.catalog-menu-root:hover,
.catalog-menu-root.active { color: var(--dark); background: #fff; box-shadow: 0 5px 18px rgba(23,35,59,.09); }
.catalog-menu-root__image {
    display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden;
    border-radius: 9px; background: #fff; color: var(--accent);
}
.catalog-menu-root__image img { width: 42px; height: 42px; object-fit: contain; mix-blend-mode: multiply; }
.catalog-menu-root__arrow { color: #adb4bf; transition: transform .15s, color .15s; }
.catalog-menu-root:hover .catalog-menu-root__arrow,
.catalog-menu-root.active .catalog-menu-root__arrow { color: var(--accent); transform: translateX(2px); }
.catalog-menu-panels { min-width: 0; overflow-y: auto; background: #fff; }
.catalog-menu-panel { display: none; padding: 30px var(--catalog-side-offset) 48px 42px; }
.catalog-menu-panel.active { display: block; }
.catalog-menu-panel__head {
    display: none; align-items: baseline; justify-content: space-between; gap: 24px;
    margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--border);
}
.catalog-menu-panel__head h2 { margin: 0; color: var(--dark); font-size: 25px; line-height: 1.2; }
.catalog-menu-panel__head > a { color: var(--accent); font-size: 13px; font-weight: 700; white-space: nowrap; }
.catalog-menu-panel__head > a:hover { color: var(--accent-dark); }
.catalog-menu-groups { columns: 3 250px; column-gap: clamp(42px, 4vw, 76px); }
.catalog-menu-group { margin: 0 0 28px; break-inside: avoid; }
.catalog-menu-group__title {
    display: block; margin: 0 0 12px; color: var(--dark); font-size: 18px;
    font-weight: 800; line-height: 1.25; text-decoration: none;
}
a.catalog-menu-group__title:hover { color: var(--accent); }
.catalog-menu-group__links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.catalog-menu-group__links:empty { display: none; }
.catalog-menu-group__links a { color: #3f4249; font-size: 14.5px; line-height: 1.35; text-decoration: none; }
.catalog-menu-group__links a:hover { color: var(--accent); }
.catalog-menu-empty { color: var(--muted); }
body.catalog-menu-open { overflow: hidden; }
.header-search {
    position: relative; max-width: none; height: 52px; border: 0; border-radius: 9px;
    background: #f3f4f6; overflow: visible; align-items: center;
}
.header-search:focus-within { z-index: 230; box-shadow: 0 0 0 1px #dfe3e8; }
.header-search .header-search__submit {
    align-self: stretch; flex: 0 0 52px; display: grid; place-items: center;
    margin: 0; padding: 0; border: 0; background: transparent; color: #9299a5; cursor: pointer;
    border-radius: 9px 0 0 9px;
}
.header-search .header-search__submit:hover, .header-search .header-search__submit:focus-visible { background: #e9ebef; color: var(--dark); }
.header-search .header-search__submit:focus-visible { outline: 2px solid #cfd4dc; outline-offset: -2px; }
.header-search__icon { display: block; flex: 0 0 auto; margin: 0; color: currentColor; }
.header-search input { background: transparent; padding: 0 14px 0 0; min-width: 80px; }
.header-search > .header-search__icon { margin-left: 18px; color: #9299a5; }
.header-search > input { padding-left: 14px; }
.live-search-results {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 240;
    max-height: min(520px, calc(100vh - 150px)); overflow-y: auto;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 20px 55px rgba(23,35,59,.2); padding: 7px;
}
.live-search-results[hidden] { display: none; }
.live-search-item {
    display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center;
    gap: 13px; min-height: 78px; padding: 8px 11px; border-radius: 9px; color: var(--dark);
}
.live-search-item + .live-search-item { border-top: 1px solid #f0f1f4; }
.live-search-item:hover, .live-search-item.active { background: #f6f7f9; color: var(--dark); }
.live-search-item img { width: 58px; height: 58px; object-fit: contain; }
.live-search-item__content { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.live-search-item__name {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--dark); font-size: 14px; font-weight: 700;
}
.live-search-item__meta { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.live-search-item__type { color: var(--muted); }
.live-search-item__stock { color: var(--green); }
.live-search-item__prices { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.live-search-item__price { color: var(--dark); font-size: 14px; font-weight: 800; }
.live-search-item__old-price { color: var(--muted); font-size: 11px; text-decoration: line-through; }
.live-search-all {
    display: flex; align-items: center; justify-content: space-between; min-height: 45px;
    margin-top: 5px; padding: 0 14px; border-radius: 8px; background: #fff2ec;
    color: var(--accent); font-size: 13px; font-weight: 800;
}
.live-search-all:hover, .live-search-all.active { background: var(--accent); color: #fff; }
.live-search-empty { padding: 24px 16px; color: var(--muted); font-size: 13px; text-align: center; }
.live-search-loading { padding: 24px 16px; color: var(--muted); font-size: 13px; text-align: center; }
.header-actions { display: flex; align-items: stretch; gap: 6px; }
.header-action {
    position: relative; min-width: 64px; padding: 4px 8px; color: var(--dark);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 3px; border-radius: 9px; font-size: 11px; font-weight: 600;
}
.header-action:hover { background: #f6f7f9; color: var(--accent); }
.header-cart { border: 0; }
.cart-badge { top: 0; right: 4px; min-width: 18px; text-align: center; padding: 0 5px; }

/* Пара баннеров */
.home-promos {
    display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(290px, .95fr);
    gap: 18px; padding-top: 30px;
}
.promo-card {
    position: relative; min-height: 420px; border-radius: 18px; overflow: hidden;
    isolation: isolate; color: #fff; box-shadow: 0 12px 34px rgba(23,35,59,.12);
}
.promo-card::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background: radial-gradient(circle at 78% 24%, rgba(255,255,255,.13), transparent 31%),
                linear-gradient(125deg, #101a2d, #263b5e);
}
.promo-card::after {
    content: ''; position: absolute; z-index: -1; width: 390px; height: 390px;
    border: 70px solid rgba(252,76,2,.19); border-radius: 50%; right: -145px; bottom: -190px;
}
.promo-card--accent::before { background: linear-gradient(145deg, #ff6a26, #e64100); }
.promo-card--accent::after { border-color: rgba(255,255,255,.15); right: -230px; bottom: -120px; }
.promo-card--light { color: var(--dark); }
.promo-card--light::before { background: linear-gradient(135deg, #f1f3f7, #fff); }
.promo-card--light::after { border-color: rgba(252,76,2,.16); }
.promo-card--image::before {
    background-image: linear-gradient(90deg, rgba(9,17,31,.9) 0%, rgba(9,17,31,.62) 48%, rgba(9,17,31,.12) 100%), var(--promo-image);
    background-size: cover; background-position: center;
}
.promo-card--image.promo-card--accent::before {
    background-image: linear-gradient(90deg, rgba(218,55,0,.92), rgba(218,55,0,.26)), var(--promo-image);
}
.promo-card__content {
    position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start;
    justify-content: center; min-height: 420px; width: 61%; padding: 52px 44px;
}
.promo-card--side .promo-card__content { width: 83%; padding: 39px 30px; justify-content: flex-start; }
.promo-card__eyebrow {
    display: inline-block; margin-bottom: 15px; color: #ff9c70; font-size: 12px;
    font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
}
.promo-card--accent .promo-card__eyebrow { color: rgba(255,255,255,.78); }
.promo-card h1 { margin: 0; color: inherit; font-size: clamp(29px, 3vw, 44px); line-height: 1.08; letter-spacing: -.03em; }
.promo-card--side h1 { font-size: 28px; }
.promo-card p { margin: 18px 0 25px; color: rgba(255,255,255,.74); font-size: 16px; line-height: 1.45; }
.promo-card--light p { color: var(--muted); }
.promo-card__button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 43px;
    padding: 0 20px; background: var(--accent); color: #fff; border-radius: 8px;
    font-size: 13px; font-weight: 800;
}
.promo-card__button:hover { background: #fff; color: var(--accent); }
.promo-card--accent .promo-card__button { background: #fff; color: var(--accent-dark); }
.promo-card__art { position: absolute; right: 3%; bottom: -2%; width: 38%; z-index: 1; }
.promo-card--side .promo-card__art { width: 72%; right: -7%; bottom: -15%; }

/* Каталог на главной */
.home-content { padding-top: 12px; }
.home-section { padding-top: 42px; scroll-margin-top: 105px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 2px 0 0; font-size: 30px; line-height: 1.2; color: var(--dark); letter-spacing: -.025em; }
.section-kicker { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.section-link { color: var(--dark); font-size: 14px; font-weight: 700; }
.section-link span { color: var(--accent); margin-left: 5px; }

.home-catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-category-card {
    position: relative; min-height: 190px; padding: 21px; overflow: hidden; isolation: isolate;
    background: #f3f4f6; border: 1px solid transparent; border-radius: 14px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.home-category-card:hover {
    color: inherit; transform: translateY(-3px); border-color: #ffd4c2;
    box-shadow: 0 14px 30px rgba(23,35,59,.1); background: #fff;
}
.home-category-card__group {
    display: block; position: relative; z-index: 2; max-width: 64%; margin-bottom: 6px;
    color: var(--accent); font-size: 10px; line-height: 1.25; font-weight: 800;
    text-transform: uppercase; letter-spacing: .06em;
}
.home-category-card strong {
    display: block; position: relative; z-index: 2; max-width: 63%; color: var(--dark);
    font-size: 17px; line-height: 1.25;
}
.home-category-card__count {
    display: block; position: relative; z-index: 2; margin-top: 8px; color: var(--muted); font-size: 12px;
}
.home-category-card img {
    position: absolute; z-index: 1; right: 14px; bottom: 12px; width: 43%; height: 68%;
    object-fit: contain; object-position: center; mix-blend-mode: multiply;
    filter: drop-shadow(0 7px 9px rgba(23,35,59,.08));
}
.home-category-card__placeholder {
    position: absolute; right: 20px; bottom: 17px; width: 78px; height: 105px;
    border-radius: 9px; background: linear-gradient(145deg, #fff, #dfe3e9);
    box-shadow: inset 0 0 0 1px rgba(23,35,59,.08), 0 8px 20px rgba(23,35,59,.08);
}
.home-category-card__placeholder::before {
    content: ''; position: absolute; left: 12px; right: 12px; top: 14px; height: 38px;
    border-radius: 5px; background: #c9cfd8; box-shadow: inset 0 0 0 4px #eef0f3;
}
.home-category-card__placeholder::after {
    content: ''; position: absolute; width: 13px; height: 13px; border: 3px solid var(--accent);
    border-radius: 50%; bottom: 16px; left: 31px;
}
.home-category-card__arrow {
    position: absolute; left: 21px; bottom: 18px; z-index: 2; width: 27px; height: 27px;
    display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--accent);
    opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s;
}
.home-category-card:hover .home-category-card__arrow { opacity: 1; transform: translateX(0); }
.home-popular { padding-bottom: 28px; }
.home-popular .product-grid { margin-top: 0; }

/* Футер */
.site-footer { margin-top: 48px; background: #101a2d; color: #9da8ba; }
.footer-cta { background: var(--accent); color: #fff; }
.footer-cta__inner { min-height: 142px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 34px; }
.footer-cta span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .78; }
.footer-cta h2 { margin: 4px 0 0; color: #fff; font-size: 24px; }
.footer-cta__phone { color: #fff; font-size: 22px; font-weight: 800; white-space: nowrap; }
.footer-cta__phone:hover { color: #fff; }
.footer-cta__button {
    display: inline-flex; min-height: 46px; align-items: center; justify-content: center;
    padding: 0 22px; background: #fff; color: var(--accent-dark); border-radius: 8px; font-weight: 800; font-size: 13px;
}
.footer-grid { grid-template-columns: 1.35fr 1fr 1fr 1.1fr; padding: 48px 24px 42px; }
.footer-logo img { width: 170px; filter: brightness(0) invert(1); }
.footer-col h4 { margin-bottom: 16px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col a { padding: 5px 0; color: #9da8ba; }
.footer-col a:hover { color: #fff; }
.footer-about p { max-width: 285px; line-height: 1.7; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.footer-badges span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; color: #cbd2dd; font-size: 10px; font-weight: 800; }
.footer-contacts span { display: block; font-size: 12px; margin: -2px 0 8px; }
.footer-col .footer-phone { color: #fff; font-size: 18px; }
.footer-bottom { padding: 17px 0; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 1100px) {
    .topbar-links { display: none; }
    .home-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .promo-card__content { width: 68%; }
    .footer-cta__inner { grid-template-columns: 1fr auto; padding-top: 25px; padding-bottom: 25px; }
    .footer-cta__button { grid-column: 2; grid-row: 2; }
}

@media (max-width: 860px) {
    .topbar-inner { min-height: 38px; padding: 5px 16px; }
    .topbar-contacts { width: 100%; justify-content: space-between; }
    .topbar-hours, .topbar-contacts > a:last-child { display: none; }
    .topbar-contacts { width: auto; margin-left: auto; }
    .header-inner { min-height: auto; padding: 12px 16px; gap: 10px; }
    .logo img { width: 128px; }
    .catalog-btn { min-height: 45px; padding: 0 14px; }
    .header-actions { margin-left: auto; }
    .header-action { min-width: 47px; }
    .header-action > span:not(.cart-badge) { display: none; }
    .header-search { order: 5; height: 46px; }
    .catalog-dropdown {
        --catalog-side-offset: 16px;
        top: var(--catalog-menu-top, 72px); right: 0; bottom: 0; left: 0;
        width: 100vw; height: auto; grid-template-columns: 1fr; border-radius: 0;
    }
    .catalog-menu-nav { padding: 12px 16px 24px; border-right: 0; }
    .catalog-menu-panels { display: none; }

    .home-promos { grid-template-columns: 1fr; padding-top: 18px; }
    .promo-card { min-height: 350px; }
    .promo-card--side { min-height: 260px; }
    .promo-card__content { min-height: 350px; width: 70%; padding: 38px 30px; }
    .promo-card--side .promo-card__content { min-height: 260px; width: 62%; }
    .promo-card h1 { font-size: 31px; }
    .promo-card__art { width: 42%; right: -1%; }
    .promo-card--side .promo-card__art { width: 42%; right: 2%; bottom: -18%; }
    .home-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Выбор города ---------- */
.city-confirm {
    position: absolute; top: calc(100% + 11px); left: -12px; z-index: 310;
    width: 280px; padding: 18px; color: var(--text); background: #fff;
    border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 18px 50px rgba(23,35,59,.2);
}
.city-confirm[hidden] { display: none; }
.city-confirm::before {
    content: ''; position: absolute; top: -7px; left: 30px; width: 12px; height: 12px;
    background: #fff; border-left: 1px solid var(--border); border-top: 1px solid var(--border);
    transform: rotate(45deg);
}
.city-confirm__close, .city-modal__close {
    border: 0; background: transparent; color: #9299a5; cursor: pointer; line-height: 1;
}
.city-confirm__close { position: absolute; top: 9px; right: 11px; font-size: 22px; }
.city-confirm__label { margin-bottom: 2px; color: var(--muted); font-size: 12px; }
.city-confirm strong { display: block; color: var(--dark); font-size: 19px; }
.city-confirm__actions { display: flex; gap: 8px; margin-top: 14px; }
.city-confirm__yes, .city-confirm__other {
    min-height: 36px; padding: 0 12px; border-radius: 7px; font-size: 12px;
    font-weight: 700; cursor: pointer;
}
.city-confirm__yes { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.city-confirm__other { border: 1px solid var(--border); background: #fff; color: var(--dark); }
.city-confirm__yes:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.city-confirm__other:hover { border-color: #c9ced7; }

.city-modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; }
.city-modal[hidden] { display: none; }
.city-modal__backdrop { position: absolute; inset: 0; background: rgba(15,25,43,.56); backdrop-filter: blur(2px); }
.city-modal__dialog {
    position: relative; z-index: 1; display: flex; flex-direction: column;
    width: min(880px, 100%); height: min(700px, calc(100vh - 48px));
    overflow: hidden; padding: 24px 40px; background: #fff; border-radius: 8px;
    box-shadow: 0 26px 80px rgba(13,25,44,.3);
}
.city-modal__dialog h2 {
    margin: 0 45px 0 0; padding: 0 0 24px; color: #373737;
    font-size: 35px; font-weight: 400; line-height: 40px;
}
.city-modal__close { position: absolute; top: 20px; right: 22px; width: 34px; height: 34px; font-size: 30px; }
.city-country-nav {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 34px;
    margin: 0 0 24px; overflow: visible;
}
.city-region-tab {
    display: inline-flex; flex: 0 0 auto; align-items: center; height: 32px; padding: 0 14px;
    border: 0; border-radius: 50px; color: #545b66; background: #f3f3f3;
    font-size: 14px; line-height: 32px; cursor: pointer; white-space: nowrap;
}
.city-region-tab:hover { color: var(--accent); background: #fff1eb; }
.city-region-tab.is-active {
    color: #fff; background: var(--accent);
}
.city-search {
    position: relative; display: flex; flex: 0 0 auto; align-items: center; gap: 10px;
    height: 60px; margin-bottom: 16px; padding: 0 20px; color: #8e96a3;
    background: #f3f3f3; border: 1px solid #f3f3f3; border-radius: 6px;
}
.city-search:focus-within { background: #fff; border-color: #cfd4dc; }
.city-search svg { flex: 0 0 auto; width: 21px; height: 21px; }
.city-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #373737; font-size: 18px; }
.city-list-area {
    flex: 1 1 auto; min-height: 0; margin: 0 -40px -24px; padding: 34px 40px 28px;
    overflow-y: auto; background: #f3f3f3; scrollbar-color: #c8c8c8 transparent;
}
.city-list { columns: 3; column-gap: 40px; }
.city-option {
    display: block; break-inside: avoid; width: 100%; margin: 0 0 12px; padding: 0;
    border: 0; background: transparent; color: #373737; cursor: pointer;
    text-align: left; font-size: 18px; font-weight: 400; line-height: 22px;
}
.city-option:hover, .city-option:focus-visible { color: var(--accent); }
.city-option.is-current { color: var(--accent); font-weight: 600; }
.city-option[hidden] { display: none; }
.city-search-empty { margin: 20px 0; color: var(--muted); text-align: center; font-size: 17px; }
body.city-modal-open { overflow: hidden; }

@media (max-width: 860px) {
    .city-modal { padding: 12px; }
    .city-modal__dialog { height: calc(100vh - 24px); padding: 25px 24px; border-radius: 10px; }
    .city-list-area { margin: 0 -24px -25px; padding-left: 24px; padding-right: 24px; }
    .city-list { columns: 2; column-gap: 30px; }
    .city-confirm { left: 0; }
}

@media (max-width: 560px) {
    .topbar-inner { gap: 10px; }
    .topbar-contacts .topbar-phone { font-size: 12px; }
    .city-modal { padding: 0; align-items: end; }
    .city-modal__dialog { width: 100%; height: 94vh; padding: 22px 18px; border-radius: 16px 16px 0 0; }
    .city-modal__dialog h2 { padding-bottom: 18px; font-size: 28px; line-height: 34px; }
    .city-country-nav { margin-bottom: 18px; }
    .city-search { height: 54px; }
    .city-list-area { margin: 0 -18px -22px; padding: 26px 18px; }
    .city-list { columns: 2; column-gap: 18px; }
    .city-option { margin-bottom: 11px; font-size: 16px; line-height: 20px; }
    .city-confirm { position: fixed; top: 45px; left: 14px; right: 14px; width: auto; }
}

@media (max-width: 560px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .header-inner { padding-left: 14px; padding-right: 14px; }
    .logo img { width: 112px; }
    .catalog-btn { font-size: 0; width: 45px; justify-content: center; padding: 0; }
    .catalog-btn svg { width: 21px; height: 21px; }
    .header-actions { gap: 0; }
    .header-action:first-child { display: none; }
    .live-search-results { max-height: calc(100vh - 165px); padding: 5px; }
    .live-search-item { grid-template-columns: 50px minmax(0, 1fr); gap: 10px; min-height: 92px; padding: 8px; }
    .live-search-item img { width: 46px; height: 58px; grid-row: 1 / span 2; }
    .live-search-item__prices { grid-column: 2; align-items: flex-start; flex-direction: row; gap: 7px; }
    .live-search-item__old-price { line-height: 20px; }
    .promo-card { min-height: 365px; }
    .promo-card--side { min-height: 280px; }
    .promo-card__content { min-height: 365px; width: 88%; padding: 30px 24px 145px; justify-content: flex-start; }
    .promo-card--side .promo-card__content { min-height: 280px; width: 75%; padding: 28px 22px; }
    .promo-card h1 { font-size: 28px; }
    .promo-card--side h1 { font-size: 24px; }
    .promo-card p { margin: 12px 0 18px; font-size: 14px; }
    .promo-card__art { width: 48%; bottom: -7%; right: 23%; }
    .promo-card--side .promo-card__art { width: 45%; right: -3%; }

    .home-section { padding-top: 34px; }
    .section-heading { align-items: center; margin-bottom: 16px; }
    .section-heading h2 { font-size: 24px; }
    .section-link { font-size: 12px; }
    .home-catalog-grid { grid-template-columns: 1fr; gap: 10px; }
    .home-category-card { min-height: 155px; }
    .home-category-card img { right: 10px; bottom: 9px; width: 40%; height: 72%; }
    .home-category-card__placeholder { transform: scale(.84); transform-origin: right bottom; }
    .home-category-card__arrow { display: none; }

    .footer-cta__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 28px; padding-bottom: 30px; }
    .footer-cta h2 { font-size: 21px; }
    .footer-cta__phone { font-size: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
    .footer-bottom__inner { flex-direction: column; gap: 5px; }
}

/* ============================================================
   Каталог: витрина раздела и страница подкатегории (v4)
   ============================================================ */

.breadcrumbs__sep { color: #c4cad4; }
.breadcrumbs__current { color: var(--muted); }

.catalog-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin: 10px 0 22px; }
.catalog-head h1 { margin: 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.025em; }
.catalog-head__count { color: var(--muted); font-size: 15px; }

/* ---------- Витрина корневого раздела ---------- */
.catalog-landing { padding-bottom: 10px; }
.landing-section { margin-bottom: 42px; }
.landing-section__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.landing-section__head h2 { margin: 0; font-size: 23px; line-height: 1.2; color: var(--dark); letter-spacing: -.02em; }

.landing-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.landing-tile {
    position: relative; display: block; min-height: 172px; padding: 20px; overflow: hidden; isolation: isolate;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.landing-tile:hover {
    color: inherit; transform: translateY(-3px); border-color: #ffd4c2;
    box-shadow: 0 14px 30px rgba(23, 35, 59, .1);
}
.landing-tile__text { position: relative; z-index: 2; display: block; max-width: 59%; }
.landing-tile__name { display: block; color: var(--dark); font-size: 16.5px; font-weight: 700; line-height: 1.28; }
.landing-tile__count { display: block; margin-top: 7px; color: var(--muted); font-size: 12.5px; }
.landing-tile__image {
    position: absolute; z-index: 1; right: 14px; bottom: 12px; width: 38%; height: 66%;
    object-fit: contain; object-position: center right; mix-blend-mode: multiply;
    filter: drop-shadow(0 7px 9px rgba(23, 35, 59, .08));
}
.landing-tile__placeholder {
    position: absolute; right: 20px; bottom: 18px; width: 72px; height: 96px; border-radius: 9px;
    background: linear-gradient(145deg, #fff, #dfe3e9);
    box-shadow: inset 0 0 0 1px rgba(23, 35, 59, .08), 0 8px 20px rgba(23, 35, 59, .08);
}
.landing-tile__placeholder::before {
    content: ''; position: absolute; left: 11px; right: 11px; top: 13px; height: 34px;
    border-radius: 5px; background: #c9cfd8; box-shadow: inset 0 0 0 4px #eef0f3;
}
.landing-tile__placeholder::after {
    content: ''; position: absolute; left: 28px; bottom: 15px; width: 12px; height: 12px;
    border: 3px solid var(--accent); border-radius: 50%;
}

/* ---------- Горизонтальные ряды с прокруткой ---------- */
.scroll-row { position: relative; }
.scroll-row__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 64px) / 5);
    gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity;
    padding: 4px 2px 6px; scrollbar-width: none;
}
.scroll-row__track::-webkit-scrollbar { display: none; }
.scroll-row__track > * { scroll-snap-align: start; }
.scroll-row__nav {
    position: absolute; top: 50%; z-index: 5; width: 40px; height: 40px; transform: translateY(-50%);
    display: grid; place-items: center; padding: 0 0 3px;
    background: #fff; border: 1px solid var(--border); border-radius: 50%;
    color: var(--dark); font-size: 24px; line-height: 1; cursor: pointer;
    box-shadow: 0 6px 18px rgba(23, 35, 59, .14); transition: color .15s, border-color .15s;
}
.scroll-row__nav:hover { color: var(--accent); border-color: var(--accent); }
.scroll-row__nav[hidden] { display: none; }
.scroll-row__nav--prev { left: -14px; }
.scroll-row__nav--next { right: -14px; }

/* ---------- Быстрые ссылки по брендам ---------- */
.quick-links { margin-bottom: 20px; }
.quick-links .scroll-row__track { grid-auto-columns: 128px; gap: 10px; }
.quick-link {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
    min-height: 128px; padding: 14px 10px; background: #fff; border: 1px solid var(--border);
    border-radius: 12px; text-align: center; transition: border-color .15s, box-shadow .15s;
}
.quick-link:hover { border-color: var(--accent); box-shadow: 0 8px 20px rgba(23, 35, 59, .08); }
.quick-link img { height: 62px; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.quick-link__name { color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.25; }
.quick-link:hover .quick-link__name { color: var(--accent); }

/* ---------- Сайдбар: навигация по разделам ---------- */
.filter-group--nav .filter-group-body { max-height: 320px; }
.filter-nav-link {
    display: flex; align-items: center; gap: 9px; padding: 5px 0;
    color: var(--text); font-size: 13.5px;
}
.filter-nav-link span { flex: 1; }
.filter-nav-link em { font-style: normal; color: var(--muted); font-size: 12px; }
.filter-nav-link:hover { color: var(--accent); }
.filter-nav-link.active { color: var(--accent); font-weight: 700; }

/* ---------- Ползунок цены ---------- */
.price-range { position: relative; height: 26px; margin: 2px 4px 10px; }
.price-range__track {
    position: absolute; left: 0; right: 0; top: 11px; height: 4px;
    background: var(--border); border-radius: 3px;
}
.price-range__fill { position: absolute; top: 0; height: 100%; background: var(--accent); border-radius: 3px; }
.price-range__slider {
    position: absolute; left: 0; top: 0; width: 100%; height: 26px; margin: 0;
    appearance: none; -webkit-appearance: none; background: none; pointer-events: none;
}
.price-range__slider::-webkit-slider-thumb {
    -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 2px solid var(--accent); cursor: pointer;
    box-shadow: 0 2px 6px rgba(23, 35, 59, .2);
}
.price-range__slider::-moz-range-thumb {
    pointer-events: auto; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 2px solid var(--accent); cursor: pointer;
}
.price-range__slider::-moz-range-track { background: none; }

/* ---------- Тулбар: сортировка и вид ---------- */
.catalog-toolbar .sort-form { display: flex; align-items: center; }
.catalog-toolbar .sort-form select { margin-left: 0; padding: 9px 12px; font-weight: 600; }
.view-switch { display: flex; gap: 4px; }
.view-switch button {
    display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
    background: none; border: 1px solid transparent; border-radius: 8px;
    color: #b8bfca; cursor: pointer; transition: color .15s, background .15s;
}
.view-switch button:hover { color: var(--dark); background: #f2f4f7; }
.view-switch button.active { color: var(--accent); background: #fff2ec; }

/* Список вместо плитки */
.product-grid--list { grid-template-columns: 1fr; }
.product-grid--list .product-card {
    min-height: 250px; flex-direction: row; align-items: stretch;
    border: 1px solid var(--border); box-shadow: none; overflow: visible;
}
.product-grid--list .product-card:hover { border-color: #d9dde4; transform: none; box-shadow: 0 10px 28px rgba(23, 35, 59, .09); }
.product-grid--list .product-card-image {
    display: grid; place-items: center; flex: 0 0 210px; padding: 24px 18px;
}
.product-grid--list .product-card-image img { width: 100%; height: 190px; object-fit: contain; }
.product-grid--list .product-card-body {
    display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px;
    padding: 24px 24px 24px 10px;
}
.product-grid--list .product-card-content { align-self: stretch; }
.product-grid--list .product-brand { margin-bottom: 5px; }
.product-grid--list .product-name {
    flex: 0 0 auto; margin: 0; padding-right: 54px; color: var(--dark);
    font-size: 17px; line-height: 1.35; -webkit-line-clamp: 2;
}
.product-grid--list .product-name:hover { color: var(--accent); }
.product-grid--list .product-card-list-code {
    display: block; margin-top: 6px; color: var(--muted); font-size: 12px;
}
.product-grid--list .product-card-list-specs {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 24px; margin: 18px 0 0; padding-top: 16px;
    border-top: 1px solid var(--border);
}
.product-grid--list .product-card-list-specs > div { min-width: 0; }
.product-grid--list .product-card-list-specs dt {
    overflow: hidden; color: var(--muted); font-size: 11.5px; line-height: 1.25;
    text-overflow: ellipsis; white-space: nowrap;
}
.product-grid--list .product-card-list-specs dd {
    margin: 3px 0 0; overflow: hidden; color: var(--text); font-size: 13px; font-weight: 600;
    line-height: 1.25; text-overflow: ellipsis; white-space: nowrap;
}
.product-grid--list .product-card-content > .product-stock,
.product-grid--list .product-card-content > .product-card-list-delivery { display: none; }
.product-grid--list .product-footer {
    align-self: stretch; flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 18px; margin: 0; padding: 4px 0 4px 24px; border-left: 1px solid var(--border);
}
.product-grid--list .product-card-list-purchase-info {
    display: flex; flex-direction: column; gap: 5px; margin-top: auto; padding-top: 16px;
    border-top: 1px solid var(--border); color: var(--muted); font-size: 12px;
}
.product-grid--list .product-card-list-purchase-info .product-stock {
    margin: 0; font-size: 13px;
}
.product-grid--list .product-price-wrap { align-items: flex-start; }
.product-grid--list .product-card-list-old-price {
    display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px;
    text-decoration: line-through;
}
.product-grid--list .product-price { font-size: 28px; }
.product-grid--list .product-footer form { width: 100%; }
.product-grid--list .btn-buy {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 46px; gap: 9px; padding: 0 18px; border-radius: 9px;
    box-shadow: 0 7px 16px rgba(252, 76, 2, .2);
}
.product-grid--list .btn-buy .btn-buy__cart-icon,
.product-grid--list .btn-buy .btn-buy__check-icon { display: none; }
.product-grid--list .btn-buy svg { width: 19px; height: 19px; }
.product-grid--list .btn-buy span { display: inline; font-size: 14px; font-weight: 700; }

@media (max-width: 1240px) {
    .landing-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .scroll-row__track { grid-auto-columns: calc((100% - 48px) / 4); }
    .scroll-row__nav--prev { left: -8px; }
    .scroll-row__nav--next { right: -8px; }
}

@media (max-width: 1024px) {
    .catalog-head { margin-bottom: 16px; }
    .landing-section { margin-bottom: 32px; }
    .scroll-row__track { grid-auto-columns: calc((100% - 32px) / 3); }
}

@media (max-width: 860px) {
    .landing-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    /* На узких экранах картинка уходит под текст, чтобы не перекрывать счётчик */
    .landing-tile { display: flex; flex-direction: column; min-height: 158px; padding: 16px; }
    .landing-tile__name { font-size: 14.5px; }
    .landing-tile__text { max-width: 100%; }
    .landing-tile__image {
        position: static; width: 100%; height: 76px; margin-top: auto; padding-top: 10px;
        object-position: center bottom;
    }
    .landing-tile__placeholder { transform: scale(.8); transform-origin: right bottom; }
    .landing-section__head h2 { font-size: 19px; }
    .scroll-row__nav { display: none; }
    .scroll-row__track { grid-auto-columns: 76%; }
    .quick-links .scroll-row__track { grid-auto-columns: 108px; }
    .catalog-toolbar { padding: 8px 12px; }
    .view-switch { display: none; }
    .product-grid--list .product-card {
        min-height: 0; flex-direction: column; align-items: stretch;
        border: 0; box-shadow: var(--shadow); overflow: hidden;
    }
    .product-grid--list .product-card-image { display: block; flex: none; padding: 16px 16px 8px; }
    .product-grid--list .product-card-image img { height: 165px; }
    .product-grid--list .product-card-body { display: flex; padding: 8px 16px 16px; }
    .product-grid--list .product-name { margin: 3px 0 8px; padding-right: 0; font-size: 14px; -webkit-line-clamp: 2; }
    .product-grid--list .product-card-list-code,
    .product-grid--list .product-card-list-specs,
    .product-grid--list .product-card-list-delivery,
    .product-grid--list .product-card-list-purchase-info,
    .product-grid--list .product-card-list-old-price { display: none; }
    .product-grid--list .product-card-content > .product-stock { display: block; }
    .product-grid--list .product-stock { margin: 0 0 9px; font-size: 12.5px; }
    .product-grid--list .product-footer {
        flex-direction: row; align-items: flex-end; justify-content: space-between;
        gap: 12px; padding-left: 0; border-left: 0;
    }
    .product-grid--list .product-price { font-size: 25px; }
    .product-grid--list .product-footer form { width: auto; }
    .product-grid--list .btn-buy { display: grid; width: 50px; height: 50px; border-radius: 50%; }
    .product-grid--list .btn-buy .btn-buy__cart-icon { display: block; }
    .product-grid--list .btn-buy.is-added .btn-buy__cart-icon { display: none; }
    .product-grid--list .btn-buy.is-added .btn-buy__check-icon { display: block; }
    .product-grid--list .btn-buy svg { width: 23px; height: 23px; }
    .product-grid--list .btn-buy span { display: none; }
}

/* ---------- Пагинация каталога ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 30px; }
.pager__page, .pager__nav {
    display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px;
    background: #fff; border: 1px solid var(--border); border-radius: 9px;
    color: var(--text); font-size: 14px; font-weight: 600; transition: border-color .15s, color .15s;
}
.pager__page:hover, .pager__nav:hover { border-color: var(--accent); color: var(--accent); }
.pager__page--current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager__page--current:hover { color: #fff; }
.pager__nav { font-size: 20px; line-height: 1; padding-bottom: 3px; }
.pager__nav--disabled { color: #c4cad4; border-color: var(--border); cursor: default; }
.pager__nav--disabled:hover { border-color: var(--border); color: #c4cad4; }
.pager__gap { color: var(--muted); padding: 0 4px; }
.pager__summary { margin-left: auto; color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
    .pager__summary { width: 100%; margin: 6px 0 0; }
}

/* ============================================================
   Карточка товара (v5)
   ============================================================ */

.product-page { padding-bottom: 12px; }
.product-title { margin: 10px 0 12px; font-size: clamp(23px, 2.3vw, 31px); line-height: 1.2; letter-spacing: -.02em; }

.product-meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 14px 22px; padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 22px;
}
.product-meta__left { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.product-meta__right { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; }
.product-meta__link {
    background: none; border: none; padding: 0; font-size: 13.5px; font-family: inherit;
    color: var(--muted); cursor: pointer; transition: color .15s;
}
.product-meta__link:hover { color: var(--accent); }

.product-rating { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; }
.product-rating__stars {
    position: relative; display: inline-block; color: #dfe3e9; font-size: 15px; letter-spacing: 1px;
}
.product-rating__stars::before {
    content: '★★★★★'; position: absolute; left: 0; top: 0; width: var(--rating, 0%);
    overflow: hidden; white-space: nowrap; color: #f5a623;
}

/* ---------- Верхний блок: галерея / характеристики / покупка ---------- */
.product-top {
    display: grid; grid-template-columns: minmax(280px, 1fr) minmax(240px, 1fr) 340px;
    gap: 28px; align-items: start; margin-bottom: 34px;
}
.product-gallery {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
}
.product-specs-short h2, .product-section > h2 { margin: 0 0 16px; font-size: 20px; color: var(--dark); }
.specs-short-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.specs-short-table th, .specs-short-table td { padding: 7px 0; vertical-align: top; text-align: left; font-weight: 400; }
.specs-short-table th { width: 58%; color: var(--muted); position: relative; padding-right: 12px; }
.specs-short-table td { color: var(--text); font-weight: 600; }
.specs-short-table tr + tr th, .specs-short-table tr + tr td { border-top: 1px solid #f0f2f5; }
.specs-short-all { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 600; }

.product-usp { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border); }
.product-usp li { position: relative; padding: 5px 0 5px 24px; font-size: 13.5px; color: var(--text); }
.product-usp li::before {
    content: '✓'; position: absolute; left: 0; top: 5px; color: var(--green); font-weight: 700;
}

/* ---------- Карточка покупки ---------- */
.buy-card { position: relative; }
.buy-card__discount {
    display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 6px;
    background: #ffe9e0; color: var(--accent-dark); font-size: 12px; font-weight: 800;
}
.buy-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.buy-price__old { color: var(--muted); font-size: 17px; font-weight: 600; text-decoration: line-through; }

/* Строка рассрочки */
.installment-line {
    display: flex; align-items: center; gap: 10px; width: 100%; margin: 12px 0 4px; padding: 11px 13px;
    background: #f6f7f9; border: 1px solid transparent; border-radius: 10px;
    font-family: inherit; font-size: 13.5px; color: var(--text); text-align: left; cursor: pointer;
    transition: border-color .15s, background .15s;
}
.installment-line:hover { background: #fff; border-color: var(--accent); }
.installment-line__badge {
    flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--green); color: #fff; font-size: 13px; font-weight: 800;
}
.installment-line__text { flex: 1; line-height: 1.35; }
.installment-line__link { color: var(--blue); border-bottom: 1px dashed currentColor; }
.installment-line__info {
    flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
    border: 1px solid #c4cad4; color: var(--muted); font-size: 11px; font-weight: 700; font-style: italic;
}
.installment-line:hover .installment-line__info { border-color: var(--accent); color: var(--accent); }

/* ---------- Модальное окно ---------- */
.modal {
    width: min(580px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0;
    background: #fff; border: none; border-radius: 16px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(23, 35, 59, .3);
}
.modal::backdrop { background: rgba(23, 35, 59, .55); }
.modal__window { display: flex; flex-direction: column; max-height: calc(100vh - 64px); }
.modal__head {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px 14px; border-bottom: 1px solid var(--border);
}
.modal__title { margin: 0; font-size: 19px; color: var(--dark); }
.modal__close {
    flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; padding: 0 0 3px;
    background: #f2f4f7; border: none; border-radius: 50%; color: var(--muted);
    font-size: 24px; line-height: 1; cursor: pointer; transition: background .15s, color .15s;
}
.modal__close:hover { background: var(--accent); color: #fff; }
.modal__body { padding: 6px 24px 24px; overflow-y: auto; }
.modal__price { margin: 14px 0 6px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.modal__price strong { color: var(--dark); font-size: 15px; white-space: nowrap; }
.modal__note { margin: 16px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.installment-plans { list-style: none; margin: 0; padding: 0; }
.installment-plan {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 12px;
    padding: 12px 0; border-bottom: 1px solid var(--border);
}
.installment-plan:last-child { border-bottom: none; }
.installment-plan__logo { grid-row: span 2; width: 40px; height: 40px; object-fit: contain; }
.installment-plan__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.installment-plan__name { color: var(--dark); font-size: 13.5px; font-weight: 700; }
.installment-plan__term { color: var(--muted); font-size: 12.5px; }
.installment-plan__payment { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.installment-plan__payment strong { color: var(--dark); font-size: 14.5px; }
.installment-plan__payment span { color: var(--muted); font-size: 11.5px; }
.installment-plan__note {
    grid-column: 2 / -1; justify-self: start; padding: 2px 8px; border-radius: 5px;
    background: #eaf7ee; color: #15803d; font-size: 11.5px; font-weight: 600;
}

/* Раздел «Доставка и оплата»: планы в две колонки */
#payment .installment-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }

/* ---------- Навигация по разделам ---------- */
.product-nav {
    display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 22px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px;
    position: sticky; top: 86px; z-index: 20; scroll-margin-top: 100px;
}
.product-nav button {
    padding: 10px 18px; background: none; border: none; border-radius: 8px;
    color: var(--text); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: background .15s, color .15s;
}
.product-nav button:hover { background: #f6f7f9; color: var(--accent); }
.product-nav button[aria-selected="true"] { background: var(--accent); color: #fff; }
.product-nav button[aria-selected="true"]:hover { background: var(--accent-dark); color: #fff; }

.product-section[hidden] { display: none; }

.product-section {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 24px 26px; margin-bottom: 20px; scroll-margin-top: 160px;
}
.product-section#related { background: none; box-shadow: none; padding: 8px 0 0; }
.product-description { font-size: 14.5px; line-height: 1.65; color: #495057; }
.product-description img { max-width: 100%; height: auto; }

/* ---------- Отзывы ---------- */
.reviews-summary {
    display: flex; align-items: center; gap: 18px; padding: 16px 20px; margin-bottom: 18px;
    background: #f6f7f9; border-radius: 10px;
}
.reviews-summary__score { display: flex; align-items: baseline; gap: 4px; }
.reviews-summary__score strong { font-size: 30px; color: var(--dark); }
.reviews-summary__score span { color: var(--muted); font-size: 14px; }
.reviews-summary__meta { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.review-date { margin-left: auto; font-size: 12.5px; }

/* ---------- Доставка и оплата ---------- */
.payment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.payment-block h3 { margin: 0 0 7px; font-size: 15px; color: var(--dark); }
.payment-block p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #495057; }

@media (max-width: 1240px) {
    .product-top { grid-template-columns: minmax(260px, 1fr) 320px; }
    .product-specs-short { grid-column: 1; grid-row: 2; }
    .product-gallery { grid-column: 1; grid-row: 1; }
    .buy-card { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 860px) {
    .product-top { grid-template-columns: 1fr; gap: 18px; }
    .product-gallery, .product-specs-short, .buy-card { grid-column: 1; grid-row: auto; }
    .product-meta { gap: 10px; }
    .product-meta__right { width: 100%; font-size: 12.5px; }
    .product-nav { position: static; overflow-x: auto; flex-wrap: nowrap; }
    .product-nav a { white-space: nowrap; }
    .product-section { padding: 18px 16px; }
    .payment-grid { grid-template-columns: 1fr; gap: 16px; }
    #payment .installment-plans { grid-template-columns: 1fr; }
    .reviews-summary { padding: 14px 16px; }
}

@media print {
    .topbar, .site-header, .site-footer, .product-nav, .buy-form, .product-meta__link,
    .scroll-row__nav, #related { display: none !important; }
    .product-section, .product-gallery, .buy-card { box-shadow: none; border: 1px solid #ddd; }
}

/* ---------- Окно рассрочки: срок, программы, заявка ---------- */
.modal--wide { width: min(900px, calc(100vw - 32px)); }

.modal--installment { width: min(960px, calc(100vw - 32px)); border-radius: 22px; }
.modal--installment::backdrop { background: rgba(17, 24, 39, .68); backdrop-filter: blur(3px); }
.installment-modal__head {
    padding: 20px 26px 17px; background: linear-gradient(115deg, #fff7f2 0%, #fff 52%, #f1f6ff 100%);
}
.installment-modal__eyebrow {
    display: block; margin-bottom: 4px; color: var(--accent); font-size: 11px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
}
.modal--installment .modal__title { font-size: 23px; letter-spacing: -.02em; }

.installment-modal { display: grid; grid-template-columns: minmax(0, 1fr) 310px; overflow: hidden; }
.installment-modal__main { padding: 22px 26px 28px; overflow-y: auto; }
.installment-modal__side {
    align-content: start; padding: 24px; background: #f6f7f9; border-left: 1px solid var(--border);
}
.installment-modal__label { margin: 20px 0 10px; color: var(--dark); font-size: 13px; font-weight: 800; }

.installment-product {
    display: grid; grid-template-columns: 136px 1fr; align-items: center; gap: 22px;
    padding: 16px 20px; border: 1px solid #ffe0d2; border-radius: 18px;
    background: linear-gradient(135deg, #fff8f4, #fff 58%, #f5f8ff);
}
.installment-product__image-wrap {
    position: relative; display: grid; place-items: center; width: 136px; height: 122px;
    background: #fff; border-radius: 14px; box-shadow: 0 10px 28px rgba(32, 46, 78, .08);
}
.installment-product__image { max-width: 112px; max-height: 102px; object-fit: contain; }
.installment-product__badge {
    position: absolute; right: -8px; top: -8px; display: grid; place-items: center;
    width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff;
    font-size: 18px; font-weight: 900; box-shadow: 0 7px 16px rgba(252, 76, 2, .28);
}
.installment-product__caption { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.installment-product__info h3 { margin: 0; color: var(--dark); font-size: 17px; line-height: 1.35; }
.installment-product__price { margin: 9px 0 2px; color: var(--dark); font-size: 22px; font-weight: 900; }
.installment-product__monthly { margin: 0; color: var(--muted); font-size: 13px; }
.installment-product__monthly strong { color: var(--accent); font-size: 15px; }

.term-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.term-pill {
    display: flex; align-items: baseline; gap: 5px; padding: 9px 15px; background: #fff;
    border: 1px solid var(--border); border-radius: 12px; color: var(--text);
    font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
    transition: border-color .15s, color .15s;
}
.term-pill[hidden] { display: none; }
.term-pill strong { font-size: 16px; }
.term-pill:hover { border-color: var(--accent); color: var(--accent); }
.term-pill.active { border-color: var(--accent); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.programs { display: flex; flex-direction: column; gap: 10px; }
.program {
    display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px;
    padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px;
    cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.program[hidden] { display: none; }
.program:hover { border-color: #ffd4c2; }
.program:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.program input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.program__logo { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; }
.program__logo--fallback { display: grid; place-items: center; background: #eef2f7; color: var(--blue); font-weight: 900; }
.program__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.program__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.program__name { color: var(--dark); font-size: 16px; font-weight: 700; }
.program__badge {
    padding: 2px 8px; border-radius: 5px; background: #eaf7ee; color: #15803d;
    font-size: 11px; font-weight: 700; white-space: nowrap;
}
.program__term { color: var(--muted); font-size: 12.5px; }
.program__col { display: flex; flex-direction: column; align-items: center; text-align: center; white-space: nowrap; }
.program__col b { color: var(--dark); font-size: 17px; }
.program__col span { color: var(--muted); font-size: 11.5px; }
.program__col--pay b { font-size: 16px; }

.installment-field { display: block; margin-bottom: 12px; }
.installment-field__label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12.5px; }
.installment-field input {
    width: 100%; padding: 11px 13px; background: #fff; border: 1px solid var(--border);
    border-radius: 9px; font-size: 14px; outline: none; transition: border-color .15s;
}
.installment-field input:focus { border-color: var(--accent); }
.installment-submit { margin-top: 4px; }
.installment-submit:disabled { background: #c4c9d2; cursor: default; }
.installment-consent { margin: 12px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.45; }
.installment-result { margin: 12px 0 0; padding: 11px 13px; border-radius: 9px; font-size: 13px; line-height: 1.45; }
.installment-result[hidden] { display: none; }
.installment-result--ok { background: #eaf7ee; color: #15803d; }
.installment-result--error { background: #fdecea; color: #b3261e; }

.installment-side-note {
    display: flex; gap: 11px; margin-bottom: 20px; padding: 13px; border-radius: 13px;
    background: #fff; box-shadow: 0 8px 22px rgba(32, 46, 78, .06);
}
.installment-side-note__icon {
    flex: 0 0 28px; display: grid; place-items: center; width: 28px; height: 28px;
    border-radius: 50%; background: #eaf7ee; color: #15803d; font-weight: 900;
}
.installment-side-note div { display: flex; flex-direction: column; gap: 3px; }
.installment-side-note strong { color: var(--dark); font-size: 13px; }
.installment-side-note span { color: var(--muted); font-size: 11.5px; line-height: 1.4; }

@media (max-width: 860px) {
    .installment-modal { grid-template-columns: 1fr; }
    .installment-modal__main { padding: 16px 18px 18px; }
    .installment-modal__side { border-left: none; border-top: 1px solid var(--border); padding: 18px; }
    .program { grid-template-columns: auto auto 1fr; gap: 10px 12px; padding: 13px 14px; }
    .program__col { grid-column: 3; flex-direction: row; align-items: baseline; gap: 6px; }
    .program__col b { font-size: 15px; }
    .program__name { font-size: 15px; }
}

@media (max-width: 560px) {
    .modal--installment { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 16px; }
    .modal--installment .modal__window { max-height: calc(100vh - 16px); }
    .installment-modal__head { padding: 15px 16px 13px; }
    .modal--installment .modal__title { font-size: 20px; }
    .installment-product { grid-template-columns: 92px 1fr; gap: 13px; padding: 12px; }
    .installment-product__image-wrap { width: 92px; height: 92px; }
    .installment-product__image { max-width: 76px; max-height: 74px; }
    .installment-product__badge { right: -5px; top: -5px; width: 30px; height: 30px; font-size: 14px; }
    .installment-product__info h3 { font-size: 14px; }
    .installment-product__price { font-size: 18px; }
    .installment-modal__main { padding: 14px 14px 18px; }
    .term-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
    .term-pill { flex: 0 0 auto; }
    .program { grid-template-columns: auto 1fr; }
    .program__logo { display: none; }
    .program__col { grid-column: 2; }
}

/* Окно рассрочки в фирменном стиле ShopRoom */
.modal--installment { width: min(820px, calc(100vw - 32px)); border-radius: 16px; }
.modal--installment::backdrop { background: rgba(27, 32, 45, .58); backdrop-filter: blur(2px); }
.installment-modal__head { padding: 17px 20px; background: #fff; }
.installment-modal__title-row { display: flex; align-items: center; gap: 12px; }
.installment-modal__title-icon {
    display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px;
    border-radius: 11px; background: var(--accent); color: #fff; font-size: 18px; font-weight: 900;
    box-shadow: 0 7px 16px rgba(252, 76, 2, .2);
}
.installment-modal__eyebrow { margin-bottom: 1px; color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.modal--installment .modal__title { font-size: 20px; }
.modal--installment .modal__close { width: 32px; height: 32px; background: #f4f5f7; font-size: 21px; }

.installment-modal { display: block; max-height: calc(100vh - 126px); overflow-y: auto; }
.installment-modal__main { padding: 18px 20px 20px; overflow: visible; }
.installment-product {
    grid-template-columns: 104px minmax(0, 1fr); gap: 17px; padding: 12px 16px;
    border: none; border-radius: 13px; background: #f5f6f8;
}
.installment-product__image-wrap {
    width: 104px; height: 94px; border: 1px solid #e8eaee; border-radius: 10px; box-shadow: none;
}
.installment-product__image { max-width: 86px; max-height: 78px; }
.installment-product__caption { margin-bottom: 3px; }
.installment-product__info h3 { font-size: 15px; }
.installment-product__price { display: inline-block; margin: 7px 14px 0 0; font-size: 20px; }
.installment-product__monthly { display: inline-block; }
.installment-product__monthly strong { font-size: 14px; }

.installment-modal__label { margin: 17px 0 8px; font-size: 12.5px; }
.term-pills { gap: 7px; margin-bottom: 17px; }
.term-pill { padding: 8px 13px; border-radius: 9px; background: #f5f6f8; border-color: transparent; }
.term-pill strong { font-size: 14px; }
.term-pill:hover { background: #fff4ee; }
.term-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: none; }

.programs { gap: 7px; }
.program {
    grid-template-columns: auto 48px minmax(0, 1fr) auto; gap: 12px; padding: 11px 13px;
    border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(27, 39, 67, .04);
}
.program:hover { border-color: #ffb99b; }
.program:has(input:checked) { border-color: var(--accent); background: #fffaf7; box-shadow: none; }
.program__logo { width: 48px; height: 34px; border-radius: 6px; }
.program__logo--fallback { height: 38px; }
.program__name { font-size: 14px; }
.program__term { font-size: 11.5px; }
.program__badge { padding: 2px 6px; font-size: 10px; }
.program__col--pay { align-items: flex-end; }
.program__col--pay b { font-size: 14px; }

.installment-modal__side {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 220px;
    align-items: end; gap: 11px 13px; padding: 16px 20px 18px;
    background: #fff8f4; border-left: none; border-top: 1px solid #ffe2d5;
}
.installment-side-intro { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 9px; }
.installment-side-intro strong { color: var(--dark); font-size: 14px; }
.installment-side-intro span { color: var(--muted); font-size: 12px; }
.installment-modal__side .installment-field { margin: 0; }
.installment-field__label { margin-bottom: 4px; font-size: 11.5px; }
.installment-field input { padding: 10px 12px; border-radius: 8px; }
.installment-modal__side .installment-submit { height: 41px; margin: 0; border-radius: 8px; }
.installment-modal__side .installment-consent { grid-column: 1 / -1; margin: 0; font-size: 10.5px; }
.installment-modal__side .installment-result { grid-column: 1 / -1; margin: 0; }

@media (max-width: 700px) {
    .modal--installment { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
    .modal--installment .modal__window { max-height: calc(100vh - 16px); }
    .installment-modal { max-height: calc(100vh - 83px); }
    .installment-modal__side { grid-template-columns: 1fr; padding: 14px; }
    .installment-side-intro, .installment-modal__side .installment-consent,
    .installment-modal__side .installment-result { grid-column: 1; }
    .installment-side-intro { display: flex; flex-direction: column; gap: 2px; }
}

@media (max-width: 480px) {
    .installment-modal__head { padding: 13px 14px; }
    .installment-modal__title-icon { flex-basis: 36px; width: 36px; height: 36px; }
    .modal--installment .modal__title { font-size: 17px; }
    .installment-modal__main { padding: 12px 14px 15px; }
    .installment-product { grid-template-columns: 76px 1fr; gap: 11px; padding: 10px; }
    .installment-product__image-wrap { width: 76px; height: 76px; }
    .installment-product__image { max-width: 64px; max-height: 62px; }
    .installment-product__price, .installment-product__monthly { display: block; }
    .program { grid-template-columns: auto 1fr auto; }
    .program__logo { display: none; }
    .program__col { grid-column: auto; }
    .program__badge { display: none; }
}

/* ============================================================
   Избранное, сравнение, доставка по городу (v6)
   ============================================================ */

/* Счётчики в шапке */
.action-badge {
    position: absolute; top: 0; right: 4px; min-width: 18px; padding: 0 5px;
    background: var(--accent); color: #fff; border-radius: 12px;
    font-size: 12px; font-weight: 700; text-align: center;
}

/* Кнопки на карточке товара в списках */
.product-card { position: relative; }
.product-card-actions {
    position: absolute; z-index: 3; top: 10px; right: 10px;
    display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transition: opacity .15s;
}
.product-card:hover .product-card-actions,
.product-card-actions:focus-within { opacity: 1; }
.card-action {
    display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
    background: #fff; border: 1px solid var(--border); border-radius: 50%;
    color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s;
}
.card-action:hover { color: var(--accent); border-color: var(--accent); }
.card-action[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: #fff2ec; }
.card-action[aria-pressed="true"] svg path { fill: currentColor; }

/* В горизонтальной карточке действия всегда под рукой и не мешают цене. */
@media (min-width: 861px) {
    .product-grid--list .product-card-actions {
        position: static; flex-direction: row; justify-content: flex-start; gap: 7px; opacity: 1;
    }
    .product-grid--list .card-action {
        width: 36px; height: 36px; background: #f7f8fa; border-color: #e4e7ec;
        box-shadow: 0 2px 7px rgba(23, 35, 59, .07);
    }
    .product-grid--list .card-action:hover {
        background: #fff2ec; box-shadow: 0 3px 9px rgba(252, 76, 2, .12);
    }
    .product-grid--list .product-name { padding-right: 0; }
}

/* На тач-устройствах кнопки видны всегда */
@media (hover: none) {
    .product-card-actions { opacity: 1; }
}

/* Кнопки в карточке товара */
.product-meta__toggle { display: inline-flex; align-items: center; gap: 7px; }
.product-meta__toggle[aria-pressed="true"] { color: var(--accent); }
.product-meta__toggle[aria-pressed="true"] svg path { fill: currentColor; }

/* Блок доставки в карточке покупки */
.buy-delivery {
    margin: 14px 0 0; padding: 13px 15px; background: #f6f7f9; border-radius: 10px;
}
.buy-delivery__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.buy-delivery__label { color: var(--muted); font-size: 13px; }
.buy-delivery__value { color: var(--dark); font-size: 13.5px; font-weight: 700; text-align: right; }
.buy-delivery__note { margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

/* Страницы списков */
.list-page { padding-bottom: 20px; }
.list-page__actions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 14px; margin-bottom: 18px;
}
.compare-filter { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.compare-filter input { accent-color: var(--accent); width: 17px; height: 17px; }

/* Таблица сравнения */
.compare-scroll {
    overflow-x: auto; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); margin-bottom: 32px;
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.compare-table th, .compare-table td {
    padding: 12px 16px; text-align: left; vertical-align: top;
    border-bottom: 1px solid var(--border);
}
.compare-table tbody th {
    width: 220px; min-width: 180px; color: var(--muted); font-weight: 600;
    background: #fafbfc; position: sticky; left: 0; z-index: 1;
}
.compare-table td { min-width: 190px; }
.compare-table tbody tr:hover td { background: #fafbfc; }
.compare-table__corner { background: #fff; position: sticky; left: 0; z-index: 2; }
.compare-table tr[hidden] { display: none; }

.compare-head { text-align: center !important; }
.compare-head__image { display: block; margin-bottom: 10px; }
.compare-head__image img { height: 120px; object-fit: contain; }
.compare-head__name {
    display: block; margin-bottom: 6px; color: var(--text); font-size: 13.5px; font-weight: 600;
}
.compare-head__price { color: var(--dark); font-size: 17px; font-weight: 800; }
.compare-head__price small { color: var(--muted); font-size: 12px; }
.compare-head__remove {
    margin-top: 8px; padding: 5px 12px; background: none; border: 1px solid var(--border);
    border-radius: 8px; color: var(--muted); font-family: inherit; font-size: 12.5px; cursor: pointer;
    transition: color .15s, border-color .15s;
}
.compare-head__remove:hover { color: var(--red); border-color: var(--red); }

@media (max-width: 860px) {
    .list-page__actions { gap: 10px; }
    .compare-table th, .compare-table td { padding: 10px 12px; }
    .compare-table tbody th { width: 150px; min-width: 140px; }
    .compare-head__image img { height: 92px; }
}

/* Всплывающее уведомление */
.action-badge[hidden] { display: none; }

.toast {
    position: fixed; z-index: 400; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
    max-width: calc(100vw - 32px); padding: 12px 20px;
    background: var(--dark); color: #fff; border-radius: 10px;
    font-size: 14px; line-height: 1.4; box-shadow: 0 14px 34px rgba(23, 35, 59, .28);
    opacity: 0; transition: opacity .2s, transform .2s;
}
.toast--visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: #b3261e; }

/* Подтверждение добавления товара в корзину */
.cart-toast {
    position: fixed; z-index: 450; right: 24px; bottom: 24px; display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
    width: min(390px, calc(100vw - 32px)); padding: 15px 16px;
    background: #fff; border: 1px solid #dce7df; border-radius: 16px;
    box-shadow: 0 22px 55px rgba(23, 35, 59, .22);
    opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .2s, transform .2s;
}
.cart-toast--visible { opacity: 1; transform: translateY(0) scale(1); }
.cart-toast--error { border-color: #f3c5c1; }
.cart-toast__icon {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: #e8f8ef; color: #15803d;
}
.cart-toast--error .cart-toast__icon { background: #fdecea; color: #b3261e; }
.cart-toast__body { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.cart-toast__body strong { color: var(--dark); font-size: 14.5px; }
.cart-toast__body span { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.cart-toast__link { color: var(--accent); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.cart-toast__link:hover { color: var(--accent-dark); }
.header-cart.cart-bump { animation: cart-bump .35s ease; }
@keyframes cart-bump { 50% { transform: scale(1.1); } }

@media (max-width: 560px) {
    .cart-toast { right: 16px; bottom: 16px; grid-template-columns: 40px minmax(0, 1fr); }
    .cart-toast__icon { width: 40px; height: 40px; }
    .cart-toast__link { grid-column: 2; }
}

/* ---------- Купить в один клик ---------- */
.modal--quick-order {
    width: min(520px, calc(100vw - 28px)); max-height: calc(100vh - 28px);
    border-radius: 20px; box-shadow: 0 30px 90px rgba(18, 27, 43, .34);
}
.modal--quick-order::backdrop { background: rgba(20, 27, 39, .64); backdrop-filter: blur(3px); }
.quick-order-window { max-height: calc(100vh - 28px); }
.quick-order-head {
    position: relative; display: flex; align-items: center; gap: 12px;
    padding: 19px 21px 16px; border-bottom: 1px solid #edf0f3;
}
.quick-order-head__icon {
    display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px;
    border-radius: 12px; background: #fff0e9; color: var(--accent);
}
.quick-order-head__eyebrow {
    display: block; margin-bottom: 2px; color: var(--accent); font-size: 9.5px;
    font-weight: 850; letter-spacing: .1em; text-transform: uppercase;
}
.quick-order-head h2 { margin: 0; color: var(--dark); font-size: 21px; line-height: 1.2; letter-spacing: -.015em; }
.quick-order-close { margin-left: auto; }
.quick-order-form { padding: 20px 21px 21px; overflow-y: auto; }
.quick-order-product {
    display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center;
    gap: 14px; padding: 12px; border: 1px solid #edf0f3; border-radius: 13px; background: #fafbfc;
}
.quick-order-product__image {
    display: grid; place-items: center; width: 76px; height: 76px; padding: 4px;
    border-radius: 10px; background: #fff;
}
.quick-order-product__image img { width: 100%; height: 100%; object-fit: contain; }
.quick-order-product__info { display: flex; flex-direction: column; min-width: 0; }
.quick-order-product__info > small {
    margin-bottom: 4px; color: var(--accent); font-size: 9px; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase;
}
.quick-order-product__info > strong {
    overflow: hidden; color: var(--dark); font-size: 13.5px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.quick-order-product__info > span { margin-top: 7px; color: var(--muted); font-size: 11px; }
.quick-order-product__info b { color: var(--dark); font-size: 14px; }
.quick-order-product__info i { font-style: normal; }
.quick-order-intro { display: flex; flex-direction: column; margin: 18px 1px 14px; }
.quick-order-intro strong { color: var(--dark); font-size: 15px; }
.quick-order-intro span { margin-top: 4px; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.quick-order-fields { display: grid; grid-template-columns: .8fr 1.2fr; gap: 11px; }
.quick-order-field { display: block; color: var(--dark); font-size: 11.5px; font-weight: 750; }
.quick-order-field > span:first-child { display: block; margin-bottom: 7px; }
.quick-order-field small { margin-left: 4px; color: #9ca4af; font-size: 9px; font-weight: 500; }
.quick-order-field em { color: var(--accent); font-style: normal; }
.quick-order-input { position: relative; display: block; color: #9ba3ae; }
.quick-order-input svg { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); pointer-events: none; }
.quick-order-input input {
    width: 100%; height: 45px; padding: 0 11px 0 38px; border: 1px solid #dfe3e9;
    border-radius: 10px; outline: 0; background: #fff; color: var(--dark);
    font-family: inherit; font-size: 13px; font-weight: 500; transition: border-color .15s, box-shadow .15s;
}
.quick-order-input input:hover { border-color: #c6ccd5; }
.quick-order-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(252,76,2,.1); }
.quick-order-result {
    margin: 11px 0 0; padding: 10px 12px; border-radius: 9px;
    background: #fff0ed; color: #a72d15; font-size: 11.5px; font-weight: 650;
}
.quick-order-submit {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    min-height: 48px; margin-top: 16px; padding: 0 18px; border: 0; border-radius: 10px;
    font-family: inherit; font-size: 13.5px; font-weight: 800; cursor: pointer;
}
.quick-order-submit.is-loading { opacity: .72; cursor: wait; }
.quick-order-consent { margin: 9px 12px 0; color: #9aa2ad; font-size: 9px; line-height: 1.4; text-align: center; }
.quick-order-success { padding: 25px 10px 17px; text-align: center; }
.quick-order-success__icon {
    display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 15px;
    border-radius: 50%; background: #e8f8ee; color: #349556;
}
.quick-order-success h3 { margin: 0; color: var(--dark); font-size: 22px; }
.quick-order-success p { max-width: 330px; margin: 8px auto 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.quick-order-success__number {
    display: inline-block; margin-top: 14px; padding: 7px 12px; border-radius: 8px;
    background: #f3f5f7; color: var(--dark); font-size: 11.5px; font-weight: 750;
}
.quick-order-success__number:empty { display: none; }
.quick-order-done {
    display: block; width: 100%; min-height: 44px; margin-top: 20px; border: 1px solid #dfe3e9;
    border-radius: 10px; background: #fff; color: var(--dark); font-family: inherit;
    font-size: 13px; font-weight: 750; cursor: pointer;
}
.quick-order-done:hover { border-color: var(--accent); color: var(--accent); background: #fff8f5; }

@media (max-width: 520px) {
    .modal--quick-order { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 16px; }
    .quick-order-window { max-height: calc(100vh - 16px); }
    .quick-order-head { padding: 15px 15px 13px; }
    .quick-order-head__icon { flex-basis: 38px; width: 38px; height: 38px; }
    .quick-order-head h2 { font-size: 18px; }
    .quick-order-form { padding: 15px; }
    .quick-order-fields { grid-template-columns: 1fr; }
    .quick-order-product { grid-template-columns: 65px minmax(0, 1fr); }
    .quick-order-product__image { width: 65px; height: 65px; }
}
