:where(.catalog, .detail, .ai-overlay),
:where(.catalog, .detail, .ai-overlay) :where(*, *::before, *::after) {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:where(.catalog, .detail, .ai-overlay) {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: 1.5;
    color: var(--color-gray-900);
}

:where(.catalog, .detail, .ai-overlay) :where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--font-family-heading);
    line-height: 1.2;
    font-weight: var(--font-weight-bold);
}

:where(.catalog, .detail, .ai-overlay) :where(a) {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

:where(.catalog, .detail, .ai-overlay) :where(img) {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

:where(.catalog, .detail, .ai-overlay) :where(ul, ol) {
    list-style: none;
}

:where(.catalog, .detail, .ai-overlay) :where(button, input, optgroup, select, textarea) {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

:where(.catalog, .detail, .ai-overlay) :where(button, [type="button"], [type="reset"], [type="submit"]) {
    -webkit-appearance: button;
    appearance: button;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

:where(.catalog, .detail, .ai-overlay) :where(input) {
    overflow: visible;
}

.catalog-page {
    background: #eef1f5;
    min-height: 100vh;
    padding-top: var(--header-height, 80px);
}

.catalog {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.catalog__crumbs {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 12px;
}

.catalog__crumbs a {
    color: #6B7280;
    text-decoration: none;
}

.catalog__crumbs a:hover {
    color: #0074FE;
}

.catalog__title {
    font-size: 32px;
    font-weight: 900;
    color: #0D1E3B;
    margin: 0 0 20px;
    line-height: 1.15;
}

.catalog__ai {
    margin-bottom: 10px;
}

.ai-searchbar {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    height: 62px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    padding: 0 8px 0 22px;
}

.ai-searchbar__icon {
    flex-shrink: 0;
    color: #0074FE;
    display: flex;
}

.ai-searchbar__input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    font-family: inherit;
    color: #0D1E3B;
    padding: 0 14px;
}

.ai-searchbar__input::placeholder {
    color: transparent;
}

.ai-searchbar__ghost {
    position: absolute;
    left: 58px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    font-size: 16px;
    color: #6B7280;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    max-width: calc(100% - 120px);
}

.ai-searchbar__ghost.is-hidden {
    display: none;
}

.ai-searchbar__cursor {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: #0074FE;
    vertical-align: -2px;
    margin-left: 1px;
    animation: aiSearchBlink 1.05s steps(1) infinite;
}

@keyframes aiSearchBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.ai-searchbar__submit {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: none;
    background: #0074FE;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast, all .15s ease);
}

.ai-searchbar__submit:hover {
    background: #0056BE;
}

.catalog__ai-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 14px;
}

.catalog__ai-hint {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    padding-left: 4px;
}

.catalog__ai-history {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 40px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 14.5px;
    color: #4b5563;
    background: #fff;
    border: 1px solid #e6eaf1;
    border-radius: 12px;
    cursor: pointer;
    transition: color .15s, border-color .15s, background .15s;
}

.catalog__ai-history:hover {
    color: #0074FE;
    border-color: #0074FE;
    background: #f5f9ff;
}

@media (max-width: 560px) {
    .catalog__ai-row {
        justify-content: flex-start;
    }
}

.filters {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    padding: 22px 24px;
    margin-bottom: 24px;
}

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

.filters__head-title {
    font-size: 18px;
    font-weight: 700;
    color: #0D1E3B;
    margin: 0;
}

.filters__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.field__manual {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--color-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.field__pair--manual {
    margin-top: 8px;
}

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

.field__label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.field__control,
.select {
    height: 46px;
    border: 1px solid #E5E7EB;
    background: #f2f5f9;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    color: #0D1E3B;
    outline: none;
    transition: var(--transition-fast, all .15s ease);
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 34px;
    cursor: pointer;
}

.field__control:focus,
.select:focus {
    background-color: #fff;
    border-color: #0074FE;
}

.select:disabled {
    opacity: .55;
    pointer-events: none;
    cursor: default;
}

.field__pair {
    display: flex;
    gap: 8px;
}

.field__pair[hidden] {
    display: none;
}

.field__pair .field__control {
    width: 100%;
    min-width: 0;
}

.filters__adv {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .3s ease, opacity .3s ease;
}

.filters__adv.is-open {
    max-height: 1000px;
    opacity: 1;
    margin-top: 18px;
}

.filters__adv-title {
    font-size: 14px;
    font-weight: 700;
    color: #0D1E3B;
    margin: 0 0 12px;
}

.filters__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef1f5;
}

.filters__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #0074FE;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.filters__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #0074FE;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
}

.filters__reset {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.filters__reset:hover {
    color: #0074FE;
}

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

.results__count {
    font-size: 16px;
    color: #0D1E3B;
}

.results__count b {
    font-weight: 700;
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: #f2f5f9;
    border-radius: 10px;
    padding: 4px;
}

.view-toggle__btn {
    width: 40px;
    height: 34px;
    border: none;
    background: none;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle__btn.is-active {
    background: #0074FE;
    color: #fff;
}

.sort-select {
    max-width: 220px;
}

.results--grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.results--list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gcard {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.gcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.gcard__photo {
    height: 194px;
    background-color: var(--car-placeholder-bg);
    overflow: hidden;
}

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

.gcard__photo--empty {
    background-image: var(--car-placeholder);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 72%;
}

.gcard__photo--empty img {
    visibility: hidden;
}

.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, .92);
    color: #6B7280;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
    z-index: 2;
}

.fav-btn.is-active {
    color: #EF4444;
}

.gcard__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gcard__price {
    font-size: 22px;
    font-weight: 900;
    color: #0D1E3B;
    margin: 0 0 2px;
}

.gcard__delivery {
    font-size: 12px;
    color: #6B7280;
    margin: 0 0 10px;
}

.gcard__name {
    font-size: 17px;
    font-weight: 700;
    color: #0D1E3B;
    margin: 0 0 4px;
}

.gcard__gen {
    font-size: 13px;
    color: #6B7280;
    margin: 0 0 12px;
}

.gcard__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.gcard__chip {
    font-size: 12px;
    color: #374151;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 4px 8px;
}

.gcard__more {
    margin-top: auto;
    text-align: center;
    background: #f2f5f9;
    color: #0074FE;
    border-radius: 10px;
    padding: 10px;
    font-weight: 500;
    font-size: 14px;
}

.lcard {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    overflow: hidden;
    display: grid;
    grid-template-columns: 264px 1fr 250px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease;
}

.lcard:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}

.lcard__photo {
    align-self: stretch;
    min-height: 192px;
    background-color: var(--car-placeholder-bg);
    overflow: hidden;
}

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

.lcard__photo--empty {
    background-image: var(--car-placeholder);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 72%;
}

.lcard__photo--empty img {
    visibility: hidden;
}

.lcard__mid {
    padding: 18px 20px;
}

.lcard__name {
    font-size: 20px;
    font-weight: 700;
    color: #0D1E3B;
    margin: 0 0 4px;
}

.lcard__sub {
    font-size: 13.5px;
    color: #6B7280;
    margin: 0 0 16px;
}

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

.stat__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #b6bcc6;
    margin: 0 0 2px;
}

.stat__value {
    font-size: 14px;
    font-weight: 500;
    color: #0D1E3B;
    margin: 0;
}

.lcard__side {
    border-left: 1px solid #eef1f5;
    padding: 18px 20px 18px 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
    position: relative;
}

.lcard__price {
    font-size: 26px;
    font-weight: 900;
    color: #0D1E3B;
    margin: 0;
}

.lcard__delivery {
    font-size: 12px;
    color: #6B7280;
    margin: 4px 0 0;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.pgn__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid #e6eaf1;
    border-radius: 10px;
    background: #fff;
    color: #0D1E3B;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.pgn__arrow:hover:not(:disabled) {
    border-color: #0074fe;
    color: #0074fe;
}

.pgn__arrow:disabled {
    color: #c7cfdb;
    cursor: default;
}

.pgn__nums {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e6eaf1;
}

.pgn__num {
    min-width: 34px;
    height: 32px;
    padding: 0 9px;
    border: none;
    border-radius: 8px;
    background: none;
    color: #4b5563;
    font-family: inherit;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background-color .12s ease, color .12s ease;
}

.pgn__num:hover {
    background: #f2f6fc;
    color: #0D1E3B;
}

.pgn__num.is-active {
    background: #0074fe;
    color: #fff;
    font-weight: 600;
}

.pgn__jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: none;
    color: #c3cbd8;
    cursor: pointer;
    transition: background-color .12s ease, color .12s ease;
}

