/* МИРКОМ — холодный сланец + стальной синий (единая палитра, без бирюзы) */
:root {
    --bg-dark: #f5f8fc;
    --bg-header: #ffffff;
    --bg-input: #ffffff;
    --border: rgba(148, 163, 184, 0.28);
    --border-strong: #cfd9e6;
    --accent-blue: #1f64b7;
    --accent-deep: #124b97;
    --accent-blue-mid: #2a6fbe;
    --accent-blue-soft: #e8f1fb;
    --accent-purple: #5a789e;
    --accent-frost: #2f5783;
    --text-primary: #1a2838;
    --text-secondary: #354956;
    --text-muted: #576878;
    --text-white: var(--text-primary);
    --text-gray: var(--text-secondary);
    --text-on-primary: #f4f8fd;
    --radius: 12px;
    --sb-chevron: #1f64b7;
    --accent-rgb: 31, 100, 183;
    --main-height: 522px;
    --gradient-cta: linear-gradient(
        180deg,
        var(--accent-blue-mid) 0%,
        var(--accent-blue) 52%,
        var(--accent-deep) 100%
    );
    --gradient-cta-hover: linear-gradient(
        180deg,
        var(--accent-blue) 0%,
        var(--accent-deep) 100%
    );
    --mk-blue: var(--accent-blue);
    --mk-blue-deep: var(--accent-deep);
    --mk-blue-light: var(--accent-blue-mid);
    --mk-text: #10233f;
    --mk-green: #3ea54c;
    --mk-red: #d63b34;
    --ui-icon-stroke: 0.42px;
    --ui-control-radius: 8px;
    --ui-control-radius-lg: 10px;
    --ui-primary-bg: var(--accent-blue);
    --ui-primary-bg-hover: var(--accent-deep);
    --ui-primary-border: var(--accent-deep);
    --ui-primary-shadow: 0 4px 14px rgba(31, 100, 183, 0.22);
    --ui-primary-shadow-hover: 0 6px 18px rgba(18, 75, 151, 0.28);
    --ui-focus-ring: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
    --ui-btn-h-sm: 36px;
    --ui-btn-h-md: 44px;
    --ui-btn-h-lg: 46px;
    --ui-btn-px-sm: 14px;
    --ui-btn-px-md: 18px;
    --ui-btn-px-lg: 22px;
    --fs-xs: 12px;
    --fs-sm: 14px;
    --fs-md: 16px;
    --fs-lg: 20px;
    --fs-xl: 28px;
    --lh-tight: 1.25;
    --lh-normal: 1.5;
    --lh-relaxed: 1.65;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    /* stable резервирует полосу под скроллбар с фоном html (#fff) — видна справа на всей странице */
    scrollbar-gutter: auto;
    background: #ffffff;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse 125% 75% at 50% -30%, rgba(230, 240, 255, 0.055), transparent 55%),
        radial-gradient(ellipse 58% 50% at 100% 0%, rgba(var(--accent-rgb), 0.16), transparent 46%),
        radial-gradient(ellipse 48% 40% at 0% 100%, rgba(70, 100, 140, 0.07), transparent 44%);
    background-attachment: fixed;
    color: var(--text-white);
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Typography hierarchy --- */
h1, h2, h3, h4,
.category-page-title,
.product-page-title,
.home-section-head h2,
.home-flow-head h2,
.trust-screen-head h2,
.b2b-content h2,
.reviews-empty-title {
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: var(--lh-tight);
}

.category-page-title,
.product-page-title {
    font-size: clamp(30px, 3.2vw, 38px);
}

/* Secondary/supporting text */
.help-widget span,
.tb-desc,
.gal-icon-label,
.results-count,
.review-date,
.order-date,
.cat-count,
.search-sidebar-desc,
.search-groups-empty,
.search-count,
.empty-search-text {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: var(--lh-normal);
}

.help-widget span {
    font-size: var(--fs-xs);
    font-weight: 500;
}

.section-title,
.specs-card h2,
.reviews-empty-title,
.home-section-head h2,
.home-flow-head h2,
.trust-screen-head h2 {
    font-size: var(--fs-lg);
}

.standard-box p,
.review-text,
.search-intro {
    font-size: var(--fs-sm);
    line-height: var(--lh-relaxed);
    color: var(--text-secondary);
}

/* Site-wide text color normalization */
.breadcrumb,
.results-count,
.review-date,
.order-date,
.cat-count,
.search-count,
.search-sidebar-desc,
.search-groups-empty,
.pc-code,
.tb-desc,
.gal-icon-label,
.help-widget span,
.cart-allegro-count,
.cart-allegro-summary__hint,
.checkout-summary__meta,
.profile-addresses__section-title,
.profile-empty__text,
.auth-card__hint,
.search-container input::placeholder {
    color: var(--text-muted);
}

.contact-info,
.checkout-box .form-group label,
.profile-layout .form-group label,
.review-field-label,
.review-form-field label,
.checkout-addr-modal-card__brand-label,
.checkout-addr-modal-card__address p,
.checkout-addr-modal-card__cancel,
.sd-prod-desc,
.b2b-content p,
.home-unique .b2b-content p,
.auth-card__lead,
.cart-allegro-item__meta,
.cart-allegro-summary__meta,
.checkout-modal-field label,
.delivery-method-option__desc {
    color: var(--text-secondary);
}

.checkout-addr-modal-card__name,
.checkout-addr-modal-card__phone,
.checkout-summary__title,
.checkout-summary__list,
.item-price,
.subgroup-card .sg-name,
.phone-num {
    color: var(--text-primary);
}

.checkout-addr-modal-card__phone {
    font-weight: 600;
}

.info-box.profile-orders .orders-topbar__title,
.info-box.profile-orders .order-id,
.info-box.profile-orders .order-head-total,
.info-box.profile-orders .order-detail-tile__value,
.info-box.profile-orders .order-item__name,
.info-box.profile-orders .order-detail-help__text strong,
.info-box.profile-orders .order-summary__total {
    color: var(--text-primary);
}

.info-box.profile-orders .order-head-sub,
.info-box.profile-orders .order-recipient,
.info-box.profile-orders .order-recipient__name,
.info-box.profile-orders .order-delivery__text,
.info-box.profile-orders .order-detail-hero__note,
.info-box.profile-orders .order-detail-tile__sub,
.info-box.profile-orders .order-card--detail .order-head-sub,
.info-box.profile-orders .order-card--detail .order-detail-help__text span,
.info-box.profile-orders .order-card--detail .order-detail-progress__step.is-done {
    color: var(--text-secondary);
}

.info-box.profile-orders .orders-topbar__note,
.info-box.profile-orders .order-detail-hero__eyebrow,
.info-box.profile-orders .order-detail-tile__label,
.info-box.profile-orders .order-detail-progress__step,
.info-box.profile-orders .order-recipient__phone,
.info-box.profile-orders .order-recipient i {
    color: var(--text-muted);
}

.breadcrumb {
    color: var(--text-muted);
}

/* Typography tokenization (common sizes) */
.tb-desc,
.gal-icon-label,
.search-sidebar-desc,
.search-groups-empty,
.search-count,
.review-date,
.order-date,
.cat-count,
.pc-code,
.badge-item,
.variants-block h4,
.mini-title,
.status-row,
.subgroup-card .sg-count {
    font-size: var(--fs-xs);
}

.top-nav a,
.btn-partner,
.results-count,
.breadcrumb,
.contact-info,
.checkout-box .form-group label,
.profile-layout .form-group label,
.review-field-label,
.review-form-field label,
.empty-search-text,
.sd-prod-price,
.pc-stock,
.pc-status {
    font-size: var(--fs-sm);
}

.phone-num,
.item-total,
.total-row span,
.subgroup-card .sg-name,
.product-page .info-card h3,
.list-item,
.review-textarea,
.btn-save,
.btn-search-inline {
    font-size: var(--fs-md);
}

.section-title,
.info-box h2,
.specs-card h2,
.reviews-empty-title,
.home-section-head h2,
.home-flow-head h2,
.trust-screen-head h2,
.pc-price {
    font-size: var(--fs-lg);
}

.product-page-title,
.logo,
.total-row strong {
    font-size: var(--fs-xl);
}

.container { max-width: 1440px; margin: 0 auto; padding: 0 12px; width: 100%; }

/* ——— Header (legacy pages without .gal-header) ——— */
header:not(.gal-header):not(.support-chat__head) {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(200, 220, 245, 0.06);
}

.top-row {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    color: var(--text-white);
}
.logo span {
    color: var(--accent-frost);
    font-weight: 800;
}

.top-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.top-nav a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}
.top-nav a:hover { color: var(--text-white); }

.top-right-group { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.btn-partner {
    background: rgba(var(--accent-rgb), 0.11);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}
.btn-partner:hover {
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta-hover);
    color: var(--text-on-primary);
    border-color: var(--accent-deep);
}

.phone-num { font-size: 17px; font-weight: 700; color: var(--text-white); white-space: nowrap; }

.main-header {
    min-height: 80px;
    display: grid;
    grid-template-columns: 280px 1fr auto;
    gap: 30px;
    align-items: center;
    padding: 12px 0;
}

.btn-categories {
    width: 100%;
    height: var(--ui-btn-h-md);
    min-height: var(--ui-btn-h-md);
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    border: 1px solid var(--ui-primary-border);
    border-radius: var(--ui-control-radius-lg);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: var(--ui-primary-shadow);
}
.btn-categories:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    border-color: #0f4f9d;
    box-shadow: var(--ui-primary-shadow-hover);
    filter: none;
}

/* Строка поиска: одна общая рамка, поле и кнопка без «двойной» обводки */
.search-container {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: var(--bg-header);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.search-container:focus-within {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}
.search-container input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 54px;
    border: none;
    border-radius: 0;
    padding: 0 16px;
    background: transparent;
    color: var(--text-white);
    font-size: 15px;
    outline: none;
}
.search-container input:focus {
    box-shadow: none;
}
.btn-search-go {
    position: relative;
    flex: 0 0 48px;
    align-self: stretch;
    width: 48px;
    height: auto;
    right: auto;
    top: auto;
    transform: none;
    border-radius: 0;
    border: none;
    border-left: 1px solid rgba(148, 163, 184, 0.45);
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-search-go:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    filter: none;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-header);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    margin-top: 5px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.search-dropdown.active { display: flex; }
.sd-section-title {
    font-size: 11px;
    color: var(--text-gray);
    text-transform: uppercase;
    padding: 15px 20px 5px;
    font-weight: bold;
    letter-spacing: 1px;
}
.sd-cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 14px;
    transition: 0.2s;
}
.sd-cat-link:hover { background: rgba(255,255,255,0.05); color: var(--sb-chevron); }
.sd-cat-link i { color: var(--accent-blue); font-size: 12px; }
.sd-prod-item {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sd-prod-item:last-child { border-bottom: none; }
.sd-prod-item:hover { background: rgba(255,255,255,0.05); }
.sd-prod-img {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    flex-shrink: 0;
}
.sd-prod-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sd-prod-info { display: flex; flex-direction: column; justify-content: center; }
.sd-prod-title { color: white; font-size: 13px; font-weight: 500; margin-bottom: 5px; line-height: 1.3; }
.sd-prod-price { color: var(--sb-chevron); font-weight: bold; font-size: 14px; }
.sd-show-all {
    display: block;
    text-align: center;
    padding: 15px;
    color: var(--sb-chevron);
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    background: var(--bg-dark);
    border-top: 1px solid var(--border-strong);
    transition: 0.2s;
}
.sd-show-all:hover { background: rgba(var(--accent-rgb), 0.12); }
.sd-status {
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-gray);
}
.sd-status--loading {
    color: var(--sb-chevron);
}
.sd-status--empty {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sd-highlight {
    background: rgba(250, 204, 21, 0.35);
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}
.sd-prod-sku {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.sd-prod-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sd-prod-stock {
    font-size: 11px;
    font-weight: 700;
    color: #f87171;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.search-relaxed-note {
    margin: 0 0 18px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
}
.empty-search-tips {
    margin: 14px auto 0;
    padding-left: 1.2rem;
    max-width: 420px;
    text-align: left;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.5;
}
.search-intro__ex {
    font-family: ui-monospace, monospace;
    font-size: 0.95em;
    color: var(--accent-blue);
}

.icon-group { display: flex; gap: 12px; }
.icon-item {
    width: 50px;
    height: 50px;
    background: var(--bg-header);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-gray);
    font-size: 18px;
    position: relative;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    box-sizing: border-box;
}
.icon-item:hover {
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
    color: #0b3f7a;
    box-shadow: none;
    transform: none;
}
.icon-item:hover .gal-icon-label {
    color: #0b3f7a;
}
.icon-item:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 0;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(var(--accent-rgb), 0.22) 0%,
        rgba(var(--accent-rgb), 0.08) 55%,
        rgba(255, 255, 255, 0) 72%
    );
    pointer-events: none;
}
.icon-item:hover i {
    position: relative;
    z-index: 1;
    transform: scale(1.08);
    text-shadow: 0 0 8px rgba(var(--accent-rgb), 0.28);
}
.icon-item:hover .badge { z-index: 2; }
.icon-item:focus-visible {
    outline: 2px solid var(--sb-chevron);
    outline-offset: 2px;
    border-color: var(--accent-blue);
    /* Keep icon color on light header — white would match the background */
    color: #0f3159;
}
.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    font-weight: bold;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.content-wrap { flex: 1; margin-bottom: 50px; }

/* ——— Карточка товара (сетки) ——— */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    align-content: start;
}
.product-card {
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    box-shadow:
        0 4px 18px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.38),
        0 0 28px rgba(var(--accent-rgb), 0.08),
        0 0 0 1px rgba(var(--accent-rgb), 0.15),
        inset 0 1px 0 rgba(230, 240, 255, 0.07);
    transform: translateY(-2px);
}
.pc-image-wrapper {
    position: relative;
    border-radius: 8px;
    padding: 5px;
    margin-bottom: 15px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-input);
}
.pc-img {
    width: 100%;
    height: 100%;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.pc-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.product-card:hover .pc-img { transform: scale(1.05); }
.pc-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--bg-header);
    border: 1px solid var(--border-strong);
    color: var(--text-gray);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}
.pc-fav-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.pc-fav-btn.active { color: #ef4444; border-color: #ef4444; }
.pc-code { font-size: 12px; color: var(--text-gray); margin-bottom: 10px; }
.pc-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    text-decoration: none;
    line-height: 1.4;
    flex: 1;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.pc-title:hover { color: var(--sb-chevron); text-decoration: underline; }
.pc-rating {
    display: flex;
    gap: 3px;
    color: #facc15;
    font-size: 11px;
    margin-bottom: 12px;
    align-items: center;
}
.pc-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}
.pc-price { font-size: 22px; font-weight: 900; color: var(--text-white); display: flex; align-items: baseline; }
.pc-price span { font-size: 16px; margin-left: 2px; color: var(--sb-chevron); }
.pc-controls { display: flex; gap: 10px; align-items: center; }
.pc-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    height: 36px;
    background: var(--bg-dark);
    overflow: hidden;
}
.pc-qty-btn {
    background: transparent;
    color: var(--text-gray);
    border: none;
    width: 28px;
    height: 100%;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: 0.2s;
}
.pc-qty-btn:hover { color: white; background: rgba(255,255,255,0.05); }
.pc-qty-input {
    width: 30px;
    background: transparent;
    border: none;
    color: white;
    text-align: center;
    font-weight: bold;
    outline: none;
    font-size: 14px;
    padding: 0;
}
.pc-cart-btn {
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.pc-cart-btn:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
}
.pc-cart-btn.added { background: #4ade80; color: var(--bg-dark); }
.pc-cart-btn:disabled,
.pc-cart-btn.pc-cart-btn--disabled {
    background: var(--border-strong) !important;
    cursor: not-allowed !important;
    color: var(--text-gray) !important;
}
.pc-status { font-size: 13px; font-weight: 500; }
.pc-status--in { color: #4ade80; }
.pc-status--out { color: #ef4444; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}
.page-btn {
    background-color: var(--bg-header);
    background-image: none;
    color: var(--text-gray);
    border: 1px solid var(--border);
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.page-btn:hover { border-color: var(--accent-blue); color: white; }
.page-btn.active {
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    border-color: transparent;
}

.catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    padding: 14px 18px;
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.catalog-pagination--inline,
.catalog-pagination--bottom {
    justify-content: center;
    gap: 6px 8px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.catalog-pagination--inline {
    flex: 1 1 200px;
    min-width: 0;
    margin: 0;
}
.catalog-pagination--bottom {
    margin: 28px 0 0;
}
.catalog-pagination--inline .catalog-pagination__page,
.catalog-pagination--inline .catalog-pagination__arrow,
.catalog-pagination--bottom .catalog-pagination__page,
.catalog-pagination--bottom .catalog-pagination__arrow {
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 13px;
}
.catalog-pagination--inline .catalog-pagination__arrow,
.catalog-pagination--bottom .catalog-pagination__arrow {
    min-width: 34px;
    font-size: 11px;
}
.catalog-pagination--has-edges {
    flex-wrap: nowrap;
}
.catalog-pagination--has-edges.catalog-pagination--inline,
.catalog-pagination--has-edges.catalog-pagination--bottom {
    min-width: calc(2 * 34px + 2 * 20px + 6 * 34px + 7 * 6px);
}
.catalog-pagination__pages--bookends {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    min-width: calc(2 * 20px + 6 * 34px + 7 * 6px);
}
.catalog-pagination__pages--bookends > li {
    display: flex;
    justify-content: center;
    flex: 0 0 auto;
}
.catalog-pagination--inline .catalog-pagination__gap,
.catalog-pagination--bottom .catalog-pagination__gap {
    min-width: 20px;
    height: 34px;
    font-size: 13px;
}
.catalog-pagination__pages {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.catalog-pagination__pages--fixed {
    display: grid;
    grid-template-columns: repeat(4, 40px);
    gap: 6px;
    min-width: calc(4 * 40px + 3 * 6px);
}
.catalog-pagination--inline .catalog-pagination__pages--fixed,
.catalog-pagination--bottom .catalog-pagination__pages--fixed {
    grid-template-columns: repeat(4, 34px);
    min-width: calc(4 * 34px + 3 * 6px);
}
.catalog-pagination__page,
.catalog-pagination__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: #fff;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    box-sizing: border-box;
}
.catalog-pagination__arrow {
    min-width: 40px;
    padding: 0;
    font-size: 12px;
}
.catalog-pagination__page:hover:not(.is-active),
.catalog-pagination__arrow:hover:not(:disabled) {
    border-color: rgba(var(--accent-rgb), 0.45);
    color: var(--accent-blue);
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.1);
}
.catalog-pagination__page.is-active {
    background: var(--gradient-cta);
    border-color: transparent;
    color: #fff;
    cursor: default;
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.28);
    pointer-events: none;
}
.catalog-pagination__arrow:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    background: #f1f5f9;
    border-color: var(--border);
    color: #94a3b8;
}
.catalog-pagination__gap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 40px;
    padding: 0 2px;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 700;
    user-select: none;
    letter-spacing: 0.08em;
    pointer-events: none;
}
@media (max-width: 480px) {
    .catalog-pagination--inline .catalog-pagination__page,
    .catalog-pagination--inline .catalog-pagination__arrow,
    .catalog-pagination--bottom .catalog-pagination__page,
    .catalog-pagination--bottom .catalog-pagination__arrow {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

.catalog-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    background: var(--bg-header);
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    flex-wrap: wrap;
    gap: 10px 14px;
}
.catalog-controls .results-count {
    flex: 0 0 auto;
}
.catalog-controls .catalog-pagination--inline {
    margin-left: auto;
}
@media (max-width: 720px) {
    .catalog-controls {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "count"
            "pages";
    }
    .catalog-controls .results-count {
        grid-area: count;
    }
    .catalog-pagination--inline {
        grid-area: pages;
        flex: none;
        width: 100%;
        margin-left: 0;
        order: unset;
    }
}
.results-count { font-size: 14px; color: var(--text-gray); }

.breadcrumb,
.auth-breadcrumb,
.info-page__breadcrumb {
    display: none;
}

/* ——— Главная: секции ——— */
.main-layout {
    position: relative;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 20px;
    align-items: start;
}
.sidebar-wrapper { position: relative; height: var(--main-height); z-index: 200; }
.sidebar {
    background: var(--bg-header);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100%;
    min-height: var(--main-height);
    max-height: var(--main-height);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 300;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: max-height 0.4s ease-in-out, box-shadow 0.4s ease;
}
.sidebar.expanded { max-height: 3000px; box-shadow: 0 30px 60px rgba(0,0,0,0.8); }
.side-link {
    height: 54.5px;
    box-sizing: border-box;
    padding: 0 15px;
    display: flex;
    align-items: center;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    text-decoration: none;
    flex-shrink: 0;
}
.side-link:last-child { border-bottom: none; }
.side-link:hover { background: rgba(255, 255, 255, 0.05); color: white; }
.icon-box {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-strong);
    background: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: rgba(var(--accent-rgb), 0.65);
    flex-shrink: 0;
    font-size: 14px;
    transition: 0.3s;
}
.side-link:hover .icon-box {
    border-color: var(--sb-chevron);
    color: var(--sb-chevron);
    background: rgba(var(--accent-rgb), 0.1);
}
.side-link span { flex: 1; line-height: 1.2; }
.side-link .chevron { color: var(--sb-chevron); font-size: 11px; margin-left: 10px; }
#toggleBtn { border-top: 1px solid rgba(255,255,255,0.02); }

/* Десктоп: высота плитки = 1/8 высоты баннера (7 групп + «Показать ещё»). Без flex, логика раскрытия без изменений. */
@media (min-width: 993px) {
    .side-link {
        height: calc(var(--main-height) / 8);
    }
}

.hero {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    height: var(--main-height);
    background: #000;
    z-index: 10;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.slide-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
}
.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.2) 0%, transparent 50%);
}
.gallery-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    padding: 0;
    flex-shrink: 0;
    font-size: 0;
}
.dot.active { background: var(--sb-chevron); width: 24px; border-radius: 10px; }
.dot:focus-visible { outline: 2px solid var(--sb-chevron); outline-offset: 3px; }
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    appearance: none;
    -webkit-appearance: none;
}
.hero:hover .arrow { opacity: 1; }
.arrow:focus-visible { opacity: 1; outline: 2px solid var(--sb-chevron); outline-offset: 2px; }
.arrow:hover {
    background-color: rgba(255, 255, 255, 0.95);
    background-image: none;
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--accent-deep);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
    transform: translateY(-50%) scale(1.05);
}
.hero:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--sb-chevron); }
.arrow-prev { left: 20px; }
.arrow-next { right: 20px; }

