/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --clr-dark:    #080808;
  --clr-cream:   #f9f7ef;
  --clr-yellow:  #ffda37;
  --clr-accent:  #ffda37;  /* алиас --clr-yellow; используется в vehicle.html */
  --clr-text:    #303030;
  --clr-muted:   rgba(255,255,255,0.75);
  --clr-border:  rgba(8,8,8,0.1);
  --clr-border2: rgba(8,8,8,0.2);

  --font-head: 'Onest', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-w: 1440px;
  --px: 40px;
}

/* ≤480px — все секции переходят на 16px горизонтальный отступ.
   768px и выше сохраняют --px: 40px (дефолт). */
@media (max-width: 480px) {
  :root { --px: 16px; }
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--clr-dark);
  background: #fff;
  font-size: 16px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

address { font-style: normal; }

/* =============================================
   UTILITY
   ============================================= */
.text-accent { color: var(--clr-accent); }

/* =============================================
   LAYOUT HELPERS
   ============================================= */
.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 14px 39px;
  border-radius: 70px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.54px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
}
.btn:hover { opacity: .88; }
.btn:active { opacity: 1; }

.btn--yellow {
  background: var(--clr-yellow);
  color: var(--clr-dark);
}
.btn--outline {
  border: 1.5px solid var(--clr-dark);
  color: var(--clr-dark);
  transition: background .25s ease, color .25s ease;
}
.btn--outline:hover {
  background: var(--clr-dark);
  color: #ffffff;
}
.btn--full { width: 100%; }
.btn--wide { min-width: 436px; }

/* small variant (40px) */
.btn--sm {
  height: 40px;
  font-size: 18px;
  padding: 10px 39px;
}

@media (max-width: 480px) {
  /* min-width: 436px на мобиле шире экрана → горизонтальный overflow.
     Сбрасываем до авто ширины (кнопка растягивается родителем). */
  .btn--wide { min-width: 0; width: 100%; }
}

/* =============================================
   TAGS
   ============================================= */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;   /* не растягиваться на всю ширину родителя */
  padding: 5px 10px;        /* равные отступы по вертикали и горизонтали */
  border-radius: 70px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.14px;
  white-space: nowrap;
}
.tag--border {
  border: 1px solid rgba(8, 8, 8, 1);
  color: rgba(8, 8, 8, 1);
  transition: border-color .25s ease, color .25s ease;
}
.tag--yellow {
  background: var(--clr-yellow);
  opacity: 1;
}

/* =============================================
   LOGO
   ============================================= */
.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.logo__icon { width: 43px; height: 44px; object-fit: contain; }
.logo__text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  white-space: nowrap;
}
.logo--dark .logo__text { color: var(--clr-dark); }

/* =============================================
   SOCIAL / LANG
   ============================================= */
.social-group {
  display: flex;
  align-items: center;
  gap: 10px;
}
.social-link { display: flex; }
.social-link img { width: 30px; height: 30px; object-fit: contain; }

.lang-switch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--clr-yellow);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.65px;
  color: var(--clr-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-switch--dark { background: var(--clr-yellow); }

/* =============================================
   CONTACT LINKS
   ============================================= */
.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  letter-spacing: -0.32px;
  color: #fff;
  text-decoration: underline;
  white-space: nowrap;
}
.contact-link--dark { color: var(--clr-text); }
.contact-link__icon { width: 16px; height: 16px; flex-shrink: 0; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* max-width: 100vw — ограничивает хедер шириной layout viewport (clientWidth).
     left:0; right:0 без width растягивают до innerWidth (включая зону скроллбара).
     100vw в Chrome = clientWidth, поэтому хедер остаётся строго в пределах страницы. */
  max-width: 100vw;
  z-index: 100;
  /* Минимум 40px с каждой стороны; на широких экранах центрируем бар по max-width */
  padding: 0 max(40px, calc((100% - var(--max-w)) / 2));
  pointer-events: none;
}
.header__inner {
  /* Центрирование теперь через padding на .header — здесь только внутренние отступы */
  padding: 0 32px;
  height: 80px;
  background: var(--clr-dark);
  backdrop-filter: blur(3.4px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: auto;
}
.header__left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}
.header__burger img { width: 24px; height: 24px; flex-shrink: 0; }
.header__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__right { flex-shrink: 0; }

/* =============================================
   HEADER — RESPONSIVE
   ============================================= */

/* ≤995px — Figma 768px: бургер + логотип + ТОЛЬКО ТЕЛЕФОН + WA/TG/RU.
   Email скрыт, VK/FB/IG скрыты. Контент полная ширина, padding 0 40px.
   Порог 995px (не 768): при ресайзе десктопного окна ниже 1000px хедер переполняется. */
