/* Примерка дисков: /primerka-diskov/ */
/* окно выбора авто лежит вне .fit-page — переменные нужны и ему */
.fit-page,
.fit-modal {
    --fit-red: #e43a2d;
    --fit-red-dark: #c92f23;
    --fit-text: #333;
    --fit-gray: #707070;
    --fit-line: #ededed;
    --fit-bg: #f6f7f8;
    --fit-radius: 8px;       /* как у блоков фильтра на главной (.filter-home__item) */
    --fit-input-border: #b5b5b5;
    --fit-btn-radius: 4px;   /* как у кнопок сайта (.btn) */
}

.fit-page {
    color: var(--fit-text);
    padding-bottom: 60px;
}



.fit-head__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

/* дубль "Изменить авто" — только на мобильных */
.fit-head__change {
    display: none;
    flex-shrink: 0;
    color: var(--fit-red, #e43a2d);
    font-size: 14px;
    white-space: nowrap;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
}

.fit-page {
    padding-top: 24px;
}

/* --- стартовый экран: авто ещё не выбрано --- */
/* выборка под фильтром — без карточки, как список на auto_catalog.php */
.fit-start {
    padding-top: 12px;
}

.has-car .fit-start {
    display: none;
}

.fit-page:not(.has-car) .fit-layout {
    display: none;
}


/* строка-подсказка над списком — как .tw-c__head на auto_catalog.php, под ней линия (ТЗ-2, п. 2) */
.fit-start__head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #cfcfcf;
}

.fit-start__head img {
    flex: 0 0 24px;
}

/* «Смотрите также» — последней строкой внизу страницы (ТЗ-3, п. 8) */
.fit-links {
    margin-top: 8px;
    color: var(--fit-gray);
    font-size: 14px;
}

.fit-links a {
    color: var(--fit-red);
}

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

.fit-main,
.fit-side {
    min-width: 0;
}

.fit-card {
    background: #fff;
    border: 1px solid var(--fit-line);
    border-radius: var(--fit-radius);
    padding: 24px;
}

.fit-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 16px;
}

/* --- карточка авто --- */
.fit-auto__empty {
    text-align: center;
    color: var(--fit-gray);
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.fit-auto__empty img {
    display: block;
    margin: 4px auto 12px;
    opacity: .5;
}

.fit-auto__info {
    display: none;
    margin-bottom: 16px;
}

.has-car .fit-auto__empty {
    display: none;
}

.has-car .fit-auto__info {
    display: block;
}

/* .info-dp — шрифт, размер и цвета блока «Характеристики» товара; подписи уже, чем у товара: колонка узкая */
.fit-auto .info-dp__list li {
    gap: 12px;
}

.fit-auto .info-dp__list li div:nth-child(1) {
    width: 116px;
}

.fit-auto__btn {
    width: 100%;
    justify-content: center;
}

.has-car .fit-auto__btn {
    background: #fff;
    color: var(--fit-text);
    border: 1px solid #dcdcdc;
}

.has-car .fit-auto__btn:hover {
    border-color: var(--fit-red);
    color: var(--fit-red);
}

/* --- фильтры --- */
.fit-filter {
    display: none;
}

.has-car .fit-filter {
    display: block;
}








.fit-note {
    font-size: 12px;
    line-height: 1.45;
    color: var(--fit-gray);
    background: var(--fit-bg);
    border: 0;
}

/* --- верх: сцена и карточка товара --- */
.fit-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
    align-items: stretch;
}

.fit-stage {
    position: relative;
    background: #8c8b8e;    /* до отрисовки сцены (canvas) — тон стены студии light4 */
    border-radius: var(--fit-radius);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* высота сцены — не меньше 16:9 от ширины; выше — когда тянется по высоте карточки диска справа */
.fit-stage::before {
    content: '';
    display: block;
    padding-top: 56.25%;
}

/* сцена «тёмная студия» целиком в canvas (primerka.js drawScene) — на весь блок */
.fit-stage__canvas {
    position: absolute;
    inset: 0;
}

.fit-scene {
    display: block;
    width: 100%;
    height: 100%;
}

.fit-stage__hint {
    position: absolute;
    left: 50%;
    top: 22px;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 520px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--fit-line);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .05);
}