.home-section { margin-top: 40px; }
.home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.home-section-head h2 {
    font-size: 22px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.link-all {
    color: var(--sb-chevron);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.link-all:hover { text-decoration: underline; }

.home-flow {
    margin-top: 28px;
    border: 1px solid rgba(120, 145, 180, 0.2);
    background: linear-gradient(145deg, rgba(18, 26, 38, 0.96) 0%, rgba(13, 19, 29, 0.98) 100%);
    border-radius: var(--radius);
    padding: 24px 24px 20px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.04);
}
.home-flow-head h2 {
    margin: 0;
    text-transform: uppercase;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.2;
}
.home-flow-head p {
    margin: 10px 0 0;
    color: var(--text-gray);
    max-width: 780px;
    line-height: 1.55;
}
.home-flow-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.flow-card {
    border: 1px solid rgba(120, 145, 180, 0.17);
    border-radius: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
}
.flow-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #e8f3ff;
    background: rgba(var(--accent-rgb), 0.25);
    border: 1px solid rgba(140, 180, 220, 0.4);
}
.flow-card h3 {
    margin: 10px 0 6px;
    font-size: 17px;
    line-height: 1.3;
}
.flow-card p {
    margin: 0;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.45;
}
.home-flow-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.btn-flow-primary,
.btn-flow-secondary {
    min-height: 40px;
    border-radius: 8px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    font-size: 12px;
    font-weight: 700;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.btn-flow-primary {
    color: var(--text-on-primary);
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    box-shadow: 0 2px 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(220, 235, 255, 0.15);
}
.btn-flow-secondary {
    color: var(--text-white);
    border: 1px solid rgba(130, 160, 200, 0.35);
    background: rgba(var(--accent-rgb), 0.12);
}
.btn-flow-secondary:hover {
    background-color: rgba(var(--accent-rgb), 0.18);
    background-image: none;
}

.home-intents {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.intent-card {
    border: 1px solid rgba(120, 145, 180, 0.2);
    border-radius: 10px;
    background: rgba(18, 24, 36, 0.92);
    padding: 14px;
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}
.intent-card i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--sb-chevron);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.intent-card h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    color: var(--text-white);
}
.intent-card p {
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--text-gray);
    line-height: 1.4;
}
.intent-card:hover {
    border-color: rgba(140, 180, 220, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.28);
}

.trust-screen {
    margin-top: 34px;
    background: linear-gradient(145deg, rgba(17, 24, 36, 0.95) 0%, rgba(20, 28, 42, 0.98) 100%);
    border: 1px solid rgba(120, 145, 180, 0.2);
    border-radius: var(--radius);
    padding: 28px 30px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
.trust-screen-head h2 {
    margin: 0;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.trust-screen-head p {
    margin: 10px 0 0;
    max-width: 760px;
    color: var(--text-gray);
    line-height: 1.55;
}
.trust-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.trust-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(120, 145, 180, 0.14);
    border-radius: 10px;
    padding: 14px;
}
.trust-point i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.2);
    color: var(--sb-chevron);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.trust-point h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.3;
}
.trust-point p {
    margin: 5px 0 0;
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.45;
}
.trust-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.btn-trust-primary,
.btn-trust-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    transition: 0.2s;
}
.btn-trust-primary {
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    border: 1px solid transparent;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(210, 225, 245, 0.12);
}
.btn-trust-secondary {
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--text-white);
    border: 1px solid rgba(120, 145, 180, 0.28);
}
.btn-trust-secondary:hover {
    background-color: rgba(var(--accent-rgb), 0.2);
    background-image: none;
    border-color: rgba(140, 170, 210, 0.42);
}

.b2b-banner {
    margin-top: 28px;
    background: linear-gradient(135deg, var(--bg-header) 0%, rgba(var(--accent-rgb), 0.09) 40%, rgba(60, 90, 130, 0.06) 100%);
    border: 1px solid rgba(120, 145, 180, 0.14);
    border-radius: var(--radius);
    padding: 19px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.b2b-content { position: relative; z-index: 2; max-width: 700px; }
.b2b-content h2 {
    font-size: 24px;
    font-weight: 900;
    color: white;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}
.b2b-content h2 span { color: var(--accent-frost); }
.b2b-content p { color: var(--text-gray); font-size: 14px; line-height: 1.5; margin-bottom: 15px; }
.b2b-features { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.b2b-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #aeb8ca;
    font-size: 13px;
    font-weight: 500;
    background: rgba(var(--accent-rgb), 0.14);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(120, 145, 180, 0.14);
}
.btn-b2b {
    display: inline-block;
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    padding: 10px 25px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, color 0.2s ease;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(210, 225, 245, 0.12);
}
.btn-b2b:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 24px rgba(var(--accent-rgb), 0.2);
    filter: none;
}
.b2b-icon {
    font-size: 140px;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    transition: 0.5s ease-out;
}
.b2b-banner:hover .b2b-icon {
    color: rgba(255, 255, 255, 0.045);
    transform: translateY(-50%) scale(1.1) rotate(-5deg);
}

/* ——— Главная: уникальный стиль поверх базовой верстки ——— */
.home-unique {
    --home-panel: #121a27;
    --home-panel-soft: #172235;
    --home-border: rgba(145, 180, 225, 0.22);
    --home-glow: rgba(120, 175, 236, 0.18);
}
.home-unique .main-layout {
    gap: 20px;
    margin-top: 16px;
    grid-template-columns: 1fr;
}
.home-unique .sidebar {
    background: linear-gradient(180deg, var(--home-panel) 0%, #101824 100%);
    border: 1px solid var(--home-border);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.04);
}
.home-unique .side-link {
    border-bottom: 1px solid rgba(255,255,255,0.035);
    color: #d6e1f1;
    font-weight: 600;
}
.home-unique .side-link:hover {
    background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0.04) 100%);
    color: #ffffff;
}
.home-unique .icon-box {
    border-color: rgba(142, 174, 213, 0.34);
    border-radius: 10px;
    background: rgba(var(--accent-rgb), 0.08);
    color: #a6c8ef;
}
.home-unique .hero {
    border-radius: 14px;
    border: 1px solid var(--home-border);
    box-shadow: 0 24px 44px rgba(0,0,0,0.42), 0 0 0 1px rgba(255,255,255,0.02) inset;
}
.home-unique .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        radial-gradient(circle at 14% 12%, rgba(145, 205, 255, 0.2) 0%, rgba(145,205,255,0) 38%),
        linear-gradient(110deg, rgba(8, 14, 24, 0.55) 0%, rgba(8, 14, 24, 0.16) 46%, rgba(8, 14, 24, 0.58) 100%);
}
.home-unique .slide::after { display: none; }
.home-unique .gallery-nav {
    left: 22px;
    bottom: 18px;
    transform: none;
    z-index: 12;
}
.home-unique .dot {
    width: 9px;
    height: 9px;
    background: rgba(232, 240, 252, 0.42);
}
.home-unique .dot.active {
    width: 26px;
    border-radius: 99px;
    background: #9ccfff;
    box-shadow: 0 0 20px rgba(156, 207, 255, 0.38);
}
.home-unique .arrow-prev { left: 22px; right: auto; }
.home-unique .arrow-next { right: 22px; }

.home-unique .b2b-banner {
    margin-top: 20px;
    border-radius: 14px;
    border: 1px solid var(--home-border);
    background:
        radial-gradient(circle at 10% 10%, rgba(var(--accent-rgb), 0.2) 0%, rgba(var(--accent-rgb), 0) 38%),
        linear-gradient(130deg, #121a28 0%, #141f30 54%, #0f1724 100%);
    box-shadow: 0 20px 36px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.05);
}
.home-unique .b2b-content h2 {
    font-size: clamp(26px, 2.2vw, 34px);
    letter-spacing: 0.3px;
    text-transform: none;
}
.home-unique .b2b-content p {
    font-size: 15px;
    color: #b9c6da;
    max-width: 780px;
}
.home-unique .b2b-feature {
    border-radius: 999px;
    background: rgba(var(--accent-rgb), 0.18);
    border-color: rgba(145, 180, 220, 0.26);
    color: #d3deed;
}
.home-unique .btn-b2b {
    border-radius: 8px;
    font-size: 13px;
    letter-spacing: 0.6px;
}
.home-unique .b2b-icon {
    font-size: 150px;
    color: rgba(255,255,255,0.035);
    right: 28px;
}

@media (max-width: 992px) {
    .home-unique .main-layout { gap: 14px; }
    .home-unique .gallery-nav {
        left: 14px;
        bottom: 14px;
    }
    .home-unique .arrow-prev { left: 14px; right: auto; }
    .home-unique .arrow-next { right: 14px; }
    .home-unique .b2b-banner {
        margin-top: 16px;
        padding: 16px 16px;
    }
}

.trust-badges {
    margin-top: 20px;
    background: var(--bg-header);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 20px 0;
    overflow: hidden;
}
.tb-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 25px;
    border-right: 1px solid rgba(255,255,255,0.03);
}
.tb-item:last-child { border-right: none; }
.tb-icon {
    width: 44px;
    height: 44px;
    background: rgba(var(--accent-rgb), 0.18);
    color: var(--sb-chevron);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.tb-text { display: flex; flex-direction: column; }
.tb-title {
    color: white;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tb-desc { color: var(--text-gray); font-size: 11px; margin-top: 2px; line-height: 1.3; }

/* ——— Footer (только подвал сайта, не блоки внутри страниц) ——— */
.site-footer {
    background: linear-gradient(180deg, #dcecff 0%, #cfe4fb 100%);
    padding: 40px 0 0;
    border-top: 1px solid #b7d2ef;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.5fr;
    gap: 28px 32px;
    padding-bottom: 32px;
}
.footer-logo {
    font-size: 30px;
    font-weight: 900;
    color: #0a0a0a;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
}
.footer-logo span {
    color: var(--mk-blue, #1f64b7);
    font-weight: 800;
}
.footer-tagline {
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.45;
    max-width: 280px;
}
.footer-col h4,
.footer-col__summary-text {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.03em;
}
.footer-col--accordion > summary.footer-col__summary {
    display: block;
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    pointer-events: none;
    cursor: default;
}
.footer-col--accordion > summary.footer-col__summary .footer-col__summary-text {
    margin-bottom: 0;
}
.footer-col__summary::-webkit-details-marker {
    display: none;
}
.footer-col__chevron {
    display: none;
}
.footer-col--accordion:not([open]) > ul,
.footer-col--accordion:not([open]) > .contact-info {
    display: block !important;
}
.footer-mobile-bar {
    display: none;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li:last-child { margin-bottom: 0; }
.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}
.footer-col ul li a:hover { color: var(--text-white); }
.site-footer .contact-info { color: var(--text-gray); font-size: 13px; }
.site-footer .contact-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}
.site-footer .contact-line:last-child {
    margin-bottom: 0;
}
.site-footer .contact-line i {
    width: 18px;
    text-align: center;
    font-size: 14px;
    color: var(--text-white);
}
.site-footer .contact-line a {
    color: inherit;
    text-decoration: none;
}
.site-footer .contact-line a:hover {
    color: var(--accent-blue);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 12px 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-gray);
}
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.help-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(190, 210, 235, 0.16) inset;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    max-width: calc(100vw - 40px);
}
.help-widget:hover {
    transform: translateY(-5px);
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    color: var(--text-on-primary);
    filter: none;
}
.help-widget:focus-visible {
    outline: 2px solid var(--sb-chevron);
    outline-offset: 3px;
}
.help-widget span { font-size: 13px; font-weight: 500; line-height: 1.2; }
.help-widget-icon { font-size: 24px; flex-shrink: 0; }

/* ——— Категория / фильтры ——— */
.category-page-title { font-size: 32px; font-weight: 900; line-height: 1.3; margin-bottom: 30px; text-transform: uppercase; }
.category-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    transition: opacity 0.3s ease;
}
.filter-sidebar {
    background: transparent;
    border: none;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}
.filter-sections-wrap {
    overflow-y: auto;
    padding-right: 5px;
    transition: opacity 0.22s ease;
}
.filter-sections-wrap.is-busy { opacity: 0.88; }
.filter-sections-wrap.is-fade-out,
.catalog-results-panel.is-fade-out {
    opacity: 0.38;
    transition: opacity 0.22s ease;
}
.filter-sections-wrap.is-fade-in,
.catalog-results-panel.is-fade-in {
    opacity: 1;
    transition: opacity 0.28s ease;
}
.catalog-results-panel {
    transition: opacity 0.28s ease;
}
.filter-sections-wrap::-webkit-scrollbar { width: 5px; }
.filter-sections-wrap::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
.filter-sections-wrap::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
.filter-section {
    background: var(--bg-header);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 15px;
    overflow: hidden;
    transition: border-color 0.28s ease, box-shadow 0.28s ease;
}
.filter-section.open {
    border-color: rgba(var(--accent-rgb), 0.38);
    box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.1);
}
.filter-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    margin: 0;
    transition: color 0.2s ease, background 0.2s ease;
}
.filter-title:hover {
    color: var(--accent-deep);
    background: var(--accent-blue-soft);
}
.filter-section.open .filter-title {
    color: var(--accent-deep);
}
.filter-title:focus-visible {
    outline: 2px solid rgba(var(--accent-rgb), 0.55);
    outline-offset: -2px;
    background: var(--accent-blue-soft);
}
.filter-title i {
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 12px;
    color: var(--accent-blue);
}
.filter-section.open .filter-title i { transform: rotate(180deg); }
.filter-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
.filter-section.open .filter-content { grid-template-rows: 1fr; }
.filter-content__inner {
    overflow: hidden;
    min-height: 0;
    max-height: 250px;
    overflow-y: auto;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.28s ease 0.04s, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1) 0.04s, padding 0.32s ease;
}
.filter-section.open .filter-content__inner {
    opacity: 1;
    transform: translateY(0);
    padding: 0 20px 20px;
}
.filter-content__inner::-webkit-scrollbar { width: 5px; }
.filter-content__inner::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
.filter-content__inner::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
.filter-count { color: var(--text-gray); font-size: 11px; transition: color 0.2s ease; }
.category-content.is-loading {
    pointer-events: none;
}
.category-content.is-loading .catalog-results-panel {
    opacity: 0.55;
    transition: opacity 0.22s ease;
}
.filter-price-inputs { display: flex; gap: 8px; align-items: center; }
.filter-price-inputs__sep {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1;
}
.filter-price-range {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.filter-price-range__labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.filter-price-range__static {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 700;
}
.filter-price-range__slider {
    position: relative;
    height: 28px;
    margin: 2px 0 4px;
}
.filter-price-range__track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 6px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: #e4edf7;
    overflow: hidden;
}
.filter-price-range__fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1f64b7, #1854a0);
}
.filter-price-range__input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    padding: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}
.filter-price-range__input::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
    border: 0;
}
.filter-price-range__input::-moz-range-track {
    height: 6px;
    background: transparent;
    border: 0;
}
.filter-price-range__input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: -6px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #1f64b7;
    box-shadow: 0 2px 8px rgba(31, 100, 183, 0.35);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.filter-price-range__input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #1f64b7;
    box-shadow: 0 2px 8px rgba(31, 100, 183, 0.35);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.filter-price-range__input:active::-webkit-slider-thumb,
.filter-price-range__input:active::-moz-range-thumb {
    transform: scale(1.08);
    box-shadow: 0 0 0 4px rgba(31, 100, 183, 0.16);
}
.filter-price-range__input--min { z-index: 2; }
.filter-price-range__input--max { z-index: 3; }
.filter-price-inputs input {
    width: 100%;
    min-width: 0;
    padding: 12px 5px;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
    background: var(--bg-input);
    color: var(--text-primary);
    outline: none;
    font-size: 14px;
    text-align: center;
}
.filter-price-inputs input[type="number"]::-webkit-inner-spin-button,
.filter-price-inputs input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.filter-price-inputs input[type="number"] { -moz-appearance: textfield; }
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: color 0.22s ease, transform 0.22s ease;
    line-height: 1.3;
}
.checkbox-label:has(input:checked) { color: var(--text-white); }
.checkbox-label:has(input:checked) .filter-count { color: rgba(var(--accent-rgb), 0.85); }
.checkbox-label:last-child { margin-bottom: 0; }
.checkbox-label:hover { color: var(--text-white); }
.checkbox-label--disabled { opacity: 0.45; cursor: default; }
.checkbox-label--disabled:hover { color: var(--text-gray); }
.checkbox-label--disabled input { cursor: not-allowed; }
.checkbox-label input {
    accent-color: var(--accent-blue);
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.checkbox-label input:checked { transform: scale(1.12); }
.btn-filter-apply {
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    font-size: 13px;
    text-transform: uppercase;
}
.btn-filter-apply:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.32);
    filter: none;
}

.subgroups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.subgroup-card {
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: 0.25s;
    display: block;
}
.subgroup-card:hover { border-color: var(--accent-blue); transform: translateY(-2px); }
.subgroup-card .sg-img {
    height: 160px;
    background-color: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
}
.subgroup-card .sg-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}
.subgroup-card .sg-body { padding: 16px 18px; }
.subgroup-card .sg-name { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.subgroup-card .sg-count { font-size: 13px; color: var(--text-gray); }

.page-title { font-size: 32px; font-weight: 900; line-height: 1.3; margin-bottom: 30px; text-transform: uppercase; }

/* ——— Корзина ——— */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 20px; }
.cart-item {
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: center;
    position: relative;
}
.item-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: 5px;
}
.item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.item-info { flex: 1; }
.item-title {
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: 0.2s;
}
.item-title:hover { color: var(--accent-blue); }
.item-price { color: var(--sb-chevron); font-weight: bold; font-size: 18px; }
.checkout-box {
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    position: sticky;
    top: 20px;
}
.checkout-box h3 { margin-bottom: 25px; font-size: 18px; text-transform: uppercase; color: white; }
.checkout-box .form-group { margin-bottom: 20px; }
.checkout-box .form-group label { display: block; margin-bottom: 8px; color: var(--text-gray); font-size: 14px; }
.checkout-box .form-group input {
    width: 100%;
    padding: 14px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text-white);
    outline: none;
    font-size: 15px;
    transition: 0.2s;
}
.checkout-box .form-group select {
    width: 100%;
    padding: 14px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text-white);
    outline: none;
    font-size: 15px;
    transition: 0.2s;
}
.checkout-box .form-group input:focus { border-color: var(--accent-blue); }
.checkout-box .form-group select:focus { border-color: var(--accent-blue); }
.cart-pickup-info {
    margin-bottom: 20px;
    padding: 14px 15px;
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
}
.cart-pickup-info__label {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cart-pickup-info__addr {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-white);
}
.cart-pickup-info__map {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--accent-blue);
    text-decoration: none;
}
.cart-pickup-info__map:hover {
    text-decoration: underline;
}
.total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 30px;
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.total-row span { color: var(--text-gray); font-size: 16px; }
.total-row strong { font-size: 32px; font-weight: 900; line-height: 1; color: var(--sb-chevron); }
.btn-checkout {
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    border: none;
    width: 100%;
    height: 54px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-transform: uppercase;
}
.btn-checkout:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.35);
    filter: none;
}
.btn-checkout:disabled,
.btn-cart-checkout.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}
.btn-cart-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border-radius: 8px;
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-cart-checkout:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    filter: none;
}
.cart-allegro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
    margin-bottom: 40px;
}
.cart-allegro-panel {
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
.cart-allegro-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
}
.cart-allegro-select-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.cart-allegro-select-all input { width: 18px; height: 18px; accent-color: var(--accent-blue); }
.cart-allegro-count { color: var(--text-gray); font-size: 13px; font-weight: 500; }
.cart-allegro-list { display: flex; flex-direction: column; }
.cart-allegro-item {
    display: flex;
    align-items: center;
    gap: 18px 22px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s, opacity 0.15s;
}
.cart-allegro-item:last-child { border-bottom: none; }
.cart-allegro-item--on { background: rgba(var(--accent-rgb), 0.04); }
.cart-allegro-item--off { opacity: 0.78; }
.cart-allegro-item--off .cart-allegro-item__total { color: var(--text-gray); }
.cart-allegro-item__check {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}
.cart-allegro-item__check input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-blue);
    cursor: pointer;
}
.cart-allegro-item__img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 132px;
    flex-shrink: 0;
    border-radius: 4px;
    background: #fff;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
}
.cart-allegro-item__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cart-allegro-item__title {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text-white);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 12px;
}
.cart-allegro-item__title:hover { color: var(--accent-blue); }
.cart-allegro-item__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}
.cart-allegro-item__top {
    flex: 1 1 200px;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.cart-allegro-item__top .cart-allegro-item__title {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0;
}
.cart-allegro-item__unit {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
@media (min-width: 769px) {
    .cart-allegro-item__unit {
        display: none;
    }
}
.cart-allegro-item__bottom {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}
@media (min-width: 769px) {
    .cart-allegro-item__main {
        flex-wrap: nowrap;
        align-items: center;
    }
    .cart-allegro-item__top {
        flex: 1 1 auto;
    }
    .cart-allegro-item__bottom {
        flex: 0 0 auto;
    }
}
.cart-allegro-qty {
    flex: 0 0 auto;
    height: 40px;
    border-radius: 2px;
    border: 1px solid var(--border-strong);
    background: var(--bg-dark);
}
.cart-allegro-qty .pc-qty-btn {
    width: 36px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
}
.cart-allegro-qty .pc-qty-input {
    width: 38px;
    font-size: 15px;
    font-weight: 600;
}
.cart-allegro-item__total {
    flex: 0 0 auto;
    min-width: 88px;
    font-size: 20px;
    font-weight: 800;
    color: var(--sb-chevron);
    white-space: nowrap;
    text-align: right;
    letter-spacing: -0.02em;
}
.cart-allegro-item__remove {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: #94a3b8;
    font-size: 17px;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
.cart-allegro-item__remove:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}
.cart-allegro-summary__card {
    position: sticky;
    top: 20px;
    padding: 24px;
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}
.cart-allegro-summary__title { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: var(--text-white); }
.cart-allegro-summary__row {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cart-allegro-summary__left {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.cart-allegro-summary__price-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
}
.cart-allegro-summary__meta { margin: 0 0 10px; color: var(--text-gray); font-size: 13px; }
.cart-allegro-summary__price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.cart-allegro-summary__row .btn-cart-checkout {
    width: 100%;
    margin-top: 16px;
}
.cart-allegro-summary__price strong { font-size: 30px; color: var(--sb-chevron); letter-spacing: -0.02em; }
.btn-cart-checkout {
    gap: 10px;
}
.btn-cart-checkout i { font-size: 13px; opacity: 0.9; }
.cart-allegro-summary__hint {
    margin: 12px 0 0;
    color: var(--text-gray);
    font-size: 12px;
    line-height: 1.45;
}
.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
    margin-bottom: 40px;
}
.checkout-order .checkout-summary__list {
    margin-bottom: 12px;
}
.checkout-order .checkout-summary__back {
    margin-top: 0;
}
.checkout-totals {
    position: sticky;
    top: 20px;
}
.checkout-totals-card {
    padding: 22px 20px 20px;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(8, 12, 20, 0.12);
}
.checkout-totals-card__title {
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dbe4ef;
    font-size: 20px;
    font-weight: 800;
    color: #1a2433;
}
.checkout-totals-card__rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.checkout-totals-card__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.checkout-totals-card__label {
    font-size: 14px;
    color: var(--text-secondary);
}
.checkout-totals-card__value {
    font-size: 14px;
    font-weight: 600;
    color: #1a2433;
    text-align: right;
}
.checkout-totals-card__value--delivery {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}
.checkout-totals-card__old {
    color: #94a3b8;
    font-weight: 500;
}
.checkout-totals-card__grand {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #dbe4ef;
    margin-bottom: 10px;
}
.checkout-totals-card__grand .checkout-totals-card__label {
    font-size: 15px;
    font-weight: 700;
    color: #1a2433;
}
.checkout-totals-card__grand-value {
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
    color: #1f3a5f;
}
.checkout-totals-card__hint {
    margin: 0 0 16px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
}
.checkout-totals-card__submit {
    width: 100%;
}
.checkout-section {
    margin-bottom: 22px;
    padding: 24px;
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.checkout-section__title {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.checkout-form .form-group { margin-bottom: 18px; }
.checkout-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    align-items: start;
    margin-bottom: 18px;
}
.checkout-field-row--contact-names {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.checkout-field-row--contact-extra {
    grid-template-columns: 1fr;
}
.checkout-field-row--contact-extra:has(> [data-checkout-middle-group]:not([hidden])) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.checkout-field-row--shipping {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}
.checkout-field-row--shipping:has(> [data-courier-street-group]:not([hidden])) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.checkout-field-row > .form-group {
    margin-bottom: 0;
}
.checkout-field-row > .form-group[hidden] {
    display: none;
}
.checkout-field-row--shipping:has(> [data-np-warehouse-group][hidden]):not(:has(> [data-courier-street-group]:not([hidden]))) {
    grid-template-columns: 1fr;
}
.checkout-field-row--courier[hidden] {
    display: none;
}
[data-shipping-address-fields][data-shipping-mode="courier"] [data-np-warehouse-group] {
    display: none !important;
}
[data-shipping-address-fields]:not([data-shipping-mode="courier"]) [data-courier-street-group],
[data-shipping-address-fields]:not([data-shipping-mode="courier"]) [data-courier-house-row] {
    display: none !important;
}
.profile-address-form-grid .checkout-field-row {
    grid-column: 1 / -1;
}
@media (max-width: 640px) {
    .checkout-field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .checkout-field-row > .form-group {
        margin-bottom: 18px;
    }
    .checkout-field-row > .form-group:last-child {
        margin-bottom: 0;
    }
}
.checkout-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 14px;
}
.checkout-form .form-group input,
.checkout-form .form-group select {
    width: 100%;
    padding: 14px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: var(--text-white);
    outline: none;
    font-size: 15px;
}
.checkout-form__submit,
.checkout-summary__submit,
.checkout-totals-card__submit {
    display: block;
    width: 100%;
    margin-top: 4px;
}
.checkout-summary__submit {
    margin-bottom: 14px;
}

.checkout-recipient__title {
    margin: 0 0 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-strong);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.checkout-recipient-panel {
    display: none;
    padding-top: 20px;
}
.checkout-recipient-panel--empty {
    padding-top: 16px;
}
.checkout-recipient-panel--empty .checkout-recipient-card {
    display: none;
}
.checkout-recipient-panel.is-active {
    display: block;
}
.checkout-recipient-panel__lead {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--text-gray);
}
.checkout-recipient-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 20px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.checkout-recipient-panel__head .checkout-recipient-panel__lead {
    flex: 1 1 220px;
    margin-bottom: 0;
}
.checkout-recipient-card {
    border: 1px solid #d4dfed;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
}
.checkout-recipient-card__inner {
    padding: 18px 18px 16px;
}
.checkout-recipient-card__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.checkout-recipient-card__brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #dbe6f3;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1f64b7;
}
.checkout-recipient-card__brand-icon--np {
    background: linear-gradient(180deg, #ffffff 0%, #fff7f2 100%);
    border-color: #ffd9c2;
}
.checkout-recipient-card__brand-icon--ukr {
    background: linear-gradient(180deg, #ffffff 0%, #fffbea 100%);
    border-color: #f0e3a0;
}
.checkout-recipient-card__brand-icon--pickup {
    background: linear-gradient(180deg, #ffffff 0%, #eefbf3 100%);
    border-color: #c6e9d3;
}
.checkout-recipient-card__brand-icon img {
    width: 18px;
    height: 18px;
    display: block;
}
.checkout-recipient-card__brand-icon i {
    font-size: 14px;
}
.checkout-recipient-card__brand-label {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.35;
}
.checkout-recipient-allegro__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-top: 18px;
}
.checkout-recipient-allegro__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 2px solid var(--accent-blue);
    border-radius: 4px;
    background: #ffffff;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.checkout-recipient-allegro__edit:hover {
    background: var(--accent-blue-soft);
}
.checkout-recipient-card__name {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: #1a2433;
    line-height: 1.3;
}
.checkout-recipient-card__address {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.checkout-recipient-card__line {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
}
.checkout-recipient-card__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    padding-top: 14px;
    border-top: 1px solid #edf2f8;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
.checkout-recipient-card__phone i {
    color: var(--text-muted);
    font-size: 12px;
}
.checkout-recipient-card__phone:has([data-summary-phone]:empty) {
    display: none;
}
.checkout-recipient-allegro__edit--compact {
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
    border: 2px solid var(--accent-blue);
    border-radius: 4px;
    background: #ffffff;
    color: var(--accent-blue);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}
.checkout-recipient-allegro__edit--compact:hover {
    background: var(--accent-blue-soft);
}
.checkout-recipient-panel__head--edit {
    align-items: center;
    margin-bottom: 18px;
}

body.checkout-addr-modal-open {
    overflow: hidden;
}
html.checkout-addr-modal-scroll-lock,
body.checkout-addr-modal-scroll-lock {
    overflow: hidden;
    overscroll-behavior: none;
}
.checkout-addr-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.checkout-addr-modal[hidden] {
    display: none !important;
}
.checkout-addr-modal.is-open {
    display: flex !important;
}
.checkout-addr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}
.checkout-addr-modal__dialog {
    position: relative;
    width: min(100%, 640px);
    max-height: min(88vh, 760px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #d8e3f0;
    border-radius: 16px;
    box-shadow: 0 28px 64px rgba(15, 35, 70, 0.22);
    overflow: hidden;
}
.checkout-addr-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 20px 24px 18px;
    border-bottom: 1px solid #e8eef5;
}
.checkout-addr-modal__head .checkout-addr-modal__title {
    flex: 1;
    min-width: 0;
}
.checkout-addr-modal__title {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #1a2a44;
    letter-spacing: -0.01em;
}
.checkout-addr-modal__close {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: #f1f5fa;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.checkout-addr-modal__close:hover {
    background: #e3ecf7;
    color: #1a2a44;
}
.checkout-addr-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f8fafd;
}
.checkout-addr-modal__section + .checkout-addr-modal__section {
    margin-top: 20px;
}
.checkout-addr-modal__section-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.checkout-addr-modal__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px 8px;
}
.checkout-addr-modal__empty[hidden],
[data-checkout-modal-list-wrap][hidden] {
    display: none !important;
}
.checkout-addr-modal__empty-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: linear-gradient(180deg, #eef4fc 0%, #e3edf9 100%);
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.checkout-addr-modal__empty-title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1a2a44;
}
.checkout-addr-modal__empty-text {
    margin: 0;
    max-width: 320px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}