@media (max-width: 995px) {
  .header { padding: 0; }
  .header__inner {
    height: 76px;
    padding: 0 40px;
    gap: 0;
  }
  .header__left {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .header .logo       { flex-shrink: 0; min-width: 0; }
  .header .logo__text { min-width: 0; white-space: nowrap; }
  .header__right {
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }
  /* Скрываем только email — телефон остаётся (Figma 768px) */
  .contact-link--email       { display: none; }
  /* Скрываем VK / Facebook / Instagram */
  .social-link--desktop-only { display: none; }
}

/* ≤600px — Figma 375px: бургер + логотип + WA/TG/RU. Контакты скрыты полностью.
   Порог 600px (а не 480px): Chrome на macOS минимально ужимается до ~500px,
   поэтому 480px никогда не срабатывало при ресайзе десктопного окна. */
@media (max-width: 600px) {
  .header__inner {
    padding: 0 16px;
  }
  .header__contacts { display: none; }
}

/* =============================================
   NAV OVERLAY
   ============================================= */

/* Burger icon toggle */
.header__burger-icon--close { display: none; }
body.nav-open .header__burger-icon--open  { display: none; }
body.nav-open .header__burger-icon--close { display: block; }

/* Overlay wrapper — прозрачный, те же боковые отступы что у header */
.nav-overlay {
  position: fixed;
  top: 80px; /* высота хедера на десктопе */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  /* Тот же padding что у .header — тёмная панель встаёт точно под хедером */
  padding: 0 max(40px, calc((100% - var(--max-w)) / 2));
  pointer-events: none;
  /* Hidden state */
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: none; /* клики снаружи панели проходят сквозь */
  transform: translateY(0);
}
/* При ≤995px хедер 76px — оверлей стартует на 76px, без зазора */
@media (max-width: 995px) {
  .nav-overlay { top: 76px; }
}

/* Тёмная панель — та же ширина что header__inner */
.nav-overlay__panel {
  background: var(--clr-dark);
  height: 100%;
  overflow-y: auto;
  padding: 40px 32px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  pointer-events: none; /* скрыта → не перехватывает клики на странице */
}
body.nav-open .nav-overlay__panel {
  pointer-events: auto; /* открыта → клики работают */
}

/* --- Left: Nav Menu --- */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-menu__link {
  display: block;
  font-family: 'Onest', sans-serif;
  font-size: 50px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -2.24px;
  color: #fff;
  padding: 32px 0;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-menu__item:first-child .nav-menu__link { padding-top: 0; }
@media (hover: hover) {
  .nav-menu__link:hover { color: var(--clr-yellow); }
}

/* --- Right: Product Cards --- */
.nav-products {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nav-product-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 154px;
  background: #121212;
  padding: 0 31px 0 32px;
  text-decoration: none;
  transition: background 0.15s;
}
@media (hover: hover) {
  .nav-product-card:hover { background: #1c1c1c; }
}
.nav-product-card__name {
  font-family: 'Onest', sans-serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -1.9px;
  color: #fff;
  margin: 0 0 8px;
}
.nav-product-card__cc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.32px;
  color: #e6e6e6;
  margin: 0;
}
.nav-product-card__img {
  width: 98px;
  height: 98px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Нижняя строка — скрыта по умолчанию, показывается только при ≤768px */
.nav-overlay__bottom { display: none; }

/* Nav overlay — 1024px (Figma node 80:2381)
   font: 40px / ls: -1.6px, padding: 32px 40px */
@media (max-width: 1024px) {
  .nav-overlay__panel { padding: 32px 40px; }
  .nav-menu__link {
    font-size: 40px;
    letter-spacing: -1.6px;
  }
}

/* Nav overlay — 768px (Figma node 75:2790)
   Карточки меньше, нижняя строка email+соцсети, padding 32px.
   Порог 995px синхронизирован с хедером. */
@media (max-width: 995px) {
  .nav-overlay__panel {
    padding: 32px;
    align-content: space-between; /* контент вверху, нижняя строка прижата к низу */
  }

  /* Figma 768px: 40px font (уже задан в ≤1024px), но колонка уже — подтверждаем */
  .nav-menu__link {
    font-size: 40px;
    letter-spacing: -1.6px;
  }

  /* Продуктовые карточки: высота auto, отступ 24px, шрифт 30px */
  .nav-product-card {
    height: auto;
    padding: 24px;
  }
  .nav-product-card__name {
    font-size: 30px;
    letter-spacing: -1.5px;
  }
  .nav-product-card__img {
    width: 56px;
    height: 56px;
  }

  /* Нижняя строка: contacts + VK/FB/IG */
  .nav-overlay__bottom {
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    align-items: center;
  }
  .nav-overlay__bottom-contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .nav-overlay__bottom-email,
  .nav-overlay__bottom-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.32px;
    text-decoration: none;
  }
  /* Телефон скрыт при ≤995px — он ещё виден в хедере */
  .nav-overlay__bottom-phone { display: none; }
  .nav-overlay__bottom-social {
    display: flex;
    align-items: center;
    gap: 10px;
  }
}

/* Nav overlay — 375px (Figma node 78:3459)
   Один столбец, панель на всю ширину, меню 28px, карточки 24px.
   Порог 600px синхронизирован с хедером (контакты скрыты). */
@media (max-width: 600px) {
  /* Панель на всю ширину — нет боковых отступов */
  .nav-overlay { padding: 0; }

  .nav-overlay__panel {
    grid-template-columns: 1fr; /* один столбец: меню → карточки → bottom */
    padding: 16px;
  }

  /* Меню: 28px, ls -1.12, отступ 16px */
  .nav-menu__link {
    font-size: 28px;
    letter-spacing: -1.12px;
    padding: 16px 0;
  }

  /* Карточки: gap 16px, padding 24px 16px, название 24px */
  .nav-products { gap: 16px; }
  .nav-product-card { padding: 24px 16px; }
  .nav-product-card__name {
    font-size: 24px;
    letter-spacing: -1.2px;
  }

  /* Телефон показывается — в хедере контакты скрыты */
  .nav-overlay__bottom-phone { display: flex; }
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  background: #080808; /* страховка: если bg-img не покрывает — тёмный фон hero */
  height: 100vh;
  min-height: 640px; /* защита от очень маленьких экранов */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Radial dark gradient overlay (matches Figma) */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 18% 71%,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  /* top: отступ под хедер (80px); bottom: место под табы (191px) + небольшой зазор */
  padding: 80px var(--px) 210px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center; /* контент центрируется в зоне между хедером и табами */
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 741px;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 90px;
  line-height: 1;
  color: #fff;
  letter-spacing: -3.6px;
}

/* Bullet features */
.hero__bullets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}
.hero__bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.32px;
}
.bullet-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--clr-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bullet-icon img { width: 18px; height: 18px; }

/* Category tabs — pinned to bottom of hero, outside of content flow */
.hero__tabs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: stretch; /* неактивные табы — одинаковая высота по самому высокому */
  /* Динамический padding = (viewport - 1360px) / 2, то же что margin:auto у хедера */
  padding: 0 max(var(--px), calc((100% - var(--max-w)) / 2));
}

/* All tabs — default (inactive) state */
.hero__tab {
  flex: 1;
  background: rgba(8,8,8,0.15);
  backdrop-filter: blur(3.4px);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* контент от верха с отступом padding-top */
  gap: 0;
  overflow: hidden;
  min-height: 105px; /* растёт вверх когда текст переносится */
  transition: min-height .3s ease, background .3s ease;
  cursor: pointer;
}

