/* ============================================
   MOBILE CAR PAGE
   Стили для страницы детального просмотра автомобиля
   ============================================ */

/* === Utilities === */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Engine fuel icon (same as index) */
.mc-fuel {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ease-custom {
  transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

.no-select {
  user-select: none;
  -webkit-user-select: none;
}

/* === Buy Button === */
.mc-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  background: #172554;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mc-buy-btn:active {
  transform: scale(0.97);
  background: #1e3a7a;
}

html.dark .mc-buy-btn {
  background: #ffffff;
  color: #111428;
}

html.dark .mc-buy-btn:active {
  background: #e2e8f0;
}

/* === Price Breakdown Button === */
.mc-price-breakdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: rgba(172, 182, 229, 0.22);
  color: #6b7cb8;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.mc-price-breakdown-btn:active {
  transform: scale(0.97);
  background: rgba(172, 182, 229, 0.35);
}

.mc-price-breakdown-btn svg {
  color: #6b7cb8;
  flex-shrink: 0;
}

html.dark .mc-price-breakdown-btn {
  background: rgba(100, 116, 180, 0.18);
  color: #8b9ad4;
}

html.dark .mc-price-breakdown-btn svg {
  color: #8b9ad4;
}

html.dark .mc-price-breakdown-btn:active {
  background: rgba(100, 116, 180, 0.3);
}

/* === Specs Summary Block === */
.mc-specs-summary {
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
}

.mc-specs-row {
  display: contents;
}

.mc-specs-label {
  font-size: 15px;
  font-weight: 400;
  color: #94a3b8;
  white-space: nowrap;
  padding: 10px 16px 10px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.mc-specs-value {
  font-size: 15px;
  font-weight: 400;
  color: #e2e8f0;
  text-align: left;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.mc-specs-row:last-child .mc-specs-label,
.mc-specs-row:last-child .mc-specs-value {
  border-bottom: none;
}

html.dark .mc-specs-label {
  color: #94a3b8;
}

html.dark .mc-specs-value {
  color: #e2e8f0;
}

html:not(.dark) .mc-specs-label {
  color: #64748b;
}

html:not(.dark) .mc-specs-value {
  color: #1e293b;
}

/* === Global Background === */
/* html, body, body background — управляется burger_menu.html */

/* === Main Content Container === */
/* Базовые стили — transition и layout переопределяются в burger_menu_styles */
#main-content {
  background-color: #ffffff;
}

html.dark #main-content {
  background-color: rgb(15 23 42);
}

/* === Orb Animations === */
@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;
}

/* === Swipe Gallery Carousel === */
.gallery-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f1f5f9;
    touch-action: pan-y;
    cursor: grab;
}
.gallery-carousel:active { cursor: grabbing; }
html.dark .gallery-carousel {
    background: #1e293b;
}
/* Navigation arrows */
.gallery-nav-prev,
.gallery-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 0;
}
.gallery-carousel:hover .gallery-nav-prev,
.gallery-carousel:hover .gallery-nav-next {
    opacity: 1;
}
.gallery-nav-prev { left: 8px; }
.gallery-nav-next { right: 8px; }
.gallery-nav-prev:active,
.gallery-nav-next:active {
    background: rgba(0,0,0,0.6);
}
.gallery-track {
    display: flex;
    will-change: transform;
    /* transition добавляется/убирается из JS */
}
.gallery-track.animating {
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.gallery-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}
.gallery-slide--lazy {
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-slide--lazy.loaded {
    opacity: 1;
}
/* Counter badge */
.gallery-counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    font-family: var(--font-family);
    padding: 3px 8px;
    border-radius: 8px;
    pointer-events: none;
    letter-spacing: 0.5px;
}
/* Dot indicators */
.gallery-dots {
    display: none;
}
.gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: transform 0.25s;
}
.gallery-dot--active {
    background: #fff;
    transform: scale(1.3);
}

/* === Hero Image (kept for backward compat) === */
.car-hero-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f1f5f9;
    cursor: pointer;
}
html.dark .car-hero-wrap {
    background: #1e293b;
}
.car-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === Lightbox === */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox--open {
    opacity: 1;
    visibility: visible;
}
.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transform-origin: center center;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 101;
}
.lightbox-close:active {
    background: rgba(255, 255, 255, 0.25);
}
.lightbox-close svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2;
}
.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-family: var(--font-family);
    font-weight: 500;
    letter-spacing: 1px;
}