.checkout-addr-modal-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 14px;
    margin-bottom: 10px;
    padding: 16px 16px 12px;
    border: 1px solid #d4dfed;
    border-radius: 12px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.checkout-addr-modal-card:last-child {
    margin-bottom: 0;
}
.checkout-addr-modal-card:hover {
    border-color: #a8c0de;
    box-shadow: 0 6px 18px rgba(31, 100, 183, 0.1);
}
.checkout-addr-modal-card.is-selected {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.14);
}
.checkout-addr-modal-card__radio {
    grid-row: 1 / -1;
    align-self: start;
    width: 18px;
    height: 18px;
    margin-top: 8px;
    border: 2px solid #c5d4e6;
    border-radius: 50%;
    background: #fff;
    position: relative;
    flex-shrink: 0;
}
.checkout-addr-modal-card.is-selected .checkout-addr-modal-card__radio {
    border-color: var(--accent-blue);
}
.checkout-addr-modal-card.is-selected .checkout-addr-modal-card__radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--accent-blue);
}
.checkout-addr-modal-card__content {
    grid-column: 2;
    min-width: 0;
}
.checkout-addr-modal-card__head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}
.checkout-addr-modal-card__head .checkout-addr-modal-card__brand {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}
.checkout-addr-modal-card__menu {
    position: relative;
    flex-shrink: 0;
}
.checkout-addr-modal-card__menu-toggle {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #dbe6f3;
    background: #f7fafe;
    color: #2d4f73;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.checkout-addr-modal-card__menu-toggle:hover {
    background: #edf4fb;
    border-color: #c9dbef;
}
.checkout-addr-modal-card__menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 190px;
    border-radius: 10px;
    border: 1px solid #dbe6f3;
    background: #fff;
    box-shadow: 0 12px 30px rgba(31, 100, 183, 0.15);
    padding: 6px;
    z-index: 20;
}
.checkout-addr-modal-card__menu-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: #2d4f73;
    min-height: 34px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 8px;
    text-decoration: none;
    cursor: pointer;
}
.checkout-addr-modal-card__menu-item:hover {
    background: #edf4fb;
}
.checkout-addr-modal-card__menu-item--default {
    color: #0c5c32;
}
.checkout-addr-modal-card__menu-item--default:hover {
    background: #eefbf3;
}
.checkout-addr-modal-card__menu-item--danger {
    color: #b4232f;
}
.checkout-addr-modal-card__menu-item--danger:hover {
    background: #ffecec;
}
.checkout-addr-modal-card__menu-item--muted {
    color: #a8b4c4;
    cursor: default;
    pointer-events: none;
}
.checkout-addr-modal-card__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.checkout-addr-modal-card__brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #dbe6f3;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1f64b7;
}
.checkout-addr-modal-card__brand-icon--np {
    background: linear-gradient(180deg, #ffffff 0%, #fff7f2 100%);
    border-color: #ffd9c2;
}
.checkout-addr-modal-card__brand-icon--ukr {
    background: linear-gradient(180deg, #ffffff 0%, #fffbea 100%);
    border-color: #f0e3a0;
}
.checkout-addr-modal-card__brand-icon--pickup {
    background: linear-gradient(180deg, #ffffff 0%, #eefbf3 100%);
    border-color: #c6e9d3;
}
.checkout-addr-modal-card__brand-icon img {
    width: 18px;
    height: 18px;
    display: block;
}
.checkout-addr-modal-card__brand-icon i {
    font-size: 14px;
}
.checkout-addr-modal-card__brand-label {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-secondary);
}
.checkout-addr-modal-card__badge {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #0c5c32;
    background: rgba(16, 185, 129, 0.12);
}
.checkout-addr-modal-card__name {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #1a2a44;
    line-height: 1.3;
}
.checkout-addr-modal-card__address p {
    margin: 0 0 2px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-secondary);
}
.checkout-addr-modal-card__phone {
    margin: 8px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.checkout-addr-modal__add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px dashed #b8cae0;
    border-radius: 12px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-blue);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.checkout-addr-modal__add[hidden],
.checkout-addr-modal--empty .checkout-addr-modal__add {
    display: none !important;
}
.checkout-addr-modal__add:hover {
    border-color: var(--accent-blue);
    background: #f3f8ff;
}
.checkout-addr-modal__add i {
    font-size: 13px;
}
.checkout-addr-modal__foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e8eef5;
    background: #ffffff;
}
.checkout-addr-modal__cancel {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #cfd9e8;
    border-radius: 10px;
    background: #ffffff;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.checkout-addr-modal__cancel:hover {
    border-color: #b8cae0;
    background: #f6f9fc;
}
.checkout-addr-modal__confirm {
    min-height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 10px;
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.checkout-addr-modal__confirm:hover:not(:disabled) {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.28);
}
.checkout-addr-modal__confirm:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.checkout-addr-modal__confirm--solo {
    flex: 1;
    max-width: 100%;
}
.checkout-addr-modal--empty .checkout-addr-modal__foot {
    justify-content: stretch;
}
.checkout-addr-modal--empty .checkout-addr-modal__cancel {
    flex: 0 0 auto;
}
.checkout-addr-modal__back {
    width: 40px;
    height: 40px;
    margin-right: 4px;
    border: 0;
    border-radius: 10px;
    background: #f1f5fa;
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.checkout-addr-modal__back:hover {
    background: #e3ecf7;
    color: #1a2a44;
}
.checkout-addr-modal__head:has(.checkout-addr-modal__back:not([hidden])) .checkout-addr-modal__title {
    flex: 1;
}
.checkout-addr-modal__panel[hidden],
.checkout-addr-modal__foot[hidden] {
    display: none !important;
}
.checkout-addr-modal--form .checkout-addr-modal__dialog {
    width: min(100%, 700px);
}
.checkout-addr-modal--form .checkout-addr-modal__head {
    flex-shrink: 0;
}
.checkout-addr-modal--form .checkout-addr-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 18px 22px 22px;
}
.checkout-addr-modal--form .checkout-addr-modal__save-bar {
    flex: 0 0 auto;
    margin-top: auto;
    z-index: 20;
    isolation: isolate;
    box-shadow: 0 -8px 24px rgba(15, 35, 70, 0.08);
}
.checkout-addr-modal--form .checkout-addr-modal__save-bar .checkout-addr-modal__save-btn {
    min-height: 48px;
    font-size: 15px;
}
.checkout-addr-modal--form [data-checkout-modal-foot="list"] {
    display: none !important;
}
.checkout-addr-modal-form .form-group {
    margin-bottom: 14px;
}
.checkout-addr-modal-form .checkout-field-row {
    margin-bottom: 14px;
}
.checkout-addr-modal-form .checkout-field-row > .form-group {
    margin-bottom: 0;
}
.checkout-addr-modal-form__names {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.checkout-addr-modal-form .form-group label,
.checkout-addr-modal-form .checkout-field-row .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 600;
}
.checkout-addr-modal-form .form-group input,
.checkout-addr-modal-form .form-group select,
.checkout-addr-modal-form .checkout-field-row .form-group input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: var(--ui-control-radius-lg);
    color: var(--text-white);
    outline: none;
    font-size: 15px;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.checkout-addr-modal-form .form-group input:focus,
.checkout-addr-modal-form .form-group select:focus,
.checkout-addr-modal-form .checkout-field-row .form-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: var(--ui-focus-ring);
}
.checkout-field-hint,
.checkout-addr-modal-form .checkout-field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-gray);
}
.checkout-addr-modal-form .delivery-method-dropdown {
    width: 100%;
}
.checkout-addr-modal-form .delivery-method-dropdown.is-open .delivery-method-trigger {
    border-color: var(--accent-blue);
    box-shadow: var(--ui-focus-ring);
}
.checkout-addr-modal-form .delivery-method-trigger {
    min-height: 48px;
    border-color: var(--border-strong);
    color: var(--text-white);
}
.checkout-addr-modal-form .delivery-method-trigger__left {
    min-width: 0;
    text-align: left;
}
.checkout-addr-modal-form .delivery-method-trigger__left > span:last-child {
    line-height: 1.35;
}
.checkout-addr-modal-form .delivery-method-option__text {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
    text-align: left;
}
.checkout-addr-modal-form .np-suggest {
    z-index: 4100;
}
.checkout-addr-modal--form .checkout-addr-modal-form .np-suggest.np-suggest--floating {
    z-index: 13000;
}
@media (max-width: 768px) {
    .checkout-addr-modal--form .checkout-addr-modal-form .np-suggest-wrap {
        display: flex;
        flex-direction: column;
    }
    .checkout-addr-modal--form .checkout-addr-modal-form .np-suggest:not(.np-suggest--floating) {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100%;
        max-height: min(32vh, 200px);
        margin: 8px 0 0;
        box-shadow: none;
        z-index: auto !important;
    }
    .checkout-addr-modal--form.is-np-suggest-open .checkout-addr-modal__body {
        scroll-padding-top: 8px;
    }
    .checkout-addr-modal--form.is-np-suggest-open .np-suggest-wrap.is-suggest-open .np-suggest:not(.np-suggest--floating) {
        display: block !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .checkout-addr-modal--form .np-suggest--mobile-modal {
        border: 1px solid #dbe6f3;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 14px 36px rgba(15, 35, 70, 0.16);
    }
    .checkout-addr-modal-form .checkout-field-row--shipping {
        grid-template-columns: 1fr;
    }
    .checkout-addr-modal--form .np-suggest-wrap.is-suggest-open > input[type="text"] {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-color: transparent;
    }
    .checkout-addr-modal--form .np-suggest-wrap.is-suggest-open .np-suggest:not(.np-suggest--floating) {
        margin-top: -1px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        border-top-color: #c9d8ea;
    }
    body.is-mobile-app .checkout-addr-modal-form .np-suggest {
        position: static !important;
        z-index: auto !important;
    }
}
.delivery-method-list--floating {
    right: auto;
    box-shadow: 0 22px 48px rgba(15, 35, 70, 0.22);
}
.checkout-addr-modal-form__pickup {
    margin-bottom: 0;
    background: #f3f8ff;
    border-color: #c9d8ea;
    border-radius: 10px;
}
.checkout-field-bubble {
    position: fixed;
    z-index: 5005;
    max-width: min(240px, calc(100vw - 24px));
    padding: 8px 11px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e6d8d4;
    color: #6f4f47;
    font-size: 12px;
    line-height: 1.35;
    box-shadow: 0 8px 22px rgba(42, 24, 16, 0.12);
    pointer-events: none;
    animation: checkoutFieldBubbleIn 0.16s ease;
}
.checkout-field-bubble::after {
    content: "";
    position: absolute;
    left: var(--bubble-tail-left, 50%);
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-right: 1px solid #e6d8d4;
    border-bottom: 1px solid #e6d8d4;
    transform: translateX(-50%) rotate(45deg);
}
.checkout-field-bubble--below::after {
    bottom: auto;
    top: -5px;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid #e6d8d4;
    border-top: 1px solid #e6d8d4;
}
@keyframes checkoutFieldBubbleIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.checkout-addr-modal-form .form-group.is-field-attention label {
    color: #8a6a55;
}
.checkout-addr-modal-form .form-group.is-field-attention input,
.checkout-addr-modal-form .form-group.is-field-attention .phone-field__input {
    border-color: #ddb8b3;
    box-shadow: 0 0 0 2px rgba(215, 140, 132, 0.12);
}
.checkout-addr-modal-form .form-group.is-field-attention .phone-field {
    border-radius: var(--ui-control-radius-lg);
}
.checkout-addr-modal-form .delivery-method-dropdown.is-field-attention .delivery-method-trigger {
    border-color: #ddb8b3;
    box-shadow: 0 0 0 2px rgba(215, 140, 132, 0.12);
}
.checkout-recipient-fields .form-group.is-field-attention label,
.checkout-recipient-fields .np-suggest-wrap.is-field-attention label {
    color: #8a6a55;
}
.checkout-recipient-fields .form-group.is-field-attention input,
.checkout-recipient-fields .form-group.is-field-attention .phone-field__input,
.checkout-recipient-fields .np-suggest-wrap.is-field-attention input {
    border-color: #ddb8b3;
    box-shadow: 0 0 0 2px rgba(215, 140, 132, 0.12);
}
.checkout-recipient-fields .form-group.is-field-attention .phone-field {
    border-radius: var(--ui-control-radius-lg);
}
.checkout-recipient-fields .delivery-method-dropdown.is-field-attention .delivery-method-trigger {
    border-color: #ddb8b3;
    box-shadow: 0 0 0 2px rgba(215, 140, 132, 0.12);
}
.checkout-recipient.is-validation-attention {
    scroll-margin-top: 88px;
}
@media (max-width: 520px) {
    .checkout-addr-modal-form__names {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .checkout-addr-modal-form__names > .form-group {
        margin-bottom: 16px;
    }
    .checkout-addr-modal-form__names > .form-group:last-child {
        margin-bottom: 0;
    }
}
.checkout-addr-modal--profile .checkout-addr-modal-card__radio {
    display: none;
}
.checkout-addr-modal--profile .checkout-addr-modal-card {
    cursor: default;
}
.checkout-addr-modal--profile .checkout-addr-modal-card.is-selected {
    border-color: #d8e3f0;
    box-shadow: none;
}
.checkout-addr-modal--profile .checkout-addr-modal__foot {
    justify-content: flex-end;
}
.profile-addresses__body[hidden],
.profile-addresses__add-btn[hidden] {
    display: none !important;
}
.profile-addresses__topbar {
    padding-top: 0;
}
.profile-addresses__add-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    white-space: nowrap;
}
.profile-addresses__section {
    margin-bottom: 14px;
}
.profile-addresses__section:last-child {
    margin-bottom: 0;
}
.profile-addresses__section-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.profile-addresses__cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.profile-addresses__list .checkout-addr-modal-card {
    margin-bottom: 0;
    cursor: default;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 14px 10px;
}
.profile-addresses__list .checkout-addr-modal-card__content {
    grid-column: 1;
}
.profile-addresses__list .checkout-addr-modal-card__radio {
    display: none;
}
.profile-addresses__list .checkout-addr-modal-card.is-selected {
    border-color: #d8e3f0;
    box-shadow: none;
}
.profile-addresses__list .checkout-addr-modal-card__head {
    margin-bottom: 8px;
}
.profile-addresses__list .checkout-addr-modal-card__name {
    margin-bottom: 4px;
}
@media (max-width: 560px) {
    .profile-addresses__topbar {
        flex-direction: column;
        align-items: stretch;
    }
    .profile-addresses__add-btn {
        justify-content: center;
        width: 100%;
    }
}
@media (max-width: 480px) {
    .checkout-addr-modal__dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 14px 14px 0 0;
        align-self: flex-end;
    }
    .checkout-addr-modal {
        align-items: flex-end;
        padding: 0;
    }
    .checkout-addr-modal__foot {
        flex-direction: column-reverse;
    }
    .checkout-addr-modal__cancel,
    .checkout-addr-modal__confirm,
    .checkout-addr-modal__confirm--solo {
        width: 100%;
    }
}

