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

:root {
  /* Палитра с вывески JJ BIKE BANGKOK: тёмно-синий щит и оранжевый акцент. */
  --bg:         #080c16;
  --bg-alt:     #0c1322;
  --surface:    #111a2c;
  --surface-2:  #16213a;
  --line:       rgba(130,170,255,.14);
  --line-soft:  rgba(130,170,255,.08);

  --text:       #f2f5fa;
  --text-2:     #9fadc4;
  --text-3:     #68788f;

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

  --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(8,12,22,.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: auto; height: 38px; }
.hero-logo {
  width: auto; height: clamp(84px, 13vw, 132px);
  margin-bottom: 20px;
  /* Щит нарисован на тёмно-синем фоне баннера — свечение прячет стык. */
  filter: drop-shadow(0 8px 26px rgba(43,127,255,.45));
}
.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(17,26,44,.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) 2%, rgba(8,12,22,.74) 45%, rgba(8,12,22,.46) 100%),
    linear-gradient(to right, rgba(8,12,22,.78), transparent 65%);
}

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

.hero-tagline {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.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; margin-bottom: 36px; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-chip {
  padding: 7px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  font-size: 12px;
  color: var(--text-2);
}

.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(43,127,255,.22), 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; }

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

/* ─── Included ────────────────────────────────── */
.incl-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.incl {
  background: var(--bg-alt);
  padding: 28px 24px;
  transition: background .25s var(--ease);
}
.incl:hover { background: var(--surface); }
.incl-ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: 16px; }
.incl h3 { font-size: 16px; margin-bottom: 8px; }
.incl p  { font-size: 14px; color: var(--text-2); }

/* ─── 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 ─────────────────────────────────── */
.section-contact { background: var(--bg-alt); }
.contact-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  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(8,12,22,.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; }
}
