/* =========================================================
   Firmont-Suwnice S.C. — arkusz stylów
   Układ: mobile-first, jedna kolumna → 2 kolumny od 768px,
   sekcje rozdzielone przestrzenią, nie ramkami.
   Każda sekcja jest niezależnym modułem (.section--nazwa).
   ========================================================= */

:root {
  /* Kolory marki */
  --brand: #0057D9;
  --brand-hover: #0042A3;
  --accent: #00AEEF;
  --signal: #9E1B24;          /* ciemnoczerwony akcent, jak linie w katalogu */
  --blueprint: #0A2F6B;       /* tło hero – kolor rysunku technicznego */

  /* Neutralne, lekko podbite błękitem */
  --bg: #FFFFFF;
  --surface: #F2F5FA;
  --surface-2: #E8EEF7;
  --ink: #111111;
  --muted: #4A5363;
  --line: #D8E0EC;
  --link: #0057D9;
  --on-brand: #FFFFFF;
  --drawing-filter: none;
  --shadow: 0 1px 2px rgba(10, 30, 70, .06), 0 8px 24px rgba(10, 30, 70, .06);

  /* Typografia */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-body: 1.0625rem;                       /* 17px */
  --fs-h1: clamp(2.125rem, 1.4rem + 3.2vw, 3.375rem);  /* → 54px */
  --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.25rem);   /* → 36px */
  --fs-h3: 1.5rem;                            /* 24px */
  --fs-small: .9375rem;

  /* Rytm */
  --gutter: 16px;
  --container: 1180px;
  --section-space: clamp(64px, 9vw, 120px);
  --radius: 6px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B111C;
    --surface: #121A28;
    --surface-2: #192335;
    --ink: #EDF1F7;
    --muted: #A6B0C0;
    --line: #26324A;
    --link: #6EA6FF;
    --blueprint: #071F47;
    --drawing-filter: invert(1) hue-rotate(180deg) brightness(1.35);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B111C;
  --surface: #121A28;
  --surface-2: #192335;
  --ink: #EDF1F7;
  --muted: #A6B0C0;
  --line: #26324A;
  --link: #6EA6FF;
  --blueprint: #071F47;
  --drawing-filter: invert(1) hue-rotate(180deg) brightness(1.35);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* ---------- Podstawy ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0 0 .5em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-brand); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 12px 24px;
  font: 500 1rem/1.2 var(--font-body);
  letter-spacing: .01em;
  border-radius: var(--radius);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn--ghost { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, .55); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #FFFFFF; border-color: #FFFFFF; }
.btn:active { transform: translateY(1px); }

/* ---------- Nagłówek i nawigacja ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand__logo--white { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__logo--color { display: none; }
  :root:not([data-theme="light"]) .brand__logo--white { display: block; }
}
:root[data-theme="dark"] .brand__logo--color { display: none; }
:root[data-theme="dark"] .brand__logo--white { display: block; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius);
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  font-size: 1.25rem; cursor: pointer;
}
.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px;
  box-shadow: var(--shadow);
}
.site-nav[hidden] { display: none !important; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: grid; }
.site-nav__link {
  display: block; padding: 14px 4px;
  color: var(--ink); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.site-nav__link:hover, .site-nav__link[aria-current="true"] { color: var(--brand); }
.site-nav__cta { margin-top: 16px; width: 100%; }

@media (min-width: 992px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav[hidden] {
    display: flex !important; position: static; padding: 0; background: none;
    border: 0; box-shadow: none; align-items: center; gap: 28px;
  }
  .site-nav__list { display: flex; gap: 4px; }
  .site-nav__link { border: 0; padding: 8px 12px; font-size: .9875rem; position: relative; }
  .site-nav__link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
    background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .25s;
  }
  .site-nav__link:hover::after, .site-nav__link[aria-current="true"]::after { transform: scaleX(1); }
  .site-nav__cta { margin: 0; width: auto; }
}

/* ---------- Sekcje (wspólne) ---------- */
.section { padding-block: var(--section-space); }
.section--tinted { background: var(--surface); }
.section__header { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__header--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 .8125rem/1.4 var(--font-body);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--signal); }
.section__header--center .eyebrow { justify-content: center; }
.lead { font-size: 1.125rem; color: var(--muted); }

