/* ══════════════════════════════════════════════════
   JJ BIKE BANGKOK — Styles
   ══════════════════════════════════════════════════ */

:root {
  --bg:         #0c0d0f;
  --bg-alt:     #121316;
  --surface:    #17191d;
  --surface-2:  #1e2127;
  --line:       rgba(255,255,255,.09);
  --line-soft:  rgba(255,255,255,.055);

  --text:       #f2f3f5;
  --text-2:     #a7acb5;
  --text-3:     #6e747e;

  --accent:     #ff6a1a;
  --accent-2:   #ff9150;
  --accent-dim: rgba(255,106,26,.14);

  --radius:     14px;
  --radius-lg:  22px;
  --maxw:       1180px;
  --pad:        clamp(18px, 5vw, 40px);

  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-disp:  'Barlow Condensed', 'Inter', sans-serif;

  --ease:       cubic-bezier(.22,.61,.36,1);
}

body[data-lang="th"] { --font: 'Noto Sans Thai', 'Inter', sans-serif; }
body[data-lang="ko"] { --font: 'Noto Sans KR', 'Inter', sans-serif; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; }
p  { margin: 0; }
dl, dd { margin: 0; }

::selection { background: var(--accent); color: #fff; }

.ico { width: 22px; height: 22px; flex: none; }

/* ─── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); }

.btn-ghost   { background: rgba(255,255,255,.06); color: var(--text);
               border-color: var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-lg  { padding: 16px 32px; font-size: 15px; }
.btn-sm  { padding: 9px 18px;  font-size: 13px; }
.btn-block { display: flex; width: 100%; }

/* ─── Nav ─────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--pad);
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(12,13,15,.84);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { width: 38px; height: 38px; }
.hero-logo {
  width: clamp(64px, 9vw, 86px); height: auto;
  margin-bottom: 20px;
  width: clamp(64px, 9vw, 86px); height: auto;
}
.nav-logo-text {
  font-family: var(--font-disp);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
}
.nav-logo-text em {
  display: block;
  font-family: var(--font);
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 3px;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  position: relative;
  font-size: 14px;
  color: var(--text-2);
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-widget { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: var(--text-3);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.lang-btn:hover { border-color: var(--line); color: var(--text-2); }
.lang-btn > svg:first-child { width: 14px; height: 14px; opacity: .5; }
.lang-arrow { width: 9px; height: 9px; transition: transform .3s var(--ease); }
.lang-widget.open .lang-arrow { transform: rotate(180deg); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 168px; z-index: 100;
  background: rgba(23,25,29,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 44px rgba(0,0,0,.55);
  overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.lang-widget.open .lang-menu { opacity: 1; visibility: visible; transform: none; }

.lang-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px;
  border: 0; background: none; text-align: left; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--text-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.lang-option:hover { background: rgba(255,255,255,.06); color: var(--text); }
.lang-option.is-on { color: var(--text); }
.lang-option-flag { font-size: 16px; line-height: 1; }
.lang-option-check { margin-left: auto; font-size: 11px; color: var(--accent); }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  cursor: pointer;
  position: relative;
}
.nav-burger span {
  position: absolute;
  left: 11px; width: 18px; height: 1.6px;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-burger span:nth-child(1) { top: 16px; }
.nav-burger span:nth-child(2) { top: 22px; }
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ─── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px var(--pad) clamp(56px, 10vh, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 7s linear;
}
.hero-slide.is-on { opacity: 1; transform: scale(1); }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  /* Затемняем только низ и левый край — там лежат заголовок и кнопки.
     Верх и правая часть кадра остаются видимыми, иначе фон превращается
     в чёрный прямоугольник и его незачем было грузить. */
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(12,13,15,.72) 28%, rgba(12,13,15,.12) 72%, transparent 100%),
    linear-gradient(to right, rgba(12,13,15,.70), rgba(12,13,15,.10) 58%, transparent 80%);
}

.hero-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }

.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(44px, 9vw, 104px);
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
body[data-lang="th"] .hero-title,
body[data-lang="ko"] .hero-title {
  font-family: var(--font);
  font-size: clamp(32px, 6.4vw, 72px);
  font-weight: 600;
  text-transform: none;
  line-height: 1.22;
}
.hero-sub {
  max-width: 48ch;
  font-size: clamp(15px, 1.9vw, 18px);
  color: var(--text-2);
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }


