:root {
  --bg: #f0f4f3;
  --paper: #ffffff;
  --alt: #e5ecea;
  --text: #1a2625;
  --muted: #4a5957;
  /* zielony młotkowy (jak na zdjęciach kół) */
  --green: #3d8580;
  --green-dark: #1f4f4b;
  --green-soft: #d7ebe9;
  --line: #b4c4c1;
  --warn-bg: #f6f2de;
  --warn-line: #c9bb6d;
  --focus: #1a6fd1;
  --maxw: 1080px;
  --font: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Roboto Slab", Rockwell, Georgia, "Times New Roman", serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-padding-top: 90px;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: break-word;
  overflow-x: clip;
}
::selection { background: var(--green); color: #fff; }
input, select, button { accent-color: var(--green); caret-color: var(--green); }
svg { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: var(--green-dark); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--green-dark); text-wrap: balance; hyphens: manual; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.05rem); padding-bottom: .35em; border-bottom: 3px solid var(--green); display: inline-block; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.container {
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding-inline: max(clamp(.75rem, 2.5vw, 1.25rem), env(safe-area-inset-left, 0))
                  max(clamp(.75rem, 2.5vw, 1.25rem), env(safe-area-inset-right, 0));
}
.muted { color: var(--muted); font-weight: 400; }
.price-value, [data-price], .choice-price, .summary-total strong, .summary-lines li span:last-child { font-variant-numeric: tabular-nums lining-nums; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:hover, .skip-link:focus { color: #fff; }
.skip-link:focus { left: 0; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: .6rem 1.4rem;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--green);
  border: 2px solid var(--green); border-radius: 3px;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--green-dark); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-block { display: flex; width: 100%; }

/* Nagłówek */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper); border-bottom: 4px solid var(--green);
}
.header-inner {
  display: flex; align-items: center; gap: 1rem; min-height: 72px;
  width: min(100%, 1240px); margin-inline: auto;
  padding-inline: max(clamp(.75rem, 2.5vw, 1.25rem), env(safe-area-inset-left, 0))
                  max(clamp(.75rem, 2.5vw, 1.25rem), env(safe-area-inset-right, 0));
  padding-top: env(safe-area-inset-top, 0);
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--green-dark); }
.brand-text small { color: var(--muted); font-size: .9rem; }
.site-nav { display: flex; gap: 1.2rem; margin-left: auto; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 700; padding: .3rem 0; border-bottom: 3px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: var(--green); border-bottom-color: var(--green); }

