/* ==========================================================================
   RED ROUTE USA IMPORT — pages.css
   Hero, page headers, process timeline, calculator, lot cards,
   starfield ceiling, underglow, gallery, comparison, pricing
   ========================================================================== */

/* --------------------------------------------------------------------------
   HOME HERO
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: clamp(620px, 92dvh, 940px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(60px, 8vw, 110px);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  /* zdjecie tla jest lekko powiekszone (scale 1.04) — przycinamy je,
     zeby nie wystawalo poza ekran */
  overflow: hidden;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: grayscale(0.35) contrast(1.12) saturate(0.85);
  transform: scale(1.04);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 74% 34%, rgba(224, 27, 45, 0.3), transparent 62%),
    linear-gradient(96deg, rgba(5, 6, 8, 0.97) 0%, rgba(5, 6, 8, 0.86) 42%, rgba(5, 6, 8, 0.5) 74%, rgba(5, 6, 8, 0.8) 100%),
    linear-gradient(0deg, var(--black) 2%, transparent 42%);
}

/* Animated route lines sweeping across the hero */
.hero__routes {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.6;
}

.hero__routes span {
  position: absolute;
  left: -30%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red-2), transparent);
  animation: hero-route 7s linear infinite;
}

.hero__routes span:nth-child(1) { top: 22%; animation-delay: 0s; }
.hero__routes span:nth-child(2) { top: 47%; animation-delay: 2.1s; opacity: 0.65; }
.hero__routes span:nth-child(3) { top: 71%; animation-delay: 4.2s; opacity: 0.45; }
.hero__routes span:nth-child(4) { top: 88%; animation-delay: 5.6s; opacity: 0.3; }

@keyframes hero-route {
  0% { transform: translateX(0); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateX(280%); opacity: 0; }
}

.hero__grid {
  display: grid;
  gap: clamp(34px, 4vw, 60px);
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  align-items: center;
}

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 6rem);
  /* 0.94 bylo zbyt ciasne dla polskich znakow — ogonki i kreski
     kolidowaly z linia powyzej przy zawijaniu na telefonie */
  line-height: 1;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero h1 .line { display: block; }

.hero h1 .thin {
  font-weight: 500;
  color: var(--text);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 99px;
  border: 1px solid rgba(224, 27, 45, 0.4);
  background: rgba(224, 27, 45, 0.1);
  backdrop-filter: var(--blur);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffc9ce;
  margin-bottom: 26px;
  font-weight: 600;
}

.hero__kicker b {
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--red);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.86rem;
  color: var(--muted);
}

.hero__trust-item svg { width: 19px; height: 19px; color: var(--red-2); flex: none; }

/* Hero side panel — quick valuation teaser */
.hero__panel {
  position: relative;
  padding: clamp(22px, 2.3vw, 30px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(12, 14, 19, 0.76);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(224, 27, 45, 0.7), transparent 42%, rgba(255, 255, 255, 0.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hero__panel-head h3 { margin: 0; font-size: 1.16rem; }

.mini-result {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(224, 27, 45, 0.2), rgba(224, 27, 45, 0.04));
  border: 1px solid rgba(224, 27, 45, 0.34);
}

.mini-result__label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffc9ce;
  margin-bottom: 5px;
}

.mini-result__value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.mini-result__meta {
  margin-top: 9px;
  font-size: 0.79rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   PAGE HEADER (inner pages)
   -------------------------------------------------------------------------- */

.pagehead {
  position: relative;
  padding-block: clamp(52px, 6.6vw, 100px) clamp(38px, 4.4vw, 62px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.pagehead__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.pagehead__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: grayscale(0.5) contrast(1.1);
}

.pagehead__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 420px at 80% 10%, rgba(224, 27, 45, 0.28), transparent 66%),
    linear-gradient(180deg, rgba(5, 6, 8, 0.86), var(--black) 92%);
}

.pagehead h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  margin-bottom: 16px;
  text-wrap: balance;
}

.pagehead .lead { max-width: 70ch; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  font-size: 0.79rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.crumbs a:hover { color: var(--red-2); }
.crumbs span[aria-hidden] { color: rgba(255, 255, 255, 0.2); }
.crumbs .is-current { color: var(--red-2); }

/* Anchor sub-nav inside pages */
.subnav {
  position: sticky;
  top: var(--nav-h);
  z-index: 60;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 13, 0.9);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

.subnav__inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px var(--gutter);
  max-width: var(--shell-wide);
  margin-inline: auto;
  scrollbar-width: none;
}