/* ---------- HERO ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: var(--blueprint);
  color: #FFFFFF;
  text-align: center;
  padding-block: clamp(88px, 13vw, 168px) clamp(72px, 10vw, 128px);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center;
}
.hero__drawing {
  position: absolute; z-index: -1;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(140%, 900px); max-width: none; opacity: .17;
  pointer-events: none;
}
.hero::after { /* winieta dla czytelności tekstu */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(7, 26, 60, .78), rgba(7, 26, 60, .2) 75%);
}
.hero__inner { max-width: 860px; margin-inline: auto; }
.hero .eyebrow { color: var(--accent); justify-content: center; }
.hero .eyebrow::before { background: var(--accent); }
.hero__title { color: #FFFFFF; margin-bottom: 20px; }
.hero__subtitle {
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  color: rgba(255, 255, 255, .88);
  max-width: 640px; margin: 0 auto 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__actions .btn { min-width: 200px; }
.hero__facts {
  list-style: none; margin: clamp(48px, 7vw, 80px) auto 0; padding: 24px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px;
  max-width: 820px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__fact { display: grid; gap: 2px; }
.hero__fact-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: #FFFFFF; }
.hero__fact-label { font-size: .875rem; color: rgba(255, 255, 255, .72); }
.hero__titleblock {
  position: absolute; right: var(--gutter); bottom: 14px;
  font: 400 .6875rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45); text-align: right;
}

/* ---------- O NAS ---------- */
.about__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 768px) { .about__grid { grid-template-columns: 5fr 6fr; } }
.about__media { position: relative; }
.about__media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); background: #FFFFFF;
}
.about__badge {
  position: absolute; left: 16px; bottom: 16px;
  background: var(--bg); color: var(--ink);
  padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: .875rem; line-height: 1.4;
}
.about__badge strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--brand); }
.about__text { min-width: 0; }
.about__text p { max-width: 62ch; }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding-left: 22px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: .55em; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--signal);
}
.timeline__year { font-family: var(--font-mono); font-weight: 500; color: var(--brand); margin-right: 8px; }

/* ---------- OFERTA ---------- */
.offer__grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .offer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .offer__grid { grid-template-columns: repeat(3, 1fr); } }
.offer-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.offer-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.offer-card__figure {
  margin: 0; height: 170px; display: grid; place-items: center; padding: 20px;
  background-color: var(--surface);
  background-image:
    linear-gradient(color-mix(in srgb, var(--brand) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--brand) 8%, transparent) 1px, transparent 1px);
  background-size: 20px 20px;
  border-bottom: 1px solid var(--line);
}
.offer-card__figure img { max-height: 130px; width: auto; filter: var(--drawing-filter); }
.offer-card__figure i { font-size: 3.25rem; color: var(--brand); }
.offer-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.offer-card__title { margin-bottom: 10px; }
.offer-card__text { color: var(--muted); font-size: 1rem; }
.offer-card__list { margin: 0 0 16px; padding-left: 1.1em; font-size: 1rem; }
.offer-card__list li { margin-bottom: 4px; }
.offer-card__list li::marker { color: var(--signal); }
.codes { list-style: none; margin: auto 0 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px dashed var(--line); }
.code {
  font: 500 .78rem/1 var(--font-mono); letter-spacing: .02em;
  padding: 6px 8px; border-radius: 4px;
  background: var(--surface-2); color: var(--ink);
}
.order-note {
  margin-top: 40px; display: grid; gap: 16px; align-items: start;
  padding: 24px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--signal);
}
@media (min-width: 768px) { .order-note { grid-template-columns: auto 1fr auto; align-items: center; padding: 28px 32px; gap: 24px; } }
.order-note__icon { font-size: 1.75rem; color: var(--signal); }
.order-note h3 { font-size: 1.25rem; margin-bottom: 6px; }
.order-note p { margin: 0; color: var(--muted); }
.order-note code { font-family: var(--font-mono); font-size: .95em; color: var(--ink); background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }

/* ---------- DLACZEGO MY ---------- */
.why__grid { display: grid; gap: 36px 48px; }
@media (min-width: 768px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .why__grid { grid-template-columns: repeat(3, 1fr); } }
.why-item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; min-width: 0; }
.why-item__icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand);
  font-size: 1.2rem;
}
.why-item h3 { font-size: 1.25rem; margin-bottom: 8px; }
.why-item p { margin: 0; color: var(--muted); }
.why-item strong { color: var(--ink); }