.fit-stage__hint a {
    color: var(--fit-red);
    border-bottom: 1px dashed currentColor;
}

.has-car .fit-stage__hint {
    display: none;
}

.fit-stage__credit {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 11px;
    color: rgba(0, 0, 0, .5);
    max-width: 70%;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fit-stage__unfit {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    max-width: calc(100% - 90px);
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 235, 235, .95);
    color: #b3201c;
    font-size: 13px;
    line-height: 1.3;
}

.fit-stage__unfit[hidden] {
    display: none;
}

@media (max-width: 719px) {
    .fit-stage__unfit {
        top: 8px;
        right: 8px;
        max-width: calc(100% - 70px);
        padding: 4px 8px;
        font-size: 11px;
    }
}

.fit-stage__credit a {
    color: inherit;
    text-decoration: underline;
}

.fit-stage__loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .25);
}

.fit-stage__loader.active {
    display: flex;
}

.fit-stage__loader span,
.fit-modal__loading span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(228, 58, 45, .2);
    border-top-color: var(--fit-red);
    animation: fit-spin .8s linear infinite;
}

@keyframes fit-spin {
    to {
        transform: rotate(360deg);
    }
}

/* карточка выбранного диска справа от сцены — карточка каталога */
.fit-product {
    display: flex;
    flex-direction: column;
}

.fit-product .prod-cart {
    width: 100%;
    flex: 1;
}

.fit-product .fit-try-btn {
    display: none;
}

/* цена и цена за 4 шт. — всегда двумя строками и без переносов: в узкой карточке длинная цена не сдвигает их (ТЗ-3, п. 10) */
.fit-product .price-pc {
    flex-direction: column;
    align-items: flex-start;
}

.fit-product .price-pc__value,
.fit-product .price-pc__one {
    white-space: nowrap;
}

.fit-product .price-pc__one {
    margin-left: 0;
}

.fit-product__empty {
    margin: auto;
    color: var(--fit-gray);
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}












/* --- цвета авто под сценой: слева, на месте прежних вкладок диаметров (ТЗ-2, п. 10) --- */
.fit-controls {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
    margin: 16px 0 12px;
}

.has-car .fit-controls {
    display: flex;
}

/* диаметр под сценой (ТЗ-3, п. 6): вкладки слева, цвета авто справа; на телефоне вкладки — строкой над цветами */
.fit-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fit-tabs:empty {
    display: none;
}

.fit-tabs button {
    padding: 9px 16px;
    border-radius: var(--fit-btn-radius);
    border: 1px solid #e4e4e4;
    background: #fff;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.1;
}

.fit-tabs button small {
    display: block;
    font-weight: 400;
    font-size: 10px;
    color: var(--fit-gray);
}

.fit-tabs button:hover {
    border-color: var(--fit-red);
}

.fit-tabs button.active {
    border-color: var(--fit-red);
    background: var(--fit-red);
    color: #fff;
}

.fit-tabs button.active small {
    color: rgba(255, 255, 255, .8);
}

.fit-colors {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px;
}

.fit-color {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
    position: relative;
}

.fit-color.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--fit-red);
}

/* --- лента дисков --- */
.fit-strip {
    display: none;
    position: relative;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.has-discs .fit-strip {
    display: flex;
}

.fit-strip__list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding: 4px 2px;
    flex: 1;
}

.fit-strip__list::-webkit-scrollbar {
    display: none;
}

.fit-strip__item {
    flex: 0 0 84px;
    height: 84px;
    border-radius: var(--fit-btn-radius);
    border: 2px solid transparent;
    background: #fff;
    padding: 2px;
    scroll-snap-align: start;
    box-shadow: 0 0 0 1px var(--fit-line);
    transition: border-color .15s;
}

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

.fit-strip__item:hover {
    border-color: #f2a39c;
}

.fit-strip__item.active {
    border-color: var(--fit-red);
}

