/* ═══════════════════════════════════════════════════════════════
   STRELA Kazakhstan — catalog-v2.css
   Каталог аренды 2.0. Подключается ПОСЛЕ home-v2.css и живёт на её
   токенах --hv2-*, поэтому своей цветовой схемы не вводит.

   Требует body.strela-page-home-v2 (базовая типографика) +
   body.strela-page-catalog-v2 (правила этого файла).

   Пока поддерживается только светлая тема — как и главная v2.
   ═══════════════════════════════════════════════════════════════ */

.cv2-main {
    padding-top: calc(var(--hv2-header-h) + 12px);
    padding-bottom: 28px;
}

@media (min-width: 1024px) {
    .cv2-main {
        padding-top: calc(var(--hv2-header-h) + 20px);
    }
}

/* Каталог открывается со скролла у самого верха, поэтому хедер здесь
   не полупрозрачный, а сразу на подложке. */
body.strela-page-catalog-v2 .hv2-header {
    background: var(--hv2-surface);
    border-bottom: 1px solid var(--hv2-border);
}

/* ─────────────────────────────────────────────
   ШАПКА КАТАЛОГА
   ───────────────────────────────────────────── */

.cv2-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

/* Переключатель Аренда / Вакансии — не используется: вакансии на /vj */

.cv2-head__title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--hv2-text);
}

.cv2-head__sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--hv2-text-2);
}

.cv2-head__sub strong {
    color: var(--hv2-text);
    font-weight: 700;
}

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

.cv2-filter-btn {
    position: relative;
}

.cv2-mine-btn.is-active {
    background: var(--hv2-accent-soft);
    border-color: var(--hv2-accent);
    color: var(--hv2-text);
    font-weight: 700;
}

.cv2-mine-btn.is-active i {
    color: var(--hv2-accent);
}

.cv2-filter-btn__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--hv2-r-pill);
    background: var(--hv2-accent);
    color: var(--hv2-on-accent);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

/* Кнопка «Добавить технику» на мобильном уезжает в плавающую кнопку. */
.cv2-add-btn {
    display: none;
}

@media (min-width: 768px) {
    .cv2-head__title {
        font-size: 27px;
    }

    .cv2-add-btn {
        display: inline-flex;
    }
}

/* ─────────────────────────────────────────────
   ПОИСК
   ───────────────────────────────────────────── */

.cv2-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 40px;
    margin-bottom: 12px;
    background: var(--hv2-surface);
    border: 1px solid var(--hv2-border);
    border-radius: var(--hv2-r-pill);
    box-shadow: var(--hv2-shadow-xs);
    transition: border-color .18s ease, box-shadow .2s ease;
}

.cv2-search:focus-within {
    border-color: var(--hv2-accent);
    box-shadow: 0 0 0 3px var(--hv2-accent-ring);
}

.cv2-search__icon {
    position: absolute;
    left: 15px;
    font-size: 14px;
    color: var(--hv2-text-3);
    pointer-events: none;
}

.cv2-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 15px;
    color: var(--hv2-text);
    outline: none;
    /* Убираем нативный крестик Safari/Chrome — он ломает выравнивание в пилюле. */
    -webkit-appearance: none;
    appearance: none;
}

.cv2-search__input::-webkit-search-cancel-button {
    display: none;
}

.cv2-search__submit {
    flex: none;
    padding: 9px 18px;
    border: 0;
    border-radius: var(--hv2-r-pill);
    background: var(--hv2-accent);
    color: var(--hv2-on-accent);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, transform .14s ease;
}

.cv2-search__submit:hover {
    background: var(--hv2-accent-strong);
}

.cv2-search__submit:active {
    transform: scale(.97);
}

/* Подсказки поиска — как в старом каталоге, в токенах hv2 */
.cv2-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    display: none;
    overflow: hidden;
    max-height: min(320px, 55vh);
    overflow-y: auto;
    background: var(--hv2-surface);
    border: 1px solid var(--hv2-border);
    border-radius: var(--hv2-r-lg, 16px);
    box-shadow: var(--hv2-shadow-lg, 0 12px 32px rgba(20, 24, 33, .14));
}

.cv2-suggestions.is-open {
    display: block;
}

