:root {
  --infiniti-navy: #030b24;
  --infiniti-gold: #b0a591;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
}

html {
  font-size: 62.5%;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 0;
  font-family: Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: #000;
}

#view360 {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: transparent !important;
}

#view360 .container,
#view360 .tab-content,
#view360 .design {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

#view360 .tabs {
  display: none !important;
}

#view360 .tab-content {
  display: none;
}

#view360 .tab-content.active {
  display: block;
}

#view360 .design {
  overflow: hidden;
}

#view360 .view-360 {
  position: absolute;
  inset: 0;
  display: none;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  cursor: grab;

  /* Машина без белёсого наложения */
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  transform: none !important;

  /* Чуть крупнее и выше по центру */
  background-repeat: no-repeat !important;
  background-position: 50% 42% !important;
  background-size: 118% auto !important;
}

#view360 .view-360.active {
  display: block;
}

#view360 .view-360:active {
  cursor: grabbing;
}

/* Если плагин создаёт img вместо background-image */
#view360 .view-360 > img {
  position: absolute;
  left: 50%;
  top: 42%;
  display: block;
  width: 118%;
  max-width: none;
  height: auto;
  max-height: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  user-select: none;
  -webkit-user-drag: none;
}

/* Именно этот слой делал машину белёсой */
.loading,
.preloader,
.infiniti-360-loading {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.qx360-hint {
  position: absolute;
  left: 50%;
  bottom: 108px;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: auto;
  pointer-events: none;
  opacity: 1;
  transform: translateX(-50%);
  filter: drop-shadow(0 14px 24px rgba(3, 11, 36, 0.2));
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.qx360-hint.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(8px) scale(0.96);
}

.qx360-hint__icon {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.qx360-hint__circle,
.qx360-hint__svg,
.qx360-hint__content,
.qx360-hint__number,
.qx360-hint__text {
  display: none !important;
}

#chooseColor.colors {
  position: absolute !important;
  left: 50%;
  bottom: 34px !important;
  z-index: 40;
  width: max-content;
  max-width: calc(100% - 32px);
  margin: 0 !important;
  padding: 10px 14px;
  overflow: visible !important;
  border: 1px solid rgba(3, 11, 36, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(3, 11, 36, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

#chooseColor .swiper-wrapper,
.colors .swiper-wrapper,
.swiper-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto !important;
  transform: none !important;
}

#chooseColor .swiper-slide,
.colors .swiper-slide,
.swiper-slide {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none;
  margin-right: 0 !important;
}

#chooseColor .btn-select {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(3, 11, 36, 0.12),
    0 6px 16px rgba(3, 11, 36, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

#chooseColor .btn-select:hover {
  transform: translateY(-1px) scale(1.06);
}

#chooseColor .btn-select.active {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--infiniti-gold),
    0 12px 24px rgba(3, 11, 36, 0.18);
  transform: scale(1.08);
}

#chooseColor .swiper-button-prev,
#chooseColor .swiper-button-next,
#chooseColor .swiper-notification {
  display: none !important;
}

@media (max-width: 768px) {
  #view360 .view-360 {
    background-position: 50% 40% !important;
    background-size: 126% auto !important;
  }

  #view360 .view-360 > img {
    top: 40%;
    width: 126%;
  }

  .qx360-hint {
    bottom: 86px;
    width: 88px;
  }

  #chooseColor.colors {
    bottom: 28px !important;
    padding: 9px 12px;
  }

  #chooseColor .btn-select {
    width: 25px;
    height: 25px;
  }
}

@media (max-width: 480px) {
  #view360 .view-360 {
    background-position: 50% 38% !important;
    background-size: 138% auto !important;
  }

  #view360 .view-360 > img {
    top: 38%;
    width: 138%;
  }

  .qx360-hint {
    bottom: 72px;
    width: 76px;
  }

  #chooseColor.colors {
    bottom: 20px !important;
    max-width: calc(100% - 20px);
    padding: 8px 10px;
  }

  #chooseColor .swiper-wrapper {
    gap: 10px;
  }

  #chooseColor .btn-select {
    width: 23px;
    height: 23px;
  }
}