/* ---------- GALERIA ---------- */
.gallery__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
@media (min-width: 1080px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); } }
.gallery__item { margin: 0; min-width: 0; }
.gallery__button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: #FFFFFF; border-radius: var(--radius); overflow: hidden;
  outline-offset: 3px; position: relative;
}
.gallery__button img { width: 100%; aspect-ratio: 5 / 4; object-fit: contain; padding: 6%; transition: transform .35s; }
.gallery__button:hover img { transform: scale(1.04); }
.gallery__button::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; pointer-events: none;
}
.gallery__caption { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); line-height: 1.45; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(6, 14, 30, .94);
  display: grid; grid-template-rows: auto 1fr auto; place-items: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.lightbox[hidden] { display: none !important; }
.lightbox__close { justify-self: end; }
.lightbox__figure { margin: 0; display: grid; gap: 14px; place-items: center; max-width: min(1000px, 100%); min-height: 0; }
.lightbox__img { max-height: 72vh; width: auto; background: #FFFFFF; border-radius: var(--radius); padding: 3%; }
.lightbox__caption { color: #FFFFFF; text-align: center; font-size: 1rem; }
.lightbox__nav { display: flex; gap: 12px; }
.icon-btn {
  width: 48px; height: 48px; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06);
  color: #FFFFFF; font-size: 1.1rem; cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .16); }

/* ---------- KONTAKT ---------- */
.contact { background: var(--blueprint); color: #FFFFFF; position: relative; isolation: isolate; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.contact h2 { color: #FFFFFF; }
.contact .eyebrow { color: var(--accent); }
.contact .eyebrow::before { background: var(--accent); }
.contact .lead { color: rgba(255, 255, 255, .8); }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .contact__list { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.contact__item {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  min-width: 0;
}
.contact__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); font-size: 1.05rem; }
.contact__label { display: block; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .65); margin-bottom: 6px; }
.contact__value { font-style: normal; font-size: 1.0625rem; line-height: 1.55; overflow-wrap: anywhere; }
.contact__value a { color: #FFFFFF; text-decoration-color: rgba(255, 255, 255, .4); }
.contact__value a:hover { color: var(--accent); }
.contact__value small { color: rgba(255, 255, 255, .65); font-size: .875rem; }

/* ---------- STOPKA ---------- */
.site-footer { background: #07152E; color: rgba(255, 255, 255, .78); padding-block: 40px; font-size: var(--fs-small); }
.site-footer__inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 768px) { .site-footer__inner { grid-template-columns: 1fr auto; } }
.site-footer__brand img { height: 34px; width: auto; margin-bottom: 12px; }
.site-footer p { margin: 0 0 4px; }
.site-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: #FFFFFF; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--accent); }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social a { color: #FFFFFF; text-decoration: none; }
.social a:hover { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }

/* ---------- Polityka prywatności (pełny ekran) ---------- */
.modal {
  position: fixed; inset: 0; z-index: 300; background: var(--bg); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 0 calc(32px + env(safe-area-inset-bottom, 0px));
}
.modal[hidden] { display: none !important; }
.modal__bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding-block: 8px; background: var(--bg); }
.modal__close { border-color: var(--line); color: var(--ink); background: var(--surface); }
.modal__close:hover { background: var(--surface-2); }
.modal__content { max-width: 760px; }
.modal__content h3 { font-size: 1.25rem; margin-top: 1.6em; }
.modal__content li { margin-bottom: 6px; }
body.is-locked { overflow: hidden; }

/* ---------- Animacje „reveal on scroll” ---------- */
.js-reveal .reveal.is-pending { opacity: .001; transform: translateY(22px); }
.js-reveal .reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js-reveal .reveal.is-pending { opacity: 1; transform: none; }
}

/* =========================================================
   Aktualizacja 2026-10-14: slider w hero, zdjęcia w ofercie
   ========================================================= */
