:root {
  --bg: #090d1a;
  --surface: #121a2f;
  --surface-2: #1b2642;
  --text: #eaf0ff;
  --muted: #9fb0d8;
  --primary: #66a3ff;
  --accent: #41e2b8;
  --danger: #ff6b8a;
  --warning: #ffcb6b;
  --vs: #ff6a3d;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 15% 10%, #1a2f66 0%, transparent 35%),
    radial-gradient(circle at 80% 0%, #1f4d4f 0%, transparent 30%), var(--bg);
}

.app-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(102, 163, 255, 0.06), rgba(65, 226, 184, 0.03));
  pointer-events: none;
  z-index: -1;
}

.compare-banner {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 106, 61, 0.16);
  border: 1px solid rgba(255, 106, 61, 0.5);
  color: #ffe2d8;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  animation: fadeIn 250ms ease;
}

.compare-banner.hidden {
  display: none;
}

.container {
  width: min(1200px, 92%);
  margin: 32px auto 48px;
}

.hero {
  margin-bottom: 24px;
  text-align: center;
}

.tag {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(102, 163, 255, 0.15);
  border: 1px solid rgba(102, 163, 255, 0.35);
  color: #cfe0ff;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.1vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.subtitle {
  color: var(--muted);
  max-width: 780px;
  margin: 12px auto 0;
  font-size: 1.02rem;
}

.selection-hint {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  color: #d9e3ff;
}

.filters-bar {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1fr 1fr 1fr 0.9fr 1.2fr auto;
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
  align-items: stretch;
}

.filter-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
}

.filter-group label {
  font-size: 0.8rem;
  color: #c9d7f9;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.filter-group input,
.filter-group select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(10, 16, 30, 0.75);
  color: var(--text);
  padding: 10px 11px;
  min-height: 44px;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.filter-control {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.filter-group input:hover,
.filter-group select:hover {
  border-color: rgba(102, 163, 255, 0.45);
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: rgba(102, 163, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(102, 163, 255, 0.18);
}

.price-slider-group input[type="range"],
#powerMin {
  padding: 0;
  min-height: 18px;
  appearance: none;
  background: transparent;
  border: none;
  box-shadow: none;
}

.price-slider-group input[type="range"]::-webkit-slider-runnable-track,
#powerMin::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(102, 163, 255, 0.9), rgba(65, 226, 184, 0.9));
}

.price-slider-group input[type="range"]::-webkit-slider-thumb,
#powerMin::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-top: -5px;
  background: #ffffff;
  border: 2px solid #66a3ff;
  box-shadow: 0 0 0 4px rgba(102, 163, 255, 0.22);
}

.price-slider-group input[type="range"]::-moz-range-track,
#powerMin::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(102, 163, 255, 0.9), rgba(65, 226, 184, 0.9));
}

.price-slider-group input[type="range"]::-moz-range-thumb,
#powerMin::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #66a3ff;
  box-shadow: 0 0 0 4px rgba(102, 163, 255, 0.22);
}

.range-values {
  font-size: 0.8rem;
  color: #98abd7;
  min-height: 18px;
}

.power-slider-row {
  gap: 10px;
}

.power-slider-row #powerMin {
  flex: 1;
}

.power-value {
  min-width: 54px;
  text-align: right;
  font-size: 0.84rem;
  color: #c9d7f9;
  font-weight: 700;
}

.checkbox-group {
  min-width: 0;
}

.checkbox-title {
  display: block;
}

.checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(10, 16, 30, 0.75);
  padding: 10px 11px;
  cursor: pointer;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.checkbox-option:hover {
  border-color: rgba(102, 163, 255, 0.45);
}

.checkbox-option:has(input:focus-visible) {
  border-color: rgba(102, 163, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(102, 163, 255, 0.18);
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: #66a3ff;
}

.filter-action {
  justify-content: flex-end;
}

.action-label {
  opacity: 0;
  pointer-events: none;
}

.reset-filters-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(255, 130, 80, 0.2), rgba(255, 90, 130, 0.12));
  color: #eaf0ff;
  font-weight: 700;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
  width: 100%;
  align-self: auto;
}

.reset-filters-btn:hover {
  border-color: rgba(255, 155, 132, 0.8);
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 10px 20px rgba(255, 106, 61, 0.18);
}

.results-count {
  margin: 10px 2px 18px;
  color: #b7c8ef;
  font-size: 0.92rem;
}

