/**
 * Публичная часть сайта — светлая лаконичная тема (админка не затрагивается).
 */
body.site-public {
    --site-bg: #eef0f4;
    --site-surface: #ffffff;
    --site-surface-2: #f8f9fb;
    --site-text: #1a1d26;
    --site-muted: #6b7280;
    --site-border: #e2e5eb;
    --site-accent: #c9970c;
    --site-accent-hover: #a67809;
    --site-ui: #2d3a4d;
    --site-ui-soft: #eef2f6;
    --site-ui-muted: #5c6b7f;
    --site-radius: 14px;
    --site-container: 1480px;
    --site-container-pad: clamp(16px, 2.5vw, 36px);
    --site-shadow: 0 1px 3px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
    --site-shadow-hover: 0 14px 40px rgba(16, 24, 40, 0.11);

    --bg: var(--site-bg);
    --gold: var(--site-accent);
    --gold-hover: var(--site-accent-hover);
    --text: var(--site-text);
    --text-muted: var(--site-muted);
    --border: var(--site-border);
    --font: 'Montserrat', system-ui, -apple-system, sans-serif;

    background: linear-gradient(180deg, #f8f9fb 0%, var(--site-bg) 180px, #e8eaef 100%);
    background-attachment: fixed;
    color: var(--site-text);
}

body.site-public .container {
    max-width: var(--site-container);
    padding-left: var(--site-container-pad);
    padding-right: var(--site-container-pad);
}

/* ——— Шапка ——— */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 229, 235, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 24px rgba(16, 24, 40, 0.05);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 14px 0;
}

.site-logo {
    color: var(--site-text);
    text-decoration: none;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.site-logo span {
    color: var(--site-accent);
}

.site-search {
    display: flex;
    flex: 1;
    max-width: min(520px, 42vw);
    min-width: 200px;
    margin: 0 16px;
}

.site-search input {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid var(--site-border);
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: var(--site-surface-2);
    color: var(--site-text);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.site-search input:focus {
    border-color: var(--site-accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(201, 151, 12, 0.12);
}

.site-search button {
    padding: 0 20px;
    border: none;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(135deg, #d4a017 0%, var(--site-accent) 100%);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: filter 0.2s;
}

.site-search button:hover {
    filter: brightness(1.05);
}

.site-nav {
    display: flex;
    gap: 24px;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
    flex-wrap: wrap;
}

.site-country-switch {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    background: #f0f1f3;
    border-radius: 8px;
    margin-right: 4px;
}

.site-country-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--site-muted) !important;
    text-decoration: none !important;
    line-height: 1.2;
    white-space: nowrap;
}

.site-country-btn:hover {
    color: var(--site-text) !important;
    background: rgba(255,255,255,.7);
}

.site-country-btn.is-active {
    background: #fff;
    color: var(--site-accent) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.site-nav a {
    color: var(--site-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.site-nav-accent {
    color: var(--site-accent);
}

.site-nav-dropdown {
    position: relative;
}

.site-nav-drop-btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    color: var(--site-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.site-nav-drop-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.7;
    margin-top: 1px;
}

.site-nav-drop-btn:hover,
.site-nav-dropdown.is-open .site-nav-drop-btn {
    color: var(--site-accent);
}

.site-nav-drop-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
    z-index: 80;
}

.site-nav-dropdown.is-open .site-nav-drop-menu {
    display: grid;
    gap: 2px;
}

.site-nav-drop-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--site-text) !important;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.site-nav-drop-menu a:hover {
    background: var(--site-surface-2);
    color: var(--site-accent) !important;
}

.site-nav-partner-quick {
    font-weight: 700;
}
.site-nav-drop-btn--partner {
    color: var(--site-accent) !important;
    font-weight: 800;
}
.site-nav-toggle {
    display: none;
}
.site-nav-cabinet-btn {
    padding: 8px 14px !important;
    font-size: 13px !important;
    white-space: nowrap;
    text-decoration: none !important;
}
body.site-public .site-nav-cabinet-btn.btn-outline {
    border-color: var(--site-accent);
    color: var(--site-accent) !important;
}
body.site-public .site-nav-cabinet-btn.btn-gold {
    color: #111 !important;
}

.site-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--site-text);
    text-decoration: none;
    white-space: nowrap;
}

.site-phone-icon {
    display: none;
    font-size: 18px;
    line-height: 1;
}

.site-phone:hover {
    color: var(--site-accent);
}

/* ——— Герой ——— */
body.site-public .hero,
.site-hero {
    height: auto;
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 20px;
    background: linear-gradient(165deg, #ffffff 0%, #eef0f4 55%, #e8eaef 100%);
    border-bottom: 1px solid var(--site-border);
}

body.site-public .hero .floating-logo,
.site-hero .floating-logo {
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
}

body.site-public .hero h1,
.site-hero h1 {
    color: var(--site-text);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.03em;
    margin: 20px 0 12px;
}

body.site-public .hero h1 em,
.site-hero h1 em {
    font-style: normal;
    color: var(--site-accent);
}

body.site-public .hero p,
.site-hero .hero-tagline {
    color: var(--site-muted);
    letter-spacing: 0.12em;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 32px;
    font-weight: 600;
}

/* ——— Кнопки (публичка) ——— */
body.site-public .btn-gold {
    background: linear-gradient(135deg, #d4a017 0%, var(--site-accent) 52%, #a67809 100%);
    color: #fff;
    clip-path: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    padding: 12px 28px;
    box-shadow: 0 4px 14px rgba(201, 151, 12, 0.28);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

body.site-public .btn-gold:hover {
    background: linear-gradient(135deg, #e0ad1a 0%, var(--site-accent-hover) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(201, 151, 12, 0.32);
}

body.site-public .btn-outline {
    border: 1px solid var(--site-border);
    color: var(--site-text);
    background: var(--site-surface);
    border-radius: 10px;
    font-weight: 600;
    text-transform: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

body.site-public .btn-outline:hover,
body.site-public .btn-outline.active {
    border-color: var(--site-accent);
    color: var(--site-accent);
    background: #fffbf0;
    box-shadow: 0 2px 10px rgba(201, 151, 12, 0.1);
}

/* ——— Карточки товара ——— */
body.site-public .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: 28px;
}

body.site-public .product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    background: var(--site-surface);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    isolation: isolate;
    transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease;
}

body.site-public .product-card::before {
    display: none;
}

body.site-public .product-card:hover {
    border-color: rgba(201, 151, 12, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* Каталог: фото доминирует */
body.site-public .product-card--catalog .card-image-wrap {
    position: relative;
    padding: 0;
    min-height: 0;
    max-height: none;
    aspect-ratio: 5 / 4;
    border-bottom: none;
    border-radius: 17px 17px 0 0;
    background:
        radial-gradient(120% 90% at 50% 20%, #ffffff 0%, #f3f5f8 55%, #e8ecf2 100%);
    display: block;
    overflow: hidden;
}

body.site-public .product-card--catalog .card-image-link {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: inherit;
}

body.site-public .product-card--catalog .card-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 1;
    transition: transform 0.45s ease;
}

body.site-public .product-card--catalog:hover .card-image-wrap img {
    transform: scale(1.04);
}

body.site-public .product-card--catalog .card-image-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 28%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(8, 12, 20, 0) 0%,
        rgba(8, 12, 20, 0.08) 55%,
        rgba(8, 12, 20, 0.16) 100%
    );
}

body.site-public .product-card--catalog .card-badge {
    top: 12px;
    left: 12px;
    right: auto;
    max-width: min(70%, calc(100% - 24px));
    background: rgba(255, 255, 255, 0.92);
    color: #5b6573;
    border: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 6px 11px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(8px);
}

/* Иконки состояния / топлива / привода / КПП — по краям фото */
body.site-public .card-spec-badges {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 8px;
    pointer-events: none;
}

body.site-public .card-spec-badges-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 46%;
}

body.site-public .card-spec-badges-col--left {
    align-items: flex-start;
}

body.site-public .card-spec-badges-col--right {
    align-items: flex-end;
    margin-left: auto;
}

body.site-public .card-spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 5px 9px 5px 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.1;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

body.site-public .card-spec-badges-col--right .card-spec-badge {
    flex-direction: row-reverse;
}

body.site-public .card-spec-badge-icon {
    display: inline-flex;
    flex-shrink: 0;
    opacity: 0.95;
}

body.site-public .card-spec-badge-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
}

body.site-public .card-spec-badge--condition.card-spec-badge--new { background: rgba(16, 120, 72, 0.9); }
body.site-public .card-spec-badge--condition.card-spec-badge--excellent { background: rgba(21, 101, 192, 0.9); }
body.site-public .card-spec-badge--condition.card-spec-badge--good { background: rgba(46, 125, 50, 0.88); }
body.site-public .card-spec-badge--condition.card-spec-badge--fair { background: rgba(180, 120, 20, 0.92); }
body.site-public .card-spec-badge--condition.card-spec-badge--faulty { background: rgba(160, 40, 40, 0.92); }

body.site-public .card-spec-badge--fuel.card-spec-badge--petrol { background: rgba(30, 64, 140, 0.92); }
body.site-public .card-spec-badge--fuel.card-spec-badge--diesel { background: rgba(55, 65, 81, 0.94); }
body.site-public .card-spec-badge--fuel.card-spec-badge--hybrid { background: rgba(8, 110, 90, 0.92); }
body.site-public .card-spec-badge--fuel.card-spec-badge--battery { background: rgba(90, 50, 160, 0.92); }

body.site-public .card-spec-badge--drive { background: rgba(40, 48, 62, 0.92); }

body.site-public .card-spec-badge--transmission.card-spec-badge--manual { background: rgba(70, 55, 40, 0.94); }
body.site-public .card-spec-badge--transmission.card-spec-badge--auto { background: rgba(45, 70, 95, 0.94); }
body.site-public .card-spec-badge--transmission.card-spec-badge--robot { background: rgba(90, 55, 110, 0.94); }
body.site-public .card-spec-badge--transmission.card-spec-badge--cvt { background: rgba(20, 100, 110, 0.94); }

body.site-public .card-spec-badge--condition .card-spec-badge-text {
    text-transform: none;
    letter-spacing: 0;
    font-size: 9px;
    font-weight: 700;
}

body.site-public .card-spec-badge--condition.card-spec-badge--fair .card-spec-badge-text {
    max-width: 9.5em;
}

body.site-public .product-card--catalog .card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 16px 18px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
}

body.site-public .product-card--catalog .card-info h3 {
    font-size: 15px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.56em;
}

body.site-public .product-card--catalog .card-info h3 a {
    color: #111827;
    text-decoration: none;
}

body.site-public .product-card--catalog .card-info h3 a:hover {
    color: var(--site-accent);
}

body.site-public .product-card--catalog .card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin-bottom: 14px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.35;
}