.checkout-summary { position: sticky; top: 20px; min-width: 0; }
.checkout-summary__title { margin: 0 0 16px; font-size: 18px; color: var(--text-white); }
.checkout-summary__list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.checkout-summary__item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.checkout-summary__thumb {
    width: 52px;
    height: 52px;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
}
.checkout-summary__thumb img { width: 100%; height: 100%; object-fit: contain; }
.checkout-summary__name {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-white);
}
.checkout-summary__meta { margin: 4px 0 0; font-size: 12px; color: var(--text-gray); }
.checkout-summary__line { font-size: 14px; color: var(--sb-chevron); white-space: nowrap; }
.checkout-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--text-gray);
}
.checkout-summary__total strong { font-size: 26px; color: var(--sb-chevron); }
.checkout-summary__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-blue);
    font-size: 14px;
    text-decoration: none;
}
.checkout-summary__back:hover { text-decoration: underline; }
.empty-cart {
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 80px 20px;
    text-align: center;
    grid-column: 1 / -1;
}
/* ——— Успешное оформление заказа (гость / аккаунт) ——— */
.checkout-success {
    max-width: 640px;
    margin: 8px auto 48px;
}
.checkout-success__card {
    border: 1px solid #c8daf0;
    border-radius: 18px;
    background: linear-gradient(165deg, #f8fbff 0%, #ffffff 42%, #f3f8fe 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 36px rgba(18, 75, 151, 0.08);
    overflow: hidden;
}
.checkout-success__card--account {
    border-top: 4px solid #1f64b7;
}
.checkout-success__card--guest {
    border-top: 4px solid #2d8a5e;
}
.checkout-success__hero {
    padding: 28px 28px 20px;
    text-align: center;
}
.checkout-success__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: linear-gradient(145deg, #e8f3ff 0%, #d4e8fc 100%);
    color: #1f64b7;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(31, 100, 183, 0.18);
}
.checkout-success__card--guest .checkout-success__icon {
    background: linear-gradient(145deg, #e8f6ee 0%, #d4eddf 100%);
    color: #2d8a5e;
    box-shadow: 0 4px 14px rgba(45, 138, 94, 0.16);
}
.checkout-success__eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a7a9e;
}
.checkout-success__title {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 3vw, 1.65rem);
    font-weight: 800;
    color: #1a2b42;
    line-height: 1.2;
}
.checkout-success__lead {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #4a627f;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.checkout-success__order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 20px 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #d4e4f5;
}
.checkout-success__order-main {
    min-width: 0;
    text-align: left;
}
.checkout-success__order-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b849f;
    margin-bottom: 4px;
}
.checkout-success__order-num {
    display: block;
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1f64b7;
    letter-spacing: 0.04em;
    word-break: break-all;
}
.checkout-success__copy {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #c3d8ef;
    border-radius: 10px;
    background: #f5f9fd;
    color: #1f64b7;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.checkout-success__copy:hover {
    background: #eaf3fc;
    border-color: #9fc0e4;
}
.checkout-success__copy.is-copied {
    background: #e8f6ee;
    border-color: #9fd4b0;
    color: #2d7a4a;
}
.checkout-success__summary {
    margin: 0 20px 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px dashed #c8daf0;
    display: grid;
    gap: 8px;
}
.checkout-success__summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0;
}
.checkout-success__summary-row dt {
    margin: 0;
    font-size: 13px;
    color: #6b849f;
    font-weight: 600;
}
.checkout-success__summary-row dd {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1a2b42;
    text-align: right;
}
.checkout-success__steps {
    list-style: none;
    margin: 0 20px 20px;
    padding: 0;
    display: grid;
    gap: 10px;
}
.checkout-success__step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid #e2ecf7;
}
.checkout-success__step.is-done {
    background: #edf5ff;
    border-color: #c5daf2;
}
.checkout-success__step-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef4fb;
    color: #5a7a9e;
    font-size: 14px;
}
.checkout-success__step.is-done .checkout-success__step-icon {
    background: #1f64b7;
    color: #fff;
}
.checkout-success__step-text {
    font-size: 13px;
    line-height: 1.45;
    color: #4a627f;
}
.checkout-success__step-text strong {
    display: block;
    color: #1a2b42;
    font-size: 14px;
    margin-bottom: 2px;
}
.checkout-success__promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 0 20px 20px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f0f6fc 0%, #e8f2fb 100%);
    border: 1px solid #c5daf2;
}
.checkout-success__promo-icon {
    font-size: 36px;
    color: #1f64b7;
    line-height: 1;
}
.checkout-success__promo-body {
    flex: 1 1 180px;
    min-width: 0;
}
.checkout-success__promo-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: #1a2b42;
}
.checkout-success__promo-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #4a627f;
}
.checkout-success__promo-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.checkout-success__promo-btn:hover {
    color: #fff;
}
.checkout-success__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 20px 24px;
    justify-content: center;
}
.checkout-success__actions--guest {
    padding-top: 4px;
}
.checkout-success__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.checkout-success__btn--primary {
    color: #fff;
}
.checkout-success__btn--primary:hover {
    color: #fff;
}
.checkout-success__btn--secondary {
    background: #fff;
    color: #1f64b7;
    border: 1px solid #c3d8ef;
}
.checkout-success__btn--secondary:hover {
    background: #f0f6fc;
    color: #124b97;
}
.checkout-success__btn--ghost {
    background: transparent;
    color: #4a627f;
    border: 1px solid #d4e4f5;
}
.checkout-success__btn--ghost:hover {
    background: #f5f9fd;
    color: #1f64b7;
    border-color: #c3d8ef;
}
.checkout-success__link {
    flex: 1 0 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #1f64b7;
    text-decoration: none;
    padding-top: 4px;
}
.checkout-success__link:hover {
    text-decoration: underline;
    color: #124b97;
}
@media (max-width: 520px) {
    .checkout-success__hero {
        padding: 22px 18px 16px;
    }
    .checkout-success__order {
        flex-direction: column;
        align-items: stretch;
        margin-left: 14px;
        margin-right: 14px;
    }
    .checkout-success__copy {
        justify-content: center;
    }
    .checkout-success__summary,
    .checkout-success__steps,
    .checkout-success__promo,
    .checkout-success__actions {
        margin-left: 14px;
        margin-right: 14px;
    }
    .checkout-success__actions {
        padding-left: 14px;
        padding-right: 14px;
    }
    .checkout-success__btn {
        flex: 1 1 100%;
    }
    .checkout-success__promo-btn {
        width: 100%;
    }
}

/* legacy (не используется) */
.cart-success-state {
    display: none;
}
.btn-cart-home {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-cart-home:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    filter: none;
}
.cart-empty-visual .cart-empty-icon {
    font-size: 64px;
    color: var(--border-strong);
    margin-bottom: 20px;
    display: block;
}
.cart-empty-visual .cart-empty-title {
    color: white;
    margin-bottom: 10px;
    font-size: 1.15rem;
}
.cart-empty-visual .cart-empty-text {
    color: var(--text-gray);
    margin-bottom: 28px;
}
.btn-catalog-cta {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    background-image: none;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-catalog-cta:hover {
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta-hover);
    color: var(--text-on-primary);
    border-color: var(--accent-deep);
}
.wishlist-empty .wishlist-empty-icon {
    font-size: 48px;
    color: var(--text-gray);
    margin-bottom: 20px;
    display: block;
}
.wishlist-empty .wishlist-empty-title {
    color: white;
    margin-bottom: 10px;
    font-size: 1.15rem;
}
.wishlist-empty .wishlist-empty-text {
    color: var(--text-gray);
    margin-bottom: 24px;
}
.btn-wishlist-cta {
    display: inline-block;
    padding: 12px 25px;
    background-color: transparent;
    background-image: none;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-wishlist-cta:hover {
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta-hover);
    color: var(--text-on-primary);
    border-color: var(--accent-deep);
}

/* ——— Личный кабинет ——— */
.profile-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.profile-content {
    min-width: 0;
    width: 100%;
}
.profile-content > .info-box {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.profile-content > .info-box[hidden] {
    display: none !important;
}
.profile-content .form-grid {
    width: 100%;
}
.sidebar-menu {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(31, 100, 183, 0.08);
}
.sm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding: 16px 18px 16px 14px;
    border-left: 4px solid transparent;
    color: var(--text-gray);
    text-decoration: none;
    border-bottom: 1px solid rgba(31, 100, 183, 0.08);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.sm-item:last-child { border-bottom: none; }
.sm-item:hover,
.sm-item.active {
    background: rgba(31, 100, 183, 0.09);
    color: var(--accent-deep);
    border-left-color: var(--accent-blue);
}
.sm-item.active i { color: var(--accent-blue); }
.sm-item i { width: 20px; text-align: center; font-size: 18px; }
.info-box {
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    border: 1px solid rgba(31, 100, 183, 0.15);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 22px;
    box-shadow: 0 12px 30px rgba(31, 100, 183, 0.08);
}
.info-box h2 {
    font-size: 22px;
    margin-bottom: 22px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(31, 100, 183, 0.14);
    padding-bottom: 12px;
    color: var(--accent-deep);
    letter-spacing: 0.02em;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-layout .form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.profile-layout .form-group input {
    width: 100%;
    padding: 14px 15px;
    background: #ffffff;
    border: 1px solid #c9d8ea;
    border-radius: 10px;
    color: var(--text-white);
    outline: none;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.profile-layout .form-group select {
    width: 100%;
    padding: 14px 15px;
    background: #ffffff;
    border: 1px solid #c9d8ea;
    border-radius: 10px;
    color: var(--text-white);
    outline: none;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.profile-layout .form-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(31, 100, 183, 0.16);
}
.profile-layout .form-group select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(31, 100, 183, 0.16);
}
.delivery-method-native {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}
.delivery-method-dropdown {
    position: relative;
}
.delivery-method-list--payment-overlay.delivery-method-list--floating {
    border: 1px solid #dbe6f3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
}
.delivery-method-trigger {
    width: 100%;
    border: 1px solid #c9d8ea;
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
}
.delivery-method-trigger:hover {
    border-color: #99b8de;
}
.delivery-method-trigger__left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.delivery-method-trigger__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-blue-mid);
    flex: 0 0 auto;
}
.delivery-method-trigger__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #d9e4f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d13239;
    background: #fff;
    font-size: 14px;
}
.delivery-method-trigger__icon img,
.delivery-method-option__icon img {
    max-width: 20px;
    max-height: 20px;
    display: block;
}
.delivery-method-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    border: 1px solid #d4e1f0;
    border-radius: 12px;
    background: #fff;
    max-height: 480px;
    overflow: auto;
    box-shadow: 0 14px 26px rgba(31, 100, 183, 0.16);
    z-index: 1200;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.delivery-method-list[hidden] {
    display: none !important;
}
.delivery-method-option {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #eef3f9;
    background: #fff;
    text-align: left;
    padding: 14px 12px;
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #24364c;
    font-weight: 700;
}
.delivery-method-option__text {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}
.delivery-method-option:last-child {
    border-bottom: 0;
}
.delivery-method-option__radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #d6dbe3;
    position: relative;
    flex: 0 0 auto;
}
.delivery-method-option.is-active .delivery-method-option__radio {
    border-color: #67c5ef;
}
.delivery-method-option.is-active .delivery-method-option__radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #67c5ef;
}
.delivery-method-option__icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid #d9e4f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d13239;
    background: #fff;
    font-size: 14px;
    flex: 0 0 auto;
}
.delivery-method-option:hover {
    background: #f6fbff;
}
.profile-layout .form-group input:disabled {
    color: var(--text-gray);
    background: #f3f7fc;
    cursor: not-allowed;
}
.np-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border: 1px solid rgba(31, 100, 183, 0.2);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 100, 183, 0.14);
    max-height: 220px;
    overflow: auto;
    z-index: 1800;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.np-suggest.is-scrollable,
.delivery-method-list.is-scrollable {
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 100, 183, 0.42) rgba(31, 100, 183, 0.08);
}
.np-suggest.is-scrollable::-webkit-scrollbar,
.delivery-method-list.is-scrollable::-webkit-scrollbar {
    width: 7px;
}
.np-suggest.is-scrollable::-webkit-scrollbar-track,
.delivery-method-list.is-scrollable::-webkit-scrollbar-track {
    background: rgba(31, 100, 183, 0.06);
    border-radius: 999px;
}
.np-suggest.is-scrollable::-webkit-scrollbar-thumb,
.delivery-method-list.is-scrollable::-webkit-scrollbar-thumb {
    background: rgba(31, 100, 183, 0.38);
    border-radius: 999px;
}
.np-suggest.is-scrollable:not(.is-scrolled-bottom),
.delivery-method-list.is-scrollable:not(.is-scrolled-bottom) {
    padding-bottom: 36px;
}
.np-suggest.is-scrollable.is-scrolled {
    box-shadow:
        0 8px 18px rgba(31, 100, 183, 0.14),
        inset 0 10px 10px -10px rgba(15, 35, 70, 0.12);
}
.delivery-method-list.is-scrollable.is-scrolled {
    box-shadow:
        0 14px 26px rgba(31, 100, 183, 0.16),
        inset 0 10px 10px -10px rgba(15, 35, 70, 0.12);
}
.scroll-list-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.94) 34%, #ffffff 100%);
    color: #4a6485;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    pointer-events: none;
}
.is-scrollable:not(.is-scrolled-bottom) > .scroll-list-hint {
    display: flex;
}
.scroll-list-hint__icon {
    font-size: 11px;
    opacity: 0.85;
    animation: scrollListHintBounce 1.4s ease-in-out infinite;
}
@keyframes scrollListHintBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
}
.np-suggest-wrap {
    position: relative;
}
.np-suggest--floating {
    right: auto;
    box-shadow: 0 18px 36px rgba(15, 35, 70, 0.18);
}
.np-suggest[hidden] {
    display: none !important;
}
.np-suggest__item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 9px 12px;
    cursor: pointer;
    color: var(--text-white);
    font-size: 14px;
}
.np-suggest__item + .np-suggest__item {
    border-top: 1px solid rgba(31, 100, 183, 0.12);
}
.np-suggest__item:hover {
    background: rgba(31, 100, 183, 0.08);
}
.profile-personal-phone {
    grid-column: 2;
    grid-row: 2;
}
.profile-personal-email {
    grid-column: 1;
    grid-row: 2;
}
.order-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(31, 100, 183, 0.12);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 8px 22px rgba(31, 100, 183, 0.07);
}

/* ——— Страница товара ——— */
.product-page-title { font-size: 28px; font-weight: 900; line-height: 1.3; margin-bottom: 20px; text-transform: uppercase; color: var(--text-white); }
.product-tabs { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-gray);
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
}
.tab-btn:hover { border-color: var(--accent-blue); color: var(--text-white); }
.tab-btn.active { background: var(--gradient-cta); border-color: transparent; color: #f0f4f9; }
.tab-btn:focus-visible { outline: 2px solid var(--sb-chevron); outline-offset: 2px; }
.product-page .product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.left-col { display: flex; flex-direction: column; gap: 15px; }
.main-image-box {
    background: transparent;
    border-radius: var(--radius);
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    border: 1px solid var(--border);
}
.main-image-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-photo-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0 2px;
    font-size: 12px;
    line-height: 1.45;
    color: #a8b0bd;
    font-weight: 400;
}
.product-photo-notice__icon {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 0.9rem;
    opacity: 0.65;
}
.product-photo-notice__text { flex: 1; min-width: 0; }
.image-gallery { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 5px; }
.gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    border: 2px solid var(--border);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    transition: 0.2s;
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
}
.gallery-thumb-img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb:hover, .gallery-thumb.active { border-color: var(--accent-blue); }
.gallery-thumb:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }
.product-page .right-col { display: flex; flex-direction: column; gap: 20px; }
.product-page .info-card {
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.product-page .info-card:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 100, 183, 0.28);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}
.product-page .info-card--meta {
    padding: 15px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
    border-color: rgba(31, 100, 183, 0.16);
}
.product-page .info-card--buy {
    padding: 18px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border-color: rgba(31, 100, 183, 0.2);
    box-shadow: 0 14px 28px rgba(31, 100, 183, 0.14);
}
.purchase-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.purchase-code {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}
.purchase-code strong {
    color: #1f64b7;
    font-weight: 700;
}
.purchase-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.purchase-badge--in {
    color: #15803d;
    background: rgba(34, 197, 94, 0.12);
}
.purchase-badge--out {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.1);
}
.purchase-rating {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(31, 100, 183, 0.12);
}
.purchase-rating .prod-rating-btn {
    margin: 0;
    padding: 0;
}
.purchase-services {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.status-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-gray); margin-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; align-items: center; flex-wrap: wrap; gap: 10px; }
.status-row .avail { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.status-row .avail--in { color: #4ade80; }
.status-row .avail--out { color: #ef4444; }
.status-row--main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 860px) {
    .product-page .info-card--meta {
        padding: 14px 16px;
    }
}
.status-row--main > :first-child {
    grid-column: 1;
    justify-self: start;
}
.status-row--main > :nth-child(2) {
    grid-column: 2;
    justify-self: center;
}
.status-row--main > :last-child {
    grid-column: 3;
    justify-self: end;
}
.status-row--main .prod-rating-btn {
    margin: 0;
}
.status-row--main > :first-child {
    color: var(--text-muted);
    font-weight: 600;
}
.prod-rating-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #facc15;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    padding: 4px 6px;
    margin: -4px -6px;
    border-radius: 6px;
    transition: background 0.2s;
}
.prod-rating-btn:hover { background: rgba(250, 204, 21, 0.08); }
.prod-rating-btn:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }
.prod-rating-score { color: white; font-weight: bold; margin-right: 5px; }
.prod-rating-count { color: var(--text-gray); margin-left: 5px; font-size: 13px; }
.status-row .code { color: var(--accent-blue); font-weight: 500; }
.badges-row { display: flex; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; }
.badge-item { border: 1px solid var(--border); padding: 8px 15px; border-radius: 6px; font-size: 12px; color: var(--text-gray); display: flex; align-items: center; gap: 8px; }
.variants-block { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.variants-block h4 { margin-bottom: 10px; font-size: 13px; color: var(--text-gray); text-transform: uppercase; }
.variant-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin: 0 5px 5px 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-white);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: 0.2s;
    font-size: 13px;
}
.variant-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); background: rgba(var(--accent-rgb), 0.06); }
.variant-btn.active { border-color: var(--accent-blue); background: rgba(var(--accent-rgb), 0.11); color: var(--accent-blue); }
.variant-icon { width: 28px; height: 28px; object-fit: contain; border-radius: 4px; background: #fff; padding: 2px; flex-shrink: 0; }
.buy-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(31, 100, 183, 0.2);
    flex-wrap: wrap;
}
.buy-row--main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}
.info-card--buy .buy-row--main {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.purchase-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 240px;
    min-width: 0;
}
.purchase-qty {
    display: flex;
    align-items: stretch;
    flex: 0 0 116px;
    width: 116px;
    height: 48px;
    border: 1px solid #c8daf0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.purchase-qty__btn {
    flex: 0 0 36px;
    width: 36px;
    border: none;
    background: #f3f8fd;
    color: #1f64b7;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.purchase-qty__btn:hover {
    background: #e6f0fb;
    color: #124b97;
}
.purchase-qty__btn:active {
    background: #d9e8f8;
}
.purchase-qty__input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none;
    border-left: 1px solid #e2eaf4;
    border-right: 1px solid #e2eaf4;
    background: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 800;
    color: #1f3656;
    outline: none;
}
.purchase-cart-btn {
    flex: 1;
    min-width: 0;
}
.purchase-cart-btn--solo {
    flex: 1 1 240px;
}
.buy-row--main .btn-heart {
    flex: 0 0 48px;
    margin-left: auto;
}
.price-large { font-size: 38px; font-weight: 900; color: var(--text-white); flex: 1; line-height: 1; }
.price-large span { font-size: 24px; }
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #bfd2ea;
    border-radius: 10px;
    height: 50px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.qty-btn { background: transparent; color: #2563b7; border: none; width: 36px; height: 100%; cursor: pointer; font-weight: 800; font-size: 17px; }
.qty-input { width: 42px; background: transparent; border: none; color: #233a5a; text-align: center; font-weight: 800; outline: none; font-size: 17px; }
.btn-add-cart {
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    border: none;
    height: 50px;
    padding: 0 30px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
    min-width: 160px;
}
.btn-add-cart:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    box-shadow: 0 12px 22px rgba(var(--accent-rgb), 0.32);
    transform: translateY(-1px);
    filter: none;
}
.btn-add-cart--disabled,
.btn-add-cart:disabled {
    background: var(--border-strong) !important;
    cursor: not-allowed !important;
    color: var(--text-gray) !important;
    box-shadow: none !important;
}
.btn-add-cart--full { width: 100%; }
.btn-heart {
    background: #fff;
    border: 1px solid #d3dfed;
    color: var(--text-secondary);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.24s;
}
.btn-heart:hover { background: #f6faff; color: var(--accent-blue); border-color: var(--accent-blue); transform: translateY(-1px); }
.btn-heart.active { color: #ef4444; border-color: #ef4444; background: rgba(239, 68, 68, 0.1); }

@media (max-width: 860px) {
    .status-row--main {
        grid-template-columns: 1fr;
        gap: 8px;
        justify-items: start;
        padding: 0;
    }
    .product-page .info-card--meta,
    .product-page .info-card--buy {
        padding: 14px 15px;
    }
    .status-row--main > :first-child,
    .status-row--main > :nth-child(2),
    .status-row--main > :last-child {
        justify-self: start;
    }
    .buy-row--main {
        display: flex;
        gap: 10px;
    }
    .buy-row--main .purchase-actions {
        flex: 1 1 100%;
        order: 3;
    }
    .buy-row--main .purchase-cart-btn--solo {
        flex: 1 1 100%;
        order: 3;
    }
    .buy-row--main .btn-heart {
        order: 2;
        margin-left: 0;
    }
    .buy-row--main .price-large {
        order: 1;
        flex: 1 1 auto;
    }
}
.product-page .info-card h3 { font-size: 16px; margin-bottom: 20px; text-transform: uppercase; font-weight: 700; color: var(--text-white); }
.list-item { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; font-size: 14px; color: var(--text-white); font-weight: 500; }
.list-item:last-child { margin-bottom: 0; }
.list-icon {
    width: 38px;
    height: 38px;
    background: rgba(var(--accent-rgb), 0.11);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-blue);
    font-size: 16px;
}
.list-icon--green { color: #22c55e; background: rgba(34, 197, 94, 0.12); }
.list-icon--red { color: #ef4444; background: rgba(239, 68, 68, 0.12); }
.list-icon--yellow { color: #facc15; background: rgba(250, 204, 21, 0.1); }
.list-icon--brand img {
    display: block;
    width: 22px;
    height: auto;
    max-height: 24px;
    object-fit: contain;
}
.list-item span.sub { color: var(--text-gray); font-size: 13px; font-weight: 400; margin-left: 5px; }
.tab-content { display: none; background: transparent; }
.tab-content.active { display: block; animation: fadeInTab 0.3s ease-in; }
.product-description-card {
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 36px;
    max-width: 960px;
}
.product-description__body {
    color: var(--text-white);
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}
.product-description__body p,
.product-description__body div,
.product-description__body li,
.product-description__body span {
    color: inherit;
}
.product-description__body > :first-child { margin-top: 0; }
.product-description__body > :last-child { margin-bottom: 0; }
.product-description__body p { margin: 0 0 0.65em; }
.product-description__body p:empty { display: none; margin: 0; padding: 0; }
.product-description__body div:empty { display: none; }
.product-description__body p:has(> br:only-child),
.product-description__body div:has(> br:only-child) {
    display: none;
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
}
.product-description__body ul,
.product-description__body ol { margin: 0 0 1em; padding-left: 1.35em; }
.product-description__body li { margin-bottom: 0.35em; }
.product-description__body h2,
.product-description__body h3,
.product-description__body h4 {
    color: var(--text-white);
    font-weight: 700;
    margin: 1.25em 0 0.5em;
    line-height: 1.3;
}
.product-description__body h2 { font-size: 1.35rem; }
.product-description__body h3 { font-size: 1.15rem; }
.product-description__body h4 { font-size: 1.05rem; }
.product-description__body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 14px;
}
.product-description__body th,
.product-description__body td {
    border: 1px solid var(--border-strong);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.product-description__body th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    font-weight: 600;
}
.product-description__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.75em 0;
}
.product-description__body a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.product-description__body a:hover { color: #93c5fd; }
.product-description__empty {
    margin: 0;
    color: var(--text-gray);
    font-size: 15px;
}
@media (max-width: 720px) {
    .product-description-card { padding: 22px 18px; }
}
@keyframes fadeInTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.standard-box { background: var(--bg-header); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.standard-box p { color: var(--text-gray); line-height: 1.7; font-size: 15px; }
.specs-tab-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; }
.specs-card { background: var(--bg-header); border: 1px solid var(--border); border-radius: var(--radius); padding: 35px; }
.specs-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 25px; text-transform: uppercase; color: var(--text-white); }
.specs-group-title { background: rgba(255, 255, 255, 0.03); padding: 15px 20px; font-weight: 700; border-radius: 6px; margin-bottom: 15px; font-size: 15px; color: var(--text-white); }
.specs-list { list-style: none; padding: 0; margin: 0; }
.specs-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; line-height: 1.5; }
.specs-list li:last-child { border-bottom: none; }
.specs-list .s-name { color: var(--text-gray); flex-shrink: 0; max-width: 40%; }
.specs-list .s-value { color: var(--text-white); font-weight: 700; text-align: right; flex: 1; word-wrap: break-word; }
.mini-buy-card { background: var(--bg-header); border: 1px solid var(--border); border-radius: var(--radius); padding: 25px; position: sticky; top: 20px; height: fit-content; }
.mini-product-info { display: flex; gap: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); align-items: center; }
.mini-img { width: 70px; height: 70px; border-radius: 6px; display: flex; justify-content: center; align-items: center; padding: 5px; flex-shrink: 0; }
.mini-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mini-title { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--text-white); }
.mini-buy-card .status-row { border: none; padding: 0; margin-bottom: 15px; font-size: 13px; }
.mini-price-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 25px; margin-bottom: 15px; }
.mini-price-row .price-large { font-size: 28px; }
.mini-price-row .qty-selector { height: 42px; width: 100px; }
.mini-action-row { display: flex; gap: 10px; }
.mini-action-row .btn-add-cart { height: 42px; font-size: 13px; }
.mini-action-row .btn-heart { height: 42px; width: 42px; }
.reviews-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 28px 32px;
    align-items: start;
}
.review-invite {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, #eef5ff 0%, #f8fbff 100%);
    border: 1px solid #c6d8ec;
}
.review-invite > i {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-cta);
    color: #fff;
    font-size: 16px;
}
.review-invite__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}
.review-invite__text strong {
    font-size: 15px;
    color: #1f3f69;
}
.tab-btn--review-pending {
    position: relative;
}
.tab-btn__dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 6px;
    border-radius: 50%;
    background: #1f64b7;
    vertical-align: middle;
    box-shadow: 0 0 0 2px #fff;
}
.tab-btn.active .tab-btn__dot {
    background: #fff;
    box-shadow: 0 0 0 2px var(--accent-blue);
}
.review-list { display: flex; flex-direction: column; gap: 12px; }
.review-item {
    background: #fff;
    border: 1px solid #e4edf7;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(18, 75, 151, 0.05);
}
.review-header { display: flex; justify-content: space-between; margin-bottom: 10px; align-items: center; flex-wrap: wrap; gap: 8px; }
.review-author { font-weight: 700; color: #1a2838; display: flex; align-items: center; gap: 12px; }
.review-avatar {
    width: 38px;
    height: 38px;
    background: var(--gradient-cta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #f4f8fd;
    font-weight: 800;
}
.review-date { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.review-stars { color: #f59e0b; font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.review-form-box {
    background: #fff;
    border: 1px solid #d4e3f2;
    border-radius: 14px;
    padding: 22px 20px;
    position: sticky;
    top: 88px;
    height: fit-content;
    box-shadow: 0 8px 28px rgba(18, 75, 151, 0.08);
}
.review-form-box--highlight {
    border-color: #9ebde0;
    box-shadow: 0 10px 32px rgba(31, 100, 183, 0.14);
}
.review-form-box h3 {
    margin: 0 0 6px;
    color: #1f3f69;
    font-size: 17px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}
.review-form-box__lead {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
}
.rating-select {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 0;
    padding: 8px 0 4px;
}
.rating-select input { display: none; }
.rating-select label {
    cursor: pointer;
    color: #c6d4e3;
    font-size: 32px;
    transition: color 0.15s ease, transform 0.15s ease;
}
.rating-select label:hover {
    transform: scale(1.08);
}
.rating-select label:hover,
.rating-select label:hover ~ label,
.rating-select input:checked ~ label {
    color: #f59e0b;
}
.review-form-field--rating {
    margin-bottom: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8f0f7;
}
.review-form-field__hint {
    margin: 8px 0 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.4;
}

.reviews-empty {
    text-align: center;
    padding: 48px 20px;
    background: #fff;
    border: 1px dashed #c6d8ec;
    border-radius: 12px;
}
.reviews-empty-icon { font-size: 48px; color: #9ebde0; margin-bottom: 14px; display: block; }
.reviews-empty-title { margin-bottom: 10px; color: #1f3f69; font-size: 20px; font-weight: 800; }
.reviews-empty-text { color: var(--text-secondary); line-height: 1.5; font-size: 14px; }

.review-readonly-summary { margin-top: 8px; }
.review-readonly-summary .review-stars { margin-bottom: 8px; }
.review-readonly-summary__text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.55;
}
.review-notice--locked { margin-bottom: 12px; }
.review-notice {
    text-align: left;
    padding: 16px;
    background: #f4f8fd;
    border-radius: 10px;
    border: 1px solid #d4e3f2;
}
.review-notice--ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.review-notice-icon {
    font-size: 22px;
    color: var(--accent-blue);
    margin-bottom: 10px;
    display: block;
}
.review-notice--ok .review-notice-icon { color: #16a34a; }
.review-notice-text {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}
.review-notice-text--spaced { margin-bottom: 12px; }
.review-login-btn { display: inline-block; margin-top: 4px; }
.review-form-field { margin-bottom: 14px; }
.review-field-label {
    display: block;
    margin-bottom: 6px;
    color: #1f3f69;
    font-size: 13px;
    font-weight: 700;
}
.review-form-field label {
    display: block;
    margin-bottom: 6px;
    color: #1f3f69;
    font-size: 13px;
    font-weight: 700;
}
.review-form-field + .review-form-field { margin-bottom: 16px; }
.review-form-actions { margin-top: 6px; }
.review-form-box .btn-add-cart--full {
    width: 100%;
    margin-top: 4px;
}
.review-delete-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e8f0f7;
    text-align: center;
}
.review-delete-btn {
    border: none;
    background: transparent;
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.review-delete-btn:hover { text-decoration: underline; }
.review-textarea {
    width: 100%;
    padding: 11px 13px;
    background: #f9fbfe;
    border: 1px solid #c6d4e3;
    border-radius: 8px;
    color: #1a2838;
    outline: none;
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    resize: vertical;
    font-size: 14px;
    line-height: 1.45;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.review-textarea:focus {
    border-color: #1f64b7;
    background: #fff;
    box-shadow: var(--ui-focus-ring);
}

/* ——— Каталог (список групп) ——— */
.catalog-page .catalog-page-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.catalog-page-title {
    margin-bottom: 0;
    letter-spacing: -0.02em;
}
.categories-grid {
    display: grid;
    /* Чуть шире минимум карточки → меньше колонок на типичном мониторе, меньше «тесноты» */
    grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
    gap: 22px;
    align-items: stretch;
}
.category-card {
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    color: inherit;
    box-shadow: 0 2px 10px rgba(15, 35, 65, 0.06);
    overflow: hidden;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow:
        0 14px 32px rgba(15, 35, 65, 0.12),
        0 0 0 1px rgba(var(--accent-rgb), 0.12);
}
.category-card:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-color: rgba(var(--accent-rgb), 0.55);
}
.cat-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    border-radius: 0;
    background:
        linear-gradient(165deg, #eef3f9 0%, #e4ecf6 100%);
    border: none;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.cat-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse 85% 75% at 50% 18%,
        rgba(255, 255, 255, 0.65) 0%,
        rgba(255, 255, 255, 0) 58%
    );
}
.cat-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 14px;
    display: block;
    border: 0;
    outline: none;
    transition: transform 0.28s ease, filter 0.28s ease;
}
.category-card:hover .cat-media img {
    transform: scale(1.04);
    filter: drop-shadow(0 8px 18px rgba(30, 55, 95, 0.18));
}
.cat-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    background: rgba(var(--accent-rgb), 0.11);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-blue);
    font-size: 32px;
    margin-bottom: 20px;
    transition: 0.3s;
}
.cat-media .cat-icon { margin-bottom: 0; }
.category-card:hover .cat-icon { background: var(--gradient-cta); color: #f0f4f9; }
.cat-name {
    flex: 1 1 auto;
    color: var(--text-white);
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 0;
    line-height: 1.35;
    padding: 14px 14px 6px;
}
.cat-count {
    flex-shrink: 0;
    padding: 0 14px 16px;
}
.cat-count-badge {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-gray);
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
}
.category-card:hover .cat-count-badge {
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent-deep);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.cat-name,
.subgroup-card .sg-name {
    font-weight: 800;
    transition: color 0.2s ease;
}

.category-card:hover .cat-name,
.subgroup-card:hover .sg-name {
    color: #124b97;
}

@media (max-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
        gap: 14px;
    }
    .catalog-page .catalog-page-header {
        margin-bottom: 28px;
        padding-bottom: 22px;
    }
}