.hero-scroll {
  position: absolute;
  right: var(--pad); bottom: clamp(56px, 10vh, 96px);
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3);
}
.hero-scroll-line { display: block; width: 44px; height: 1px; background: var(--text-3); }

/* ─── Section shell ───────────────────────────── */
.section { padding: clamp(68px, 11vh, 120px) var(--pad); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: var(--maxw); margin: 0 auto clamp(36px, 5vh, 56px); }
.section-label {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
}
.section-label::before {
  content: ''; width: 26px; height: 1px; background: var(--accent); flex: none;
}
.section-title {
  font-size: clamp(27px, 4.2vw, 44px);
  letter-spacing: -.015em;
  max-width: 20ch;
}
.section-sub {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--text-2);
  font-size: clamp(14px, 1.7vw, 16px);
}

/* ─── Reveal ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ─── Fleet ───────────────────────────────────── */
.fleet-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  /* Без этого grid тянет карточку на высоту самой высокой в ряду, а flex-колонка
     внутри растягивает медиа-блок — получаются башни с пустотой посередине. */
  align-items: start;
}
.bike {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.bike:hover { border-color: var(--line); transform: translateY(-4px); }

.bike-media {
  position: relative;
  flex: none;                 /* иначе flex-колонка растягивает его и ломает aspect-ratio */
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 70% 0%, rgba(255,106,26,.16), transparent 60%),
    var(--surface-2);
}
.bike-media img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
}
/* Заглушка лежит под фото: есть фото — его не видно, нет или не загрузилось — видно её. */
.bike-ph {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--text-3);
}
.bike-ph svg { width: 46%; max-width: 120px; height: auto; opacity: .55; }
.bike-ph span {
  font-family: var(--font-disp); font-size: 15px; font-weight: 700;
  letter-spacing: .08em; opacity: .75;
}
.bike-ph span i { font-style: normal; font-size: 10px; margin-left: 2px; }
.bike-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px; font-weight: 600;
  letter-spacing: .04em;
}

.bike-body { display: flex; flex-direction: column; gap: 14px; padding: 20px; flex: 1; }
.bike-name { font-size: 19px; }
.bike-meta {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  font-size: 12px; color: var(--text-3);
}
.bike-meta span + span::before { content: '·'; margin-right: 8px; }


/* ─── Steps ───────────────────────────────────── */
.steps {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.step-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-disp);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: .9;
}
.step h3 { font-size: 17px; margin-bottom: 9px; }
.step p  { font-size: 14px; color: var(--text-2); }

/* ─── Requirements ────────────────────────────── */
.req-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.req {
  padding: 22px 0 0;
  border-top: 2px solid var(--accent);
}
.req h3 { font-size: 16px; margin-bottom: 8px; }
.req p  { font-size: 14px; color: var(--text-2); }

/* ─── Reviews ─────────────────────────────────── */
.reviews-rail {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.reviews-rail::-webkit-scrollbar { height: 6px; }
.reviews-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }

.review {
  scroll-snap-align: start;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.review-stars { display: flex; gap: 3px; color: var(--accent); }
.star { width: 15px; height: 15px; fill: currentColor; stroke-width: 0; }
.review-text { font-size: 14.5px; color: var(--text-2); flex: 1; }
.review-by {
  display: flex; align-items: baseline; gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.review-author { font-size: 14px; font-weight: 600; }
.review-date   { font-size: 12px; color: var(--text-3); }

/* ─── Location ────────────────────────────────── */
.loc-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.loc-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  min-height: 340px;
  background: var(--surface);
}
.loc-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.25) contrast(1.05); }

.loc-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.loc-row { display: flex; gap: 14px; }
.loc-row .ico { color: var(--accent); margin-top: 2px; }
.loc-label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 4px;
}
.loc-value { font-size: 15px; }
.loc-info .btn { margin-top: auto; }

/* ─── Contact ─────────────────────────────────── */
.contact-grid {
  max-width: var(--maxw);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 22px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  transition: border-color .22s var(--ease), transform .22s var(--ease),
              background .22s var(--ease);
}
.contact-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.contact-ico { color: var(--accent); margin-bottom: 12px; }
.contact-label {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
}
.contact-value { font-size: 16px; font-weight: 500; word-break: break-word; }