body.site-public .product-card--catalog .card-meta-year {
    font-weight: 700;
    color: #4b5563;
}

body.site-public .product-card--catalog .card-meta-specs {
    color: #6b7280;
}

body.site-public .product-card--catalog .card-meta-year + .card-meta-specs::before {
    content: '·';
    margin-right: 10px;
    color: #c4CAD3;
}

body.site-public .product-card--catalog .card-action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    padding-top: 14px;
    margin-top: auto;
}

body.site-public .card-price-block {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

body.site-public .product-card--catalog .product-price {
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

body.site-public .card-cta-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.site-public .product-card--catalog .btn-buy-mini {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    padding: 11px 16px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex: 1 1 auto;
    border: 1px solid rgba(201, 151, 12, 0.4);
    background: #fff;
    color: #a57b0a;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

body.site-public .product-card--catalog .btn-buy-mini:hover {
    background: var(--site-accent);
    color: #fff;
    border-color: var(--site-accent);
    box-shadow: 0 8px 18px rgba(201, 151, 12, 0.28);
    transform: translateY(-1px);
}

body.site-public .card-messengers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

body.site-public .card-msg-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    transition: transform 0.15s ease, filter 0.15s ease;
}

body.site-public .card-msg-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

body.site-public .card-msg-btn--tg { background: #2aabee; }
body.site-public .card-msg-btn--wa { background: #25d366; }

/* Fallback для карточек без --catalog (новости и т.п.) */
body.site-public .product-card:not(.product-card--catalog) .card-image-wrap {
    position: relative;
    background: linear-gradient(165deg, #fafbfc 0%, #f0f2f6 100%);
    padding: 18px;
    min-height: 220px;
    border-bottom: 1px solid var(--site-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.site-public .product-card:not(.product-card--catalog) .card-image-wrap img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}

body.site-public .product-card:not(.product-card--catalog):hover .card-image-wrap img {
    transform: scale(1.03);
}

body.site-public .product-card:not(.product-card--catalog) .card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: var(--site-surface);
    color: var(--site-muted);
    border: 1px solid var(--site-border);
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    padding: 5px 10px;
    box-shadow: var(--site-shadow);
}

body.site-public .product-card:not(.product-card--catalog) .card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 18px 20px 20px;
}

body.site-public .product-card:not(.product-card--catalog) .card-info h3 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.3;
}

body.site-public .product-card:not(.product-card--catalog) .card-action {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--site-border);
    padding-top: 14px;
    margin-top: auto;
}

body.site-public .product-price {
    color: var(--site-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

body.site-public .btn-buy-mini {
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
    padding: 10px 16px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex: 1 1 auto;
    border: 1px solid rgba(201, 151, 12, 0.45);
    background: transparent;
    color: var(--site-accent);
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

body.site-public .btn-buy-mini:hover {
    background: var(--site-accent);
    color: #fff;
    border-color: var(--site-accent);
    box-shadow: 0 4px 12px rgba(201, 151, 12, 0.25);
}

.catalog-filter-group-label {
    margin: 14px 0 8px;
    padding-top: 8px;
    border-top: 1px solid var(--site-border, #e5e7eb);
    color: var(--site-muted, #888);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.catalog-filter-group-label:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.catalog-filter-field--primary .filter-label {
    font-weight: 700;
}

/* ——— Секции ——— */
.site-section-title {
    text-align: center;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--site-text);
    margin-bottom: 36px;
    letter-spacing: -0.03em;
}

.site-page {
    padding: 52px 0 88px;
}

/* Категория */
body.site-public .category-layout {
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Аккордеон каталога (мобильная гармошка) */
.catalog-accordion {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
    overflow: hidden;
}

.catalog-accordion-toggle {
    display: none;
}

.catalog-accordion-panel {
    display: block;
}

.catalog-accordion-chevron::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--site-muted);
    border-bottom: 2px solid var(--site-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -4px;
}

.catalog-accordion.is-open .catalog-accordion-chevron::before {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.catalog-nav,
body.site-public .sidebar-filter {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    box-shadow: var(--site-shadow);
}

.catalog-nav {
    padding: 18px 16px;
}

.catalog-sidebar-title {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--site-text);
    margin: 0 0 14px;
}

.catalog-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
}

.catalog-nav-list li + li {
    margin-top: 2px;
}

.catalog-nav-sub {
    list-style: none;
    margin: 4px 0 6px;
    padding: 0 0 0 10px;
    border-left: 1px solid var(--site-border);
}

.catalog-nav-sub .catalog-nav-sub {
    margin-left: 6px;
}

.catalog-nav-link--child {
    font-size: 13px;
    padding: 8px 10px;
    font-weight: 500;
}

.catalog-nav-link.is-ancestor {
    color: var(--site-text);
}

.catalog-subcats-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--site-text);
}

.catalog-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--site-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.catalog-nav-link:hover {
    background: var(--site-surface-2);
    color: var(--site-text);
}

.catalog-nav-link.is-active {
    background: var(--site-ui-soft);
    color: var(--site-text);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--site-ui);
}

.catalog-nav-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--site-muted);
    background: var(--site-surface-2);
    border: 1px solid var(--site-border);
    padding: 2px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}