.hero { padding-block: clamp(96px, 15vw, 200px) clamp(72px, 10vw, 128px); }
.hero__slides { position: absolute; inset: 0; z-index: -2; background: var(--blueprint); }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; opacity: 0; transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero::after {
  background:
    linear-gradient(180deg, rgba(6, 22, 52, .55) 0%, rgba(6, 22, 52, .35) 40%, rgba(6, 22, 52, .8) 100%),
    radial-gradient(ellipse 75% 65% at 50% 45%, rgba(6, 22, 52, .55), transparent 80%);
}
.hero__pause { position: absolute; right: var(--gutter); bottom: 16px; z-index: 2; width: 40px; height: 40px; font-size: .9rem; }
.hero__title, .hero__subtitle { text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }

.offer-card__figure--photo {
  background: #FFFFFF; height: 200px; padding: 16px;
}
.offer-card__figure--photo img { max-height: 168px; width: auto; max-width: 100%; object-fit: contain; filter: none; transition: transform .35s; }
.offer-card:hover .offer-card__figure--photo img { transform: scale(1.04); }

.gallery__button--photo { background: var(--surface-2); }
.gallery__button--photo img { object-fit: cover; padding: 0; aspect-ratio: 5 / 4; }

/* =========================================================
   Podstrona: karty katalogowe sprzęgieł
   ========================================================= */
.offer-card__link {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 14px;
  font-weight: 500; color: var(--link); text-decoration: none;
}
.offer-card__link:hover { text-decoration: underline; }
.offer-card__link i { transition: transform .2s; }
.offer-card__link:hover i { transform: translateX(3px); }

.page-hero {
  background: var(--blueprint); color: #FFFFFF; position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(40px, 7vw, 80px) clamp(36px, 6vw, 64px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero h1 { color: #FFFFFF; font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); max-width: 22ch; }
.page-hero .lead { color: rgba(255, 255, 255, .82); max-width: 62ch; margin: 0; }
.breadcrumb { margin-bottom: 18px; font-size: .9rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .45); }
.breadcrumb a { color: rgba(255, 255, 255, .85); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: rgba(255, 255, 255, .65); }

