.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 28px;
}

.hero_background {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero_bg {
  position: absolute;
  inset: 0;
  transition: opacity 0.5s ease;
}

.hero_bg_rent {
  opacity: 0;
}

/* подпись у выбора: в режиме проката на телефоне — «Время проката:» */
.kits_title_rent {
  display: none;
}

.hero[data-mode="rent"] .hero_bg_rent {
  opacity: 1;
}

.hero[data-mode="rent"] .hero_bg_buy {
  opacity: 0;
}

/* фон «Купить»: в макете картинка опущена на 35px и стоит по центру */
.hero_bg_buy img {
  position: absolute;
  left: 50%;
  width: 1920px;
  max-width: none;
  height: 100%;
  margin-left: -960px;
}

.hero_bg_buy::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #0B0D0E 0, #0B0D0E 34px, rgba(11, 13, 14, 0) 100px),
    linear-gradient(180deg, #0B0D0E 0, rgba(11, 13, 14, 0) 50px),
    linear-gradient(90deg, #0B0D0E calc(50% - 960px), rgba(11, 13, 14, 0) calc(50% - 880px), rgba(11, 13, 14, 0) calc(50% + 880px), #0B0D0E calc(50% + 960px));
}

/* фон «Прокат»: фото прижато к правому краю и чуть смещено вверх */
.hero_bg_rent img {
  position: absolute;
  top: -79px;
  right: 0;
  width: 92.34%;
  max-width: none;
  height: auto;
}

.hero_bg_rent::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0B0D0E 0%, rgba(11, 13, 14, 0.82) 18%, rgba(11, 13, 14, 0.3) 40%, rgba(11, 13, 14, 0) 58%),
    linear-gradient(180deg, rgba(11, 13, 14, 0.75) 0%, rgba(11, 13, 14, 0) 20%),
    linear-gradient(270deg, rgba(11, 13, 14, 0.92) 0%, rgba(11, 13, 14, 0) 14%),
    linear-gradient(0deg, #0B0D0E 0%, #0B0D0E 16%, rgba(11, 13, 14, 0) 31%);
}

.hero_inner {
  padding-top: 30px;
}

.hero_stage {
  position: relative;
}

.hero_left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 60px;
}

.hero_info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: 491px;
  max-width: 100%;
}

.hero_title {
  position: relative;
  top: -9px;
  height: 0.875em;
  font-family: "Benguiat", "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(64px, 6.667vw, 128px);
  line-height: 1.15;
  letter-spacing: -0.0115em;
  text-shadow: 0 12px 51px rgba(15, 89, 3, 0.1);
}

.hero_subtitle {
  font-family: "Benguiat", "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(22px, 1.667vw, 32px);
  line-height: 1.05;
  text-shadow: 0 12px 51px rgba(15, 89, 3, 0.1);
}

.hero_note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.05;
  color: #e2fc04;
  text-shadow: 0 12px 51px rgba(15, 89, 3, 0.1);
}

.hero_note img {
  width: 14px;
  height: 10px;
}

.hero_status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 12px 51px rgba(15, 89, 3, 0.1);
}

.hero[data-mode="rent"] .hero_status {
  visibility: hidden;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e2fc04;
  flex-shrink: 0;
}

.hero_buy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price {
  transition: opacity 0.22s ease;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  color: #e2fc04;
  text-shadow: 0 12px 51px rgba(15, 89, 3, 0.1);
}

.price.is_changing {
  opacity: 0;
}