.fit-strip__arr {
    flex: 0 0 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e4e4e4;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fit-strip__arr svg {
    width: 16px;
    height: 16px;
}

.fit-strip__arr:hover {
    border-color: var(--fit-red);
    color: var(--fit-red);
}

/* --- сетка дисков --- */
.fit-list {
    display: none;
}

.has-discs .fit-list {
    display: block;
}

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

.fit-list__title {
    font-size: 22px;
    font-weight: 700;
}

.fit-list__title span {
    color: var(--fit-gray);
    font-weight: 400;
}


















.fit-list__more {
    text-align: center;
    margin-top: 20px;
}

.fit-btn-light {
    border: 1px solid #dcdcdc;
    background: #fff;
    padding: 12px 28px;
    border-radius: var(--fit-btn-radius);
}

.fit-btn-light:hover {
    border-color: var(--fit-red);
    color: var(--fit-red);
}

/* --- модальное окно выбора авто --- */
body.fit-lock {
    overflow: hidden;
}

.fit-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.fit-modal.open {
    display: flex;
}

.fit-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 22, 25, .55);
}

.fit-modal__box {
    position: relative;
    width: 100%;
    max-width: 960px;
    max-height: calc(100vh - 48px);
    background: #fff;
    border-radius: var(--fit-radius);
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    color: #333;
}

.fit-modal__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 28px 10px;
}

.fit-modal__title {
    flex: 1;
    font-size: 22px;
    font-weight: 700;
}

.fit-modal__title small {
    font-size: 15px;
    font-weight: 400;
    color: var(--fit-gray, #707070);
    margin-left: 6px;
}

.fit-modal__back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #707070;
    order: -1;
}

.fit-modal__back .icon {
    width: 12px;
    height: 12px;
    transform: rotate(90deg);
}

.fit-modal__back:hover {
    color: #e43a2d;
}

.fit-modal__close {
    font-size: 30px;
    line-height: 1;
    color: #999;
    width: 36px;
    height: 36px;
}

.fit-modal__close:hover {
    color: #333;
}

.fit-modal__body {
    overflow-y: auto;
    padding: 18px 28px 28px;
    min-height: 240px;
}