.page-title.centered { text-align: center; }
.section-title { font-size: 22px; font-weight: 900; margin-bottom: 24px; text-transform: uppercase; }
.empty-search, .empty-wishlist {
    text-align: center;
    padding: 60px 24px;
    grid-column: 1 / -1;
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.empty-search-icon { font-size: 48px; color: var(--text-gray); margin-bottom: 20px; display: block; }
.empty-search-title { color: white; margin-bottom: 10px; font-size: 1.25rem; }
.empty-search-text { color: var(--text-gray); }
.empty-search-text a { color: var(--accent-blue); text-decoration: none; }
.empty-search-text a:hover { text-decoration: underline; }

/* ——— 404 ——— */
.page-missing {
    text-align: center;
    padding: 48px 20px 72px;
    max-width: 560px;
    margin: 0 auto;
}
.page-missing-code {
    font-size: clamp(4rem, 12vw, 6.5rem);
    font-weight: 900;
    line-height: 1;
    color: rgba(var(--accent-rgb), 0.38);
    letter-spacing: -0.06em;
    margin-bottom: 16px;
}
.page-missing-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.page-missing-text {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 28px;
}
.page-missing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.btn-missing-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.btn-missing-primary:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    filter: none;
}
.btn-missing-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s;
}
.btn-missing-secondary:hover {
    background-color: rgba(var(--accent-rgb), 0.13);
    background-image: none;
    color: white;
}

/* ——— Вход / регистрация ——— */
.auth-page .auth-shell { padding-bottom: 48px; max-width: 720px; margin: 0 auto; }
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 auto 18px;
    max-width: 720px;
}
.auth-tab-btn {
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-gray);
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s;
}
.auth-tab-btn.is-active {
    border-color: rgba(var(--accent-rgb), 0.7);
    color: #fff;
    background: rgba(var(--accent-rgb), 0.12);
}
.auth-panel { display: none; }
.auth-panel.is-active { display: block; }
.auth-box {
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.auth-box-title {
    font-size: 1.15rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 22px;
    color: var(--text-white);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 14px;
    letter-spacing: 0.02em;
}
.auth-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-decoration: none;
    border: 1px solid #3d6ca6;
    border-radius: 8px;
    color: #e5eefb;
    background: rgba(31, 100, 183, 0.18);
    font-size: 14px;
    font-weight: 700;
    padding: 11px 14px;
    margin-bottom: 16px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.auth-google-btn:hover {
    background: rgba(31, 100, 183, 0.28);
    border-color: #4f82c0;
}
.auth-form-group { margin-bottom: 18px; }
.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 14px;
}
.auth-form-group input {
    width: 100%;
    padding: 14px 15px;
    background: var(--bg-input);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: white;
    font-family: inherit;
    outline: none;
    font-size: 15px;
    transition: border-color 0.2s;
}
.auth-form-group input:focus { border-color: var(--accent-blue); }
.auth-password-wrap {
    position: relative;
}
.auth-password-wrap input {
    padding-right: 92px;
}
.auth-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-gray);
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    padding: 6px 8px;
}
.auth-password-toggle:hover {
    color: #fff;
    border-color: rgba(var(--accent-rgb), 0.55);
}
.auth-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid #ef4444;
    color: #f87171;
    padding: 14px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.auth-password-checklist {
    list-style: none;
    margin: 8px 0 14px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}
.auth-password-checklist--allegro {
    font-size: 12px;
    line-height: 1.35;
}
.auth-password-checklist--allegro li {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 0;
    white-space: nowrap;
    color: #dc2626;
    transition: color 0.15s ease;
}
.auth-password-checklist--allegro li.is-ok {
    color: #15803d;
    font-weight: 600;
}
.auth-password-checklist--allegro .auth-rule-mark::before {
    content: "×";
    display: inline-block;
    margin-right: 3px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    vertical-align: -0.1em;
    color: #dc2626;
    transition: color 0.15s ease;
}
.auth-password-checklist--allegro li.is-ok .auth-rule-mark::before {
    content: "✓";
    color: #16a34a;
}
.auth-password-checklist--allegro li:not(:last-child)::after {
    content: "·";
    margin: 0 10px;
    color: #94a3b8;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
}
.auth-confirm-match {
    min-height: 18px;
    font-size: 12px;
    margin-top: -4px;
    margin-bottom: 8px;
    color: var(--text-gray);
}
.auth-confirm-match.is-ok { color: #4ade80; }
.auth-confirm-match.is-bad { color: #f87171; }
.auth-hp-wrap {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}
.btn-auth {
    width: 100%;
    padding: 15px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.25s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 8px;
    border: none;
    font-family: inherit;
}
.btn-auth-primary {
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
}
.btn-auth-primary:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.38);
    filter: none;
}
.btn-auth-outline {
    background-color: transparent;
    background-image: none;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}
.btn-auth-outline:hover {
    background-color: rgba(var(--accent-rgb), 0.13);
    background-image: none;
    color: white;
}
.auth-hint {
    text-align: center;
    color: var(--text-gray);
    font-size: 14px;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}
.auth-hint a { color: var(--accent-blue); text-decoration: none; }
.auth-hint a:hover { text-decoration: underline; }

/* ——— Вход / регистрация (компактная карточка, стиль Allegro) ——— */
.auth-page--allegro {
    width: 100%;
    box-sizing: border-box;
    background:
        radial-gradient(ellipse 70% 55% at 12% 8%, rgba(31, 100, 183, 0.07), transparent 55%),
        radial-gradient(ellipse 50% 40% at 88% 75%, rgba(36, 166, 200, 0.06), transparent 50%),
        #eff2f6;
    padding: 24px 0 40px;
}
.auth-page--allegro .auth-page__inner {
    max-width: 1140px;
    margin: 0 auto;
}
.auth-page--allegro .breadcrumb {
    margin-bottom: 14px;
}
.auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.06),
        0 12px 40px rgba(15, 23, 42, 0.06);
    padding: 22px 28px 28px;
    overflow: visible;
}
.auth-allegro-stack {
    max-width: 480px;
    margin: 0 auto;
}
.auth-allegro-stack--wide {
    max-width: 720px;
}
.auth-allegro-stack--wide .auth-card {
    padding-left: 40px;
    padding-right: 40px;
}
.auth-card--narrow {
    max-width: 100%;
}
.auth-card__alerts {
    margin-bottom: 14px;
    display: grid;
    gap: 10px;
}
.auth-alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}
.auth-alert--panel {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 14px 12px 12px;
}
.auth-alert__icon {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 15px;
    line-height: 1.4;
}
.auth-alert__text {
    flex: 1;
    min-width: 0;
}
.auth-alert--error {
    background: #fff5f5;
    border: none;
    color: #9f1239;
}
.auth-alert--error.auth-alert--panel {
    border-left: 3px solid #e11d48;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.auth-alert--error.auth-alert--panel .auth-alert__icon {
    color: #e11d48;
}
.auth-alert--error i { margin-right: 8px; }
.auth-alert--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #166534;
}
.auth-tabs--segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0 0 16px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e5e7eb;
}
.auth-tabs--segmented .auth-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: 0;
    padding: 10px 8px 11px;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.auth-tabs--segmented .auth-tab-btn > i {
    font-size: 14px;
    opacity: 0.88;
}
.auth-tabs--segmented .auth-tab-btn.is-active {
    background: transparent;
    color: #0f172a;
    box-shadow: none;
    border-bottom-color: #1f64b7;
}
.auth-panel__inner--allegro {
    padding-top: 0;
}
.auth-form-group--float {
    margin-bottom: 18px;
}
.auth-form-group--float .auth-forgot-link {
    margin-top: 12px;
}
.auth-float-field {
    position: relative;
}
.auth-float-field input + label,
.auth-float-field .auth-password-wrap + label {
    position: absolute;
    left: 13px;
    top: 50%;
    bottom: auto;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.2;
    transition:
        top 0.15s ease,
        transform 0.15s ease,
        font-size 0.15s ease,
        color 0.15s ease;
    transform: translateY(-50%);
    transform-origin: left top;
    pointer-events: none;
}
.auth-float-field.is-filled label,
.auth-float-field > input:not(:placeholder-shown) + label,
.auth-float-field:has(> input:-webkit-autofill) > input + label,
.auth-float-field:has(.auth-password-wrap input:not(:placeholder-shown)) .auth-password-wrap + label,
.auth-float-field:has(.auth-password-wrap input:-webkit-autofill) .auth-password-wrap + label {
    top: 8px;
    transform: translateY(0);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.auth-float-field.is-filled > input:not([type="checkbox"]),
.auth-float-field > input:not(:placeholder-shown):not([type="checkbox"]),
.auth-float-field:has(> input:-webkit-autofill) > input:not([type="checkbox"]) {
    padding: 21px 13px 9px;
}
.auth-float-field:focus-within > input:placeholder-shown + label,
.auth-float-field:focus-within:has(.auth-password-wrap input:placeholder-shown) .auth-password-wrap + label {
    color: #1f64b7;
}
.auth-float-field.is-filled:focus-within label,
.auth-float-field:focus-within > input:not(:placeholder-shown) + label,
.auth-float-field:focus-within:has(.auth-password-wrap input:not(:placeholder-shown)) .auth-password-wrap + label {
    color: #1f64b7;
}
.auth-float-field > input:-webkit-autofill,
.auth-float-field--with-toggle .auth-password-wrap input:-webkit-autofill {
    animation: authInputAutofillStart 0.001s;
}
@keyframes authInputAutofillStart {
    from { opacity: 1; }
    to { opacity: 1; }
}
.auth-float-field > input:not([type="checkbox"]) {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-bottom-width: 2px;
    border-bottom-color: #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    min-height: 52px;
    padding: 15px 13px;
    font-size: 16px;
    line-height: 1.45;
    color: #0f172a;
    caret-color: #0f172a;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.auth-float-field > input::placeholder {
    color: transparent;
}
.auth-float-field:not(.is-valid):not(.is-invalid) > input:focus {
    border-color: #94a3b8;
    border-bottom-color: #94a3b8;
    box-shadow: 0 0 0 1px rgba(31, 100, 183, 0.12);
}
.auth-float-field.is-valid > input {
    border-color: #cbd5e1;
    border-bottom-color: #22c55e;
    box-shadow: none;
}
.auth-float-field.is-invalid > input {
    border-color: #cbd5e1;
    border-bottom-color: #ef4444;
    box-shadow: none;
}
.auth-float-field.is-valid > input:focus {
    border-color: #cbd5e1;
    border-bottom-color: #22c55e;
    box-shadow: none;
}
.auth-float-field.is-invalid > input:focus {
    border-color: #cbd5e1;
    border-bottom-color: #ef4444;
    box-shadow: none;
}
.auth-float-field--with-toggle > .auth-password-wrap {
    display: flex;
    align-items: center;
    min-height: 52px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-bottom-width: 2px;
    border-bottom-color: #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.auth-float-field--with-toggle:not(.is-valid):not(.is-invalid):focus-within > .auth-password-wrap {
    border-color: #94a3b8;
    border-bottom-color: #94a3b8;
    box-shadow: 0 0 0 1px rgba(31, 100, 183, 0.12);
}
.auth-float-field--with-toggle.is-valid > .auth-password-wrap {
    border-color: #cbd5e1;
    border-bottom-color: #22c55e;
    box-shadow: none;
}
.auth-float-field--with-toggle.is-invalid > .auth-password-wrap {
    border-color: #cbd5e1;
    border-bottom-color: #ef4444;
    box-shadow: none;
}
.auth-float-field--with-toggle.is-valid:focus-within > .auth-password-wrap {
    border-bottom-color: #22c55e;
}
.auth-float-field--with-toggle.is-invalid:focus-within > .auth-password-wrap {
    border-bottom-color: #ef4444;
}
.auth-float-field--with-toggle > .auth-password-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 15px 10px 15px 13px;
    font-size: 16px;
    line-height: 1.45;
    color: #0f172a;
    caret-color: #0f172a;
    outline: none;
}
.auth-float-field--with-toggle > .auth-password-wrap input:focus {
    box-shadow: none;
    outline: none;
}
.auth-float-field--with-toggle > .auth-password-wrap input::placeholder {
    color: transparent;
}
.auth-float-field--with-toggle.is-filled > .auth-password-wrap input,
.auth-float-field--with-toggle:has(.auth-password-wrap input:not(:placeholder-shown)) > .auth-password-wrap input,
.auth-float-field--with-toggle:has(.auth-password-wrap input:-webkit-autofill) > .auth-password-wrap input {
    padding: 21px 10px 9px 13px;
}
.auth-float-field input,
.auth-float-field--with-toggle .auth-password-wrap input {
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}
.auth-allegro-title {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}
.auth-panel__hint {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.55;
    color: #334155;
    letter-spacing: -0.012em;
}
.auth-panel__lead {
    margin: -10px 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
    font-weight: 500;
}
.auth-forgot-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1f64b7;
    text-decoration: none;
}
.auth-forgot-link:hover {
    text-decoration: underline;
}
.auth-field-help--tight {
    margin-top: 8px;
}
.auth-or-divider {
    position: relative;
    text-align: center;
    margin: 22px 0;
}
.auth-or-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #e5e7eb;
}
.auth-or-divider span {
    position: relative;
    display: inline-block;
    padding: 0 14px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}
.auth-or-divider--plain span {
    text-transform: none;
    letter-spacing: 0;
}
.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-social-btn:hover {
    background: #f9fafb;
    border-color: #94a3b8;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06);
}
.auth-social-btn__icon {
    font-size: 18px;
}
.auth-page--allegro .auth-form-group {
    margin-bottom: 14px;
}
.auth-page--allegro .auth-form-group.auth-form-group--float {
    margin-bottom: 18px;
}
.auth-page--allegro .auth-form-group:not(.auth-form-group--float) input {
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #0f172a;
    padding: 13px 14px;
    font-size: 15px;
}
.auth-page--allegro .auth-form-group:not(.auth-form-group--float) input::placeholder {
    color: #94a3b8;
}
.auth-page--allegro .auth-form-group:not(.auth-form-group--float) input:focus {
    border-color: #1f64b7;
    box-shadow: 0 0 0 1px #1f64b7;
    outline: none;
}
.auth-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}
.auth-label-row label {
    margin-bottom: 0;
}
.auth-link-muted {
    font-size: 13px;
    font-weight: 600;
    color: #1f64b7;
    text-decoration: none;
    white-space: nowrap;
}
.auth-link-muted:hover {
    text-decoration: underline;
}
.auth-field-help {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}
.auth-page--allegro .auth-form-group:not(.auth-form-group--float) .auth-password-wrap input {
    padding-right: 48px;
}
.auth-page--allegro .auth-float-field--with-toggle .auth-password-toggle {
    position: static;
    transform: none;
    flex-shrink: 0;
    align-self: stretch;
    margin: 0;
    padding: 0 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
}
.auth-page--allegro .auth-password-toggle--icon {
    font-size: 17px;
    line-height: 1;
}
.auth-page--allegro .auth-password-toggle:hover {
    color: #1f64b7;
}
/* Компактная высота: форма регистрации */
.auth-page--allegro .auth-panel[data-auth-panel="register"] .auth-allegro-title {
    margin-bottom: 18px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.025em;
}
.auth-page--allegro .auth-panel[data-auth-panel="register"] .auth-form-group {
    margin-bottom: 12px;
}
.auth-page--allegro .auth-panel[data-auth-panel="register"] .auth-form-row {
    gap: 10px;
}
.auth-page--allegro .auth-panel[data-auth-panel="register"] .auth-password-checklist--allegro {
    margin: 4px 0 14px;
}
@media (max-width: 720px) {
    .auth-password-checklist li {
        white-space: normal;
    }
}
.auth-page--allegro .auth-panel[data-auth-panel="register"] .auth-confirm-match {
    min-height: 16px;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 12px;
}
.auth-page--allegro .auth-panel[data-auth-panel="register"] .auth-checkbox {
    margin: 8px 0 14px;
    font-size: 12px;
    line-height: 1.45;
    gap: 11px;
    align-items: flex-start;
}
.auth-page--allegro .auth-panel[data-auth-panel="register"] .auth-checkbox span {
    white-space: normal;
    font-size: 13px;
    line-height: 1.5;
}
.auth-page--allegro .auth-panel[data-auth-panel="register"] .auth-checkbox input {
    margin-top: 0;
}
.auth-page--allegro .auth-panel[data-auth-panel="register"] .btn-auth-cta {
    padding: 13px 18px;
    margin-top: 0;
}
.auth-page--allegro .auth-panel[data-auth-panel="register"] .auth-or-divider {
    margin: 14px 0;
}
.auth-page--allegro .auth-panel[data-auth-panel="register"] .auth-social-btn {
    padding: 12px 16px;
    font-size: 13px;
}
.auth-inline-link {
    color: #1f64b7;
    font-weight: 600;
    text-decoration: none;
}
.auth-inline-link:hover {
    text-decoration: underline;
}
.btn-auth-cta {
    width: 100%;
    margin-top: 6px;
    padding: 14px 18px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    font-family: inherit;
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.btn-auth-cta:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    box-shadow: 0 4px 14px rgba(31, 100, 183, 0.35);
    filter: none;
}
.auth-allegro-stack .auth-footnote {
    margin-top: 20px;
}
.auth-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 12px 0 18px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-secondary);
    cursor: default;
}
.auth-checkbox input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #1f64b7;
    flex-shrink: 0;
    cursor: pointer;
}
.auth-switch {
    margin: 18px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}
