/* site.css - style strony ak-service.com.pl.
   Zbudowane WYLACZNIE na tokenach z theme.css - zadnych surowych hexow marki.
   Reguly ukladu, stanow i kolorystyki: docs/design-system/readme.md */

/* ---------- Redesign 2026-09: zero zaokraglen ---------- */

/* Projekt (docs/design-redesign.md) znosi promienie w calym serwisie: przyciski,
   karty, zdjecia, panele. Nadpisujemy tokeny lokalnie, zamiast ruszac theme.css -
   zrodlem prawdy tokenow zostaje system projektowy, a to jest decyzja tej strony. */
:root {
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-full: 0;
}

/* ---------- Uklad ---------- */

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section { padding: var(--space-24) 0; }
.section--subtle { background: var(--surface-subtle); }
.section--dark { background: var(--surface-dark); color: var(--text-on-dark); }
.section--dark h2 { color: var(--text-on-dark); }
.section--dark p { color: var(--text-on-dark-muted); }

/* ---------- Typografia ---------- */

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--color-secondary);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
}
.section--dark .eyebrow { color: var(--teal-300); }

.h-display {
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
}
.h2 { font-size: var(--text-h2); }
.h3 { font-size: var(--text-h4); }

.lead {
  max-width: 62ch;
  margin: var(--space-5) 0 0;
  color: var(--text-body);
  font-size: var(--text-lg);
}
.section--dark .lead { color: var(--text-on-dark-muted); }

.section-intro {
  max-width: 62ch;
  margin: var(--space-4) 0 var(--space-10);
  color: var(--text-muted);
}

/* ---------- Logo ---------- */

/* Znak z pliku: assets/img/logo/logo.svg. Po redesignie stopka jest jasna, wiec
   logo-dark.svg nie jest juz uzywane na stronie - zostaje w paczce na ciemne pasy.
   Atrybuty width/height w <img> trzymaja proporcje 398:118 i rezerwuja miejsce,
   wiec naglowek nie skacze przy ladowaniu. Wysokosc ustawia wylacznie CSS.
   28 px daje 94 px szerokosci, czyli ponizej minimum 120 px z ksiegi znaku -
   swiadomy wybor zamawiajacego, nie przeoczenie. Projekt redesignu proponowal
   34 px; zostawiamy 28 px, bo to pozniejsza decyzja. Gdyby znak mial zmalec
   jeszcze bardziej, ksiega kaze porzucic wordmark i wstawic sygnet mark.svg. */
.site-logo { display: inline-flex; flex: none; }
.site-logo:hover { text-decoration: none; }
.site-logo img { display: block; width: auto; height: 28px; }

/* ---------- Naglowek ---------- */

.topbar {
  background: var(--gray-900);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  min-height: 36px;
}
.topbar a { color: var(--gray-0); display: inline-flex; align-items: center; gap: 8px; }
.topbar a:hover { color: var(--gray-0); }
.topbar__reach { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.topbar__area { color: rgba(255, 255, 255, .55); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 76px;
}

.site-nav { display: flex; gap: 6px; flex: 1; }
.site-nav a {
  padding: 10px 14px;
  color: var(--gray-900);
  font-size: 15px;
  font-weight: var(--weight-semibold);
}
.site-nav a:hover { background: var(--gray-50); color: var(--gray-900); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--pink-600); background: var(--pink-50); }

.header-actions { display: flex; align-items: center; gap: 18px; }

/* Przelacznik jezyka - kolejny jezyk to kolejny <a> w tym bloku */
.lang { display: flex; gap: var(--space-2); font-size: 14px; }
.lang a { color: var(--gray-600); font-weight: var(--weight-semibold); }
.lang a[aria-current="true"] { color: var(--gray-900); }

/* ---------- Wyszukiwarka ---------- */

/* Nakladka jest w kazdej stronie, ale indeks produktow sciaga sie dopiero po
   jej otwarciu - patrz komentarz w assets/js/search.js. */
