.footer{margin-top:0}.footer-inner{padding:40px}.footer-columns{flex-direction:column;height:auto;gap:40px}.footer-column{padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.footer-column-center{flex:none;padding:0;justify-content:center;gap:70px;flex-direction:row}.footer-column-right{padding:0;text-align:left}.footer-logo{width:143px;height:74px;margin:5px auto 0}.footer-slogan{margin-top:0;font-size:12px;padding:0}.footer-nav-block{gap:8px}.footer-icons{justify-content:center;margin:20px 0}.footer-legal-text,.footer-copyright-text{font-size:12px;text-align:center}.footer-column-center{border-left:none!important;border-right:none!important}0%{transform:translateX(0%)}100%{transform:translateX(100%)}.footer-icons{margin:0!important;padding:0!important}.footer-contact-item{width:100%;box-sizing:border-box;padding-left:30px;padding-right:16px;justify-content:flex-start;align-items:center;text-align:left}.footer-contact-item span{display:block;word-break:break-word}.footer-contact-icon{margin-top:0;flex-shrink:0}.content-wrapper{padding-left:0!important;padding-right:0!important}.footer-column .footer-contact-item:first-of-type{margin-bottom:0}.footer-column .footer-contact-item:last-of-type{margin-bottom:0!important;padding-bottom:0!important}.content-wrapper{padding:0 12px;width:100%}.topbar{display:none}.content-blocks{flex-direction:column;gap:12px}.content-right{display:none;order:-1;width:100%}.filter-under-block{width:100%;margin:0;padding:0;background:transparent!important}.filter-under-block{border-radius:0!important;gap:10px!important}.topbar{display:none!important}.map-container{display:block!important}.topbar{padding:20px 0;flex-direction:column;gap:20px}.topbar-center{order:-1;justify-content:center}.nav{flex-wrap:wrap;justify-content:center}.content-blocks{flex-direction:column;gap:12px}.content-right{width:100%;order:-1}.purchase_info_box{position:static;margin-top:0}.che168-pagination{padding:25px 0 28px 0!important;gap:8px}.filter_box{padding:16px}.telegram-block{display:block}.topbar{display:none}.content-right{display:none}.footer{margin-top:0}.footer-inner{padding:40px}.footer-columns{flex-direction:column;height:auto;gap:40px}.footer-column{padding:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.footer-column-center{flex:none;padding:0;justify-content:center;gap:70px;flex-direction:row}.footer-column-right{padding:0;text-align:left}.footer-column-left{padding:0}.footer-logo{width:143px;height:74px;margin:5px auto 0}.footer-slogan{margin-top:0;font-size:12px;padding:0}.footer-nav-block{gap:8px}.footer-icons{justify-content:center;margin:20px 0}.footer-legal-text{font-size:12px;text-align:center;line-height:1.8}.footer-copyright-text{font-size:12px;text-align:center}.footer-nav-title{font-size:16px}.footer-nav-link{font-weight:400}.footer-spacer{display:none}.footer-map-mobile{display:block}.footer-contact-item{font-size:13px;gap:10px;margin-bottom:12px;text-align:left;width:100%;padding-left:45px}.footer-contact-icon{width:12px;height:auto}.map-container{display:block}.pc-only{display:none}.footer-column-left,.footer-column-center{border-right:none}.footer-column-center{border-left:none}.footer-logo{margin:0;border:none}.map-container{display:block}.footer-contact-item{font-size:13px;gap:10px;text-align:left;width:100%;padding-left:45px}.footer-contact-item{margin-bottom:0}.phone-contact{margin-bottom:16px}.phone-contact span{margin-bottom:2px}.footer-icons{margin:0}.footer-legal-block{padding-top:40px}.footer-copyright-text{font-size:10px;margin-top:32px}.footer-legal-block{padding-left:40px;padding-right:40px}.mobile-br{display:block}.first-br{margin-bottom:4px}.filter_box{padding:12px;border-radius:12px;gap:10px;margin:0 0 12px 0}.filter_box .row{flex-direction:column;gap:8px;width:100%}.filter_box .dropdown,.filter_box .range-dd{max-width:100%;width:100%}.filter_box .dd-head,.filter_box .range-head{height:44px;padding:0 14px;font-size:14px;border-radius:10px}.filter_box .dd-input{font-size:14px}.filter_box .dd-input::placeholder{font-size:14px}.filter_box .dd-panel,.filter_box .range-panel{border-radius:0 0 10px 10px;z-index:100}.filter_box .range-panel.panel-from{right:0;border-radius:0 0 10px 10px}.filter_box .range-panel.panel-to{left:0;border-radius:0 0 10px 10px}.filter_box .dd-inner{max-height:280px}.filter_box .dd-row{height:44px;font-size:14px;padding:0 14px}.filter_box .col-split{flex-direction:row;max-width:100%;width:100%;gap:8px}.filter_box .col-split .dropdown{flex:1;max-width:calc(50% - 4px)}.filter_box .slot-from{padding-right:10px}.filter_box .slot-to{padding-left:10px}.filter_box .slot-text{font-size:14px}.filter_box .btn-show{flex:1;min-width:0;width:100%;height:48px;font-size:15px;font-weight:600;border-radius:10px;margin-left:0}.filter_box .dd-row{justify-content:space-between}.filter_box .dd-row-text{flex:1}.filter_box .dd-row-count{color:#666666;font-size:13px;margin-left:8px}.filter_box .dd-row:first-child .dd-row-count{color:#FFB900}.filter_box .dropdown.disabled{opacity:0.5}.filter_box .dropdown.disabled .dd-head{cursor:not-allowed;background:#F0F0F0}[data-theme="dark"] .filter_box .dropdown.disabled .dd-head{background:#E5E5E5}.filter_box .dd-row.dd-disabled{color:#999999;font-style:italic;cursor:not-allowed}.filter_box .btn-show:disabled{opacity:0.5;cursor:not-allowed}.filter_box .btn-show.loading{opacity:0.7}.filter_box .row.row-actions{flex-direction:row!important;align-items:center;gap:12px;margin-top:4px}.filter_box .filter-checkbox{margin:0;padding:0;padding-left:0;flex-shrink:0}.filter_box .filter-checkbox .checkbox-text{font-size:13px}.filter_box .checkbox-box{width:22px;height:22px}.filter_box .chev{width:12px;height:7px}.filter_box .divider{height:24px}[data-theme="dark"] .filter_box{background:#242F3D}[data-theme="dark"] .filter_box .dd-head,[data-theme="dark"] .filter_box .range-head{background:#FFFFFF;color:#030303}[data-theme="dark"] .filter_box .dd-input{color:#030303}[data-theme="dark"] .filter_box .dd-input::placeholder{color:#666666}[data-theme="dark"] .filter_box .slot-text{color:#030303}.px-4{padding-left:0!important;padding-right:0!important}

/* ===== Extracted from _mobile_base.html <style> block 1: Critical CSS ===== */
:root{--bg-primary:#17212B;--bg-secondary:#17212b;--text-primary:#FFF;--text-secondary:#E0E0E0;--border-color:#404040;--telegram-bg:#31343E;--telegram-text:#FFF;--card-shadow:0 2px 8px rgba(0,0,0,.3);--color-primary:#FFB900;--color-primary-hover:#E6A700;--color-primary-light:rgba(255,185,0,.4);--color-primary-border:#CCA849;--color-primary-text:#B18100;--color-text:#FFF;--color-text-secondary:#D1D5DB;--color-bg:#17212B;--color-bg-light:rgba(23,33,43,.5);--color-bg-overlay:rgba(23,33,43,.95);--color-border-gray:rgba(255,255,255,.1);--color-primary-light:rgba(255,185,0,.15);--font-family:Arial,sans-serif;--font-size-xs:9px;--font-size-sm:12px;--font-size-base:13px;--font-size-md:14px;--font-size-lg:18px;--font-size-xl:20px;--font-weight-medium:500;--font-weight-bold:700;--radius-xs:8px;--radius-sm:11.25px;--radius-xl:32px;--shadow-md:0 2px 10px rgba(0,0,0,.15);--transition-fast:.2s ease;--transition-base:.3s ease}
*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:rgba(255,255,255,.1)}
html{line-height:1.5;-webkit-text-size-adjust:100%;scrollbar-width:none;-ms-overflow-style:none;color-scheme:dark}
html::-webkit-scrollbar{display:none}
body{margin:0;font-family:var(--font-family);background-color:transparent;color:var(--text-primary)}
html{background-color:#17212B}
img,svg,video,canvas{display:block;vertical-align:middle}
img,video{max-width:100%;height:auto}
a{color:inherit;text-decoration:inherit}
button,input,select,textarea{font-family:inherit;font-size:100%;color:inherit;margin:0;padding:0}
h1,h2,h3,h4,h5,h6,hr,figure,p,pre,ol,ul,menu{margin:0;padding:0;list-style:none}
dialog{padding:0}
[hidden]{display:none}
/* === Critical layout (burger.css inlined) === */
html,body{height:100%;height:100dvh;width:100%;margin:0;overflow:hidden}
body{background:#010d18}
#main-content{position:relative;width:100%;height:100%;height:100dvh;background:#17212B;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;z-index:20;pointer-events:auto;transition:transform .35s cubic-bezier(.4,0,.2,1),border-radius .35s ease}
#site-header{pointer-events:auto;background:#232E3C}
.logo-light{display:none}.logo-dark{display:block}
/* Hamburger button */
.hamburger{width:22px;height:18px;position:relative;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;background:transparent;border:none;outline:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.hamburger span{display:block;height:2px;width:100%;background:#fff;border-radius:2px;transition:none;transform-origin:center}
.hamburger.is-active span:nth-child(1){transform:translateY(8px) rotate(45deg)}
.hamburger.is-active span:nth-child(2){opacity:0;transform:scaleX(0)}
.hamburger.is-active span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
#main-content.menu-shifted{transform:translateX(80vw) scale(.9);border-radius:20px;overflow:hidden;opacity:.5}
#main-content.locked{overflow:hidden!important;pointer-events:none}
#sidebar-menu{position:fixed;top:0;left:0;width:80%;height:100%;padding-left:0;z-index:10;pointer-events:none;opacity:0;transform:translateX(-20px);transition:opacity .3s ease,transform .3s ease}
#sidebar-menu.menu-visible{opacity:1;transform:translateX(0);pointer-events:auto}
/* Prevent layout shifts from icon placeholders */
[data-lucide] {
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
}

/* ===== Extracted from _mobile_base.html <style> block 2: Theme, overrides, components ===== */
/* === Dark theme — always on === */
:root, html, body {
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
    img, video, picture, svg, canvas { filter: none !important; }
}

/* Tailwind overrides */
.font-bold { font-weight: 500 !important; }

/* No scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Custom easing */
.ease-custom { transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1); }
.no-select { user-select: none; -webkit-user-select: none; }

/* Orb animation */
@keyframes floatOrb {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 50px); }
}
.animate-float { animation: floatOrb 10s infinite alternate ease-in-out; }
.animate-float-delayed { animation: floatOrb 12s infinite alternate ease-in-out reverse; }

/* ===== BODY ===== */
html.dark body {
    background: #010d18;
}

/* ===== Extracted inline styles: body ===== */
.mobile-body {
    color: #fff;
    background-color: #010d18;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Extracted inline styles: contact modal ===== */
.contact-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    display: none;
    transition: all 0.3s;
}

.contact-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-card {
    width: 100%;
    max-width: 28rem;
    background: #17212B;
    backdrop-filter: blur(24px);
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    padding: 24px;
    transition: transform 0.3s;
    transform: translateY(100%);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-handle {
    width: 48px;
    height: 6px;
    background: #374151;
    border-radius: 9999px;
    margin: 0 auto 24px;
    flex-shrink: 0;
}

.contact-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}

.contact-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: #fff;
    margin: 0;
}

.contact-title-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: #eab308;
}

.contact-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.contact-close-icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}

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

.contact-operator-info {
    text-align: center;
    margin-bottom: 16px;
}

.contact-operator-name {
    font-weight: 700;
    color: #fff;
    font-size: 18px;
}

.contact-operator-role {
    font-size: 14px;
    color: #6b7280;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.contact-link-telegram {
    background: rgba(0, 136, 204, 0.1);
}

.contact-link-whatsapp {
    background: rgba(37, 211, 102, 0.1);
}

.contact-link-phone {
    background: rgba(255, 255, 255, 0.05);
}

.contact-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon-circle-telegram {
    background: #0088cc;
}

.contact-icon-circle-whatsapp {
    background: #25D366;
}

.contact-icon-circle-phone {
    background: #475569;
}

.contact-icon-svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.contact-label-main {
    font-weight: 700;
    color: #fff;
}

.contact-label-sub {
    font-size: 14px;
    color: #6b7280;
}

.contact-arrow-icon {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    margin-left: auto;
}

.contact-unavailable {
    text-align: center;
    padding: 24px 0;
    color: #9ca3af;
}

/* =============================================
   INDEX MOBILE — inline styles extracted
   ============================================= */
.midx-page-wrap {
    padding: 0 10px;
}
.midx-bc-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 12px;
    color: #9ca3af;
    padding: 8px 0 4px;
}
.midx-bc-link {
    color: #9ca3af;
    text-decoration: none;
}
.midx-bc-sep {
    color: #9ca3af;
    opacity: .5;
}
.midx-h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    padding-left: 5px;
    padding-bottom: 10px;
}
.midx-h1-faq {
    padding-left: 15px;
}
.midx-empty {
    text-align: center;
    padding: 48px 0;
}
.midx-empty-icon {
    width: 64px;
    height: 64px;
    color: #4b5563;
    margin: 0 auto 16px;
    display: block;
}
.midx-empty-text {
    color: #6b7280;
}