.catalog-nav-link.is-active .catalog-nav-count {
    color: var(--site-ui);
    background: #fff;
    border-color: #d1d9e6;
}

body.site-public .sidebar-filter {
    padding: 18px 16px 20px;
    border-top: none;
}

body.site-public .sidebar-filter .catalog-sidebar-title {
    margin-bottom: 12px;
}

.catalog-filter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.catalog-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.catalog-filter-empty {
    color: var(--site-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.catalog-filter-submit {
    width: 100%;
    padding: 10px !important;
    font-size: 13px !important;
    margin-top: 4px;
}

.catalog-filter-reset {
    display: block;
    text-align: center;
    font-size: 12px;
    padding: 10px;
}

.catalog-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.catalog-filter-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    background: var(--site-ui-soft);
    border: 1px solid #d1d9e6;
    border-radius: 20px;
    color: var(--site-ui);
}

.catalog-results-count {
    font-size: 13px;
    color: var(--site-muted);
    margin: 0;
    font-weight: 600;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.catalog-toolbar--after-tiles {
    margin-top: 8px;
    padding-top: 22px;
    border-top: 1px solid var(--site-border);
}

.catalog-cat-tiles {
    margin: 0 0 8px;
}

.catalog-cat-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.catalog-cat-tile {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    background: linear-gradient(145deg, #e8ecf2 0%, #d5dbe5 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.catalog-cat-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.catalog-cat-tile-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: rgba(45, 58, 77, 0.28);
    letter-spacing: 0.04em;
}

.catalog-cat-tile-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding: 28px 12px 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(8, 12, 20, 0.72) 100%);
    color: #fff;
}

.catalog-cat-tile-name {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
    letter-spacing: -0.01em;
}

.catalog-cat-tile-count {
    flex-shrink: 0;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
}

.catalog-cat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    border-color: rgba(201, 151, 12, 0.4);
}

.catalog-cat-tile:hover img {
    transform: scale(1.05);
}

@media (max-width: 1100px) {
    .catalog-cat-tiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .catalog-cat-tiles-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .catalog-cat-tile {
        border-radius: 12px;
        aspect-ratio: 4 / 3;
    }

    .catalog-cat-tile-name {
        font-size: 12px;
    }

    .catalog-cat-tile-count {
        min-width: 24px;
        height: 24px;
        font-size: 11px;
    }
}

.catalog-sort-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.catalog-sort-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--site-muted);
    text-decoration: none;
    background: var(--site-surface-2);
}

.catalog-sort-link:hover,
.catalog-sort-link.is-active {
    color: var(--site-text);
    border-color: var(--site-accent);
    background: rgba(201, 151, 12, 0.1);
    box-shadow: 0 2px 8px rgba(201, 151, 12, 0.08);
}

body.site-public .sidebar-filter h3 {
    color: var(--site-text) !important;
}

body.site-public .filter-label {
    color: var(--site-muted);
}

body.site-public .filter-select {
    background: var(--site-surface-2);
    border-color: var(--site-border);
    color: var(--site-text);
    border-radius: 8px;
}

body.site-public .filter-select:focus {
    border-color: var(--site-accent);
}

.catalog-page-title {
    text-align: left !important;
    margin: 0 0 20px !important;
}

.catalog-page-desc {
    margin: -8px 0 24px;
    max-width: 720px;
    color: var(--site-muted);
    font-size: 15px;
    line-height: 1.55;
}

.site-empty {
    background: var(--site-surface);
    padding: 48px;
    text-align: center;
    border: 1px dashed var(--site-border);
    border-radius: var(--site-radius);
    color: var(--site-muted);
}

.site-empty h3 {
    color: var(--site-text);
    margin-bottom: 8px;
}

/* Карточка товара — фото лицом */
body.site-public .product-page {
    padding-top: 18px;
}

/* Хлебные крошки */
body.site-public .site-breadcrumbs {
    padding: 12px 0 0;
    margin: 0;
}

body.site-public .site-breadcrumbs-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--site-muted);
}

body.site-public .site-breadcrumbs a {
    color: var(--site-ui-muted);
    text-decoration: none;
}

body.site-public .site-breadcrumbs a:hover {
    color: var(--site-accent);
    text-decoration: underline;
}

body.site-public .site-breadcrumbs-sep {
    opacity: 0.45;
    user-select: none;
}

body.site-public .site-breadcrumbs-current {
    color: var(--site-text);
    font-weight: 600;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.site-public .product-top-header h1 {
    color: #0f172a !important;
    text-transform: none !important;
    font-weight: 800 !important;
    font-size: clamp(24px, 3.2vw, 34px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
    margin: 0;
}

body.site-public .product-layout > * {
    min-width: 0;
}

body.site-public .product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 1fr);
    gap: 32px;
    align-items: start;
}

body.site-public .product-media-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    gap: 12px;
}