.auth-switch__btn {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 700;
    color: #1f64b7;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.auth-switch__btn:hover {
    color: #124b97;
}
.auth-footnote {
    margin: 16px 0 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.auth-footnote a {
    color: #1f64b7;
    font-weight: 600;
    text-decoration: none;
}
.auth-footnote a:hover {
    text-decoration: underline;
}
.btn-auth--lg {
    padding: 16px;
    font-size: 15px;
    border-radius: 10px;
    text-transform: none;
    letter-spacing: 0;
}
@media (max-width: 640px) {
    .auth-form-row {
        grid-template-columns: 1fr;
    }
    .auth-card {
        padding: 18px 16px 18px;
        border-radius: 6px;
    }
    .auth-allegro-stack--wide .auth-card {
        padding-left: 18px;
        padding-right: 18px;
    }
    .auth-page--allegro {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ——— Поиск: боковая панель ——— */
.search-groups-sidebar {
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.search-sidebar-head { margin-bottom: 16px; flex-shrink: 0; }
.search-sidebar-title {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.search-sidebar-desc { font-size: 12px; color: var(--text-gray); line-height: 1.4; }
.search-groups-nav {
    flex: 1;
    overflow-y: auto;
    margin: 0 -6px 16px 0;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.search-groups-nav::-webkit-scrollbar { width: 5px; }
.search-groups-nav::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }
.search-group-link {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.35;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.search-group-link:hover {
    background-color: rgba(var(--accent-rgb), 0.13);
    background-image: none;
    color: var(--text-white);
}
.search-groups-empty { font-size: 13px; color: var(--text-gray); line-height: 1.5; }
.search-catalog-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 6px;
    background-color: rgba(var(--accent-rgb), 0.16);
    background-image: none;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.search-catalog-link:hover {
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta-hover);
    color: var(--text-on-primary);
}
.search-inline-form {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.search-inline-form input[type="search"],
.search-inline-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    height: 50px;
    padding: 0 18px;
    background: var(--bg-header);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    color: white;
    font-size: 15px;
    outline: none;
}
.search-inline-form input:focus { border-color: var(--accent-blue); }
.btn-search-inline {
    height: 50px;
    padding: 0 24px;
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    font-family: inherit;
}
.btn-search-inline:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    filter: none;
}
.search-results-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}
.search-results-title { margin-bottom: 0; }
.search-count { color: var(--text-gray); font-size: 14px; }
.search-count strong { color: var(--text-white); }
.search-intro { color: var(--text-gray); margin-bottom: 24px; max-width: 640px; line-height: 1.55; }

/* ——— Профиль: заказы ——— */
.btn-save {
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    border: none;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-transform: uppercase;
    margin-top: 20px;
}
.btn-save:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    filter: none;
}
.profile-layout .order-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(31, 100, 183, 0.14);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(31, 100, 183, 0.08);
}
.order-header {
    padding: 20px;
    border-bottom: 1px solid rgba(31, 100, 183, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(31, 100, 183, 0.06);
    flex-wrap: wrap;
    gap: 12px;
}
.order-id { font-size: 18px; font-weight: 800; color: var(--accent-deep); }
.order-date { color: var(--text-gray); font-size: 14px; margin-top: 5px; display: block; }
.order-status { font-size: 13px; font-weight: bold; padding: 6px 12px; border-radius: 20px; text-transform: uppercase; }
.s-new { background: rgba(245, 158, 11, 0.12); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.35); }
.s-acc { background: rgba(var(--accent-rgb), 0.13); color: var(--accent-deep); border: 1px solid rgba(var(--accent-rgb), 0.35); }
.s-sent { background: rgba(34, 197, 94, 0.12); color: #166534; border: 1px solid rgba(34, 197, 94, 0.35); }
.s-canc { background: rgba(100, 116, 139, 0.12); color: var(--text-secondary); border: 1px solid rgba(100, 116, 139, 0.35); }
.order-body { padding: 20px; }
.o-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    border-bottom: 1px dashed rgba(31, 100, 183, 0.2);
    padding-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}
.o-item:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.o-item a { color: var(--sb-chevron); text-decoration: none; transition: 0.2s; }
.o-item a:hover { color: var(--accent-deep); text-decoration: underline; }

/* ——— Адаптив ——— */
@media (max-width: 992px) {
    .main-layout { grid-template-columns: 1fr; }
    .sidebar-wrapper { height: auto; position: relative; }
    .sidebar {
        position: relative;
        max-height: 320px;
    }
    .sidebar.expanded { max-height: none; }
    .hero { min-height: 300px; height: 44vw; max-height: 440px; }
    :root { --main-height: auto; }
    .main-header {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .top-nav { display: none; }
    .home-flow { padding: 18px 16px 16px; }
    .home-flow-grid { grid-template-columns: 1fr; }
    .home-intents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trust-screen { padding: 20px; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-badges { grid-template-columns: 1fr 1fr; gap: 16px; }
    .tb-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 12px 16px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .b2b-banner { flex-direction: column; text-align: left; }
    .b2b-icon { display: none; }
    .category-layout { grid-template-columns: 1fr; }
    .filter-sidebar { position: relative; max-height: none; }
    .auth-tabs { grid-template-columns: 1fr; }
    .auth-box { padding: 22px; }
    .search-groups-sidebar { max-height: none; position: relative; top: 0; }
}

@media (max-width: 520px) {
    .home-intents { grid-template-columns: 1fr; }
    .home-flow-actions { flex-direction: column; }
    .btn-flow-primary, .btn-flow-secondary { width: 100%; }
    .trust-screen { padding: 16px; }
    .trust-screen-head h2 { font-size: 20px; }
    .trust-actions { flex-direction: column; }
    .btn-trust-primary, .btn-trust-secondary { width: 100%; }
    .trust-badges { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .phone-num { font-size: 15px; }
}

@media (max-width: 900px) {
    .cart-layout,
    .cart-allegro-layout,
    .checkout-layout { grid-template-columns: 1fr; }
    .cart-allegro-summary__card,
    .checkout-totals,
    .checkout-summary { position: static; }
    .cart-allegro-item {
        align-items: flex-start;
        gap: 14px;
        padding: 16px;
    }
    .cart-allegro-item__img {
        width: 88px;
        height: 108px;
    }
    .profile-layout { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .profile-personal-phone,
    .profile-personal-email {
        grid-column: auto;
        grid-row: auto;
    }
    .product-page .product-grid { grid-template-columns: 1fr; }
    .specs-tab-layout { grid-template-columns: 1fr; }
    .reviews-container { grid-template-columns: 1fr; }
    .main-image-box { height: 320px; }
}

/* --- Light marketplace redesign (home + header) --- */
body {
    background: #ffffff;
    background-image: none;
    color: #1f2a3d;
}

.gal-header {
    background: #fff;
    border: none;
    box-shadow: none;
}

.gal-topline {
    border-bottom: none;
    background: #fff;
}

.gal-topline-inner {
    min-height: 44px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.gal-topline-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.gal-topline-logo + .topline-dd {
    margin-left: 52px;
}

.gal-topline-left { justify-self: start; }

.gal-topline .gal-topline-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1;
    color: #0a0a0a;
    text-decoration: none;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.gal-topline .gal-topline-logo span {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    color: var(--mk-blue, #1f64b7);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 8px rgba(31, 100, 183, 0.12);
}

.gal-topline .gal-topline-logo:hover {
    color: #1a1a1a;
}

.gal-topline .gal-topline-logo:hover span {
    color: var(--mk-blue-deep, #124b97);
}

.gal-topline a,
.gal-topline span {
    color: #111111;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.gal-topline a:hover { color: #124b97; }
.gal-topline i { color: #1f64b7; margin-right: 4px; font-size: 16px; }

.topline-dd {
    position: relative;
}

.topline-dd-trigger {
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    color: #111111;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    padding: 2px 0;
    height: auto;
    min-height: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.topline-dd-trigger i {
    font-size: 11px;
    margin-right: 0;
    color: #4b6d95;
    transition: transform 0.2s ease, color 0.2s ease;
}

.topline-dd-trigger:focus-visible {
    outline: 2px solid rgba(31, 100, 183, 0.35);
    outline-offset: 2px;
}

.topline-dd-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 208px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #d4e2f1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 32px rgba(14, 44, 88, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1400;
}

.topline-dd-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 12px;
}

.topline-dd-menu a {
    display: block;
    border-radius: 8px;
    color: #1f3656;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 10px;
}

.topline-dd-menu a:hover {
    background: #eef5ff;
    color: #124b97;
}
.topline-dd-menu a.is-active {
    background: #e3efff;
    color: #124b97;
    font-weight: 700;
}

.topline-dd.is-open .topline-dd-trigger {
    color: #124b97;
}

.topline-dd.is-open .topline-dd-trigger i {
    transform: rotate(180deg);
    color: #1f64b7;
}

.topline-dd.is-open .topline-dd-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gal-main-header {
    grid-template-columns: 150px 1fr auto;
    min-height: 84px;
    gap: 14px;
    padding: 14px 0;
    align-items: center;
}

.desktop-search-host {
    min-width: 0;
}

.gal-mainbar {
    position: relative;
    background: #fff;
    border-top: none;
    border-bottom: 1px solid #e8eef5;
    box-shadow: none;
}

@media (min-width: 769px) {
    .gal-mainbar {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        z-index: 1200;
        background: #fff;
        border-bottom: 1px solid #e8eef5;
        box-shadow:
            0 6px 20px rgba(15, 23, 42, 0.08),
            0 2px 6px rgba(15, 23, 42, 0.04);
    }
}

.gal-mainbar-spacer {
    display: none !important;
}

.gal-logo {
    color: #0f63b6;
    font-size: 46px;
    letter-spacing: 0.02em;
    line-height: 1;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
}

.gal-logo span { color: var(--mk-blue); }

.gal-catalog-btn,
.btn-categories {
    height: var(--ui-btn-h-md);
    min-height: var(--ui-btn-h-md);
    border-radius: var(--ui-control-radius-lg);
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    border: 1px solid var(--ui-primary-border);
    box-shadow: var(--ui-primary-shadow);
    color: var(--text-on-primary);
    font-size: 15px;
    font-weight: 800;
    gap: 8px;
    padding: 0 16px;
    text-transform: none;
    line-height: 1;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.gal-catalog-btn i,
.btn-categories i {
    color: var(--text-on-primary);
    font-size: 16px;
    line-height: 1;
}

.gal-catalog-btn:hover,
.btn-categories:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    border-color: #0f4f9d;
    box-shadow: var(--ui-primary-shadow-hover);
    filter: none;
}

/* Поиск в шапке: единая «капсула» — поле + кнопка без зазора */
.gal-main-header .search-container {
    --gal-search-h: 44px;
    --gal-search-radius: 10px;
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: var(--gal-search-h);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: var(--gal-search-radius);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    overflow: visible;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gal-main-header .search-container:focus-within {
    border-color: var(--accent-blue);
    box-shadow: var(--ui-focus-ring);
}
.gal-main-header .search-container input {
    flex: 1 1 auto;
    min-width: 0;
    height: var(--gal-search-h);
    min-height: var(--gal-search-h);
    padding: 0 16px;
    font-size: 15px;
    color: #1e293b;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}
.gal-main-header .search-container input:focus {
    border: none;
    box-shadow: none;
}

.search-container input::placeholder { color: var(--text-muted); }
.gal-main-header .search-container input::placeholder {
    color: #94a3b8;
}

.gal-main-header .search-container .btn-search-go {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    height: var(--gal-search-h);
    min-height: var(--gal-search-h);
    margin: 0;
    padding: 0;
    align-self: stretch;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0 var(--gal-search-radius) var(--gal-search-radius) 0;
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.gal-main-header .search-container .btn-search-go:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    filter: none;
}
.gal-main-header .search-container .btn-search-go i {
    font-size: 17px;
}

.gal-main-header .search-dropdown {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 8px;
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}
.gal-main-header .search-dropdown .sd-section-title {
    padding: 12px 14px 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #94a3b8;
    background: #fff;
}
.gal-main-header .search-dropdown .sd-products {
    display: flex;
    flex-direction: column;
}
.gal-main-header .search-dropdown .sd-prod-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    transition: background-color 0.15s ease;
}
.gal-main-header .search-dropdown .sd-prod-item:hover {
    background-color: #f8fafc;
}
.gal-main-header .search-dropdown .sd-prod-item--out {
    opacity: 0.72;
}
.gal-main-header .search-dropdown .sd-prod-img {
    width: 48px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}
.gal-main-header .search-dropdown .sd-prod-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.gal-main-header .search-dropdown .sd-prod-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gal-main-header .search-dropdown .sd-prod-price {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--accent-blue);
    white-space: nowrap;
}
.gal-main-header .search-dropdown .sd-show-all {
    display: block;
    padding: 12px 14px 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-blue);
    background: #fff;
    border-top: 1px solid #eef2f7;
    text-decoration: none;
}
.gal-main-header .search-dropdown .sd-show-all:hover {
    background: var(--accent-blue-soft);
    color: var(--accent-deep);
}
.gal-main-header .search-dropdown .sd-status {
    padding: 14px;
    color: var(--text-muted);
    font-size: 13px;
    background: #fff;
}
.gal-main-header .search-dropdown .sd-status--loading {
    color: #1f64b7;
}
.gal-main-header .search-dropdown .sd-highlight {
    background: #fef08a;
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

.icon-group {
    gap: 6px;
    align-items: center;
}

.icon-item {
    width: 78px;
    min-width: 78px;
    height: auto;
    background: transparent;
    border: 1px solid transparent;
    flex-direction: column;
    gap: 4px;
    color: #1f2937;
    font-size: 22px;
    padding: 2px 0 0;
    text-align: center;
}

.icon-item i {
    /* Slightly thicken icon strokes for better HiDPI readability */
    -webkit-text-stroke: 0.45px currentColor;
}

.gal-icon-label {
    font-size: 13px;
    line-height: 1.1;
    color: #1f2937;
    font-weight: 500;
}

.badge {
    top: -6px;
    right: 10px;
    border: 1px solid #fff;
    background: #d63b34;
    font-size: 12px;
    padding: 2px 7px;
}

.icon-group .badge {
    top: -8px;
    right: 6px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    transform: none;
    box-shadow: 0 2px 6px rgba(15, 49, 89, 0.16);
}

.icon-group .badge.is-hidden {
    display: none;
}

.home-unique .main-layout { margin-top: 10px; }

.home-unique .sidebar {
    background: #fff;
    border: 1px solid #e4eaf4;
    box-shadow: 0 8px 20px rgba(33, 56, 97, 0.08);
}

.home-unique .side-link {
    color: #2f3a52;
    border-bottom: 1px solid #edf1f8;
    font-weight: 500;
}

.home-unique .side-link:hover {
    background: #f7f9ff;
    color: #1b4c9f;
}

.home-unique .icon-box {
    border: 1px solid #dae4f3;
    background: #f5f8fe;
    color: #1b4c9f;
}

.home-unique .hero {
    border-radius: 12px;
    border: 1px solid #e8edf5;
    box-shadow: none;
}

.home-unique .hero::before { background: linear-gradient(90deg, rgba(9, 35, 75, 0.08) 0%, rgba(9, 35, 75, 0.02) 45%, rgba(9, 35, 75, 0.1) 100%); }
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    line-height: 0;
    font-size: 0;
    text-indent: -9999px;
    overflow: hidden;
    display: block;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-dot.is-active {
    width: 24px;
    min-width: 24px;
    border-radius: 999px;
    background: #1f64b7;
}

.hero-dot:focus-visible {
    outline: 2px solid #1f64b7;
    outline-offset: 2px;
}
.home-hero-block {
    display: block;
    position: relative;
}
/* Стрелки баннера на главной — спокойный hover без «вспышки» градиента */
.home-unique .hero .arrow {
    opacity: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    background-image: none;
    border: 1px solid rgba(255, 255, 255, 0.75);
    color: var(--accent-deep);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}
.home-unique .hero .arrow i {
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}
.home-unique .hero .arrow:hover {
    background-color: var(--accent-blue);
    background-image: none;
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-on-primary);
    box-shadow: 0 6px 20px rgba(31, 100, 183, 0.4);
    transform: translateY(-50%) scale(1.05);
}
.home-unique .hero .arrow:active {
    transform: translateY(-50%) scale(0.98);
    box-shadow: 0 2px 10px rgba(31, 100, 183, 0.35);
}
.home-unique .hero .arrow:focus-visible {
    opacity: 1;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.home-groups-strip {
    margin-top: 14px;
    padding: 8px 0 32px;
}
.home-groups-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.home-groups-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1f3656;
    letter-spacing: -0.02em;
}
.home-groups-hint {
    display: none;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.home-groups-hint i {
    color: #1f64b7;
    font-size: 11px;
}
.home-groups-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
}
.home-groups-viewport {
    position: relative;
    min-width: 0;
}
.home-groups-fade {
    display: none;
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 36px;
    background: linear-gradient(90deg, rgba(245, 248, 252, 0) 0%, rgba(245, 248, 252, 0.92) 70%, rgba(245, 248, 252, 1) 100%);
    z-index: 2;
}
.home-groups-viewport.is-at-end .home-groups-fade {
    opacity: 0;
}
.home-groups-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 20px) / 6);
    gap: 4px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 8px 2px 8px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.home-groups-track::-webkit-scrollbar {
    display: none;
}

.home-groups-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #d6deeb;
    background: #ffffff;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
    font-size: 16px;
    align-self: flex-start;
    margin-top: 54px;
}

.home-groups-nav:hover {
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta-hover);
    border-color: #124b97;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(31, 100, 183, 0.28);
}

.home-groups-nav:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(31, 100, 183, 0.22);
}

.home-groups-nav:focus-visible {
    outline: 2px solid rgba(31, 100, 183, 0.35);
    outline-offset: 2px;
}

.home-groups-nav:disabled {
    opacity: 0.55;
    cursor: default;
    box-shadow: none;
}

.home-group-pill {
    text-decoration: none;
    color: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 204px;
    border-radius: 10px;
    padding: 6px 6px 4px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-group-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.07);
}

.home-group-thumb {
    width: 152px;
    height: 152px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-input);
    border-radius: 10px;
}

.home-group-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-group-thumb i {
    font-size: 38px;
    color: #1f64b7;
}

.home-group-name {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    line-height: 1.15;
    color: #1f2a3d;
    transition: color 0.2s ease;
    /* Две строки текста — одинаковая высота подписи у всех плашек в полосе групп */
    min-height: calc(2 * 1.15 * 1em);
    width: 100%;
    display: block;
    box-sizing: border-box;
}

/* Главная: карусели товаров */
.home-products-strip {
    margin-top: 28px;
    margin-bottom: 36px;
}

.home-products-strip + .home-products-strip {
    margin-top: 22px;
}

.home-products-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.home-products-title {
    margin: 0;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 800;
    color: #1f3656;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.home-products-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    color: #1f64b7;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-products-more i {
    font-size: 11px;
}

.home-products-more:hover {
    color: #124b97;
}

.home-products-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
}

.home-products-viewport {
    position: relative;
    min-width: 0;
}

.home-products-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 48px) / 5);
    gap: 12px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 4px 2px 8px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.home-products-track::-webkit-scrollbar {
    display: none;
}

.home-products-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #d6deeb;
    background: #fff;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home-products-nav:hover {
    border-color: #1f64b7;
    color: #1f64b7;
    transform: translateY(-1px);
}

.home-products-nav:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

.home-product-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    scroll-snap-align: start;
}

.hpc-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 148px;
    padding: 4px;
}

.hpc-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3ea54c 0%, #2d8a45 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(45, 122, 69, 0.25);
}

.home-products-strip--new .home-products-title::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 8px;
    border-radius: 50%;
    background: #3ea54c;
    vertical-align: middle;
    box-shadow: 0 0 0 4px rgba(62, 165, 84, 0.18);
}

.hpc-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.hpc-img-link img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hpc-fav-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
    transition: color 0.2s ease, transform 0.2s ease;
}

.hpc-fav-btn:hover {
    color: #1f64b7;
}

.hpc-fav-btn.active {
    color: #ef4444;
}

.hpc-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.7em;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #1f3656;
    text-decoration: none;
}

.hpc-title:hover {
    color: #1f64b7;
}

.hpc-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.hpc-price {
    font-size: 17px;
    font-weight: 800;
    color: #1f3656;
    line-height: 1;
}

.hpc-currency {
    font-size: 14px;
    margin-left: 1px;
}

.hpc-status {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.hpc-status--in {
    color: #15803d;
}

.hpc-status--out {
    color: #b91c1c;
}

/* Главная: доверие */
.home-trust {
    position: relative;
    margin-top: 36px;
    margin-bottom: 0;
    padding: 28px 28px 20px;
    border: 1px solid rgba(31, 100, 183, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(31, 100, 183, 0.07) 0%, transparent 42%),
        linear-gradient(165deg, #ffffff 0%, #f6faff 48%, #eef5ff 100%);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.home-trust__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: radial-gradient(rgba(31, 100, 183, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 72%);
    pointer-events: none;
}

.home-trust__glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
    opacity: 0.55;
}

.home-trust__glow--left {
    top: -80px;
    left: -60px;
    background: rgba(31, 100, 183, 0.14);
}

.home-trust__glow--right {
    bottom: -90px;
    right: -40px;
    background: rgba(16, 185, 129, 0.1);
}

.home-trust__head {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 22px 28px;
    align-items: start;
    margin-bottom: 22px;
}

.home-trust__head-main {
    max-width: 560px;
}

.home-trust__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(31, 100, 183, 0.1);
    border: 1px solid rgba(31, 100, 183, 0.16);
    color: #1f64b7;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-trust__title {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 900;
    color: #1f3656;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.home-trust__lead {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.55;
}

.home-trust__stats {
    margin: 0;
    padding: 14px 16px;
    list-style: none;
    display: grid;
    gap: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(226, 234, 244, 0.95);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.home-trust__stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-trust__stat-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #eef5ff 0%, #dceaff 100%);
    color: #1f64b7;
    font-size: 13px;
}

.home-trust__stat-text {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.home-trust__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.home-trust__item {
    --trust-accent: #1f64b7;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100%;
    padding: 16px 16px 14px;
    border: 1px solid rgba(226, 234, 244, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    overflow: hidden;
}

.home-trust__item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--trust-accent), color-mix(in srgb, var(--trust-accent) 55%, white));
    opacity: 0.85;
    transition: height 0.22s ease, opacity 0.22s ease;
}

.home-trust__item:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--trust-accent) 28%, white);
    box-shadow: 0 14px 32px color-mix(in srgb, var(--trust-accent) 14%, transparent);
}

.home-trust__item:hover::before {
    height: 4px;
    opacity: 1;
}

