/* Car.dive — макет v2, адаптив */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-soft: #f9fafb;
    --accent: #e8604d;
    --accent-hover: #d44f3d;
    --accent-soft: #fde8e4;
    --success: #12b76a;
    --success-hover: #0e9f5c;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e8eaed;
    --badge-stock-bg: #ecfdf3;
    --badge-stock-text: #027a48;
    --badge-order-bg: #fffaeb;
    --badge-order-text: #b54708;
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-card: 0 4px 24px rgba(26, 26, 26, 0.06);
    --shadow-hover: 0 12px 40px rgba(26, 26, 26, 0.1);
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-bold: 600;
    --container: 1200px;
    --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

strong,
b,
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow { max-width: 440px; }
.container--narrow-text { max-width: 560px; text-align: center; }

/* ——— Header ——— */
.header {
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 1px 0 var(--border);
}

.header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: var(--header-h);
    gap: 16px;
}

.logo {
    flex-shrink: 0; 
    height: 100%;
    align-content: center;
    background-image: url('../img/grid-2@2x.png');
    background-repeat: no-repeat;
    background-position: -10% 60%;
    background-size: 80%;
    background-blend-mode: saturation;
}

.logo__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 20px;
    
}

.logo__img {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: 32px;
    max-width: 100%;
    object-fit: contain;
}

.header__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.header__burger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
}

.header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
    display: flex;
    justify-content: center;
    gap: 36px;
}

.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    white-space: nowrap;
}

.nav__link:hover,
.nav__link--active { color: var(--accent); }

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__action {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

.header__action:hover,
.header__action--active { color: var(--accent); }

.header__icon { flex-shrink: 0; }

.header__overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.header__overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.main { flex: 1; }

/* ——— Cards & buttons ——— */
.card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn:active { transform: scale(0.98); }

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

.btn--primary:hover { background: var(--accent-hover); color: #fff; }

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

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

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

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--block { width: 100%; }
.btn--lg { padding: 16px 24px; font-size: 1rem; }

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge--stock {
    background: var(--badge-stock-bg);
    color: var(--badge-stock-text);
}

.badge--order {
    background: var(--badge-order-bg);
    color: var(--badge-order-text);
}

/* ——— Hero (главная + страница авто) ——— */
.home-hero { padding: 24px 0 0; }

.car-page { padding: 16px 0 48px; }

.home-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 400px);
    gap: 20px;
    align-items: stretch;
}

/* ——— Страница авто (auto.ru) ——— */
.car-page__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
}

.car-page__title {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.car-page__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.car-page__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--text);
    color: #fff;
}

.car-page__badge--in_stock { background: var(--success); }

.car-page__head-price { text-align: right; flex-shrink: 0; }

.car-page__price {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.car-page__price-hint {
    font-size: 0.8125rem;
    color: #4183d7;
    margin-top: 4px;
}

.car-page__layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.car-page__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.car-page__desktop-only { display: block; }

.car-page__info { display: flex; flex-direction: column; gap: 24px; }

/* Мобильные блоки (скрыты на десктопе) */
.car-mobile-bar,
.car-mobile-summary,
.car-mobile-specs,
.car-mobile-sticky,
.car-gallery__slider,
.car-gallery__counter {
    display: none;
}

.car-page__credit-wrap .car-credit { padding: 20px; }

.car-page__similar-head { margin-top: 48px; }

.car-block__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.car-facts__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}

.car-facts__row:last-child { border-bottom: none; }

.car-facts__label { color: var(--text-muted); }

.car-facts__value { font-weight: 600; text-align: right; }

