/*! sabre-beta.css — SaBRe Wheels public page.
   Loaded after /styles.css, /aerofitting-v2.css, /aerofitting-v2-charts.css and
   /aerofitting-v2-wheels.css. Page-specific classes use the `.sb-` prefix;
   everything generic (sections, headings, reveal, subnav, rails, cards, hero,
   count-up, tunnel chart, wheel lab) is reused from aerofitting-v2*.css.
   Tokens reused: --gold, --gold-light, --brg, --bg, --bg-alt, --card-bg,
   --text-primary, --text-secondary, --text-muted, --border, --av2-radius,
   --av2-shadow, --av2-ease. */

/* --- Hero stat tiles (right column, dark glass panel) --- */
.sb-hero-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--av2-radius, 16px);
  overflow: hidden;
  backdrop-filter: blur(14px);
}
.sb-hero-tile {
  padding: 24px 24px;
  background: rgba(10,10,10,0.55);
}
.sb-hero-tile-value {
  display: block;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gold-light);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.sb-hero-tile-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255,255,255,0.78);
}

/* --- #dlaczego timeline --- */
.sb-timeline { list-style: none; margin: var(--av2-space-block) 0 0; padding: 0; display: grid; gap: var(--av2-space-grid); position: relative; }
.sb-timeline::before { content: ""; position: absolute; left: 22px; top: 12px; bottom: 12px; width: 1px; background: var(--border); }
.sb-stage { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 20px; align-items: start; }
.sb-stage-number { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg); font-size: 13px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.sb-stage-body { padding: 4px 0 24px; border-bottom: 1px solid var(--border); }
.sb-stage:last-child .sb-stage-body { border-bottom: none; }
.sb-stage-title { margin: 8px 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); }
.sb-stage-text { margin: 0; max-width: 64ch; font-size: 15px; line-height: 1.65; color: var(--text-secondary); }
.sb-stage-fact { margin: 12px 0 0; font-size: 13px; color: var(--text-muted); }
.sb-stage-fact strong { font-size: 18px; color: var(--brg); margin-right: 6px; font-variant-numeric: tabular-nums; }
.sb-stage-photo { margin-top: 20px; max-width: 720px; }
.sb-stage-photo img { width: 100%; height: auto; border-radius: var(--av2-radius); display: block; }
@media (min-width: 1024px) { .sb-stage { grid-template-columns: 56px minmax(0, 1fr); gap: 28px; } .sb-timeline::before { left: 28px; } .sb-stage-number { width: 56px; height: 56px; font-size: 15px; } }

/* --- #modele product cards --- */
.sb-products {
  display: flex;
  flex-direction: column;
  gap: 56px;
  margin-top: 40px;
}
.sb-product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--av2-radius, 16px);
  background: var(--card-bg, var(--bg));
}
.sb-product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.sb-product-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sb-product-cutout {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform: rotate(var(--sb-wheel-rotate, 0deg));
  transform-origin: 50% 50%;
  will-change: transform;
  transition: none;
}
.sb-product-cutout img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sb-product-media > img {
  overflow: visible;
  transform: rotate(var(--sb-wheel-rotate, 0deg));
  transform-origin: 50% 50%;
  will-change: transform;
  transition: none;
}