body.site-public .main-img-view {
    position: relative;
    background:
        radial-gradient(120% 90% at 50% 20%, #ffffff 0%, #f3f5f8 55%, #e8ecf2 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 0;
    aspect-ratio: 4 / 3;
    max-height: 460px;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

body.site-public .main-img-view img {
    position: absolute;
    inset: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

body.site-public .main-img-view .card-image-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(8, 12, 20, 0) 0%,
        rgba(8, 12, 20, 0.16) 50%,
        rgba(8, 12, 20, 0.4) 100%
    );
}

body.site-public .main-img-view > .card-spec-badges {
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    align-items: flex-end;
    z-index: 3;
}

body.site-public .gallery-thumbs-strip {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 2px 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
}

body.site-public .gallery-thumb {
    flex: 0 0 auto;
    scroll-snap-align: start;
    border-color: rgba(15, 23, 42, 0.1);
    background: #fff;
    border-radius: 12px;
    padding: 0;
    margin: 0;
    border-width: 2px;
    border-style: solid;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

body.site-public .gallery-thumb:hover {
    transform: translateY(-1px);
}

body.site-public .gallery-thumb img {
    display: block;
    width: 88px;
    height: 66px;
    object-fit: cover;
}

body.site-public .gallery-thumb.active {
    border-color: var(--site-accent);
    box-shadow: 0 0 0 3px rgba(201, 151, 12, 0.18);
}

body.site-public .product-details {
    position: sticky;
    top: 88px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 22px 22px 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

body.site-public .product-details .status-badge {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--site-text);
    border-radius: 999px;
    padding: 7px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

body.site-public .product-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.35;
}

body.site-public .product-card-meta-year {
    font-weight: 700;
    color: #4b5563;
}

body.site-public .product-card-meta-year + .product-card-meta-specs::before {
    content: '·';
    margin-right: 10px;
    color: #c4CAD3;
}

body.site-public .product-details .price-lg {
    color: #0f172a;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 18px;
}

body.site-public .product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.site-public .product-actions-primary {
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
    border-radius: 12px;
    font-weight: 800;
}

body.site-public .product-actions-messengers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

body.site-public .product-actions-messengers .btn-telegram,
body.site-public .product-actions-messengers .btn-whatsapp {
    border-radius: 12px;
    min-height: 46px;
    font-weight: 700;
}

body.site-public .product-actions-kp {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--site-accent);
    text-align: center;
}

body.site-public .product-actions-lease {
    width: 100%;
    padding: 12px;
    font-size: 13px;
    border-radius: 12px;
    margin-top: 2px;
}

body.site-public .product-top-header {
    margin-bottom: 22px;
}

/* ——— Lightbox (увеличение фото товара) ——— */
body.site-public .product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
}

body.site-public .product-lightbox.is-open {
    display: block;
}

body.is-lightbox-open {
    overflow: hidden;
    touch-action: none;
}

body.site-public .product-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.86);
}

body.site-public .product-lightbox__stage {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    grid-template-rows: 56px 1fr;
    align-items: center;
    justify-items: center;
    padding: 18px;
}

body.site-public .product-lightbox__img {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
    max-width: min(1100px, 92vw);
    max-height: min(86vh, 860px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
    user-select: none;
    -webkit-user-drag: none;
}

body.site-public .product-lightbox__btn {
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(10, 10, 10, 0.55);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

body.site-public .product-lightbox__btn:hover {
    transform: scale(1.03);
    border-color: rgba(255,255,255,0.35);
    background: rgba(10, 10, 10, 0.7);
}

body.site-public .product-lightbox__btn--close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    font-size: 28px;
}

body.site-public .product-lightbox__btn--prev {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    justify-self: start;
    z-index: 2;
}

body.site-public .product-lightbox__btn--next {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    z-index: 2;
}

@media (max-width: 600px) {
    body.site-public .product-lightbox__stage {
        grid-template-columns: 44px 1fr 44px;
        padding: 12px;
    }

    body.site-public .product-lightbox__btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    body.site-public .product-lightbox__img {
        max-width: 96vw;
        max-height: 84vh;
        border-radius: 10px;
    }
}

body.site-public .product-actions {
    margin-bottom: 8px;
}

body.site-public .product-actions-messengers a {
    text-align: center;
    box-sizing: border-box;
}

body.site-public a.product-actions-kp:not(.btn-outline) {
    display: block;
    margin-top: 4px;
    text-align: center;
    font-size: 13px;
    color: var(--site-accent);
    text-decoration: underline;
}

body.site-public .product-actions-kp.btn-outline,
body.site-public button.product-actions-kp.btn-outline,
body.site-public .product-actions-stories.btn-outline {
    display: block;
    width: 100%;
    margin-top: 2px;
    padding: 12px;
    text-align: center;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    border-radius: 12px;
}

body.site-public .product-page-bottom {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

body.site-public .specs-block {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-left: 1px solid var(--site-border) !important;
    border-radius: var(--site-radius);
    padding: 20px 22px;
    box-shadow: var(--site-shadow);
}

body.site-public .specs-block h3 {
    color: var(--site-text) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    margin-bottom: 14px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--site-border);
}

.specs-dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.specs-dl-row {
    display: grid;
    grid-template-columns: minmax(120px, 42%) 1fr;
    gap: 12px 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--site-border);
    font-size: 14px;
    line-height: 1.45;
}

.specs-dl-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.specs-dl-row dt {
    color: var(--site-ui-muted);
    font-weight: 600;
    margin: 0;
}

.specs-dl-row dd {
    margin: 0;
    color: var(--site-text);
    font-weight: 500;
}

.specs-dl-row--plain dd {
    grid-column: 1 / -1;
    color: var(--site-muted);
}

@media (max-width: 520px) {
    .specs-dl-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.site-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.site-spec-item {
    background: var(--site-surface-2);
    border: 1px solid var(--site-border);
    border-radius: 8px;
    padding: 12px 14px;
}

.site-spec-item .label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--site-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.site-spec-item .value {
    font-size: 14px;
    font-weight: 700;
    color: var(--site-text);
}

.site-panel {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    padding: 28px;
    box-shadow: var(--site-shadow);
}

.site-panel h3 {
    color: var(--site-text);
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 16px;
}

.site-panel .prose {
    color: var(--site-muted);
    font-size: 15px;
    line-height: 1.75;
}

/* Модалки */
body.site-public .modal-overlay {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
}

body.site-public .modal-content {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius);
    color: var(--site-text);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15);
}

body.site-public .modal-close {
    color: var(--site-muted);
}

body.site-public .catalog-modal-content {
    background: var(--site-surface);
    border-color: var(--site-border);
}

body.site-public .catalog-modal-content h2 {
    color: var(--site-text) !important;
    text-transform: none !important;
}

body.site-public .cat-tile-card {
    background: var(--site-surface);
    border-color: var(--site-border);
    border-radius: var(--site-radius);
    height: 160px;
}

body.site-public .cat-tile-card img {
    opacity: 0.85;
}

body.site-public .cat-tile-name {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
    font-size: 13px;
    text-transform: none;
}

/* Подвал */
.site-footer {
    background: #1c1e26;
    color: #9ca3af;
    padding: 48px 0;
    margin-top: auto;
    border-top: none;
}

.site-footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.site-footer h2 {
    color: #fff;
    margin-bottom: 12px;
    font-weight: 800;
}