/* Hover — full active state */
.hero__tab:hover {
  background: var(--clr-dark);
  min-height: 191px;
  /* justify-content и gap убраны — они срабатывают мгновенно и вызывают рывок.
     Кнопка прижимается к низу через margin-top: auto (ниже) */
}


/* Row: text + bike icon */
.hero__tab-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Text column */
.hero__tab-texts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.hero__tab-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  color: var(--clr-yellow);
  letter-spacing: -1.4px;
  line-height: 1;
  transition: color .3s ease;
}
/* On hover title turns white */
.hero__tab:hover .hero__tab-title { color: #fff; }

.hero__tab-desc {
  font-size: 16px;
  color: var(--clr-muted);
  letter-spacing: -0.32px;
  line-height: 1.3;
  transition: color .3s ease;
}
.hero__tab:hover .hero__tab-desc { color: #e6e6e6; }

/* Bike icon — no space in inactive, expands on hover */
.hero__tab-pic {
  width: 0;
  height: 50px;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 0;
  position: relative;
  transition: width .3s ease, opacity .25s ease;
}
.hero__tab:hover .hero__tab-pic {
  width: 50px;
  opacity: 1;
}

.hero__tab-pic-inner {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__tab-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Button — collapsed (height:0) by default so it takes NO layout space */
.hero__tab-btn {
  width: 100%;
  font-size: 18px;
  padding: 0 39px;
  flex-shrink: 0;
  margin-top: auto; /* всегда прижата к низу таба — плавно, без рывков */
  /* collapsed state */
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: height .3s ease, opacity .2s ease .05s;
}
.hero__tab:hover .hero__tab-btn {
  height: 40px;
  opacity: 1;
  pointer-events: auto;
}

/* =============================================
   HERO — RESPONSIVE
   ============================================= */

/* 768px — табы переходят в 2×2 grid, фон смещается вправо */
@media (max-width: 768px) {
  .hero {
    min-height: 900px; /* страховка для небольших высот (100vh меньше 900) */
  }
  .hero__bg-img {
    /* Figma: изображение 1280px смещено на 363px влево от рамки 768px
       → object-position: 363/(1280-768) = 70.9% */
    object-position: 71% top;
  }
  .hero__inner {
    /* Figma 768px: h1 стартует в 248px от верха hero (header 80px + 168px gap).
       Снизу — 2 ряда табов × 105px = 210px.
       justify-content: flex-start — контент прибит к padding-top, как в Figma */
    padding-top: 248px;
    padding-bottom: 225px;
    justify-content: flex-start;
  }
  .hero__tabs {
    flex-wrap: wrap;
  }
  .hero__tab {
    flex: 0 0 50%; /* 2 таба на строку, каждый (688px)/2 = 344px — как в Figma */
  }
}

/* 600px и ниже — мобильный Hero (синхронизировано с хедером ≤600px) */
@media (max-width: 600px) {
  .hero {
    height: auto;
    min-height: 100vh;
  }
  .hero__inner {
    /* Figma 375px: h1 стартует в 165px от верха hero (76px header + 89px gap).
       Отступ снизу 89px — пространство между контентом и табами */
    padding: 165px 16px 89px;
    justify-content: flex-start;
  }
  .hero__content { gap: 16px; }
  .hero__title {
    font-size: 40px;
    letter-spacing: -1.6px;
  }
  .hero__tab-title { font-size: 20px; }

  /* Табы — из absolute в normal flow */
  .hero__tabs {
    position: relative;
    bottom: auto; left: auto; right: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0;
  }

  /* Все табы: схлопываются через max-height (корректный collapse без "ghost height") */
  .hero__tab {
    flex: none;
    width: 100%;
    /* min-height задаёт минимум, max-height ограничивает и анимирует collapse */
    min-height: 0;
    max-height: 69px;
    padding: 10px 16px;
    overflow: hidden;
    transition: max-height .3s ease, background .3s ease, padding .3s ease;
  }

  /* Отключаем hover-стили на мобиле (touch не должен залипать) */
  .hero__tab:hover {
    background: rgba(8,8,8,0.15);
    min-height: 0;
    max-height: 69px;
    padding: 10px 16px;
  }
  .hero__tab:hover .hero__tab-title { color: var(--clr-yellow); }
  .hero__tab:hover .hero__tab-desc  { color: var(--clr-muted); }
  .hero__tab:hover .hero__tab-pic   { width: 0; opacity: 0; }
  .hero__tab:hover .hero__tab-btn   { height: 0; opacity: 0; pointer-events: none; margin-top: 0; }

  /* Активный таб — открывается по JS-классу .is-active */
  .hero__tab.is-active {
    background: var(--clr-dark);
    max-height: 200px;
    padding: 16px;
    /* gap между .hero__tab-info и .hero__tab-btn = 16px,
       итого: 16px сверху | контент | 16px gap | кнопка | 16px снизу */
    gap: 16px;
  }
  .hero__tab.is-active .hero__tab-title { color: #fff; }
  .hero__tab.is-active .hero__tab-desc  { color: #e6e6e6; }
  .hero__tab.is-active .hero__tab-pic   { width: 50px; opacity: 1; }
  .hero__tab.is-active .hero__tab-btn {
    height: 40px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 0; /* gap на родителе держит отступ, margin-top: auto убран */
  }

  /* Скрываем pic-контейнер на мобиле в неактивном состоянии через display:none.
     width:0 + overflow:hidden не мешают Chromium считать дочерние 50px-элементы
     в document.scrollWidth → горизонтальный скролл. display:none убирает из layout. */
  .hero__tab-pic { display: none; }
  .hero__tab.is-active .hero__tab-pic { display: flex; }
}

/* =============================================
   BENEFITS
   ============================================= */
.benefits {
  background: var(--clr-cream);
  padding: 90px var(--px);
}
.benefits__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.benefits__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 44px;
  letter-spacing: -0.88px;
  color: var(--clr-dark);
  text-align: center;
  line-height: 1.3;
  max-width: 1000px;
}
@media (max-width: 480px) {
  .benefits { padding: 48px var(--px); }
  .benefits__title {
    font-size: 28px;
    letter-spacing: -0.56px;
  }
}

.benefits__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 9px;
  height: 38px;
  padding: 3px 6px;
  border: 1px solid var(--clr-dark);
  border-radius: 82px;
}
.badge__icon { width: 28px; height: 28px; object-fit: contain; }
.badge__google { width: 31px; height: 32px; object-fit: contain; }
.badge__rating {
  display: flex;
  align-items: center;
  gap: 4px;
}
.badge__text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.48px;
  color: var(--clr-dark);
}
.badge__stars { display: flex; align-items: center; flex-shrink: 0; }
/* SVG звёзд имеет width="100%" (нет фиксированных натуральных размеров).
   Ставим явные px: viewBox=97.8×16.99, при height:17px → width≈98px. */
.badge__stars img { width: 98px; height: 17px; max-width: none; }

/* =============================================
   SECTION TITLE
   ============================================= */
.section-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 60px;
  letter-spacing: -2.4px;
  color: var(--clr-dark);
  line-height: 1;
}
@media (max-width: 480px) {
  /* Figma не содержит мобильного варианта section-title.
     36px — пропорциональное уменьшение от 60px (desktop 1440→mobile 375). */
  .section-title {
    font-size: 36px;
    letter-spacing: -1.44px;
  }
}

/* =============================================
   CATALOG
   ============================================= */
.catalog {
  padding: 80px var(--px);
}
.catalog__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.catalog__inner > .section-title {
  align-self: flex-start;
}

/* padding-left/right для .catalog покрывается глобальным --px: 16px при ≤480px */

.cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}