/* === Thumbnail Strip === */
.car-thumbs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 0 0 0;
}
.car-thumbs::-webkit-scrollbar { display: none; }

.car-thumb {
    flex: 0 0 16.5%;
    width: 16.5%;
    max-width: 16.5%;
    min-width: 0;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
    background: transparent;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    transform: scale(1);
}
.car-thumb--active {
    opacity: 0.55;
    transform: scale(0.85);
    border-radius: 8px;
}
html.dark .car-thumb {
    background: transparent;
}

.car-thumb--lazy {
    background: #e2e8f0;
}
html.dark .car-thumb--lazy {
    background: #1e293b;
}

/* === Gallery Styles (legacy) — REMOVED, replaced by .gallery-carousel above === */

/* =====================================================
   MOBILE ACCORDION STYLES (from accordeon documents)
   ===================================================== */

/* --- Accordion Container --- */
.mobile-specs-block {
  margin-bottom: 1rem;
  padding: 5px;
}

html.dark .mobile-specs-block {
  background: #242F3D;
  border-radius: 12px;
}

/* ===== MOBILE SPECS SEARCH ===== */
/* --- Search Overlay Backdrop --- */
.mob-search-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  -webkit-tap-highlight-color: transparent;
}

.mob-search-backdrop.active {
  display: block;
}

.mob-specs-search-box {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 6px;
  background: transparent;
  transition: border-radius 0.2s;
}

/* Expand/collapse buttons inside search field */
.mob-acc-ctrl-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #6b7cb8;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: background 0.15s, color 0.15s;
}

.mob-acc-ctrl-btn:active {
  background: rgba(172, 182, 229, 0.3);
}

#mob-expand-all {
  right: 34px;
}

#mob-collapse-all {
  right: -2px;
}

html.dark .mob-acc-ctrl-btn {
  color: #64748b;
}

html.dark .mob-acc-ctrl-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

/* Hide buttons when search overlay is active */
.mob-specs-search-box.search-active .mob-acc-ctrl-btn {
  display: none;
}

/* Search overlay mode — fixed to top when keyboard open */
.mob-specs-search-box.search-active {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  margin: 0;
  padding: 8px 5px;
  background: #242F3D;
  border-radius: 0 0 12px 12px;
}

.mob-specs-search-box.search-active .mob-specs-search-input,
.mob-specs-search-box.search-active .mob-specs-search-input:focus {
  background: #16202B;
  color: #fff;
  border: none;
  border-radius: 4px;
  height: 40px;
  padding: 8px 44px 8px 38px;
  box-shadow: none;
}

.mob-specs-search-box.search-active .mob-specs-search-input::placeholder {
  color: #64748b;
}

.mob-specs-search-box.search-active .mob-specs-search-icon {
  color: #fff;
  left: 17px;
}

.mob-specs-search-box.search-active .mob-specs-search-clear {
  right: 12px;
}

html.dark .mob-specs-search-box.search-active {
  background: #242F3D;
}

html.dark .mob-specs-search-box.search-active .mob-specs-search-input,
html.dark .mob-specs-search-box.search-active .mob-specs-search-input:focus {
  background: #16202B;
  border: none;
  color: #fff;
  box-shadow: none;
}



.mob-specs-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #6b7cb8;
  pointer-events: none;
  z-index: 2;
}

.mob-specs-search-input {
  width: 100%;
  padding: 10px 72px 10px 38px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  color: #6b7cb8;
  background: rgba(172, 182, 229, 0.22);
  transition: color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  height: 40px;
  font-family: inherit;
}

.mob-specs-search-input:focus::placeholder {
  color: transparent;
}

/* Clear button */
.mob-specs-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  color: rgba(255, 255, 255, 0.6);
  z-index: 2;
  transition: color 0.15s, opacity 0.15s;
  opacity: 0;
  pointer-events: none;
}

.mob-specs-search-clear:active {
  background: rgba(148, 163, 184, 0.4);
}

.mob-specs-search-clear.visible {
  opacity: 1;
  pointer-events: auto;
}