.home-trust__item--delivery { --trust-accent: #1f64b7; }
.home-trust__item--pay { --trust-accent: #c2410c; }
.home-trust__item--quality { --trust-accent: #15803d; }
.home-trust__item--support { --trust-accent: #6d28d9; }

.home-trust__item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.home-trust__step {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--trust-accent) 42%, #94a3b8);
}

.home-trust__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.home-trust__item--delivery .home-trust__partners {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-trust__partner {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #dbe6f3;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.home-trust__partner img {
    display: block;
}

.home-trust__item--pay .home-trust__icon {
    background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
    color: #c2410c;
}

.home-trust__item--quality .home-trust__icon {
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%);
    color: #15803d;
}

.home-trust__item--support .home-trust__icon {
    background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 100%);
    color: #6d28d9;
}

.home-trust__item-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #1f3656;
    line-height: 1.3;
}

.home-trust__item-text {
    margin: 6px 0 0;
    flex: 1 1 auto;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.home-trust__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.home-trust__tags li {
    padding: 4px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--trust-accent) 8%, white);
    border: 1px solid color-mix(in srgb, var(--trust-accent) 16%, white);
    color: color-mix(in srgb, var(--trust-accent) 72%, #334155);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.home-trust__foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(226, 234, 244, 0.95);
}

.home-trust__foot-label {
    margin: 0;
    flex-shrink: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-trust__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.home-trust__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 999px;
    border: 1px solid #dbe6f3;
    background: #fff;
    color: #1f64b7;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-trust__link > i:first-child {
    font-size: 12px;
    opacity: 0.85;
}

.home-trust__link-arrow {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.home-trust__link:hover {
    background: #fff;
    border-color: #9ec5ef;
    box-shadow: 0 6px 16px rgba(31, 100, 183, 0.1);
    transform: translateY(-1px);
}

.home-trust__link:hover .home-trust__link-arrow {
    transform: translateX(2px);
}

/* Главная: CTA «Не нашли запчасть?» */
.home-help-cta {
    margin: 24px 0 24px;
}

.home-help-cta__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 268px);
    overflow: hidden;
    border: 1px solid #e2eaf4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.home-help-cta__main {
    position: relative;
    z-index: 1;
    padding: 22px 24px;
}

.home-help-cta__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.home-help-cta__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #eef5ff 0%, #dceaff 100%);
    border: 1px solid rgba(31, 100, 183, 0.14);
    color: #1f64b7;
    font-size: 20px;
}

.home-help-cta__head-text {
    min-width: 0;
    padding-top: 2px;
}

.home-help-cta__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(31, 100, 183, 0.09);
    color: #1f64b7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.home-help-cta__title {
    margin: 0;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 900;
    color: #1f3656;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.home-help-cta__text {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.home-help-cta__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.home-help-cta__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2eaf4;
    text-align: center;
}

.home-help-cta__step-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 100, 183, 0.08);
    color: #1f64b7;
    font-size: 14px;
}

.home-help-cta__step-label {
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.home-help-cta__step--photo .home-help-cta__step-icon {
    background: rgba(62, 165, 84, 0.12);
    color: #3ea54c;
}

.home-help-cta__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 22px 20px;
    background: #f6f9fd;
    border-left: 1px solid #e2eaf4;
}

.home-help-cta__panel-label {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-help-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.home-help-cta__btn {
    width: 100%;
    justify-content: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 800;
    border-radius: 12px;
    min-height: 46px;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.home-help-cta__btn:hover {
    transform: translateY(-1px);
}

.home-help-cta__btn--chat {
    box-shadow: 0 8px 22px rgba(31, 100, 183, 0.22);
}

.home-help-cta__btn i {
    font-size: 14px;
}

.home-office-map {
    margin: 8px 0 36px;
    padding: 20px;
    border: 1px solid #d3e2f5;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 56%, #eef8ff 100%);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(380px, 1.7fr);
    gap: 20px;
    align-items: stretch;
    box-shadow: 0 14px 32px rgba(22, 47, 89, 0.08);
}

.home-office-map__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    color: #1f2a3d;
}

.home-office-map__eyebrow {
    margin: 0;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.09em;
    color: var(--text-secondary);
    font-weight: 700;
}

.home-office-map__content h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.home-office-map__address {
    margin: 0;
    color: #334155;
    font-size: 16px;
    font-weight: 600;
    max-width: 520px;
}

.home-office-map__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-office-map__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
}

.home-office-map__link--primary {
    color: var(--text-on-primary);
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    border: 1px solid #124b97;
    border-radius: 10px;
    padding: 10px 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-office-map__link--primary:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(18, 75, 151, 0.26);
}

.home-office-map__link--ghost {
    color: #1f4d8f;
    background: #ffffff;
    border: 1px solid #c6d7ef;
    border-radius: 10px;
    padding: 10px 14px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-office-map__link--ghost:hover {
    border-color: #86a8d8;
    transform: translateY(-1px);
}

.home-office-map__frame-wrap {
    position: relative;
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #d8e3f4;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.home-office-map__floating-link {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0f3159;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(133, 159, 195, 0.5);
    border-radius: 999px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 10px;
    backdrop-filter: blur(2px);
}

.home-office-map__frame {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
    transition: transform 0.35s ease;
}

.home-office-map__frame-wrap:hover .home-office-map__frame {
    transform: scale(1.015);
}

.home-unique .b2b-banner {
    border: 1px solid #dbe6f5;
    background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: 0 10px 24px rgba(31, 60, 110, 0.09);
    margin-bottom: 36px;
}

.home-unique .b2b-content h2 { color: #1f2a3d; }
.home-unique .b2b-content h2 span { color: #3ea54c; }
.home-unique .b2b-content p { color: var(--text-secondary); }

.home-unique .b2b-feature {
    background: #fff;
    border: 1px solid #dde6f4;
    color: #3e4b66;
}

.home-unique .btn-b2b {
    color: #fff;
}

.home-unique .b2b-icon { color: rgba(31, 100, 183, 0.16); }

@media (max-width: 992px) {
    .gal-main-header { grid-template-columns: 1fr; }
    .gal-topline .gal-topline-logo { font-size: 24px; }
    .gal-topline-nav { display: none; }
    :root { --main-height: 360px; }
    .icon-group { justify-content: flex-start; gap: 6px; }
    .icon-item { width: 74px; min-width: 74px; font-size: 20px; }
    .gal-logo { font-size: 38px; }
    .home-groups-row { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 6px; }
    .home-groups-track { grid-auto-columns: calc((100% - 8px) / 2); }
    .home-products-row { grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 6px; }
    .home-products-track { grid-auto-columns: calc((100% - 24px) / 3); }
    .home-trust__grid { grid-template-columns: 1fr; }
    .home-trust__head {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .home-trust__foot {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .home-trust__links {
        justify-content: flex-start;
    }
    .home-trust__link {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }
    .home-help-cta__inner {
        grid-template-columns: 1fr;
    }
    .home-help-cta__main {
        padding: 20px 18px 18px 24px;
    }
    .home-help-cta__panel {
        padding: 16px 18px 20px;
        border-left: none;
        border-top: 1px solid #e2eaf4;
    }
    .home-help-cta__panel-label {
        display: none;
    }
    .home-help-cta__steps {
        gap: 8px;
    }
    .home-help-cta__step {
        padding: 10px 6px;
    }
    .home-help-cta__step-label {
        font-size: 10px;
    }
    .home-group-thumb { width: 92px; height: 92px; }
    .home-group-name { font-size: 16px; }
    .home-office-map {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 12px;
        margin-bottom: 28px;
    }
    .home-office-map__content h2 { font-size: 22px; }
    .home-office-map__actions { gap: 8px; }
    .home-office-map__link { width: 100%; justify-content: center; }
    .home-office-map__frame-wrap,
    .home-office-map__frame { min-height: 240px; }
    .home-office-map__floating-link {
        top: auto;
        bottom: 10px;
        right: 10px;
    }
}

/* --- MIRKOM logo palette (см. :root в начале файла) --- */

body {
    background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
    color: var(--mk-text);
}

.gal-topline {
    background: #fff;
    border-bottom: none;
}

.gal-topline a,
.gal-topline span {
    color: #0f3159;
}

.gal-topline a:hover { color: var(--mk-blue-deep); }
.gal-topline i { color: var(--mk-blue); }

.gal-topline-switchers {
    display: flex;
    align-items: center;
    gap: 46px;
    justify-self: end;
}

.topline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 30px;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid #d1dfef;
    background: #f5f9ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.topline-toggle-option {
    height: 24px;
    min-width: 38px;
    padding: 0 11px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #355980;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.topline-toggle-option:hover {
    color: #0f4e99;
    background: rgba(31, 100, 183, 0.08);
}

.topline-toggle-option.is-active {
    background: var(--gradient-cta);
    color: var(--text-on-primary);
    box-shadow: 0 1px 4px rgba(31, 100, 183, 0.35);
}

.topline-toggle-option:focus-visible {
    outline: 2px solid rgba(31, 100, 183, 0.4);
    outline-offset: 0;
}

.topline-phone {
    color: #0f4e99;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    padding: 0 2px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.topline-phone-chevron {
    font-size: 10px;
    color: #4b6d95;
    transition: transform 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.topline-phone:hover {
    color: #124b97;
}

.topline-phone:hover span {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.topline-contact:hover .topline-phone-chevron,
.topline-contact:focus-within .topline-phone-chevron {
    transform: rotate(180deg);
    color: #1f64b7;
}

.topline-contact {
    position: relative;
}

.topline-contact-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(348px, calc(100vw - 24px));
    padding: 16px 16px 16px;
    border-radius: 14px;
    border: 1px solid #d4e2f1;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 18px 40px rgba(14, 44, 88, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1400;
    box-sizing: border-box;
    overflow: hidden;
}

/* Невидимый «мост» между номером и панелью: без него курсор в зазоре не попадает в .topline-contact и меню закрывается */
.topline-contact-dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 14px;
}

.topline-contact-head {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5edf7;
}

.topline-contact-kicker {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #174f90;
}

.topline-contact-sub {
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-secondary);
}

.topline-contact:hover .topline-contact-dropdown,
.topline-contact:focus-within .topline-contact-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.topline-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 7px;
    color: #243b59;
    font-size: 15px;
    font-weight: 600;
}

.topline-contact-row i {
    color: #96a6ba;
    width: 16px;
    text-align: center;
}

.topline-contact-row a {
    color: #243b59;
    text-decoration: none;
}

.topline-contact-row a:hover {
    color: #1f64b7;
}

.topline-contact-messengers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 12px;
    padding-top: 10px;
    border-top: 1px dashed #dbe7f4;
}

.topline-contact-msg {
    min-width: 0;
    width: 100%;
    min-height: 56px;
    padding: 8px 4px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1f4f86;
    background: #eef6ff;
    border: 1px solid #c9dbef;
    font-weight: 700;
    gap: 4px;
    transition: 0.2s ease;
    box-sizing: border-box;
}

.topline-contact-msg i {
    font-size: 18px;
    line-height: 1;
}

.topline-contact-msg--tg::after {
    content: "Telegram";
    font-size: 10px;
    line-height: 1.15;
    font-family: inherit;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topline-contact-msg--viber {
    color: #5a3f90;
    background: #f2edfb;
    border-color: #d4c7ec;
}

.topline-contact-msg--viber::after {
    content: "Viber";
    font-size: 10px;
    line-height: 1.15;
    font-family: inherit;
    text-align: center;
}

.topline-contact-msg--wa {
    color: #1a6b42;
    background: #eaf8ef;
    border-color: #b8e0c8;
}

.topline-contact-msg--wa::after {
    content: "WhatsApp";
    font-size: 10px;
    line-height: 1.15;
    font-family: inherit;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topline-contact-msg--tg:hover {
    background: #e3f0ff;
    border-color: #9dc1e6;
}

.topline-contact-msg--viber:hover {
    background: #e9def9;
    border-color: #b9a5df;
}

.topline-contact-msg--wa:hover {
    background: #d9f2e3;
    border-color: #8fd4a8;
}

.topline-contact-form {
    border-top: 1px dashed #dbe7f4;
    padding-top: 10px;
}

.topline-contact-form .topline-contact-title {
    color: #1f3f69;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
}

.topline-contact-form p {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 10px;
}

.topline-contact-form label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin: 8px 0 6px;
}

.topline-contact-form input {
    width: 100%;
    height: 40px;
    border: 1px solid #c6d4e3;
    border-radius: 8px;
    background: #f9fbfe;
    color: #243b59;
    padding: 0 12px;
    font-size: 15px;
    outline: none;
}

.topline-contact-form input:focus {
    border-color: #1f64b7;
    background: #ffffff;
}

.topline-contact-form button {
    width: 100%;
    margin-top: 12px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background-color: var(--accent-blue);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.topline-contact-form button:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    filter: none;
}
.topline-contact-form.is-sending button {
    opacity: 0.75;
    cursor: wait;
}
/* Фон/рамка — как .cart-flash--success (корзина, оформление) */
.topline-callback-success.cart-flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    text-align: left;
    animation: topline-callback-in 0.28s ease;
}
.topline-callback-success[hidden] {
    display: none !important;
}
.topline-contact-form.is-sent [data-callback-fields] {
    display: none !important;
}
.topline-contact-form.is-sent .topline-callback-success {
    display: flex !important;
}
.topline-contact-form.is-sent {
    min-height: 88px;
    margin-top: 4px;
    padding: 2px 0 4px;
    border-top-color: transparent;
}
.topline-callback-success__icon {
    flex-shrink: 0;
    font-size: 1.35rem;
    line-height: 1;
    color: #22c55e;
    margin-top: 1px;
}
.topline-callback-success__text {
    min-width: 0;
    padding-top: 2px;
}
.topline-callback-success strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}
.topline-callback-success p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
    opacity: 0.92;
}
@keyframes topline-callback-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .gal-topline-switchers { gap: 46px; }
    .topline-toggle {
        height: 28px;
        padding: 2px;
    }
    .topline-toggle-option {
        min-width: 34px;
        height: 22px;
        padding: 0 9px;
        font-size: 11px;
    }
    .topline-phone { font-size: 13px; }
    .topline-contact-close {
        display: flex;
    }
    .topline-contact:hover .topline-contact-dropdown,
    .topline-contact:focus-within .topline-contact-dropdown {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(12px);
    }
    .topline-contact-dropdown {
        display: block;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom, 0px));
        top: auto;
        width: auto;
        padding-top: 42px;
        max-height: min(88vh, 680px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(16px);
    }
    .topline-contact.is-mobile-open .topline-contact-dropdown {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .topline-contact.is-mobile-open .topline-phone-chevron {
        transform: rotate(180deg);
    }
    body.topline-contact-sheet-open {
        overflow: hidden;
    }
}

.topline-contact-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 1px solid #c6d8ec;
    border-radius: 50%;
    background: #fff;
    color: #576878;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.topline-contact-close:hover {
    color: #1f64b7;
    border-color: #1f64b7;
}
.topline-contact-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1490;
    background: rgba(16, 35, 63, 0.45);
}
.topline-contact-backdrop[hidden] {
    display: none !important;
}

.gal-mainbar {
    background: #ffffff;
    border-bottom: 1px solid #e8eef5;
}


