.text-page__content {}

/* =============================================
   AI WIDGET CARD (каталог — главная)
   ============================================= */
.ai-widget-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: calc(100% - 24px);
    min-height: 358px;
    background: #2d0060;
    display: flex;
    align-items: stretch;
}
.ai-widget-card__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}
.ai-widget-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(80,0,160,0.55) 0%, rgba(18,83,250,0.45) 100%);
}
.ai-widget-card__text {
    top: 0;
    left: 0;
    padding: 35px;
    font-size: 32px;
    font-weight: 300;
    line-height: 135%;
    color: #fff;
    z-index: 1;
}
.ai-widget-card__btn {
    left: 20px;
    bottom: 20px;
    width: calc(100% - 40px);
    height: 52px;
    border-radius: 100px;
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
}
.ai-widget-card__btn:hover {
    background: #fff;
    color: #2d0060;
}
@media (max-width: 575px) {
    .ai-widget-card { min-height: 250px; }
    .ai-widget-card__text { font-size: 22px; padding: 20px; }
}

.text-page__title {
    font-family: Unbounded;
    font-size: 32px;
    font-weight: 600;
    line-height: 135%;
    text-transform: uppercase;
}
.text-page__content p { font-size: 16px; line-height: 110%; margin-bottom: 1rem; }
.text-page__content ul { margin-bottom: 1rem; margin-left: 20px; }
.text-page__content ul li { list-style: disc; font-size: 16px; line-height: 110%; margin-bottom: .87rem; }
.text-page__content h2 { margin-bottom: 1rem; font-size: 24px; }

.help-block { color: red; font-size: 14px; }

/* Reinforce mobile nav drawer (keep off-screen when closed) */
@media (max-width: 991px) {
    .header ul:not(.opened) { left: -280px !important; }
}

/* =============================================
   CAR DETAIL PAGE (Frame 14) — v2
   ============================================= */