.pgn__jump:hover {
    background: #f2f6fc;
    color: #0074fe;
}

@media (max-width: 560px) {
    .pagination {
        gap: 6px;
    }

    .pgn__num {
        min-width: 30px;
        padding: 0 6px;
        font-size: 13.5px;
    }

    .pgn__jump {
        width: 20px;
    }
}

.results__empty,
.results__loading {
    text-align: center;
    padding: 64px 24px;
    color: #6b7280;
}

.results__empty h3 {
    font-size: 20px;
    color: #0D1E3B;
    margin: 0 0 16px;
}

@media (max-width: 1024px) {
    .results--grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lcard {
        grid-template-columns: 220px 1fr;
    }

    .lcard__side {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid #eef1f5;
        padding: 18px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .catalog {
        padding: 20px 14px 48px;
    }

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

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

    .lcard__photo {
        align-self: auto;
        height: 200px;
        min-height: 0;
    }
}

.field--check {
    display: flex;
    align-items: flex-end;
}

.field__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-gray-700, #334155);
    cursor: pointer;
    padding: 10px 0;
}

.field__check input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.price-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}

.price-badge--far-below {
    background: var(--price-badge-far-below);
}

.price-badge--below {
    background: var(--price-badge-below);
}

.price-badge--low {
    background: var(--price-badge-low);
}

.price-badge--market {
    background: var(--price-badge-market);
    color: var(--color-gray-900);
}

.price-badge--above {
    background: var(--price-badge-above);
    color: var(--color-gray-900);
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 8px;
}

.lcard__side .card-badges {
    justify-content: flex-end;
    margin: 8px 0 0;
}

.accident-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    background: rgba(34, 197, 94, .12);
    color: #16A34A;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.lot-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.lot-badge--sold {
    background: #F2F4F7;
    color: #565D69;
}

.lot-badge--upcoming {
    background: rgba(0, 116, 254, .1);
    color: #0056BE;
}

.summary__lot-status {
    margin: 0 0 8px;
}

.card-lot-status {
    margin: 0 0 6px;
}

.lcard__side .card-lot-status {
    text-align: right;
}

html {
    scroll-behavior: smooth;
}

.detail-page {
    background: #eef1f5;
    min-height: 100vh;
    padding-top: var(--header-height, 80px);
}

.detail {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 24px 24px 64px;
}

.detail__nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 10px 18px;
    color: #0D1E3B;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast, all .15s ease);
}

.detail__back:hover {
    border-color: #0074FE;
    color: #0074FE;
}

.detail__crumbs {
    font-size: 13px;
    color: #6B7280;
}

.detail__crumbs a {
    color: #6B7280;
    text-decoration: none;
}

.detail__showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    background: #0074FE;
    border-radius: 12px;
    padding: 10px 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast, all .15s ease);
}

.detail__showcase-link:hover {
    background: #005fd1;
}

.detail__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 30px;
    margin-bottom: 40px;
    align-items: stretch;
}

.gallery {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.gallery__main {
    position: relative;
    flex: 1 1 auto;
    min-height: 440px;
    border-radius: 18px;
    overflow: hidden;
    background-color: var(--car-placeholder-bg);
    margin-bottom: 12px;
}


.gallery__main--empty {
    background-image: var(--car-placeholder);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 62%;
}

.gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    color: #0D1E3B;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background .15s ease;
    z-index: 2;
}

.gallery__arrow:hover {
    background: #fff;
}

.gallery__arrow--prev {
    left: 14px;
}

.gallery__arrow--next {
    right: 14px;
}

.gallery__main img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    border-radius: 18px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform .32s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

/* Резервный слой скрыт, пока не участвует в слайде. */
.gallery__main img[aria-hidden="true"] {
    visibility: hidden;
    pointer-events: none;
}

.gallery__main img[aria-hidden="true"].is-visible {
    visibility: visible;
}



.gallery__main.is-pinching img {
    transition: none;
}

.gallery__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.gallery__thumb {
    flex: 0 0 92px;
    height: 66px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--car-placeholder-bg);
    cursor: pointer;
    border: 3px solid transparent;
}

.gallery__thumb.is-active {
    border-color: #0074FE;
}

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

.gallery__thumb--empty {
    background-image: var(--car-placeholder);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 84%;
}

.gallery__thumb--empty img {
    visibility: hidden;
}

.summary {
    background: #fff;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.summary__title {
    font-size: 27px;
    font-weight: 900;
    color: #0D1E3B;
    margin: 0 0 6px;
}

.summary__sub {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 20px;
}

.summary__price {
    font-size: 34px;
    font-weight: 900;
    color: #0D1E3B;
    margin: 0 0 4px;
}

.summary__price-note {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 22px;
}

.summary__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}

.summary__spec {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 12px 14px;
}

.summary__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: 100%;
    text-align: center;
    background: #0074FE;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    margin-bottom: 12px;
    font-family: inherit;
}

.summary__cta:hover {
    background: #0056BE;
}

.summary__warranty {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #22c55e;
    margin: 0;
}

.summary__warranty-icon {
    flex-shrink: 0;
}

.detail__section {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    margin-bottom: 24px;
}

.detail__section-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #0D1E3B;
    margin: 0 0 20px;
}

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

.specs-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eef1f5;
}

.specs-row__key {
    color: #6b7280;
    font-size: 14px;
}

.specs-row__val {
    color: #0D1E3B;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}

.stages {
    background: #0D1E3B;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    color: #fff;
}

.stages__title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 24px;
}

.stages__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.stage {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, .05);
    border-radius: 16px;
    padding: 20px;
}

.stage__num {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #0074FE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 12px;
}

.stage__head {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 4px;
}

.stage__sub {
    font-size: 12px;
    color: #9db4d6;
    margin: 0 0 14px;
}

.stage__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    padding: 6px 0;
    color: #cdd8ea;
}

.stage__total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #C1F0FF;
    font-weight: 700;
}

.stages__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.stages__total-value {
    font-size: 30px;
    font-weight: 900;
}