/* =============================================
   CAR MOBILE — inline styles extracted
   ============================================= */
.mcar-page-wrap {
    padding-left: 10px;
    padding-right: 10px;
}
.mcar-bc-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px 8px;
    font-size: 12px;
    color: #fff;
    padding: 12px 0px 0px 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mcar-bc-nav::-webkit-scrollbar { display: none; }
.mcar-bc-link {
    color: #5B9BD5;
    text-decoration: none;
    flex-shrink: 0;
    white-space: nowrap;
}
.mcar-bc-link:hover {
    text-decoration: underline;
}
.mcar-bc-sep {
    color: #9ca3af;
    opacity: .5;
    flex-shrink: 0;
}
.mcar-bc-current {
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
}
.mcar-pubdate-wrap {
    padding-top: 12px;
    padding-bottom: 4px;
    padding-left: 15px;
    padding-right: 15px;
}
.mcar-pubdate {
    font-size: 12px;
    color: #fff;
    font-weight: 400;
    letter-spacing: 0.025em;
}
.mcar-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    padding-left: 5px;
    padding-bottom: 10px;
}
.mcar-spec-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-left: 15px;
    padding-right: 15px;
}
.mcar-spec-label {
    font-size: 13px;
    color: #6b7280;
}
.mcar-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 8px;
}
.mcar-price-value {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
}
.mcar-price-gap {
    display: inline-block;
    width: 8px;
}
.mcar-price-gap-sm {
    display: inline-block;
    width: 3px;
}
.mcar-price-city {
    font-size: 12px;
    color: #6b7280;
}
.mcar-buy-wrap {
    margin-bottom: 10px;
}
.mcar-buy-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.mcar-specs-wrap {
    margin-bottom: 10px;
    font-size: 14px;
}
.mcar-content-wrap {
}

.mcar-info-block {
    padding-left: 15px;
    padding-right: 15px;
}

/* Manager Modal */
.mcar-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0s 0.3s;
}
.mcar-modal-overlay.active {
    pointer-events: auto;
    visibility: visible;
    transition: visibility 0s 0s;
}
.mcar-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}
.mcar-modal-overlay.active .mcar-modal-backdrop {
    opacity: 1;
}
.mgr54-modal {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 28rem;
    background: #17212B;
    border-radius: 12px 12px 0 0;
    box-sizing: border-box;
    color: #fff;
    transform: translateY(100%);
    display: flex;
    flex-direction: column;
    padding: 0 20px 24px;
}
.mgr54-swipe {
    flex-shrink: 0;
    touch-action: none;
}
.mgr54-handle-bar {
    width: 52px;
    height: 7px;
    background: #7F7F7F;
    border-radius: 9999px;
    margin: 16px auto;
}
.mgr54-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mgr54-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.mgr54-close {
    width: 24px;
    height: 24px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    border: none;
    cursor: pointer;
}
.mgr54-close svg { width: 24px; height: 24px; }
.mgr54-name { font-size: 20px; font-weight: 700; color: #ffffff; margin-bottom: 2px; }
.mgr54-role { font-size: 13px; color: #8b9cb0; margin-bottom: 16px; }
.mgr54-buttons { display: flex; flex-direction: column; gap: 8px; }
.mgr54-btn {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s, transform 0.15s;
}
.mgr54-btn:active { transform: scale(0.98); }
.mgr54-btn--phone {
    background: #283341;
    box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08);
}
.mgr54-btn--wa {
    background: #283341;
    box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08);
}
.mgr54-btn--tg {
    background: #283341;
    box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08);
}
.mgr54-btn--faq {
    background: #283341;
    box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08);
    text-decoration: none;
}
.mgr54-btn-title { font-size: 14px; font-weight: 500; color: #fff; }
.mgr54-btn-sub { font-size: 12px; color: #8b9cb0; margin-top: 1px; }
.mgr54-qr-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
}
.mgr54-qr-card {
    flex-shrink: 0;
    background: rgba(255,255,255,0.08);
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}
.mgr54-qr-img { display: block; border-radius: 4px; width: 100px; height: 100px; }
.mgr54-qr-hint { font-size: 13px; color: #8b9cb0; line-height: 1.4; }
.mgr54-unavailable { text-align: center; padding: 40px 0; color: #8b9cb0; font-size: 14px; }
.mcar-modal-handle {
    width: 48px;
    height: 6px;
    background: #374151;
    border-radius: 9999px;
    margin: 0 auto 24px;
    flex-shrink: 0;
}
.mcar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-shrink: 0;
}
.mcar-modal-title {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: #fff;
}
.mcar-modal-title-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    color: #eab308;
}
.mcar-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    border: none;
    cursor: pointer;
}
.mcar-modal-close-icon {
    width: 16px;
    height: 16px;
    color: #9ca3af;
}
.mcar-modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mcar-modal-op-name {
    font-weight: 700;
    color: #fff;
    font-size: 18px;
}
.mcar-modal-op-role {
    font-size: 14px;
    color: #6b7280;
}
.mcar-modal-op-center {
    text-align: center;
    margin-bottom: 16px;
}
.mcar-modal-unavailable {
    text-align: center;
    padding: 24px 0;
    color: #9ca3af;
}
.mcar-contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    transition: background 0.15s;
    text-decoration: none;
}
.mcar-contact-link-tg {
    background: rgba(0,136,204,0.1);
}
.mcar-contact-link-wa {
    background: rgba(37,211,102,0.1);
}
.mcar-contact-link-phone {
    background: rgba(255,255,255,0.05);
}
.mcar-contact-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.mcar-contact-icon-wrap-tg {
    background: #0088cc;
}
.mcar-contact-icon-wrap-wa {
    background: #25D366;
}
.mcar-contact-icon-wrap-phone {
    background: #475569;
}
.mcar-contact-icon {
    width: 24px;
    height: 24px;
    color: #fff;
}
.mcar-contact-name {
    font-weight: 700;
    color: #fff;
}
.mcar-contact-detail {
    font-size: 14px;
    color: #6b7280;
}
.mcar-contact-arrow {
    width: 20px;
    height: 20px;
    color: #9ca3af;
    margin-left: auto;
}