.cv2-sug-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--hv2-border);
    background: transparent;
    color: var(--hv2-text);
    font: inherit;
    font-size: 14px;
    text-align: left;
    width: 100%;
    cursor: pointer;
    transition: background .12s ease;
    user-select: none;
}

.cv2-sug-item:last-child {
    border-bottom: 0;
}

.cv2-sug-item:hover,
.cv2-sug-item.is-active {
    background: var(--hv2-surface-2, var(--hv2-accent-soft));
}

.cv2-sug-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--hv2-accent-soft);
    overflow: hidden;
}

.cv2-sug-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.cv2-sug-icon i {
    font-size: 15px;
    color: var(--hv2-accent-strong, var(--hv2-accent));
}

.cv2-sug-label {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv2-sug-label em {
    font-style: normal;
    color: var(--hv2-accent-strong, var(--hv2-accent));
    font-weight: 800;
}

.cv2-sug-hint {
    flex: none;
    max-width: 42%;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--hv2-surface-2, rgba(0, 0, 0, .04));
    color: var(--hv2-text-3);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─────────────────────────────────────────────
   МОЙ ПАРК — ШАРИНГ (режим «Мои»)
   ───────────────────────────────────────────── */

.cv2-park-share {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid var(--hv2-border);
    border-radius: var(--hv2-r-lg);
    background:
        linear-gradient(135deg, var(--hv2-accent-soft) 0%, transparent 42%),
        var(--hv2-surface);
}

.cv2-park-share__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.cv2-park-share__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--hv2-accent-soft);
    color: var(--hv2-accent);
    font-size: 18px;
}

.cv2-park-share__title {
    font-size: 16px;
    font-weight: 750;
    color: var(--hv2-text);
    line-height: 1.25;
}

.cv2-park-share__desc {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--hv2-text-2);
}

.cv2-park-share__url {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--hv2-surface-2, var(--hv2-surface-3));
    border: 1px solid var(--hv2-border);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--hv2-text-2);
    word-break: break-all;
}

.cv2-park-share__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cv2-park-share__actions .hv2-btn {
    flex: 1 1 auto;
    min-width: 0;
}

.cv2-park-share__actions .hv2-btn.is-copied {
    color: var(--hv2-accent);
    border-color: var(--hv2-accent-ring);
}

/* ─────────────────────────────────────────────
   БАННЕР ПАРКА ВЛАДЕЛЬЦА (?owner=)
   ───────────────────────────────────────────── */

.cv2-owner-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid var(--hv2-border);
    border-radius: var(--hv2-r-lg);
    background: var(--hv2-surface);
}

.cv2-owner-banner__main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cv2-owner-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--hv2-accent-soft);
    color: var(--hv2-accent);
    font-size: 17px;
}

.cv2-owner-banner__avatar {
    display: block;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--hv2-surface-3);
    border: 1px solid var(--hv2-border);
}

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

.cv2-owner-banner__avatar--logo img {
    object-fit: contain;
    padding: 3px;
    background: #fff;
}

.cv2-owner-banner__title {
    font-size: 15px;
    font-weight: 750;
    color: var(--hv2-text);
    line-height: 1.25;
}

.cv2-owner-banner__sub {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--hv2-text-2);
}

.cv2-owner-banner__clear {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .cv2-owner-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .cv2-owner-banner__clear {
        width: 100%;
        justify-content: center;
    }
}

/* ─────────────────────────────────────────────
   АКТИВНЫЕ ФИЛЬТРЫ
   ───────────────────────────────────────────── */

.cv2-active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}