.search-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--control-h-md);
  height: var(--control-h-md);
  padding: 0;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-page);
  color: var(--text-heading);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard);
}
.search-open:hover { border-color: var(--border-strong); background: var(--surface-subtle); }
.search-open:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }

.search { position: fixed; inset: 0; z-index: 100; }
.search__backdrop { position: absolute; inset: 0; background: var(--surface-overlay); }
.search__panel {
  position: relative;
  max-width: 640px;
  margin: 10vh auto 0;
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search__bar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-4); border-bottom: 1px solid var(--border-subtle); }
.search__input {
  flex: 1;
  height: var(--control-h-md);
  padding: 0 var(--space-3);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--text-heading);
}
.search__input:focus { outline: none; border-color: var(--border-focus); }
.search__close {
  width: var(--control-h-md);
  height: var(--control-h-md);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.search__close:hover { background: var(--surface-subtle); color: var(--text-heading); }
.search__status { margin: 0; padding: var(--space-3) var(--space-4); color: var(--text-muted); font-size: var(--text-sm); }
.search__status:empty { display: none; }
.search__results { margin: 0; padding: 0 var(--space-2) var(--space-3); list-style: none; overflow-y: auto; }
.search__hit {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text-heading);
}
.search__hit:hover { background: var(--surface-subtle); text-decoration: none; }
.search__hit-name { font-weight: var(--weight-semibold); }
.search__hit-meta { color: var(--text-muted); font-size: var(--text-sm); }

/* ---------- Przyciski ---------- */

/* Redesign: md 44 px / lg 48 px, obrys 1,5 px, ikona 18 px w odstepie 8 px,
   przejscia kolorow 120 ms. Wariant outline nie ma wlasnego tla - ma lezec
   na tle sekcji, takze na szarym. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--weight-semibold);
  white-space: nowrap;
  transition: background 120ms cubic-bezier(.2, 0, 0, 1),
              border-color 120ms cubic-bezier(.2, 0, 0, 1),
              color 120ms cubic-bezier(.2, 0, 0, 1),
              transform 200ms cubic-bezier(.2, 0, 0, 1);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(35, 140, 145, .30); }
.btn svg { flex: none; width: 18px; height: 18px; }

.btn--lg { height: 48px; padding: 0 26px; font-size: 16px; }

.btn--primary { background: var(--pink-600); color: var(--gray-0); }
.btn--primary:hover { background: var(--pink-700); color: var(--gray-0); }
.btn--primary:active { background: var(--pink-800); }

.btn--secondary { background: var(--teal-600); color: var(--gray-0); }
.btn--secondary:hover { background: var(--teal-700); color: var(--gray-0); }
.btn--secondary:active { background: var(--teal-800); }

.btn--outline {
  border-color: var(--gray-300);
  background: transparent;
  color: var(--gray-900);
}
.btn--outline:hover { background: var(--gray-50); color: var(--gray-900); }
.btn--outline:active { background: var(--gray-100); }

.btn--inverse { background: var(--gray-0); color: var(--gray-900); }
.btn--inverse:hover { background: var(--gray-100); color: var(--gray-900); }
.btn--inverse:active { background: var(--gray-200); }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

/* ---------- Siatki i karty ---------- */