/* --- Callout lines and badges in #modele --- */
.sb-product-callouts {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
.sb-callout-line {
  stroke: var(--gold, #B47E00);
  stroke-width: 1.5;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 0.8s var(--av2-ease, cubic-bezier(0.16, 1, 0.3, 1));
}
.sb-callout-dot {
  fill: var(--gold, #B47E00);
  opacity: 0;
  transition: opacity 0.4s var(--av2-ease, cubic-bezier(0.16, 1, 0.3, 1));
}
.sb-callout-badges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.sb-callout-pill {
  position: absolute;
  background: rgba(10, 10, 10, 0.90);
  border: 1px solid rgba(180, 126, 0, 0.6);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(var(--pill-tx, -50%), calc(var(--pill-ty, -50%) + 6px));
  transition: opacity 0.5s var(--av2-ease, cubic-bezier(0.16, 1, 0.3, 1)),
              transform 0.5s var(--av2-ease, cubic-bezier(0.16, 1, 0.3, 1));
  pointer-events: auto;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 2px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sb-callout-pill--top {
  --pill-tx: -50%;
  --pill-ty: -50%;
}
.sb-callout-pill--left {
  --pill-tx: -35%;
  --pill-ty: -50%;
}
.sb-callout-pill--right {
  --pill-tx: -65%;
  --pill-ty: -50%;
}
.sb-callout-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light, #DFC07A);
  line-height: 1.2;
}
.sb-callout-sub {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
}

/* Callout reveals: PERMANENT ("i niech nie znikają") */
.sb-product-media.has-revealed .sb-callout-line,
.sb-product-media.is-active .sb-callout-line {
  stroke-dashoffset: 0;
}
.sb-product-media.has-revealed .sb-callout-dot,
.sb-product-media.is-active .sb-callout-dot {
  opacity: 1;
}
.sb-product-media.has-revealed .sb-callout-pill,
.sb-product-media.is-active .sb-callout-pill {
  opacity: 1;
  transform: translate(var(--pill-tx, -50%), var(--pill-ty, -50%));
}

/* Staggered entry */
.sb-product-media.has-revealed .sb-callout-line-group:nth-child(1) .sb-callout-line { transition-delay: 0ms; }
.sb-product-media.has-revealed .sb-callout-line-group:nth-child(2) .sb-callout-line { transition-delay: 90ms; }
.sb-product-media.has-revealed .sb-callout-line-group:nth-child(3) .sb-callout-line { transition-delay: 180ms; }
.sb-product-media.has-revealed .sb-callout-line-group:nth-child(1) .sb-callout-dot { transition-delay: 0ms; }
.sb-product-media.has-revealed .sb-callout-line-group:nth-child(2) .sb-callout-dot { transition-delay: 90ms; }
.sb-product-media.has-revealed .sb-callout-line-group:nth-child(3) .sb-callout-dot { transition-delay: 180ms; }
.sb-product-media.has-revealed .sb-callout-pill:nth-child(1) { transition-delay: 40ms; }
.sb-product-media.has-revealed .sb-callout-pill:nth-child(2) { transition-delay: 130ms; }
.sb-product-media.has-revealed .sb-callout-pill:nth-child(3) { transition-delay: 220ms; }
.sb-product-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sb-product-name { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--text-primary); }
.sb-product-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.sb-product-desc { font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.sb-product-specs { font-size: 13px; line-height: 1.8; color: var(--text-secondary); padding: 14px 16px; background: var(--bg-alt); border-radius: 10px; }
.sb-product-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.sb-product-price-amount { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.sb-product-price-note { font-size: 13px; color: var(--text-muted); }
.sb-product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Product thumbnails gallery */
.sb-product-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 12px 0 4px; }
@media (max-width: 768px) {
  .sb-product-gallery { grid-template-columns: repeat(3, 1fr); }
}
.sb-product-gallery-thumb { border-radius: 8px; overflow: hidden; aspect-ratio: 1 / 1; background: var(--bg-alt); }
.sb-product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform 0.2s var(--av2-ease); }
.sb-product-gallery-thumb:hover img { transform: scale(1.06); }

/* Section featured photo (#dlaczego, #setupy) */
.sb-section-photo {
  position: relative;
  margin: 32px 0 40px;
  border-radius: var(--av2-radius, 16px);
  overflow: hidden;
}
.sb-section-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .sb-section-photo img { height: 220px; }
}
.sb-section-photo .av2-credit {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.8);
  padding: 3px 8px;
  border-radius: 6px;
  pointer-events: none;
}

/* Action gallery items with credit */
.sb-gallery-item { position: relative; border-radius: 6px; overflow: hidden; }
.sb-gallery-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 6px; cursor: pointer; transition: transform 0.2s; }
.sb-gallery-item:hover img { transform: scale(1.03); }
.sb-gallery-item .av2-credit {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.75);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}

