html,
body {
  background: var(--color-bg);

  color: var(--color-fg);

  font-family: var(--font-base);
}

#main {
  position: relative;

  width: 100%;

  height: clamp(324px, 60vh, 581px);

  overflow: hidden;

  background: var(--poster-img) center / cover no-repeat;
}

#main-video {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;

  display: block;

  z-index: 0;

  opacity: 0;

  visibility: hidden;
}

#main-video.show {
  opacity: 1;

  visibility: visible;
}

#main::after {
  content: "";

  position: absolute;

  inset: 0;

  background: rgba(0, 0, 0, 0.38);

  z-index: 1;
}

.hero-award {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 5;
  display: block;
  width: clamp(110px, 10vw, 160px);
  height: clamp(110px, 10vw, 160px);
  opacity: 1;
  visibility: visible;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

.hero-certificate {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 5;
  display: block;
  width: clamp(110px, 10vw, 160px);
  height: clamp(110px, 10vw, 160px);
  opacity: 1;
  visibility: visible;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
}

#welcome-text {
  position: absolute;

  left: 50%;
  top: 18%;

  transform: translate(-50%, -50%);

  margin: 0;
  margin-top: 120px;

  text-align: center;

  color: var(--font-color);

  font-family: var(--font-head);

  z-index: 2;
}

#welcome-text > p {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 5px;
  line-height: 1.4;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 10px;
}

#welcome-text > h5 {
  font-family: "Poppins", sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

#welcome-text > h5 + h5 {
  margin: 6px 0 22px;
}

.hero-btn {
  display: inline-block;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-btn:hover {
  transform: scale(1.06);
}

.hero-btn.primary {
  background: #111111;
  color: #ffffff;
  margin-right: 5px;
}

.hero-btn.secondary {
  background: #ffffff;
  color: #111111;
  margin-left: 5px;
}

#main-info-first {
  display: grid;

  width: 100%;

  grid-template-columns: repeat(3, 1fr);

  gap: 32px;

  padding: 60px clamp(52px, 10vw, 160px);

  margin: 0 auto;

  text-align: center;

  background: linear-gradient(
    120deg,
    #080705 0%,
    #111415 35%,
    #0b0d0e 68%,
    #080705 100%
  );
  background-size: 300% 300%;
  animation: reco-background-shift 32s ease-in-out infinite;
  color: #ffffff;
}

.info-block {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 12px;
}

.info-block h3 {
  font-family: var(--font-head);

  font-size: clamp(18px, 3vw, 24px);

  font-weight: 600;

  margin: 0 0 10px 0;
}

.info-block p {
  font-family: var(--font-head);

  font-size: 16px;

  line-height: 1.45;

  margin: 0;
}

.circle-icon {
  background: #ffffff;

  color: #000000;

  border-radius: 50%;

  width: 60px;
  height: 60px;

  display: flex;

  align-items: center;

  justify-content: center;

  font-size: 20px;
}

#main-info-third {
  width: 100%;

  min-height: 330px;

  padding: 64px 24px 56px;

  overflow: hidden;

  text-align: center;
}

#main-info-third {
  background: #ffffff;

  color: #111111;
}

#main-info-third h2 {
  margin: 0 0 42px;

  padding: 0;

  font-family: var(--font-head);

  font-size: clamp(28px, 5vw, 42px);

  font-weight: 600;
}

.logos {
  display: flex;

  align-items: center;

  justify-content: center;

  flex-wrap: wrap;

  gap: 48px clamp(40px, 6vw, 96px);
}

.logos img {
  display: block;

  width: auto;

  max-width: calc(100% - 32px);

  object-fit: contain;
}

#main-info-third .logos img {
  width: auto;
  max-width: 180px;
  height: 56px;
  max-height: 56px;
  object-fit: contain;
  opacity: 0.82;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

#main-info-third .logos img:hover {
  opacity: 1;
  transform: scale(1.05);
}

#reco-reviews {
  width: 100%;

  margin: 0 auto;

  padding: 30px 0 12px;

  background: linear-gradient(
    120deg,
    #080705 0%,
    #111415 35%,
    #0b0d0e 68%,
    #080705 100%
  );
  background-size: 300% 300%;
  animation: reco-background-shift 32s ease-in-out infinite;

  text-align: center;
}

#featured-cars {
  padding: 56px 20px 64px;
  background: #ffffff;
}

.featured-cars-heading {
  max-width: 1200px;
  margin: 0 auto 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.featured-cars-heading h2 {
  margin: 0;
  color: #111111;
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
}

.featured-cars-heading a {
  color: #111111;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.featured-cars-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.featured-car-card {
  min-width: 0;
  overflow: hidden;
  color: #111111;
  background: #f4f4f2;
  border: 1px solid #e4e4e1;
  border-radius: 8px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.featured-car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.12);
}

.featured-car-image-wrapper {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ddddda;
}

.featured-car-image-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-car-content {
  padding: 18px;
}

.featured-car-content h3 {
  min-height: 42px;
  margin: 0 0 16px;
  overflow: hidden;
  color: #111111;
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.featured-car-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #686868;
  font-family: var(--font-head);
  font-size: 13px;
}

.featured-car-details strong {
  color: #111111;
  font-size: 16px;
}

.featured-cars-error {
  grid-column: 1 / -1;
  margin: 0;
  color: #686868;
  text-align: center;
}

i {
  color: black;
}

.reco-heading {
  max-width: 1200px;

  margin: 0 auto 22px;

  padding: 0 20px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #ffffff;
}

.reco-heading h3 {
  margin: 0;

  font-family: var(--font-head);

  font-size: clamp(28px, 5vw, 42px);

  font-weight: 600;

  color: #ffffff;
}