/* Price Modal (mobile) */
.mcar-price-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.mcar-price-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
}
.mcar-price-modal-sheet {
    position: relative;
    background: #f8f9fa;
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.32,.72,0,1);
}
.mcar-price-modal-handle-wrap {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px;
}
.mcar-price-modal-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: #d1d5db;
}
.mcar-price-modal-header {
    padding: 8px 20px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.mcar-price-modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.mcar-price-modal-title-icon {
    width: 22px;
    height: 22px;
    color: #2563eb;
}
.mcar-price-modal-subtitle {
    font-size: 11px;
    color: #64748b;
    margin: 3px 0 0;
}
.mcar-price-modal-close {
    padding: 8px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mcar-price-modal-close-icon {
    width: 20px;
    height: 20px;
}
.mcar-price-modal-body {
    overflow-y: auto;
    padding: 16px 16px 20px;
    background: #f8f9fa;
    -webkit-overflow-scrolling: touch;
}
.mcar-price-info-box {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.mcar-price-info-icon {
    width: 18px;
    height: 18px;
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 2px;
}
.mcar-price-info-text {
    font-size: 13px;
    color: #1e40af;
    line-height: 1.5;
    margin: 0;
}
.mcar-price-section {
    margin-bottom: 20px;
}
.mcar-price-section:last-child {
    margin-bottom: 0;
}
.mcar-price-section-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 10px;
}
.mcar-price-section-badge-1 {
    background: #fef2f2;
    color: #b91c1c;
}
.mcar-price-section-badge-2 {
    background: #fffbeb;
    color: #b45309;
}
.mcar-price-section-badge-3 {
    background: #ecfdf5;
    color: #047857;
}
.mcar-price-section-card {
    background: #fff;
    border-radius: 8px;
    padding: 0 8px;
}
.mcar-price-row {
    display: flex;
    flex-direction: column;
    padding: 10px 8px;
}
.mcar-price-row-bordered {
    border-bottom: 1px dashed #e5e7eb;
}
.mcar-price-row-name {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
}
.mcar-price-row-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 1px;
}
.mcar-price-row-value {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    margin-top: 4px;
}
.mcar-price-modal-footer {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 16px 20px 28px;
}
.mcar-price-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
}
.mcar-price-total-label {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.mcar-price-total-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}
.mcar-price-close-btn {
    width: 100%;
    margin-top: 14px;
    padding: 13px;
    background: #172554;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* =============================================
   CITY MOBILE — inline styles extracted
   ============================================= */
.mcity-page-wrap {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 24px;
}
.mcity-empty {
    text-align: center;
    padding: 48px 0;
}
.mcity-empty-icon {
    width: 64px;
    height: 64px;
    color: #4b5563;
    margin: 0 auto 16px;
    display: block;
}
.mcity-empty-text {
    color: #6b7280;
}
.mcity-delivery {
    background: #2B3643;
    border-radius: 8px;
    overflow: hidden;
    margin: 0 15px;
}
.mcity-delivery-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    padding: 20px;
    margin: 0;
}
.mcity-delivery-cols {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #242F3D;
}
.mcity-delivery-col {
    flex: 1;
}
.mcity-delivery-label {
    font-size: 13px;
    color: #7f91a4;
}
.mcity-delivery-value {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
    margin-top: 4px;
}
.mcity-delivery-note {
    font-size: 13px;
    color: #7f91a4;
    padding: 12px 20px;
    background: #242F3D;
    line-height: 1.3;
}

/* =============================================
   CITY MOBILE — <style> block extracted from city_mobile.html
   ============================================= */