/* ─── Footer ──────────────────────────────────── */
.footer { padding: 40px var(--pad) calc(40px + env(safe-area-inset-bottom, 0px));
          border-top: 1px solid var(--line-soft); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 18px;
}
.footer-copy { font-size: 13px; color: var(--text-3); }

/* ─── Floating buttons ────────────────────────── */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.fab-btn {
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.fab-line { background: #06c755; }
.fab-wa   { background: #25d366; }
.fab-call { background: var(--accent); }

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 1000px) {
  .loc-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-burger { display: block; }
  .nav-cta    { display: none; }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    background: rgba(12,13,15,.97);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  body.nav-open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a { font-size: 22px; color: var(--text); }

  .hero { align-items: center; padding-top: 110px; }
  .hero-scroll { display: none; }
  .fab { display: flex; }
}

@media (max-width: 560px) {
  .bike-prices dd { font-size: 17px; }
  .reviews-rail { grid-auto-columns: minmax(80vw, 1fr); }
  .section-title { max-width: none; }
}

/* ─── Документы: одна строка под шагами, а не отдельная секция ─── */
.docs {
  max-width: var(--maxw);
  margin: 28px auto 0;
  display: flex; flex-wrap: wrap; gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.docs-label {
  width: 100%; margin-bottom: 4px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
}

.bike-ask {
  margin-top: auto; padding: 13px 8px; text-align: center;
  border: 1px dashed var(--line); border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--accent);
}
.fab-kakao { background: #fee500; color: #191600; }

.footer-link { font-size: 13px; color: var(--text-2); transition: color .2s var(--ease); }
.footer-link:hover { color: var(--accent); }

/* ─── Отзывы ─── */
.reviews-wrap { max-width: var(--maxw); margin: 0 auto; }

.rev-score {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 26px;
}
.rev-score-num {
  font-family: var(--font-disp); font-size: 42px; font-weight: 700; line-height: 1;
}
.rev-score-stars { color: var(--accent); font-size: 17px; letter-spacing: 2px; }
.rev-score-meta { font-size: 13px; color: var(--text-3); }

.rev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  align-items: start;
}
.rev {
  margin: 0; padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.rev-stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.rev-text { font-size: 14.5px; color: var(--text-2); }
.rev-by {
  display: flex; align-items: center; gap: 11px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.rev-avatar {
  width: 32px; height: 32px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-dim);
  color: var(--accent); font-size: 13px; font-weight: 600;
}
.rev-author { display: block; font-size: 14px; font-weight: 500; }
.rev-date { display: block; font-size: 12px; color: var(--text-3); }

.rev-more {
  display: inline-block; margin-top: 20px;
  font-size: 13px; color: var(--text-2);
  transition: color .2s var(--ease);
}
.rev-more:hover { color: var(--accent); }

.rev-reply {
  margin-top: 14px; padding: 12px 14px;
  background: var(--bg-alt);
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
}
.rev-reply-who {
  display: block; margin-bottom: 5px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.rev-reply p { font-size: 13px; color: var(--text-2); }

/* ══════════════════════════════════════════════
   Слой движения (js/motion.js)
   Анимируем только transform и opacity: всё остальное заставляет браузер
   пересчитывать раскладку покадрово и роняет скролл на телефоне.
   ══════════════════════════════════════════════ */

/* ─── Подсветка под курсором ─── */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s var(--ease);
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,106,26,.13), transparent 62%);
}
.spot:hover::after { opacity: 1; }

/* ─── Наклон к курсору ─── */
.bike, .rev {
  transform:
    perspective(900px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(var(--lift, 0px));
  transform-style: preserve-3d;
  transition: transform .45s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.bike:hover, .rev:hover { --lift: -6px; }
.rev:hover { border-color: var(--line); }

/* Фото в карточке чуть наезжает — карточка «дышит», а не просто подпрыгивает. */
.bike-media img {
  transition: transform .7s var(--ease);
  will-change: transform;
}
.bike:hover .bike-media img { transform: scale(1.07); }

.bike-tag { transition: transform .4s var(--ease); }
.bike:hover .bike-tag { transform: translateY(-2px); }

/* ─── Магнитные кнопки ─── */
.btn-accent, .fab-btn {
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
  transition: transform .35s var(--ease), background .25s var(--ease);
}
.btn-accent:hover { transform: translate3d(var(--tx, 0), calc(var(--ty, 0px) - 2px), 0); }

/* ─── Каскадное появление ─── */
.rise {
  opacity: 0;
  transform: translateY(26px);
}
.rise-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .65s var(--ease) var(--delay, 0ms),
    transform .65s var(--ease) var(--delay, 0ms);
}

/* ─── Герой отстаёт от скролла ─── */
.hero-inner {
  transform: translate3d(0, var(--py, 0px), 0);
  opacity: var(--fade, 1);
  will-change: transform, opacity;
}
.hero-bg { transform: translate3d(0, var(--py, 0px), 0); }

/* ─── Отклик на нажатие: единственная анимация, которая нужна пальцу ─── */
.bike:active, .rev:active, .contact-card:active, .lt-link:active { transform: scale(.985); }
.btn:active, .fab-btn:active { transform: scale(.96); }

/* ─── Мелочи, которые делают наведение живым ─── */
.contact-card .ico, .lt-ico { transition: transform .4s var(--ease); }
.contact-card:hover .ico { transform: translateY(-3px) scale(1.08); }
.lt-link:hover .lt-ico { transform: scale(1.08); }
.lt-link .lt-arrow { transition: transform .35s var(--ease); }
.lt-link:hover .lt-arrow { transform: translateX(4px); }
.rev-more { transition: color .25s var(--ease); }


/* ─── Развёрнутая карточка байка ─── */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(6,7,9,.8);
  backdrop-filter: blur(10px);
}
.sheet-overlay.is-open { display: flex; animation: sheetFade .25s var(--ease); }
@keyframes sheetFade { from { opacity: 0 } to { opacity: 1 } }

.sheet {
  position: relative;
  width: min(560px, 100%);
  max-height: min(88svh, 860px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: sheetUp .35s var(--ease);
}
@keyframes sheetUp { from { transform: translateY(22px) scale(.98) } to { transform: none } }

.sheet-close {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: rgba(10,11,13,.6);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .25s var(--ease);
}
.sheet-close:hover { background: rgba(10,11,13,.9); }

.sheet-gallery { position: relative; flex: none; overflow: hidden; background: var(--surface-2); }
.sheet-track {
  display: flex;
  transition: transform .45s var(--ease);
  will-change: transform;
}
.sheet-slide { flex: 0 0 100%; aspect-ratio: 16 / 10; }
.sheet-slide img { width: 100%; height: 100%; object-fit: cover; }
.sheet-slide-empty { display: grid; place-items: center; color: var(--text-3); }
.sheet-slide-empty svg { width: 42%; opacity: .5; }

.sheet-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  border: 0; border-radius: 50%;
  background: rgba(10,11,13,.55);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .25s var(--ease);
}
.sheet-nav:hover { background: rgba(10,11,13,.85); }
.sheet-prev { left: 10px; }
.sheet-next { right: 10px; }

.sheet-dots {
  position: absolute; left: 0; right: 0; bottom: 10px;
  display: flex; justify-content: center; gap: 6px;
}
.sheet-dots button {
  width: 7px; height: 7px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer; transition: background .25s var(--ease), transform .25s var(--ease);
}
.sheet-dots button.is-on { background: var(--accent); transform: scale(1.25); }

.sheet-body {
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px 22px 24px;
  overflow-y: auto;
}
.sheet-name { font-size: 22px; }

.sheet-specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.sheet-specs > div { background: var(--surface-2); padding: 12px 14px; }
.sheet-specs dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.sheet-specs dd { margin-top: 4px; font-size: 15px; font-weight: 500; }

.sheet-prices {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.sheet-prices > div { background: var(--surface-2); padding: 12px 8px; text-align: center; }
.sheet-prices dt { font-size: 10.5px; color: var(--text-3); }
.sheet-prices dd {
  margin-top: 3px;
  font-family: var(--font-disp); font-size: 20px; font-weight: 700;
}

.sheet-credit { font-size: 11px; color: var(--text-3); line-height: 1.5; }
.sheet-credit a { color: inherit; text-decoration: underline; }

@media (max-width: 560px) {
  .sheet-overlay { padding: 0; align-items: flex-end; }
  .sheet {
    width: 100%; max-height: 92svh;
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
  }
  @keyframes sheetUp { from { transform: translateY(100%) } to { transform: none } }
}

/* ─── Плитка байка: цена строкой и одна кнопка ─── */
.bike { cursor: pointer; }
.bike-body { gap: 10px; padding: 18px 18px 18px; }
.bike-name { font-size: 18px; }
.bike-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.bike-price { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.bike-price b {
  font-family: var(--font-disp); font-size: 20px; font-weight: 700;
  color: var(--text); margin-right: 2px;
}
.bike-price-ask { color: var(--accent); font-weight: 500; }
.bike-book { flex: none; }

/* Снимок приподнимается вместе с карточкой, а градиент снизу проявляется —
   переход получается плавным, а не скачком рамки. */
.bike-media::after {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(12,13,15,.55), transparent);
  opacity: 0; transition: opacity .5s var(--ease);
  z-index: 2;
}
.bike:hover .bike-media::after { opacity: 1; }
.bike:hover { border-color: var(--accent-dim); }

.footer-credit { font-size: 11.5px; color: var(--text-3); }

.sheet-note { font-size: 12px; color: var(--text-3); line-height: 1.5; margin-top: -6px; }

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero-video.is-on { opacity: 1; }

/* ─── Категории над сеткой ─── */
.cats {
  max-width: var(--maxw);
  margin: 0 auto 20px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.cat {
  padding: 9px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-family: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.cat:hover { border-color: var(--line); color: var(--text); }
.cat.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

.fleet-more { display: flex; justify-content: center; margin-top: 32px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--text-2);
  font-family: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.pill-btn:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }
.pill-btn svg { width: 15px; height: 15px; }

/* ─── Диалог «весь парк» ─── */
.all-overlay {
  position: fixed; inset: 0; z-index: 220;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(6,7,9,.8); backdrop-filter: blur(10px);
}
.all-overlay.is-open { display: flex; animation: sheetFade .25s var(--ease); }
.all-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line-soft);
}
.all-head h2 { font-size: 17px; }
.all-close {
  width: 32px; height: 32px;
  border: 1px solid var(--line-soft); border-radius: 50%;
  background: transparent; color: var(--text-2);
  font-size: 19px; line-height: 1; cursor: pointer;
}
.all-close:hover { color: var(--text); border-color: var(--line); }

.all-search-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-bottom: 1px solid var(--line-soft);
}
.all-search-row svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.all-search {
  flex: 1; min-width: 0;
  border: 0; background: none; outline: none;
  color: var(--text); font-family: inherit; font-size: 14px;
}
.all-search::placeholder { color: var(--text-3); }