.bike-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.bike-card {
  background: linear-gradient(155deg, rgba(26, 37, 66, 0.95), rgba(17, 24, 44, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transform: translateY(0);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.bike-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 163, 255, 0.55);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
}

body.comparison-mode .bike-card {
  cursor: crosshair;
}

body.comparison-mode .bike-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 106, 61, 0.75);
  box-shadow: 0 0 0 1px rgba(255, 106, 61, 0.35), 0 20px 42px rgba(255, 106, 61, 0.2);
}

.selection-hint.warning {
  border-color: rgba(255, 106, 61, 0.45);
  background: rgba(255, 106, 61, 0.09);
}

.bike-card.vs-source {
  border-color: rgba(255, 106, 61, 0.8);
  box-shadow: 0 0 0 2px rgba(255, 106, 61, 0.28), 0 20px 36px rgba(0, 0, 0, 0.52);
}

.bike-card.fade-in {
  animation: cardFade 300ms ease;
}

.bike-card.vs-target {
  border-color: rgba(65, 226, 184, 0.9);
  box-shadow: 0 0 0 2px rgba(65, 226, 184, 0.3), 0 20px 36px rgba(0, 0, 0, 0.52);
}

.image-wrap {
  width: 100%;
  height: 180px;
  background: #0f1529;
  overflow: hidden;
}

.bike-card .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-content {
  padding: 14px;
}

.card-title-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.card-title-row h3 {
  margin: 0;
  font-size: 1rem;
}

.type-pill {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #d7e2ff;
  background: rgba(102, 163, 255, 0.15);
  border: 1px solid rgba(102, 163, 255, 0.35);
  border-radius: 999px;
  padding: 4px 8px;
}

.metrics,
.modal-specs {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 10, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 260ms ease;
}

.modal-card {
  position: relative;
  width: min(980px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(150deg, #121b33, #0d1427);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
  padding: 18px;
  animation: modalIn 320ms ease;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.modal-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.modal-main-image {
  width: 100%;
  border-radius: 16px;
  display: block;
}

#modalMainImage {
  height: 300px;
  max-height: min(300px, 45vh);
  object-fit: contain;
  object-position: center;
  background: #0f1529;
}

.modal-thumbs {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.thumb-btn {
  width: 74px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  cursor: pointer;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-right h2 {
  margin: 0;
}

.vs-button {
  margin-top: 14px;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, #ff4b2b, #ff8f1f);
  cursor: pointer;
  transition: transform 220ms ease, filter 220ms ease;
}

.vs-button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.1);
}

.modal-hint {
  margin: 10px 0 0;
  color: #b9c8ea;
}

.vs-stage {
  margin-top: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.vs-bike {
  font-weight: 700;
  text-align: center;
}

.vs-left {
  animation: slideLeft 450ms ease;
}

.vs-right {
  animation: slideRight 450ms ease;
}

.vs-core {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: radial-gradient(circle, #ff784d, #d13d15);
  box-shadow: 0 0 30px rgba(255, 110, 72, 0.5);
}

.modal-comparison {
  margin-top: 18px;
}

.modal-comparison.hidden,
.vs-stage.hidden {
  display: none;
}

.reset-button {
  margin-top: 14px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  color: #eaf0ff;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease;
}

.reset-button:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 163, 255, 0.55);
}

.compare-rows {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.compare-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.head-bike {
  text-align: center;
}

.head-image {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.head-left .head-image {
  animation: slideFadeLeft 500ms ease;
}

.head-right .head-image {
  animation: slideFadeRight 500ms ease;
}

.head-name {
  margin: 8px 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.head-center {
  display: grid;
  place-items: center;
}

.head-vs {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: radial-gradient(circle, #ff7048, #cf3718);
  box-shadow: 0 0 26px rgba(255, 111, 74, 0.5);
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.compare-row:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 163, 255, 0.4);
  background: rgba(102, 163, 255, 0.07);
}

.compare-side {
  font-weight: 600;
  color: #d8e3ff;
  display: grid;
  gap: 6px;
}

.value-line {
  font-size: 0.95rem;
}

.compare-bar-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.compare-bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 800ms ease;
}

.compare-bar-fill.a {
  background: linear-gradient(90deg, #4b84ff, #80a6ff);
}

.compare-bar-fill.b {
  background: linear-gradient(90deg, #ff6e61, #ff9b70);
}

.compare-side.win {
  color: var(--accent);
}

.compare-side.lose {
  color: #f5b5c5;
}

.metric-name {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--warning);
  font-weight: 700;
}

.final-result {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(65, 226, 184, 0.08);
  border: 1px solid rgba(65, 226, 184, 0.35);
}

.winner {
  font-size: 1.08rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.highlights {
  margin: 6px 0 0;
  color: #c8d6f8;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
}

@keyframes slideFadeLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
}

@keyframes slideFadeRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
}

@keyframes cardFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .filters-bar {
    grid-template-columns: 1fr 1fr;
  }

  .modal-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .filters-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px;
  }

  .compare-row,
  .vs-stage,
  .compare-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .head-image {
    max-width: 100%;
  }
}

.modal-detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(102, 163, 255, 0.45);
  background: rgba(102, 163, 255, 0.1);
  color: #d8e6ff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease,
    box-shadow 220ms ease;
}

.modal-detail-link:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 163, 255, 0.75);
  background: rgba(102, 163, 255, 0.16);
  box-shadow: 0 8px 22px rgba(102, 163, 255, 0.15);
}

