:root {
  --bg: #08080a;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f7f3f3;
  --muted: #b8b0b0;
  --red: #d70b25;
  --red-dark: #800513;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(215, 11, 37, 0.24), transparent 34%),
    linear-gradient(135deg, #070709 0%, #111114 52%, #070707 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(8, 8, 10, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 14px 34px rgba(0,0,0,.3); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ff314b);
  box-shadow: 0 12px 28px rgba(215, 11, 37, .38);
}
.site-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-weight: 700; }
.site-nav a:hover { color: var(--white); }
.nav-cta, .btn-primary, .btn-ghost, .danger-btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 7px;
  font-weight: 900;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary, .nav-cta {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  box-shadow: 0 14px 32px rgba(215, 11, 37, .32);
}
.btn-ghost {
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line);
  color: var(--white);
}
.btn-primary:hover, .btn-ghost:hover, .nav-cta:hover { transform: translateY(-3px); }
.small { min-height: 38px; padding: 0 14px; font-size: 14px; }

.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 5px; background: var(--white); }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px;
  padding: clamp(56px, 8vw, 120px) clamp(18px, 5vw, 72px) 60px;
  overflow: hidden;
}
.hero h1, .page-hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  max-width: 900px;
}
.hero p, .page-hero p { color: var(--muted); max-width: 650px; font-size: 18px; }
.hero-actions, .contact-actions, .card-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.eyebrow { color: #ff6375; text-transform: uppercase; font-size: 12px; font-weight: 950; letter-spacing: 2px; }
.hero-bike { animation: floatBike 4.8s ease-in-out infinite; }
.hero-bike img { filter: drop-shadow(0 38px 48px rgba(0,0,0,.55)); }
@keyframes floatBike { 50% { transform: translateY(-18px) rotate(-1deg); } }

.hero-showroom {
  position: relative;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr);
  padding-top: clamp(38px, 5vw, 82px);
  isolation: isolate;
  perspective: 1300px;
  background:
    linear-gradient(105deg, rgba(8, 8, 10, .96), rgba(62, 0, 10, .76) 48%, rgba(6, 6, 8, .98)),
    radial-gradient(ellipse at 62% 44%, rgba(255, 41, 70, .22), transparent 46%);
}
.hero-showroom::before,
.hero-showroom::after {
  content: "";
  position: absolute;
  inset: auto -10% -22% -10%;
  height: 62%;
  z-index: -2;
  background:
    linear-gradient(90deg, transparent, rgba(215, 11, 37, .2), transparent),
    repeating-linear-gradient(100deg, rgba(255,255,255,.045) 0 1px, transparent 1px 18px);
  filter: blur(18px);
  transform: skewY(-5deg);
}
.hero-showroom::after {
  inset: 0;
  height: auto;
  background:
    radial-gradient(ellipse at 70% 18%, rgba(255, 255, 255, .1), transparent 34%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.54) 100%);
  filter: none;
  transform: none;
  z-index: -1;
}
.hero-depth {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  opacity: .56;
}
.hero-depth img {
  position: absolute;
  width: clamp(220px, 24vw, 380px);
  filter: blur(12px) saturate(.7) brightness(.55);
  opacity: .35;
  transform: rotate(-8deg);
}
.hero-depth img:nth-child(1) { right: 6%; top: 6%; }
.hero-depth img:nth-child(2) { left: 44%; bottom: 4%; transform: rotate(8deg); }
.hero-depth img:nth-child(3) { right: 27%; top: 39%; transform: rotate(-15deg); }
.hero-depth img:nth-child(4) { left: 5%; bottom: 14%; transform: rotate(10deg); }
.hero-depth img:nth-child(n+5) { display: none; }
.hero-bg-word {
  position: absolute;
  right: 4%;
  top: 12%;
  font-size: clamp(88px, 18vw, 260px);
  line-height: .8;
  font-weight: 950;
  color: rgba(255,255,255,.055);
  text-transform: uppercase;
  filter: blur(2px);
}
.hero-bg-word.second {
  right: 20%;
  top: auto;
  bottom: 8%;
  color: rgba(215,11,37,.16);
}
.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 620px;
  transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}