/* Product Card */
.product-card {
  flex: 1 0 0;
  min-width: 343px;
  background: var(--clr-cream);
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 24px;
  transition: background .25s ease, border-color .25s ease;
  cursor: pointer;
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 437 / 327;
  overflow: hidden;
}
.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .35s ease;
}
.product-card__img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.product-card:hover .product-card__img--normal {
  opacity: 0;
}
.product-card:hover .product-card__img--hover {
  opacity: 1;
}
.product-card__view-btn {
  position: absolute;
  top: 16px;
  right: 17px;
  width: 32px;
  height: 32px;
  background: var(--clr-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s;
}
.product-card__view-btn:hover { transform: scale(1.1); }
.product-card__view-btn img { width: 24px; height: 24px; }

.product-card__info {
  display: flex;
  flex-direction: column;
  flex: 1;                      /* занять всю оставшуюся высоту карточки */
  justify-content: space-between; /* прибить footer к низу */
  gap: 16px;
  padding: 0 24px;
}
.product-card__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}
/* Строка: название + More details */
.product-card__name-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.product-card__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -1.4px;
  color: var(--clr-dark);
  line-height: 1.1;
  flex: 1;
  transition: color .25s ease;
}
.product-card__more {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.14px;
  color: #303030;
  text-decoration: underline;
  white-space: nowrap;
  padding-top: 4px;
  flex-shrink: 0;
  transition: color .25s ease;
}

.product-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.product-card__price {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.product-card__amount {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -1.8px;
  color: var(--clr-dark);
  line-height: 1;
  transition: color .25s ease;
}
.product-card__unit {
  display: flex;
  flex-direction: column;
  padding-top: 2px; /* компенсация разницы cap-height: (30−14)×0.1529 ≈ 2.45px */
  line-height: 1;
}
.product-card__currency {
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-dark);
  transition: color .25s ease;
}
.product-card__per {
  font-size: 11px;
  font-weight: 400;
  color: var(--clr-dark);
  transition: color .25s ease;
}
.product-card .btn--yellow {
  width: 200px;
  height: 50px;
}

/* --- Hover state --- */
.product-card:hover {
  background: #080808;
  border-color: #080808;
}
.product-card:hover .product-card__name {
  color: #ffffff;
}
.product-card:hover .product-card__amount,
.product-card:hover .product-card__currency,
.product-card:hover .product-card__per {
  color: #ffffff;
}
/* Бейдж и More Details: цветовой стиль Figma "white 75%" = rgba(255,255,255,0.75) */
.product-card:hover .tag--border {
  border-color: rgba(255, 255, 255, 0.75);
  color: rgba(255, 255, 255, 0.75);
}
.product-card:hover .product-card__more {
  color: rgba(255, 255, 255, 0.75);
}
/* BOOK NOW — не меняется согласно Figma */

/* =============================================
   NEWS
   ============================================= */
.news {
  padding: 64px var(--px) 0;
}
.news__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
/* Кнопка внутри news__inner — auto-ширина, центрирована */
.news__inner > .btn {
  align-self: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-card {
  border-bottom: 1px solid var(--clr-dark);
  padding: 0 16px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.news-card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
/* Тело карточки: grid-template-areas для управления порядком на разных экранах */
/* Desktop: title + read more — левый столбец (300fr), description — правый (344fr) */
/* Mobile:  title → description → read more (логичный порядок чтения) */
.news-card__body {
  display: grid;
  grid-template-columns: 300fr 344fr;
  grid-template-areas:
    "title desc"
    "read  desc";
  column-gap: 8px;
  row-gap: 8px;
  align-items: start;
}
.news-card__title { grid-area: title; }
.news-card__desc  { grid-area: desc; }
.news-card__read  { grid-area: read; }

.news-card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -1.4px;
  color: var(--clr-dark);
  line-height: 1.2;
}
.news-card__read {
  font-size: 16px;
  color: var(--clr-text);
  text-decoration: underline;
  align-self: start;
}
.news-card__desc {
  font-size: 16px;
  color: var(--clr-text);
  line-height: 1.4;
}

@media (max-width: 767px) {
  .news-grid {
    grid-template-columns: 1fr;
    /* gap: 24px остаётся — это эталонный отступ сверху (линия → дата) */
  }
  .news-card {
    padding-bottom: 24px; /* = grid gap → симметрия: 24px над датой, 24px под Read More */
  }
  .news-card__body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "desc"
      "read";
  }
}

/* =============================================
   REVIEWS
   ============================================= */