.car-chars {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.car-chars__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.car-chars__item:last-of-type { border-bottom: none; }

.car-chars__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.car-chars__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.car-chars__label {
    font-size: 0.8125rem;
    color: #8e8e8e;
    font-weight: 500;
}

.car-chars__value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.car-chars__value--link { color: #4183d7; }

.car-chars__all-btn {
    width: 100%;
    margin-top: 16px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: #f0f0f0;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s;
}

.car-chars__all-btn:hover { background: #e5e5e5; }

/* Галерея */
.car-gallery { display: flex; flex-direction: column; gap: 8px; position: relative; }

.car-gallery__desktop { display: flex; flex-direction: column; gap: 8px; }

.car-gallery__main {
    background: #ebebeb;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.car-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.car-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}

.car-gallery__thumb {
    position: relative;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #ebebeb;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    transition: border-color 0.2s;
}

.car-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.car-gallery__thumb--active { border-color: var(--accent); }

.car-gallery__thumb--more img { filter: brightness(0.55); }

.car-gallery__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    background: rgba(0, 0, 0, 0.35);
}

/* Popup характеристик */
.specs-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.specs-modal[hidden] { display: none; }

.specs-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.specs-modal__dialog {
    position: relative;
    width: min(960px, 100%);
    max-height: calc(100vh - 48px);
    background: var(--surface);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.specs-modal__close {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--surface-soft);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.specs-modal__scroll {
    flex: 1;
    overflow-y: auto;
    padding: 56px 32px 24px;
}

.specs-modal__head { margin-bottom: 24px; }

.specs-modal__title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.specs-modal__subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.specs-modal__dims {
    margin-bottom: 28px;
    padding: 20px;
    background: var(--surface-soft);
    border-radius: 12px;
}

.specs-modal__dims-visual {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    min-height: 100px;
}

.specs-dim { text-align: center; font-size: 0.8125rem; }

.specs-dim__label { display: block; color: var(--text-muted); margin-bottom: 4px; }

.specs-dim__value { font-weight: 600; }

.specs-dim__line {
    display: block;
    background: var(--border);
    margin: 8px auto;
}

.specs-dim__line--h { width: 80%; height: 2px; }
.specs-dim__line--v { width: 2px; height: 48px; }

.specs-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px 40px;
}

.specs-section { margin-bottom: 24px; }

.specs-section__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.specs-section__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border);
}

.specs-section__row:last-child { border-bottom: none; }

.specs-section__row dt {
    color: var(--text-muted);
    font-weight: 500;
    flex: 1;
}

.specs-section__row dd {
    font-weight: 600;
    text-align: right;
    max-width: 55%;
}

.specs-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
}

.specs-modal__footer-car {
    display: flex;
    align-items: center;
    gap: 12px;
}

.specs-modal__footer-car img {
    border-radius: 8px;
    object-fit: cover;
}

.specs-modal__footer-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.specs-modal__footer-price {
    font-size: 0.9375rem;
    font-weight: 600;
}

.btn--success {
    background: #3bc059;
    color: #fff;
    border: none;
}

.btn--success:hover {
    background: #32a84e;
    color: #fff;
}

body.specs-modal-open { overflow: hidden; }

/* Showcase на главной (hero) */
.home-hero .car-showcase {
    padding: 28px 28px 20px;
    display: flex;
    flex-direction: column;
}

.home-hero .car-showcase__header { margin-bottom: 20px; }

.home-hero .car-showcase__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    line-height: 1.15;
}

.home-hero .car-showcase__brand { color: var(--text-muted); font-weight: 600; }
.home-hero .car-showcase__model { color: var(--accent); font-weight: 600; }

.home-hero .car-showcase__specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.home-hero .car-spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--surface-soft);
    border-radius: var(--radius-md);
}

.home-hero .car-spec__icon { color: var(--accent); display: flex; }
.home-hero .car-spec__value { font-size: 0.8125rem; font-weight: 600; }
.home-hero .car-spec__label { font-size: 0.6875rem; color: var(--text-muted); }

.home-hero .car-showcase__gallery {
    position: relative;
    flex: 1;
    min-height: 220px;
    background: var(--surface-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.home-hero .car-showcase__gallery img {
    width: 100%;
    min-height: 200px;
    object-fit: contain;
    padding: 16px 48px;
}

.home-hero .car-showcase__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero .car-showcase__nav--prev { left: 12px; }
.home-hero .car-showcase__nav--next { right: 12px; }

.home-hero .car-showcase__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 14px;
    background: var(--surface);
}

.home-hero .car-showcase__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
}