.subnav {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 40;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.subnav__list {
  list-style: none; margin: 0; padding-block: 10px; display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.subnav__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9375rem;
}
.subnav__link:hover { border-color: var(--brand); color: var(--brand); }
.subnav__link[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.coupling { padding-block: clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--line); }
.coupling:nth-of-type(even) { background: var(--surface); }
.coupling__grid { display: grid; gap: 28px 56px; align-items: start; }
@media (min-width: 900px) { .coupling__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.coupling__index { font: 500 .8125rem/1 var(--font-mono); color: var(--signal); letter-spacing: .08em; margin: 0 0 12px; }
.coupling__info { min-width: 0; }
.coupling__info h2 { margin-bottom: 14px; }
.coupling__info > p { color: var(--muted); max-width: 60ch; }
.spec { margin: 20px 0 24px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 1rem; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
.order-example {
  margin: 0 0 24px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface-2); font-size: .95rem; line-height: 1.5;
}
.coupling:nth-of-type(even) .order-example { background: var(--bg); }
.order-example span { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.order-example code { font-family: var(--font-mono); font-size: .92em; overflow-wrap: anywhere; }
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.download {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
}
.download__icon { font-size: 1.6rem; color: var(--signal); justify-self: center; }
.download__name { font-weight: 500; line-height: 1.35; display: block; }
.download__meta { font-size: .85rem; color: var(--muted); }
.download .btn { min-height: 44px; padding: 10px 16px; }
@media (max-width: 520px) {
  .download { grid-template-columns: 36px 1fr; }
  .download .btn { grid-column: 1 / -1; width: 100%; }
}
.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.sheets--single { grid-template-columns: minmax(0, 360px); }
.sheet { margin: 0; min-width: 0; }
.sheet .gallery__button { background: #FFFFFF; box-shadow: var(--shadow); }
.sheet .gallery__button img { aspect-ratio: 1 / 1.414; object-fit: cover; object-position: top; padding: 0; }
.sheet figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.page-cta { padding-block: clamp(48px, 7vw, 80px); text-align: center; }
.page-cta h2 { margin-bottom: 10px; }
.page-cta p { color: var(--muted); margin-bottom: 24px; }
.page-cta .hero__actions .btn--ghost { color: var(--brand); border-color: var(--line); }
.page-cta .hero__actions .btn--ghost:hover { background: var(--surface); color: var(--brand-hover); border-color: var(--brand); }

/* Karta „Usługi” na pełną szerokość w układzie 3-kolumnowym */
@media (min-width: 1080px) {
  .offer-card--wide { grid-column: 1 / -1; flex-direction: row; }
  .offer-card--wide .offer-card__figure { width: 220px; height: auto; flex-shrink: 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .offer-card--wide .offer-card__body { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr auto; gap: 8px 32px; align-items: center; }
  .offer-card--wide .offer-card__title { margin: 0; }
  .offer-card--wide .offer-card__list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 32px; }
  .offer-card--wide .codes { margin: 0; padding: 0; border: 0; }
}

/* Karta „Usługi” na 2 kolumny – domyka ostatni rząd siatki (11 kart) */
@media (min-width: 640px) {
  .offer-card--span2 { grid-column: span 2; flex-direction: row; }
  .offer-card--span2 .offer-card__figure { width: 180px; height: auto; flex-shrink: 0; border-bottom: 0; border-right: 1px solid var(--line); }
}
@media (min-width: 1080px) { .offer-card--span2.offer-card--wide { grid-column: 1 / -1; } }

/* Cała karta oferty klikalna (rozciągnięty link) */
.offer-card { position: relative; }
.offer-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.offer-card:has(.offer-card__link) { cursor: pointer; }
.offer-card:has(.offer-card__link):hover .offer-card__link { text-decoration: underline; }
.offer-card:has(.offer-card__link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.offer-card__link:focus-visible { outline: none; }

/* Przyciski powrotu na podstronach */
.page-back { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.page-back .btn { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.btn--light { background: #FFFFFF; color: #0A2F6B; }
.btn--light:hover { background: #E8EEF7; color: #0A2F6B; }
.subnav__link--back { background: var(--surface-2); border-color: transparent; font-weight: 500; gap: 6px; }
.subnav__link--back:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* =========================================================
   Losowe zdjęcie w kartach oferty
   ========================================================= */
.offer-slider { position: relative; display: block; overflow: hidden; }
.offer-slider .offer-slide {
  position: absolute; inset: 16px; margin: auto;
  max-width: calc(100% - 32px); max-height: 168px; width: auto; height: auto;
  opacity: 0; transition: opacity .8s ease, transform .35s;
}
.offer-slider .offer-slide.is-active { opacity: 1; }

.offer-slider .offer-slide { inset: 16px; max-height: 168px; max-width: calc(100% - 32px); }

/* O nas: zdjęcie hali w proporcji 4:3 */
.about__media img { aspect-ratio: 4 / 3; object-fit: cover; }
/* O nas: zdjęcie produktu na białym tle – całe, bez przycinania */
.about__media--product img { aspect-ratio: auto; object-fit: contain; background: #FFFFFF; padding: 4%; }

/* =========================================================
   Tabele wymiarów na podstronach (tekst dla Google i klientów)
   ========================================================= */
.dims-wrap { display: grid; gap: 28px; margin-top: 36px; }
.dims-wrap:empty { display: none; }
.dims-block__title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.table-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.dims { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dims th, .dims td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.dims thead th { background: var(--surface-2); font-weight: 600; font-size: .82rem; color: var(--muted); position: sticky; top: 0; }
.dims tbody th { text-align: left; font-family: var(--font-mono); font-weight: 500; color: var(--ink); position: sticky; left: 0; background: var(--bg); z-index: 1; }
.dims thead th:first-child { text-align: left; position: sticky; left: 0; z-index: 2; }
.dims tbody tr:nth-child(even) td, .dims tbody tr:nth-child(even) th { background: color-mix(in srgb, var(--surface) 70%, var(--bg)); }
.dims tbody tr:hover td, .dims tbody tr:hover th { background: color-mix(in srgb, var(--brand) 7%, var(--bg)); }
.dims tbody tr:target td, .dims tbody tr:target th { background: color-mix(in srgb, var(--accent) 22%, var(--bg)); }
.dims tbody tr:last-child th, .dims tbody tr:last-child td { border-bottom: 0; }
.dims__more { color: var(--muted); font-style: italic; }
.dims__ask a { font-weight: 500; font-size: .85rem; }
.dims tr[id] { scroll-margin-top: calc(var(--header-h) + 120px); }
.dims-wrap > *, .dims-block { min-width: 0; }
.table-scroll { max-width: 100%; }