html.dark .mob-specs-search-clear {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.1);
}

html.dark .mob-specs-search-clear:active {
  background: rgba(255, 255, 255, 0.2);
}



.mob-specs-search-input::placeholder {
  color: #6b7cb8;
}

.mob-specs-search-input:focus {
  outline: none;
  border: none;
  background: rgba(172, 182, 229, 0.30);
  color: #6b7cb8;
  box-shadow: none;
}

html.dark .mob-specs-search-input {
  background: #16202B;
  border: none;
  color: #ffffff;
  height: 40px;
  padding: 8px 72px 8px 38px;
}

html.dark .mob-specs-search-input::placeholder {
  color: #64748b;
}

html.dark .mob-specs-search-input:focus {
  background: #16202B;
  border: none;
  box-shadow: none;
}

html.dark .mob-specs-search-icon {
  color: #ffffff;
}

/* --- Suggestions Dropdown --- */
.mob-specs-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.mob-specs-suggestions.active {
  display: block;
}

.mob-specs-suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}

.mob-specs-suggestion-item:last-child {
  border-bottom: none;
}

.mob-specs-suggestion-item:hover,
.mob-specs-suggestion-item.selected {
  background: rgba(178, 34, 52, 0.05);
}

.mob-specs-suggestion-item svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: #94a3b8;
  margin-top: 2px;
  flex-shrink: 0;
}

.mob-specs-suggestion-item:hover svg,
.mob-specs-suggestion-item.selected svg {
  color: #B22234;
}

.mob-specs-suggestion-text {
  flex: 1;
  min-width: 0;
}

.mob-specs-suggestion-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
}