.hero-copy.details-out { opacity: .18; transform: translateY(14px); filter: blur(5px); }
.hero-copy.details-in { animation: detailsIn .42s ease both; }
@keyframes detailsIn {
  from { opacity: .2; transform: translateY(16px); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero-copy h1 {
  text-shadow: 0 22px 60px rgba(0,0,0,.58);
}
.hero-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.hero-specs span {
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.075);
  color: var(--muted);
  backdrop-filter: blur(14px);
}
.hero-specs strong {
  display: block;
  color: var(--white);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.12;
}
.hero-book,
.hero-details-link {
  position: relative;
  overflow: hidden;
}
.hero-book::after,
.hero-details-link::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg);
  animation: buttonSheen 3.2s ease infinite;
}
@keyframes buttonSheen {
  0%, 45% { left: -60%; }
  72%, 100% { left: 118%; }
}
.hero-stage {
  position: relative;
  z-index: 2;
  min-height: clamp(430px, 58vw, 660px);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  touch-action: pan-y;
  user-select: none;
}
.hero-track {
  position: relative;
  width: min(100%, 840px);
  height: clamp(360px, 50vw, 560px);
  transform-style: preserve-3d;
}
.hero-slide {
  --offset: 0;
  --abs: 0;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: calc(1 - (var(--abs) * .25));
  transform:
    translateX(calc((var(--offset) * 31%) + var(--drag, 0px)))
    translateY(calc(var(--abs) * 16px))
    translateZ(calc(160px - (var(--abs) * 130px)))
    rotateY(calc(var(--offset) * -32deg))
    rotateZ(calc(var(--offset) * -2deg))
    scale(calc(1 - (var(--abs) * .13)));
  transition: transform .72s cubic-bezier(.2,.8,.2,1), opacity .5s ease, filter .5s ease;
  pointer-events: none;
}
.hero-slide.is-hidden {
  opacity: 0;
  filter: blur(14px);
}
.hero-slide.is-active {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}
.hero-slide.is-near { filter: blur(1px) brightness(.72); }
.is-dragging .hero-slide { transition-duration: .18s; }
.hero-bike-frame {
  position: relative;
  width: min(96%, 760px);
  aspect-ratio: 1.55;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  animation: showroomFloat 5.4s ease-in-out infinite;
}
.hero-bike-frame::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 8%;
  height: 22%;
  background: radial-gradient(ellipse, rgba(0,0,0,.88), rgba(0,0,0,.18) 58%, transparent 72%);
  filter: blur(15px);
  transform: rotateX(72deg);
}
.hero-bike-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 44px 42px rgba(0,0,0,.62)) drop-shadow(0 0 36px rgba(215,11,37,.18));
}
.hero-reflection {
  position: absolute;
  z-index: 1;
  left: 16%;
  right: 16%;
  bottom: 0;
  height: 27%;
  background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 72%);
  filter: blur(9px);
  transform: rotateX(68deg) translateY(24px);
  opacity: .55;
}
@keyframes showroomFloat {
  50% { transform: translateY(-16px) rotateX(2deg) rotateY(-3deg); }
}
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.09);
  color: var(--white);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: transform .2s ease, background .2s ease;
}
.hero-arrow:hover { transform: translateY(-50%) scale(1.08); background: rgba(215,11,37,.36); }
.hero-arrow.prev { left: 0; transform: translateY(-50%); }
.hero-arrow.next { right: 0; transform: translateY(-50%); }
.hero-arrow.prev:hover,
.hero-arrow.next:hover { transform: translateY(-50%) scale(1.08); }
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 5;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
  max-width: min(92vw, 520px);
  flex-wrap: wrap;
  justify-content: center;
}
.hero-dots button {
  width: 26px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.hero-dots button.active {
  width: 44px;
  background: #ff314b;
}

.section, .page-hero { padding: 84px clamp(18px, 5vw, 72px); }
.page-hero { min-height: 45vh; display: grid; align-content: end; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 28px; }
.section h2, .section-head h2, .admin-head h1 { margin: 6px 0 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.06; }
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 5vw, 72px);
  border: 1px solid var(--line);
  background: var(--line);
}
.stats-band div, .glass-panel, .bike-card, .admin-card, .install-card, blockquote, details, .gallery-grid figure {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.stats-band div { padding: 24px; }
.stats-band strong { display: block; font-size: 34px; }
.stats-band span, p, small { color: var(--muted); }
.bike-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bike-card { border-radius: 8px; overflow: hidden; transition: transform .28s ease, border-color .28s ease; }
.bike-card:hover { transform: translateY(-9px); border-color: rgba(255, 49, 75, .55); }
.bike-image { position: relative; min-height: 230px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(215,11,37,.12)); }
.bike-image img { width: min(92%, 360px); max-height: 220px; object-fit: contain; transition: transform .32s ease; }
.bike-card:hover .bike-image img { transform: scale(1.06) translateY(-4px); }
.status { position: absolute; top: 14px; right: 14px; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; background: #2d2d32; }
.status.ok { background: #0a6b3a; }
.status.off { background: #5b1118; }
.bike-body { padding: 20px; }
.bike-body h3 { margin: 0; font-size: 24px; }
.spec-row, .price-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.spec-row span { padding: 8px 10px; background: rgba(255,255,255,.08); border-radius: 6px; color: var(--white); }
.price-row strong { font-size: 24px; }
.price-row small { font-size: 13px; margin-left: 3px; }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.glass-panel { border-radius: 8px; padding: clamp(22px, 4vw, 34px); }
.booking-form, .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
label { display: grid; gap: 7px; color: var(--white); font-weight: 800; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0,0,0,.32);
  color: var(--white);
  padding: 13px 14px;
  font: inherit;
}
textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure { margin: 0; padding: 16px; border-radius: 8px; }
.gallery-grid img { aspect-ratio: 4/3; object-fit: contain; width: 100%; }
.gallery-grid figcaption { color: var(--muted); font-weight: 800; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
blockquote { margin: 0; border-radius: 8px; padding: 24px; font-size: 18px; }
cite { display: block; margin-top: 18px; color: #ff6375; font-style: normal; font-weight: 900; }
.faq-list { display: grid; gap: 12px; }
details { border-radius: 8px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 900; }
.contact-band { display: flex; justify-content: space-between; gap: 22px; align-items: center; background: rgba(215,11,37,.12); }
.site-footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding: 44px clamp(18px, 5vw, 72px); border-top: 1px solid var(--line); background: #050506; }
.site-footer a { display: block; color: var(--muted); margin-top: 7px; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }

.section-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.section-reveal.visible { opacity: 1; transform: none; }

.install-body { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.install-shell { width: min(920px, 100%); }
.install-card { border-radius: 8px; padding: clamp(24px, 5vw, 44px); }
.install-card h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1; margin: 10px 0 24px; }
.notice { padding: 13px 15px; border-radius: 7px; margin: 12px 0; border: 1px solid var(--line); }
.success { background: rgba(10, 107, 58, .22); }
.warning { background: rgba(180, 120, 0, .22); }
.danger { background: rgba(215, 11, 37, .22); }

.admin-body { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 22px; background: #050506; border-right: 1px solid var(--line); }
.admin-sidebar nav { display: grid; gap: 8px; margin-top: 30px; }
.admin-sidebar nav a { padding: 12px; border-radius: 7px; color: var(--muted); }
.admin-sidebar nav a:hover { background: var(--panel); color: var(--white); }
.admin-main { padding: 34px; overflow-x: hidden; }
.admin-head { margin-bottom: 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.admin-stats div { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.admin-stats strong { display: block; font-size: 38px; }
.admin-card { border-radius: 8px; padding: 22px; margin-bottom: 22px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #ff6375; }
.pill { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 900; }
.thumb { width: 92px; height: 64px; object-fit: contain; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.danger-btn { min-height: 38px; padding: 0 12px; color: var(--white); background: rgba(215, 11, 37, .75); }
.status-form select { min-width: 140px; }
.terms h2 { font-size: 26px; margin-top: 26px; }

@media (max-width: 980px) {
  .hero, .split { grid-template-columns: 1fr; }
  .hero-showroom {
    min-height: auto;
    gap: 10px;
    padding-bottom: 34px;
  }
  .hero-copy { max-width: 760px; }
  .hero-stage { min-height: 500px; }
  .hero-arrow.prev { left: 8px; }
  .hero-arrow.next { right: 8px; }
  .bike-grid, .gallery-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; }
  .admin-sidebar nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-nav {
    position: fixed;
    inset: 70px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: rgba(10,10,12,.96);
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { min-height: auto; padding-top: 58px; }
  .hero-showroom {
    padding-top: 42px;
    padding-bottom: 30px;
  }
  .hero h1, .page-hero h1 { font-size: 42px; }
  .hero-specs { grid-template-columns: 1fr 1fr; gap: 9px; }
  .hero-specs span { min-height: 66px; padding: 10px; font-size: 13px; }
  .hero-stage { min-height: 360px; }
  .hero-track { height: 320px; }
  .hero-slide {
    transform:
      translateX(calc((var(--offset) * 46%) + var(--drag, 0px)))
      translateY(calc(var(--abs) * 12px))
      translateZ(calc(90px - (var(--abs) * 90px)))
      rotateY(calc(var(--offset) * -24deg))
      scale(calc(1 - (var(--abs) * .18)));
  }
  .hero-bike-frame { width: 112%; }
  .hero-arrow {
    top: auto;
    bottom: 48px;
    width: 42px;
    height: 42px;
    font-size: 30px;
  }
  .hero-arrow.prev,
  .hero-arrow.next,
  .hero-arrow.prev:hover,
  .hero-arrow.next:hover { transform: none; }
  .hero-bg-word { font-size: 92px; }
  .bike-grid, .gallery-grid, .testimonial-grid, .booking-form, .form-grid, .stats-band, .admin-stats, .site-footer { grid-template-columns: 1fr; }
  .section, .page-hero { padding: 58px 18px; }
  .contact-band { display: grid; }
  .admin-main { padding: 20px; }
  .admin-sidebar nav { grid-template-columns: 1fr 1fr; }
  .row-actions { flex-direction: column; align-items: flex-start; }
}