.cv2-active__chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 11px;
    border: 1px solid var(--hv2-accent-ring);
    border-radius: var(--hv2-r-pill);
    background: var(--hv2-accent-soft);
    color: var(--hv2-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.cv2-active__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.05em;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    color: var(--hv2-accent, #e6b800);
    opacity: 0.95;
}

.cv2-active__chip:hover {
    background: var(--hv2-accent-ring);
    border-color: var(--hv2-accent);
}

.cv2-active__chip i {
    font-size: 11px;
    color: var(--hv2-text-2);
}

.cv2-active__reset {
    font-size: 13px;
    font-weight: 600;
    color: var(--hv2-text-2);
    text-decoration: none;
    border-bottom: 1px dashed var(--hv2-border-strong);
}

.cv2-active__reset:hover {
    color: var(--hv2-text);
}

/* ─────────────────────────────────────────────
   «ЧТО ВАС ИНТЕРЕСУЕТ» — выбор типа вместо листания
   ───────────────────────────────────────────── */

.cv2-picker {
    padding: 15px 15px 6px;
    margin-bottom: 18px;
    background: var(--hv2-surface);
    border: 1px solid var(--hv2-border);
    border-radius: var(--hv2-r-lg);
    box-shadow: var(--hv2-shadow-xs);
}

.cv2-picker__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--hv2-text);
}

.cv2-picker__hint {
    margin: 5px 0 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--hv2-text-2);
}

.cv2-picker__scroll {
    padding-bottom: 10px;
}

.cv2-picker__row {
    display: flex;
    gap: 9px;
}

.cv2-picker__chip {
    flex: none;
    width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 7px 9px;
    border: 1px solid var(--hv2-border);
    border-radius: var(--hv2-r);
    background: var(--hv2-surface-2);
    color: var(--hv2-text);
    text-decoration: none;
    transition: transform .16s ease, border-color .18s ease, box-shadow .2s ease;
}

.cv2-picker__chip:hover {
    transform: translateY(-2px);
    border-color: var(--hv2-accent);
    box-shadow: var(--hv2-shadow-sm);
}

.cv2-picker__chip-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--hv2-surface-3);
    color: var(--hv2-text-2);
    font-size: 17px;
}

.cv2-picker__chip-media img {
    width: 76%;
    height: 76%;
    object-fit: contain;
}

.cv2-picker__chip-label {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    /* Две строки максимум — иначе чипы разной высоты. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cv2-picker__chip-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--hv2-accent-strong);
}

@media (min-width: 768px) {
    .cv2-picker {
        padding: 18px 18px 8px;
    }

    .cv2-picker__row {
        flex-wrap: wrap;
    }

    .cv2-picker__chip {
        width: 108px;
    }
}

/* ─────────────────────────────────────────────
   СЕТКА КАРТОЧЕК
   ───────────────────────────────────────────── */

.cv2-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--hv2-gap);
}

@media (min-width: 640px) {
    .cv2-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .cv2-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ─────────────────────────────────────────────
   КАРТОЧКА
   Структуру дублируют cv2_card_html() в catalog2.php (первая порция)
   и cv2CardHtml() в js/catalog-v2.js (докачка).
   ───────────────────────────────────────────── */

.cv2-card {
    display: flex;
    flex-direction: column;
    background: var(--hv2-surface);
    border: 1px solid var(--hv2-border);
    border-radius: var(--hv2-r);
    overflow: hidden;
    box-shadow: var(--hv2-shadow-xs);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .2s ease, border-color .18s ease;
}

.cv2-card:hover {
    transform: translateY(-3px);
    border-color: var(--hv2-accent);
    box-shadow: var(--hv2-shadow);
}

.cv2-card:focus-visible {
    outline: 2px solid var(--hv2-accent);
    outline-offset: 2px;
}

.cv2-card--mine {
    border-color: var(--hv2-accent-ring);
}

.cv2-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--hv2-surface-3);
    overflow: hidden;
}

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

/* Фолбэк без пользовательского фото: PNG типа техники на светлой подложке.
   Отдаётся с нашего сервера, трафик Cloudinary не расходует. */
.cv2-card__png,
.cv2-card__ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--hv2-surface-2), var(--hv2-surface-3));
}

.cv2-card__png img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.cv2-card__ph {
    color: var(--hv2-text-3);
    font-size: 26px;
}

.cv2-card__badges {
    position: absolute;
    top: 7px;
    left: 7px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cv2-badge {
    padding: 3px 7px;
    border-radius: var(--hv2-r-pill);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .01em;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.cv2-badge--vip {
    background: var(--hv2-accent);
    color: var(--hv2-on-accent);
}

.cv2-badge--delivery {
    background: rgba(15, 23, 42, .74);
    color: #fff;
}

.cv2-card__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 11px 12px;
}

.cv2-card__price {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--hv2-text);
}