.fs-cell {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}
.fs-cell:active {
    opacity: 1 !important;
    transform: none !important;
}
.fs-disabled span {
    color: #3f4852 !important;
}
.city-bc-mobile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 12px;
    color: #fff;
    padding: 12px 0px 0px 5px;
}
.city-bc-mobile a { color: #5B9BD5; text-decoration: none; }
.city-bc-mobile a:hover { text-decoration: underline; }
.city-bc-mobile .bc-link { color: #5B9BD5; cursor: pointer; }
.city-bc-mobile .bc-sep { opacity: 0.5; }
.city-bc-mobile .bc-current { color: #fff; font-weight: 500; }
.city-header-mobile h1 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}
.city-header-mobile .city-count {
    font-size: 13px;
    color: #fff;
    margin: 0 0 10px;
}

/* =============================================
   IN_STOCK MOBILE — inline styles extracted
   ============================================= */
.mistk-page-wrap {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 24px;
}
.mistk-empty {
    text-align: center;
    padding: 48px 0;
}
.mistk-empty-icon {
    width: 64px;
    height: 64px;
    color: #4b5563;
    margin: 0 auto 16px;
    display: block;
}
.mistk-empty-text {
    color: #6b7280;
}

/* =============================================
   COMPARE MOBILE — inline styles extracted
   ============================================= */
.mcmp-hidden { display: none; }
.mcmp-skel-60 { width: 60%; }
.mcmp-skel-85 { width: 85%; }
.mcmp-skel-45 { width: 45%; }
.mcmp-skel-75 { width: 75%; }
.mcmp-skel-55 { width: 55%; }
.mcmp-skel-90 { width: 90%; }
.mcmp-skel-40 { width: 40%; }
.mcmp-skel-70 { width: 70%; }

/* =============================================
   FILTER MOBILE — conditional color classes
   ============================================= */
.mflt-color-active { color: #fff; }
.mflt-color-inactive { color: #BBC4D1; }
.mflt-opacity-dim { opacity: 0.5; }
/* =============================================
   MOBILE FOOTER — simplified from desktop v8
   ============================================= */
.mf-footer { background: #242F3D; padding: 32px 20px 20px; margin-top: 0; }
.mf-inner { text-align: center; }
.mf-logo { font-weight: 800; font-size: 22px; color: #fff; letter-spacing: 1px; text-decoration: none; display: block; }
.mf-accent { color: #FFB900; }
.mf-desc { color: #b0bec5; font-size: 13px; margin-top: 8px; line-height: 1.6; max-width: 320px; margin-left: auto; margin-right: auto; }
.mf-address { color: #b0bec5; font-size: 12px; margin-top: 6px; line-height: 1.5; }
.mf-btns { margin-top: 20px; display: flex; gap: 10px; justify-content: center; }
.mf-phone { padding: 10px 24px; border-radius: 8px; background: rgba(255,185,0,.15); color: #FFB900; font-weight: 600; font-size: 13px; text-decoration: none; transition: background .15s; }
.mf-phone:hover { background: rgba(255,185,0,.25); }
.mf-write { padding: 10px 24px; border-radius: 8px; background: rgba(255,255,255,.06); color: #b0bec5; font-weight: 600; font-size: 13px; cursor: pointer; border: none; font-family: inherit; transition: background .15s; }
.mf-write:hover { background: rgba(255,255,255,.1); }
.mf-divider { height: 1px; background: rgba(255,255,255,.06); margin: 24px 0 16px; }
.mf-bottom { display:flex; justify-content:space-between; align-items:center; }
.mf-legal { color: #64748b; font-size: 11px; line-height: 1.5; margin: 0; }
.mf-legal a { color: #FFB900; text-decoration: none; }
.mf-copy { color: #64748b; font-size: 11px; margin: 0; }
.mf-copy-link { color: #64748b; font-size: 11px; text-decoration: none; }
.mf-copy-link:hover { text-decoration: underline; }
.mf-disclaimer{color:#64748b;font-size:11px;line-height:1.6;margin:10px 0 0;text-align:left}

/* Skip-link */
.skip-link{position:absolute;top:-100%;left:50%;transform:translateX(-50%);background:#FFB900;color:#000;padding:8px 24px;border-radius:0 0 8px 8px;font-weight:700;font-size:14px;z-index:9999;text-decoration:none;transition:top .2s}
.skip-link:focus{top:0}
/* ============================================
   MOBILE FOOTER STYLES
   Стили для мобильного футера
   Все правила под footer для высокой специфичности,
   чтобы перебить десктопные из styles.css
   ============================================ */

footer {
  width: 100%;
  background: #242F3D;
  border-top: none;
  border-radius: 12px 12px 0 0;
  padding: var(--spacing-4xl) var(--spacing-xl) var(--spacing-xl);
  margin-top: 30px;
  /* Reset desktop .footer props that might leak */
  padding-bottom: calc(var(--spacing-xl) + env(safe-area-inset-bottom, 0px));
}

/* === Logo Section === */
footer .footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--spacing-3xl);
  width: auto;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

footer .footer-logo svg {
  width: var(--footer-logo-width);
  height: auto;
  margin-bottom: 5px;
}

footer .footer-subtitle {
  font-family: var(--font-family);
  font-style: normal;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-15);
  line-height: var(--line-height-20);
  color: var(--color-text);
}

/* === Navigation Columns === */
footer .footer-columns {
  display: grid;
  grid-template-columns: auto auto;
  gap: var(--footer-column-gap);
  margin-bottom: var(--spacing-3xl);
  justify-content: center;
  padding: 0;
  height: auto;
  border: none;
  border-left: none;
  border-right: none;
  flex-direction: unset;
}

footer .footer-column {
  padding: 0;
  flex: none;
}

footer .footer-column h3 {
  font-weight: 400;
  font-size: 14px;
  line-height: var(--line-height-20);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--spacing-md);
  margin-top: 0;
  text-align: left;
}

footer .footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

footer .footer-column li {
  font-weight: 400;
  font-size: 14px;
  line-height: var(--line-height-20);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 15px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

footer .footer-column li:last-child {
  margin-bottom: 0;
}

footer .footer-column li:hover {
  color: var(--color-primary);
}

footer .footer-column li a {
  color: inherit;
  text-decoration: none;
}

/* === Map Section === */
footer .footer-map {
  background: var(--color-bg-light);
  border: var(--footer-border-width) solid var(--color-border-white);
  border-bottom: none;
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  margin-bottom: 0;
}

/* Address */
footer .footer-address {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

footer .footer-address:hover {
  transform: translateY(-2px);
}

footer .footer-address-icon {
  width: 30px;
  height: 30px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

footer .location-icon {
  display: block;
}

footer .footer-address-text {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-15);
  line-height: var(--line-height-snug);
  color: var(--color-text);
}

footer .footer-address-text .street {
  color: var(--color-text-lighter);
  font-size: var(--font-size-md);
}

/* Yandex Map Container */
footer #map {
  width: 100%;
  height: var(--footer-map-height);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

/* SKELETON LOADER */
footer .map-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #e0e0e0 0%,
    #f0f0f0 20%,
    #f5f5f5 40%,
    #f0f0f0 60%,
    #e0e0e0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  z-index: 10;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

footer .map-skeleton.hidden {
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

/* === Contacts Section === */
footer .footer-contacts {
  margin-bottom: 30px;
  padding: 0 18.75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

footer .footer-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-228);
  color: var(--color-text);
  text-decoration: none;
}

footer .phone-icon {
  display: block;
}

/* === Legal & Copyright === */
footer .footer-bottom {
  margin-top: 20px;
  padding: 0 18.75px;
  font-size: 11px;
}

footer .footer-legal {
  font-weight: 400;
  font-size: 11px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-bottom: 4px;
}

footer .footer-legal:last-child {
  margin-bottom: 0;
}

footer .footer-legal a {
  color: inherit;
  text-decoration: none;
}

/* === Extracted inline styles (mf-*) === */

footer.mf-no-border {
  border: none !important;
}

footer .mf-link-accent {
  color: #FFB900;
}

footer .footer-map.mf-no-border-bottom {
  border-bottom: none !important;
}

footer #map.mf-cursor-pointer {
  cursor: pointer;
}

footer .mf-map-placeholder {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e293b;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 13px;
}

footer .footer-bottom.mf-legal-block {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-top: 20px;
  padding: 0 18.75px;
  font-size: 11px;
  height: auto !important;
  overflow: visible !important;
  max-height: none !important;
  position: relative !important;
  border: none !important;
}

footer .footer-legal.mf-legal-line {
  display: block !important;
  visibility: visible !important;
  font-size: 11px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

footer .footer-legal.mf-legal-line-last {
  display: block !important;
  visibility: visible !important;
  font-size: 11px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

footer .mf-privacy-link {
  color: #5B9BD5;
  text-decoration: none;
}
/* ============================================
   MOBILE CAR CARD STYLES
   Стили для карточек автомобилей (мобильная версия)
   ============================================ */

/* === Car Card Container === */
.car-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.car-card--sold {
  border: 2px solid var(--color-primary-light);
}

.car-card--sold .car-slider {
  opacity: 0.6;
}

/* === Badge Section === */
.car-badges {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.car-badge {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary-text);
  border: 1px solid var(--color-primary-border);
  border-radius: var(--radius-2xl);
  width: var(--card-badge-width);
  height: var(--card-badge-height);
}

/* === Car Title === */
.car-title-section {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1px;
}

.car-engine-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.car-title {
  font-family: var(--font-family);
  font-style: normal;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-2xl);
  color: var(--color-text);
  text-transform: uppercase;
}

/* === Car Spec Text === */
.car-spec-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-tertiary);
}

/* === Specifications Grid === */
.car-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--spacing-lg);
  gap: var(--spacing-md) 18px;
}

.car-spec-item {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  line-height: var(--line-height-tight);
}

/* === Publication Date === */
.car-date {
  font-family: var(--font-family);
  font-size: 10px;
  color: var(--color-text-secondary);
  text-align: right;
  margin-bottom: 1px;
}

/* === Separator Line === */
.car-separator {
  height: 1px;
  width: 100%;
  background: var(--color-border-gray);
  margin-bottom: 14px;
}

[data-theme="dark"] .car-separator,
html.dark .car-separator {
  background: var(--color-border-gray);
}

/* === Price Section === */
.car-location {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--color-text-secondary);
  margin-bottom: 0.5px;
}

/* === Header Section (Results + Sort) === */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin-top: calc(var(--spacing-sm) * 2);
  margin-bottom: calc(var(--spacing-sm) * 2);
}

.results-count {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: 1;
  padding-left: 5px;
}

/* === Sort Button === */
.sort-dropdown-wrapper {
  position: relative;
  height: 30px;
  border: none;
  outline: none;
  box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08);
}

.sort-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 165px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 2px 10px;
  background-color: #DEDEDE;
  cursor: pointer;
  outline: none;
  transition: transform var(--transition-fast);
}

.sort-button:hover {
}

.sort-button:active {
  transform: scale(0.98);
}

.sort-button-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: var(--font-size-base);
  color: white;
  line-height: 1;
}

.sort-button-left {
  flex: 1;
  text-align: left;
  display: flex;
  align-items: center;
}

.sort-button-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-right: 2px;
}

.sort-dropdown-arrow {
  position: static;
  right: auto;
  top: auto;
  transform: none;
  width: 7px;
  height: 12px;
  color: inherit;
  opacity: 1;
}

.sort-dropdown-menu {
  display: block;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  box-shadow: 0 8px 20px -5px rgba(0,0,0,0.12);
  z-index: 100;
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sort-dropdown-wrapper.is-open {
}

.sort-dropdown-wrapper.is-open .sort-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.sort-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 400;
  color: #BBC4D1;
}

.sort-option:hover {
  background: #f8fafc;
}

.sort-option.is-selected {
  background: #fffbeb;
  color: #0f172a;
  box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.05);
}

.sort-option-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.sort-option.is-selected .sort-option-check {
  border-color: #EAB308;
  background: #EAB308;
  box-shadow: inset 0 0 0 2.5px #fff;
}

.sort-icon {
  height: var(--filter-icon-size);
  width: auto;
}

[data-theme="dark"] .sort-button,
html.dark .sort-button {
  background-color: #283341;
}

html.dark .sort-button:hover {
}

[data-theme="dark"] .sort-button-text,
html.dark .sort-button-text {
  color: white;
}

html.dark .sort-dropdown-menu {
  background: #283341;
  box-shadow: 0 8px 24px -5px rgba(0,0,0,0.3);
}

html.dark .sort-option {
  color: #BBC4D1;
}

html.dark .sort-option:hover {
  background: rgba(255,255,255,0.05);
}

html.dark .sort-option.is-selected {
  background: #16202A;
  color: #fff;
}

html.dark .sort-option-check {
  border-color: #4a5568;
}

html.dark .sort-option.is-selected .sort-option-check {
  border-color: #EAB308;
  background: #EAB308;
  box-shadow: inset 0 0 0 2.5px #283341;
}

/* === Dark Mode Adjustments === */
[data-theme="dark"] .car-title,
html.dark .car-title {
  color: var(--color-text);
}

/* Engine Icons for Dark Mode */
.engine-icon-dark {
  display: none;
}

[data-theme="dark"] .engine-icon-light,
html.dark .engine-icon-light {
  display: none;
}

[data-theme="dark"] .engine-icon-dark,
html.dark .engine-icon-dark {
  display: block;
}

/* ============================================
   MOBILE CARD LIST (mc-*)
   ============================================ */

.mc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 0;
}

.mc-card {
    display: block;
    position: relative;
    padding: 16px 16px 10px;
    text-decoration: none;
    color: inherit;
    background: #232e3c;
    box-shadow: 0 1px 4px 0px rgba(0,0,0,0.12), 0 0px 1px rgba(0,0,0,0.08);
}
html.dark .mc-card {
    background: #232e3c;
}

.mc-top-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0;
}
.mc-head-text { flex: 1; min-width: 0; }
.mc-title-row { display: flex; align-items: center; gap: 5px; margin-bottom: 0; }
.mc-title-row .mc-fuel { width: 18px; height: 18px; }
.mc-fuel { width: 16px; height: 16px; flex-shrink: 0; }
.mc-title {
    font-family: var(--font-family);
    font-weight: 400; font-size: 18px !important;
    color: #0f172a; line-height: 1.3;
}
html.dark .mc-title { color: #f1f5f9; }

.mc-spec-name {
    font-family: var(--font-family);
    font-size: 13px !important; font-weight: 400;
    color: #6b7280; margin-top: 2px; margin-bottom: 5px;
    white-space: nowrap; overflow-x: auto; max-width: 270px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; line-height: 1.3;
}
.mc-spec-name::-webkit-scrollbar { display: none; }
html.dark .mc-spec-name { color: #94a3b8; }

.mc-badge {
    font-family: var(--font-family);
    font-size: 9px !important; font-weight: 700;
    text-transform: uppercase; padding: 2px 6px;
    border-radius: 4px; margin-left: auto; flex-shrink: 0; color: #fff;
}
.mc-badge--green { background: #22c55e; }
.mc-badge--red   { background: #ef4444; }

.mc-price-row { display: flex; align-items: baseline; gap: 8px; }
.mc-price {
    font-family: var(--font-family);
    font-size: 24px !important; font-weight: 700;
    color: #0f172a; line-height: 1.2;
    padding-bottom: 10px;
}
html.dark .mc-price { color: #fff; }

.mc-price-note {
    font-family: var(--font-family);
    font-size: 12px !important; font-weight: 400; color: #94a3b8;
}

.mc-photos {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: -16px;
    margin-right: -16px;
    scrollbar-width: none;
}
.mc-photos::-webkit-scrollbar { display: none; }
.mc-photos--sold { opacity: .55; }

.mc-slot {
    flex: 0 0 auto;
    display: block;
    overflow: hidden;
    background: #f1f5f9;
}
.mc-slot:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.mc-slot:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
html.dark .mc-slot { background: #1e293b; }

.mc-photo:not([src]), .mc-photo[src=""] {
    visibility: hidden;
}

.mc-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mc-photo[data-io-done] { opacity: 1; }

.mc-sold-bar {
    display: flex; align-items: center; justify-content: center;
    padding: 4px 10px; margin-top: 12px;
    font-family: var(--font-family);
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: #B22234; background: #fff;
    border-radius: 12px; width: fit-content;
}
html.dark .mc-sold-bar { color: #fff; background: #B22234; border: none; border-radius: 8px; }

.mc-spec-name--sold { opacity: 0.5; }
.mc-card--sold .mc-fuel { opacity: 0.5; }
.mc-card--sold .mc-title { opacity: 0.5; }
html.dark .mc-card--sold { background: rgba(49,52,62,0.5); }

.mc-photo-empty {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 200px;
    background: #f1f5f9;
}
html.dark .mc-photo-empty { background: #1e293b; }

.mc-foot { padding: 10px 0 0; }
.mc-foot--sold { opacity: 0.5; }
.mc-foot-inner { display: flex; align-items: flex-start; }
.mc-specs-wrap { flex: 1; min-width: 0; }
.mc-specs-line {
    font-family: var(--font-family);
    font-size: 15px !important; font-weight: 400;
    color: #fff; line-height: 1.45 !important;
    flex: 1; min-width: 0;
}
.mc-specs-param { white-space: nowrap; }
.mc-specs-comma { white-space: nowrap; }
.mc-specs {
    font-family: var(--font-family);
    font-size: 13px !important; font-weight: 400;
    color: #3A3A3A; line-height: 1.4 !important;
    display: flex; flex-wrap: wrap;
}
.mc-specs-line2 { margin-top: 1px; }
.mc-specs-item { white-space: nowrap; }
.mc-specs-dot { white-space: nowrap; }
html.dark .mc-specs { color: #94a3b8; }

.mc-date-row { text-align: right; padding: 8px 0 0; font-size: 12px; line-height: 1.2; }
.mc-date {
    font-family: var(--font-family);
    font-size: 12px !important; font-weight: 400;
    color: #94a3b8; white-space: nowrap; line-height: 1.2;
}

/* === Extracted inline styles (mc-*) === */

.mc-cmp-view-hidden {
    display: none;
}

.mc-photo-empty-icon {
    width: 40px;
    height: 37px;
    color: #9ca3af;
}
/* ============================================
   MOBILE FILTERS & MODALS
   Стили для фильтров и модальных окон
   ============================================ */

/* === Selection Styles === */

/* Spinner on filter arrow while loading */
.filter-arrow-loading {
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid rgba(127, 145, 164, 0.3);
  border-top-color: #a0b0c0;
  border-radius: 50%;
  animation: filterArrowSpin 0.6s linear infinite;
}
.filter-arrow-loading svg,
.filter-arrow-loading path {
  display: none !important;
}
@keyframes filterArrowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.brand-item {
  padding: 12px 10px;
  margin: 0;
  border-radius: 8px;
}

.list-active {
  background-color: #fffbeb !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
}

/* Brand name text color */
.brand-name-text {
  color: #a0b0c0;
}

[data-theme="dark"] .list-active,
html.dark .list-active {
  background-color: #2C3743 !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

html.dark .list-active .brand-name-text {
  color: #ffffff !important;
}

html.dark .list-active .dd-count-mobile {
  background: #283341 !important;
  color: #cbd5e1 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Count badges (desktop style) */
.dd-count-mobile {
  color: #a0b0c0;
  font-size: 10px;
  font-weight: 700;
  background: #283341;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-family);
  border: none;
  box-shadow: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chip-active {
  background-color: var(--color-primary) !important;
  color: #000000 !important;
  border-color: var(--color-primary) !important;
  font-weight: var(--font-weight-extrabold) !important;
}

.selection-edge {
  background-color: var(--color-primary) !important;
  color: #000000 !important;
  border-color: var(--color-primary) !important;
  font-weight: var(--font-weight-extrabold) !important;
  transform: scale(1.05);
}

.selection-middle {
  background-color: #fef3c7 !important;
  color: #000000 !important;
  border-color: #fcd34d !important;
}

[data-theme="dark"] .selection-middle,
html.dark .selection-middle {
  background-color: rgba(255, 185, 0, 0.2) !important;
  color: #fbbf24 !important;
}

.multi-active {
  background-color: #fffbeb !important;
  border: 1px solid var(--color-primary) !important;
  color: #000000 !important;
  font-weight: var(--font-weight-bold) !important;
}

[data-theme="dark"] .multi-active,
html.dark .multi-active {
  background-color: rgba(255, 185, 0, 0.15) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
}

/* === Full Screen Filter Modal === */
#full-screen-filter {
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

/* === Toggle Switch === */
.toggle-checkbox:checked {
  right: 0;
  border-color: #172554;
}

/* === Modal Max Heights === */
.modal-nested-card {
  max-height: 85vh;
}

.modal-sort-card {
  max-height: 90vh;
}

.toggle-checkbox:checked + .toggle-label {
  background-color: #172554;
}

/* === Drum/Wheel Year Picker === */
.drum-picker-container {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: center;
  padding: 0 20px;
}

.drum-picker-column {
  flex: 0 0 125px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.drum-picker-wrapper {
  position: relative;
  width: 100%;
  height: 150px; /* 3 items * 50px */
  overflow: hidden;
}

.drum-picker-scroll {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.drum-picker-scroll::-webkit-scrollbar {
  display: none;
}

.drum-picker-item {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 400;
  color: rgba(127, 145, 164, 0.3);
  transition: color 0.15s, font-weight 0.15s;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}

.drum-picker-item.drum-active {
  color: #ffffff;
  font-weight: 700;
  font-size: 22px;
}

.drum-picker-item.drum-near {
  color: rgba(127, 145, 164, 0.4);
  font-size: 17px;
}

/* Center highlight band — always filled */
.drum-picker-highlight {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 50px;
  transform: translateY(-50%);
  background: #2C3743;
  border: none;
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}

/* Gradient masks for fade effect */
.drum-picker-mask-top,
.drum-picker-mask-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 50px;
  pointer-events: none;
  z-index: 3;
}

.drum-picker-mask-top {
  top: 0;
  background: linear-gradient(to bottom, #242F3D 0%, transparent 100%);
}

.drum-picker-mask-bottom {
  bottom: 0;
  background: linear-gradient(to top, #242F3D 0%, transparent 100%);
}

/* Spacers for scroll padding — top spacer = center offset so first items start BELOW center */
.drum-picker-spacer-top {
  height: 100px; /* wrapper=150, center=75, first item center=125 — dist=50 > threshold 35 */
  flex-shrink: 0;
}

.drum-picker-spacer-bottom {
  height: 50px;
  flex-shrink: 0;
}

/* Separator between columns */
.drum-picker-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  flex-shrink: 0;
  color: #a0b0c0;
  font-size: 20px;
  font-weight: 500;
}

/* === Filter interaction styles === */

html.dark #filter-box {
    background: #242F3D !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08);
}

.filter-cell {
    box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08);
    transition: transform 0.12s cubic-bezier(.2,.6,.35,1), box-shadow 0.15s ease;
}
.filter-cell:active {
    transform: scale(0.98);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}

.show-btn {
    transition: transform 0.12s cubic-bezier(.2,.6,.35,1), box-shadow 0.15s ease;
    box-shadow: 0 1px 4px 0px rgba(0, 0, 0, 0.12);
}
.show-btn:active {
    transform: scale(0.98);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}

#full-screen-filter button {
    transition: transform 0.12s cubic-bezier(.2,.6,.35,1);
}
#full-screen-filter button:active {
    transform: scale(0.97);
}

.filter-arrow {
    transition: transform 0.3s ease;
}
.filter-arrow.is-open {
    transform: rotate(90deg);
}

.filter-cell img:first-child {
    display: none;
}

.filter-arrow {
    filter: none !important;
}

/* ============================================
   fm-  —  Quick filter box (_filter_mobile.html)
   ============================================ */

.fm-filter-wrap {
    padding: 0 !important;
}

.fm-box {
    border-radius: 8px;
    padding: 16px 10px;
}

.fm-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.fm-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    margin: 0;
}

.fm-params-btn {
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    background: transparent;
    padding: 0 15px;
    height: 34px;
    border-radius: 11.25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: transform 0.12s;
    border: none;
    cursor: pointer;
}

.fm-params-icon {
    width: 16px;
    height: 16px;
}

.fm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.fm-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #283341;
    border-radius: 11.25px;
    padding: 0 12px;
    height: 45px;
    width: 100%;
    font-size: 15px;
    font-weight: 400;
    border: none;
    cursor: pointer;
}

.fm-cell-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fm-show-btn {
    background: #fff;
    color: #000;
    font-weight: 500;
    width: 100%;
    height: 45px;
    border-radius: 8px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
}

.fm-show-icon {
    filter: brightness(0);
}

/* Dynamic color states for filter cells */
.mflt-color-active {
    color: #fff;
}

.mflt-color-inactive {
    color: #BBC4D1;
}

.mflt-opacity-dim {
    opacity: 0.5;
}


/* === Nested content — grouped fs-cell style === */
#nested-content {
    padding: 0 15px 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#nested-content:has(.tw-list-wrap),
#nested-content:has(.tw-comp-list) {
    justify-content: flex-start;
}
#nested-content .tw-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
}
#nested-content .brand-item.tw-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    flex-shrink: 0;
    background: #242F3D;
    padding: 0 15px;
    border-radius: 0 !important;
    margin: 0;
    font-size: 16px;
    color: #b0bec5;
    line-height: 1.25;
}
#nested-content .brand-item.tw-list-item .brand-name-text {
    color: #bcd4f4;
    font-size: 16px;
    font-weight: 400;
}
#nested-content .brand-item.tw-list-item .dd-count-mobile {
    font-size: 14px;
    color: #bcd4f4;
    font-weight: 400;
    background: none;
    padding: 0;
    border-radius: 0;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
#nested-content .brand-item.tw-list-item.list-active {
    background-color: #2C3743 !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
}
#nested-content .brand-item.tw-list-item.list-active .brand-name-text {
    color: #ffffff !important;
}
html.dark #nested-content .brand-item.tw-list-item.list-active {
    background-color: #2C3743 !important;
    color: #ffffff !important;
}

/* ============================================
   fsm-  —  Full-screen filter modal (_filter_modal_mobile.html)
   ============================================ */

/* --- Container (full-screen overlay) --- */
.fsm-container {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: #242F3D;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    transition: transform 0.3s;
}

/* --- Header --- */
.fsm-header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #242F3D;
    padding: 16px 15px;
}

.fsm-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.fsm-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.fsm-close-icon {
    width: 20px;
    height: 20px;
    color: #fff;
}

/* --- Scrollable body --- */
.fsm-body {
    flex: 1 1 0%;
    overflow-y: auto;
    padding-bottom: 75px;
    padding-left: 15px;
    padding-right: 15px;
}

/* --- Category bar --- */
.fsm-cat-bar {
    height: 40px;
    background: #1A252F;
    border-radius: 6px;
    display: flex;
    padding: 3px;
    gap: 1px;
    margin-bottom: 15px;
}

.fsm-cat-btn {
    flex: 1 1 0%;
    height: 100%;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #b0bec5;
    transition: all 0.15s;
    background: transparent;
}

/* --- Filter sections (groups of cells) --- */
.fsm-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #283341;
    border-radius: 8px;
    overflow: hidden;
}

.fsm-section-spaced {
    margin-top: 15px;
}

/* --- Full-screen cells (shared base) --- */
.fs-cell {
    width: 100%;
    height: 50px;
    background: transparent;
    padding: 0 15px;
    display: flex;
    align-items: center;
    text-align: left;
}

.fs-cell:has(.fsm-value:not(.hidden)) {
    background: #2C3743;
}

.fs-cell-top {
    border-radius: 8px 8px 0 0;
}

.fs-cell-bottom {
    border-radius: 0 0 8px 8px;
}

.fsm-cell-mid {
    /* middle cell — no border-radius */
}

.fs-cell-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 0%;
    min-width: 0;
}

/* --- Labels & values inside cells --- */
.fsm-label {
    color: #fff;
    line-height: 1.25;
    font-size: var(--fmm-label-size, 16px);
    transition: all .15s cubic-bezier(.4,0,.2,1);
}

.fsm-value {
    font-size: 16px;
    color: #fff;
    line-height: 1.25;
}

/* --- Clear icon (X) inside cells --- */
.fsm-clear {
    flex-shrink: 0;
    margin-left: 8px;
}

.fsm-clear-svg {
    width: 16px;
    height: 16px;
    color: #7F7F7F;
}

/* --- Drive type bar --- */
.fsm-drive-bar {
    height: 40px;
    background: #1A252F;
    border-radius: 6px;
    display: flex;
    padding: 3px;
    gap: 1px;
    margin-top: 15px;
}

.fsm-drive-btn {
    flex: 1 1 0%;
    height: 100%;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #b0bec5;
    transition: all 0.15s;
    background: transparent;
}

/* --- Toggle rows (unsold / util) --- */
.fsm-toggle-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 2px;
}

