/* Homepage mobile fixes — match octane.club swipe UX */

/* Do NOT set overflow-x:hidden on body/html — iOS Safari then freezes vertical scroll */
html.home-html,
body.home-page {
  max-width: 100%;
  overflow-x: clip;
}

body.home-page #top__main,
body.home-page .header.small-title,
body.home-page main {
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 767px) {
  /* Sliders: swipe only, no arrows */
  .slider-index__nav {
    display: none !important;
  }

  .slider-index .slide {
    height: 520px;
    background-position: center 35%;
  }

  .slider-index:not(.dubai-hero) .slide__text {
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    text-align: center;
    padding: 0 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .slider-index:not(.dubai-hero) .slide__text_big,
  .slider-index:not(.dubai-hero) .slide__text_big.adv {
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-align: center;
    width: 100%;
    max-width: 92%;
  }

  .slider-index .slide__subtext {
    font-size: clamp(12px, 3.4vw, 15px);
    margin-top: 8px;
    line-height: 1.35;
    text-align: center;
    display: block;
  }

  .slider-index .main-slider-advantage,
  .main-slider-advantage {
    margin: 12px 0 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .slider-index .main-slider-advantage__item,
  .main-slider-advantage__item {
    font-size: 14px;
    line-height: 1.35;
    padding: 7px 10px 7px 38px;
    max-width: min(340px, calc(100% - 8px));
    text-align: left;
    letter-spacing: 0.04em;
  }

  .slider-index .main-slider-advantage__item::before,
  .main-slider-advantage__item::before {
    width: 28px;
    height: 20px;
  }

  /* Hero CTA — pinned to bottom of slide (details / choose a card / choose car) */
  .slider-index .slide > .button.button_theme_slide,
  .home-brand-slider .slide > .button.button_theme_slide {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: min(200px, calc(100% - 48px));
    max-width: 220px;
    min-height: 40px;
    height: auto;
    padding: 8px 22px;
    margin: 0;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.03em;
    border-radius: 20px;
    border-width: 1.5px;
    box-sizing: border-box;
    z-index: 31;
  }

  .home-brand-slider .slide > .button.button_theme_slide {
    bottom: 24px;
    width: min(180px, calc(100% - 48px));
    font-size: 13px;
  }

  .buttons-pages-links {
    bottom: 22px;
    gap: 10px;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .buttons-pages-links a,
  .buttons-pages-links .region-rent-link {
    min-width: 0;
    flex: 1 1 0;
    max-width: 148px;
    font-size: 13px;
    padding: 8px 6px;
    margin-right: 0;
  }

  .slide--101 {
    background-position: center 30% !important;
  }

  .slide--108 {
    background-position: center 30% !important;
  }

  /* Brand banner */
  .slider-index.home-brand-slider .slide {
    height: 340px;
    background-position: center center;
  }

  .home-brand-slider .slide__text.styles-like-main {
    top: 20px;
    width: calc(100% - 30px);
    text-align: left;
  }

  .home-brand-slider .slide__text_big {
    font-size: 15px;
    line-height: 1.3;
    text-transform: uppercase;
  }

  /* Category row — one card, horizontal swipe (homepage only; region pages use 2×2 grid) */
  body.home-page:not(.dubai-page):not(.europe-page) .rent-car__wrapper {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 10px;
    scrollbar-width: none;
  }

  body.home-page:not(.dubai-page):not(.europe-page) .rent-car__wrapper::-webkit-scrollbar {
    display: none;
  }

  body.home-page:not(.dubai-page):not(.europe-page) .rent-car__item {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: center;
    margin-bottom: 0;
  }

  .rent-car__subtitle {
    font-size: 15px;
  }

  /* Text-only blocks */
  .description-main {
    padding: 20px 0 24px !important;
  }

  .description-main .car-description__text {
    font-size: 13px;
    line-height: 1.55;
  }

  .advantages__title.title-main {
    font-size: 22px;
    margin: 28px auto 12px;
    padding: 0 15px;
  }

  .title-main_medium.advantages__name {
    font-size: 15px;
    line-height: 1.35;
    margin-bottom: 10px;
  }

  .advantages__text {
    font-size: 13px;
    line-height: 1.55;
    padding: 0 4px;
  }

  .advantages__item {
    margin-bottom: 22px;
  }

  /* Rental favorites — one car per row */
  .hit-car.catalog-grid .car-single {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0 0 15px;
  }

  .hit-car.catalog-grid .car-single__img {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px !important;
    margin: 20px auto;
    object-fit: contain;
    object-position: center center;
  }

  /* Floating widgets off on mobile */
  .fixed-contact,
  .chat-widget {
    display: none !important;
  }

  /* Rental requirements — stacked, centered */
  .home-page .condition.wrapper {
    flex-direction: column;
    align-items: stretch;
    padding: 0 15px 8px;
    gap: 0;
  }

  .home-page .condition.wrapper .condition__item {
    width: 100%;
    margin: 0;
  }

  .home-page .condition.wrapper .condition__item div {
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
    text-transform: uppercase;
  }

  .home-page .condition.wrapper .condition__item span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
  }

  .home-page .condition__btn {
    margin-bottom: 32px;
  }

  .home-page .condition.wrapper .condition__item div {
    font-size: 12px;
  }

  .home-page .condition.wrapper .condition__item span {
    font-size: 11px;
  }
}

/* Rental requirements — homepage */
.home-page .condition.wrapper .condition__item div {
  padding: 8px 12px;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.45;
}

.home-page .condition.wrapper .condition__item span {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.home-page .condition.wrapper {
  max-width: 900px;
  margin: 0 auto;
  gap: 12px;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .home-page .condition.wrapper {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .home-page .condition.wrapper .condition__item {
    width: 100%;
    max-width: 720px;
    flex: none;
  }

  .home-page .condition.wrapper .condition__item div {
    font-size: 15px;
  }

  .home-page .condition.wrapper .condition__item span {
    font-size: 13px;
  }
}

/* Desktop: compact region pills on hero */
.region-rent-links {
  gap: 12px;
}

.region-rent-link {
  display: inline-block;
  min-width: 148px;
  max-width: 180px;
  font-size: 15px;
  color: #fff;
  font-weight: 400;
  font-family: "Montserrat", sans-serif;
  border-radius: 20px;
  background: transparent;
  border: 2px solid #fff;
  padding: 9px 12px;
  text-align: center;
  text-decoration: none;
  text-transform: lowercase;
  box-sizing: border-box;
  transition: color 0.2s, border-color 0.2s;
}

.region-rent-link:hover {
  color: #fd6c1e;
  border-color: #fd6c1e;
}

/* Europe category catalog pages (SUV / VIP / sports / convertibles) */
.europe-category-page .rent-car__item--active .rent-car__subtitle {
  color: var(--orange, #ff7a22);
  font-weight: 600;
}

.europe-category-page .category-hero .slide__text_big {
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .europe-category-page .category-hero .slide {
    min-height: min(62vh, 520px);
    background-position: center 55% !important;
    background-size: cover !important;
  }

  .europe-category-page .category-hero .slide__text {
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    text-align: center;
    padding: 0 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .europe-category-page .category-hero .slide__text_big {
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-align: center;
    width: 100%;
    max-width: 92%;
  }

  .europe-category-page .category-hero .main-slider-advantage {
    width: 100%;
    align-items: center;
  }

  .europe-category-page .category-hero .main-slider-advantage__item {
    font-size: 14px;
    line-height: 1.35;
    padding: 7px 10px 7px 38px;
    max-width: min(340px, calc(100% - 8px));
    text-align: left;
  }

  .europe-category-page .category-hero .main-slider-advantage__item::before {
    width: 28px;
    height: 20px;
  }

  .europe-category-page .category-hero-cities {
    display: none !important;
  }

  .europe-category-page .rent-car__wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .europe-category-page .rent-car__wrapper {
    grid-template-columns: 1fr;
  }
}