.modal-detail-link.hidden {
  display: none;
}

.detail-page .container {
  margin-top: 24px;
}

.detail-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-site-title {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.detail-back-link:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 163, 255, 0.55);
  background: rgba(102, 163, 255, 0.08);
}

.bike-detail-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}

.bike-detail-hero-image-wrap {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #0f1529;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}

.bike-detail-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bike-detail-hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.bike-detail-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 52ch;
}

.bike-detail-intro p {
  margin: 0 0 1rem;
}

.bike-detail-intro p:last-child {
  margin-bottom: 0;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn-detail-primary {
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(120deg, #ff4b2b, #ff8f1f);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms ease, filter 220ms ease;
}

.btn-detail-primary:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.1);
}

.btn-detail-secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: #eaf0ff;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.btn-detail-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 163, 255, 0.55);
  background: rgba(102, 163, 255, 0.08);
}

.detail-spec-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(150deg, #121b33, #0d1427);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  padding: 22px 22px 18px;
  margin-bottom: 40px;
}

.detail-spec-card h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 720px) {
  .detail-spec-grid {
    grid-template-columns: 1fr;
  }
}

.detail-spec-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 220ms ease, background-color 220ms ease;
}

.detail-spec-block:hover {
  border-color: rgba(102, 163, 255, 0.35);
  background: rgba(102, 163, 255, 0.06);
}

.detail-spec-block h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #e8eeff;
  letter-spacing: 0.01em;
}

.detail-spec-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.detail-spec-rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-spec-rows li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-spec-rows strong {
  color: #d0dbf5;
  font-weight: 600;
}

.detail-related {
  margin-bottom: 48px;
}

.detail-related h2 {
  margin: 0 0 16px;
  font-size: 1.15rem;
}

.related-bikes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .related-bikes-grid {
    grid-template-columns: 1fr;
  }

  .bike-detail-hero {
    grid-template-columns: 1fr;
  }
}

.related-bike-card {
  background: linear-gradient(155deg, rgba(26, 37, 66, 0.95), rgba(17, 24, 44, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.related-bike-card:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 163, 255, 0.45);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
}

.related-bike-card .related-img-wrap {
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  background: #0f1529;
  overflow: hidden;
}

.related-bike-card .related-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.related-bike-card .related-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.related-bike-card h3 {
  margin: 0;
  font-size: 1rem;
}

.btn-related-compare {
  margin-top: auto;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  color: #eaf0ff;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-size: 0.92rem;
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.btn-related-compare:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 106, 61, 0.55);
  background: rgba(255, 106, 61, 0.12);
}

.detail-footer {
  text-align: center;
  padding: 24px 0 40px;
  color: #8fa3d4;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-error {
  padding: 20px;
  border-radius: 14px;
  background: rgba(255, 107, 138, 0.1);
  border: 1px solid rgba(255, 107, 138, 0.35);
  color: #ffd6df;
}

.site-top-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 13, 26, 0.9);
  backdrop-filter: blur(12px);
}

.site-nav {
  width: min(1200px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding: 12px 0;
}

.site-nav-brand {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  transition: color 200ms ease;
}

.site-nav-brand:hover {
  color: var(--primary);
}

.site-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #c9d7f9;
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}

.site-nav-link:hover {
  color: var(--text);
  border-color: rgba(102, 163, 255, 0.35);
  background: rgba(102, 163, 255, 0.1);
}