.cv2-card__name {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--hv2-text-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cv2-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cv2-card__spec {
    padding: 2px 7px;
    border-radius: var(--hv2-r-xs);
    background: var(--hv2-surface-3);
    color: var(--hv2-text-2);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv2-card__type {
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--hv2-text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv2-card__place {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 11.5px;
    color: var(--hv2-text-3);
}

.cv2-card__region {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cv2-card__region i {
    font-size: 10px;
    flex-shrink: 0;
}

.cv2-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    margin-left: auto;
    font-weight: 700;
    color: var(--hv2-text-2);
}

.cv2-card__rating i {
    font-size: 10px;
    color: var(--hv2-star);
}

@media (min-width: 768px) {
    .cv2-card__price {
        font-size: 16px;
    }

    .cv2-card__name {
        font-size: 14px;
    }
}

/* ─────────────────────────────────────────────
   «ПОКАЗАТЬ ЕЩЁ»
   ───────────────────────────────────────────── */

.cv2-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 22px;
}

.cv2-more__btn {
    min-width: 220px;
    justify-content: center;
}

.cv2-more__counter {
    margin: 0;
    font-size: 12.5px;
    color: var(--hv2-text-3);
    font-variant-numeric: tabular-nums;
}

.cv2-more__spin {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid var(--hv2-border-strong);
    border-top-color: var(--hv2-accent);
    border-radius: 50%;
    animation: cv2Spin .7s linear infinite;
}

.cv2-more__btn.is-loading .cv2-more__spin {
    display: inline-block;
}

.cv2-more__btn.is-loading {
    pointer-events: none;
    opacity: .75;
}

@keyframes cv2Spin {
    to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────
   ПУСТОЕ СОСТОЯНИЕ
   ───────────────────────────────────────────── */

.cv2-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 44px 18px;
    text-align: center;
    background: var(--hv2-surface);
    border: 1px solid var(--hv2-border);
    border-radius: var(--hv2-r-lg);
}

.cv2-empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--hv2-surface-3);
    color: var(--hv2-text-3);
    font-size: 21px;
}

.cv2-empty h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--hv2-text);
}

.cv2-empty p {
    margin: 0;
    max-width: 360px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--hv2-text-2);
}

/* ─────────────────────────────────────────────
   ПЛАВАЮЩАЯ КНОПКА «ДОБАВИТЬ ТЕХНИКУ» (мобильный)
   ───────────────────────────────────────────── */

.cv2-fab {
    position: fixed;
    right: var(--hv2-edge);
    bottom: calc(var(--hv2-nav-h) + 14px);
    z-index: 900;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--hv2-accent);
    color: var(--hv2-on-accent);
    font-size: 19px;
    box-shadow: var(--hv2-shadow-accent);
    cursor: pointer;
    transition: transform .16s ease;
}

.cv2-fab:active {
    transform: scale(.92);
}

/* На ПК есть кнопка в шапке каталога — плавающая не нужна. */
@media (min-width: 768px) {
    .cv2-fab {
        display: none;
    }
}

/* Кнопка ИИ-ассистента приходит из общего партиала и по умолчанию встаёт
   в тот же угол, что «Добавить технику» — поднимаем её над ним. */
@media (max-width: 767px) {
    body.strela-page-catalog-v2 .sai-fab {
        bottom: calc(var(--hv2-nav-h) + 78px);
    }
}

/* ─────────────────────────────────────────────
   ШТОРКА ФИЛЬТРОВ
   Наследует .hv2-sheet; на ПК превращаем в центрированный диалог.
   ───────────────────────────────────────────── */

.cv2-field-check {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.cv2-field-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--hv2-accent);
}

.cv2-field-check span {
    font-size: 14px;
    color: var(--hv2-text);
}

/* Кастомный выбор типа техники в шторке «Подобрать технику» */
.cv2-type-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--hv2-border);
    border-radius: var(--hv2-r-sm);
    background: var(--hv2-surface-2);
    font-family: inherit;
    font-size: 15px;
    color: var(--hv2-text);
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.cv2-type-pick:hover,
.cv2-type-pick:focus-visible {
    outline: none;
    background: var(--hv2-surface);
    border-color: rgba(232, 169, 32, .55);
    box-shadow: 0 0 0 3px rgba(232, 169, 32, .13);
}