.gal-logo { color: #0a0a0a; }
.gal-logo span { color: var(--mk-blue); }
.logo span,
.footer-logo span { color: var(--mk-blue); }

/* Каталог / CTA — стили в блоке .gal-catalog-btn выше */

.icon-item { color: #0f3159; }
.gal-icon-label { color: #0f3159; }
.badge { background: var(--mk-red); }

.hero-dot.is-active { background: var(--mk-blue-deep); }

.home-group-thumb i { color: var(--mk-blue); }

.home-group-name {
    color: #0f3159;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* --- UI kit: icon and control consistency --- */
.gal-catalog-btn,
.btn-categories {
    border-radius: var(--ui-control-radius-lg);
}

.search-container {
    border-radius: var(--ui-control-radius);
}

/* радиус кнопки поиска — в блоке .gal-main-header .search-container выше */

.icon-item i,
.btn-search-go i,
.help-widget-icon {
    -webkit-text-stroke: var(--ui-icon-stroke) currentColor;
}

.icon-item i {
    font-size: 20px;
}

.btn-search-go i {
    font-size: 15px;
}

.help-widget {
    border-radius: 12px;
    background-color: var(--mk-blue);
    background-image: var(--gradient-cta);
    box-shadow: 0 10px 24px rgba(18, 75, 151, 0.3);
}

.help-widget:hover {
    background-color: var(--mk-blue-deep);
    background-image: var(--gradient-cta-hover);
    filter: none;
}

.help-widget-icon {
    font-size: 21px;
}

/* Help widget polish */
.help-widget {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 52px;
    height: 52px;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(45, 24, 76, 0.22);
    overflow: visible;
    z-index: 1000;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: width 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), padding 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.help-widget .help-widget-text {
    position: static;
    max-width: 0;
    opacity: 0;
    transform: translateX(4px);
    overflow: hidden;
    white-space: nowrap;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    transition: max-width 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s ease-out, transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1), margin-right 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
    margin-right: 0;
}

.help-widget-icon {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    background: #2f82c6;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: none;
    color: #ffffff;
    font-size: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: background 0.2s ease-out, box-shadow 0.2s ease-out;
}

.help-widget:hover,
.help-widget:focus-visible {
    width: 152px;
    padding: 0 44px 0 14px;
    justify-content: flex-start;
    transform: none;
    box-shadow: 0 6px 14px rgba(18, 75, 151, 0.22);
}

.help-widget:hover .help-widget-text,
.help-widget:focus-visible .help-widget-text {
    max-width: 110px;
    opacity: 1;
    transform: translateX(0);
    margin-right: 0;
}

.help-widget:hover .help-widget-icon,
.help-widget:focus-visible .help-widget-icon {
    background: #2f82c6;
    box-shadow: none;
}

button.help-widget {
    font-family: inherit;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

/* ——— Док чата: кнопка + окно; окно «вырастает» из правого нижнего угла ——— */
.support-chat-dock {
    position: fixed;
    right: 24px;
    bottom: 30px;
    z-index: 10050;
    pointer-events: none;
}
.support-chat-dock > .help-widget {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    pointer-events: auto;
    z-index: 2;
    transition:
        opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.42s cubic-bezier(0.34, 1.35, 0.52, 1),
        visibility 0.32s,
        box-shadow 0.25s ease,
        width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
        padding 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.support-chat-dock.is-open > .help-widget {
    opacity: 0;
    transform: scale(0.35);
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.22s cubic-bezier(0.4, 0, 1, 1),
        transform 0.38s cubic-bezier(0.34, 1.5, 0.52, 1),
        visibility 0.25s,
        width 0.2s ease,
        padding 0.2s ease;
}

/* Панель чата поддержки — static/css/support-chat.css */


@media (prefers-reduced-motion: reduce) {
    .support-chat-dock > .help-widget,
    .filter-content,
    .filter-content__inner,
    .filter-title i,
    .filter-section,
    .filter-sections-wrap,
    .catalog-results-panel,
    .filter-drawer-overlay,
    .filter-sidebar,
    .category-content,
    .checkbox-label,
    .checkbox-label input {
        transition: none !important;
        animation: none !important;
    }
}

/* Primary actions (single visual language) */
.btn-flow-primary,
.btn-trust-primary,
.btn-filter-apply,
.btn-checkout,
.btn-add-cart,
.btn-auth-primary,
.btn-search-inline,
.btn-save,
.btn-missing-primary {
    background-color: var(--ui-primary-bg);
    background-image: var(--gradient-cta);
    border-radius: var(--ui-control-radius);
    box-shadow: var(--ui-primary-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-flow-primary:hover,
.btn-trust-primary:hover,
.btn-filter-apply:hover,
.btn-checkout:hover,
.btn-add-cart:hover,
.btn-auth-primary:hover,
.btn-search-inline:hover,
.btn-save:hover,
.btn-missing-primary:hover {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    box-shadow: var(--ui-primary-shadow-hover);
    filter: none;
}

/* Secondary actions */
.btn-flow-secondary,
.btn-trust-secondary,
.btn-auth-outline,
.btn-missing-secondary,
.btn-heart,
.page-btn,
.tab-btn {
    border-radius: var(--ui-control-radius);
}

/* Form controls */
.checkout-box input,
.review-textarea,
.search-inline-form input[type="text"],
.auth-panel input,
.auth-panel textarea,
.auth-panel select,
.topline-contact-form input {
    border-radius: var(--ui-control-radius);
}

/* Button sizing presets (sm / md / lg) */
.gal-main-header .search-container .btn-search-go {
    min-height: unset;
    padding-left: 0;
    padding-right: 0;
}

.btn-search-go,
.btn-flow-secondary,
.btn-trust-secondary,
.btn-heart,
.page-btn,
.tab-btn {
    min-height: var(--ui-btn-h-sm);
    padding-left: var(--ui-btn-px-sm);
    padding-right: var(--ui-btn-px-sm);
}

.gal-catalog-btn,
.btn-categories,
.btn-flow-primary,
.btn-trust-primary,
.btn-filter-apply,
.btn-add-cart,
.btn-auth-primary,
.btn-auth-outline,
.btn-search-inline,
.btn-save,
.btn-missing-primary,
.btn-missing-secondary,
.btn-cart-home,
.btn-catalog-cta,
.btn-wishlist-cta {
    min-height: var(--ui-btn-h-md);
    padding-left: var(--ui-btn-px-md);
    padding-right: var(--ui-btn-px-md);
}

.btn-checkout {
    min-height: var(--ui-btn-h-lg);
    padding-left: var(--ui-btn-px-lg);
    padding-right: var(--ui-btn-px-lg);
}

/* Typography scale presets (xs / sm / md / lg / xl) */
.tb-desc,
.pc-code,
.cat-count,
.review-date,
.order-date,
.search-sidebar-desc,
.search-groups-empty,
.search-count,
.status-row,
.badge-item,
.variants-block h4,
.gal-icon-label,
.results-count {
    font-size: var(--fs-xs);
}

.top-nav a,
.btn-partner,
.contact-info,
.checkout-box .form-group label,
.profile-layout .form-group label,
.review-field-label,
.review-form-field label,
.sd-prod-price,
.pc-stock,
.pc-status,
.review-notice-text,
.empty-search-text,
.b2b-content p {
    font-size: var(--fs-sm);
}

.phone-num,
.item-price,
.subgroup-card .sg-name,
.checkout-box input,
.review-textarea,
.product-page .info-card h3,
.list-item,
.qty-btn,
.qty-input,
.price-large span {
    font-size: var(--fs-md);
}

.pc-price,
.specs-card h2,
.info-box h2,
.section-title,
.reviews-empty-title,
.home-group-name {
    font-size: var(--fs-lg);
}

.logo,
.product-page-title,
.category-page-title {
    font-size: var(--fs-xl);
}

/* Keep brand wordmark visually dominant in header */
.gal-logo {
    font-size: 46px;
    font-weight: 900;
    letter-spacing: 0.015em;
    color: #0a0a0a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.gal-logo span {
    color: var(--mk-blue);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85), 0 3px 12px rgba(31, 100, 183, 0.14);
}

.gal-logo:hover {
    color: #1a1a1a;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.gal-logo:hover span {
    color: var(--mk-blue-deep);
}

/* --- Global light-theme cleanup for legacy dark declarations --- */
.search-container input,
.sd-prod-title,
.pc-qty-input,
.qty-input,
.checkout-box h3,
.checkout-box input,
.item-title,
.checkout-success__title,
.cart-empty-visual .cart-empty-title,
.wishlist-empty .wishlist-empty-title,
.prod-rating-score,
.review-author,
.review-form-box h3,
.review-textarea,
.empty-search-title,
.tb-title,
.order-id {
    color: #1f2a3d;
}

.breadcrumb a:hover {
    color: #124b97;
}

.side-link:hover {
    background: #eef4fb;
    color: #124b97;
}

/* Header cart dropdown */
.header-cart {
    position: relative;
}

.header-cart-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 520px;
    max-width: min(520px, calc(100vw - 24px));
    background: #ffffff;
    border: 1px solid #d8e5f3;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(15, 38, 76, 0.18);
    padding: 18px;
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.header-cart.is-open .header-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-cart-dropdown__title {
    font-size: 24px;
    font-weight: 800;
    color: #1f2a3d;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dbe5f1;
}

.header-cart-dropdown__body {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 340px;
    overflow: auto;
    padding-bottom: 8px;
}

.header-cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 8px 56px 6px;
    border: none;
    border-bottom: 1px solid #e2eaf4;
    border-radius: 0;
    background: transparent;
    min-height: 118px;
    position: relative;
}

.header-cart-item:last-child {
    border-bottom: none;
}

.header-cart-item__img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.header-cart-item__title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2a3d;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: calc(1.3em * 3);
    padding-right: 30px;
}

.header-cart-item__meta {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.header-cart-item__price {
    font-size: 14px;
    font-weight: 700;
    color: #1f64b7;
    white-space: nowrap;
}

.header-cart-item__actions {
    position: absolute;
    top: 10px;
    right: 8px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    width: 116px;
    gap: 10px;
    padding-right: 0;
}

.header-cart-item__bottom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 0;
    text-shadow: 0 1px 2px rgba(10, 35, 74, 0.35);
}

.header-cart-remove {
    position: static;
    border: none;
    background: transparent;
    color: #7a8798;
    cursor: pointer;
    font-size: 14px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-cart-remove:hover { color: #d63b34; }

.header-cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cfe0f2;
    border-radius: 7px;
    overflow: hidden;
    background: #ffffff;
}

.header-cart-qty button {
    width: 26px;
    height: 24px;
    border: none;
    background: #f2f7fd;
    color: #1f64b7;
    font-weight: 700;
    cursor: pointer;
}

.header-cart-qty button:hover { background: #e2edf9; }

.header-cart-qty span {
    min-width: 24px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #1f2a3d;
}

.header-cart-dropdown__empty {
    font-size: 13px;
    color: var(--text-muted);
    padding: 10px 6px;
}

.header-cart-dropdown__footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #dbe5f1;
}

.header-cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #1f2a3d;
    margin-bottom: 14px;
}

.header-cart-total strong {
    color: #124b97;
    font-size: 20px;
}

.header-cart-open {
    display: block;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    line-height: 42px;
}

button.header-cart-open {
    appearance: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}

.header-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.header-cart-open--ghost {
    background: #ffffff;
    color: #1f64b7;
}

.header-cart-open--ghost:hover {
    background: #f3f8ff;
    color: #124b97;
}

/* Catalog: mobile filters, checkout flash, import status */
.category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.category-toolbar .category-page-title { margin: 0; }
.btn-filter-open {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-strong);
    background: var(--bg-header);
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.filter-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}
.filter-drawer-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.filter-sidebar__head {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.filter-sidebar__title { font-weight: 700; font-size: 16px; color: var(--text-white); }
.filter-sidebar__close {
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
}
.cart-flash-stack { margin-bottom: 16px; }
.cart-flash {
    margin: 0 0 8px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
}
.cart-flash--error {
    background: #fff5f5;
    border: 1px solid #f1b4b4;
    color: #9b2c2c;
}
.cart-flash--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.import-status-box {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}
.import-status-box--run { border-color: rgba(var(--accent-rgb), 0.45); }
.import-status-box--ok { border-color: #86efac; color: #bbf7d0; }
.import-status-box--err { border-color: #fca5a5; color: #fecaca; }
.import-status-box__text { margin: 0; font-size: 14px; }

@media (max-width: 900px) {
    .btn-filter-open { display: inline-flex; }
    .filter-drawer-overlay { display: block; }
    .filter-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 92vw);
        z-index: 1210;
        max-height: none;
        background: var(--bg-dark);
        border-right: 1px solid var(--border);
        padding: 16px;
        transform: translateX(-105%);
        transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
        overflow-y: auto;
        will-change: transform;
    }
    .filter-sidebar.is-open { transform: translateX(0); }
    .filter-sidebar__head { display: flex; }
    .filter-sections-wrap { max-height: none; }
    body.filter-drawer-open { overflow: hidden; }
}

/* Cart page — light theme polish */
.content-wrap .page-title {
    color: #1e293b;
    letter-spacing: -0.02em;
}
.cart-allegro-panel,
.cart-allegro-summary__card {
    background: #fff;
    border-color: #e8edf5;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}
.cart-allegro-toolbar {
    background: #f8fafc;
    border-bottom-color: #e8edf5;
}
.cart-allegro-select-all { color: #1e293b; }
.cart-allegro-count { color: var(--text-muted); }
.cart-allegro-item { border-bottom-color: #eef2f7; }
.cart-allegro-item--on { background: #fafcff; }
.cart-allegro-item__img {
    border-color: #e8edf5;
    background: #fff;
}
.cart-allegro-item__title {
    color: #222428;
    font-weight: 400;
}
.cart-allegro-item__title:hover { color: #1f64b7; }
.cart-allegro-item__unit { color: #64748b; }
.cart-allegro-qty {
    border-color: #c8d4e3;
    background: #fff;
}
.cart-allegro-qty .pc-qty-btn { color: #3d6f8c; }
.cart-allegro-qty .pc-qty-input { color: #1e293b; }
.cart-allegro-item__total { color: #222428; }
.cart-allegro-item--off .cart-allegro-item__total { color: #94a3b8; }
.cart-allegro-item__remove { color: #94a3b8; }
.cart-allegro-item--on {
    background: #f0f7ff;
    box-shadow: none;
}
.cart-allegro-item--off { opacity: 0.85; }
.cart-allegro-item__unit,
.cart-allegro-item__remove { color: var(--text-muted); }
.cart-allegro-item__total { color: #1f64b7; }
.cart-allegro-item--off .cart-allegro-item__total { color: #94a3b8; }
.cart-allegro-summary__title { color: #1e293b; }
.cart-allegro-summary__meta,
.cart-allegro-summary__hint { color: var(--text-muted); }
.cart-allegro-summary__price {
    border-top-color: #eef2f7;
    color: var(--text-muted);
}
.cart-allegro-summary__price strong { color: #1f64b7; }
.btn-cart-checkout.is-disabled {
    background-color: #cbd5e1;
    background-image: none;
    opacity: 1;
}

/* Градиентные CTA: не анимировать background и не использовать filter:brightness на hover */
:is(
    .gal-catalog-btn,
    .btn-categories,
    .gal-main-header .search-container .btn-search-go,
    .btn-search-go,
    .btn-flow-primary,
    .btn-trust-primary,
    .btn-filter-apply,
    .btn-checkout,
    .btn-add-cart,
    .btn-auth-primary,
    .btn-search-inline,
    .btn-save,
    .btn-missing-primary,
    .btn-cart-home,
    .btn-cart-checkout,
    .btn-b2b,
    .btn-partner,
    .btn-catalog-cta,
    .btn-wishlist-cta,
    .search-catalog-link,
    .help-widget,
    .btn-auth-cta,
    .support-chat__send,
    .home-office-map__link--primary,
    .pc-cart-btn
):hover {
    filter: none;
}

/* —— Информационные страницы (меню «Клиентам» / «Партнерам») —— */
section.info-page {
    padding: 20px 0 64px;
}
.info-page__wrap {
    max-width: 1120px;
}
.info-page__breadcrumb {
    margin-bottom: 18px;
}
.info-page__layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.info-page__nav {
    position: sticky;
    top: calc(var(--gal-mainbar-height, 56px) + 16px);
    padding: 18px 14px;
    border-radius: 14px;
    border: 1px solid rgba(31, 100, 183, 0.12);
    background: linear-gradient(180deg, #fafcff 0%, #fff 100%);
    box-shadow: 0 8px 24px rgba(31, 100, 183, 0.06);
}
.info-page__nav-label {
    margin: 0 0 10px;
    padding: 0 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c6f85;
}
.info-page__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.info-page__nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: #1f3656;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.info-page__nav-link i {
    width: 18px;
    text-align: center;
    color: #1f64b7;
    font-size: 0.9rem;
    opacity: 0.85;
}
.info-page__nav-link:hover {
    background: #eef5ff;
    color: #124b97;
}
.info-page__nav-link.is-active {
    background: rgba(31, 100, 183, 0.12);
    color: #0e2a4a;
    box-shadow: inset 0 0 0 1px rgba(31, 100, 183, 0.18);
}
.info-page__nav-link--compact {
    margin-bottom: 4px;
}
.info-page__nav-extra {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(31, 100, 183, 0.1);
}
.info-page__nav-extra-title {
    margin: 0 0 8px;
    padding: 0 8px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c6f85;
}
.info-page__nav-more {
    display: block;
    margin-top: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1f64b7;
    text-decoration: none;
}
.info-page__nav-more:hover {
    color: #124b97;
}
.info-page__hero {
    margin-bottom: 20px;
}
.info-page__hero-panel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    border-radius: 16px;
    border: 1px solid rgba(31, 100, 183, 0.14);
    background: linear-gradient(
        118deg,
        rgba(238, 245, 255, 0.98) 0%,
        #fff 52%,
        rgba(232, 241, 251, 0.55) 100%
    );
    box-shadow: 0 10px 32px rgba(31, 100, 183, 0.08);
    overflow: hidden;
}
.info-page__hero-panel::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -5%;
    width: min(280px, 45%);
    height: 180%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.1) 0%, transparent 68%);
    pointer-events: none;
}
.info-page__hero-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue);
    color: #fff;
    font-size: 1.5rem;
    box-shadow:
        0 10px 24px rgba(31, 100, 183, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.info-page__hero-body {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
}
.info-page__hero-kicker {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1f64b7;
}
.info-page__title {
    margin: 0;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    color: var(--accent-deep, #0e2a4a);
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.info-page__subtitle {
    margin: 10px 0 0;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.55;
    color: var(--text-secondary, #3d4f66);
    max-width: 58ch;
}
.info-page__card {
    background: #fff;
    border: 1px solid rgba(31, 100, 183, 0.14);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(31, 100, 183, 0.08);
    padding: 28px 32px 24px;
}
.info-page__intro {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-secondary, #3d4f66);
    margin: 0 0 22px;
}
.info-page__body p {
    line-height: 1.65;
    color: var(--text-secondary, #3d4f66);
    margin: 0 0 14px;
}
.info-page__body a:not(.info-page__btn):not(.info-page__related-chip) {
    color: #1f64b7;
    font-weight: 600;
}
.info-page__body a.info-page__btn {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}
.info-page__body a.info-page__btn:hover {
    color: #fff;
}
.info-page__body a.info-page__btn--ghost {
    color: #1f64b7;
}
.info-page__body a.info-page__btn--ghost:hover {
    color: #124b97;
}
.info-page__body button.info-page__btn {
    color: #fff;
    font-weight: 700;
    font-family: inherit;
}
.info-page__body button.info-page__btn--ghost {
    color: #1f64b7;
}
.info-page__muted {
    display: block;
    margin-top: 4px;
    font-size: 0.9rem;
    color: var(--text-muted, #5c6f85);
    font-weight: 400;
}
.info-section {
    margin-bottom: 28px;
}
.info-section:last-child {
    margin-bottom: 0;
}
.info-section__title {
    margin: 0 0 14px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-deep, #0e2a4a);
}
.info-page__tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 0 0 22px;
}
.info-page__tiles--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.info-page__tile {
    border: 1px solid rgba(31, 100, 183, 0.12);
    border-radius: 12px;
    padding: 18px 18px 16px;
    background: linear-gradient(180deg, #fafcff 0%, #fff 100%);
}
.info-page__tile-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef5ff;
    color: #1f64b7;
    font-size: 1rem;
    margin-bottom: 10px;
}
.info-page__tile h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-deep, #0e2a4a);
}
.info-page__tile p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary, #3d4f66);
}
.info-page__tile--positive {
    border-color: rgba(34, 150, 90, 0.25);
    background: linear-gradient(180deg, #f3fbf6 0%, #fff 100%);
}
.info-page__tile--negative {
    border-color: rgba(200, 80, 60, 0.2);
    background: linear-gradient(180deg, #fff8f6 0%, #fff 100%);
}
.info-page__list {
    margin: 0;
    padding-left: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary, #3d4f66);
}
.info-page__list--plain {
    list-style: none;
    padding: 0;
}
.info-page__list--plain li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 6px;
}
.info-page__list--plain li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1f64b7;
    font-weight: 800;
}
.info-highlight {
    margin: 0 0 22px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #eef5ff;
    border-left: 4px solid #1f64b7;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary, #3d4f66);
}
.info-highlight p {
    margin: 0;
}
.info-highlight--ok {
    background: #eef8f1;
    border-left-color: #22965a;
}
.info-highlight--warn {
    background: #fff8ee;
    border-left-color: #d48806;
}
.info-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-checklist li {
    position: relative;
    padding-left: 1.65rem;
    line-height: 1.55;
    color: var(--text-secondary, #3d4f66);
}
.info-checklist li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.1em;
    color: #22965a;
    font-size: 0.85rem;
}
.info-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.info-timeline li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.info-timeline__num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-blue);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}
.info-timeline li > div {
    flex: 1;
    padding-top: 4px;
    line-height: 1.55;
    color: var(--text-secondary, #3d4f66);
}
.info-timeline li > div strong {
    display: block;
    color: var(--accent-deep, #0e2a4a);
    margin-bottom: 2px;
}
.info-timeline li > div p {
    margin: 4px 0 0;
    font-size: 0.92rem;
}
.info-timeline--compact li > div {
    padding-top: 6px;
}
.info-pay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.info-pay-card {
    border: 1px solid rgba(31, 100, 183, 0.12);
    border-radius: 12px;
    padding: 16px 18px;
    background: #fafcff;
}
.info-pay-card__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef5ff;
    color: #1f64b7;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.info-pay-card h3 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-deep, #0e2a4a);
}
.info-pay-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary, #3d4f66);
}
.info-delivery-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-delivery-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(31, 100, 183, 0.1);
    border-radius: 12px;
    background: #fff;
}
.info-delivery-item__brand {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f4f8fc;
    display: flex;
    align-items: center;
    justify-content: center;
}
.info-delivery-item__brand img {
    max-width: 32px;
    max-height: 32px;
    object-fit: contain;
}
.info-delivery-item__brand i {
    font-size: 1.1rem;
    color: #1f64b7;
}
.info-delivery-item__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.4;
}
.info-delivery-item__body strong {
    color: var(--accent-deep, #0e2a4a);
    font-size: 0.95rem;
}
.info-page__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    padding-top: 8px;
}
.info-page__cta--center {
    justify-content: center;
}
.info-page__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--ui-control-radius-lg);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
    color: #fff !important;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, color 0.15s ease;
}
.info-page__btn:hover {
    transform: translateY(-1px);
    color: #fff;
}
.info-page__btn--ghost {
    background-color: #fff !important;
    background-image: none !important;
    color: #1f64b7 !important;
    border: 1px solid rgba(31, 100, 183, 0.35) !important;
    box-shadow: none !important;
}
.info-page__btn--ghost:hover {
    background-color: #eef5ff !important;
    background-image: none !important;
    color: #124b97 !important;
    filter: none;
}
.info-page__related {
    margin-top: 28px;
    padding: 20px 0 4px;
    border-top: 1px solid rgba(31, 100, 183, 0.12);
    background: transparent;
    box-shadow: none;
}
.info-page__related-title {
    margin: 0 0 14px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #5c6f85;
}
.info-page__related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.info-page__related-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(31, 100, 183, 0.2);
    background: #fafcff;
    color: #1f3656;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.info-page__related-chip i {
    font-size: 0.75rem;
    color: #1f64b7;
    transition: transform 0.15s ease;
}
.info-page__related-chip:hover {
    background: #eef5ff;
    border-color: rgba(31, 100, 183, 0.35);
    color: #124b97;
}
.info-page__related-chip:hover i {
    transform: translateX(3px);
}
.info-faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-faq__item {
    border: 1px solid rgba(31, 100, 183, 0.14);
    border-radius: 12px;
    background: #fafcff;
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}
.info-faq__item[open] {
    box-shadow: 0 6px 18px rgba(31, 100, 183, 0.08);
}
.info-faq__item summary {
    cursor: pointer;
    padding: 14px 18px;
    font-weight: 700;
    color: var(--accent-deep, #0e2a4a);
    list-style: none;
}
.info-faq__item summary::-webkit-details-marker {
    display: none;
}
.info-faq__item summary::after {
    content: '+';
    float: right;
    font-weight: 800;
    color: #1f64b7;
}
.info-faq__item[open] summary::after {
    content: '−';
}
.info-faq__item p {
    margin: 0;
    padding: 0 18px 16px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary, #3d4f66);
}
.info-contacts-hero-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}
.info-contacts-hero-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 88px;
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid rgba(31, 100, 183, 0.14);
    background: linear-gradient(180deg, #fafcff, #fff);
    color: #1f3656 !important;
    font-weight: 700;
    font-size: 0.88rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.info-contacts-hero-bar__item i {
    font-size: 1.25rem;
    color: #1f64b7;
}
.info-contacts-hero-bar__item:hover {
    background: #eef5ff;
    border-color: rgba(31, 100, 183, 0.3);
    color: #124b97;
}
.info-contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.info-contacts-card {
    border: 1px solid rgba(31, 100, 183, 0.12);
    border-radius: 12px;
    padding: 18px 20px;
    background: #fafcff;
}
.info-contacts-card__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef5ff;
    color: #1f64b7;
    margin-bottom: 10px;
}
.info-contacts-card h2 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent-deep, #0e2a4a);
}
.info-contacts-card__main {
    margin: 0 0 6px;
    font-weight: 700;
    color: #1f3656;
    line-height: 1.45;
}
.info-contacts-messengers {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.info-contacts-msg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1f64b7;
    color: #fff !important;
    font-size: 1.1rem;
    text-decoration: none;
}
.info-contacts-msg span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.info-contacts-msg--viber {
    background: #7360f2;
}
.info-contacts-msg--wa {
    background: #25d366;
}
.info-contacts-map {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(31, 100, 183, 0.14);
    aspect-ratio: 16 / 9;
    min-height: 280px;
}
.info-contacts-map__frame {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
}
@media (max-width: 900px) {
    .info-page__layout {
        grid-template-columns: 1fr;
    }
    .info-page__nav {
        position: static;
    }
    .info-page__nav-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
}
@media (max-width: 640px) {
    .info-page__hero-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 18px 20px;
    }
    .info-page__hero-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
        border-radius: 14px;
    }
    .info-page__card {
        padding: 20px 18px 20px;
    }
    .info-page__tiles--two {
        grid-template-columns: 1fr;
    }
    .info-contacts-hero-bar {
        grid-template-columns: 1fr;
    }
    .info-page__cta {
        flex-direction: column;
    }
    .info-page__btn {
        width: 100%;
    }
    .info-page__nav-list {
        grid-template-columns: 1fr;
    }
}

/* === Единый стиль primary-кнопок (публичная часть сайта) === */
:is(
    .btn-flow-primary,
    .btn-trust-primary,
    .btn-b2b,
    .btn-filter-apply,
    .btn-checkout,
    .btn-cart-checkout:not(.is-disabled),
    a.btn-cart-checkout:not(.is-disabled),
    .btn-add-cart:not(:disabled):not(.btn-add-cart--disabled),
    .btn-auth-primary,
    .btn-auth-cta,
    .btn-search-inline,
    .btn-save,
    .btn-missing-primary,
    .btn-cart-home,
    .btn-categories,
    .gal-catalog-btn,
    .btn-search-go,
    .pc-cart-btn:not(:disabled):not(.pc-cart-btn--disabled),
    .page-btn.active,
    .tab-btn.active,
    .info-page__btn:not(.info-page__btn--ghost),
    .profile-empty__link,
    .checkout-success__btn--primary,
    .checkout-success__promo-btn,
    .header-cart-open:not(.header-cart-open--ghost),
    .order-detail-help__btn,
    .profile-review-card__action--primary,
    .profile-review-pending__action,
    .profile-logout-modal__btn--primary,
    .checkout-addr-modal__confirm:not(:disabled),
    .site-confirm:not(.site-confirm--danger) .site-confirm__btn--ok,
    .support-chat__send:not(:disabled),
    .help-widget
) {
    background-color: var(--ui-primary-bg);
    background-image: var(--gradient-cta);
    color: var(--text-on-primary);
    box-shadow: var(--ui-primary-shadow);
}

:is(
    .btn-flow-primary,
    .btn-trust-primary,
    .btn-b2b,
    .btn-filter-apply,
    .btn-checkout,
    .btn-cart-checkout:not(.is-disabled),
    a.btn-cart-checkout:not(.is-disabled),
    .btn-add-cart:not(:disabled):not(.btn-add-cart--disabled),
    .btn-auth-primary,
    .btn-auth-cta,
    .btn-search-inline,
    .btn-save,
    .btn-missing-primary,
    .btn-cart-home,
    .btn-categories,
    .gal-catalog-btn,
    .btn-search-go,
    .pc-cart-btn:not(:disabled):not(.pc-cart-btn--disabled),
    .page-btn.active,
    .tab-btn.active,
    .info-page__btn:not(.info-page__btn--ghost),
    .profile-empty__link,
    .checkout-success__btn--primary,
    .checkout-success__promo-btn,
    .header-cart-open:not(.header-cart-open--ghost),
    .order-detail-help__btn,
    .profile-review-card__action--primary,
    .profile-review-pending__action,
    .profile-logout-modal__btn--primary,
    .checkout-addr-modal__confirm:not(:disabled),
    .site-confirm:not(.site-confirm--danger) .site-confirm__btn--ok,
    .support-chat__send:not(:disabled),
    .help-widget
):hover:not(:disabled):not(.is-disabled) {
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    box-shadow: var(--ui-primary-shadow-hover);
    filter: none;
}

/* Единый стиль outline-кнопок */
:is(
    .info-page__btn--ghost,
    .checkout-success__btn--secondary,
    .checkout-success__btn--ghost,
    .btn-catalog-cta,
    .btn-wishlist-cta,
    .btn-auth-outline,
    .btn-missing-secondary,
    .btn-flow-secondary,
    .header-cart-open--ghost,
    .checkout-addr-modal__cancel,
    .profile-review-card__action:not(.profile-review-card__action--primary):not(.profile-review-card__action--danger):not(.profile-review-card__action--cancel):not(.profile-review-card__action--muted)
) {
    background-color: #fff;
    background-image: none;
    color: var(--accent-blue);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    box-shadow: none;
}

:is(
    .info-page__btn--ghost,
    .checkout-success__btn--secondary,
    .checkout-success__btn--ghost,
    .btn-catalog-cta,
    .btn-wishlist-cta,
    .btn-auth-outline,
    .btn-missing-secondary,
    .btn-flow-secondary,
    .header-cart-open--ghost,
    .checkout-addr-modal__cancel,
    .profile-review-card__action:not(.profile-review-card__action--primary):not(.profile-review-card__action--danger):not(.profile-review-card__action--cancel):not(.profile-review-card__action--muted)
):hover:not(:disabled) {
    background-color: #eef5ff;
    background-image: none;
    color: var(--accent-deep);
    border-color: rgba(var(--accent-rgb), 0.45);
    filter: none;
}

.btn-catalog-cta:hover,
.btn-wishlist-cta:hover {
    color: var(--text-on-primary);
    background-color: var(--ui-primary-bg-hover);
    background-image: var(--gradient-cta-hover);
    border-color: var(--ui-primary-border);
    box-shadow: var(--ui-primary-shadow-hover);
}