.sb-product-variants { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 4px 0; }
.sb-variant-card { padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.sb-variant-card--featured { border-color: var(--gold); }
.sb-variant-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); }
.sb-variant-card--featured .sb-variant-label { color: var(--gold); }
.sb-variant-weight { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-top: 4px; }
.sb-variant-bearings { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.sb-variant-carbon { font-size: 12px; color: var(--text-secondary); }
.sb-variant-price { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-top: 10px; }
.sb-variant-price span { font-size: 12px; font-weight: 400; color: var(--text-muted); }

/* --- #tunel figure + article link --- */
.sb-figure {
  margin: 40px 0 0;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--av2-radius, 16px);
  background: rgba(255,255,255,0.04);
}
.sb-figure img { width: 100%; height: auto; display: block; border-radius: 8px; background: #fff; }
.sb-figure figcaption { margin-top: 12px; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.7); }

/* --- #setupy --- */
.sb-setups-row:not(:first-child) { margin-top: 24px; }
.setup-card--featured { border-color: var(--gold); }
.sb-setups-cta { text-align: center; margin-top: 24px; }

/* --- #technologia link --- */
.sb-tech-link { color: var(--gold); font-size: 14px; text-decoration: none; }
.sb-tech-link:hover { color: var(--gold-light); }

/* --- #kontakt --- */
.sb-kontakt { max-width: 640px; margin: 0 auto; text-align: center; padding: 12px 0; }
.sb-kontakt h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.sb-kontakt p { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.82); margin-bottom: 24px; }
.sb-kontakt .btn { margin-bottom: 16px; }
.sb-kontakt-email { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 0 !important; }