.site-footer a {
    color: #e5c76b;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .footer-phone {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

/* Пагинация */
body.site-public .pagination-wrap {
    margin-top: 40px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

body.site-public .pagination-wrap .page-current {
    background: var(--site-accent);
    color: #fff;
    padding: 10px 16px;
    font-weight: 700;
    border-radius: 8px;
}

body.site-public .pagination-wrap .btn-outline {
    padding: 10px 16px;
}

@media (max-width: 900px) {
    /* Компактная шапка: лого + телефон | поиск | меню */
    .site-header-inner {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-areas:
            "logo phone toggle"
            "search search search"
            "nav nav nav";
        align-items: center;
        gap: 8px 12px;
        padding: 8px 0 10px;
    }

    .site-logo {
        grid-area: logo;
        font-size: 18px;
        justify-self: start;
    }

    .site-phone {
        grid-area: phone;
        justify-self: end;
        font-size: 12px;
        line-height: 1.25;
        text-align: right;
        max-width: 48vw;
        white-space: normal;
    }

    .site-search {
        grid-area: search;
        max-width: none;
        min-width: 0;
        margin: 0;
        width: 100%;
    }

    .site-search input {
        padding: 8px 12px;
        font-size: 13px;
    }

    .site-search button {
        padding: 0 14px;
        font-size: 13px;
    }

    .site-nav-toggle {
        grid-area: toggle;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 8px 14px;
        border-radius: 10px;
        border: 1px solid var(--site-border);
        background: #fff;
        color: var(--site-text);
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
    }
    .site-nav-toggle.is-open {
        background: #111;
        color: #fff;
        border-color: #111;
    }

    .site-nav {
        grid-area: nav;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        flex-wrap: wrap;
        overflow: visible;
        padding: 10px;
        margin-top: 4px;
        background: #fff;
        border: 1px solid var(--site-border);
        border-radius: 14px;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    }
    .site-nav.is-open {
        display: flex;
    }
    .site-nav > a,
    .site-nav .site-nav-drop-btn,
    .site-nav .site-nav-cabinet-btn {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 15px;
    }
    .site-nav-dropdown {
        width: 100%;
    }
    .site-nav-drop-btn {
        width: 100%;
        justify-content: space-between;
    }
    .site-nav-dropdown.is-open .site-nav-drop-menu {
        position: static;
        transform: none;
        left: auto;
        display: grid;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border: 0;
        padding: 0 0 8px 8px;
        background: transparent;
    }
    .site-nav-drop-menu a {
        min-height: 42px;
        display: flex;
        align-items: center;
    }
    .site-country-switch {
        margin: 0 0 6px;
    }

    .catalog-sidebar {
        top: 72px;
    }

    .catalog-nav-list {
        max-height: 200px;
    }
}

@media (max-width: 600px) {
    body.site-public .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-header-inner {
        padding: 6px 0 8px;
        gap: 6px;
    }

    .site-logo {
        font-size: 17px;
    }

    .site-phone-text {
        display: none;
    }

    .site-phone-icon {
        display: inline;
    }

    .site-phone {
        max-width: none;
        padding: 6px 8px;
        border-radius: 8px;
        background: var(--site-surface-2);
        border: 1px solid var(--site-border);
    }

    .site-nav {
        font-size: 13px;
        gap: 14px;
    }

    body.site-public .product-grid {
        grid-template-columns: 1fr;
    }

    body.site-public .hero {
        min-height: auto;
        padding: 28px 12px 32px;
    }

    .site-page {
        padding: 24px 0 48px;
    }

    .site-section-title {
        margin-bottom: 24px;
        font-size: 20px;
    }

    body.site-public .product-grid {
        gap: 16px;
    }

    /* Мобилка: укрупнённые вертикальные карточки на всю ширину */
    body.site-public .product-card {
        display: flex;
        flex-direction: column;
        border-radius: 16px;
        overflow: hidden;
    }

    body.site-public .product-card:hover {
        transform: translateY(-2px);
    }

    body.site-public .product-card--catalog .card-image-wrap {
        padding: 0;
        min-height: 0;
        aspect-ratio: 5 / 4;
        border-bottom: none;
        border-radius: 15px 15px 0 0;
        overflow: hidden;
    }

    body.site-public .product-card--catalog .card-image-wrap img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: none;
        object-fit: cover;
    }

    body.site-public .product-card--catalog .card-badge {
        top: 10px;
        left: 10px;
        font-size: 9px;
        padding: 5px 10px;
        max-width: calc(100% - 20px);
    }

    body.site-public .product-card--catalog .card-info {
        padding: 14px 14px 16px;
    }

    body.site-public .product-card--catalog .card-info h3 {
        font-size: 14px;
        margin-bottom: 6px;
        min-height: 0;
        -webkit-line-clamp: 2;
    }

    body.site-public .product-card--catalog .card-meta {
        margin-bottom: 12px;
        font-size: 12px;
    }

    body.site-public .product-card--catalog .product-price {
        font-size: 20px;
    }

    body.site-public .card-action {
        flex-direction: column;
        align-items: stretch;
        padding-top: 12px;
        border-top: 1px solid rgba(15, 23, 42, 0.06);
        gap: 10px;
    }

    body.site-public .card-cta-row {
        gap: 8px;
    }

    body.site-public .product-card--catalog .btn-buy-mini {
        flex: 1 1 auto;
        padding: 11px 14px;
        font-size: 12px;
        min-height: 44px;
    }

    body.site-public .card-msg-btn {
        width: 44px;
        height: 44px;
    }

    body.site-public .card-spec-badges {
        left: 8px;
        right: 8px;
        bottom: 10px;
        gap: 6px;
    }

    body.site-public .card-spec-badges-col {
        gap: 4px;
        max-width: 48%;
    }

    body.site-public .card-spec-badge {
        padding: 4px 8px 4px 6px;
        font-size: 8px;
        border-radius: 999px;
    }

    body.site-public .product-card:not(.product-card--catalog) .card-image-wrap {
        padding: 14px;
        min-height: 200px;
    }

    body.site-public .product-card:not(.product-card--catalog) .card-image-wrap img {
        height: 180px;
    }

    /* Страница товара */
    body.site-public .container.product-page {
        padding-left: 0;
        padding-right: 0;
    }

    body.site-public .product-page {
        padding-top: 16px;
    }

    body.site-public .product-page .product-top-header {
        padding: 0 16px;
        margin-bottom: 14px;
    }

    body.site-public .product-top-header h1 {
        font-size: 22px !important;
        line-height: 1.2 !important;
    }

    body.site-public .product-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    body.site-public .product-media-showcase {
        gap: 10px;
    }

    body.site-public .main-img-view {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        aspect-ratio: 4 / 3;
        min-height: 0;
        max-height: min(42vh, 360px);
        padding: 0;
        box-shadow: none;
    }

    body.site-public .main-img-view img {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    body.site-public .main-img-view > .card-spec-badges {
        left: 10px;
        right: 10px;
        bottom: 12px;
    }

    body.site-public .gallery-thumbs-strip {
        padding: 0 16px 4px;
        gap: 8px;
    }

    body.site-public .gallery-thumb img {
        width: 72px;
        height: 54px;
    }

    body.site-public .product-details {
        position: static;
        margin: 0 16px;
        padding: 18px 16px 20px;
        border-radius: 18px;
        top: auto;
    }

    body.site-public .product-details .price-lg {
        font-size: 28px;
        margin-bottom: 16px;
    }

    body.site-public .product-actions-messengers {
        grid-template-columns: 1fr 1fr;
    }

    body.site-public .product-page-bottom {
        margin: 20px 16px 0;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.site-public .product-page .site-panel {
        padding: 18px 16px;
        border-radius: 16px;
    }
}

@media (max-width: 900px) {
    body.site-public .product-layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    body.site-public .product-details {
        position: static;
        top: auto;
    }
}

@media (min-width: 601px) and (max-width: 900px) {
    body.site-public .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    body.site-public .product-card--catalog .card-image-wrap {
        min-height: 0;
        padding: 0;
        aspect-ratio: 5 / 4;
    }

    body.site-public .product-card--catalog .card-image-wrap img {
        height: 100%;
        object-fit: cover;
    }

    body.site-public .product-card:not(.product-card--catalog) .card-image-wrap {
        min-height: 220px;
        padding: 16px;
    }

    body.site-public .product-card:not(.product-card--catalog) .card-image-wrap img {
        height: 200px;
    }

    body.site-public .product-card--catalog .card-info {
        padding: 14px 16px 16px;
    }

    body.site-public .product-card--catalog .card-info h3 {
        font-size: 14px;
    }
}

/* Формы в модалках на публичке */
body.site-public .form-control {
    background: var(--site-surface-2);
    border: 1px solid var(--site-border);
    color: var(--site-text);
    border-radius: 8px;
}

body.site-public .admin-panel h2 {
    color: var(--site-text) !important;
    text-transform: none !important;
}

body.site-public .calc-result-box {
    background: var(--site-surface-2);
    border: 1px solid var(--site-border);
    color: var(--site-text);
}

body.site-public .btn-telegram,
body.site-public .btn-whatsapp {
    border-radius: 8px;
}

body.site-public label {
    color: var(--site-text);
}

/* ——— Главная страница ——— */
.home-toast {
    background: linear-gradient(90deg, #ecfdf5, #d1fae5);
    border-bottom: 1px solid #a7f3d0;
    color: #065f46;
    text-align: center;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
}

.home-hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 32px 0 48px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--site-border);
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(118deg, #ffffff 0%, #f6f7f9 42%, #eef1f5 100%),
        radial-gradient(ellipse 80% 60% at 85% 20%, rgba(184, 134, 11, 0.08), transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 90%, rgba(26, 29, 38, 0.04), transparent 50%);
    z-index: 0;
}

.home-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(26, 29, 38, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26, 29, 38, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent 85%);
    pointer-events: none;
}

.home-hero > .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.home-hero-content {
    max-width: 720px;
}

.home-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 12px 0 12px 24px;
}

.home-hero-visual::before {
    content: '';
    position: absolute;
    width: min(420px, 90%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, rgba(184, 134, 11, 0.14) 0%, rgba(184, 134, 11, 0.04) 42%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.home-hero-logo {
    position: relative;
    z-index: 1;
    width: min(400px, 38vw);
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 20px 48px rgba(26, 29, 38, 0.14));
}

body.site-public .home-hero .floating-logo {
    animation: homeLogoFloat 6s ease-in-out infinite;
}

@keyframes homeLogoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.02); }
}