.cv2-type-pick[aria-expanded="true"] {
    border-color: rgba(232, 169, 32, .55);
}

.cv2-type-pick__ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
    flex: 0 0 auto;
    color: var(--hv2-text);
    font-size: 15px;
}

.cv2-type-pick__ico svg {
    width: 100%;
    height: 100%;
}

.cv2-type-pick__label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.cv2-type-pick__label.is-placeholder {
    color: var(--hv2-text-3);
    font-weight: 400;
}

.cv2-type-pick__caret {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--hv2-text-3);
    transition: transform .18s ease;
}

.cv2-type-pick[aria-expanded="true"] .cv2-type-pick__caret {
    transform: rotate(180deg);
}

.cv2-type-sheet {
    z-index: 4100;
}

.cv2-type-sheet .hv2-sheet-type {
    width: 100%;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
    position: relative;
}

.cv2-type-sheet .hv2-sheet-type.is-selected {
    border-color: var(--hv2-accent);
    background: var(--hv2-surface);
}

.cv2-type-sheet .hv2-sheet-type-check {
    flex: 0 0 auto;
    font-size: 12px;
    color: var(--hv2-accent);
    opacity: 0;
}

.cv2-type-sheet .hv2-sheet-type.is-selected .hv2-sheet-type-check {
    opacity: 1;
}

@media (min-width: 1024px) {
    .cv2-sheet {
        align-items: center;
    }

    .cv2-sheet .hv2-sheet-panel {
        max-width: 520px;
        max-height: 86vh;
        border-radius: var(--hv2-r-xl);
        transform: translateY(18px) scale(.98);
        opacity: 0;
        transition: transform .24s cubic-bezier(.22, .9, .3, 1), opacity .2s ease;
    }

    .cv2-sheet.is-open .hv2-sheet-panel {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════
   МОДАЛКА ПОДРОБНОСТЕЙ 2.0
   Мобильный — bottom sheet почти на весь экран.
   ПК — центрированный диалог.
   ═══════════════════════════════════════════════════════════════ */

.cv2-detail {
    position: fixed;
    inset: 0;
    z-index: 4200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.cv2-detail__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(15, 23, 42, .5);
    opacity: 0;
    transition: opacity .24s ease;
}

.cv2-detail.is-open .cv2-detail__backdrop {
    opacity: 1;
}

.cv2-detail__panel {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: var(--hv2-surface);
    border-radius: var(--hv2-r-xl) var(--hv2-r-xl) 0 0;
    box-shadow: var(--hv2-shadow-lg);
    overflow: hidden;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.22, .9, .3, 1);
}

.cv2-detail.is-open .cv2-detail__panel {
    transform: translateY(0);
}

.cv2-detail__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--hv2-text);
    font-size: 15px;
    box-shadow: var(--hv2-shadow-sm);
    cursor: pointer;
    transition: transform .16s ease;
}

.cv2-detail__close:active {
    transform: scale(.9);
}

.cv2-detail__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(var(--hv2-safe-bottom) + 14px);
}

@media (min-width: 768px) {
    .cv2-detail {
        align-items: center;
    }

    .cv2-detail__panel {
        max-height: 88vh;
        border-radius: var(--hv2-r-xl);
        transform: translateY(22px) scale(.97);
        opacity: 0;
        transition: transform .26s cubic-bezier(.22, .9, .3, 1), opacity .2s ease;
    }

    .cv2-detail.is-open .cv2-detail__panel {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ── Герой модалки: фото или PNG типа ── */

.cv2-dt-hero {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--hv2-surface-3);
    overflow: hidden;
}

.cv2-dt-hero img.cv2-dt-hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cv2-dt-hero__png {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, var(--hv2-surface-2), var(--hv2-surface-3));
}

.cv2-dt-hero__png img {
    width: 56%;
    height: 56%;
    object-fit: contain;
}

.cv2-dt-hero__id {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(15, 23, 42, .28);
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1.2;
    pointer-events: none;
    user-select: none;
}