/* --- Responsive --- */
@media (min-width: 768px) {
  .sb-product-variants { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .sb-product { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
  .sb-product--reverse { grid-template-columns: 1.1fr 0.9fr; }
  .sb-product--reverse .sb-product-media { order: 2; }
  .sb-product-media { aspect-ratio: 1 / 1; }
}
@media (max-width: 768px) {
  .sb-hero-tiles { margin-top: 8px; }
  .sb-callout-pill {
    padding: 4px 8px;
    border-radius: 6px;
    max-width: 140px;
    white-space: nowrap;
  }
  .sb-callout-label {
    font-size: 10px;
  }
  .sb-callout-sub {
    font-size: 9px;
  }
}
@media (max-width: 480px) {
  .sb-callout-pill {
    padding: 3px 6px;
    max-width: 140px;
  }
  .sb-callout-label {
    font-size: 9px;
  }
  .sb-callout-sub {
    font-size: 8px;
    line-height: 1.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-product-cutout,
  .sb-product-media > img {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .sb-callout-line {
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
  .sb-callout-dot {
    opacity: 1 !important;
    transition: none !important;
  }
  .sb-callout-pill {
    opacity: 1 !important;
    transform: translate(var(--pill-tx, -50%), var(--pill-ty, -50%)) !important;
    transition: none !important;
  }
}

/* === sales stream === */
/* Hero tiles are links to the model blocks. */
.sbs-hero-tile-link { display: block; color: inherit; text-decoration: none; transition: background-color 0.2s; }
.sbs-hero-tile-link:hover, .sbs-hero-tile-link:focus-visible { background: rgba(10,10,10,0.72); }
.sbs-hero-tile-link .sb-hero-tile-label { font-size: 14px; color: #FFFFFF; }

/* #ceny: model price cards (one column on phones, three on desktop), bundles, how to buy. */
.sbs-price-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: var(--av2-space-block); }
@media (min-width: 900px) { .sbs-price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sbs-price-card { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--border); border-radius: var(--av2-radius, 16px); background: var(--bg); }
.sbs-price-card-name { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--text-primary); }
.sbs-price-card-unit { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.sbs-price-card-spec { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.sbs-price-card-audience { font-size: 14px; line-height: 1.55; color: var(--text-secondary); }
.sbs-price-card-price { margin-top: 12px; font-size: 14px; color: var(--text-muted); }
.sbs-price-card-price strong { margin-right: 4px; font-size: 28px; font-weight: 800; letter-spacing: -0.01em; color: var(--brg); }
.sbs-price-rows { margin-top: 12px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sbs-price-row { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--border); }
.sbs-price-row:first-child { padding-top: 0; border-top: none; }
.sbs-price-row-label { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.sbs-price-row-price { font-size: 14px; color: var(--text-muted); }
.sbs-price-row-price strong { margin-right: 4px; font-size: 22px; font-weight: 800; color: var(--brg); }
.sbs-price-card-per { font-size: 13px; color: var(--text-muted); }
.sbs-price-card-link { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 700; color: var(--gold); text-decoration: none; }
.sbs-price-card-link:hover { color: var(--brg); }
.sbs-bundles { margin-top: var(--av2-space-block); }
.sbs-bundles-title { margin-bottom: 16px; font-size: 20px; font-weight: 700; color: var(--text-primary); }
.sbs-bundles-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 640px) { .sbs-bundles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sbs-bundles-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sbs-bundle-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.sbs-bundle-card--featured { border-color: var(--gold); }
.sbs-bundle-use { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); }
.sbs-bundle-name { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.sbs-bundle-lines { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }
.sbs-bundle-price { margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.sbs-bundle-price strong { font-size: 20px; font-weight: 800; color: var(--brg); }
.sbs-bundle-price-label { display: block; font-size: 12px; }
.sbs-bundle-cta { margin-top: auto; }
.sbs-bundle-card .sbs-bundle-cta { margin-top: 12px; }
.sbs-how-to-buy { margin-top: 24px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.sbs-how-to-buy a { font-weight: 700; color: var(--gold); text-decoration: none; }

/* #modele: decision head first (name, unit, audience, numbers, prices, CTAs), then media and body.
   On the two-column desktop grid the head spans both columns. */
.sbs-product-head { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 1024px) { .sbs-product-head { grid-column: 1 / -1; } }
.sbs-product-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.sbs-product-title .sb-product-name { font-size: clamp(24px, 3vw, 32px); }
.sbs-product-unit { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.sbs-product-audience { max-width: 72ch; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.sbs-product-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; }
.sbs-product-numbers li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--bg-alt); }
.sbs-product-numbers strong { font-size: 16px; font-weight: 800; color: var(--brg); font-variant-numeric: tabular-nums; }
.sbs-product-numbers span { font-size: 12px; line-height: 1.35; color: var(--text-muted); }
.sbs-product-offers { display: flex; flex-direction: column; gap: 10px; }
.sbs-product-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; }
.sbs-product-offer-label { flex: 1 1 100%; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.sbs-product-offer-price { flex: 1 1 auto; font-size: 14px; color: var(--text-muted); }
.sbs-product-offer-price strong { margin-right: 4px; font-size: 24px; font-weight: 800; color: var(--text-primary); }
.sbs-product-offer-unit { white-space: nowrap; }
.sbs-product-ask { flex: 0 0 auto; }
.sbs-product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sbs-product-email { font-size: 14px; color: var(--text-secondary); user-select: all; }
.sbs-product-secondary { align-self: flex-start; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--gold); text-decoration: none; }
.sbs-product-secondary:hover { color: var(--brg); }
@media (max-width: 480px) {
  .sbs-product-numbers { grid-template-columns: minmax(0, 1fr); }
  .sbs-product-numbers li { flex-direction: row; align-items: baseline; gap: 8px; }
  .sbs-product-ask, .sbs-product-actions .btn { width: 100%; }
}
.sbs-product-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .sbs-product-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sbs-product-gallery picture, .sbs-gallery picture { display: block; width: 100%; height: 100%; }

/* #galeria: eight photos, four per row on desktop. */
@media (min-width: 1024px) { body.av2-page .sbs-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* #kontakt: two actions. */
.sbs-kontakt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.sbs-kontakt-actions .btn { margin-bottom: 16px; }