.mob-specs-suggestion-section {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

.mob-specs-suggestion-no-results {
  padding: 12px 14px;
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
}

/* Highlight flash animation — only label color, no background */
.spec-row.highlight-flash .spec-row-label {
  animation: mobSpecFlash 3s ease;
}

@keyframes mobSpecFlash {
  0%, 100% { color: inherit; }
  15%, 85% { color: #FFB900; }
}

/* Dark theme suggestions */
html.dark .mob-specs-suggestions {
  background: #16202b;
  border: none;
  box-shadow: rgba(0,0,0,0.12) 0px 1px 4px 0px, rgba(0,0,0,0.08) 0px 0px 1px;
}

html.dark .mob-specs-suggestion-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

html.dark .mob-specs-suggestion-item:hover,
html.dark .mob-specs-suggestion-item.selected {
  background: rgb(22, 32, 43);
}

html.dark .mob-specs-suggestion-item svg {
  color: #64748b;
}

html.dark .mob-specs-suggestion-item:hover svg,
html.dark .mob-specs-suggestion-item.selected svg {
  color: #FFB900;
}

html.dark .mob-specs-suggestion-label {
  color: #e2e8f0;
}

html.dark .mob-specs-suggestion-section {
  color: #94a3b8;
}

html.dark .mob-specs-suggestion-no-results {
  color: #94a3b8;
}



/* --- Accordion Item (Light) --- */
.mob-accordion-item {
  background: #FFFFFF;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.mob-accordion-item:last-child {
  margin-bottom: 0;
}

.mob-accordion-item.open {
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* --- Accordion Item (Dark) --- */
html.dark .mob-accordion-item {
  background: #2f3a4745;
  border: none;
  box-shadow: none;
}

html.dark .mob-accordion-item.open {
  background: #16202b;
}

/* --- Accordion Header --- */
.mob-accordion-header {
  padding: 0 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  height: 40px;
}

html.dark .mob-accordion-header {
  padding: 0 5px;
}

html.dark .mob-accordion-item.open .mob-accordion-header {
  background: #16202b;
}

/* --- Header Title Row --- */
.mob-accordion-title-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* --- Header Icon Box --- */
.mob-header-icon-box {
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFB900;
}

html.dark .mob-header-icon-box {
  background: transparent;
  color: #FFB900;
}

.mob-header-icon-box i,
.mob-header-icon-box svg {
  width: 15px;
  height: 15px;
}

/* --- Header Title Text --- */
.mob-header-title {
  font-size: 16px;
  font-weight: 400;
  color: #0F172A;
  line-height: 1.3;
}

html.dark .mob-header-title {
  color: #ffffff;
}

/* --- Chevron --- */
.mob-accordion-chevron {
  color: #94a3b8;
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
  min-width: 16px;
  flex-shrink: 0;
  margin-left: 12px;
  margin-right: 8px;
}

.mob-accordion-item.open .mob-accordion-chevron {
  transform: rotate(180deg);
  color: #0F172A;
}

html.dark .mob-accordion-chevron {
  color: #64748b;
}

html.dark .mob-accordion-item.open .mob-accordion-chevron {
  color: #ffffff;
}

/* --- Accordion Content (animated) --- */
.mob-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.mob-accordion-item.open .mob-accordion-content {
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Content Inner --- */
.mob-content-inner {
  padding: 0 16px 16px 16px;
  border-top: none;
}

html.dark .mob-content-inner {
  border-top: none;
}

/* === Spec Row Styling === */
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  gap: 12px;
}

.spec-row:last-child {
  border-bottom: none;
}

html.dark .spec-row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* Spec Row Label */
.spec-row-label {
  font-size: 13px;
  font-weight: 400;
  color: #64748b;
  width: 50%;
  flex-shrink: 0;
  line-height: 1.4;
  text-align: left;
}

html.dark .spec-row-label {
  color: #94a3b8;
}

/* Spec Row Value */
.spec-row-value {
  font-size: 14px;
  font-weight: 400;
  color: #0f172a;
  text-align: left;
  width: 50%;
  line-height: 1.4;
  word-break: break-word;
}

html.dark .spec-row-value {
  color: #f1f5f9;
}

/* Status: not available / dash / empty circle */
.spec-row-value.status-no {
  color: #94a3b8;
  opacity: 0.8;
}

html.dark .spec-row-value.status-no {
  color: #64748b;
  opacity: 0.6;
}

/* Spec value NA (dash, empty circle) */
.spec-value-na {
  color: #94a3b8;
}

html.dark .spec-value-na {
  color: #64748b;
}

/* Spec line item (multi-line with check/circle) */
.spec-line-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  color: #0f172a;
  margin-bottom: 2px;
}

html.dark .spec-line-item {
  color: #e2e8f0;
}

.spec-line-item.spec-value-na {
  color: #94a3b8;
}

html.dark .spec-line-item.spec-value-na {
  color: #64748b;
}

/* Spec markers (● / ○) */
.spec-marker {
  display: inline-block;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.spec-marker-text {
  display: inline;
}

.spec-marker-yes {
  color: #16a34a;
}

.spec-marker-maybe {
  color: #F3BC3E;
}

.spec-marker-no {
  color: #9ca3af;
}

html.dark .spec-marker-yes {
  color: #4ade80;
}

html.dark .spec-marker-maybe {
  color: #F3BC3E;
}

/* Color swatches */
.color-swatch-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.color-swatch-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

html.dark .color-swatch {
  border-color: rgba(255, 255, 255, 0.2);
}

.color-swatch-dual {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

html.dark .color-swatch-dual {
  border-color: rgba(255, 255, 255, 0.2);
}

.color-swatch-name {
  font-size: 0.7rem;
  color: #64748b;
}

html.dark .color-swatch-name {
  color: #94a3b8;
}

/* === Logo Light/Dark Toggle === */
.logo-light { display: block; }
.logo-dark { display: none; }
html.dark .logo-light { display: none; }
html.dark .logo-dark { display: block; }

/* === Header === */
#site-header {
    pointer-events: auto !important;
}

/* === Telegram Block (mobile) === */
.telegram-block {
    display: block !important;
    height: 27px;
    background-color: #FFFFFF;
    padding: 0 12px;
}
html.dark .telegram-block {
    background-color: #242F3D;
}
.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;
    /* Анимация управляется из ticker.js */
    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;
}

/* === 6-Cell Specs Grid === */
.car-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.car-spec-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: 12px;
  background: #F0F0F0;
}

html.dark .car-spec-cell {
  background: #2B3045;
}

.car-spec-icon {
  width: 28px;
  height: 28px;
}

.car-spec-value {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
  line-height: 1.2;
}

html.dark .car-spec-value {
  color: #e2e8f0;
}