.home-hero .car-showcase__dot--active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent);
}

/* ——— Калькулятор ——— */
.car-credit {
    padding: 28px;
    display: flex;
    flex-direction: column;
}

.car-credit__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.credit-field { margin-bottom: 24px; }

.credit-field__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.credit-field__label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 600;
}

.credit-field__value {
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: right;
}

.credit-field__track {
    position: relative;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

.credit-field__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 6px;
    margin: 0;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.credit-field__range::-webkit-slider-runnable-track {
    height: 6px;
    background: linear-gradient(
        to right,
        var(--accent) 0%,
        var(--accent) var(--progress, 30%),
        var(--border) var(--progress, 30%),
        var(--border) 100%
    );
    border-radius: 3px;
}

.credit-field__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    margin-top: -8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(232, 96, 77, 0.45);
    border: 3px solid #fff;
}

.credit-field__range::-moz-range-track {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

.credit-field__range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(232, 96, 77, 0.45);
}

.credit-terms { margin-bottom: 20px; }

.credit-terms__label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
}

.credit-terms__buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.credit-terms__btn {
    padding: 12px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
}

.credit-terms__btn:hover:not(.credit-terms__btn--active) {
    border-color: var(--accent);
    color: var(--accent);
}

.credit-terms__btn--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.credit-monthly-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
    min-height: 1.25em;
}

.credit-monthly-hint:not(:empty) {
    color: var(--accent);
    font-weight: 600;
}

.car-credit__note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    font-size: 0.6875rem;
    color: var(--text-light);
    margin-top: 14px;
    text-align: center;
    line-height: 1.45;
}

.car-credit__note svg { flex-shrink: 0; margin-top: 1px; }

.car-credit .btn--primary { margin-top: auto; }

/* ——— Features ——— */
.features-bar { padding: 20px 0 32px; }

.features-bar__list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.features-bar__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.features-bar__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 600;
}

.features-bar__title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.features-bar__desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ——— Sections ——— */
.section { padding: 8px 0 40px; }
.section--models { padding-top: 16px; }
.section--promo { padding-bottom: 24px; }
.section--about { padding-bottom: 56px; }

.section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.section__title {
    font-size: 28px;
font-weight: 500;
color: #454547;
margin-top: 16px;
    letter-spacing: -0.02em;
}

.section__title--center { text-align: center; width: 100%; margin-bottom: 12px; }
.section__title--page { margin-bottom: 12px; }

.section__lead {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    max-width: 640px;
}

.section__link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent);
}

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

.about-lead {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.65;
}

/* ——— Car grid & cards ——— */
.car-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.car-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.car-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.car-card__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 16px 0;
}

.car-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.car-card__price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 4px;
}