.site-nav-link--active {
  color: var(--text);
  border-color: rgba(102, 163, 255, 0.45);
  background: rgba(102, 163, 255, 0.12);
}

.site-footer {
  text-align: center;
  padding: 28px 0 48px;
  color: #8fa3d4;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.articles-hero {
  margin-bottom: 28px;
  text-align: center;
}

.articles-hero h1 {
  margin: 0 0 10px;
}

.articles-hero .subtitle {
  color: var(--muted);
  margin: 0 auto;
  max-width: 52ch;
  line-height: 1.55;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.article-card {
  background: linear-gradient(155deg, rgba(26, 37, 66, 0.95), rgba(17, 24, 44, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 163, 255, 0.45);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
}

.article-card h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}

.article-card .read-more {
  align-self: flex-start;
  margin-top: 4px;
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #eaf0ff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.article-card .read-more:hover {
  transform: translateY(-1px);
  border-color: rgba(102, 163, 255, 0.55);
  background: rgba(102, 163, 255, 0.1);
}

.article-page-main {
  max-width: 720px;
  margin: 0 auto 40px;
}

.article-back {
  margin: 0 0 20px;
  text-align: center;
}

.article-back a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
}

.article-back a:hover {
  color: var(--primary);
}

.article-prose .article-back a {
  border-bottom: none;
}

.article-prose h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3.2vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.article-prose .lead {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 24px;
}

.article-prose h2 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.article-prose h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #dce5fb;
  letter-spacing: -0.01em;
}

.article-prose ul {
  margin: 0 0 18px;
  padding-left: 1.25em;
  color: #c9d7f0;
  line-height: 1.65;
}

.article-prose li {
  margin-bottom: 6px;
}

.article-prose p {
  margin: 0 0 14px;
  color: #c9d7f0;
  line-height: 1.7;
}

.article-prose a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(102, 163, 255, 0.35);
}

.article-prose a:hover {
  border-bottom-color: var(--primary);
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-hero {
  margin-bottom: 28px;
  text-align: center;
}

.contact-hero h1 {
  margin: 0 0 10px;
}

.contact-hero .subtitle {
  color: var(--muted);
  margin: 0 auto;
  max-width: 56ch;
  line-height: 1.6;
}

.contact-section {
  display: flex;
  justify-content: center;
  padding: 8px 0 24px;
}

.contact-card {
  position: relative;
  width: min(520px, 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(155deg, rgba(26, 37, 66, 0.98), rgba(17, 24, 44, 0.96));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 163, 255, 0.42);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(102, 163, 255, 0.08);
}

.contact-card-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(102, 163, 255, 0.22), transparent 65%);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 320ms ease;
}

.contact-card:hover .contact-card-glow {
  opacity: 1;
}

.contact-card-inner {
  position: relative;
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.contact-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(102, 163, 255, 0.2), rgba(65, 226, 184, 0.12));
  border: 1px solid rgba(102, 163, 255, 0.35);
  color: #b8d4ff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  transition: transform 260ms ease, border-color 260ms ease, color 260ms ease;
}

.contact-card:hover .contact-icon-wrap {
  transform: scale(1.04);
  border-color: rgba(65, 226, 184, 0.45);
  color: #dff6ff;
}

.contact-mail-icon {
  display: block;
}

.contact-intro {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 38ch;
}

.contact-email-link {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.01em;
  padding: 4px 6px;
  border-radius: 10px;
  transition: color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
  word-break: break-word;
}

.contact-email-link:hover {
  color: #9ec6ff;
  background: rgba(102, 163, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(102, 163, 255, 0.25);
}

.contact-email-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 163, 255, 0.28);
}

.contact-domain-note {
  margin: -4px 0 0;
  font-size: 0.82rem;
  color: #7d92c4;
  font-weight: 500;
}

.contact-cta-btn {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #061018;
  text-decoration: none;
  border: 1px solid rgba(65, 226, 184, 0.55);
  background: linear-gradient(120deg, #41e2b8, #66a3ff);
  box-shadow: 0 10px 26px rgba(65, 226, 184, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.contact-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(102, 163, 255, 0.28);
  filter: brightness(1.05);
}

.contact-cta-btn:active {
  transform: translateY(0);
}

.contact-cta-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 163, 255, 0.35), 0 14px 32px rgba(102, 163, 255, 0.22);
}

.contact-cta-icon {
  flex-shrink: 0;
}