.grid { display: grid; gap: var(--grid-gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  padding: var(--space-8);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
}
.card p { margin: var(--space-3) 0 0; color: var(--text-muted); }

.card--on-dark {
  border-color: rgba(255, 255, 255, .12);
  background: var(--surface-dark-raised);
  box-shadow: none;
}
.card--on-dark .h3 { color: var(--text-on-dark); }
.card--on-dark p { color: var(--text-on-dark-muted); }

/* ---------- Pasek CTA ---------- */

.cta-band {
  border-radius: var(--radius-xl);
  background: var(--color-primary);
  color: var(--text-on-primary);
  padding: var(--space-16) var(--space-12);
  text-align: center;
}
.cta-band h2 { color: var(--text-on-primary); }
.cta-band p { margin: var(--space-4) auto 0; max-width: 52ch; color: rgba(255, 255, 255, .86); }
.cta-band .cta-row { justify-content: center; }

/* ---------- Kontakt ---------- */

.person__name { margin: 0 0 var(--space-1); font-size: var(--text-h4); }
.person__langs { margin: 0 0 var(--space-5); color: var(--text-muted); font-size: var(--text-sm); }
.person__contact { margin: 0; }
.person__row { display: flex; gap: var(--space-3); margin-top: var(--space-2); }
.person__row dt { color: var(--text-muted); min-width: 76px; }
.person__row dd { margin: 0; }

/* ---------- Stopka ---------- */

/* Redesign zmienia stopke z ciemnej na jasna, wiec znak wraca do wersji
   podstawowej (logo.svg), a nie logo-dark.svg. */
.site-footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 13px;
}
.site-footer a { color: var(--gray-700); }
.site-footer a:hover { color: var(--gray-900); }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-nav a { font-size: 15px; font-weight: var(--weight-semibold); color: var(--gray-900); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}
.footer-bottom .spacer { margin-left: auto; }

/* ---------- Karty produktow ---------- */

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
  color: inherit;
  transition: box-shadow var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.product-card__media {
  display: grid;
  place-items: center;
  padding: var(--space-4);
  background: var(--surface-subtle);
}
.product-card__media img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  transition: transform var(--duration-slow) var(--ease-out);
}
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__body { padding: var(--space-5) var(--space-6) var(--space-6); }
.product-card__name { margin: 0; font-family: var(--font-display); font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--text-heading); }
.product-card__meta { margin: var(--space-2) 0 0; color: var(--text-muted); font-size: var(--text-sm); }

/* ---------- Cena ---------- */

/* System wymaga cyfr tabelarycznych w cenach - inaczej kwoty w siatce
   produktow nie ustawiaja sie w kolumnie. */
.price {
  margin: var(--space-6) 0 0;
  font-variant-numeric: tabular-nums;
}
.price__amount {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--text-heading);
}
.price__note {
  display: block;
  margin-top: var(--space-1);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.product-card__price {
  margin: var(--space-3) 0 0;
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-semibold);
  color: var(--text-heading);
}
.product-card__price span {
  font-weight: var(--weight-regular);
  color: var(--text-muted);
}

/* ---------- Galeria produktu (bez JavaScriptu) ---------- */