.stages__fix {
    background: #0074FE;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

.similar__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .detail__top {
        grid-template-columns: 1fr;
    }

    .gallery__main {
        flex: 0 0 auto;
        height: auto;
        min-height: 0;
        max-height: 70vh;
        aspect-ratio: var(--gallery-ratio, 4 / 3);
    }

    .specs-rows,
    .stages__grid,
    .similar__grid {
        grid-template-columns: 1fr;
    }
}

.summary__origin {
    display: block;
    margin: 0 0 12px;
    font-size: 14px;
    color: #64748B;
    text-decoration: none;
}

.summary__origin:hover {
    color: #0074FE;
}

.turnkey__more {
    display: inline-block;
    margin: 4px 0 16px;
    font-size: 13px;
    color: #0074FE;
    text-decoration: none;
}

.turnkey__more:hover {
    text-decoration: underline;
}

.promo {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

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

.promo__steps {
    display: flex;
    flex-direction: column;
}

/* --- левая колонка: этапы --- */

.promo__steps-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.promo__steps-title {
    font-size: 18px;
    font-weight: 700;
    color: #0D1E3B;
    margin: 0;
    margin-right: auto;
}

.promo__steps-badge {
    padding: 6px 12px;
    border-radius: 8px;
    background: #0D1E3B;
    color: #fff;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
}

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

.promo__step {
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 14px;
    padding-bottom: 22px;
}

/* Линия-соединитель между кружками; у последнего шага её нет. */
.promo__step::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 32px;
    bottom: 0;
    width: 2px;
    background: #E3E9F2;
}

.promo__step--last {
    padding-bottom: 0;
}

.promo__step--last::before {
    display: none;
}

.promo__step-num {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0074FE;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.promo__step--last .promo__step-num {
    background: #0D1E3B;
}

.promo__step-body {
    padding-top: 4px;
}

.promo__step-top {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 5px;
}

.promo__step-name {
    font-size: 15.5px;
    font-weight: 700;
    color: #0D1E3B;
    line-height: 1.3;
    margin-right: auto;
}

.promo__step-time {
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
    white-space: nowrap;
}

.promo__step-text {
    font-size: 14.5px;
    line-height: 1.55;
    color: #4B5563;
    margin: 0;
}

/* --- правая колонка: форма --- */

.promo__form-wrap {
    display: flex;
    flex-direction: column;
}

.promo__eyebrow {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    margin: 0;
}

.promo__car {
    font-size: 17px;
    font-weight: 700;
    color: #0D1E3B;
    margin: 6px 0 12px;
}

.promo__title {
    font-size: 15px;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 20px;
}

.promo__input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: #0D1E3B;
}

.promo__input::placeholder {
    color: #6B7280;
}

.promo__input:focus {
    outline: none;
    border-color: #0074FE;
}

.promo__submit {
    width: 100%;
    padding: 15px 18px;
    margin-top: 4px;
    border: none;
    border-radius: 12px;
    background: #0074FE;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.promo__submit:hover:not(:disabled) {
    background: #0056BE;
}

.promo__submit:disabled {
    opacity: .55;
    cursor: default;
}

.promo__direct {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0D1E3B 0%, #143567 100%);
}

.promo__direct-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.promo__direct-title {
    font-size: 12px;
    color: #9fb2cd;
}

.promo__phone {
    font-size: 21px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -.01em;
}

.promo__phone:hover {
    color: #7FB6FF;
}

.promo__direct-socials {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

/* Кнопки мессенджеров — те же, что в шапке: круг, фирменный цвет, белая иконка. */
.promo__social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    transition: var(--transition-fast, all .16s ease);
}

.promo__social svg {
    display: block;
    flex: none;
}

.promo__social--tg {
    background: #0074FE;
    box-shadow: 0 4px 14px rgba(0, 116, 254, .3);
}

.promo__social--tg:hover {
    background: #0056BE;
    transform: translateY(-2px);
}

.promo__social--max {
    background: #9B27E6;
    box-shadow: 0 4px 14px rgba(155, 39, 230, .3);
}

.promo__social--max:hover {
    background: #7D1BC0;
    transform: translateY(-2px);
}

.promo__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280;
    margin-top: 14px;
    cursor: pointer;
}

.promo__consent input {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #0074FE;
}

.promo__consent a {
    color: #0074FE;
}

.promo__status {
    font-size: 13px;
    color: #6b7280;
}

.promo__status:not(:empty) {
    margin-top: 10px;
}

.promo__status.is-ok { color: #16A34A; }
.promo__status.is-error { color: #DC2626; }

@media (max-width: 900px) {
    .promo {
        padding: 22px 18px;
    }

    .promo__grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .promo__direct {
        flex-wrap: wrap;
        gap: 14px;
        padding: 16px;
    }

    .promo__direct-socials {
        margin-left: 0;
    }

    .promo__phone {
        font-size: 19px;
    }

    .promo__step-top {
        flex-wrap: wrap;
        gap: 4px 12px;
    }
}

.history__badges {
    margin-bottom: 14px;
}

.pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pill--ok {
    background: rgba(34, 197, 94, .12);
    color: #15803d;
}

.pill--warn {
    background: rgba(239, 68, 68, .12);
    color: #b91c1c;
}

.pill--danger {
    background: rgba(239, 68, 68, .16);
    color: #b91c1c;
}

.history__flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.history__flag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, .1);
    color: #DC2626;
    font-size: 13px;
    font-weight: 500;
}

.history__rows {
    margin-bottom: 20px;
}

.history__map {
    margin-top: 8px;
}

.history__reports {
    margin-top: 16px;
}

.history__report {
    font-size: 13px;
    color: #6B7280;
    margin: 4px 0;
}

.options__group {
    margin-bottom: 18px;
}

.options__group:last-child {
    margin-bottom: 0;
}

.options__group-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6B7280;
    margin: 0 0 10px;
}

.options__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.options__chip {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(17, 24, 39, .05);
    color: #374151;
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 900px) {
    .options__group {
        margin-bottom: 14px;
    }

    .options__chip {
        padding: 5px 10px;
        font-size: 12px;
    }
}

.body-map {
    position: relative;
    max-width: 340px;
    margin: 0 auto;
}

.body-map__bg {
    width: 100%;
    display: block;
}

.body-map__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.body-map__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 14px;
}

.body-map__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4b5563;
}

.body-map__legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 8px;
}

.accident-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 8px;
    background: rgba(34, 197, 94, .12);
    color: #16A34A;
    font-size: 12px;
    font-weight: 600;
}

.summary__pscore {
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pscore__bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef4444 0%, #22c55e 18%, #d1d5db 50%, #eab308 100%);
}