.fsm-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.fsm-toggle-mark {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--fmm-check-bg, #a0b0c0);
    transition: all .15s cubic-bezier(.4,0,.2,1);
}

.fsm-toggle-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #B22234;
    transition: transform 0.15s;
}

.fsm-toggle-text {
    font-size: 13px;
    color: #fff;
}

/* --- Reset button --- */
.fsm-reset-btn {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #b0bec5;
    font-weight: 500;
    margin-top: 16px;
    padding: 12px 0;
    background: #1A252F;
    border-radius: 8px;
}

/* --- Footer (bottom fixed panel) --- */
.fsm-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #242F3D;
    z-index: 20;
    padding: 0 15px 15px;
}

.fsm-submit-btn {
    width: 100%;
    background: #fff;
    color: #000;
    font-weight: 500;
    height: 45px;
    border-radius: 8px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: transform 0.15s;
}

.fsm-submit-arrow {
    filter: brightness(0);
    width: 14px;
}

.fsm-submit-spinner {
    width: 18px;
    height: 18px;
}

/* --- Nested modal (bottom sheet) --- */
.fsm-nested-container {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: all 0.3s;
}

.fsm-nested-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 10;
}

.fsm-nested-card {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 448px;
    max-height: calc(100vh - 10px);
    max-height: calc(100dvh - 10px);
    background: #242F3D;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: auto;
    transition: transform 0.3s;
}