.reviews {
  position: relative;
  padding: 80px var(--px) 0;
  overflow: hidden;
}
.reviews__quote-img {
  position: absolute;
  top: -10px;
  right: 37px;
  width: 627px;
  height: 463px;
  pointer-events: none;
  z-index: 0;
}
.reviews__quote-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.reviews__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.reviews__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.reviews__header-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 300px;
}
.reviews__nav {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
  padding-top: 10px;
}
.reviews__nav-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--clr-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.reviews__nav-btn:hover { background: var(--clr-dark); }
.reviews__nav-btn:hover img { filter: invert(1); }
.reviews__nav-btn img { width: 20px; height: 20px; object-fit: contain; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.review-card {
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -1.4px;
  color: var(--clr-dark);
  line-height: 1;
}
.review-card__text {
  font-size: 16px;
  letter-spacing: -0.32px;
  color: var(--clr-text);
  line-height: 1.3;
  flex: 1;
}
.review-card__author {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.review-card__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.review-card__avatar-placeholder {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clr-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}
.review-card__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.32px;
  color: var(--clr-text);
}

@media (max-width: 1023px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .reviews__nav { display: none; }
}

/* =============================================
   FAQ
   ============================================= */
.faq {
  padding: 64px var(--px) 80px;
}
.faq__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  border: 1px solid var(--clr-dark);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__item {
  border-bottom: 1px solid rgba(8, 8, 8, 0.15);
}
.faq__item:last-child {
  border-bottom: none;
}
.faq__item:last-child .faq__summary { padding-bottom: 0; }
details[open].faq__item:last-child .faq__summary { padding-bottom: 8px; }
.faq__item:last-child .faq__answer { padding-bottom: 0; }
.faq__summary {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 0 0 16px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq__summary::-webkit-details-marker { display: none; }
details[open] .faq__summary { padding-bottom: 8px; }

.faq__question {
  flex: 1;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -1.4px;
  color: var(--clr-dark);
  line-height: 1;
}

.faq__toggle {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--clr-dark);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
  transition: background .2s ease;
}
/* hover: hover — только устройства с мышью (десктоп).
   Touch-устройства (телефоны, планшеты) не получают инверсию цвета при клике. */
@media (hover: hover) {
  .faq__summary:hover .faq__toggle { background: var(--clr-dark); }
}
.faq__toggle::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 1.5px;
  background: var(--clr-dark);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background .2s ease;
}
@media (hover: hover) {
  .faq__summary:hover .faq__toggle::before { background: #fff; }
}
.faq__toggle::after {
  content: '';
  position: absolute;
  width: 1.5px;
  height: 10px;
  background: var(--clr-dark);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background .2s ease, opacity .2s ease;
}
@media (hover: hover) {
  .faq__summary:hover .faq__toggle::after { background: #fff; }
}
details[open] .faq__toggle::after { opacity: 0; }

.faq__answer {
  padding: 0 0 16px 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.32px;
  color: var(--clr-text);
  line-height: 1.3;
}

/* FAQ responsive */
@media (max-width: 1023px) {
  .faq__inner { padding: 24px; }
}
@media (max-width: 767px) {
  .faq { padding: 48px var(--px) 64px; }
  .faq__inner { padding: 20px; gap: 24px; }
  .faq__summary { padding: 0 0 16px 0; }
  details[open] .faq__summary { padding-bottom: 8px; }
  .faq__answer { padding: 0 0 16px 0; }
}
@media (max-width: 375px) {
  .faq { padding: 40px var(--px) 56px; }
  .faq__inner { padding: 16px; gap: 20px; }
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #f9f7ee;
  padding: 32px var(--px);
  overflow-x: hidden;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Topbar */
.footer__topbar {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(8,8,8,0.15);
  border-bottom: 1px solid rgba(8,8,8,0.15);
}
.footer__social {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__contacts {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Main: links + divider + form */
.footer__main {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  padding: 16px 0;
}
.footer__left {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 16px 24px 16px 0;
}
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 9px 48px;
}
.footer__nav a {
  font-size: 16px;
  letter-spacing: -0.32px;
  color: var(--clr-text);
  transition: color .2s;
}
.footer__nav a:hover { color: var(--clr-dark); text-decoration: underline; }
.footer__address {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer__addr-icon { flex-shrink: 0; }
.footer__address span {
  font-size: 16px;
  letter-spacing: -0.32px;
  color: var(--clr-text);
}
.footer__divider {
  width: 1px;
  background: rgba(8,8,8,0.15);
  align-self: stretch;
}

/* Form */
.footer__form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0 16px 24px;
}
.footer__form-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -1.4px;
  color: var(--clr-dark);
  line-height: 1;
}
.footer__form-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__fields-row {
  display: flex;
  gap: 8px;
}
.footer__input {
  flex: 1;
  height: 40px;
  border: 1px solid #e0ddd1;
  border-radius: 4px;
  padding: 0 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--clr-dark);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}
.footer__input:focus { border-color: var(--clr-dark); }
.footer__input::placeholder { color: rgba(0,0,0,0.35); }
.footer__textarea {
  width: 100%;
  height: 90px;
  border: 1px solid #e0ddd1;
  border-radius: 4px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--clr-dark);
  background: #fff;
  outline: none;
  resize: none;
  transition: border-color .2s;
}
.footer__textarea:focus { border-color: var(--clr-dark); }
.footer__textarea::placeholder { color: rgba(0,0,0,0.35); }
.footer__submit {
  width: 200px;
  height: 50px;
  background: #ffda36;
  border-radius: 70px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.54px;
  color: var(--clr-dark);
  cursor: pointer;
  transition: opacity .2s;
}
.footer__submit:hover { opacity: .85; }

/* Bottom bar */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(8,8,8,0.15);
}
.footer__copy,
.footer__credits {
  font-size: 12px;
  letter-spacing: -0.24px;
  color: var(--clr-dark);
}