.pscore__bar--auction {
    background: linear-gradient(90deg, #ef4444 0%, #eab308 40%, #22c55e 100%);
}

.pscore__median {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 14px;
    background: #64748b;
    transform: translateX(-50%);
}

.pscore__mark {
    position: absolute;
    top: -4px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #0074FE;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    transform: translateX(-50%);
    cursor: pointer;
    animation: pscore-pulse 2.4s ease-in-out infinite;
}

.pscore__mark:hover,
.pscore__mark:focus-visible {
    animation-play-state: paused;
    outline: none;
}

@keyframes pscore-pulse {
    0%, 100% {
        box-shadow: 0 1px 4px rgba(0, 0, 0, .25), 0 0 0 0 rgba(0, 116, 254, .45);
    }
    50% {
        box-shadow: 0 1px 4px rgba(0, 0, 0, .25), 0 0 0 6px rgba(0, 116, 254, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pscore__mark {
        animation: none;
    }
}

.pscore__tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(4px);
    width: max-content;
    max-width: 240px;
    background: #0D1E3B;
    color: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 8px 24px rgba(13, 30, 59, .28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 3;
}

.pscore__tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #0D1E3B;
}

.pscore__mark:hover .pscore__tip,
.pscore__mark:focus-visible .pscore__tip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.pscore__tip-label {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
}

.pscore__tip-row {
    font-size: 13px;
    color: #cdd8ea;
    margin: 0;
}

/* Аукционный тултип шире полупанели, поэтому лежит в самой шкале и тянется
   по её ширине — центрирование по маркеру выносило бы его за края карточки. */
.pscore__bar--auction .pscore__tip {
    left: 0;
    transform: translateY(4px);
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.pscore__bar--auction .pscore__mark:hover ~ .pscore__tip,
.pscore__bar--auction .pscore__mark:focus-visible ~ .pscore__tip,
.pscore__bar--auction .pscore__tip:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pscore__bar--auction .pscore__tip::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Плашка буквенной оценки (R / RA / S) — они вне числовой шкалы. */
.ratecard {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f2f5f9;
}

.ratecard__badge {
    flex: none;
    min-width: 40px;
    padding: 6px 10px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: #6b7280;
}

.ratecard--good .ratecard__badge {
    background: #16a34a;
}

.ratecard--warn .ratecard__badge {
    background: #eab308;
}

.ratecard--bad .ratecard__badge {
    background: #dc2626;
}

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

.ratecard__title {
    font-size: 14px;
    font-weight: 600;
    color: #0D1E3B;
}

.ratecard__note {
    font-size: 12px;
    color: #6b7280;
}

.ratecard__info {
    position: relative;
    margin-left: auto;
    flex: none;
    display: inline-flex;
    cursor: help;
    outline: none;
}

.ratecard__info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
}

.ratecard__info .pscore__tip {
    left: auto;
    right: -6px;
    transform: translateY(4px);
    width: max-content;
    max-width: 240px;
}

.ratecard__info .pscore__tip::after {
    left: auto;
    right: 8px;
    transform: none;
}

.ratecard__info:hover .pscore__tip,
.ratecard__info:focus-visible .pscore__tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pscore__tip-label--sub {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: 12px;
    font-weight: 600;
    color: #9fb2cd;
}

.pscore__ends {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6B7280;
    margin-top: 6px;
}

.pscore__caption {
    font-size: 13px;
    color: #0D1E3B;
    font-weight: 500;
    margin: 2px 0 0;
}

.pscore__caption--good {
    color: #16a34a;
}

.pscore__caption--bad {
    color: #dc2626;
}

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

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 12px 10px;
    background: rgba(8, 14, 26, .94);
}

.lightbox[hidden] {
    display: none;
}

.lightbox__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: contain;
}

.lightbox__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    cursor: zoom-in;
    transform-origin: 50% 50%;
    transition: transform .32s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;

    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox__img--incoming {
    display: none;
    pointer-events: none;
}

.lightbox__img--incoming.is-visible {
    display: block;
}

.lightbox.is-zoomed .lightbox__img {
    cursor: grab;
}

.lightbox.is-zoomed.is-panning .lightbox__img {
    cursor: grabbing;
    transition: none;
}

.lightbox.is-zoomed .lightbox__arrow,
.lightbox.is-zoomed .lightbox__thumbs {
    opacity: 0;
    pointer-events: none;
}

.lightbox__zoom {
    position: absolute;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 4px;
    background: rgba(13, 20, 34, .82);
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
    z-index: 2;
}

.lightbox__zoom-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #fff;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s ease;
}

.lightbox__zoom-btn:hover {
    background: rgba(255, 255, 255, .22);
}

.lightbox__zoom-level {
    min-width: 58px;
    height: 38px;
    padding: 0 8px;
    text-align: center;
    font-size: 13px;
    color: #fff;
    background: transparent;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}

.lightbox__zoom-level:hover {
    background: rgba(255, 255, 255, .22);
}

.lightbox__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    color: #0D1E3B;
    background: rgba(255, 255, 255, .85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background .15s ease, opacity .18s ease;
}

.lightbox__arrow:hover {
    background: #fff;
}

.lightbox__arrow--prev {
    left: 8px;
}

.lightbox__arrow--next {
    right: 8px;
}

.lightbox__close {
    position: absolute;
    top: 14px;
    right: 20px;
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    color: #fff;
    background: rgba(13, 20, 34, .82);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
    transition: background .15s ease;
}

.lightbox__close:hover {
    background: rgba(13, 20, 34, .95);
}

.lightbox__thumbs {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    transition: opacity .18s ease;
}

.lightbox__thumb {
    flex: 0 0 78px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--car-placeholder-bg);
    cursor: pointer;
    border: 3px solid transparent;
    opacity: .6;
    transition: opacity .15s ease;
}

.lightbox__thumb:hover {
    opacity: 1;
}

.lightbox__thumb.is-active {
    border-color: #0074FE;
    opacity: 1;
}

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

@media (prefers-reduced-motion: reduce) {

    .lightbox__img,
    .gallery__main img {
        transition: none;
    }
}

@media (max-width: 900px) {
    .lightbox {
        padding: 8px 8px 8px;
    }

    .lightbox__arrow {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .lightbox__thumb {
        flex: 0 0 62px;
        height: 44px;
    }

    .lightbox__zoom {
        bottom: 8px;
    }
}

.ai-overlay {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #eef2f8 100%);
    display: none;
}

.ai-overlay.is-open {
    display: block;
}

.ai-shell {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.ai-header {
    position: relative;
    flex: 0 0 auto;
    height: var(--header-height);
    background: transparent;
    box-shadow: none;
    z-index: 30;
}

.ai-header .container {
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
}

.ai-body {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
}

.ai-rail {
    flex: 0 0 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0;
    gap: 10px;
    z-index: 20;
}

.ai-rail__logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #e6eaf0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(13, 30, 59, .10);
    cursor: pointer;
    padding: 7px;
}

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

.ai-rail__btn {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1.5px solid #e1e6ef;
    background: #fff;
    color: #5b6472;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.ai-rail__btn:hover {
    background: rgba(13, 30, 59, .06);
    border-color: #c5ccd8;
}

.ai-rail__btn.is-active {
    background: #eaf3ff;
    color: #0074FE;
    border-color: #b7d6ff;
}

.ai-drawer__scrim {
    position: fixed;
    inset: 0;
    background: rgba(13, 30, 59, .35);
    z-index: 35;
}

.ai-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    background: #fff;
    box-shadow: 2px 0 30px rgba(13, 30, 59, .16);
    z-index: 40;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    animation: aiSlideIn .28s cubic-bezier(.4, 0, .2, 1);
}

.ai-drawer__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 16px;
}

.ai-drawer__logo {
    height: 34px;
    object-fit: contain;
}

.ai-drawer__collapse {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: #f4f6fa;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ai-drawer__collapse:hover {
    background: #e9edf3;
}