.car-card__image {
    padding: 8px 12px 12px;
    aspect-ratio: 16/11;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.car-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

/* ——— Promo ——— */
.promo-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.promo-banner {
    position: relative;
    border-radius: var(--radius-xl);
    min-height: 200px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.promo-banner__content {
    position: relative;
    z-index: 1;
    padding: 28px 32px;
    max-width: 65%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    min-height: 200px;
    justify-content: center;
}

.promo-banner--loan {
    background: linear-gradient(120deg, #fff8f6 0%, #ffece8 45%, #fff 100%);
}

.promo-banner--tradein {
    background: linear-gradient(120deg, #f6fef9 0%, #e8f8ef 50%, #fff 100%);
}

.promo-banner__title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.promo-banner__text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 4px;
}

.promo-banner__decor {
    position: absolute;
    right: 20px;
    bottom: 16px;
    font-size: 4rem;
    opacity: 0.35;
    pointer-events: none;
    line-height: 1;
}

.promo-banner__decor--wallet { right: 28px; bottom: 24px; font-size: 3.5rem; }

/* ——— Breadcrumb ——— */
.breadcrumb {
    margin-bottom: 16px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.breadcrumb a:hover { color: var(--accent); }

/* ——— Catalog ——— */
.catalog {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.catalog__sidebar { position: sticky; top: calc(var(--header-h) + 16px); }

.filter {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.filter__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.filter__group { margin-bottom: 14px; }

.filter__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.filter__select,
.filter__input {
    width: 100%;
    padding: 11px 14px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text);
}

.filter__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.filter__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.catalog__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.catalog__count { font-size: 0.9375rem; color: var(--text-muted); }

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

.catalog__sort-label { font-size: 0.8125rem; color: var(--text-muted); }

.catalog__empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* ——— Auth ——— */
.auth-tabs {
    display: flex;
    margin-bottom: 28px;
}

.auth-tabs__btn {
    flex: 1;
    padding: 14px 16px 11px;
    border: none;
    border-bottom: 1px solid #d1d1d1;
    background: transparent;
    font-weight: 600;
    font-size: 1rem;
    color: #8e8e8e;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.auth-tabs__btn:hover {
    color: var(--text);
}

.auth-tabs__btn--active {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 9px;
}

.auth-tabs__btn--active:hover {
    color: var(--accent);
}

.auth-panel { display: none; }
.auth-panel--active { display: block; }

.btn--yandex {
    display: inline-flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    gap: 12px;
    background: #1f2128;
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 999px;
    padding: 6px 12px;
    min-height: 56px;
    margin-bottom: 0;
    
    align-self: center;
}

.btn--yandex:hover {
    background: #2a2d36;
    color: #fff;
}

.btn--yandex__icon-wrap {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.btn--yandex__icon {
    width: 34px;
    height: 34px;
    display: block;
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin-bottom: 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.auth-profile__avatar {
    border-radius: 50%;
    object-fit: cover;
}

.auth-profile__name {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.auth-profile__email {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.header__avatar {
    border-radius: 50%;
    object-fit: cover;
}

.header__action--user .header__action-text {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.form__group { margin-bottom: 16px; }

.form__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form__input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface);
}

.form__input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 96, 77, 0.12);
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.875rem;
}

.alert--success { background: var(--badge-stock-bg); color: var(--badge-stock-text); }
.alert--error { background: #fef3f2; color: #b42318; }

/* ——— Footer ——— */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    margin-top: auto;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ——— Responsive: tablet ——— */
@media (max-width: 1024px) {
    .home-hero__grid { grid-template-columns: 1fr; }

    .car-page__layout { grid-template-columns: 1fr; }

    .car-credit { max-width: 100%; }

    .specs-modal__grid { grid-template-columns: 1fr; }

    .car-grid { grid-template-columns: repeat(2, 1fr); }

    .features-bar__list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

/* ——— Responsive: mobile nav ——— */
@media (max-width: 900px) {
    .header__inner {
        grid-template-columns: 1fr auto auto;
    }

    .header__burger { display: flex; }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 85vw);
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: calc(var(--header-h) + 16px) 24px 24px;
        background: var(--surface);
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 180;
        justify-content: flex-start;
    }

    .nav.is-open { transform: translateX(0); }

    .nav__link {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

    .header__overlay { display: block; }

    .header__action-text { display: none; }

    .header__actions { gap: 8px; }

    .car-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }

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

    .catalog__sidebar { position: static; }

    .promo-banners { grid-template-columns: 1fr; }

    .promo-banner__content { max-width: 100%; }
}

/* ——— Responsive: small mobile ——— */
@media (max-width: 600px) {
    :root { --header-h: 64px; }

    .container { padding: 0 16px; }

    .home-hero { padding-top: 16px; }

    .specs-modal { padding: 0; }

    .specs-modal__dialog {
        max-height: 100vh;
        border-radius: 0;
        width: 100%;
    }

    .specs-modal__scroll { padding: 48px 16px 16px; }

    .credit-terms__buttons { grid-template-columns: repeat(2, 1fr); }

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

    .car-grid { grid-template-columns: 1fr; }

    .section__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .logo__brand {
        padding: 4px 12px;
        background-size: cover;
    }

    .logo__img { height: 32px; }

    .promo-banner__decor { font-size: 2.5rem; }
}

@media (max-width: 380px) {
    .credit-terms__btn { font-size: 0.75rem; padding: 10px 4px; }
}

/* ——— Страница авто: мобильная (auto.ru) ——— */
@media (max-width: 768px) {
    body.page-car { padding-bottom: 88px; }

    body.page-car .header,
    body.page-car .footer { display: none; }

    body.page-car .main { padding-top: 0; }

    .car-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 120;
        padding: 10px 16px;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
    }

    .car-mobile-bar__back,
    .car-mobile-bar__btn {
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--text);
        cursor: pointer;
        padding: 0;
    }

    .car-mobile-bar__logo {
        flex: 1;
        display: flex;
        justify-content: center;
        min-width: 0;
    }

    .car-mobile-bar__logo img {
        height: 28px;
        width: auto;
        max-width: 160px;
        object-fit: contain;
    }

    .car-mobile-bar__actions {
        display: flex;
        gap: 4px;
    }

    .car-page {
        padding: 0 0 24px;
    }

    .car-page__container {
        padding: 0;
        max-width: none;
    }

    .car-page__breadcrumb,
    .car-page__head,
    .car-page__desktop-only {
        display: none !important;
    }

    .car-page__layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .car-page__info {
        order: 3;
        padding: 0 16px;
        gap: 0;
    }

    .car-page__main {
        order: 1;
        gap: 0;
    }

    .car-page__gallery-wrap {
        margin: 0;
    }

    .car-gallery__desktop { display: none; }

    .car-gallery__slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        background: #1a1a1a;
    }

    .car-gallery__slider::-webkit-scrollbar { display: none; }

    .car-gallery__slide {
        flex: 0 0 92%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        padding: 0 4px;
    }

    .car-gallery__slide:first-child { padding-left: 8px; }
    .car-gallery__slide:last-child { padding-right: 8px; }

    .car-gallery__slide img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 12px;
        display: block;
    }

    .car-gallery__counter {
        display: block;
        position: absolute;
        right: 20px;
        bottom: 12px;
        z-index: 2;
        padding: 4px 10px;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.55);
        color: #fff;
        font-size: 0.75rem;
        font-weight: 600;
        pointer-events: none;
    }

    .car-mobile-summary {
        display: block;
        padding: 16px 16px 12px;
        background: var(--surface);
    }

    .car-mobile-summary__price-row {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 6px;
    }

    .car-mobile-summary__price {
        font-size: 1.375rem;
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .car-mobile-summary__badge {
        padding: 3px 8px;
        border-radius: 6px;
        font-size: 0.6875rem;
        font-weight: 600;
        background: var(--text);
        color: #fff;
    }

    .car-mobile-summary__badge--in_stock { background: var(--success); }

    .car-mobile-summary__title {
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .car-mobile-summary__link {
        font-size: 0.8125rem;
        color: #4183d7;
        font-weight: 500;
    }

    .car-mobile-specs {
        display: block;
        margin: 0 16px 16px;
        padding: 16px;
        border-radius: 16px;
        box-shadow: var(--shadow-card);
    }

    .car-mobile-specs__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 16px;
        margin-bottom: 16px;
    }

    .car-mobile-specs__cell {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        min-width: 0;
    }

    .car-mobile-specs__icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
        object-fit: contain;
    }

    .car-mobile-specs__text {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

    .car-mobile-specs__value {
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.25;
    }

    .car-mobile-specs__label {
        font-size: 0.75rem;
        color: var(--text-muted);
        line-height: 1.3;
    }

    .car-mobile-specs__rows { margin-bottom: 16px; }

    .car-mobile-specs__row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.9375rem;
    }

    .car-mobile-specs__row:last-child { border-bottom: none; }

    .car-mobile-specs__row dt { color: var(--text-muted); font-weight: 500; }

    .car-mobile-specs__row dd {
        font-weight: 600;
        text-align: right;
        max-width: 58%;
    }

    .car-mobile-specs__all {
        width: 100%;
        padding: 14px;
        border: none;
        border-radius: 12px;
        background: #f0f0f0;
        font-family: inherit;
        font-size: 0.9375rem;
        font-weight: 600;
        cursor: pointer;
    }

    .car-page__credit-wrap .car-credit {
        padding: 20px 16px;
        border-radius: 16px;
        box-shadow: var(--shadow-card);
    }

    .car-page__similar-head {
        padding: 0 16px;
        margin-top: 24px;
    }

    .car-page .car-grid {
        padding: 0 16px;
    }

    .car-mobile-sticky {
        display: flex;
        align-items: stretch;
        gap: 8px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 200;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        background: var(--surface);
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    }

    .car-mobile-sticky__primary {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 12px 16px;
        border-radius: 12px;
        text-align: center;
        text-decoration: none;
        min-height: 52px;
    }

    .car-mobile-sticky__primary-title {
        font-size: 1rem;
        font-weight: 600;
        display: block;
    }

    .car-mobile-sticky__primary-sub {
        font-size: 0.6875rem;
        font-weight: 500;
        opacity: 0.9;
        display: block;
        margin-top: 2px;
    }

    .car-mobile-sticky__chat {
        width: 52px;
        flex-shrink: 0;
        border: none;
        border-radius: 12px;
        background: #e8f8ec;
        color: var(--success);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
}

.auth-verify__lead {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.auth-verify__resend {
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-verify__resend a { color: var(--accent); font-weight: 600; }

.auth-verify__back {
    text-align: center;
    margin-top: 12px;
    font-size: 0.875rem;
}

.auth-verify__back a { color: var(--text-muted); }

.form__input--code {
    font-size: 1.5rem;
    letter-spacing: 0.35em;
    text-align: center;
    font-weight: 600;
}

/* ——— Личный кабинет (dashboard) ——— */
.cabinet-body {
    background: var(--bg);
    min-height: 100vh;
}

.cabinet-layout {
    display: flex;
    min-height: 100vh;
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

.cabinet-sidebar {
    width: 248px;
    flex-shrink: 0;
    background: #1a1a1a;
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cabinet-sidebar__logo img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.cabinet-sidebar__profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cabinet-sidebar__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cabinet-sidebar__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-size: 1.125rem;
    font-weight: 600;
}

.cabinet-sidebar__profile-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.cabinet-sidebar__name {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabinet-sidebar__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

.cabinet-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cabinet-sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    transition: background 0.2s, color 0.2s;
}

.cabinet-sidebar__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.cabinet-sidebar__link--active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
}

.cabinet-sidebar__link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}

.cabinet-sidebar__link-dot {
    width: 6px;
    height: 6px;
    margin-left: auto;
    border-radius: 50%;
    background: var(--accent);
}

.cabinet-sidebar__help {
    margin-top: auto;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.cabinet-sidebar__help-title {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.cabinet-sidebar__help-text {
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

.cabinet-sidebar__help-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
}

.cabinet-sidebar__logout {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    padding: 0 12px;
}

.cabinet-sidebar__logout:hover {
    color: rgba(255, 255, 255, 0.75);
}

.cabinet-shell {
    flex: 1;
    min-width: 0;
}

.cabinet-main {
    min-height: calc(100vh - 40px);
}

.cabinet-dashboard {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cabinet-alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.cabinet-alert--success {
    background: var(--badge-stock-bg);
    color: var(--badge-stock-text);
}

.cabinet-dashboard__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cabinet-dashboard__greeting {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 4px;
}

.cabinet-dashboard__subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.cabinet-search {
    position: relative;
    flex: 0 1 320px;
    width: 100%;
    max-width: 320px;
}

.cabinet-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.cabinet-search__input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cabinet-search__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.cabinet-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.cabinet-widget {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 22px;
}

.cabinet-widget--hero {
    grid-column: span 5;
    background: linear-gradient(135deg, var(--accent) 0%, #c94a38 100%);
    color: #fff;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cabinet-widget__hero-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cabinet-widget__hero-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
}

.cabinet-widget__hero-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
}

.cabinet-widget__hero-value {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.1;
    margin: 16px 0 6px;
}

.cabinet-widget__hero-meta {
    margin: 0;
    font-size: 0.8125rem;
    opacity: 0.85;
}

.cabinet-dashboard__stats {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cabinet-widget--mini {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.cabinet-widget__mini-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cabinet-widget__mini-value {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1;
    margin: 0 0 6px;
}

.cabinet-widget__mini-hint {
    font-size: 0.75rem;
    color: var(--text-light);
}

.cabinet-widget--list {
    grid-column: span 5;
}

.cabinet-widget--wide {
    grid-column: span 8;
}

.cabinet-widget--side {
    grid-column: span 4;
}

.cabinet-widget--cta {
    grid-column: span 12;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.cabinet-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.cabinet-widget__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.cabinet-widget__empty {
    text-align: center;
    padding: 20px 0 8px;
}

.cabinet-widget__empty p {
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.cabinet-widget__muted {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.cabinet-widget__progress {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.cabinet-widget__progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cabinet-widget__progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.cabinet-widget__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 999px;
    transition: width 0.4s ease;
}

.cabinet-credit-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cabinet-credit-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cabinet-credit-list__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent);
}

.cabinet-credit-list__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cabinet-credit-list__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cabinet-credit-list__body strong {
    font-size: 0.9375rem;
}

.cabinet-credit-list__body span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cabinet-credit-list__status {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.cabinet-history {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cabinet-history__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.cabinet-history__row:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.cabinet-history__user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cabinet-history__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.cabinet-history__user strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.cabinet-history__user span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cabinet-history__amount {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.cabinet-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.cabinet-badge--active {
    background: var(--badge-stock-bg);
    color: var(--badge-stock-text);
}

.cabinet-badge--pending {
    background: var(--badge-order-bg);
    color: var(--badge-order-text);
}

.cabinet-badge--closed {
    background: var(--surface-soft);
    color: var(--text-muted);
}

.cabinet-badge--new {
    background: var(--accent-soft);
    color: var(--accent);
}

.cabinet-badge--tag {
    background: var(--surface-soft);
    color: var(--text-muted);
}

.cabinet-recommend__image {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 14px;
    aspect-ratio: 16 / 10;
    background: var(--surface-soft);
}

.cabinet-recommend__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cabinet-recommend__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.cabinet-recommend__updated {
    font-size: 0.75rem;
    color: var(--text-light);
}

.cabinet-recommend__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.35;
}

.cabinet-recommend__title a:hover {
    color: var(--accent);
}

.cabinet-recommend__text {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 16px;
}

.cabinet-recommend__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.cabinet-recommend__price {
    font-size: 0.9375rem;
    font-weight: 600;
}

.cabinet-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: #1a1a1a;
    color: #fff;
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.cabinet-cta__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    flex-shrink: 0;
}

.cabinet-cta__text {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cabinet-cta__text strong {
    font-size: 0.9375rem;
}

.cabinet-cta__text span {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.btn--sm {
    padding: 10px 18px;
    font-size: 0.8125rem;
}

@media (max-width: 1100px) {
    .cabinet-widget--hero,
    .cabinet-dashboard__stats,
    .cabinet-widget--list,
    .cabinet-widget--wide,
    .cabinet-widget--side {
        grid-column: span 12;
    }

    .cabinet-dashboard__stats {
        flex-direction: row;
    }

    .cabinet-widget--mini {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .cabinet-layout {
        flex-direction: column;
        padding: 12px;
    }

    .cabinet-sidebar {
        width: 100%;
    }

    .cabinet-sidebar__help,
    .cabinet-sidebar__logout {
        display: none;
    }

    .cabinet-sidebar__nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .cabinet-sidebar__link {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
    }

    .cabinet-sidebar__link-dot {
        display: none;
    }

    .cabinet-dashboard__stats {
        flex-direction: column;
    }

    .cabinet-history__row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cabinet-search {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .cabinet-dashboard__greeting {
        font-size: 1.25rem;
    }

    .cabinet-widget__hero-value {
        font-size: 1.625rem;
    }

    .cabinet-cta {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cabinet-cta .btn {
        width: 100%;
    }
}

/* body lock when menu open */
body.menu-open { overflow: hidden; }