/* Footer responsive */
@media (max-width: 1023px) {
  .footer__nav { gap: 9px 32px; }
}
@media (max-width: 767px) {
  .footer__topbar { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .footer__social { flex: none; }
  .footer__contacts { flex: none; justify-content: center; flex-wrap: wrap; }
  /* убираем внешний padding main — дочерние блоки сами держат свой 16px */
  .footer__main { grid-template-columns: 1fr; padding: 0; }
  .footer__divider { width: 100%; height: 1px; align-self: auto; }
  .footer__left { padding: 16px 0; }
  .footer__form-wrap { padding: 16px 0; }
  /* равные столбцы для ссылок */
  .footer__nav { grid-template-columns: 1fr 1fr; gap: 9px 16px; }
  /* инпуты стекуются вертикально с одинаковым gap */
  .footer__fields-row { flex-direction: column; gap: 16px; }
  /* flex:1 схлопывает height в column-direction — фиксируем */
  .footer__input { flex: none; width: 100%; }
}
/* ≤374px — очень маленькие экраны (меньше 375px).
   На 375px (Figma-дизайн) nav остаётся 2-колоночным из правила ≤767px выше */
@media (max-width: 374px) {
  .footer { padding: 24px var(--px); }
  .footer__social { flex-wrap: wrap; justify-content: center; }
  .footer__nav { grid-template-columns: 1fr; }
  .footer__submit { width: 100%; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}


/* =============================================================
   VEHICLE PAGE  (vehicle.html)
   ============================================================= */

/* ---- Vehicle Hero (dark section) ---- */
.vehicle-hero {
  background: var(--clr-dark);
  padding-top: 80px; /* compensate for fixed header */
}
.vehicle-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 max(var(--px), calc((100% - var(--max-w)) / 2));
}

/* ---- Image Slider ---- */
.vehicle-slider {
  position: relative;
  overflow: hidden;  /* clip sliding images */
}
.vehicle-slider__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.vehicle-slider__slide {
  flex-shrink: 0;
  width: 100%;
}
.vehicle-slider__slide img {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
}

/* Gradient overlay at TOP of image — хлебные крошки и название сверху */
.vehicle-slider__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: linear-gradient(to bottom,
    rgba(8, 8, 8, 0.92) 0%,
    rgba(8, 8, 8, 0.60) 40%,
    transparent 100%);
  /* Figma: Breadcrumb Container paddingTop=16 */
  padding: 16px 40px 56px;
}

/* Bottom gradient overlay: dark shadow rising from bottom of slider */
.vehicle-slider__gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to top,
    rgba(8, 8, 8, 0.80) 0%,
    transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* Breadcrumbs */
/* Figma: Breadcrumbs frame pad=0/40/0/7 — left indent=7px relative to title */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-bottom: 10px;
  padding-left: 7px;
}
/* Figma: all breadcrumb items fill=rgba(255,218,54) — all yellow */
.breadcrumbs__link {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--clr-accent);
  text-decoration: none;
  transition: opacity 0.15s;
}
@media (hover: hover) {
  .breadcrumbs__link:hover { opacity: 0.75; }
}
.breadcrumbs__sep {
  font-size: 12px;
  color: rgba(255, 218, 54, 0.5);
}
.breadcrumbs__current {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--clr-accent);
}

/* Product info (name + category) — 3D button is absolute, not in this flow */
.vehicle-hero__info {
  display: block;
}
/* Figma: Product Title sz=90, fw=600, lh=90, gap=0 after */
.vehicle-hero__name {
  font-family: var(--font-head);
  font-size: 90px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  letter-spacing: -3.6px;
  margin: 0;
}
/* Figma: Scooter CC Text sz=28, fw=600, lh=28, fill=rgba(255,255,255,0.75) */
.vehicle-hero__category {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
  margin: 0;
  padding: 0 4px;
  display: block;
}
.vehicle-hero__3d-btn {
  position: absolute;
  top: 50px;
  right: 50px;
  z-index: 4;
  width: 60px;
  height: 60px;
  background: var(--clr-accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.15s;
}
@media (hover: hover) {
  .vehicle-hero__3d-btn:hover { background: #e6b800; transform: scale(1.1); }
}

/* Prev / Next arrows */
.vehicle-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (hover: hover) {
  .vehicle-slider__arrow:hover { background: rgba(255, 255, 255, 0.30); }
}
.vehicle-slider__arrow--prev { left: 20px; }
.vehicle-slider__arrow--next { right: 20px; }

/* Dot navigation */
.vehicle-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  min-height: 38px; /* reserve space even when JS hasn't run */
}
.vehicle-slider__dot {
  width: 14px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background 0.3s ease;
}
.vehicle-slider__dot.is-active {
  width: 56px;
  background: var(--clr-accent);
}

/* ---- Details: 3-column grid ---- */
.vehicle-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: "desc specs booking";
  gap: 0;
  padding: 40px 0 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.vehicle-description { grid-area: desc;    padding-right: 32px; }
.vehicle-specs       { grid-area: specs;   padding: 0 32px; }
.vehicle-booking     { grid-area: booking; padding-left: 32px; }

.vehicle-details__title {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -1.4px;
  line-height: 1;
  margin: 0 0 24px;
}
/* Figma: sz=16, fw=400, fill=rgba(255,255,255,1.0) — полностью белый */
.vehicle-details__text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 1.0);
  line-height: 1.65;
  margin: 0;
}

/* Tech Specs list */
.specs-list {
  display: flex;
  flex-direction: column;
}
/* Figma: строки с тонким разделителем 1px rgba(25,25,25) */
.specs-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(25, 25, 25, 1.0);
}
/* Figma: sz=16, fw=400, fill=rgba(255,255,255,1.0) — оба столбца белые */
.specs-row__label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 1.0);
  flex: 0 0 170px;
}
.specs-row__value {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 1.0);
  text-align: right;
  flex: 1 1 0;
}
/* Figma: section headers (Engine / Transmission / Frame) — yellow, 2px border-bottom rgba(38,38,38) */
.specs-section-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--clr-accent);
  letter-spacing: 0;
  text-transform: none;
  margin: 16px 0 0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(38, 38, 38, 1.0);
}
.specs-row--hidden { display: none; }

.vehicle-specs__more-btn {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}
@media (hover: hover) {
  .vehicle-specs__more-btn:hover { opacity: 0.75; }
}

/* Book Now column — dark card (transparent bg) with yellow border, r=53px */
/* Figma: fill=none, stroke=rgba(255,218,54), cornerRadius=53, pad=16/32/32/32 */
.vehicle-booking__card {
  background: transparent;
  border: 1.5px solid var(--clr-accent);
  border-radius: 53px;
  padding: 16px 32px 32px;
}