.ai-drawer__act {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 14.5px;
    font-weight: 500;
    font-family: inherit;
    color: #0D1E3B;
    cursor: pointer;
}

.ai-drawer__act:hover {
    background: #f2f5f9;
}

.ai-drawer__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #b6bcc6;
    margin: 16px 12px 8px;
}

.ai-drawer__list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ai-drawer__chat {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #0D1E3B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.ai-drawer__chat:hover {
    background: #f2f5f9;
}

.ai-drawer__chat.is-active {
    background: #eaf3ff;
    color: #0074FE;
}

.ai-drawer__empty {
    font-size: 13px;
    color: #6B7280;
    padding: 8px 12px;
    margin: 0;
}

.ai-main__area {
    flex: 1;
    min-width: 0;
    min-height: 0;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.ai-hero__box {
    position: relative;
    width: 100%;
    max-width: 680px;
    animation: aiFadeUp .5s both;
}

.ai-hero__star {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    pointer-events: none;
}

.ai-hero__input {
    width: 100%;
    height: 64px;
    border: 1px solid #e3e7ee;
    border-radius: 999px;
    background: #fff;
    padding: 0 66px 0 54px;
    font-size: 17px;
    font-family: inherit;
    color: #0D1E3B;
    outline: none;
    box-shadow: 0 16px 38px rgba(13, 30, 59, .12);
    transition: box-shadow .15s ease, border-color .15s ease;
}

.ai-hero__input::placeholder {
    color: transparent;
}

.ai-hero__input:focus {
    border-color: #0074FE;
    box-shadow: 0 0 0 4px rgba(0, 116, 254, .12), 0 16px 38px rgba(13, 30, 59, .12);
}

.ai-ghost {
    position: absolute;
    left: 54px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #6B7280;
    pointer-events: none;
    white-space: nowrap;
}

.ai-cursor {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background: #0074FE;
    vertical-align: -2px;
    margin-left: 1px;
    animation: aiBlink 1.05s steps(1) infinite;
}

.ai-hero__send {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: #0074FE;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 116, 254, .4);
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.ai-hero__send:hover {
    background: #0A61D6;
    transform: scale(1.05);
}

.ai-thread {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 8px;
}

.ai-thread__inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.ai-msg {
    animation: aiFadeUp .4s both;
}

.ai-msg__qrow {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.ai-msg__q {
    background: #eef1f5;
    color: #0D1E3B;
    font-size: 15.5px;
    line-height: 1.5;
    border-radius: 20px 20px 4px 20px;
    padding: 12px 18px;
    max-width: 78%;
}

.ai-msg__ans {
    padding: 0 2px;
}

.ai-msg__head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.ai-msg__ava {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(13, 30, 59, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
}

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

.ai-msg__name {
    font-size: 13px;
    font-weight: 700;
    color: #0D1E3B;
}

.ai-msg__reply {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: #1f2937;
}

.ai-msg__reply > p {
    margin: 0 0 10px;
}

.ai-msg__reply > p:last-child {
    margin-bottom: 0;
}

.ai-msg__reply ul,
.ai-msg__reply ol {
    margin: 0 0 10px;
    padding-left: 22px;
}

.ai-msg__reply ul:last-child,
.ai-msg__reply ol:last-child {
    margin-bottom: 0;
}

.ai-msg__reply li {
    margin-bottom: 4px;
}

.ai-msg__reply strong {
    font-weight: 600;
}

.ai-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
}

.ai-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #0074FE;
    animation: aiDot 1.2s infinite;
}

.ai-dots span:nth-child(2) { animation-delay: .2s; }
.ai-dots span:nth-child(3) { animation-delay: .4s; }

.ai-cars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.ai-carcard {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 190px;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease;
    animation: aiPop .35s both;
}

.ai-carcard:hover {
    box-shadow: 0 8px 22px rgba(13, 30, 59, .12);
}

.ai-carcard__photo {
    background: #eef1f4;
    min-height: 150px;
}

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

.ai-carcard__mid {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
}

.ai-carcard__name {
    font-size: 17px;
    font-weight: 700;
    color: #0D1E3B;
    margin: 0;
}

.ai-carcard__sub {
    font-size: 13px;
    color: #6B7280;
    margin: 2px 0 0;
}

.ai-carcard__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    margin-top: auto;
    padding-top: 14px;
}

.ai-carcard__k {
    display: block;
    font-size: 10.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #b6bcc6;
}

.ai-carcard__v {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: #0D1E3B;
    margin-top: 2px;
}

.ai-carcard__side {
    border-left: 1px solid #f0f1f3;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
}

.ai-carcard__price {
    font-size: 20px;
    font-weight: 900;
    color: #0D1E3B;
    margin: 0;
}

.ai-carcard__delivery {
    font-size: 12px;
    font-weight: 500;
    color: #8b95a5;
    margin: 5px 0 0;
}

.ai-carcard__open {
    font-size: 12px;
    font-weight: 500;
    color: #0074FE;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ai-inputbar {
    border-top: none;
    background: transparent;
    padding: 16px 20px 22px;
}

.ai-inputbar__inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.ai-inputbar__input {
    width: 100%;
    height: 56px;
    border: 1px solid #e3e7ee;
    border-radius: 999px;
    background: #f7f9fc;
    padding: 0 62px 0 22px;
    font-size: 16px;
    font-family: inherit;
    color: #0D1E3B;
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}

.ai-inputbar__input:focus {
    border-color: #0074FE;
    background: #fff;
}

.ai-inputbar__send {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #e6eaf0;
    color: #6B7280;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.ai-inputbar__send.is-active {
    background: #0074FE;
    color: #fff;
}

.ai-cl {
    flex: 1;
    overflow-y: auto;
    padding: 24px 24px 60px;
}

.ai-cl__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e6eaf0;
    border-radius: 11px;
    padding: 0 16px;
    height: 42px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #0D1E3B;
    box-shadow: 0 1px 3px rgba(13, 30, 59, .06);
    margin-bottom: 24px;
    cursor: pointer;
}

.ai-cl__back:hover {
    background: #f4f6fa;
}

.ai-cl__search {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.ai-cl__search-ic {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    pointer-events: none;
}

.ai-cl__search-input {
    width: 100%;
    height: 56px;
    border: 1px solid #e3e7ee;
    border-radius: 999px;
    background: #fff;
    padding: 0 22px 0 52px;
    font-size: 16px;
    font-family: inherit;
    color: #0D1E3B;
    outline: none;
    box-shadow: 0 6px 20px rgba(13, 30, 59, .06);
}

.ai-cl__search-input:focus {
    border-color: #0074FE;
}

.ai-cl__label {
    max-width: 640px;
    margin: 28px auto 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
}

.ai-cl__list {
    max-width: 640px;
    margin: 0 auto;
}

.ai-cl__row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    border-radius: 12px;
    padding: 16px 14px;
    border-bottom: 1px solid #eef1f5;
    font-family: inherit;
    cursor: pointer;
}

.ai-cl__row:hover {
    background: #f2f5f9;
}

.ai-cl__title {
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 500;
    color: #0D1E3B;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-cl__date {
    flex: 0 0 auto;
    font-size: 13px;
    color: #b6bcc6;
}

.ai-cl__del {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b6bcc6;
    font-size: 18px;
    line-height: 1;
}

.ai-cl__del:hover {
    background: #fdecec;
    color: #ef4444;
}

