 html {
    scroll-behavior: smooth;
    scroll-padding-top: 50px; 
    margin-top: 156px;
    background: #0b1a30;
  }
  
  .choose-color {color: white;}

  
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}
@media (max-width: 950px) {
    .top-bar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
    }
    .top-bar-left {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }
    .model-tabs {
        justify-content: center;
        width: 100%;
    }
    .compare-wrapper {
        width: auto;
        text-align: center;
    }
}
  #rec2352561831 {max-width: 2200px;}
  
 .t-submit {width: 100% !important;}
  @media (min-width: 1921px) { #rec2352561831 { margin: auto;}}

@media (max-width: 640px) {
    .carousel-wrapper::-webkit-scrollbar {
        display: none;
    }
    .carousel-wrapper {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
}

#rec2317462441 {
  position: fixed;
  height: 100px;
  background: #000;
  width: 100%;
  color: #fff;
  top: 0;
  transition: top 0.55s ease-in-out;
  z-index: 999;
}

#rec2317462441._header-scroll {
  top:-103px;
}


   /* ========== ОСНОВНОЙ БЛОК ========== */
    .vb-root {
      margin: 50px 150px 0;
      max-width: 1820px;
      background: radial-gradient(circle at center, #111, #1a1a2e);
      background-size: cover;
      border-radius: 16px;
      border: 3px solid #3b82f4;
      padding: 24px;
      color: white;
      box-sizing: border-box;
      font-size: 20px;
      font-family: var(--t-text-font, Arial);
    }


    @media (max-width: 1440px) {
      .vb-root { margin: 50px 100px 0; }
       html { margin-top: 152px;}
       #rec2317462441._header-scroll { top:-90px;}
    }
    @media (max-width: 1200px) {
      .vb-root { margin: 50px 50px 0; font-size: 18px; }
    }
    
     @media (min-width: 1921px) {
      .vb-root {margin: 50px auto 0; }
      .carousel-section { margin: 50px auto 50px !important; }
    }
    @media (max-width: 960px) {
      .vb-root { margin: 50px 15px 0; }
    }
    @media (max-width: 640px) {
      .vb-root { font-size: 16px !important; padding: 16px 12px; }
      .vb-title { font-size: 35px !important; }
      html { margin-top: 137px;}
      .vb-btn-primary { font-size: 14px !important;}
      .vb-btn { font-size: 14px !important;}
    }
    @media (max-width: 480px) {
          .vb-root { font-size: 16px !important; padding: 16px 12px; }
          .vb-title { font-size: 35px !important; }
          html { margin-top: 127px;}
    }
    /* ── ДЕСКТОП: машина справа ── */
    .vb-main {
      display: flex;
      align-items: center;
      gap: 24px;
    }
    .vb-left {
      flex: 0 0 42%;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }
    .vb-car-container {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .vb-car-img {
      width: 100%;
      max-height: 340px;
      object-fit: contain;
    }

    /* ── ПЛАНШЕТ (641–1100px): машина вниз ── */
    @media (max-width: 1100px) {
      .vb-root { font-size: 18px; }
      .vb-main { flex-direction: column; }
      .vb-left { flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px; }
      .vb-car-container { width: 100%; }
      .vb-car-img { max-height: 280px; }
      .vb-badge { width: 100%; }
      .vb-features { flex-direction: row !important; }
    }

    /* ── МОБИЛЬНЫЙ (≤640px) ── */
    @media (max-width: 640px) {
      .vb-left { flex-direction: column; }
      .vb-car-img { max-height: 200px; }
      .vb-feature { width: 100%; }
    }

    /* ЗАГОЛОВОК */
    .vb-title {
      font-size: 55px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: white;
      margin: 0;
    }
    .vb-title strong {
      background: linear-gradient(135deg, #3b82f4, #8b5cf6);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    /* БЕЙДЖ */
    .vb-badge {
      display: flex;
      align-items: stretch;
      background: #1E232E;
      border-radius: 16px;
      overflow: hidden;
      font-weight: 700;
      max-width: 100%;
    }
    .vb-badge-white {
      flex: 0 0 20%;
      background: #4B505F;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px;
    }
    .vb-badge-white img {
      width: 36px;
      height: 36px;
      border-radius: 8px;
    }
    .vb-badge-text {
      flex: 1;
      display: flex;
      align-items: center;
      padding: 14px 20px;
      color: white;
    }

    /* ФИЧИ */
.vb-features {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-direction: column;
}
.popup {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border-radius: 40px;
  padding: 0;
  text-decoration: none;
  color: white;
  font-size: 20px;
  font-weight: 300;
  transition: 0.2s;
}
.popup-icon {
  width: 48px;
  height: 48px;
  background: #4B505F;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  flex-shrink: 0;
}
.popup-icon img {
  width: 28px;
  display: block;
}
.popup:hover .popup-icon {
  background: #3b82f4;
}
.popup-text {
  line-height: 1.3;
  color: white;
  text-decoration: none;
  text-align: left;
}
.popup-text strong {
  color: #3b82f4;
  font-weight: bold;
}
@media (max-width: 640px) {
  .popup {
    font-size: 16px;
    gap: 10px;
  }
  .popup-icon {
    width: 40px;
    height: 40px;
  }
  .popup-icon img {
    width: 22px;
  }
}

    /* ========== НОВЫЙ БЛОК ВЫБОРА ЦВЕТА (car_colors) ========== */
    .car_colors {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  width: 100%;
}

.car_colors-swatches {
  display: flex;
  flex: 1;
  gap: 11px;
}

.car_colors-swatches > div {
  flex: 1 1 0;
  height: 25px;
  border-radius: 12px;
  border: 1px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
  background-size: cover;
}

.car_colors-swatches > div.active {
  flex: 3 1 0;
  border-color: #3b82f4;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.5);
}

.car_colors-swatches > div:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* надпись сверху в этих диапазонах */
@media (min-width: 1100px) and (max-width: 1500px),
       (max-width: 640px) {
  .car_colors {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .car_colors-swatches {
    width: 100%;
  }
}

    /* ========== CTA-КНОПКИ ========== */
    .vb-cta {
      display: flex;
      gap: 12px;
      margin-top: 20px;
      flex-wrap: wrap;
    }
    .vb-btn {
      font-size: 16px;
      flex: 1;
      min-width: 150px;
      padding: 10px;
      border: 1px solid rgba(255,255,255,0.5);
      background: rgba(255,255,255,0.2);
      backdrop-filter: blur(8px);
      color: white;
      font-weight: 700;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      line-height: 1.3;
      transition: background 0.2s, transform 0.2s;
    }
    .vb-btn:hover {
      background: rgba(255,255,255,0.35);
      transform: translateY(-2px);
      color: white;
      text-decoration: none;
    }
    .vb-btn-primary {
      font-size: 16px;
      flex: 1;
      min-width: 150px;
      padding: 10px;
      background: linear-gradient(135deg, #3b82f4, #2563eb);
      border: 2px solid transparent;
      color: white;
      font-weight: 700;
      letter-spacing: 0.07em;
      text-transform: uppercase;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      line-height: 1.3;
      animation: pulse 1.5s infinite;
    }
    .vb-btn-primary:hover {
      background: #2b61b9;
      border-color: white;
      animation: none;
      color: white;
      text-decoration: none;
    }
    @keyframes pulse {
      0%   { box-shadow: 0 0 0 0 rgba(59,130,246,0.7); }
      70%  { box-shadow: 0 0 0 10px rgba(59,130,246,0); }
      100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
    }
    @media (max-width: 640px) {
      .vb-cta { flex-direction: column; }
      .vb-btn, .vb-btn-primary { min-width: unset; }
    }

    /* ========== КАРУСЕЛЬ ========== */
    .carousel-section {
      margin: 40px 150px 50px;
      box-sizing: border-box;
      max-width: 1820px;
    }
        @media (max-width: 1440px) {
      .carousel-section { margin: 50px 100px 50px; }
    }
    @media (max-width: 1200px) {
      .carousel-section { margin: 50px 50px 50px; }
    }
    @media (max-width: 960px) {
      .carousel-section { margin: 25px 15px 50px; }
    }
    
    .carousel-container {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .carousel-wrapper {
      flex: 1;
      overflow: hidden;
    }
    .carousel-track {
      display: flex;
      transition: transform 0.3s ease;
      justify-content: space-between;
    }
    .carousel-item {
      flex-shrink: 0;
      padding: 0 8px;
      box-sizing: border-box;
      cursor: pointer;
    }
    .carousel-item img {
      width: 100%;
      object-fit: cover;
      border-radius: 16px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.2);
      transition: transform 0.2s;
      display: block;
    }
    .carousel-item img:hover {
      transform: scale(1.02);
    }

    .carousel-btn {
      width: 50px;
      height: 50px;
      border-radius: 5px;
      border: 1px solid rgba(255, 255, 255, 0.20);
      background: url('https://voyah-tver.ru/img/arrow.svg') 50% no-repeat;
      background-size: 20px 20px;
      transition: all .5s ease-in-out;
      cursor: pointer;
      flex-shrink: 0;
      margin: 0 !important;
    }
    .carousel-btn:first-child {
      transform: rotate(270deg);
    }
    .carousel-btn:last-child {
      transform: rotate(90deg);
    }
    .carousel-btn:hover {
      border-color: rgba(255, 255, 255, 0.5);
      background-color: rgba(59, 130, 246, 0.8);
    }
    @media (max-width: 640px) {
      .carousel-btn {
        display: none;
      }
      .carousel-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
      }
      .carousel-track {
        transition: none;
      }
      .carousel-item {
        scroll-snap-align: start;
      }
    }

    /* ========== КАСТОМНЫЙ СКРОЛЛБАР ========== */
    .carousel-scrollbar {
      position: relative;
      left: 1%;
      width: 98%;
      margin-top: 14px;
      height: 4px;
      background: rgb(255 255 255 / 20%);
      border-radius: 10px;
      touch-action: none;
      display: none;
    }
    @media (max-width: 640px) {
      .carousel-scrollbar {
        display: block;
      }
    }
    
    @media (min-width: 901px) and (max-width: 1599px) { .card-image { height: 180px !important; } }

    
    
    .carousel-scrollbar-drag {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      background: #3b82f4;
      border-radius: 10px;
      will-change: transform;
      width: calc(100% / 6 * 2) !important; /* 2 картинки из 6 видно на мобилке */
    }

   /* ========== ЛАЙТБОКС ========== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.lightbox.active {
  display: flex;
}
.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
}
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 42px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: bold;
  z-index: 1001;
  transition: all 0.3s ease;
}
.lightbox-close:hover {
  color: #3b82f4;
}

.lightbox-prev, .lightbox-next {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  background: url('https://voyah-tver.ru/img/arrow.svg') 50% no-repeat;
  background-size: 20px 20px;
  transition: all .5s ease-in-out;
  cursor: pointer;
  flex-shrink: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 1001;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 30px;
  transform: translateY(-50%) rotate(270deg);
}

.lightbox-next {
  right: 30px;
  transform: translateY(-50%) rotate(90deg);
}

.lightbox-prev:hover, .lightbox-next:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(59, 130, 246, 0.8);
}

@media (max-width: 768px) {
  .lightbox-prev, .lightbox-next {
    position: fixed;
    top: auto;
    bottom: 30px;
    transform: none;
    left: auto;
    right: auto;
  }
  
  .lightbox-prev {
    left: calc(50% - 70px);
    transform: rotate(270deg);
  }
  
  .lightbox-next {
    right: calc(50% - 70px);
    transform: rotate(90deg);
  }
  
  .lightbox-image {
    max-height: 60vh;
  }
}