.buttons {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.buttons .button_fill {
  order: -1;
}

.kits {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.kits_title {
  font-size: 16px;
  font-weight: 500;
}

.kit_list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero_photo {
  position: absolute;
  top: 8px;
  left: 41.16%;
  width: 51.83%;
  aspect-ratio: 850 / 555;
  transition: opacity 0.4s ease;
}

.hero[data-mode="rent"] .hero_photo {
  opacity: 0;
  visibility: hidden;
}

.motorcycle {
  position: absolute;
  top: 0;
  left: 6.47%;
  width: 87.06%;
  height: auto;
  transition: opacity 0.25s ease;
}

.motorcycle.is_changing {
  opacity: 0;
}

.bike_logo {
  position: absolute;
  top: 50.61%;
  left: 48.52%;
  width: 5.29%;
  height: auto;
  transform: translate(-50%, -50%) rotate(-5deg) skewX(5.05deg);
  transition: filter 0.25s ease;
}

.bike_logo.is_dark {
  filter: brightness(0.12);
}

.shadow {
  position: absolute;
  height: auto;
  max-width: none;
}

.shadow_1 {
  top: 80%;
  left: 8.82%;
  width: 39.53%;
}

.shadow_2 {
  top: 78.14%;
  left: 63.94%;
  width: 31.57%;
  rotate: -1.53deg;
}

.shadow_3 {
  top: 80.61%;
  left: 36.06%;
  width: 37.49%;
  rotate: -1.53deg;
}

.shadow_4 {
  top: 75.68%;
  left: 48.16%;
  width: 4.7%;
  rotate: -77.99deg;
}

.swatches {
  position: absolute;
  top: 84.68%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 20px;
  translate: -50% 0;
}

.swatch {
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  margin: -1px;
  padding: 0;
  border: 2px solid #8c8c8c;
  border-radius: 50%;
  background-origin: padding-box;
  background-clip: padding-box;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.swatch:hover {
  transform: scale(1.1);
}

.swatch.is_on {
  width: 33px;
  height: 33px;
  margin: -1.5px;
  border: 3px solid #e2fc04;
}

.swatch_black {
  background-color: #000000;
}

.swatch_teal {
  background-color: #3CBFC9;
}

.swatch_red {
  background-color: #D90101;
}

.swatch_white_blue {
  background-image: linear-gradient(90deg, #E2E2E2 50%, #004DAA 50%);
}

.swatch_black_red {
  background-image: linear-gradient(90deg, #000000 50%, #DC0225 50%);
}

.hero_helmets {
  position: absolute;
  top: 411px;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 530px;
  height: 105px;
  background: rgba(22, 24, 26, 0.92);
  border: 1px solid #8c8c8c;
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.hero[data-mode="rent"] .hero_helmets {
  opacity: 1;
  visibility: visible;
}

.helmet {
  display: flex;
  align-items: center;
  gap: 27px;
}

.helmet img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.helmet strong {
  display: block;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
}

.helmet span {
  display: block;
  font-size: 16px;
  color: #8c8c8c;
}

.helmet_divider {
  width: 1px;
  height: 40px;
  background: #8c8c8c;
}

.statistics {
  position: relative;
  z-index: 1;
  margin-top: 52px;
}

.statistics_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 130px;
  padding-inline: 8.48% 8.78%;
  background: #16181a;
  border: 1px solid #8c8c8c;
  border-radius: 20px;
}

.statistics_row[data-stats="rent"] {
  padding-inline: 9% 9%;
}

.statistic {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

/* иконка в двух версиях: серая и цветная; при наведении на показатель серая плавно меняется на цветную */
.statistic_icon {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.statistic_icon.statistic_icon_wide {
  width: 56px;
  height: 56px;
  margin: -8px;
}

.statistic_icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
}

.statistic_icon_color {
  opacity: 0;
}

.statistic:hover .statistic_icon_color,
.statistic:focus-within .statistic_icon_color {
  opacity: 1;
}

.statistic:hover .statistic_icon_base,
.statistic:focus-within .statistic_icon_base {
  opacity: 0;
}

.statistic_info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.statistic_value {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.4;
  text-shadow: 0 12px 51px rgba(15, 89, 3, 0.1);
  white-space: nowrap;
}

.statistic_label {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  color: #8c8c8c;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  .hero_left {
    gap: 40px;
  }

  .hero_photo {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 640px;
    margin: 30px auto 0;
  }

  .hero_helmets {
    position: static;
    margin-top: 30px;
    width: 100%;
    max-width: 530px;
    height: auto;
    padding: 16px 20px;
    flex-wrap: wrap;
  }

  .hero:not([data-mode="rent"]) .hero_helmets {
    display: none;
  }

  .statistics_row,
  .statistics_row[data-stats="rent"] {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 24px 40px;
    height: auto;
    padding: 28px 24px;
  }
}

@media (max-width: 1500px) {
  .statistics_row,
  .statistics_row[data-stats="rent"] {
    padding-inline: 32px;
  }

  .statistic {
    gap: 10px;
  }
}

/* мобильная версия: первый экран собран в одну колонку, фото мотоцикла стоит между кнопками и комплектациями */
@media (max-width: 767px) {
  .hero {
    padding-bottom: 0;
  }

  .hero_bg_buy {
    bottom: auto;
    height: calc(271px + 81.94vw);
    background: #020204;
  }

  .hero_bg_buy img {
    top: 271px;
    left: -65.03vw;
    width: 167.55vw;
    height: 81.94vw;
    margin-left: 0;
  }

  .hero_bg_buy::after {
    background:
      linear-gradient(0deg, #0B0D0E 0, rgba(11, 13, 14, 0) 110px),
      linear-gradient(180deg, #020204 271px, rgba(2, 2, 4, 0) 301px);
  }

  /* фон проката: вертикальное фото пары 360x422 стоит под кнопками и доходит до карточки с показателями */
  .hero_bg_rent {
    bottom: auto;
    height: calc(173px + 117.22vw);
    overflow: hidden;
    background: #020204;
  }

  .hero_bg_rent img {
    top: 173px;
    right: auto;
    left: 0;
    width: 100%;
    height: auto;
  }

  /* затемнение сверху и снизу уже есть в самой картинке */
  .hero_bg_rent::after {
    display: none;
  }

  .hero_inner {
    padding-top: 27.5px;
  }

  .hero_stage {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero_left,
  .hero_buy {
    display: contents;
  }

  .hero_info {
    order: 1;
    gap: 0;
    width: 100%;
  }

  .hero_title {
    top: -6px;
    height: 48px;
    font-size: 64px;
    line-height: 48px;
  }

  .hero_subtitle {
    position: relative;
    top: -1px;
    margin-top: 1px;
    font-size: 18px;
    line-height: 22px;
  }

  .hero_note {
    gap: 6px;
    margin-top: 4.4px;
    font-size: 12px;
    line-height: 17px;
  }

  .hero_note img {
    width: 8px;
    height: auto;
  }

  .hero_status {
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 17px;
  }

  .dot {
    width: 5px;
    height: 5px;
  }

  .price {
    order: 2;
    margin: 6px 0 7px;
    font-size: 24px;
    line-height: 30px;
  }

  .buttons {
    order: 3;
    gap: 10px;
    margin-bottom: 0;
  }

  .buttons .button {
    width: 80px;
    padding-inline: 0;
  }

  .buttons .button_line {
    border-color: transparent;
  }

  /* фото занимает всю ширину экрана и чуть наезжает на ряд комплектаций */
  .hero_photo {
    order: 4;
    left: auto;
    width: calc(100% + 40px);
    max-width: none;
    margin: 2.4px -20px 0;
  }

  /* в режиме проката фото мотоцикла скрыто, но место под него остаётся: на фоне идёт фото пары */
  .hero[data-mode="rent"] .hero_photo {
    margin-top: 23.4px;
  }

  .hero[data-mode="rent"] .hero_status {
    display: none;
  }

  .hero[data-mode="rent"] .price {
    margin-top: 4px;
  }

  .hero[data-mode="rent"] .buttons .button {
    width: 90px;
  }

  .hero[data-mode="rent"] .buttons .button_line {
    border-color: #8c8c8c;
  }

  .shadow {
    display: none;
  }

  .swatches {
    top: 82.1%;
    gap: 11px;
  }

  .swatch {
    width: 21px;
    height: 21px;
    margin: 0;
    border-width: 1.5px;
  }

  .swatch.is_on {
    width: 22px;
    height: 22px;
    margin: -0.5px;
    border-width: 2px;
  }

  .swatch:hover {
    transform: none;
  }

  .kits {
    order: 5;
    gap: 6.3px;
    margin-top: -6.5px;
  }

  .kits_title {
    font-size: 14px;
    line-height: 20px;
  }

  .hero[data-mode="rent"] .kits_title_buy {
    display: none;
  }

  .hero[data-mode="rent"] .kits_title_rent {
    display: inline;
  }

  /* в режиме проката у карточки с показателями видна тонкая рамка; она нарисована снаружи */
  .statistics .statistics_row[data-stats="rent"] {
    margin-inline: -1px;
    border-color: #8c8c8c;
  }

  /* шлемы в режиме проката на телефоне показаны в ряду показателей */
  .hero_helmets {
    display: none !important;
  }

  .statistics {
    margin-top: 13.7px;
    padding-inline: 10px;
  }

  .statistics_row,
  .statistics_row[data-stats="rent"] {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: auto;
    justify-content: space-between;
    align-content: center;
    gap: 19px 0;
    height: 100px;
    padding: 0 10px;
    border-color: transparent;
    border-radius: 15px;
  }

  .statistic {
    gap: 3.5px;
  }

  .statistic_icon {
    width: 30px;
    height: 30px;
  }

  .statistic_icon.statistic_icon_wide {
    width: 33px;
    height: 33px;
    margin: -1.5px;
  }

  /* в режиме проката показатели идут столбцами: цена и зарядка, старт и шлем, пробег и второй шлем */
  .statistics_row[data-stats="rent"] .statistic:nth-child(1) {
    order: 1;
  }

  .statistics_row[data-stats="rent"] .statistic:nth-child(4) {
    order: 2;
  }

  .statistics_row[data-stats="rent"] .statistic:nth-child(3) {
    order: 3;
  }

  .statistics_row[data-stats="rent"] .statistic:nth-child(5) {
    order: 4;
  }

  .statistics_row[data-stats="rent"] .statistic:nth-child(2) {
    order: 5;
  }

  .statistics_row[data-stats="rent"] .statistic:nth-child(6) {
    order: 6;
  }

  /* в макете подпись «2-й шлем» крупнее остальных */
  .statistics_row[data-stats="rent"] .statistic:nth-child(6) .statistic_label {
    font-size: 12px;
    line-height: 17px;
  }

  .statistic_info {
    gap: 0;
  }

  .statistic_value {
    font-size: 12px;
    line-height: 17px;
  }

  .statistic_label {
    font-size: 10px;
    line-height: 14px;
  }
}