@keyframes aiBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes aiFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

@keyframes aiPop {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@keyframes aiDot {
    0%, 80%, 100% { opacity: .25; }
    40% { opacity: 1; }
}

@keyframes aiSlideIn {
    from { transform: translateX(-100%); }
    to { transform: none; }
}

@media (max-width: 1100px) {
    .ai-header .nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .ai-header .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .ai-header .header__contacts {
        display: flex;
    }

    .ai-header .header__phone,
    .ai-header .header__contacts .button {
        font-size: 14px;
    }

    .ai-header .logo__text {
        display: none;
    }

    .ai-carcard {
        grid-template-columns: 1fr;
    }

    .ai-carcard__side {
        border-left: none;
        border-top: 1px solid #f0f1f3;
        align-items: flex-start;
        text-align: left;
    }

    .ai-ghost {
        font-size: 14px;
    }

    .ai-hero__input {
        font-size: 15px;
    }
}

.car-strip {
    max-width: var(--container-max-width, 1200px);
    margin: 0 auto;
    padding: 64px 24px 40px;
}

.car-strip__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.car-strip__title {
    font-size: 34px;
    font-weight: 900;
    color: #0D1E3B;
    margin: 0 0 6px;
    line-height: 1.15;
}

.car-strip__subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

.car-strip__arrows {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.car-strip__arrow {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    background: #fff;
    color: #0D1E3B;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast, all .15s ease);
}

.car-strip__arrow:hover {
    border-color: #0074FE;
    color: #0074FE;
}

.car-strip__film {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 6px 2px 22px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #0074FE transparent;
}

.car-strip__film::-webkit-scrollbar {
    height: 8px;
}

.car-strip__film::-webkit-scrollbar-thumb {
    background: #0074FE;
    border-radius: 8px;
}

.car-strip__film::-webkit-scrollbar-track {
    background: transparent;
}

.car-card {
    flex: 0 0 288px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}

.car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.car-card__photo {
    height: 184px;
    background-color: var(--car-placeholder-bg);
    overflow: hidden;
}

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

.car-card__photo--empty {
    background-image: var(--car-placeholder);
    background-repeat: no-repeat;
    background-position: center;
    background-size: auto 72%;
}

.car-card__photo--empty img {
    visibility: hidden;
}

.car-card__body {
    padding: 18px;
}

.car-card__price {
    font-size: 22px;
    font-weight: 900;
    color: #0D1E3B;
    margin: 0 0 2px;
}

.car-card__delivery {
    font-size: 12px;
    color: #6B7280;
    margin: 0 0 10px;
}

.car-card__name {
    font-size: 17px;
    font-weight: 700;
    color: #0D1E3B;
    margin: 0 0 4px;
}

.car-card__gen {
    font-size: 13px;
    color: #6B7280;
    margin: 0 0 12px;
}

.car-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.car-card__chip {
    font-size: 12px;
    color: #374151;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 4px 8px;
}

.car-strip__footer {
    text-align: center;
    margin-top: 8px;
}

.car-strip__more {
    display: inline-block;
    background: #0D1E3B;
    color: #fff;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition-fast, all .15s ease);
}

.car-strip__more:hover {
    background: #0074FE;
}

@media (max-width: 768px) {
    .car-strip {
        padding: 40px 16px 24px;
    }

    .car-strip__title {
        font-size: 26px;
    }

    .car-strip__arrows {
        display: none;
    }
}

.catalog-page,
.detail-page {
    padding-top: 0;
}

.ai-overlay .container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    margin-top: 15px;
}

.ai-overlay .header .container {
    margin-top: 0;
    height: 100%;
}

.ai-overlay .header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-6);
    height: 100%;
}

.ai-overlay .logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
    color: var(--color-gray-900);
}

.ai-overlay .logo__img {
    width: 40px;
    height: 40px;
    margin-right: var(--spacing-2);
}

.ai-overlay .logo__text {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
    line-height: 1.15;
}

.ai-overlay .nav {
    flex: 0 0 auto;
}

.ai-overlay .nav__list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ai-overlay .nav__item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ai-overlay .nav__link {
    font-size: 15px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.ai-overlay .nav__link:hover,
.ai-overlay .nav__link.is-active {
    color: #0074fe;
}

.ai-overlay .header__contacts {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 16px;
}

.ai-overlay .header__contacts .button {
    padding: 12px 22px;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

.ai-overlay .header__phone {
    font-size: 16px;
    font-weight: 500;
    color: #0d1e3b;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.ai-overlay .header__phone:hover {
    color: #0074fe;
}

.ai-overlay .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ai-overlay .button--primary {
    color: #fff;
    background-color: #0074fe;
    border-color: #0074fe;
}

.ai-overlay .button--primary:hover {
    color: #fff;
    background-color: #0a3687;
    border-color: #0a3687;
}
.filters__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eef1f5;
}

.filters__save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: none;
    color: #0D1E3B;
    font-family: inherit;
    font-size: 15px;
    cursor: pointer;
    transition: color .15s ease;
}

.filters__save:hover {
    color: #0074fe;
}

.filters__save svg {
    flex: 0 0 auto;
    transition: fill .15s ease;
    fill: none;
}

.filters__save.is-saved {
    color: #0074fe;
}

.filters__save.is-saved svg {
    fill: currentColor;
}

.filters__show {
    flex: 1 1 auto;
    max-width: 420px;
    padding: 15px 28px;
    border: none;
    border-radius: 999px;
    background: #0074fe;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}

.filters__show:hover {
    background: #0a3687;
}

.filters__show:disabled {
    background: #c7d2e1;
    cursor: default;
}

.filters__share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: none;
    color: #0D1E3B;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.filters__share:hover {
    background: #eef4ff;
    color: #0074fe;
}

.filters__share.is-copied {
    color: #0074fe;
}

.results[hidden],
.pagination[hidden],
.pane[hidden],
.results__tools[hidden] {
    display: none;
}

.rtabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 13px;
    background: #e4e9f2;
}

.rtab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    background: none;
    color: #6b7280;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.rtab:hover {
    color: #0D1E3B;
}

.rtab.is-active {
    background: #fff;
    color: #0D1E3B;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(13, 30, 59, .12);
}

.rtab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dbe3ee;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
}

.rtab__count[hidden] {
    display: none;
}

.rtab.is-active .rtab__count {
    background: #0074fe;
    color: #fff;
}

.pane__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 64px 24px;
    border-radius: 16px;
    background: #fff;
}

.pane__icon {
    font-size: 34px;
    line-height: 1;
    margin-bottom: 14px;
    opacity: .55;
}

.pane__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0D1E3B;
}

.pane__text {
    margin: 0;
    max-width: 420px;
    font-size: 14.5px;
    line-height: 1.55;
    color: #6b7280;
}

.scards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.scard {
    display: flex;
    align-items: stretch;
    border: 1px solid #e6eaf1;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.scard:hover {
    border-color: #c9d3e0;
    box-shadow: 0 6px 18px rgba(13, 30, 59, .08);
}

.scard__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 15px 8px 15px 18px;
    border: none;
    background: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

.scard__label {
    font-size: 15px;
    font-weight: 600;
    color: #0D1E3B;
    line-height: 1.35;
}

.scard__count {
    font-size: 13px;
    color: #6b7280;
}