.subnav__inner::-webkit-scrollbar { display: none; }

.subnav a {
  padding: 9px 16px;
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid transparent;
}

.subnav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.subnav a.is-active {
  color: #fff;
  background: rgba(224, 27, 45, 0.16);
  border-color: rgba(224, 27, 45, 0.42);
}

/* --------------------------------------------------------------------------
   PROCESS TIMELINE
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--red), rgba(224, 27, 45, 0.18) 78%, transparent);
}

.tl-step {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding-block: 16px;
}

.tl-step__dot {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--panel-3), var(--panel));
  border: 1px solid var(--line-strong);
  transition: all 0.3s var(--ease);
}

.tl-step:hover .tl-step__dot {
  background: linear-gradient(145deg, var(--red-2), var(--red-deep));
  border-color: transparent;
  box-shadow: var(--shadow-red);
}

.tl-step__body { padding-top: 4px; }
.tl-step__body h4 { margin-bottom: 7px; }
.tl-step__body p { color: var(--muted); font-size: 0.94rem; margin: 0; }

.tl-step__meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--red-2);
}

/* --------------------------------------------------------------------------
   AUCTION LOT CARDS
   -------------------------------------------------------------------------- */

.lots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

.lot {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--panel);
  overflow: hidden;
  transition: transform 0.32s var(--ease), border-color 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

.lot:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 27, 45, 0.4);
  box-shadow: var(--shadow);
}

.lot__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, #0e1117 0 14px, #12161f 14px 28px);
}

.lot__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.65s var(--ease-out);
}

.lot:hover .lot__media img { transform: scale(1.07); }

.lot__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 6, 8, 0.9));
}

.lot__tags {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* plakietki musza byc czytelne takze na jasnym zdjeciu lotu */
.lot__tags .badge {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(8, 9, 13, 0.62);
  font-size: 0.68rem;
  padding: 4px 10px;
}
.lot__tags .badge--green { background: rgba(20, 70, 44, 0.72); }
.lot__tags .badge--gold { background: rgba(66, 52, 22, 0.72); }
.lot__tags .badge--cyan { background: rgba(14, 62, 68, 0.72); }

/* czytelne tlo pod plakietkami u gory kadru */
.lot__media::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 46%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.72), transparent);
  pointer-events: none;
}

.lot__house {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.lot__body {
  padding: 20px 22px 22px;
  display: grid;
  gap: 14px;
  flex: 1;
}

.lot__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0;
  line-height: 1.14;
}

.lot__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px 14px;
  font-size: 0.82rem;
}

.lot__specs div { display: grid; gap: 1px; }
.lot__specs dt { color: var(--dim); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; }
.lot__specs dd { margin: 0; color: var(--text); font-weight: 500; }

.lot__price {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.lot__price-col { display: grid; gap: 2px; flex: 1 1 42%; min-width: 0; }
.lot__price-col:last-child { text-align: right; }

.lot__price-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--dim);
}

.lot__bid {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.lot__total {
  font-family: var(--font-display);
  font-size: 1.62rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-align: right;
}

.lot__total span { color: var(--red-2); font-size: 0.9rem; }

.lot__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  font-size: 0.78rem;
  color: var(--dim);
}

.lot__save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #86f0b4;
  font-weight: 600;
}

/* Cost breakdown revealed inside lot card */
.lot__break {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
  font-size: 0.82rem;
}

.lot__break-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