.fsm-nested-card--tall {
    max-height: calc(100vh - 55px);
    max-height: calc(100dvh - 55px);
}

.fsm-nested-handle,
.fsm-nested-swipe {
    flex-shrink: 0;
    touch-action: none;
}

.fsm-nested-handle-bar {
    width: 52px;
    height: 7px;
    background: #7F7F7F;
    border-radius: 9999px;
    margin: 16px auto;
}

.fsm-nested-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 16px;
    position: relative;
}

.fsm-nested-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.fsm-nested-close {
    width: 24px;
    height: 24px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    z-index: 10;
}

.fsm-nested-close-icon {
    width: 24px;
    height: 24px;
}

.fsm-nested-search {
    flex-shrink: 0;
    padding: 0 10px 12px;
}

.fsm-nested-content {
    flex: 1 1 0%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}
.fsm-nested-content:has(.tw-loading) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fsm-nested-footer {
    flex-shrink: 0;
}

/* ============================================
   tw-  —  Tailwind replacement classes
   ============================================ */

/* Search inputs */
.tw-search-input {
    width: 100%; height: 45px; border-radius: 8px;
    background: #283341; color: #fff; padding: 0 12px;
    font-size: 13px; outline: none;
    border: 1px solid transparent; transition: border-color .2s;
}
.tw-search-input::placeholder { color: #b0bec5; }
.tw-search-input:focus { border-color: transparent; }

/* List items (brands, models, etc.) */
.tw-list-item {
    width: 100%; display: flex; justify-content: space-between;
    align-items: center; padding: 12px 0; border-radius: 8px;
    transition: all .15s cubic-bezier(.4,0,.2,1);
}
.tw-item-text { font-size: 14px; font-weight: 500; }
.tw-model-sub { font-size: 11px; color: #556677; }

/* Section headers */
.tw-section-header {
    padding: 16px 10px 8px; font-size: 13px;
    font-weight: 700; color: #b0bec5; text-transform: uppercase;
}

/* Range inputs (year, price, etc.) */
.tw-range-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tw-range-input {
    width: 100%; height: 50px; border-radius: 12px;
    background: #283341; font-weight: 500; font-size: 18px;
    text-align: center; color: #fff; outline: none;
    border: 1px solid transparent; transition: border-color .2s;
}
.tw-range-input::placeholder { color: #b0bec5; }
.tw-range-input:focus { border-color: #a0b0c0; }
.ce-input { position: relative; text-align: center; line-height: 50px; }
.ce-input:focus { outline: none; border-color: transparent; box-shadow: none; }
.ce-input:empty::before,
.ce-input[data-show-ph="1"]::before {
    content: attr(data-ph);
    color: #6b7d8e;
    pointer-events: none;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    inset: 0;
}
.ce-input[data-show-ph=""]::before { display: none; }

/* Spec items (complectation) */
.tw-spec-item {
    background: transparent; border-radius: 0; padding: 0 15px;
    border: none; transition: all .15s cubic-bezier(.4,0,.2,1);
    cursor: pointer; height: 50px; display: flex; align-items: center; flex-shrink: 0;
}
.tw-spec-item:active { transform: none; }
.tw-spec-item--selected { background: #2C3743; border: none; }
html.dark .tw-spec-item--selected { background: #2C3743; border: none; }
.tw-comp-list > .tw-spec-item:first-child { border-radius: 8px 8px 0 0; }
.tw-comp-list > .tw-spec-item:last-child { border-radius: 0 0 8px 8px; }
.tw-comp-list > .tw-spec-item:first-child:last-child { border-radius: 8px; }
.tw-spec-item--unselected { border: none; }
html.dark .tw-spec-item--unselected { border: none; }
.tw-spec-name { font-weight: 400; font-size: 16px; color: #bcd4f4; line-height: 1.25; }
html.dark .tw-spec-name { color: #bcd4f4; }
.tw-spec-count { background: transparent; color: #bcd4f4; border-radius: 0; padding: 0; font-size: 14px; font-weight: 400; }
html.dark .tw-spec-count { color: #bcd4f4; }
.tw-spec-check { display: none; }
.tw-spec-check--active { color: #eab308; }
.tw-spec-check--inactive { color: transparent; }

/* Save/submit button */
.tw-save-btn {
    width: 100%; background: #fff; color: #000; font-weight: 500;
    height: 45px; border-radius: 12px; font-size: 16px;
    display: flex; justify-content: center; align-items: center;
    text-transform: uppercase; letter-spacing: .05em;
}

/* Empty states */
.tw-empty-state { padding: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 200px; }
.tw-empty-icon { width: 48px; height: 48px; color: #d1d5db; margin: 0 auto 16px; }
html.dark .tw-empty-icon { color: #4b5563; }
.tw-empty-text { color: #6b7280; font-weight: 500; }
html.dark .tw-empty-text { color: #9ca3af; }

/* Loading */
.tw-loading { display: flex; justify-content: center; padding: 32px; width: 100%; }
.tw-loading-text { color: #b0bec5; font-size: 14px; }

/* Category active state */
.tw-active-cat { background-color: #242F3D !important; color: #fff !important; }

/* Disabled */
.tw-disabled .fsm-value { opacity: .4; }
.tw-disabled .fsm-icon { opacity: .4; }
.tw-disabled .fsm-label { color: #fff; }

/* Spin animation */
.tw-spin { animation: tw-spin-anim 1s linear infinite; }
@keyframes tw-spin-anim { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* Toggle states */
.tw-toggle-on { transform: scale(1); }
.tw-toggle-off { transform: scale(0); }

/* Full-screen modal visibility */
.tw-fsm-hidden { transform: translateY(100%); pointer-events: none; }
.tw-nested-hidden { visibility: hidden; pointer-events: none; }
.tw-backdrop-hidden { opacity: 0; }
.tw-card-hidden { transform: translateY(100%); }

/* Cell color states */
.tw-cell-active { color: #fff; }
.tw-cell-inactive { color: #D8DEE6; }
html.dark .tw-cell-inactive-dark { color: #C0C8D6; }

/* Toggle mark states */
.tw-mark-active { background: #fff !important; }
.tw-mark-inactive { background: #a0b0c0 !important; }

/* Filter label states */
.tw-filter-dim { color: #BBC4D1; }
.tw-filter-active { color: #fff; }
.tw-fs-label-small, .tw-fs-label-active { font-size: 12px; color: #b0bec5; line-height: 1.25; transition: all .15s cubic-bezier(.4,0,.2,1); }
.tw-fs-label-big, .tw-fs-label-default { font-size: 16px; color: #b0bec5; line-height: 1.25; transition: all .15s cubic-bezier(.4,0,.2,1); }
.tw-no-pointer { pointer-events: none; }

/* Spec card (city/in_stock templates) */
.tw-spec-card {
    background: transparent; border-radius: 12px; padding: 16px;
    border: 2px solid #f3f4f6; transition: all .15s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
}
.tw-spec-card:active { transform: scale(0.98); }
.tw-spec-selected { border-color: #fbbf24 !important; }
html.dark .tw-spec-selected { border-color: #fbbf24 !important; }
.tw-spec-unselected { border-color: #f3f4f6 !important; }
html.dark .tw-spec-unselected { border-color: rgba(255,255,255,.05) !important; }
.tw-spec-row { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.tw-spec-name-col { flex: 1; padding-right: 16px; }
.tw-spec-meta { display: flex; align-items: center; }
.tw-spec-check-on, .tw-check-on { color: #eab308; }
.tw-spec-check-off, .tw-check-off { color: transparent; }

/* Toggle background states */
.tw-toggle-bg-on { background: #fff !important; }
.tw-toggle-bg-off { background: #a0b0c0 !important; }

/* Empty wrapper */
.tw-empty-wrap { padding: 32px; text-align: center; }
.tw-icon-yellow { color: #eab308; }

/* Compare list */
.tw-comp-list { display: flex; flex-direction: column; gap: 2px; background: #283341; border-radius: 8px; padding-bottom: 96px; }

/* Volume buttons */
.tw-vol-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 0; border-radius: 12px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: all .2s; border: none;
}
.tw-vol-selected { background: transparent; color: #FFCB40; font-weight: 700; }
.tw-vol-in-range { background: transparent; color: rgba(255,203,64,.4); }
.tw-vol-default { background: transparent; color: #000; }
html.dark .tw-vol-default { color: #fff; }

/* Chip & dot states */
.tw-chip-active { background: #fbbf24 !important; color: #000 !important; font-weight: 600; }
.tw-chip-default { background: transparent; color: #334155; }
html.dark .tw-chip-default { color: #d1d5db; }
.tw-dot-active { background: #fbbf24; }
.tw-dot-inactive { background: rgba(255,255,255,.2); }

/* Padding wrappers */
.tw-list-wrap { padding: 0 10px 16px; }
.tw-range-wrap, .tw-price-wrap { padding: 0 20px; }
.tw-footer-wrap { padding: 20px; }

/* === Basic utility classes (replacing Tailwind) === */
.hidden { display: none; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-10px { padding: 0 10px; }
.px-20px { padding: 0 20px; }
.p-20px { padding: 20px; }
.pb-4 { padding-bottom: 16px; }
.pb-24 { padding-bottom: 96px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.text-center { text-align: center; }
.text-gray-300 { color: #d1d5db; }
.text-gray-500 { color: #6b7280; }
.dark\:text-gray-400 { color: #9ca3af; }
.dark\:text-gray-600 { color: #4b5563; }
.bg-transparent { background: transparent; }
.bg-yellow-400 { background-color: #fbbf24; }
.w-12 { width: 48px; }
.h-12 { height: 48px; }
.mb-4 { margin-bottom: 16px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex-1 { flex: 1 1 0%; }
.gap-3 { gap: 12px; }
.pr-4 { padding-right: 16px; }
.space-y-2 > * + * { margin-top: 8px; }
.opacity-50 { opacity: .5; }
.w-full { width: 100%; }
/* ============================================
   MOBILE PAGINATION
   Стили для пагинации (мобильная версия)
   ============================================ */

/* Mobile pagination overrides */
.pagination-wrapper {
  padding: 0 20px;
}

.che168-pagination {
  background: transparent !important;
  border: none !important;
  width: 100%;
  padding: 25px 0 28px 0 !important;
  border-radius: 0 !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 14px !important;
  height: auto !important;
}

.che168-pagination-numbers {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0 !important;
  padding: 0 !important;
  height: auto !important;
}

.che168-page-link {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #5B9BD5 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.che168-page-link span {
  position: static !important;
}

.che168-page-link span::after {
  display: none !important;
}

.che168-page-link.is-active {
  color: #fff !important;
  font-weight: 600 !important;
}

.che168-page-link:hover:not(.is-disabled) {
  color: #fff !important;
}

.che168-page-link.is-disabled {
  opacity: 0.3 !important;
  pointer-events: none !important;
}

.che168-page-ellipsis {
  width: 40px;
  height: 37px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5B9BD5;
  font-size: 13px;
}

/* "предыдущая / следующая" nav row */
.che168-pagination-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
}

.che168-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5B9BD5;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.che168-nav-link svg {
  width: 8px;
  height: 14px;
  flex-shrink: 0;
}

.che168-nav-link:hover {
  opacity: 0.7;
}

.che168-nav-link.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Hide old prev/next buttons */
.che168-page-prev,
.che168-page-next {
  display: none !important;
}
   MOBILE COMPARE STYLES
   Кнопка на карточке, тост, страница сравнения
   ============================================ */

/* === Card photo gallery overlay === */

.mc-gallery {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #0a0f16;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.mc-gallery--open {
    opacity: 1;
}
.mc-gallery-backdrop {
    position: absolute;
    inset: 0;
}
.mc-gallery-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
.mc-gallery-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 0 40px;
}
.mc-gallery-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}
.mc-gallery-counter {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    background: rgba(0,0,0,0.4);
    padding: 4px 14px;
    border-radius: 20px;
}

/* === Compare button on cards === */

.cmp-mob-group {
    flex-shrink: 0;
    width: 75px;
}

.cmp-mob-btn {
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #283341;
    box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    padding: 4px 4px;
    color: #fff;
    width: 100%;
    font-size: 10px;
    font-weight: 500;
    font-family: var(--font-family, system-ui, sans-serif);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.cmp-mob-btn:active {
    transform: scale(0.96);
}
.cmp-mob-btn--active {
    background: #FFB900 !important;
    color: #1a1a1a !important;
}

html.dark .cmp-mob-btn {
    background: #283341;
    color: #fff;
}

/* === Toast notification (top, full-width with 20px margins) === */
.cmp-m-toast {
    position: fixed;
    top: -70px;
    left: 20px;
    right: 20px;
    z-index: 99999;
    padding: 14px 18px;
    border-radius: 14px;
    background: #fff;
    color: #1a1a1a;
    font-family: var(--font-family, system-ui, sans-serif);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.08);
    transition: top 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s, transform 0.25s ease;
    opacity: 0;
    pointer-events: none;
}
.cmp-m-toast--show {
    top: 12px;
    opacity: 1;
    pointer-events: auto;
}
.cmp-m-toast--hide {
    top: -70px;
    opacity: 0;
}

/* === Bottom panel (compare selection) === */
.cmp-m-panel {
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 9999;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    transform: translateY(calc(100% + 40px));
    overflow-y: auto;
    font-family: var(--font-family, system-ui, sans-serif);
    color: #1a1a1a;
    -webkit-overflow-scrolling: touch;
}
.cmp-m-panel-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 6px;
}
.cmp-m-panel-count {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}
.cmp-m-panel-toggle {
    border: none;
    background: #283341;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.cmp-m-panel-hint {
    padding: 4px 16px 0;
    font-size: 13px;
    font-weight: 600;
    color: #ef4444;
}
.cmp-m-panel-list {
    padding: 4px 12px 0;
}
.cmp-m-panel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-bottom: 1px solid #f0f0f0;
}
.cmp-m-panel-item:last-child {
    border-bottom: none;
}
.cmp-m-panel-thumb {
    width: 48px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
}
.cmp-m-panel-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cmp-m-panel-remove {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #999;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.cmp-m-panel-remove:active {
    background: #fee;
    color: #e55;
}
.cmp-m-panel-actions {
    display: flex;
    gap: 8px;
    padding: 10px 16px 16px;
}
.cmp-m-panel-clear {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.cmp-m-panel-clear:active {
    background: #dc2626;
}
.cmp-m-panel-go {
    flex: 1;
    padding: 10px 16px;
    border-radius: 8px;
    background: #FFB900;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.cmp-m-panel-go:active {
    background: #e5a800;
}

/* === Burger menu badge — стили в burger.css === */

/* ══════════════════════════════════════
   COMPARE PAGE
   ══════════════════════════════════════ */

/* Page header */
.cmp-m-page-hd {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px 14px;
}
.cmp-m-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s;
}
.cmp-m-back:active {
    background: rgba(255,255,255,0.12);
}
.cmp-m-page-title {
    font-size: 20px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.2;
}
.cmp-m-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    background: #5B9BD5;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 0 6px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Empty state */
.cmp-m-empty {
    text-align: center;
    padding: 56px 32px;
}
.cmp-m-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
}
.cmp-m-empty-text {
    font-size: 15px;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.5;
}
.cmp-m-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #172554;
    color: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s;
}
.cmp-m-empty-btn:active {
    transform: scale(0.96);
}

/* Loading skeleton */
.cmp-m-loading {
    padding: 24px 16px;
}
.cmp-m-skel {
    height: 18px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    margin-bottom: 14px;
    animation: cmpSkelPulse 1.5s ease-in-out infinite;
}
@keyframes cmpSkelPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* Error */
.cmp-m-error {
    text-align: center;
    color: #ef4444;
    padding: 32px 16px;
    font-size: 14px;
}

/* === Filter buttons (desktop-style radio+label) === */
.cmp-m-filters {
    display: flex;
    gap: 8px;
    padding: 14px 16px;
    align-items: center;
    flex-wrap: wrap;
    background: #1e2a38;
}
.cmp-m-filter-group {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08);
}
.cmp-m-filter-item {
    display: block;
}
.cmp-m-filter-group input[type=radio] {
    display: none;
}
.cmp-m-filter-group label {
    display: block;
    cursor: pointer;
    padding: 6px 14px 6px 10px;
    text-align: left;
    line-height: 20px;
    border: none;
    font-size: 12px;
    font-weight: 500;
    color: #a0b0c0;
    user-select: none;
    transition: background 0.2s, color 0.2s;
    background: #2B3340;
    font-family: var(--font-family, system-ui, sans-serif);
    -webkit-tap-highlight-color: transparent;
}
.cmp-m-filter-group .cmp-m-filter-item:first-child label {
    border-radius: 8px 8px 0 0;
}
.cmp-m-filter-group .cmp-m-filter-item:last-child label {
    border-radius: 0 0 8px 8px;
}
.cmp-m-filter-group input[type=radio]:checked + label {
    background: #19212A;
    color: #fff;
}
.cmp-m-clear-btn {
    background: #B12234;
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    height: 32px;
    cursor: pointer;
    box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08);
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-family, system-ui, sans-serif);
    margin-left: auto;
}
.cmp-m-clear-btn:active {
    transform: scale(0.95);
    background: #9a1e2e;
}

/* === Table with sticky first column === */
.cmp-m-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 40px;
}
.cmp-m-table-wrap::-webkit-scrollbar { display: none; }

.cmp-m-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    font-family: var(--font-family, system-ui, sans-serif);
}

/* Sticky parameter column (left) */
.cmp-m-param-hd,
.cmp-m-param {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #242f3d;
    min-width: 110px;
    max-width: 130px;
    padding: 9px 10px;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.35;
}

/* Top-left corner cell */
.cmp-m-param-hd {
    z-index: 10;
    vertical-align: top;
    padding: 10px;
    background: #242f3d;
    text-align: center;
}

/* Car header cells */
.cmp-m-car-hd {
    min-width: 150px;
    max-width: 180px;
    padding: 12px 10px;
    text-align: center;
    vertical-align: top;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: #22282a;
}
.cmp-m-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #16202A;
}
.cmp-m-car-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.cmp-m-car-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    text-decoration: none;
    margin-bottom: 4px;
    line-height: 1.3;
}
.cmp-m-car-price {
    font-size: 15px;
    font-weight: 700;
    color: #fbbf24;
}

/* Remove button */
.cmp-m-remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    border-radius: 0 0 0 8px;
    border: none;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 18px;
    opacity: 0.7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    -webkit-tap-highlight-color: transparent;
}
.cmp-m-remove-btn:active {
    background: rgba(239,68,68,0.6);
}
.cmp-m-remove-btn--static {
    position: static;
    margin: 0 auto 8px;
}
.cmp-m-car-hd--nophoto {
    vertical-align: bottom;
}

/* Section rows */
.cmp-m-section-name {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #242f3d;
    min-width: 110px;
    max-width: 130px;
    padding: 10px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.35;
}
.cmp-m-section-pad {
    background: #242f3d;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Value cells */
.cmp-m-val {
    min-width: 150px;
    max-width: 180px;
    padding: 9px 10px;
    color: #e2e8f0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: #2b3340;
    line-height: 1.35;
}

/* Difference highlighting */
.cmp-m-differ .cmp-m-param {
    color: #fbbf24;
}
.cmp-m-differ .cmp-m-val {
    background: rgba(251,191,36,0.05);
}

/* Markers */
.cmp-m-val-item {
    display: flex;
    align-items: baseline;
    gap: 0;
    margin-bottom: 2px;
}
.cmp-m-val-item:last-child {
    margin-bottom: 0;
}
.cmp-m-marker {
    display: inline-block;
    width: 18px;
    flex-shrink: 0;
    text-align: center;
    vertical-align: top;
}
.cmp-m-val-text {
    display: inline-block;
    vertical-align: top;
}
.cmp-m-val-nomarker {
    padding-left: 18px;
}
.cmp-m-marker-yes { color: #16a34a; font-weight: 700; }
.cmp-m-marker-maybe { color: #F3BC3E; }
.cmp-m-marker-no { color: #9ca3af; }

/* === Telegram Block / Ticker (mobile) === */
.telegram-block {
    display: block !important;
    height: 27px;
    background-color: #31343E;
    padding: 0 12px;
}
html.dark .telegram-block { background-color: #31343E; }
.telegram-wrapper { display: flex; width: 100%; height: 100%; gap: 0; align-items: stretch; padding: 0; }
.telegram-left { width: auto !important; min-width: auto; padding: 0 12px 0 0; display: flex; align-items: center; justify-content: flex-start; flex-shrink: 0; height: 100%; }
.rate-item { display: flex; align-items: center; font-size: 13px; font-weight: 400; color: #000000; text-transform: uppercase; }
html.dark .rate-item { color: #F5F5F5; }
.rate-label { margin-right: 4px; }
.rate-value { margin-right: 4px; }
.rate-arrow { font-size: 13px; line-height: 1; }
.rate-down { color: #E53935; }
.rate-up { color: #74AF52; }
.telegram-right { display: flex; flex: 1; overflow: hidden; padding: 0; align-items: center; height: 100%; }
.carousel-track { display: flex; align-items: center; height: 100%; }
.block { width: auto !important; color: #000000 !important; height: 100% !important; display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; padding: 0 14px !important; border: none !important; flex-shrink: 0 !important; white-space: nowrap !important; text-decoration: none !important; cursor: pointer; }
html.dark .block { color: #FFFFFF !important; }
.block-content { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 400; }
.tg-line-icon { width: 12px; height: 12px; flex-shrink: 0; }
html.dark .tg-line-icon { filter: brightness(0) invert(1); }
.car-brand, .car-date, .car-price { font-size: 12px; font-weight: 400; }
.car-brand { text-transform: uppercase; }
html.dark .car-brand, html.dark .car-date { color: #FFFFFF; }
.car-price { background: linear-gradient(14deg, #E07D14 0%, #FEB801 60%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.car-new { font-size: 12px; font-weight: 400; text-transform: uppercase; }
html.dark .car-new { color: #FFFFFF; }

/* FAQ block */
.faq-block { max-width: 100%; margin: 0 5px 20px; background: #2B3643; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08); }
.faq-block-title { font-size: 18px; font-weight: 700; margin: 0; color: #fff; padding: 20px; }
.faq-page .faq-block-title { display: none; }
.faq-page .midx-h1 { padding-left: 15px; }
.faq-page .mcar-bc-nav { padding: 12px 0 0 5px !important; }
.faq-block-inner { padding: 20px; background: #242F3D; }
.faq-item { margin: 0; }
.faq-item + .faq-item { border-top: 1px solid #2c3743; margin-top: 12px; padding-top: 12px; }
.faq-q { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0; background: none; border: none; cursor: pointer; font-size: 14px; font-weight: 500; color: #fff; line-height: 1.5; text-align: left; gap: 12px; }
.faq-q::after { content: ''; width: 5px; height: 9px; flex-shrink: 0; background: url("data:image/svg+xml,%3Csvg width='7' height='12' viewBox='0 0 7 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5-5 5' stroke='%237f91a4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; background-size: contain; transition: transform .25s; }
.faq-item.open .faq-q::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(0,1,0,1); }
.faq-item.open .faq-a { max-height: 500px; transition: max-height .45s cubic-bezier(.4,0,.2,1); }
.faq-a p, .faq-a ul { margin: 8px 0 0; font-size: 14px; line-height: 1.7; color: #7f91a4; }
.faq-a p:last-child { margin-bottom: 0; }
.faq-a strong { color: #fff; font-weight: 600; }
.faq-a ul { margin: 8px 0 0; padding-left: 20px; }
.faq-a li { margin-bottom: 4px; font-size: 14px; line-height: 1.6; color: #7f91a4; }
.faq-a a { color: #5B9BD5; text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* SEO text block (mobile) */
.seo-text-block-mobile { margin: 16px 0 0; padding: 0; font-size: 13px; line-height: 1.7; color: #a0a0a0; }
.seo-text-block-mobile p { margin: 0 0 10px; }
.seo-text-block-mobile p:last-child { margin-bottom: 0; }

/* Popular cars block (mobile) */
.popular-cars { margin: 0 5px 20px 5px; padding: 0; }
.popular-cars-title { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 12px; padding: 0 5px 0 15px; }
.similar-cars-title { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 12px; padding: 0 5px 0 15px; }
.popular-cars-viewport { width: 100%; overflow: hidden; }
.popular-cars-list { display: flex; gap: 10px; width: max-content; padding: 0 5px 8px; }
.popular-car-card { flex-shrink: 0; width: 150px; background: #242F3D; border-radius: 8px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08); }
.popular-car-img { width: 100%; height: 100px; object-fit: cover; display: block; background: #1a2332; }
.popular-car-info { padding: 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.popular-car-name { font-size: 13px; color: #fff; font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.popular-car-price { font-size: 12px; font-weight: 600; color: #FFB900; margin-top: auto; }

/* === Mobile 2GIS reviews === */
.r2m-section { margin: 20px 5px; }
.r2m-header { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; padding: 0 5px; }
.r2m-title { font-size: 20px; font-weight: 700; color: #fff; }
.r2m-all-link { font-size: 13px; color: #86A93C; text-decoration: none; font-weight: 600; align-self: flex-end; }
.r2m-list { display: flex; flex-direction: column; gap: 12px; }
.r2m-card { display: flex; flex-direction: column; background: #242F3D; border-radius: 12px; padding: 20px; min-height: 200px; box-shadow: 0 1px 4px 0px rgba(0,0,0,.18), 0 0px 1px rgba(0,0,0,.08); }
.r2m-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.r2m-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.r2m-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r2m-top-right { display: flex; flex-direction: column; justify-content: center; }
.r2m-name { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; }
.r2m-stars { font-size: 13px; letter-spacing: 1px; }
.r2s-fill { color: #ffb900; }
.r2s-empty { color: #3a4a5c; }
.r2m-text { font-size: 13px; line-height: 1.6; color: #7f91a4; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.r2m-bottom { margin-top: auto; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.r2m-source { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.025em; text-transform: uppercase; text-decoration: none; color: #86A93C; opacity: 0.6; }
.r2m-date { font-size: 11px; color: #7f91a4; }