.scard__del {
    flex: 0 0 auto;
    width: 40px;
    padding: 0;
    border: none;
    background: none;
    color: #b6bfcc;
    font-size: 20px;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.scard__del:hover {
    background: #f5f7fa;
    color: #0D1E3B;
}

@media (max-width: 700px) {
    .rtabs {
        width: 100%;
    }

    .rtab {
        flex: 1 1 0;
        justify-content: center;
        padding: 8px 6px;
        font-size: 13.5px;
    }

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

@media (max-width: 640px) {
    .filters__actions {
        flex-wrap: wrap;
    }

    .filters__show {
        order: -1;
        max-width: none;
        width: 100%;
    }
}

.lcard__side > div {
    min-width: 0;
}

.lcard__delivery {
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .lcard__side {
        align-items: flex-start;
        padding-right: 64px;
    }

    .lcard__side > div {
        flex: 1 1 auto;
    }

    .lcard__side .fav-btn {
        position: absolute;
        top: 14px;
        right: 16px;
    }

    .lcard__side .card-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 380px) {
    .lcard__delivery,
    .gcard__delivery {
        white-space: normal;
    }
}

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

.filters__country {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    padding: 4px;
    border-radius: 13px;
    background: #e4e9f2;
    width: fit-content;
}

.ctab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    background: none;
    color: #6b7280;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.ctab:hover {
    color: #0D1E3B;
}

.ctab.is-active {
    background: #fff;
    color: #0D1E3B;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(13, 30, 59, .12);
}

.ctab__flag {
    font-size: 15px;
    line-height: 1;
}

.ctab-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 10px;
}

.ctab-group:has(.ctab.is-active) {
    background: #fff;
    box-shadow: 0 1px 3px rgba(13, 30, 59, .12);
}

.ctab-group .ctab.is-active {
    box-shadow: none;
}

.ctab-group .ctab {
    padding-right: 8px;
}

/* Все три страны одной ширины: равные доли контейнера. */
.ctab-group {
    flex: 1;
}
/* Япония без выпадашки: содержимое по центру плашки (у Кореи/Китая слева —
   там таб + стрелка, и меню позиционируется от правого края группы). */
.ctab-group--single {
    justify-content: center;
}
.ctab-group--single .ctab {
    padding-right: 18px;
}

/* Страна выключена: плашка гаснет, текст уходит в серый. */
.ctab-group:not(.is-on) .ctab {
    color: #9aa3b2;
}

.ctab-group:not(.is-on) .ctab__flag {
    filter: grayscale(1);
    opacity: .55;
}

.ctab__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px 8px 4px;
    border: none;
    border-radius: 10px;
    background: none;
    color: #6b7280;
    cursor: pointer;
    transition: color .15s ease, transform .15s ease;
}

.ctab-group.is-on .ctab__more {
    color: #0D1E3B;
}

.ctab-group:not(.is-on) .ctab__more {
    color: #9aa3b2;
}

.ctab__more[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.ctab__more svg {
    transition: transform .15s ease;
}

.ctab-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(13, 30, 59, .16);
}

.ctab-menu[hidden] {
    display: none;
}

.ctab-menu__item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: none;
    color: #0D1E3B;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
}

.ctab-menu__item:hover {
    background: #f1f4f9;
}

.ctab-menu__item.is-on {
    color: #2563eb;
    font-weight: 600;
}

.ctab-menu__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: transparent;
    flex: none;
    transition: background .15s ease;
}

.ctab-menu__item.is-on .ctab-menu__dot {
    background: #2563eb;
}

.frow {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid #eef1f5;
}

.frow:first-of-type {
    border-top: none;
    padding-top: 4px;
}

.frow__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #0D1E3B;
}

.frow__hint {
    margin: 0;
    font-size: 13.5px;
    color: #6B7280;
    line-height: 1.45;
}

.frow__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 18px;
    align-items: start;
}

.frow--price .frow__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.frow__toprow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.frow__hint--inline {
    margin: 0;
}

.frow__toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: none;
    background: none;
    color: #0074fe;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.frow__toggle:hover {
    color: #0a3687;
}

.frow__chev {
    transition: transform .2s ease;
}

.frow__toggle.is-open .frow__chev {
    transform: rotate(180deg);
}

.frow__grid--adv {
    display: none;
    margin-top: 12px;
}

.frow__grid--adv.is-open {
    display: grid;
}

.filters .field__label {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 7px;
    display: block;
}

.filters .field__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.filters .field__label-row .field__label {
    margin-bottom: 7px;
}

.filters .field__manual {
    padding: 0;
    border: none;
    background: none;
    color: #0074fe;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}

.filters .field__manual:hover {
    color: #0a3687;
}

.filters .select,
.filters .field__control {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background-color: #f4f6fa;
    color: #0D1E3B;
    font-family: inherit;
    font-size: 15px;
    transition: border-color .15s ease, background-color .15s ease;
}

.filters .select:hover,
.filters .field__control:hover {
    background-color: #eef1f6;
}

.filters .select:focus,
.filters .field__control:focus {
    outline: none;
    border-color: #0074fe;
    background-color: #fff;
}

.filters .field__control::placeholder {
    color: #6B7280;
}

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

.filters .select[hidden],
.filters .field__pair[hidden] {
    display: none;
}

.filters .field__pair--manual {
    margin-top: 0;
}

.picker {
    position: relative;
    display: flex;
}

.picker .field__control {
    padding-right: 34px;
}

.picker__toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: none;
    color: #6B7280;
    cursor: pointer;
    transition: color .15s ease;
}

.picker__toggle:hover {
    color: #0D1E3B;
}

.picker__toggle svg {
    transition: transform .15s ease;
}

.picker.is-open .picker__toggle {
    color: #0074fe;
}

.picker.is-open .picker__toggle svg {
    transform: rotate(180deg);
}

.picker__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 232px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #e6eaf1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(13, 30, 59, .14);
}

.picker__menu[hidden] {
    display: none;
}

.picker__option {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 7px;
    background: none;
    color: #0D1E3B;
    font-family: inherit;
    font-size: 14.5px;
    text-align: left;
    cursor: pointer;
    transition: background-color .12s ease;
}

.picker__option[hidden] {
    display: none;
}

.picker__option:hover {
    background: #f2f6fc;
}

.picker__option.is-active {
    background: #0074fe;
    color: #fff;
}

.filters .filters__badge[hidden] {
    display: none;
}

.filters .filters__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #0074fe;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.filters__actions {
    border-top: 1px solid #eef1f5;
    padding-top: 14px;
    margin-top: 2px;
}

.filters__actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filters__reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: none;
    color: #6B7280;
    font-family: inherit;
    font-size: 14.5px;
    cursor: pointer;
    transition: color .15s ease;
}

.filters__reset:hover {
    color: #0D1E3B;
}

.filters__save {
    height: 44px;
    padding: 0 18px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    background: #fff;
}

.filters__save:hover {
    border-color: #c9d3e0;
    color: #0D1E3B;
}

.filters__save.is-saved {
    border-color: #0074fe;
}

.filters__share {
    width: 44px;
    height: 44px;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
}

.filters__share:hover {
    border-color: #c9d3e0;
    background: #fff;
}

.filters__share.is-copied {
    border-color: #0074fe;
}