.cv2-dt-hero__badges {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

@media (min-width: 768px) {
    .cv2-dt-hero {
        aspect-ratio: 2 / 1;
    }
}

/* ── Тело модалки ── */

.cv2-dt-body {
    padding: 16px var(--hv2-edge) 4px;
}

@media (min-width: 768px) {
    .cv2-dt-body {
        padding: 20px 24px 4px;
    }
}

.cv2-dt-price {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--hv2-text);
}

.cv2-dt-title {
    margin: 4px 0 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--hv2-text);
}

.cv2-dt-sub {
    margin: 6px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 12px;
    font-size: 13px;
    color: var(--hv2-text-2);
}

.cv2-dt-sub span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cv2-dt-sub i {
    font-size: 11px;
    color: var(--hv2-text-3);
}

.cv2-dt-sub__type-ico {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: .85;
}

.cv2-dt-section {
    margin-top: 18px;
}

.cv2-dt-section__title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 9px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--hv2-text-3);
}

.cv2-dt-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cv2-dt-tag {
    padding: 6px 11px;
    border-radius: var(--hv2-r-pill);
    background: var(--hv2-surface-3);
    color: var(--hv2-text-2);
    font-size: 12.5px;
    font-weight: 600;
}

.cv2-dt-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

@media (min-width: 560px) {
    .cv2-dt-specs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.cv2-dt-spec {
    padding: 10px 12px;
    border: 1px solid var(--hv2-border);
    border-radius: var(--hv2-r-sm);
    background: var(--hv2-surface-2);
    font-size: 13px;
    font-weight: 600;
    color: var(--hv2-text);
}

.cv2-dt-notes {
    font-size: 14px;
    line-height: 1.55;
    color: var(--hv2-text-2);
    white-space: normal;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}
.cv2-dt-notes strong { font-weight: 800; color: var(--hv2-text); }
.cv2-dt-notes em { font-style: italic; }
.cv2-dt-notes s { opacity: 0.72; }
.cv2-dt-notes code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    padding: 1px 5px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.06);
}
html[data-theme="dark"] .cv2-dt-notes code {
    background: rgba(255, 255, 255, 0.08);
}

/* ── Владелец ── */

.cv2-dt-owner {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--hv2-border);
    border-radius: var(--hv2-r);
    background: var(--hv2-surface-2);
}

.cv2-dt-owner__ava {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--hv2-surface-3);
}

.cv2-dt-owner__info {
    min-width: 0;
    flex: 1;
}

.cv2-dt-owner__name {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--hv2-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cv2-dt-owner__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--hv2-text-2);
}

.cv2-dt-owner__meta i {
    font-size: 11px;
    color: var(--hv2-star);
}

.cv2-dt-owner__vip {
    flex: none;
    padding: 4px 9px;
    border-radius: var(--hv2-r-pill);
    background: var(--hv2-accent);
    color: var(--hv2-on-accent);
    font-size: 10.5px;
    font-weight: 800;
}

/* ── Подвал модалки с действиями ── */

.cv2-dt-foot {
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 8px;
    padding: 12px var(--hv2-edge);
    margin-top: 20px;
    background: var(--hv2-surface);
    border-top: 1px solid var(--hv2-border);
}

@media (min-width: 768px) {
    .cv2-dt-foot {
        padding: 14px 24px;
    }
}

.cv2-dt-foot .hv2-btn {
    flex: 1;
    justify-content: center;
}

.cv2-dt-foot .cv2-dt-icon-btn {
    flex: none;
    width: 44px;
    padding: 0;
}

/* Своё объявление: блок статистики и владельческих действий. */
.cv2-dt-mine {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cv2-dt-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--hv2-border);
    border-radius: var(--hv2-r-sm);
    background: var(--hv2-surface-2);
    font-size: 13px;
    font-weight: 600;
    color: var(--hv2-text-2);
}

.cv2-dt-stat i {
    color: var(--hv2-text-3);
}

/* ── Доступность ── */

@media (prefers-reduced-motion: reduce) {
    .cv2-card,
    .cv2-picker__chip,
    .cv2-detail__panel,
    .cv2-detail__backdrop,
    .cv2-sheet .hv2-sheet-panel {
        transition: none;
    }

    .cv2-more__spin {
        animation: none;
    }
}