/* Top row: [Starting from:] [350 THB /day] — горизонтально */
.vehicle-booking__top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 0 8px;
}
/* "Starting from:" — Figma: sz=18, fw=700, rgba(255,255,255,0.75), textCase=UPPER, 2 строки */
.vehicle-booking__label {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 96px;
  margin: 0;
  flex-shrink: 0;
}
/* Price row: "350" + "THB\n/day" */
.vehicle-booking__price-row {
  display: flex;
  align-items: center;
  gap: 7px;
}
/* "350" — Figma: 70px, weight 600, yellow */
.vehicle-booking__amount {
  font-family: var(--font-head);
  font-size: 70px;
  font-weight: 600;
  color: var(--clr-accent);
  line-height: 1;
  letter-spacing: -2.8px;
}
/* "THB\n/day" — Figma: 24px, weight 600, yellow, single text with line break */
/* line-height: 35px → 2 строки × 35 = 70px = высота amount на десктопе */
.vehicle-booking__unit {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  color: var(--clr-accent);
  line-height: 35px;
}

/* Pill button — Figma: h=80px, r=100px, textCase=UPPER, 32px 700 dark */
.vehicle-booking__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 80px;
  background: var(--clr-accent);
  color: #080808;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.64px;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 24px;
  transition: background 0.15s;
}
@media (hover: hover) {
  .vehicle-booking__btn:hover { background: #e6b800; }
}

/* Bullets — Figma: white text, 16px, gap=16 */
.vehicle-booking__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vehicle-booking__bullet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  line-height: 1.4;
}
.vehicle-booking__bullet img {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- Delivery Conditions ---- */
.vehicle-conditions {
  background: #fff;
  padding: 80px var(--px);
}
.vehicle-conditions__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
/* Figma: gap between header and cards = 24px */
.vehicle-conditions__header { margin-bottom: 24px; }
.vehicle-conditions__title {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 600;
  color: var(--clr-dark);
  letter-spacing: -2px;
  line-height: 1;
  margin: 0 0 8px;
}
.vehicle-conditions__subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(48, 48, 48, 0.55);
  margin: 0;
}
.vehicle-conditions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.conditions-box {
  background: var(--clr-cream);
  border: 1px solid rgba(48, 48, 48, 0.12);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Figma: Icon Container fill=rgba(8,8,8) — чёрный фон, yellow icon внутри */
.conditions-box__icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #080808;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.conditions-box__text {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 500;
  color: var(--clr-dark);
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.48px;
}