.filters__show {
    flex: 0 0 auto;
    height: 44px;
    max-width: none;
    padding: 0 26px;
    border-radius: 10px;
}

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

.results__sort {
    height: 44px;
    min-width: 220px;
    padding: 0 14px;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    background-color: #fff;
    color: #0D1E3B;
    font-family: inherit;
    font-size: 14.5px;
    cursor: pointer;
}

.results__sort:hover {
    border-color: #c9d3e0;
}

.results__sort:focus {
    outline: none;
    border-color: #0074fe;
}

@media (max-width: 1024px) {
    .frow--price .frow__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .frow {
        grid-template-columns: 1fr;
        gap: 14px;
    }

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

@media (max-width: 700px) {
    .filters__country {
        width: 100%;
        justify-content: stretch;
    }

    .ctab {
        flex: 1 1 0;
        justify-content: center;
        padding: 10px 8px;
        font-size: 14px;
    }

    .ctab-group {
        flex: 1 1 0;
    }

    .ctab-group .ctab {
        flex: 1 1 auto;
    }

    .ctab__more {
        padding: 10px 8px 10px 2px;
    }

    .ctab-menu {
        left: 0;
        right: auto;
        min-width: 100%;
    }

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

    .frow__toprow {
        flex-wrap: wrap;
        gap: 8px;
    }

    .filters__actions-right {
        flex-wrap: wrap;
    }

    .filters__save {
        flex: 1 1 auto;
        justify-content: center;
    }

    .filters__show {
        order: 3;
        width: 100%;
    }

    .results__bar {
        flex-wrap: wrap;
    }

    .results__tools {
        width: 100%;
        justify-content: space-between;
    }

    .results__sort {
        flex: 1 1 auto;
        min-width: 0;
    }
}
.detail__section--collapsible {
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 14px;
}

.collapsible__toggle {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 15px 24px;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: #0D1E3B;
    transition: background-color .15s ease;
}

.collapsible__toggle:hover .collapsible__chevron {
    border-color: #0D1E3B;
}

.collapsible__toggle:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}

.collapsible__title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.01em;
    flex: 0 0 auto;
}

.collapsible__meta {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    font-size: 14px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collapsible__chevron {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid #6B7280;
    border-bottom: 2px solid #6B7280;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s ease;
}

.collapsible__toggle[aria-expanded="true"] .collapsible__chevron {
    transform: rotate(225deg) translate(-2px, -2px);
}

.collapsible__body {
    padding: 4px 24px 24px;
}

.collapsible__toggle--history .collapsible__meta {
    overflow: visible;
}

.stages--collapsible {
    padding: 0;
    border-radius: 14px;
    margin-bottom: 14px;
}

.collapsible__toggle--dark {
    padding: 17px 26px;
    color: #fff;
}

.collapsible__toggle--dark:hover {
    background: none;
}

.collapsible__toggle--dark:hover .collapsible__chevron {
    border-color: #fff;
}

.collapsible__toggle--dark .collapsible__meta {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.collapsible__toggle--dark .collapsible__chevron {
    border-color: rgba(255, 255, 255, .6);
}

.stages--collapsible .collapsible__body {
    padding: 4px 26px 26px;
}

.history__split {
    display: block;
}

.history__split--map {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.history__facts {
    min-width: 0;
}

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

.history__split--map .history__map {
    margin-top: 0;
}

.history__split--map .history__map svg,
.history__split--map .history__map img {
    display: block;
    width: 100%;
    height: auto;
}

.auction__rate-pill {
    display: inline-block;
    min-width: 30px;
    padding: 3px 12px;
    border-radius: 999px;
    background: #0074FE;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.01em;
    text-align: center;
}

.summary__auction {
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auction__price--muted {
    font-size: 15px;
    font-weight: 600;
    color: #4B5563;
}

.auction__price-part {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0D1E3B;
    letter-spacing: -.01em;
}

.auction__price-part--final {
    color: #0074FE;
}

.auction__price-cap {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0;
}

.auction__price-arrow {
    color: #6B7280;
    font-size: 16px;
}

.auction__price-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 8px;
    background: #F1F1F1;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.auction__rows {
    margin-top: 4px;
}

.description__text {
    background: #f7f9fc;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.65;
    color: #374151;
    overflow-wrap: break-word;
}

.description__p {
    margin: 0 0 12px;
}

.description__p:last-child {
    margin-bottom: 0;
}

.description__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.description__translate {
    padding: 8px 14px;
    border: 1px solid #0074FE;
    border-radius: 10px;
    background: #fff;
    color: #0074FE;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.description__translate:hover:not(:disabled) {
    background: #0074FE;
    color: #fff;
}

.description__translate:disabled {
    opacity: 0.6;
    cursor: default;
}

.description__note {
    font-size: 12px;
    color: #6b7280;
}

@media (max-width: 900px) {
    .collapsible__toggle {
        padding: 14px 18px;
        gap: 10px;
    }

    .collapsible__title {
        font-size: 15px;
    }

    .collapsible__meta {
        font-size: 13px;
    }

    .collapsible__body {
        padding: 2px 18px 18px;
    }

    .collapsible__toggle--dark {
        padding: 15px 18px;
    }

    .collapsible__toggle--dark .collapsible__meta {
        font-size: 15px;
    }

    .stages--collapsible .collapsible__body {
        padding: 2px 18px 18px;
    }

    .history__split--map {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    }

.inspection__groups {
    column-count: 2;
    column-gap: 32px;
}

.inspection__group {
    break-inside: avoid;
    margin-bottom: 18px;
}

.inspection__group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.inspection__group-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #0D1E3B;
    margin: 0;
}

.inspection__group-inner {
    border: 1px solid #eef1f5;
    border-radius: 12px;
    padding: 12px 14px;
}

.inspection__check {
    display: inline-block;
    width: 11px;
    height: 6px;
    border-left: 2px solid #86b799;
    border-bottom: 2px solid #86b799;
    transform: rotate(-45deg);
    margin-bottom: 3px;
}

.inspection__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    border-bottom: 1px solid #eef1f5;
    font-size: 13px;
}

.inspection__row:last-child {
    border-bottom: 0;
}

.inspection__unit {
    color: #6b7280;
    min-width: 0;
}

.inspection__state {
    color: #6B7280;
    text-align: right;
    white-space: nowrap;
}

.inspection__row--bad .inspection__unit {
    color: #0D1E3B;
    font-weight: 500;
}

.inspection__row--bad {
    background: rgba(239, 68, 68, .07);
    border-radius: 6px;
    padding-left: 8px;
    padding-right: 8px;
    margin: 0 -8px;
    border-bottom-color: transparent;
}

.inspection__row--bad .inspection__state {
    color: #b91c1c;
    font-weight: 600;
}

.inspection__summary {
    color: #15803d;
    font-weight: 600;
}

.inspection__summary--bad {
    color: #b91c1c;
    font-weight: 600;
}

.offmap {
    margin-top: 20px;
}

.offmap__title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #0D1E3B;
    margin: 0 0 10px;
}

.offmap__row {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #eef1f5;
    font-size: 13px;
}

.offmap__row:last-child {
    border-bottom: 0;
}

.offmap__dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.offmap__name {
    color: #374151;
    min-width: 0;
}

.offmap__state {
    color: #6B7280;
    text-align: right;
    white-space: nowrap;
}

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