.btn-lg {
    padding: 15px 28px !important;
    font-size: 15px !important;
}

.home-hero-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--site-muted);
    margin-bottom: 16px;
}

.home-hero h1 {
    font-size: clamp(26px, 4.2vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--site-text);
    margin-bottom: 20px;
}

.home-hero-lead {
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.65;
    color: var(--site-muted);
    margin-bottom: 32px;
    max-width: 820px;
}

.home-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.home-hero-cta .btn-gold,
.home-hero-cta .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: var(--font);
}

.home-trust-bar {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
}

.home-trust-bar li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--site-border);
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--site-text);
    box-shadow: var(--site-shadow);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.home-trust-bar li:hover {
    transform: translateY(-2px);
    box-shadow: var(--site-shadow-hover);
    border-color: #d1d5db;
}

.home-trust-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.home-section {
    padding: 64px 0;
}

.home-section.home-importer {
    background: var(--site-surface);
}

.home-section.home-faq {
    background: var(--site-bg);
}

.home-section-head {
    text-align: center;
    margin-bottom: 36px;
}

.home-section-head .home-section-title {
    margin-bottom: 8px;
}

.home-section-head .home-section-sub {
    margin-bottom: 0;
}

.home-section-title {
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.home-section-sub {
    text-align: center;
    color: var(--site-muted);
    font-size: 15px;
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.home-importer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}

.home-importer h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    margin-bottom: 16px;
}

.home-lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--site-text);
    margin-bottom: 16px;
}