.reco-heading p {
  margin: 4px 0 0;

  font-family: var(--font-head);

  font-size: 13px;

  color: #d0d0d0;
}

.reco-badges {
  height: 205px;

  margin: 0 auto 24px;

  padding: 0 20px;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: visible;
}

.reco-badges > div {
  position: relative;

  margin-left: -24px;

  transform: scale(1);

  transform-origin: center;
}

.reco-badges > div:first-of-type {
  margin-left: 0;
}

#reco--badge-yearsInRowBadge {
  z-index: 1;

  margin-left: -18px;

  transform: scale(1.25);
}

.reco-marquee {
  position: relative;
  left: 0;
  bottom: 0;
  z-index: 4;

  width: 100%;

  overflow: hidden;

  padding: 0 0 30px;
}

.reco-track {
  display: flex;

  width: max-content;

  will-change: transform;
}

.reco-track.reco-ready {
  animation: reco-scroll var(--reco-duration) linear infinite;
}

.reco-review-group {
  display: flex;

  gap: 20px;

  flex-shrink: 0;

  padding-right: 20px;
}

.reco-review-card {
  width: 320px;

  min-width: 320px;

  height: 175px;

  background: #ffffff;

  color: #111111;

  border-radius: 18px;

  padding: 16px 18px;

  display: flex;

  flex-direction: column;

  text-align: left;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
}

.reco-rating {
  display: flex;

  gap: 6px;

  align-items: center;

  justify-content: flex-start;

  margin-bottom: 16px;
}

.reco-star {
  position: relative;

  width: 25px;
  height: 25px;

  flex-shrink: 0;

  background: conic-gradient(
    #f8c400 0deg 90deg,
    #45b9e9 90deg 180deg,
    #a7d82d 180deg 270deg,
    #ee248b 270deg 360deg
  );

  border-radius: 50%;

  border: 1.5px solid #111111;

  overflow: hidden;
}

.reco-star::before {
  content: "";

  position: absolute;

  left: 50%;
  top: 0;

  width: 2px;
  height: 100%;

  background: #111111;

  transform: translateX(-50%);
}

.reco-star::after {
  content: "";

  position: absolute;

  left: 0;
  top: 50%;

  width: 100%;
  height: 2px;

  background: #111111;

  transform: translateY(-50%);
}

.reco-review-text {
  margin: 0;

  color: #111111;

  font-family: var(--font-head);

  font-size: 15px;

  line-height: 1.45;

  font-weight: 500;

  display: -webkit-box;

  -webkit-box-orient: vertical;

  line-clamp: 3;

  -webkit-line-clamp: 3;

  overflow: hidden;
}

.reco-review-bottom {
  margin-top: auto;

  padding-top: 15px;

  border-top: 1px solid #e2e2e2;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;
}

.reco-review-customer {
  min-width: 0;

  display: flex;

  align-items: center;

  gap: 7px;

  font-family: var(--font-head);

  font-size: 11px;

  color: #777777;
}

.reco-review-customer strong {
  max-width: 150px;

  color: #111111;

  font-size: 12px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}

.reco-review-customer span {
  white-space: nowrap;
}

.reco-logo {
  margin-left: auto;

  display: flex;

  align-items: center;

  flex-shrink: 0;
}

.reco-logo-image {
  display: block;

  width: 150px;
  height: 64px;

  object-fit: contain;
}

.reco-error {
  width: 100%;

  padding: 25px;

  color: #111111;

  text-align: center;

  font-family: var(--font-head);
}

@keyframes reco-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--reco-distance)));
  }
}

@media (max-width: 720px) {
  #main {
    height: 520px;
  }
  .hero-award,
  .hero-certificate {
    top: 18px;
    width: 82px;
    height: 82px;
  }
  .hero-award {
    left: 14px;
  }
  .hero-certificate {
    right: 14px;
  }
  #welcome-text {
    width: calc(100% - 40px);
    top: 54%;
    margin-top: 0;
  }
  #welcome-text > p {
    margin: 0 0 10px;
    font-size: 10px;
    letter-spacing: 2.5px;
  }
  #welcome-text > h1 {
    margin: 0 auto 16px;
    font-size: clamp(24px, 7.3vw, 31px);
    line-height: 1.12;
  }
  #welcome-text > h5 {
    max-width: 320px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.45;
  }
  #welcome-text > h5 + h5 {
    margin: 6px auto 22px;
  }
  .hero-btn {
    min-width: 126px;
    margin: 0 2px !important;
  }
  #main-info-first {
    grid-template-columns: 1fr;
  }
  #main-info-first {
    gap: 42px;
    width: 100%;
    margin-inline: 0;
    padding: 48px 32px;
    justify-items: center;
    text-align: center;
  }
  #main-info-first .info-block {
    align-items: center;
    width: 100%;
  }
  #main-info-first .info-block p {
    font-size: 14px;
  }
  .featured-cars-heading {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }
  .featured-cars-heading h2 {
    font-size: clamp(18px, 5.4vw, 22px);
  }
  .featured-cars-heading a {
    flex: 0 0 auto;
    font-size: 12px;
    white-space: nowrap;
  }
  .featured-cars-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 0 16px;
    margin: 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .featured-cars-grid::-webkit-scrollbar {
    display: none;
  }
  .featured-car-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
  }
  .featured-car-content {
    padding: 20px;
  }
  .logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }
  #main-info-third .logos img {
    justify-self: center;
    max-width: 140px;
  }
  .reco-badges {
    height: 205px;
    min-height: 0;
    flex-wrap: nowrap;
    margin: -25px auto -40px;
    padding: 0;
    transform: scale(0.65);
    transform-origin: center;
  }
}
