/* ── tokens ───────────────────────────────────────────────────────── */
:root {
  --alfa-red: #EF3124;
  --alfa-red-hover: #FF3D2E;
  --ink: #0a0a0a;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* hide horizontal scrollbar for pill rails on mobile */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* mobile-friendly tweaks */
@media (max-width: 640px) {
  .stat-num { font-size: 1.25rem; }
  .product-card { min-height: 460px; }
  .product-bullets { min-height: 0; }
  .calc-tab { padding: 7px 14px; }
  .pill { padding: 6px 12px; font-size: 12px; }
  .btn-red, .btn-ghost { padding: 0.7rem 1rem; font-size: 14px; }
  .filter-pill { min-width: 120px; height: 32px; font-size: 12px; }
}

/* ── nav links ───────────────────────────────────────────────────── */
.nav-link {
  @apply px-3 py-1.5 rounded-lg text-[13.5px] text-white/55 hover:text-white hover:bg-white/5 transition-colors;
}

/* ── buttons ─────────────────────────────────────────────────────── */
.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--alfa-red);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.25rem;
  border-radius: 9999px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-red:hover { background: var(--alfa-red-hover); }
.btn-red:active { transform: translateY(1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ── stat tiles ──────────────────────────────────────────────────── */
.stat { padding: 0.25rem 0; }
.stat-num {
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.stat-lbl { font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); margin-top: 0.25rem; }

/* ── product card ────────────────────────────────────────────────── */
.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #161616 0%, #0d0d0d 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  /* Все карточки одинаковой высоты, кнопка прижата вниз */
  min-height: 520px;
}
.product-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.product-bullets {
  min-height: 96px; /* выравнивание независимо от числа пунктов */
}
.product-card:hover {
  border-color: rgba(239, 49, 36, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px -10px rgba(239, 49, 36, 0.25);
}
.product-cover {
  aspect-ratio: 16 / 9;
  background: radial-gradient(120% 100% at 50% 0%, #2a2a2a 0%, #111 80%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-cover-fallback {
  font-size: 4rem;
  font-weight: 900;
  color: var(--alfa-red);
  text-shadow: 0 8px 30px rgba(239, 49, 36, 0.45);
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--alfa-red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 999px;
}
.product-meta { font-size: 11px; color: rgba(255, 255, 255, 0.45); text-transform: uppercase; letter-spacing: 0.15em; }
.product-title { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.product-sub   { font-size: 13.5px; color: rgba(255, 255, 255, 0.55); line-height: 1.4; }
.product-bullets li {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  padding-left: 18px;
  position: relative;
}
.product-bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--alfa-red);
  border-radius: 999px;
}

/* ── filter pills (categories) — все одинаковой высоты и min-width ─ */
.filter-pill {
  font-size: 12.5px;
  font-weight: 600;
  height: 34px;
  min-width: 150px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 150ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.filter-pill:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.filter-pill[data-active="1"] { background: var(--alfa-red); color: #fff; border-color: var(--alfa-red); }

/* ── calculator (light panel) ────────────────────────────────────── */
.calc-tab {
  padding: 8px 18px;
  border-radius: 999px;
  color: rgba(0, 0, 0, 0.65);
  transition: all 150ms ease;
}
.calc-tab[data-active="1"] {
  background: #0a0a0a;
  color: #fff;
}
.calc-lbl { font-size: 12px; color: rgba(0, 0, 0, 0.55); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--alfa-red);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(239, 49, 36, 0.4);
}
.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--alfa-red);
  cursor: pointer;
  border: 0;
}

.pill {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 120ms ease;
}
.pill:hover { background: rgba(0, 0, 0, 0.04); }
.pill-active, .pill[data-active="1"] {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
}