/* opis moze sie zawijac, kwota zostaje w jednej linii przy prawej krawedzi */
.lot__break-row span:first-child { color: var(--muted); min-width: 0; }
.lot__break-row span:last-child {
  font-family: var(--font-mono);
  color: var(--text);
  flex: none;
  white-space: nowrap;
  text-align: right;
}
.lot__break-row.is-total {
  padding-top: 7px;
  margin-top: 3px;
  border-top: 1px dashed var(--line-strong);
  font-weight: 700;
}
.lot__break-row.is-total span { color: #fff; }

/* --------------------------------------------------------------------------
   CALCULATOR
   -------------------------------------------------------------------------- */

.calc {
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
}

@media (max-width: 1080px) {
  /* minmax(0, 1fr), nie 1fr — inaczej tabela wyniku (min-width) rozpychala
     kolumne i cala strona jechala w poziomie na telefonie */
  .calc { grid-template-columns: minmax(0, 1fr); }
}

.calc__panel {
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  min-width: 0;
}

.calc__panel--result {
  position: sticky;
  top: calc(var(--nav-h) + 62px);
  background:
    linear-gradient(165deg, rgba(224, 27, 45, 0.13), transparent 46%),
    var(--panel-2);
  border-color: rgba(224, 27, 45, 0.28);
}

@media (max-width: 1080px) {
  .calc__panel--result { position: static; }
}

.calc__section {
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.calc__section:first-of-type { padding-top: 0; }
.calc__section:last-of-type { border-bottom: 0; padding-bottom: 0; }

.calc__section-title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: 18px;
}

.calc__section-title i {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(224, 27, 45, 0.16);
  border: 1px solid rgba(224, 27, 45, 0.3);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-style: normal;
  color: #ffb9bf;
}

.calc__fields {
  display: grid;
  gap: 15px;
  /* min(100%, 180px) — na waskim ekranie kolumna nigdy nie jest szersza
     niz kontener, wiec siatka poprawnie zwija sie do jednej kolumny */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
}

.calc__fields--single { grid-template-columns: 1fr; }

.calc__hero-result {
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: var(--radius-l);
  background: linear-gradient(140deg, rgba(224, 27, 45, 0.26), rgba(224, 27, 45, 0.05));
  border: 1px solid rgba(224, 27, 45, 0.4);
  margin-bottom: 20px;
  text-align: center;
}

.calc__hero-label {
  font-size: 0.76rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: #ffc9ce;
  margin-bottom: 8px;
}

.calc__hero-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.01em;
}

.calc__hero-sub {
  margin-top: 10px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
}