.gallery { display: grid; gap: var(--space-4); }
.gallery__r { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.gallery__stage {
  display: grid;
  place-items: center;
  padding: var(--space-6);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  background: var(--surface-subtle);
}
.gallery__img { display: none; width: 100%; max-height: 460px; object-fit: contain; }

.gallery__thumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.gallery__thumb {
  display: block;
  padding: 4px;
  border: 2px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  cursor: pointer;
}
.gallery__thumb img { width: 68px; height: 54px; object-fit: contain; }
.gallery__thumb:hover { border-color: var(--border-strong); }

/* Przelaczanie: n-ty zaznaczony radiobutton pokazuje n-te zdjecie.
   Regula jest ogolna - dziala dla kazdej galerii do 8 zdjec wlacznie,
   bez generowania osobnego CSS na produkt. */
.gallery__r:nth-of-type(1):checked ~ .gallery__stage .gallery__img:nth-of-type(1),
.gallery__r:nth-of-type(2):checked ~ .gallery__stage .gallery__img:nth-of-type(2),
.gallery__r:nth-of-type(3):checked ~ .gallery__stage .gallery__img:nth-of-type(3),
.gallery__r:nth-of-type(4):checked ~ .gallery__stage .gallery__img:nth-of-type(4),
.gallery__r:nth-of-type(5):checked ~ .gallery__stage .gallery__img:nth-of-type(5),
.gallery__r:nth-of-type(6):checked ~ .gallery__stage .gallery__img:nth-of-type(6),
.gallery__r:nth-of-type(7):checked ~ .gallery__stage .gallery__img:nth-of-type(7),
.gallery__r:nth-of-type(8):checked ~ .gallery__stage .gallery__img:nth-of-type(8) { display: block; }

.gallery__r:nth-of-type(1):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(1),
.gallery__r:nth-of-type(2):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(2),
.gallery__r:nth-of-type(3):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(3),
.gallery__r:nth-of-type(4):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(4),
.gallery__r:nth-of-type(5):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(5),
.gallery__r:nth-of-type(6):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(6),
.gallery__r:nth-of-type(7):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(7),
.gallery__r:nth-of-type(8):checked ~ .gallery__thumbs .gallery__thumb:nth-of-type(8) { border-color: var(--color-primary); }

/* Fokus na radiobuttonie musi byc widoczny na miniaturze - inaczej
   nawigacja klawiatura jest niewidoczna. */
.gallery__r:nth-of-type(1):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(1),
.gallery__r:nth-of-type(2):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(2),
.gallery__r:nth-of-type(3):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(3),
.gallery__r:nth-of-type(4):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(4),
.gallery__r:nth-of-type(5):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(5),
.gallery__r:nth-of-type(6):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(6),
.gallery__r:nth-of-type(7):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(7),
.gallery__r:nth-of-type(8):focus-visible ~ .gallery__thumbs .gallery__thumb:nth-of-type(8) { box-shadow: var(--shadow-focus); }

/* ---------- Uklad strony produktu ---------- */

.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-12); align-items: start; }

.breadcrumb { margin: 0 0 var(--space-4); color: var(--text-muted); font-size: var(--text-sm); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text-link); }

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.spec-table th, .spec-table td { padding: var(--space-3) 0; border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: top; }
.spec-table th { width: 45%; color: var(--text-muted); font-weight: var(--weight-medium); }
.spec-table td { color: var(--text-body); }

/* ---------- Strona glowna: redesign 2026-09 ---------- */

/* Hero: tekst po lewej, mozaika zdjec po prawej. Szczeliny 2 px pokazuja tlo
   siatki, wiec linie miedzy kaflami rysuje samo tlo, a nie obramowania. */
.hero {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(300px, 5fr) minmax(320px, 7fr);
  gap: 40px;
  align-items: stretch;
}
.hero__text {
  padding: 80px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(40px, 4.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -.025em;
  color: var(--gray-900);
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--pink-600); }
.hero__lead {
  margin: 22px 0 0;
  max-width: 420px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--gray-600);
}
.hero .cta-row { margin-top: 32px; }

.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background: var(--gray-200);
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  min-height: 600px;
}
.mosaic__tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--gray-0);
  overflow: hidden;
  color: inherit;
}
.mosaic__tile:hover { text-decoration: none; }
.mosaic__tile--lead { grid-row: span 2; padding: 32px; }
.mosaic__tile img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Etykieta pochodzenia. Kolor niesie znaczenie: magenta = produkcja wlasna,
   turkus = dystrybucja. Tresc bierze sie z pola `source` produktu, a nie
   z projektu, zeby na stronie nie stanelo niepotwierdzone "produkcja wlasna". */
.tag {
  position: absolute;
  left: 0;
  top: 0;
  padding: 8px 14px;
  background: var(--teal-600);
  color: var(--gray-0);
  font-size: 12px;
  font-weight: var(--weight-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tag--own { background: var(--pink-600); }

/* Naglowek sekcji z przyciskiem po prawej */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--gray-900);
}
.section--flush { padding-bottom: 0; }