/* ---- Similar Models: always show exactly 3 cards ---- */
.cards-grid--3 {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* ================================================================
   VEHICLE PAGE — RESPONSIVE
   ================================================================ */

/* ≤995px: tablet — Book Now goes full width, desc+specs side by side */
@media (max-width: 995px) {
  .vehicle-slider__slide img { height: 400px; }
  .vehicle-slider__overlay   { padding: 20px 32px 48px; }

  .vehicle-details {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "booking booking"
      "desc    specs";
    gap: 40px;
    padding: 32px 0 48px;
  }
  .vehicle-description { padding-right: 0; }
  .vehicle-specs       { padding: 0; }
  .vehicle-booking     { padding-left: 0; }

  .vehicle-conditions__title { font-size: 32px; }
  .conditions-box__text      { font-size: 20px; }

  .cards-grid--3 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ≤600px: mobile */
@media (max-width: 600px) {
  .vehicle-hero { padding-top: 76px; } /* mobile header = 76px */

  .vehicle-slider__slide img { height: 260px; }
  .vehicle-slider__overlay   { padding: 16px 20px 16px; }
  .vehicle-hero__name        { font-size: 28px; letter-spacing: -0.56px; }
  .vehicle-hero__category    { font-size: 14px; padding: 0; }
  .vehicle-hero__3d-btn      { width: 44px; height: 44px; top: 16px; right: 16px; }
  .vehicle-hero__3d-btn img  { width: 22px; height: 22px; }

  .vehicle-details {
    grid-template-columns: 1fr;
    grid-template-areas:
      "booking"
      "desc"
      "specs";
    gap: 32px;
    padding: 24px 0 40px;
  }
  .vehicle-description { padding-right: 0; }
  .vehicle-specs       { padding: 0; }
  .vehicle-booking     { padding-left: 0; }

  .vehicle-booking__btn    { height: 60px; font-size: 22px; }
  .vehicle-booking__amount { font-size: 48px; }
  /* font-size 16px с line-height 24px: 2 строки × 24px = 48px = высота amount;
     уменьшенный шрифт даёт воздух внутри строки — глифы не выходят за бокс */
  .vehicle-booking__unit   { font-size: 16px; line-height: 22px; }

  .vehicle-conditions        { padding: 48px 16px; }
  .vehicle-conditions__title { font-size: 26px; }
  .vehicle-conditions__grid  { grid-template-columns: 1fr; }
  .conditions-box            { padding: 24px; }
  .conditions-box__text      { font-size: 18px; }

  .cards-grid--3 { grid-template-columns: 1fr !important; }
}


/* ============================================================
   SCROLL-TO-TOP BUTTON
   Figma: круглая жёлтая кнопка над sticky bar, справа
   ============================================================ */
.scroll-top-btn {
  position: fixed;
  /* bar h=81px + зазор 12px */
  bottom: calc(81px + 12px);
  /* выравниваем с правым краем pill-блока (40px от края viewport) */
  right: max(var(--px), calc((100vw - 1440px) / 2 + var(--px)));
  z-index: 201;

  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--clr-accent);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (hover: hover) {
  .scroll-top-btn:hover { background: #e6b800; }
}


/* ============================================================
   STICKY BOTTOM BAR
   Figma: 7:1955 "product plate that sticks to the bottom"
   w=1360 h=81 fill=#080808 — НЕ full-bleed, 40px по бокам
   ============================================================ */

/*
  Внешний враппер: fixed, полная ширина, без фона — только для позиционирования.
  Сам бар (.sticky-bar) как элемент с фоном ограничен шириной контента.
*/
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 200;

  /* Figma: bar w=1360px в 1440px-контейнере → 40px отступы по бокам */
  width: calc(100% - 80px);
  max-width: 1360px;
  height: 81px; /* Figma: h=81 */

  background: var(--clr-dark); /* Figma: fill rgba(8,8,8) */

  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Figma: paddingRight=8, нет left padding (изображение встык к левому краю) */
  padding-right: 8px;

  /* Скрыт: выезжает вниз */
  transform: translateX(-50%) translateY(100%);
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky-bar.is-visible {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ---- Левая часть: фото + имя + категория ---- */
/* Figma: 'Product info' HORIZONTAL gap=24, h=81 (full height) */
.sticky-bar__product {
  display: flex;
  align-items: center;
  gap: 24px; /* Figma: gap=24 */
  height: 100%;
}

/*
  Figma: 'Product image container' w=131 h=81
  cornerRadii = [3.36, 3.36, 0, 0] — только верхние углы
  Изображение занимает полную высоту плашки без отступов
*/
.sticky-bar__img-wrap {
  width: 131px;
  height: 81px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 3px 3px 0 0; /* top corners only */
}
.sticky-bar__img {
  width: 131px;
  height: 81px;
  object-fit: cover;
  display: block;
}

/* Figma: 'Frame 156' VERTICAL layout */
.sticky-bar__meta {
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* Figma: 'Product name' Onest 600 28px lh=28 ls=-1.4 white */
.sticky-bar__name {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  line-height: 28px;
  letter-spacing: -1.4px;
  margin: 0;
  white-space: nowrap;
}
/* Figma: 'Product name' (category) Inter 400 16px lh=20.8 ls=-0.32 fill opacity=0.75 */
.sticky-bar__cat {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75); /* Figma: fill opacity=0.75 */
  line-height: 20.8px;
  letter-spacing: -0.32px;
  margin: 0;
  white-space: nowrap;
}

/* ---- Правая часть: pill с ценой и кнопкой ---- */
/*
  Figma: 'Booking info' HORIZONTAL gap=8
  w=426 h=66 stroke=1px yellow, cornerRadius=50
  padding T=8 R=8 B=8 L=24
*/
.sticky-bar__pill {
  display: flex;
  align-items: center;
  gap: 8px; /* Figma: gap=8 */
  flex-shrink: 0;

  height: 66px; /* Figma: h=66 */
  border: 1px solid var(--clr-accent); /* Figma: stroke yellow 1px */
  border-radius: 50px; /* Figma: cornerRadius=50 */
  padding: 8px 8px 8px 24px; /* Figma: T=8 R=8 B=8 L=24 */
}

/*
  Figma: 'Price container' HORIZONTAL gap=4, paddingRight=10
  содержит: Starting from + 350 + THB/day
*/
.sticky-bar__price-block {
  display: flex;
  align-items: center;
  gap: 4px; /* Figma: gap=4 */
  padding-right: 10px; /* Figma: R=10 */
}

/*
  Figma: 'Book Now Info' VERTICAL crossAxis=MAX (правовыравненный)
  Inter 700 12px UPPER ls=0.36, lh=14.4, w=64 pad L=4 R=4
  fill opacity=0.75 → rgba(255,255,255,0.75)
*/
.sticky-bar__from {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75); /* Figma: fill opacity=0.75 */
  text-transform: uppercase;
  letter-spacing: 0.36px;
  line-height: 14.4px;
  text-align: right; /* Figma: crossAxis=MAX */
  padding: 0 4px;
  white-space: nowrap;
}

/* Figma: 'Price' Inter 600 34px yellow ls=-2.04 */
.sticky-bar__amount {
  font-family: var(--font-body);
  font-size: 34px;
  font-weight: 600;
  color: var(--clr-accent);
  line-height: 28px; /* Figma: h=28 */
  letter-spacing: -2.04px;
}

/*
  Figma: 'Currency info' Inter 600 16px yellow lh=16 paddingBottom=5
  Текст 'THB /day' — два слова в узком контейнере (33px) → 2 строки
*/
.sticky-bar__unit {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--clr-accent);
  line-height: 16px; /* Figma: lh=16 */
  padding-bottom: 5px; /* Figma: paddingBottom=5 */
  text-align: left;
}

/*
  Figma: 'Booking button' INSTANCE w=200 h=50
  fill yellow, cornerRadius=70, pad T=14 R=39 B=14 L=39
  Inter 700 18px UPPER ls=0.54 color=#080808
*/
.sticky-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-dark);
  text-transform: uppercase;
  letter-spacing: 0.54px;
  white-space: nowrap;

  background: var(--clr-accent);
  border-radius: 70px;
  padding: 0 39px;
  height: 50px;
  flex-shrink: 0;
}
@media (hover: hover) {
  .sticky-bar__btn:hover { background: #e6b800; }
}

/* ---- ≤995px: full-bleed, как header (синхронизировано) ---- */
@media (max-width: 995px) {
  .sticky-bar {
    left: 0;
    width: 100%;
    /* убираем translateX, анимируем только translateY */
    transform: translateY(100%);
  }
  .sticky-bar.is-visible {
    transform: translateY(0);
  }
  .scroll-top-btn {
    right: 40px; /* padding хедера при ≤995px */
  }
}

/* ---- ≤800px: прячем превью байка, шрифты не трогаем ---- */
@media (max-width: 800px) {
  .sticky-bar     { height: auto; min-height: 81px; padding: 0 8px; }
  .sticky-bar__img-wrap { display: none; }
  .scroll-top-btn { right: 16px; bottom: calc(81px + 10px); width: 40px; height: 40px; }
}

/* ---- ≤600px: только pill с ценой и кнопкой ---- */
@media (max-width: 600px) {
  .sticky-bar          { height: auto; min-height: 81px; padding: 0 8px; justify-content: center; }
  .sticky-bar__product { display: none; }
  /* "Book Now" → "Book": скрываем " Now" чтобы влезло на 375px */
  .sticky-bar__btn-now { display: none; }
  /* THB/day: 2 строки × 14px = 28px = высота цены (line-height: 28px) */
  .sticky-bar__unit    { font-size: 12px; line-height: 14px; }
  .scroll-top-btn      { right: 12px; bottom: calc(81px + 8px); width: 36px; height: 36px; }
}