/* Wybór języka: przycisk z flagą i menu */
.lang { position: relative; flex-shrink: 0; }
.lang-btn {
  display: flex; align-items: center; gap: .5rem;
  font: inherit; font-weight: 600; color: var(--text);
  min-height: 44px; padding: .3rem .7rem;
  background: #fff; border: 2px solid var(--green); border-radius: 3px; cursor: pointer;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--green-soft); }
.lang-btn-code { display: none; }
.lang-caret { width: 7px; height: 7px; border: solid var(--green-dark); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); margin-left: .15rem; }
.flag { display: inline-flex; flex-shrink: 0; width: 24px; height: 16px; outline: 1px solid rgba(0, 0, 0, .35); outline-offset: -1px; }
.flag svg { width: 100%; height: 100%; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60;
  min-width: 13rem; margin: 0; padding: .3rem 0;
  background: var(--paper); border: 2px solid var(--green); border-radius: 3px;
  box-shadow: 0 6px 18px rgba(20, 40, 20, .22);
}
.lang-menu[hidden] { display: none; }
.lang-menu li { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .3rem .9rem; cursor: pointer; font-weight: 600; }
.lang-menu li:hover, .lang-menu li:focus { background: var(--green-soft); outline: none; }
.lang-menu li:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.lang-menu li[aria-selected="true"] { color: var(--green-dark); background: var(--alt); }
.lang-menu li[aria-selected="true"]::after { content: ""; margin-left: auto; width: 11px; height: 6px; border: solid var(--green); border-width: 0 0 3px 3px; transform: rotate(-45deg) translateY(-2px); }
.header-phone { font-weight: 700; font-size: 1.1rem; color: var(--green-dark); text-decoration: none; white-space: nowrap; padding: .45rem .8rem; border: 2px solid var(--green); border-radius: 3px; }
.header-phone:hover { background: var(--green); color: #fff; }
.nav-toggle { display: none; font: inherit; font-weight: 700; color: var(--text); background: #fff; border: 2px solid var(--green); border-radius: 3px; min-height: 44px; padding: .4rem 1rem; cursor: pointer; }

/* Start */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--green-dark);
  color: #fff;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: center;
  justify-items: start;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.75rem) 0;
}
.hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: calc(48% - 2px);
  z-index: 0;
  overflow: hidden;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--green-dark) 0%, var(--green-dark) 12px, rgba(31, 79, 75, .45) 34%, transparent 64%);
  pointer-events: none;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transform: scale(1.04);
  animation: hero-photo-in 1.35s cubic-bezier(.22, 1, .36, 1) both;
  cursor: zoom-in;
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero-copy {
  max-width: 28rem;
  animation: hero-copy-in .9s cubic-bezier(.22, 1, .36, 1) both;
}
.hero h1 { color: #fff; margin-bottom: .45em; }
.lead { font-size: 1.25rem; max-width: 34em; }
.hero .lead { color: #e6f2f0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.btn-light { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn-light:hover { background: var(--green-soft); border-color: var(--green-soft); color: var(--green-dark); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.hero-phone { margin: 1.3rem 0 0; color: #e6f2f0; }
.hero-phone a { color: #fff; font-weight: 700; font-size: 1.35rem; }
.hero-phone a:hover { color: var(--green-soft); }
.hero-phone-alt { font-size: 1rem; }
.hero-phone-alt a { font-size: 1rem; text-decoration: underline; }

@keyframes hero-photo-in {
  from { opacity: 0; transform: scale(1.1); }
  to { opacity: 1; transform: scale(1.04); }
}
@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-copy { animation: none !important; transform: none; }
}

/* Ramka na zdjęcie w pozostałych sekcjach */
.media { position: relative; overflow: hidden; background: #eef3f2; border: 1px solid var(--line); display: grid; place-items: center; }
.media .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; background: #eef3f2; }

/* Sekcje */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-alt { background: var(--alt); border-block: 1px solid var(--line); }
.section-lead { max-width: 46rem; margin-top: 1rem; }
.fineprint { color: var(--muted); font-size: 1rem; margin: 1rem 0 0; }

/* Lista produktów (jak w katalogu) */
.products { margin-top: 1.5rem; border: 1px solid var(--line); background: var(--paper); }
.group-label { margin: 1.75rem 0 0; font-size: 1.35rem; }
#kola-600 { scroll-margin-top: 5.5rem; }
.k600-block { margin-top: 1.5rem; }
.k600-block h4 { margin: 0 0 .15rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--green-dark); }
.k600-block .products { margin-top: .75rem; }
.product { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.product:last-child { border-bottom: 0; }
.product-visual { aspect-ratio: 1 / 1; }
.product-visual svg { width: 62%; max-width: 130px; height: auto; aspect-ratio: 1; }
.product-body h3 { margin-bottom: .6rem; }
.aside { font-family: var(--font); font-weight: 400; font-size: 1rem; color: var(--muted); }
.in-sets { margin: .8rem 0 0; font-size: .95rem; color: var(--muted); }
.specs { display: grid; gap: .4rem; }
.specs li { position: relative; padding-left: 1.2rem; hyphens: auto; }
.specs li::before { content: ""; position: absolute; left: 0; top: .6em; width: .45rem; height: .45rem; background: var(--green); }
.product-price { margin: 0; text-align: right; padding-left: 1.5rem; border-left: 1px solid var(--line); min-width: 9.5rem; }
.product-price strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--green-dark); white-space: nowrap; }
.product-price span { color: var(--muted); font-size: 1rem; }

/* Zdjęcia kompletów */
.set-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.set-photos:empty { display: none; }
.set-photo { margin: 0; background: var(--paper); border: 1px solid var(--line); }
.set-visual { aspect-ratio: 4 / 3; border: 0; border-bottom: 1px solid var(--line); }
.set-photo figcaption { padding: .8rem 1rem 1rem; font-size: 1rem; line-height: 1.35; }
.set-photo figcaption strong { display: block; font-family: var(--font-display); color: var(--green-dark); font-size: 1.1rem; }
.set-visual .pv-svgs svg { width: 36%; max-width: 150px; }
.set-photo .set-name { display: block; margin: .15rem 0 .65rem; }
.set-photo .specs { margin: 0; font-size: .95rem; color: var(--text); }
.set-detail { display: block; margin-top: .35rem; font-size: .92rem; color: var(--muted); line-height: 1.4; }

/* Tabela kompletów */
.table-wrap { margin-top: 1.5rem; overflow-x: auto; }
.sets-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.sets-table th, .sets-table td { padding: .9rem 1.1rem; text-align: left; border: 1px solid var(--line); }
.sets-table thead th { background: var(--green); color: #fff; font-size: 1rem; }
.sets-table tbody th { color: var(--green-dark); white-space: nowrap; }
.sets-table .num { text-align: right; white-space: nowrap; }
.sets-table td strong { font-family: var(--font-display); font-size: 1.2rem; }

/* Osie */
.axle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.axle-grid > * { min-width: 0; }
.axle-box { background: var(--paper); border: 1px solid var(--line); padding: 1.5rem; }
.media-axle { aspect-ratio: 16 / 9; margin-bottom: .5rem; }
.axle-item + .axle-item { margin-top: 1.5rem; }
.axle-drawing { width: 70%; height: auto; aspect-ratio: 2 / 1; }
.price-list { margin: 0; }
.price-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.price-list dt small { display: block; color: var(--muted); font-size: 1rem; }
.price-list dd { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.notice { margin: 1rem 0 0; padding: .8rem 1rem; background: var(--warn-bg); border: 1px solid var(--warn-line); font-size: 1rem; }

/* Powiększanie zdjęć */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1100px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 18, 10, .85); }
.lightbox img { display: block; max-width: 100%; max-height: calc(94vh - 4.5rem); margin: 0 auto; border: 4px solid #fff; background: #fff; }
.lightbox .btn { display: flex; margin: .8rem auto 0; }

/* Kalkulator */
.config { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: 1.5rem; }
.config-form { display: grid; gap: 1.5rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: 1.15rem; padding: 0; margin-bottom: .7rem; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; }
.segmented legend { grid-column: 1 / -1; }
.segmented label { display: block; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: .5rem 1rem; cursor: pointer; font-weight: 700; background: #fff; border: 2px solid var(--green); }
.segmented label:last-of-type span { border-left: 0; }
.segmented input:checked + span { background: var(--green); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.choice-list { display: grid; gap: .6rem; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .9rem 1rem; cursor: pointer; background: #fff; border: 2px solid var(--line); border-radius: 3px; }
.choice:hover .choice-box { border-color: var(--green); }
.choice input:checked + .choice-box { border-color: var(--green); background: var(--green-soft); }
.choice input:focus-visible + .choice-box { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-mark { width: 24px; height: 24px; border: 2px solid var(--green-dark); border-radius: 50%; background: #fff; display: grid; place-items: center; }
.choice-mark.square { border-radius: 3px; }
.choice input:checked + .choice-box .choice-mark { background: var(--green); }
.choice input:checked + .choice-box .choice-mark::after { content: ""; width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.choice input:checked + .choice-box .choice-mark.square::after { width: 11px; height: 6px; border: solid #fff; border-width: 0 0 3px 3px; border-radius: 0; background: none; transform: rotate(-45deg) translate(1px, -1px); }
.choice-title { font-weight: 700; display: block; }
.choice-desc { display: block; color: var(--muted); font-size: 1rem; }
.choice-price { font-weight: 700; white-space: nowrap; font-size: 1.15rem; }
.choice-note { margin: 0; padding: .8rem 1rem; font-size: 1rem; background: var(--warn-bg); border: 1px solid var(--warn-line); }

.summary { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; background: var(--paper); border: 2px solid var(--green); padding: 1.4rem; }
.summary h3 { margin-bottom: 1rem; }
/* Podgląd wyboru w kalkulatorze */
.preview { display: grid; gap: .6rem; margin-bottom: 1rem; }
.pv { margin: 0; }
.pv-media { aspect-ratio: 16 / 10; }
.pv figcaption { font-size: .95rem; line-height: 1.3; color: var(--muted); margin-top: .3rem; }
.pv-single { width: 46%; margin-inline: auto; }
.pv-single .pv-media { aspect-ratio: 1 / 1; }
.pv-svgs { display: flex; gap: 8%; justify-content: center; align-items: center; width: 100%; padding: .5rem; }
.pv-svgs svg { width: 38%; max-width: 110px; height: auto; aspect-ratio: 1; color: var(--green-dark); opacity: .85; }
.pv-single .pv-svgs svg { width: 62%; max-width: 110px; }
.pv-media.no-photo { background: #e7eceb; }
.pv-axles { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pv-axle .pv-media { aspect-ratio: 16 / 9; }
.pv-axle .pv-svgs svg { width: 60%; max-width: none; aspect-ratio: 2 / 1; }
.pv-axle figcaption { font-size: .85rem; }
.summary-lines { display: grid; gap: .5rem; margin-bottom: 1rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 1rem; }
.summary-lines li span:last-child { white-space: nowrap; }
.summary-lines .line-sub { color: var(--muted); }
.summary-lines .line-sub span:first-child { padding-left: 1rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 0; margin-bottom: 1rem; border-top: 2px solid var(--green); }
.summary-total strong { font-family: var(--font-display); font-size: 2rem; color: var(--green-dark); white-space: nowrap; }
.summary .btn + .btn { margin-top: .6rem; }
.summary .fineprint { margin-top: .8rem; }
#copy-status:empty { display: none; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.contact-email-note { margin: 1.25rem 0 0; font-size: 1rem; color: var(--muted); }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--green); padding: 1.5rem; }
.contact-card address { font-style: normal; margin-bottom: 1rem; }
.contact-list { margin: 0; }
.contact-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 700; text-align: right; }
.placeholder { text-decoration-style: dashed; }

/* Stopka */
.site-footer { background: var(--green-dark); color: #e3eeec; padding: 1.75rem 0; font-size: 1rem; }
.site-footer p { margin: 0 0 .4rem; }

/* Mniejsze ekrany (tłumaczenia bywają dłuższe, więc menu składa się wcześniej) */
@media (max-width: 1240px) {
  .header-phone { display: none; }
}
@media (max-width: 1040px) {
  .nav-toggle { display: inline-block; }
  .lang { margin-left: auto; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin-left: 0;
    background: var(--paper); border-bottom: 4px solid var(--green);
    padding: .25rem max(1.25rem, env(safe-area-inset-right, 0)) .75rem max(1.25rem, env(safe-area-inset-left, 0));
    max-height: min(70vh, calc(100dvh - 72px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
  body { font-size: 1.0625rem; }
  .lead { font-size: 1.1rem; }
  h1 { font-size: clamp(1.7rem, 7vw, 2.35rem); }
  h2 { font-size: clamp(1.4rem, 5.5vw, 1.85rem); }

  .hero {
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  .hero-media {
    position: relative;
    inset: auto;
    left: auto;
    order: -1;
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
    max-height: min(48vh, 360px);
  }
  .hero-media::after {
    background: linear-gradient(180deg, transparent 40%, rgba(31, 79, 75, .5) 70%, var(--green-dark) 100%);
  }
  /* Animacja kończy się na scale(1.04) — na mobile wyłączamy, żeby nie było overflow */
  .hero-photo {
    transform: none;
    animation: none;
    object-position: center 45%;
  }
  .hero-copy {
    max-width: none;
    padding: 1.35rem 0 2rem;
  }
  .hero-actions { gap: .65rem; }
  .hero-phone a { font-size: 1.2rem; }

  .section { padding: clamp(2rem, 5vw, 3rem) 0; }
  .axle-grid, .config, .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .summary { position: static; max-height: none; overflow: visible; }
  .summary-total strong { font-size: clamp(1.5rem, 7vw, 1.85rem); }
  .set-photos { gap: 1rem; }

  /* Produkty: jedna kolumna już na tablecie — 3-kolumnowy układ jest za ciasny */
  .product { grid-template-columns: 1fr; gap: 1rem; padding: 1.15rem; }
  .product-visual { max-width: none; width: 100%; aspect-ratio: 4 / 3; }
  .product-visual svg { width: 42%; max-width: 120px; }
  .product-price {
    text-align: left; border-left: 0; border-top: 1px solid var(--line);
    padding: .8rem 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem .65rem;
  }
  .product-price strong { font-size: 1.4rem; }

  .choice-box { grid-template-columns: auto minmax(0, 1fr); gap: .75rem; padding: .85rem .9rem; }
  .choice-price { grid-column: 2; justify-self: start; }
  .segmented span { padding: .5rem .75rem; font-size: .98em; }
  .axle-box { padding: 1.15rem; }
  .price-list > div,
  .contact-list > div {
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
  }
  .price-list dd,
  .contact-list dd { text-align: left; }
  .pv-axles { grid-template-columns: 1fr 1fr; }
  .summary { padding: 1.2rem; }
  .summary-lines li { flex-wrap: wrap; gap: .25rem .75rem; }
  .lang-menu {
    max-height: min(60vh, 22rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 720px) {
  .pv-axles { grid-template-columns: 1fr; }
  .set-photos { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sets-table, .sets-table tbody, .sets-table tr, .sets-table th, .sets-table td { display: block; }
  .sets-table { border: 0; background: none; }
  .sets-table thead { position: absolute; left: -9999px; }
  .sets-table tbody tr {
    display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem;
    background: var(--paper); border: 1px solid var(--line);
    padding: 1rem; margin-bottom: .8rem;
  }
  .sets-table th, .sets-table td { padding: 0; border: 0; }
  .sets-table tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .sets-table tbody td:nth-child(3) { grid-column: 2; grid-row: 1; }
  .lightbox { max-width: 100vw; width: calc(100vw - 1.5rem); }
  .lightbox img { max-height: calc(100dvh - 6rem); border-width: 2px; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .brand-text small { display: none; }
  .header-inner { gap: .45rem; min-height: 60px; }
  .brand { gap: .45rem; min-width: 0; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text strong { font-size: .95rem; }
  .lang-btn { padding: .3rem .45rem; gap: .35rem; min-height: 42px; }
  .lang-btn-name { display: none; }
  .lang-btn-code { display: inline; }
  .lang-menu { min-width: min(12rem, calc(100vw - 2rem)); right: 0; left: auto; }
  .nav-toggle { padding: .35rem .65rem; min-height: 42px; }
  .hero-media { aspect-ratio: 5 / 4; max-height: min(42vh, 300px); }
  .hero-copy { padding: 1.15rem 0 1.75rem; }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: .6rem;
  }
  .hero-actions .btn { width: 100%; }
  .hero-phone { margin-top: 1rem; }
  .hero-phone a { font-size: 1.1rem; word-break: break-word; }
  .segmented { grid-template-columns: 1fr; }
  .segmented label:last-of-type span { border-left: 2px solid var(--green); border-top: 0; }
  .choice-desc { font-size: .92rem; }
  .contact-actions { display: grid; grid-template-columns: 1fr; }
  .contact-actions .btn { width: 100%; }
  .btn { min-height: 46px; padding: .55rem 1.1rem; }
  .site-footer { padding: 1.4rem 0 calc(1.4rem + env(safe-area-inset-bottom, 0)); }
  .site-footer p { overflow-wrap: anywhere; }
}
@media (max-width: 380px) {
  .brand-mark { display: none; }
  .brand-text strong { font-size: .9rem; }
  .header-inner { gap: .35rem; }
  .nav-toggle { padding: .3rem .55rem; font-size: .95rem; }
}
@media print {
  .site-header, .nav-toggle, .lang, .summary .btn, .hero-actions, .contact-actions { display: none; }
}

/* Długie sekcje zwinięte do ok. 30% wysokości, z przyciskiem "Pokaż więcej" */
.collapsible { position: relative; --fade: var(--bg); }
.section-alt .collapsible { --fade: var(--alt); }
.collapsible.is-animating, .collapsible.is-collapsed { overflow: hidden; transition: max-height .4s ease; }
.collapsible.is-collapsed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: min(55%, 220px);
  background: linear-gradient(to bottom, transparent, var(--fade) 85%); pointer-events: none;
}
.collapsible-more { display: flex; justify-content: center; margin-top: 1rem; }
.collapsible-more[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .collapsible.is-animating, .collapsible.is-collapsed { transition: none; }
}