/* Dwa panele oferty: zdjecie wypelnia panel, pas u dolu niesie tekst. */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.panel {
  position: relative;
  display: block;
  min-height: 520px;
  overflow: hidden;
  color: inherit;
}
.panel:hover { text-decoration: none; }
.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 30%;
  padding: 40px 40px 160px;
  transition: transform 320ms cubic-bezier(.2, 0, 0, 1);
}
.panel:hover img { transform: scale(1.03); }
.panel__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.panel__bar h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.panel__arrow {
  width: 52px;
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-0);
}
.panel__arrow svg { width: 22px; height: 22px; }

.panel--dark { background: var(--gray-900); color: var(--gray-0); }
.panel--dark img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }
.panel--dark .panel__bar { background: linear-gradient(to top, rgba(20, 24, 33, .95), rgba(20, 24, 33, 0)); }
.panel--dark .eyebrow { color: var(--teal-300); }
.panel--dark h3 { color: var(--gray-0); }
.panel--dark .panel__arrow { background: var(--pink-600); }

.panel--light { background: var(--gray-50); border: 1px solid var(--gray-200); }
.panel--light img { filter: drop-shadow(0 24px 32px rgba(20, 24, 33, .18)); }
.panel--light .panel__bar { background: linear-gradient(to top, var(--gray-50) 40%, rgba(247, 248, 250, 0)); }
.panel--light h3 { color: var(--gray-900); }
.panel--light .panel__arrow { background: var(--gray-900); }

/* Panel bez zdjecia: projekt zaklada tu fotografie produkcji wlasnej, ktorej
   jeszcze nie ma. Zamiast cudzego zdjecia pod taka etykieta zostaje sam tekst. */
.panel--no-photo .panel__bar {
  position: static;
  min-height: 520px;
  padding: 40px;
  background: none;
}

/* Siatka produktow na stronie glownej */
.showcase { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.showcase__note { font-size: 14px; color: var(--gray-500); }
.tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--gray-0);
  border: 1px solid var(--gray-200);
  color: inherit;
  transition: box-shadow 200ms cubic-bezier(.2, 0, 0, 1), transform 200ms cubic-bezier(.2, 0, 0, 1);
}
.tile:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 24, 33, .08), 0 12px 32px rgba(20, 24, 33, .08);
}
.tile__media {
  position: relative;
  flex: 1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
}
.tile__media img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 320ms cubic-bezier(.2, 0, 0, 1); }
.tile:hover .tile__media img { transform: scale(1.03); }
.tile__media .tag { font-size: 11px; padding: 7px 12px; }
.tile__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--gray-100);
}
.tile__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 16px;
  line-height: 1.25;
  color: var(--gray-900);
}
.tile__price {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--gray-900);
}
.tile__price span { display: block; font-family: var(--font-body); font-size: 12px; font-weight: var(--weight-medium); color: var(--gray-500); }

/* Wyrozniony kafel zajmuje 2x2, ale tylko gdy siatka ma na to miejsce -
   ponizej trzech kolumn rozpycha uklad zamiast go porzadkowac. */
@media (min-width: 1000px) {
  .tile--featured { grid-column: span 2; grid-row: span 2; }
  .tile--featured .tile__media { min-height: 420px; }
  .tile--featured .tile__name { font-size: 22px; }
}

/* Blok CTA z kontaktami */
.cta-block {
  padding: 56px;
  background: var(--pink-600);
  color: var(--gray-0);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}
.cta-block h2 {
  color: var(--gray-0);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
/* Celowo klasa, a nie ".cta-block p": selektor z elementem ma wyzsza specyficznosc
   niz klasy w kartach kontaktowych i malowal ich tekst na bialo - na bialym tle. */
.cta-block__lead { margin: 16px 0 0; max-width: 440px; font-size: 18px; color: rgba(255, 255, 255, .88); }
.cta-block .btn { margin-top: 28px; }

.contact-cards { display: grid; gap: 2px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--gray-0);
}
.contact-card__avatar {
  width: 48px;
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: var(--weight-bold);
  background: var(--pink-100);
  color: var(--pink-700);
}
.contact-card__avatar--alt { background: var(--teal-100); color: var(--teal-700); }
.contact-card__who { flex: 1; min-width: 0; }
.contact-card__name { margin: 0; font-size: 16px; font-weight: var(--weight-bold); color: var(--gray-900); }
.contact-card__langs { margin: 2px 0 0; font-size: 13px; color: var(--gray-500); }
.contact-card__reach { text-align: right; font-size: 14px; }
.contact-card__reach a { display: block; }
.contact-card__reach .tel { font-weight: var(--weight-semibold); color: var(--gray-900); }