.home-importer-text p {
    color: var(--site-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.home-section-cta {
    margin-top: 8px;
}

.home-infographic {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-stat-card {
    background: var(--site-bg);
    border: 1px solid var(--site-border);
    border-radius: 12px;
    box-shadow: var(--site-shadow);
    padding: 20px 22px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-stat-card:hover {
    transform: translateX(4px);
    box-shadow: var(--site-shadow-hover);
}

.home-stat-num {
    grid-row: 1 / 3;
    font-size: 28px;
    font-weight: 900;
    color: rgba(45, 58, 77, 0.2);
    line-height: 1;
}

.home-stat-title {
    font-weight: 800;
    font-size: 15px;
    color: var(--site-text);
}

.home-stat-desc {
    font-size: 13px;
    color: var(--site-muted);
    line-height: 1.45;
}

.home-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-faq-item {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--site-shadow);
}

.home-faq-item summary {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.home-faq-item summary::-webkit-details-marker {
    display: none;
}

.home-faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--site-accent);
    flex-shrink: 0;
}

.home-faq-item[open] summary::after {
    content: '−';
}

.home-faq-item p {
    padding: 0 20px 16px;
    margin: 0;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.65;
}

.home-faq-cta-wrap {
    text-align: center;
    margin-top: 28px;
}

.home-news {
    position: relative;
    background:
        radial-gradient(90% 70% at 0% 0%, rgba(201, 151, 12, 0.06) 0%, transparent 55%),
        radial-gradient(70% 60% at 100% 20%, rgba(45, 58, 77, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, #f4f6f9 0%, #eef0f4 100%);
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.home-catalog {
    background: transparent;
}

.home-news-head {
    margin-bottom: 32px;
    align-items: flex-end;
}

.home-news-title {
    text-align: left !important;
    margin: 0 0 8px !important;
}

.home-news-sub {
    margin: 0 !important;
    text-align: left !important;
    max-width: 420px;
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.home-news-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.home-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    border-color: rgba(201, 151, 12, 0.35);
}

.home-news-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.home-news-card-img {
    position: relative;
    aspect-ratio: 3 / 2;
    background: linear-gradient(145deg, #e8ecf2 0%, #d5dbe5 100%);
    overflow: hidden;
}

.home-news-card-img.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-news-card-img-fallback {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: rgba(45, 58, 77, 0.35);
}

.home-news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}

.home-news-card:hover .home-news-card-img img {
    transform: scale(1.05);
}

.news-audience-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(20, 24, 32, 0.82);
    color: #f8e7b0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.news-audience-badge--inline {
    position: static;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    background: #1f2937;
}

.home-news-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.home-news-date {
    display: inline-flex;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    color: #a67809;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(201, 151, 12, 0.12);
}

.home-news-card h3 {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    color: #121826;
    margin: 0 0 10px;
    text-transform: none;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    min-height: 2.6em;
}

.home-news-card p {
    font-size: 13.5px;
    line-height: 1.55;
    color: #6b7280;
    margin: 0 0 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.home-news-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #2d3a4d;
}

.home-news-more span {
    position: relative;
}

.home-news-more span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--site-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.home-news-more::after {
    content: '→';
    transition: transform 0.25s ease;
}

.home-news-card:hover .home-news-more {
    color: #0f172a;
}

.home-news-card:hover .home-news-more span::after {
    transform: scaleX(1);
}

.home-news-card:hover .home-news-more::after {
    transform: translateX(3px);
}

.news-index-page {
    padding-top: 36px;
}

.news-index-head {
    margin-bottom: 28px;
    max-width: 560px;
}

.news-index-title {
    text-align: left !important;
    margin-bottom: 8px !important;
}

.news-index-sub {
    text-align: left !important;
    margin: 0 !important;
    max-width: none;
}

@media (max-width: 1100px) {
    .home-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-news-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-news-card {
        border-radius: 16px;
    }

    .home-news-card-img {
        aspect-ratio: 16 / 10;
    }
}

/* Статья новости (HTML из редактора) */
.news-article .news-back-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}
.news-article-title {
    font-size: clamp(26px, 4vw, 36px);
    margin: 16px 0;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
}
.news-article-date {
    color: var(--text-muted);
    margin-bottom: 24px;
}
.news-article-cover {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 32px;
    display: block;
}
.news-prose {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
}
.news-prose h2,
.news-prose h3,
.news-prose h4 {
    margin: 1.4em 0 0.6em;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
}
.news-prose h2 { font-size: 1.45rem; }
.news-prose h3 { font-size: 1.2rem; }
.news-prose p { margin: 0 0 1em; }
.news-prose ul,
.news-prose ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}
.news-prose a {
    color: var(--gold);
    text-decoration: underline;
}
.news-prose img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1em 0;
    border: 1px solid var(--border);
}
.news-prose blockquote {
    margin: 1.2em 0;
    padding: 12px 18px;
    border-left: 4px solid var(--gold);
    background: rgba(212, 175, 55, 0.08);
    border-radius: 0 8px 8px 0;
    color: var(--text-muted);
}
.news-prose .news-video,
.news-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1.5em 0;
    border-radius: 12px;
    background: #000;
}
.news-prose .news-video.news-video--vertical,
.news-video.news-video--vertical {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 177.78%; /* 9:16 */
}
.news-prose .news-video iframe,
.news-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.news-stories {
    margin: 0 0 28px;
}
.news-stories-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}
.news-stories-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.news-stories-card {
    flex: 0 0 auto;
    width: min(220px, 58vw);
    margin: 0;
    scroll-snap-align: start;
    border-radius: 18px;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid var(--border, #2a2a2a);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.news-stories-video {
    display: block;
    width: 100%;
    aspect-ratio: 9 / 16;
    height: auto;
    max-height: 72vh;
    object-fit: cover;
    background: #000;
    vertical-align: top;
}
.news-stories-cap {
    padding: 8px 10px;
    font-size: 12px;
    color: var(--text-muted, #888);
}
.news-videos-landscape {
    margin: 1.5em 0 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.news-file-video {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border, #2a2a2a);
}
.news-file-video video {
    display: block;
    width: 100%;
    max-height: 70vh;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #000;
}
.news-prose .news-file-video,
.news-prose video.news-file-video--vertical {
    max-width: 320px;
    margin: 1.5em auto;
}
.news-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 36px;
}
.news-gallery-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 4/3;
}
.news-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
.news-gallery-item:hover img {
    transform: scale(1.04);
}

.home-catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.home-catalog-bottom-cta {
    margin-top: 40px;
    text-align: center;
    padding: 40px 32px;
    background: linear-gradient(135deg, #1c1e26 0%, #2a2d38 100%);
    border-radius: var(--site-radius);
    color: #fff;
}

.home-catalog-bottom-cta p {
    color: #e5e7eb !important;
}

.home-catalog-bottom-cta p {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--site-text);
}

body.site-public textarea.form-control {
    resize: vertical;
    min-height: 80px;
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font);
}

body.site-public .admin-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.site-public .admin-form .form-control {
    width: 100%;
    padding: 10px 14px;
}

body.site-public .home-request-form .modal-content h2,
#homeRequestModal .admin-panel h2 {
    font-size: 22px;
}

#homeRequestModal .modal-content {
    max-width: 440px;
}