.calc__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.calc__kpi {
  padding: 14px 15px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.calc__kpi dt {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 5px;
}

.calc__kpi dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* Cost structure bar */
.costbar {
  display: flex;
  height: 16px;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 14px;
}

.costbar span {
  display: block;
  height: 100%;
  transition: width 0.5s var(--ease);
  min-width: 0;
}

.costbar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.costbar__legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.costbar__legend i {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex: none;
}

.c-car { background: linear-gradient(90deg, #ff3b4e, #e01b2d); }
.c-usa { background: linear-gradient(90deg, #f79b2c, #d97706); }
.c-sea { background: linear-gradient(90deg, #37d4e0, #0891b2); }
.c-tax { background: linear-gradient(90deg, #8b5cf6, #6d28d9); }
.c-svc { background: linear-gradient(90deg, #3ddc84, #0f9d58); }
.c-opt { background: linear-gradient(90deg, #94a3b8, #64748b); }

/* Mode toggle */
.calc__modes {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  padding: 4px;
  gap: 4px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 22px;
}

/* Na najwezszych ekranach oba tryby nie mieszcza sie obok siebie w pigulce —
   przelacznik zamienia sie w dwa przyciski na pelna szerokosc. */
@media (max-width: 440px) {
  .calc__modes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    border-radius: var(--radius);
  }
  .calc__mode { border-radius: calc(var(--radius) - 4px); }
}

.calc__mode {
  padding: 9px 18px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}

.calc__mode.is-active {
  background: linear-gradient(135deg, var(--red-2), var(--red));
  color: #fff;
  box-shadow: 0 6px 20px rgba(224, 27, 45, 0.34);
}

.rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.rate-pill b { color: #fff; }

/* --------------------------------------------------------------------------
   CONVERSION — before / after light comparison
   -------------------------------------------------------------------------- */

.beam-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.beam {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(180deg, #0a0c11 0%, #0d1017 52%, #16191f 52%, #1b1f27 100%);
}

/* road horizon + markings */
.beam::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  width: 6%;
  height: 48%;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0 12%, transparent 12% 26%);
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  opacity: 0.35;
}

.beam__cone {
  position: absolute;
  bottom: 46%;
  left: 50%;
  width: 74%;
  height: 46%;
  translate: -50% 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 244, 214, 0.72), rgba(255, 240, 200, 0.16) 52%, transparent 74%);
  filter: blur(2px);
}

.beam--usa .beam__cone {
  clip-path: polygon(6% 100%, 94% 100%, 78% 6%, 22% 6%);
  bottom: 40%;
  height: 58%;
}

.beam--eu .beam__cone {
  clip-path: polygon(4% 100%, 96% 100%, 88% 46%, 30% 52%);
}

.beam__label {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
}

.beam__note {
  position: absolute;
  z-index: 3;
  inset-inline: 14px;
  bottom: 14px;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(5, 6, 8, 0.78);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  color: var(--text);
}

.beam__oncoming {
  position: absolute;
  z-index: 2;
  left: 12%;
  bottom: 40%;
  width: 40px;
  height: 22px;
  border-radius: 6px 6px 3px 3px;
  background: #1f2530;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.beam__oncoming::before,
.beam__oncoming::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 8px; height: 5px;
  border-radius: 50%;
  background: #ffe9a8;
  box-shadow: 0 0 10px 3px rgba(255, 233, 168, 0.7);
}

.beam__oncoming::before { left: 5px; }
.beam__oncoming::after { right: 5px; }

.beam--usa .beam__glare {
  position: absolute;
  z-index: 3;
  left: 12%;
  bottom: 42%;
  width: 76px; height: 76px;
  translate: -18% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 82, 82, 0.5), transparent 68%);
  animation: rr-twinkle 1.6s ease-in-out infinite;
}

/* Light element checklist grid */
.lights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.light-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: all 0.28s var(--ease);
}

.light-item:hover {
  border-color: rgba(224, 27, 45, 0.36);
  background: var(--panel-2);
}

.light-item i {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(224, 27, 45, 0.14);
  border: 1px solid rgba(224, 27, 45, 0.28);
  color: var(--red-2);
  flex: none;
}

.light-item i svg { width: 21px; height: 21px; }
.light-item b { display: block; font-size: 0.98rem; color: #fff; margin-bottom: 3px; }
.light-item span { font-size: 0.83rem; color: var(--muted); line-height: 1.55; }

/* USA vs EU comparison table styling helper */
.vs-table td:first-child { width: 34%; font-weight: 600; color: #fff; }
.vs-table td.usa { color: #ffb9bf; }
.vs-table td.eu { color: #9beaf1; }

/* --------------------------------------------------------------------------
   TUNING — starfield ceiling + underglow
   -------------------------------------------------------------------------- */

.starsky {
  position: relative;
  min-height: clamp(300px, 40vw, 460px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 50% 118%, rgba(139, 92, 246, 0.22), transparent 68%),
    linear-gradient(180deg, #04060f 0%, #070b18 46%, #0a0e1c 100%);
  display: grid;
  place-items: end start;
  padding: clamp(22px, 3vw, 38px);
  isolation: isolate;
}

.starsky__stars,
.starsky__stars-2,
.starsky__stars-3 {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.starsky__stars { animation: rr-twinkle 3.4s ease-in-out infinite; }
.starsky__stars-2 { animation: rr-twinkle 5.1s ease-in-out infinite 0.7s; }
.starsky__stars-3 { animation: rr-twinkle 7.2s ease-in-out infinite 1.6s; }

.starsky__star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
}

/* soft roof curvature vignette */
.starsky::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 42%, rgba(3, 4, 8, 0.86) 100%);
}

.starsky__caption {
  position: relative;
  z-index: 3;
  max-width: 46ch;
}

.starsky__caption h3 { margin-bottom: 9px; }
.starsky__caption p { color: rgba(226, 232, 240, 0.8); margin: 0; font-size: 0.94rem; }

.starsky__shoot {
  position: absolute;
  z-index: 1;
  top: 18%;
  left: -12%;
  width: 140px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #fff);
  border-radius: 99px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
  animation: shoot 8s ease-in infinite;
  opacity: 0;
}

.starsky__shoot:nth-of-type(2) { top: 44%; animation-delay: 4.5s; }

@keyframes shoot {
  0% { transform: translate(0, 0) rotate(14deg); opacity: 0; }
  4% { opacity: 1; }
  16% { transform: translate(760px, 190px) rotate(14deg); opacity: 0; }
  100% { opacity: 0; }
}

/* Underglow showcase */
.underglow {
  position: relative;
  min-height: clamp(280px, 36vw, 420px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  overflow: hidden;
  background: linear-gradient(180deg, #07080c 0%, #0b0d13 58%, #121620 100%);
  display: grid;
  place-items: end start;
  padding: clamp(22px, 3vw, 38px);
  isolation: isolate;
}

.underglow__car {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 26%;
  translate: -50% 0;
  width: min(76%, 620px);
  aspect-ratio: 5 / 2;
  border-radius: 46% 46% 16% 16% / 62% 62% 18% 18%;
  background: linear-gradient(180deg, #262c38, #12161e 62%, #0b0e14);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 8px 22px rgba(255, 255, 255, 0.06);
}

.underglow__glow {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 18%;
  translate: -50% 0;
  width: min(88%, 720px);
  height: 130px;
  border-radius: 50%;
  filter: blur(34px);
  background: conic-gradient(from 180deg, #ff2d6f, #8b5cf6, #37d4e0, #3ddc84, #ffd23f, #ff2d6f);
  opacity: 0.85;
  animation: rr-spin 12s linear infinite, rr-glow-shift 8s ease-in-out infinite;
}

.underglow__floor {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 34%;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 60%);
  backdrop-filter: blur(2px);
}

.underglow__caption {
  position: relative;
  z-index: 3;
  max-width: 44ch;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: rgba(5, 6, 10, 0.66);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.underglow__caption h3 { margin-bottom: 8px; }
.underglow__caption p { margin: 0; font-size: 0.93rem; color: var(--muted); }

/* colour swatch picker */
.swatches { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }

.swatch {
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  padding: 0;
}

.swatch:hover { transform: scale(1.12); border-color: #fff; }
.swatch.is-active { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18); }

/* Module / PCB spec cards */
.module {
  display: grid;
  grid-template-columns: 122px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--panel);
  transition: all 0.3s var(--ease);
}

@media (max-width: 560px) {
  .module { grid-template-columns: 1fr; }
}

.module:hover { border-color: rgba(55, 212, 224, 0.34); transform: translateY(-4px); }

.module__thumb {
  position: relative;
  background: #0b0e14;
  min-height: 122px;
  overflow: hidden;
}

.module__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.1);
}

.module__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(55, 212, 224, 0.18), transparent 60%);
}

.module__body { padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.module__body b { font-family: var(--font-display); font-size: 1.06rem; text-transform: uppercase; color: #fff; letter-spacing: .02em; }
.module__body p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

.module__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.module__specs span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(55, 212, 224, 0.1);
  border: 1px solid rgba(55, 212, 224, 0.22);
  color: #9beaf1;
}

/* --------------------------------------------------------------------------
   GALLERY
   -------------------------------------------------------------------------- */

.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  grid-auto-rows: 12px;
  gap: 16px;
}

.gal__item {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, #0e1117 0 14px, #12161f 14px 28px);
  cursor: pointer;
  transition: transform 0.34s var(--ease), border-color 0.34s var(--ease), box-shadow 0.34s var(--ease);
}

.gal__item:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 27, 45, 0.42);
  box-shadow: var(--shadow);
  z-index: 2;
}

.gal__item.is-hidden { display: none; }

/* Masonry spans set via inline style / classes */
.gal__item--tall { grid-row: span 34; }
.gal__item--wide { grid-row: span 22; grid-column: span 2; }
.gal__item--std { grid-row: span 24; }

@media (max-width: 620px) {
  .gal__item--wide { grid-column: span 1; }
}

.gal__item img,
.gal__item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.4s var(--ease);
}

.gal__item:hover img { transform: scale(1.06); }

.gal__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 5px;
  padding: 18px;
  background: linear-gradient(180deg, transparent 42%, rgba(5, 6, 8, 0.9));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gal__item:hover .gal__overlay,
.gal__item:focus-visible .gal__overlay { opacity: 1; }

.gal__overlay b {
  font-family: var(--font-display);
  font-size: 1.04rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
}

.gal__overlay span { font-size: 0.79rem; color: var(--muted); }

.gal__type {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(5, 6, 8, 0.72);
  border: 1px solid var(--line-strong);
  color: #fff;
  backdrop-filter: blur(6px);
}

.gal__type svg { width: 16px; height: 16px; }
.gal__type.is-video { background: rgba(224, 27, 45, 0.86); border-color: transparent; }

/* --------------------------------------------------------------------------
   PRICING / PACKAGES
   -------------------------------------------------------------------------- */

.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  transition: all 0.32s var(--ease);
}

.pack:hover { transform: translateY(-6px); border-color: rgba(224, 27, 45, 0.36); box-shadow: var(--shadow); }

.pack--hot {
  border-color: rgba(224, 27, 45, 0.5);
  background: linear-gradient(165deg, rgba(224, 27, 45, 0.15), transparent 48%), var(--panel-2);
}

.pack__flag {
  position: absolute;
  top: -1px;
  right: 22px;
  padding: 6px 14px 8px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(135deg, var(--red-2), var(--red-deep));
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.pack__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.pack__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.pack__price small {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}

.pack .btn { margin-top: auto; }

/* --------------------------------------------------------------------------
   TESTIMONIALS
   -------------------------------------------------------------------------- */

.quote {
  position: relative;
  padding: clamp(22px, 2.4vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--panel);
  display: grid;
  gap: 18px;
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  right: 22px;
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 1;
  color: rgba(224, 27, 45, 0.16);
  pointer-events: none;
}

.quote p { margin: 0; font-size: 0.98rem; line-height: 1.75; color: var(--text); }

.quote__who {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.quote__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--red-2), var(--red-deep));
  flex: none;
}

.quote__who b { display: block; font-size: 0.94rem; }
.quote__who span { font-size: 0.79rem; color: var(--muted); }

.stars { display: inline-flex; gap: 3px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }

/* --------------------------------------------------------------------------
   CTA BAND
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(224, 27, 45, 0.34);
  padding: clamp(30px, 4.4vw, 62px);
  background:
    radial-gradient(760px 340px at 88% 12%, rgba(224, 27, 45, 0.34), transparent 66%),
    linear-gradient(150deg, var(--panel-2), var(--ink));
  display: grid;
  gap: 26px;
  align-items: center;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, auto);
}

@media (max-width: 860px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}

.cta-band > div { min-width: 0; }

.cta-band h2 { margin-bottom: 12px; }
.cta-band p { margin: 0; color: var(--muted); max-width: 58ch; }

.cta-band__deco {
  position: absolute;
  right: -60px;
  top: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(224, 27, 45, 0.24);
  pointer-events: none;
}

.cta-band__deco::before {
  content: "";
  position: absolute;
  inset: 44px;
  border-radius: 50%;
  border: 1px solid rgba(224, 27, 45, 0.16);
}

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: clamp(20px, 2.6vw, 34px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
}

@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.map-frame {
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid;
  place-items: center;
}

.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) invert(0.9) hue-rotate(180deg); }

.hours { display: grid; gap: 9px; }

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}

.hours li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours li span:first-child { color: var(--muted); }
.hours li span:last-child { color: #fff; font-weight: 600; }
.hours li.is-closed span:last-child { color: var(--dim); font-weight: 400; }

/* --------------------------------------------------------------------------
   Sources / disclosure note
   -------------------------------------------------------------------------- */

.sources {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.022);
  font-size: 0.8rem;
  line-height: 1.66;
  color: var(--dim);
}

.sources a { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255,255,255,.22); text-underline-offset: 3px; }
.sources a:hover { color: var(--red-2); }
.sources b { color: var(--text); }

/* --------------------------------------------------------------------------
   CHECKER POCHODZENIA (VIN) — kalkulator
   -------------------------------------------------------------------------- */

.vin-box {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(55, 212, 224, 0.08), transparent 52%),
    var(--panel);
  display: grid;
  gap: 18px;
  min-width: 0;
}

.vin-box .input {
  font-size: clamp(1rem, 2.6vw, 1.24rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-block: 16px;
}

/* display:grid nadpisuje domyslne [hidden]{display:none} przegladarki —
   bez tej reguly puste pole wyniku widnialo jako pusta ramka */
.vin-result[hidden] { display: none; }

.vin-result {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  animation: rr-fade-up 0.35s var(--ease-out) both;
}

.vin-result strong {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vin-result span {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.vin-result.is-good {
  border-color: rgba(61, 220, 132, 0.46);
  background: rgba(61, 220, 132, 0.1);
}
.vin-result.is-good strong { color: #86f0b4; }

.vin-result.is-bad {
  border-color: rgba(224, 27, 45, 0.46);
  background: rgba(224, 27, 45, 0.1);
}
.vin-result.is-bad strong { color: #ffb9bf; }

.vin-result.is-wait {
  border-color: rgba(216, 180, 106, 0.42);
  background: rgba(216, 180, 106, 0.09);
}
.vin-result.is-wait strong { color: var(--gold); }

.vin-legend {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
  min-width: 0;
}

.vin-legend b {
  font-family: var(--font-mono);
  font-size: 1.02rem;
  color: var(--red-2);
  letter-spacing: 0.08em;
}

.vin-legend span {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.vin-legend:first-child b { color: #86f0b4; }

/* Kraj produkcji na karcie lotu — decyduje o stawce cla od 1.07.2026 */
.lot__origin {
  margin: -6px 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--dim);
}

.lot__origin.is-usa { color: #86f0b4; }