.fit-modal__loading {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.fit-modal__error {
    color: #707070;
    text-align: center;
    padding: 40px 0;
}

.fit-years {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

/* как облако тегов «Наиболее популярные типоразмеры шин» (.popular-size__links a) */
.fit-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 5px 12px;
    border-radius: var(--fit-btn-radius);
    border: 1px solid #e4e4e4;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 140%;
    transition: .2s;
}

.fit-chip:hover {
    color: #000;
}

@media (any-hover: hover) {
    .fit-chip:hover {
        border-color: #b5b5b5;
    }
}

.fit-chip:active {
    border-color: #b5b5b5;
    background: #f8f8f8;
}

/* плашки годов — в прежнем виде (ТЗ 2.5) */
@media (any-hover: hover) {
    .fit-years .fit-chip:hover {
        border-color: var(--fit-red);
        color: var(--fit-red);
    }
}

.fit-years .fit-chip {
    min-width: 84px;
    border-radius: var(--fit-btn-radius);
    padding: 12px 14px;
    font-size: 16px;
}

/* алфавитный список — как .list-tw на auto_catalog.php: буква над списком, 5 колонок */
.fit-letters {
    columns: 5;
    column-gap: clamp(2.5rem, -1.071rem + 9.524vw, 7.5rem);
}

.fit-modal .fit-letters {
    columns: 5 130px;
    column-gap: 24px;
}


.fit-letters__group {
    break-inside: avoid;
    margin-bottom: 24px;
}

.fit-letters__letter {
    display: block;
    color: #282828;
    font-weight: 700;
    font-size: 16px;
    line-height: 18px;
    margin-bottom: 8px;
}

.fit-letters li:not(:last-child) {
    margin-bottom: 8px;
}

.fit-letters li {
    break-inside: avoid;
}

.fit-letters li button {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    text-align: left;
    color: #282828;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    transition: color .3s;
}

.fit-letters li button:hover {
    color: #e43a2d;
}

/* число модификаций модели — справа серым, как на auto_catalog.php */
.fit-letters__count {
    color: #9a9a9a;
    margin-left: auto;
}

.fit-empty__back {
    text-align: center;
}

/* --- адаптив --- */
@media (max-width: 1279px) {
    .fit-top {
        grid-template-columns: minmax(0, 1fr) 220px;
    }
}

@media (max-width: 1023px) {
    .fit-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .fit-side {
        position: static;
        order: 2;
    }

    .fit-main {
        order: 1;
    }

    .fit-side .fit-auto {
        order: -1;
    }

    .fit-note {
        display: none;
    }

    .fit-top {
        grid-template-columns: 1fr;
    }

    /* под сценой сначала выбор: диаметры, цвета и лента дисков, потом карточка выбранного диска
       (.fit-top «растворяется», и сцена с карточкой встают в общий порядок .fit-main) */
    .fit-main {
        display: flex;
        flex-direction: column;
    }

    .fit-top {
        display: contents;
    }

    /* отступ под сценой — и когда строки диаметров и цветов нет: фильтр не прилипает к авто (ТЗ-3, адаптив п. 1) */
    .fit-stage {
        order: 1;
        margin-bottom: 16px;
    }

    .fit-controls {
        order: 2;
        margin-top: 0;
    }

    /* вкладки диаметров — строкой во всю ширину, как на макете; много диаметров — переносятся */
    .fit-tabs {
        width: 100%;
    }

    .fit-tabs button {
        flex: 1 0 auto;
        padding: 8px 10px;
    }

    .fit-strip {
        order: 3;
    }

    /* карточка выбранного диска у сцены — только на компьютере: на телефоне и планшете он же в выдаче,
       с кнопкой «На примерке» (ТЗ-2, п. 13.2) */
    .fit-product {
        display: none;
    }

    /* дисков нет — текст, что на компьютере у сцены, здесь последним перед «Характеристиками» (ТЗ-3, адаптив п. 2) */
    .fit-product:has(.fit-product__none) {
        display: block;
        order: 6;
        margin-top: 16px;
    }

    .fit-product__none {
        text-align: left;
    }

    .fit-filter-box,
    .fit-list {
        order: 5;
    }
}

@media (max-width: 768px) {
    .fit-letters,
    .fit-modal .fit-letters {
        columns: 1;
    }

    .fit-letters li:not(:last-child) {
        margin-bottom: 0;
    }

    .fit-letters li button {
        padding: 8px 0;
    }
}

@media (max-width: 767px) {
    .fit-head__change:not([hidden]) {
        display: inline-block;
    }

    .fit-stage {
        min-height: 200px;
    }

    .fit-stage__hint {
        top: 10px;
        font-size: 13px;
        padding: 8px 10px;
    }

    .fit-strip__arr {
        display: none;
    }

    .fit-modal {
        padding: 0;
        align-items: stretch;
    }

    .fit-modal__box {
        max-height: none;
        height: 100%;
        border-radius: 0;
    }

    .fit-modal__head,
    .fit-modal__body {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fit-modal__head {
        flex-wrap: wrap;
        gap: 4px 12px;
    }

    .fit-modal__title {
        order: 2;
        flex-basis: 100%;
        font-size: 19px;
    }

    .fit-modal__close {
        margin-left: auto;
    }

    .fit-list__title {
        font-size: 18px;
    }
}


/* кнопки на сцене: вращение колёс (по умолчанию выключено) внизу слева, «Поделиться изображением» вверху слева;
   без наведения еле видны */
.fit-stage__btn {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(27, 28, 30, .6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: .3;
    transition: opacity .2s, background .2s;
}
.fit-stage__share {
    top: 14px;
    bottom: auto;
}
.fit-stage__btn[hidden] {
    display: none;
}
.fit-stage:hover .fit-stage__btn,
.fit-stage__btn:focus-visible {
    opacity: 1;
}
.fit-stage__btn:hover {
    background: rgba(27, 28, 30, .8);
}
.fit-stage__btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.fit-stage__play .i-pause,
.fit-stage.is-spinning .fit-stage__play .i-play {
    display: none;
}
.fit-stage.is-spinning .fit-stage__play .i-pause {
    display: block;
}
/* на тач-экранах наведения нет — кнопки видны всегда, приглушённо */
@media (hover: none) {
    .fit-stage__btn {
        opacity: .75;
    }
}
@keyframes fit-spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- выдача: фильтр как в выдаче каталога (поиск по сайту) --- */
.fit-facet:not(:first-child) {
    margin-top: 24px;
}

.fit-facet__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 18px;
    color: #000;
    margin-bottom: 8px;
}

.fit-facet__list li:not(:last-child) {
    margin-bottom: 2px;
}

/* кружок группы цвета — как в фильтре на главной (.color-tags__dot) */
.fit-option .color-tags__dot {
    margin-right: 8px;
}

.fit-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 18px;
    color: #000;
}

.fit-option input {
    display: none;
}

.fit-option__mark {
    position: relative;
    flex: 0 0 20px;
    height: 20px;
    margin-right: 10px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #fff;
}

.fit-option input[type="radio"] ~ .fit-option__mark {
    border-radius: 50%;
}

/* галочка нарисована по центру квадрата 18×18 (viewBox сдвинут на середину её контура) и растянута на всё поле
   внутри рамки: при картинке 11×10 и позиции 50% она вставала с полупиксельным сдвигом (ТЗ-2, п. 8.3) */
.fit-option input:checked ~ .fit-option__mark {
    border-color: var(--fit-red);
    background: var(--fit-red) url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='-3.77 -4 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.712 1.212a.938.938 0 011.338 1.313L5.062 8.762a.937.937 0 01-1.35.025L.405 5.48A.937.937 0 111.73 4.155l2.617 2.616L8.69 1.24a.337.337 0 01.025-.028h-.002z' fill='%23fff'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}

.fit-option__text {
    flex-grow: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.fit-option__count {
    flex: 0 0 auto;
    margin-left: 10px;
    font-size: 14px;
    color: #aaa;
}

.fit-option_empty {
    color: #aaa;
}

/* --- выдача: карточки каталога --- */
.fit-grid {
    margin-top: 0;
}

/* колонка выдачи уже, чем в каталоге (слева фильтр): по 3 в ряд — карточка шириной как в каталоге;
   на планшете и телефоне — как в каталоге (2 и 1) */
@media (min-width: 1024px) {
    .fit-grid.catalog__products .prod-cart {
        width: calc((100% - 28px) / 3);
    }
}

/* скрытые подсказки карточек у правого края не должны давать горизонтальную прокрутку */
.fit-page .help:not(:hover) .help__text {
    display: none;
}

.fit-cart_active {
    outline: 2px solid var(--fit-red);
    outline-offset: -2px;
}

/* примеряемый диск — всегда первым в выдаче (на компьютере — ТЗ-3, п. 2) */
.fit-grid .fit-cart_active {
    order: -1;
}

/* «Примерить на авто» — кнопка во всю ширину под «В корзину» на всех экранах (ТЗ 3.5; на компьютере вместо плашки
   на фото — ТЗ-3, п. 2); у выбранного диска — залитая «На примерке» */
.fit-try-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    border: 1px solid var(--fit-red);
    border-radius: var(--fit-btn-radius);
    background: #fff;
    color: var(--fit-red);
    font-size: 16px;
    font-weight: 600;
}

.fit-try-btn__on,
.fit-cart_active .fit-try-btn__off {
    display: none;
}

.fit-cart_active .fit-try-btn__on {
    display: inline;
}

.fit-cart_active .fit-try-btn {
    background: var(--fit-red);
    color: #fff;
}

/* диск встаёт по разболтовке и отверстию, но размер не из справочника авто (ТЗ 3.7); подсказка — .help__text,
   как у иконки гарантии (ТЗ-2, п. 16) */
.fit-inexact {
    display: inline-block;
    align-self: flex-start;
    margin-top: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fff3e0;
    color: #a35a00;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
}

.fit-inexact .help__text {
    top: -2px;
    width: 220px;
}

/* примеряемый диск со страницы каталога к авто не подходит (ТЗ-3, п. 1): причина — сразу текстом */
.fit-unfit {
    align-self: flex-start;
    margin-top: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #ffebeb;
    color: #b3201c;
    font-size: 12px;
    line-height: 1.3;
}

/* «Показать ещё» — сразу залитая, не только при наведении (ТЗ 3.8) */
.fit-more {
    display: inline-flex;
    width: auto;
    min-width: 220px;
    height: 48px;
    padding: 0 32px;
    justify-content: center;
    font-size: 16px;
}

/* кнопка «Развернуть фильтр подбора дисков» — как .filter__collapse--btn в каталоге (только планшет и телефон) */
.fit-filter-toggle {
    display: none;
}

.fit-filter-toggle__btn {
    width: 330px;
    max-width: 100%;
    margin: 0;
    border-radius: 8px;
    padding: 12px 24px;
    box-shadow: 4px 4px 12px rgba(40, 40, 40, .08);
    background-color: #fff;
    cursor: pointer;
}

@media (max-width: 1023px) {
    .has-car .fit-filter-toggle {
        display: flex;
    }

    .fit-filter-box {
        margin-bottom: 16px;
    }

    .fit-filter-box .fit-filter {
        display: none;
        margin-top: 4px;
    }
}

/* поля выбора авто в окне «Изменить авто» — без карточки вокруг, как часть шапки окна */
.fit-picker_modal .filter-home__item.active {
    padding: 4px 28px 0;
    border: 0;
    border-radius: 0;
}

.fit-picker_modal .filter-home__bottom {
    margin-top: 12px;
}

/* блок полей — без .filter-home__item_auto (с ним app.js прячет список до центровки и разворачивает его по-своему);
   скругление — как у .wr-podbor .filter-home__item_auto */
.wr-podbor .fit-picker__item {
    border-radius: 8px;
}

/* телефон: список — под полем, как на компьютере. Список сайта (position: fixed справа сверху) на iPhone
   не прокручивался — жест уходил странице; проверено на iPhone через диагностику (?fitdebug=1, вариант abs).
   !important — app.js ставит top и max-height в style; body._lock (touch-action: none) на время списка снят */
@media (max-width: 719px) {
    .fit-picker .select-box.active .select-box__list {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        bottom: auto !important;
        width: 100% !important;
        max-height: var(--fit-list-h, 300px) !important;   /* primerka.js (fitMobileList): место до нижнего меню */
    }

    body._lock:has(.fit-picker .select-box.active) {
        touch-action: auto;
    }

    body._lock:not(.fit-lock):has(.fit-picker .select-box.active) {   /* при открытом окне «Изменить авто» страница стоит */
        overflow: visible;
    }
}

/* «Сбросить параметры» — по левому краю полей (ТЗ-2, п. 6) */
.fit-picker .filter-home__reset {
    margin-left: 0;
}

/* в окне — отступ и линия между «Сбросить параметры» и списком */
.fit-modal__body {
    margin-top: 16px;
    border-top: 1px solid #ededed;
}

@media (max-width: 767px) {
    .fit-picker_modal .filter-home__item.active {
        padding: 0 16px;
    }
}

/* низ страницы на всех этапах (ТЗ-3, п. 8–9): SEO-текст — только на стартовой, популярные размеры, диски по цвету
   (на стартовой — все диаметры, у авто — его диаметр), «Смотрите также»; блоки — с отступами, чтобы не склеивались */
.fit-bottom {
    margin-top: 48px;
}

.has-car .fit-bottom__text,
.has-car .fit-colors-block,
.fit-page:not(.has-car) .fit-list__colors {
    display: none;
}

.fit-sizes,
.fit-colors-block,
.fit-list__colors {
    margin-top: 32px;
}

.fit-bottom > :first-child {
    margin-top: 0;
}

.fit-bottom .fit-links {
    margin-top: 24px;
}

.fit-list__colors:empty {
    display: none;
}

.fit-colors-block__title,
.fit-list__colors-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    margin-bottom: 16px;
}

/* пометка на карточке выбранного диска: он сейчас на авто на сцене — у сцены и в выдаче (ТЗ-2, п. 13.3);
   поля по бокам, чтобы текст не прилипал к краям (п. 13.1) */
.fit-page .prod-cart__badges {
    align-items: flex-start;
}

.fit-page .prod-cart__badges .fit-badge-try {
    padding: 0 12px;
    background: var(--fit-red);
    color: #fff;
}

.fit-grid .prod-cart:not(.fit-cart_active) .fit-badge-try {
    display: none;
}

/* текст карточек — как в каталоге (#000), а не цвет страницы */
.fit-page .prod-cart,
.fit-auto .info-dp {
    color: #000;
}