@media (max-width: 900px) {
    .catalog-sidebar {
        position: static;
        gap: 10px;
    }

    .catalog-accordion-toggle {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px 10px;
        width: 100%;
        padding: 14px 16px;
        margin: 0;
        border: none;
        background: var(--site-surface);
        color: var(--site-text);
        font-family: var(--font);
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        text-align: left;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .catalog-accordion-toggle:hover {
        background: var(--site-surface-2);
    }

    .catalog-accordion-label {
        flex: 1;
        min-width: 120px;
    }

    .catalog-accordion-hint {
        font-size: 11px;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
        color: var(--site-accent);
        background: #fffbf0;
        border: 1px solid #f0e4c4;
        padding: 2px 8px;
        border-radius: 20px;
        max-width: 55%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .catalog-accordion-chevron {
        flex-shrink: 0;
        margin-left: auto;
    }

    .catalog-accordion:not(.is-open) .catalog-accordion-panel {
        display: none;
    }

    .catalog-accordion.is-open .catalog-accordion-panel {
        border-top: 1px solid var(--site-border);
    }

    .catalog-accordion .catalog-nav,
    .catalog-accordion .sidebar-filter {
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .catalog-sidebar-title--desktop {
        display: none;
    }

    .catalog-nav-list {
        max-height: min(50vh, 320px);
        overflow-y: auto;
    }

    body.site-public .category-layout {
        grid-template-columns: 1fr;
    }

    .home-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .home-hero-content {
        max-width: none;
    }
    .home-hero-cta {
        justify-content: center;
    }
    .home-hero-visual {
        padding: 8px 0 24px;
    }
    .home-hero-logo {
        width: min(340px, 78vw);
    }
    .home-importer-grid {
        grid-template-columns: 1fr;
    }
    .home-hero {
        min-height: auto;
        padding: 24px 0 32px;
    }

    .home-hero-grid {
        margin-bottom: 24px;
        gap: 20px;
    }

    .home-hero-visual {
        padding: 0;
    }

    .home-hero-logo {
        width: min(260px, 70vw);
    }

    .home-section {
        padding: 40px 0;
    }
}

@media (max-width: 600px) {
    .home-hero {
        padding: 16px 0 24px;
    }

    .home-hero h1 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .home-hero-lead {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .home-hero-cta {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .home-hero-cta .btn-gold,
    .home-hero-cta .btn-outline {
        width: 100%;
    }

    .home-hero-grid {
        margin-bottom: 16px;
        gap: 12px;
    }

    .home-hero-logo {
        width: min(180px, 52vw);
    }

    .home-trust-bar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .home-trust-bar li {
        padding: 10px 12px;
        font-size: 12px;
    }

    .home-section {
        padding: 32px 0;
    }

    .home-section-head {
        margin-bottom: 24px;
    }

    .catalog-sidebar {
        top: 58px;
    }

    .catalog-accordion-toggle {
        padding: 12px 14px;
    }

    .catalog-nav,
    body.site-public .sidebar-filter {
        padding: 12px 14px 14px;
    }

    .catalog-nav-list {
        max-height: min(45vh, 280px);
    }

    body.site-public .category-layout {
        gap: 16px;
    }
}

@media (min-width: 1200px) {
    body.site-public .product-layout {
        grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr);
        gap: 40px;
    }

    body.site-public .main-img-view {
        aspect-ratio: 4 / 3;
        max-height: 500px;
        min-height: 0;
    }

    body.site-public .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 28px;
    }

    .home-hero-grid {
        gap: 56px;
    }

    .home-importer-grid {
        gap: 56px;
    }
}

@media (min-width: 901px) {
    .catalog-accordion {
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }

    .catalog-accordion-panel {
        display: block !important;
    }

    .catalog-sidebar-title--desktop {
        display: block;
    }
}

/* Вакансии */
.vacancies-page {
    padding-bottom: 56px;
}
.vacancies-page-head {
    margin-bottom: 32px;
    max-width: 720px;
}
.vacancies-page-lead {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--site-muted);
}
.vacancies-list {
    display: grid;
    gap: 28px;
}
.vacancy-card {
    padding: 0;
    overflow: hidden;
}
.vacancy-card-hero {
    width: 100%;
    aspect-ratio: 21 / 9;
    max-height: 420px;
    min-height: 200px;
    overflow: hidden;
    background: var(--site-surface-2);
    border-bottom: 1px solid var(--site-border);
}
.vacancy-card-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.vacancy-card-body {
    padding: 28px 32px 32px;
}
.vacancy-card-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}
.vacancy-card-income {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 800;
    color: var(--site-accent);
}
.vacancy-card-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--site-text);
}
.vacancy-card-text p {
    margin: 0 0 12px;
}
.vacancies-empty {
    text-align: center;
    padding: 40px 28px;
}
.vacancies-empty p {
    margin: 0 0 20px;
    color: var(--site-muted);
}
.vacancies-page-cta {
    margin-top: 28px;
    text-align: center;
    padding: 32px 28px;
}
.vacancies-page-cta h2 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
}
.vacancies-page-cta p {
    margin: 0 0 20px;
    color: var(--site-muted);
}
.vacancies-page-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.vacancies-page-cta-actions .btn-gold,
.vacancies-page-cta-actions .btn-outline {
    text-decoration: none;
}

@media (max-width: 640px) {
    .vacancy-card-hero {
        aspect-ratio: 16 / 10;
        min-height: 160px;
        max-height: 280px;
    }
    .vacancy-card-body {
        padding: 20px 18px 24px;
    }
    .vacancy-card-title {
        font-size: 20px;
    }
}

/* ������ / � ��� / �������� */
.factories-page-head,
.about-page-head,
.contacts-page-head {
    margin-bottom: 28px;
    max-width: 640px;
}
.factories-page-title,
.about-page-title,
.contacts-page-title {
    text-align: left !important;
    margin-bottom: 8px !important;
}
.factories-page-sub,
.contacts-page-sub {
    text-align: left !important;
    margin: 0 !important;
    max-width: none;
}
.factories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.factory-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.factory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    border-color: rgba(201, 151, 12, 0.35);
}
.factory-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.factory-card-img {
    aspect-ratio: 16 / 10;
    background: linear-gradient(145deg, #e8ecf2, #d5dbe5);
    overflow: hidden;
}
.factory-card-img.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.factory-card-fallback {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: rgba(45, 58, 77, 0.35);
}
.factory-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.factory-card:hover .factory-card-img img {
    transform: scale(1.05);
}
.factory-card-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.factory-card-country {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    color: #a67809;
    background: rgba(201, 151, 12, 0.12);
    padding: 4px 9px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.factory-card h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.factory-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--site-muted);
    margin: 0 0 16px;
    flex-grow: 1;
}
.factory-card-more {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: #2d3a4d;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.factory-card-more::after { content: '>'; }
.factory-article { max-width: 900px; }
.factory-article-country {
    color: var(--site-accent);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
}
.factory-article-summary {
    font-size: 17px;
    line-height: 1.5;
    color: var(--site-muted);
    margin: 0 0 12px;
}
.factory-article-site a {
    color: var(--site-accent);
    font-weight: 700;
    text-decoration: none;
}
.about-page-lead {
    font-size: 18px;
    line-height: 1.5;
    color: var(--site-text);
    margin: 0;
    font-weight: 600;
}
.about-page-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 36px;
    align-items: start;
}
.about-page-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--site-muted);
    margin-bottom: 24px;
}
.about-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.about-page-aside {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    padding: 24px;
}
.about-page-aside h2 {
    margin: 0 0 14px;
    font-size: 16px;
}
.about-page-aside ul {
    margin: 0;
    padding-left: 18px;
    color: var(--site-muted);
    line-height: 1.7;
}
.about-page-legal {
    margin: 18px 0 0;
    font-size: 12px;
    color: var(--site-muted);
}
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.contacts-card {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    padding: 22px 24px;
}
.contacts-card h2 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--site-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.contacts-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--site-text);
    text-decoration: none;
    line-height: 1.4;
    margin: 0;
}
a.contacts-value:hover { color: var(--site-accent); }
.contacts-messengers {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.contacts-legal {
    margin-top: 24px;
    font-size: 13px;
    color: var(--site-muted);
}
@media (max-width: 900px) {
    .factories-grid,
    .about-page-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    .site-nav-drop-menu {
        left: 0;
        transform: none;
        min-width: 200px;
    }
}
@media (min-width: 701px) and (max-width: 1100px) {
    .factories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 404 */
.error-404-page {
    padding: 48px 0 80px;
}
.error-404-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}
.error-404-code {
    margin: 0;
    font-size: clamp(64px, 12vw, 96px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: rgba(201, 151, 12, 0.35);
}
.error-404-title {
    margin: 12px 0 12px;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--site-text);
}
.error-404-text {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--site-muted);
}
.error-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.error-404-actions .btn-gold,
.error-404-actions .btn-outline {
    text-decoration: none;
}

/* Cookie consent */
.site-cookie {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9300;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 640px;
    margin: 0 auto;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--site-border, #e2e5eb);
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(16, 24, 40, 0.14);
    color: var(--site-text, #1a1d26);
}
.site-cookie[hidden] { display: none !important; }
.site-cookie p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--site-muted, #6b7280);
}
.site-cookie-ok {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
}
body.partner-app-mode .site-cookie {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 640px) {
    .site-cookie {
        flex-direction: column;
        align-items: stretch;
        left: 8px;
        right: 8px;
    }
    .site-cookie-ok { width: 100%; }
}
