/* Octane homepage blocks — cards-block + rent videos (from template_styles.css) */

.advantages__title.title-main {
  margin: 48px auto 32px;
  text-align: center;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000;
}

.cards-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1470px;
  margin: 0 auto 64px;
  padding: 0 15px;
  box-sizing: border-box;
}

.cards-block img {
  max-width: 598px;
  width: 598px;
  height: auto;
  flex-shrink: 0;
}

.cards-block--titane .cards-block__visual--fan {
  width: 560px;
  max-width: min(560px, 46vw);
}

.cards-block__media {
  flex-shrink: 0;
}

.cards-block__visual--list {
  display: none;
}

.cards-block__visual--list img {
  display: block;
  width: min(100%, 320px);
  height: auto;
  margin: 0 auto;
}

.cards-block__text {
  width: -webkit-fill-available;
  flex: 1;
  text-align: center;
}

.cards-block__title {
  font-size: 47px;
  color: #000;
  font-weight: 300;
  font-family: "Montserrat", sans-serif;
  max-width: 490px;
  margin: 0 auto 50px;
  line-height: normal;
}

.cards-block__btn {
  font-size: 21px;
  color: #fd6c1e;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  border-radius: 21px;
  border: 2px solid #fd6c1e;
  padding: 5px 10px;
  width: 420px;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  text-align: center;
  text-transform: lowercase;
  transition: color 0.2s, background-color 0.2s;
  background: #fff;
  cursor: pointer;
}

.cards-block__btn:hover {
  color: #000;
  background: #fff;
}

.home-how-rent {
  padding: 48px 0 24px;
}

.home-how-rent .rent-car__title {
  margin-bottom: 32px;
  text-align: center;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Car-page videos — octane.club: 3×418×744, centered, white gaps between (not full-width 1fr) */
.rent-videos-trio {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 30px 0 50px;
  box-sizing: border-box;
}

.rent-videos-trio .video-thumb {
  position: relative;
  flex: 0 0 418px;
  width: 418px;
  height: 744px;
  max-height: none;
  min-height: 0;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  background: #111;
  display: block;
}

.rent-videos-trio .video-thumb img,
.rent-videos-trio .video-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rent-videos-trio .video-thumb video {
  opacity: 0;
  transition: opacity 0.25s;
}

.rent-videos-trio .video-thumb.is-playing img {
  opacity: 0;
}

.rent-videos-trio .video-thumb.is-playing video {
  opacity: 1;
}

.rent-videos-trio .video-thumb .play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #fd6c1e;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  transition: opacity 0.2s;
}

.rent-videos-trio .video-thumb .play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fd6c1e;
}

.rent-videos-trio .video-thumb.is-playing .play {
  opacity: 0;
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 89;
  width: 44px;
  height: 44px;
  border: 2px solid #fd6c1e;
  border-radius: 50%;
  background: #fff;
  color: #fd6c1e;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1400px) {
  .cards-block:not(.cards-block--titane) img {
    max-width: 305px !important;
    width: 305px;
    height: auto !important;
  }

  .cards-block--titane .cards-block__visual--fan {
    width: min(100%, 440px) !important;
    max-width: 440px !important;
    height: auto !important;
  }
}

@media (max-width: 1250px) {
  .cards-block__title {
    font-size: 31px;
  }

  .cards-block__btn {
    font-size: 19px;
  }
}

@media (max-width: 1400px) {
  .rent-videos-trio {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 14px;
  }
}

@media (max-width: 991px) {
  .cards-block {
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .cards-block:not(.cards-block--titane) img {
    max-width: 250px;
    width: 250px;
    margin: 20px auto;
  }

  .cards-block--titane .cards-block__visual--fan {
    display: block;
    width: min(100%, 320px) !important;
    max-width: 320px !important;
    height: auto !important;
    margin: 0 auto 16px;
  }

  .cards-block--titane .cards-block__visual--list {
    display: none !important;
  }

  .cards-block--titane .cards-block__media {
    width: 100%;
  }

  .cards-block__text {
    width: 100%;
  }

  .cards-block__title {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .cards-block__btn {
    font-size: 12px;
    max-width: 100%;
  }

}

@media (max-width: 575px) {
  .rent-videos-trio .video-thumb {
    flex: 0 0 360px;
    width: 360px;
    height: 640px;
    aspect-ratio: auto;
  }
}