/* ---------- Responsywnosc ---------- */

@media (max-width: 1000px) {
  .h-display { font-size: var(--text-h1); }
}

@media (max-width: 960px) {
  /* Galeria obok specyfikacji potrzebuje okolo 900 px. Ponizej tej szerokosci
     obie kolumny robia sie nieczytelne - skladamy je jedna pod druga. */
  .product-layout { grid-template-columns: 1fr; gap: var(--space-10); }
}

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

@media (max-width: 720px) {
  .section { padding: var(--space-16) 0; }
  .h-display { font-size: var(--text-h2); }
  .h2 { font-size: var(--text-h3); }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .cta-band { padding: var(--space-12) var(--space-6); }

  /* Nawigacji nie chowamy - schodzi do drugiego wiersza, zeby na telefonie
     dalo sie skoczyc do sekcji zamiast przewijac cala strone. */
  .site-header .wrap { flex-wrap: wrap; gap: var(--space-3); min-height: 0; padding-top: var(--space-3); padding-bottom: var(--space-3); }
  .site-nav { order: 3; width: 100%; flex: none; gap: var(--space-1); }
  .site-nav a { padding: 8px 10px; font-size: var(--text-sm); }

  /* Nakladka wyszukiwarki nie dotyka krawedzi ekranu - inaczej zaokraglone rogi
     panelu gina i wyglada to jak zle obciety element, a nie okno. */
  .search__panel { margin: var(--space-4); max-height: calc(100vh - 2 * var(--space-4)); }
  .header-actions { margin-left: auto; }
  .btn--hide-sm { display: none; }
}

/* ---------- Responsywnosc redesignu ---------- */

/* Wersji mobilnej projekt nie obejmowal; ponizsze reguly pochodza z sekcji
   "Responsive" w handoffie. Jeden swiadomy wyjatek: nawigacja nadal schodzi do
   drugiego wiersza zamiast chowac sie pod ikone menu. Przy czterech pozycjach
   hamburger ukrywa cala nawigacje i wymaga JavaScriptu, a zawijanie nie kosztuje
   nic - patrz komentarz przy @media 720 px nizej. */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 0; }
  .hero__text { padding: 56px 0 40px; }
  .mosaic {
    min-height: 0;
    grid-template-rows: auto auto;
    border-left: 0;
    border-right: 0;
    margin: 0 calc(-1 * var(--container-pad));
  }
  .mosaic__tile { min-height: 210px; }
  .mosaic__tile--lead { min-height: 300px; }
  .panel { min-height: 420px; }
  .panel img { padding: 32px 32px 140px; }
  .panel--no-photo .panel__bar { min-height: 320px; }
}

@media (max-width: 1080px) {
  /* Ponizej tej szerokosci kolumna z kontaktami jest za waska, zeby zmiescic
     nazwisko, jezyki i dane kontaktowe w jednym rzedzie bez lamania w polowie. */
  .contact-card { flex-wrap: wrap; }
  .contact-card__reach { width: 100%; text-align: left; padding-left: 64px; }
}

@media (max-width: 720px) {
  .cta-block { padding: 32px; gap: 32px; }
  .panel__bar { padding: 28px; }
  .panel__bar h3 { font-size: 24px; }
  .section-head { margin-bottom: 28px; }
  .contact-card__reach { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; }
}