.all-empty { padding: 28px 0; text-align: center; color: var(--text-3); font-size: 14px; }

/* ─── Документы: виджеты с эмодзи вместо голых чипов ─── */
.docs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.doc {
  display: flex; align-items: center; gap: 13px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.doc:hover { border-color: var(--line); transform: translateY(-3px); }
.doc-emoji { font-size: 26px; line-height: 1; flex: none; }
.doc-text { min-width: 0; }
.doc-title { display: block; font-size: 15px; font-weight: 500; }
.doc-note { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }

/* ─── Диалог «весь парк» ─── */
.all-dialog {
  width: min(1180px, 100%);
  max-height: min(90svh, 900px);
  display: flex; flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: sheetUp .35s var(--ease);
}
.all-head { padding: 22px 26px 16px; border-bottom: 0; }
.all-head h2 { font-size: clamp(22px, 3vw, 30px); }

.all-controls {
  display: flex; flex-direction: column; gap: 14px;
  padding: 0 26px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.all-search-row {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}
.all-filters {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.cats-sm { margin: 0; }
.cats-sm .cat { padding: 7px 15px; font-size: 12.5px; }

.view-switch {
  display: flex; gap: 2px; padding: 3px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px;
}
.view-switch button {
  display: grid; place-items: center;
  width: 32px; height: 30px;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--text-3); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.view-switch button svg { width: 15px; height: 15px; }
.view-switch button:hover { color: var(--text); }
.view-switch button.is-on { background: var(--accent); color: #fff; }

.all-body { overflow-y: auto; padding: 20px 26px 26px; }
.all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  align-items: start;
}
.all-list { display: flex; flex-direction: column; gap: 12px; }

/* Список: та же карточка, но лежит на боку. */
.all-list .bike { flex-direction: row; align-items: stretch; }
.all-list .bike-media { width: 190px; flex: none; aspect-ratio: auto; }
.all-list .bike-body { flex: 1; }
.all-empty { padding: 48px 0; text-align: center; color: var(--text-3); font-size: 14px; }

@media (max-width: 760px) {
  .all-overlay { padding: 0; align-items: flex-end; }
  .all-dialog {
    width: 100%; max-height: 94svh;
    border-radius: 20px 20px 0 0; border-bottom: 0;
  }
  .all-head, .all-controls, .all-body { padding-left: 16px; padding-right: 16px; }
  .all-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
  .all-list .bike { flex-direction: column; }
  .all-list .bike-media { width: 100%; aspect-ratio: 16 / 10; }
  .view-switch { display: none; }   /* на телефоне список и сетка почти совпадают */
}

/* ══════════════════════════════════════════════
   Движение, часть вторая: курсор, прогресс, заголовки, звёзды
   ══════════════════════════════════════════════ */

/* ─── Полоса прочитанного ─── */
.scroll-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

/* ─── Свой курсор ─── */
.cur-dot, .cur-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  pointer-events: none;
  margin: -4px 0 0 -4px;
  mix-blend-mode: difference;
}
.cur-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.cur-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(255,255,255,.4); border-radius: 50%;
  transition: width .3s var(--ease), height .3s var(--ease),
              margin .3s var(--ease), border-color .3s var(--ease);
}
.cur-ring.is-hot {
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-color: rgba(255,255,255,.75);
}
.cur-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
/* Системный курсор прячем только там, где нарисовали свой. */
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor input { cursor: none; }
@media (hover: none), (pointer: coarse) {
  .cur-dot, .cur-ring { display: none; }
  .has-cursor, .has-cursor a, .has-cursor button { cursor: auto; }
}

/* ─── Заголовок секции: черта растёт, слова встают по очереди ─── */
.section-label::before { transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.head.head-in .section-label::before { transform: scaleX(1); }

.section-title .w {
  display: inline-block;
  opacity: 0; transform: translateY(26px);
}
.section-title.head-in .w,
.head-in .section-title .w {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease) var(--wd, 0ms), transform .6s var(--ease) var(--wd, 0ms);
}

/* ─── Звёзды зажигаются по одной ─── */
.rev-stars i {
  display: inline-block; font-style: normal;
  opacity: 0; transform: scale(.4) rotate(-20deg);
}
.rev-stars.stars-in i {
  opacity: 1; transform: none;
  transition: opacity .35s var(--ease) var(--sd, 0ms), transform .45s var(--ease) var(--sd, 0ms);
}

/* ─── Фото в карточке едет медленнее самой карточки ─── */
.bike-media img { transform: translate3d(0, var(--iy, 0px), 0); }
.bike:hover .bike-media img { transform: translate3d(0, var(--iy, 0px), 0) scale(1.07); }

/* ─── Шапка ужимается после прокрутки ─── */
.nav.is-tight { padding-top: 9px; padding-bottom: 9px; }
.nav.is-tight .nav-logo-img { height: 32px; }
.nav.is-tight .nav-logo-text em { opacity: 0; height: 0; margin: 0; }
.nav-logo-text em { transition: opacity .3s var(--ease); }

/* ─── Плавающие кнопки приходят после героя ─── */
@media (max-width: 820px) {
  .fab {
    opacity: 0; transform: translateY(16px) scale(.9);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
    pointer-events: none;
  }
  .fab.is-up { opacity: 1; transform: none; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-bar, .cur-dot, .cur-ring { display: none; }
  .section-title .w, .rev-stars i { opacity: 1 !important; transform: none !important; }
  .section-label::before { transform: scaleX(1) !important; }
  .fab { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
}

/* ─── Mobile: компактные контакты (2 колонки, иконка + подпись в строку) ─── */
@media (max-width: 560px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
  .contact-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 8px; row-gap: 6px;
    padding: 14px 14px;
    border-radius: 16px;
  }
  .contact-ico { margin-bottom: 0; width: 18px; height: 18px; }
  .contact-label { font-size: 10px; letter-spacing: .12em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .contact-value { grid-column: 1 / -1; font-size: 14px; line-height: 1.3; }
  .loc-info { padding: 20px; gap: 14px; }
  .loc-value { font-size: 14px; }
}