/* Breadcrumb */
.car-breadcrumb { background:#fff; border-bottom:1px solid #e5e7eb; padding:8px 0; }
.car-breadcrumb__list { display:flex; flex-wrap:wrap; list-style:none; margin:0; padding:0; gap:4px; font-size:13px; color:#666; }
.car-breadcrumb__list li:not(:last-child)::after { content:'/'; margin-left:4px; color:#ccc; }
.car-breadcrumb__list a { color:#1253FA; text-decoration:none; }
.car-breadcrumb__list a:hover { text-decoration:underline; }

/* Hero */
.car-hero { background:#fff; padding:32px 0 20px; }
.car-title {
    font-family: Unbounded, sans-serif;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 600;
    color: #131a1d;
    text-transform: uppercase;
    line-height: 1.35;
    margin-bottom: 16px;
}
.car-meta { display:flex; flex-wrap:wrap; gap:24px; }
.car-meta__item { display:flex; flex-direction:column; }
.car-meta__label { font-size:14px; color:#666; line-height:1.5; }
.car-meta__value { font-size:16px; font-weight:500; color:#131a1d; line-height:1.5; }

/* Main section */
.car-main { background:#f9fafb; padding:40px 0; }

/* Block titles */
.car-block-title {
    font-family: Unbounded, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #131a1d;
    margin-bottom: 20px;
}

/* Gallery */
.car-gallery__main {
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.car-gallery__img {
    width: 100%;
    height: 414px;
    object-fit: cover;
    display: block;
}
.car-gallery__placeholder {
    height: 414px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}
.car-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.1);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2; padding: 0;
    transition: background 0.15s;
}
.car-gallery__nav--prev { left: 16px; }
.car-gallery__nav--next { right: 16px; }
.car-gallery__nav:hover { background: #fff; }
.car-gallery__dots {
    position: absolute;
    bottom: 16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px; align-items: center;
}
.car-gallery__dot {
    width: 8px; height: 8px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.8);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}
.car-gallery__dot.active { width: 32px; background: #1253FA; border-color: #1253FA; }
.car-gallery__thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.car-gallery__thumbs::-webkit-scrollbar {
    height: 6px;
}
.car-gallery__thumbs::-webkit-scrollbar-track {
    background: transparent;
}
.car-gallery__thumbs::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.7);
    border-radius: 999px;
}
.car-gallery__thumb {
    width: 80px; height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.65;
    transition: all 0.2s;
}
.car-gallery__thumb.active,
.car-gallery__thumb:hover { border-color: #1253FA; opacity: 1; }

/* Specs */
.car-specs { background: #fff; border-radius: 8px; padding: 24px; }
.car-specs__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.car-spec-item { display: flex; align-items: center; gap: 12px; }
.car-spec-item__label { font-size: 14px; color: #666; line-height: 1.4; }
.car-spec-item__value { font-size: 16px; font-weight: 500; color: #131a1d; line-height: 1.4; }

/* About */
.car-about { background: #fff; border-radius: 8px; padding: 24px; }
.car-about__text { font-size: 14px; line-height: 1.7; color: #444; }

/* Configurator */
.car-config {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}
.car-config__section { margin-bottom: 20px; }
.car-config__section--border {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.car-config__label {
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 10px;
    display: block;
}

/* Trims grid */
.car-trims-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.car-trim-btn {
    padding: 9px 6px;
    font-size: 13px;
    font-weight: 500;
    color: #0a0a0a;
    background: #fff;
    border: 2px solid #d1d5dc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: Montserrat, sans-serif;
    text-align: center;
    line-height: 1.3;
}
.car-trim-btn:hover { border-color: #1253FA; color: #1253FA; }
.car-trim-btn.active { background: #111; border-color: #111; color: #fff; }

/* Colors */
.car-colors { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 6px; }
.car-color-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid #d1d5dc;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 8px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    padding: 0;
    flex-shrink: 0;
}
.car-color-btn:hover { transform: scale(1.08); }
.car-color-btn.active {
    border-color: #111;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
}
.car-config__color-name { font-size: 13px; color: #555; min-height: 20px; }
.car-config__color-name b { font-weight: 600; }

/* Radio */
.car-radio {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 8px;
    font-family: Montserrat, sans-serif;
}
.car-radio:last-child { margin-bottom: 0; }
.car-radio input[type=radio] { margin-right: 8px; cursor: pointer; accent-color: #1253FA; flex-shrink: 0; }
.car-radio__text { flex: 1; color: #0a0a0a; }
.car-radio__price { font-weight: 600; color: #0a0a0a; white-space: nowrap; margin-left: 8px; }

/* Price block */
.car-config__price-block { border-top: 1px solid #e5e7eb; padding-top: 16px; }
.car-config__price-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.car-badge-order {
    background: #1253FA;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 8px;
    white-space: nowrap;
}
.car-config__price-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; margin-bottom: 6px;
}
.car-config__price-label { color: #4a5565; }
.car-config__price-val { font-weight: 600; color: #0a0a0a; }
.car-config__total {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #e5e7eb;
    padding-top: 12px; margin-top: 8px;
    font-size: 14px; font-weight: 600; color: #0a0a0a;
}
.car-config__total-price {
    font-family: Unbounded, sans-serif;
    font-size: clamp(20px, 2vw, 24px);
    font-weight: 700;
    color: #0a0a0a;
}

/* Action buttons */
.car-config__actions { display: flex; gap: 12px; margin-top: 16px; }
.btn-car-order {
    flex: 1;
    height: 52px;
    border: 1px solid #1253FA;
    border-radius: 100px;
    background: transparent;
    color: #1253FA;
    font-size: 16px;
    font-weight: 500;
    font-family: Montserrat, sans-serif;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-car-order:hover { background: #1253FA; color: #fff; }
.btn-car-icon {
    width: 52px; height: 52px;
    border: 1px solid #1253FA;
    border-radius: 8px;
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0; padding: 0;
}
.btn-car-icon:hover, .btn-car-icon.active { background: #EEF3FF; }

/* Description section */
.car-description { background: #fff; padding: 60px 0; }
.car-description__title {
    font-family: Unbounded, sans-serif;
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 500;
    color: #131a1d;
    text-align: center;
    margin-bottom: 48px;
}
.car-feature { background: #fff; border-radius: 15px; padding: 32px 36px; margin-bottom: 20px; }
.car-feature__heading {
    font-family: Montserrat, sans-serif;
    font-size: 24px; font-weight: 600;
    color: #333; line-height: 1.2;
    margin-bottom: 16px;
}
.car-feature__desc { font-size: 14px; line-height: 1.6; color: #444; }
.car-feature__img { height: 300px; object-fit: cover; border-radius: 8px; }

/* Similar cars */
.car-similar { background: #f9fafb; padding: 60px 0; }
.car-similar__title {
    font-family: Unbounded, sans-serif;
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 600;
    color: #131a1d;
    margin-bottom: 32px;
}
.car-similar .item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s;
}
.car-similar .item:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .car-config { position: static !important; }
    .car-gallery__img { height: 320px; }
    .car-gallery__placeholder { height: 320px; }
}
@media (max-width: 767px) {
    .car-hero { padding: 24px 0 16px; }
    .car-gallery__img { height: 260px; }
    .car-gallery__placeholder { height: 260px; }
    .car-feature { padding: 20px; }
    .car-feature__img { height: 200px; }
    .car-title { font-size: 20px; }
    .car-config__total-price { font-size: 20px; }
    .car-description { padding: 40px 0; }
    .car-similar { padding: 40px 0; }
}
@media (max-width: 575px) {
    .car-gallery__img { height: 220px; }
    .car-gallery__placeholder { height: 220px; }
    .car-gallery__thumb { width: 60px; height: 45px; }
    .car-specs__grid { grid-template-columns: repeat(2, 1fr); }
    .car-feature { padding: 16px; }
    .car-feature__heading { font-size: 18px; }
    .btn-car-order { font-size: 14px; }
    .car-config__total-price { font-size: 18px; }
    .car-trims-grid { grid-template-columns: 1fr 1fr; }
    .car-description__title { font-size: 20px; }
}



/* Full technical specs (tabs) */
.car-full-specs {
   margin: 60px 0;
   position: relative;
}
.car-full-specs-wrapper {
    box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.08);
background: #fff;
border-left: 4px solid #1253fa;
border-radius: 15px;
padding: 40px 40px 40px 44px;
}
.car-full-specs__title {
    font-family: Unbounded, sans-serif;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 600;
    color: #131a1d;
    margin-bottom: 24px;
}
.car-full-specs__inner {
    /*position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 32px 32px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);*/
    overflow: hidden;
}/*
.car-full-specs__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding-left: 2px;
    background: linear-gradient(180deg, #2c6bff 0%, #5ca7ff 100%);
    opacity: 0.9;
    z-index: -1;
}
.car-full-specs__inner::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: #ffffff;
}*/
.car-full-specs__tabs {
    position: relative;
    z-index: 1;
    display: flex;
    /*flex-wrap: wrap;*/
    gap: 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
    overflow-x: auto;
}
.car-full-specs__tab-btn {
    position: relative;
    border: none;
    background: transparent;
    padding: 8px 0 14px;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
}
.car-full-specs__tab-btn::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #1253fa;
    transition: width 0.18s ease-out;
}
.car-full-specs__tab-btn.is-active {
    color: #111827;
}
.car-full-specs__tab-btn.is-active::after {
    width: 100%;
}
.car-full-specs__panels {
    position: relative;
    z-index: 1;
}
.car-full-specs__panel {
    display: none;
}
.car-full-specs__panel.is-active {
    display: block;
}
.car-full-specs__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.car-full-specs__table tr:nth-child(odd) {
    background-color: #f9fafb;
}
.car-full-specs__table tr:nth-child(even) {
    background-color: #ffffff;
}
.car-full-specs__cell {
    padding: 10px 16px;
}
.car-full-specs__cell--label {
    width: 55%;
    color: #6b7280;
}
.car-full-specs__cell--value {
    font-weight: 500;
    color: #111827;
    text-align: right;
}

/* CarMatch: не перекрывает блок «Перезвоните мне» на мобильных */
@media (max-width: 767px) {
    #cm-trigger {
        bottom: 120px !important;
    }

    #cm-panel {
        bottom: 248px !important;
    }
}

@media (max-width: 480px) {
    #cm-panel {
        bottom: 0 !important;
    }
}

