/* Strefa Magnesu – arkusz stylów (mobile-first) */

/* Zapasowy Arial dopasowany pomiarem do Schibsted Grotesk (szerokość tekstu i wysokość linii),
   żeby podmiana fontu nie przestawiała układu. */
@font-face {
  font-family: "Schibsted Fallback";
  src: local("Arial");
  font-weight: 400 500;
  size-adjust: 104%;
  ascent-override: 94%;
  descent-override: 25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Schibsted Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600 700;
  size-adjust: 101%;
  ascent-override: 97%;
  descent-override: 26%;
  line-gap-override: 0%;
}

:root {
  --bg: #fbf8f3;          /* jasny beż – tło strony */
  --surface: #ffffff;     /* karty, formularz */
  --beige: #f3ece2;       /* sekcje beżowe */
  --beige-2: #e8dccb;
  --soft: #f0efec;        /* sekcje szare */
  --line: #e3ddd3;
  --ink: #2b2723;
  --muted: #675f56;
  --primary: #7a5a37;     /* brąz z pierścienia logo – przyciski */
  --primary-2: #604529;
  --gold: #a8865a;
  --error: #a1301f;
  --focus: #1f5fbf;

  --font: "Schibsted Grotesk", "Schibsted Fallback", Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 40px; --s8: 56px;
  --radius: 8px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--s4); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--font); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s4); }
@media (min-width: 768px) { .wrap { padding-inline: var(--s5); } }

.skip-link { position: absolute; left: var(--s4); top: -100px; z-index: 100; background: var(--primary); color: #fff; padding: var(--s3) var(--s4); }
.skip-link:focus { top: var(--s2); color: #fff; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: var(--s2) var(--s5);
  background: var(--primary); color: #fff; border: 2px solid var(--primary); border-radius: var(--radius);
  font: 500 1rem/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer;
}
.btn:hover { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn--line { background: #fff; color: var(--primary); }
.btn--line:hover { background: var(--beige); color: var(--primary); }
.btn--light { background: #fff; color: var(--primary); border-color: #fff; }
.btn--light:hover { background: var(--soft); border-color: var(--soft); color: var(--primary); }
.btn--small { padding-inline: var(--s4); }
.btn--block { width: 100%; }

.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; color: var(--primary); }

/* ---------- Górny pasek ---------- */
.topbar { background: var(--soft); border-bottom: 1px solid var(--line); font-size: .875rem; }
.topbar__inner { display: flex; align-items: center; gap: var(--s4); min-height: 44px; }
.topbar__contact { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; }
.topbar__contact:hover { color: var(--primary); text-decoration: underline; }
.topbar__email { display: none; }
@media (min-width: 560px) { .topbar__email { display: inline-flex; } }
.social { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; gap: var(--s1); }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }
.social a:hover { background: var(--beige); color: var(--primary); }

/* ---------- Nagłówek ---------- */
.header { position: relative; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: var(--s3); min-height: 64px; }
.brand { display: flex; align-items: center; gap: var(--s2); margin-right: auto; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 1.125rem; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { width: 48px; height: 48px; flex-shrink: 0; }
@media (max-width: 359px) { .brand { font-size: 1rem; } .brand img { width: 40px; height: 40px; } }

.nav-toggle {
  order: 3; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease-out;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
.header__cta { order: 2; flex-shrink: 0; }
@media (max-width: 359px) { .header__cta { display: none; } }

.nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); }
.js .nav:not(.is-open) { display: none; }
.nav ul { list-style: none; margin: 0; padding: var(--s1) var(--s4) var(--s3); }
.nav li + li { border-top: 1px solid var(--line); }
.nav a { display: flex; align-items: center; min-height: 48px; font-weight: 500; text-decoration: none; }
.nav a[aria-current="page"] { color: var(--primary); }

/* Rozwijane menu „Produkty”: na telefonie akordeon w panelu menu, na komputerze lista pod przyciskiem */
.nav__sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0;
  background: none; border: 0; color: inherit; font: 500 1rem var(--font); cursor: pointer; text-align: left;
}
.nav__sub-toggle::after {
  content: ""; width: 8px; height: 8px; margin: 0 6px 4px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease-out;
}
.nav__sub-toggle[aria-expanded="true"]::after { transform: translateY(4px) rotate(-135deg); }
.nav__sub-toggle.is-current { color: var(--primary); }
.nav__sub { list-style: none; margin: 0; padding: 0 0 var(--s2) var(--s4); }
.js .nav__sub:not(.is-open) { display: none; }
.nav__sub li + li { border-top: 0; }
.nav__sub a { min-height: 44px; font-weight: 400; color: var(--muted); }
.nav__sub a:hover { color: var(--primary); }
.nav__sub .nav__sub-all a { color: var(--primary); font-weight: 500; }

html:not(.js) .nav { position: static; flex-basis: 100%; order: 4; border: 0; }
html:not(.js) .header__inner { flex-wrap: wrap; }
html:not(.js) .nav-toggle { display: none; }

@media (min-width: 1080px) {
  .nav-toggle { display: none; }
  .nav, .js .nav:not(.is-open) { display: block; position: static; border: 0; background: none; }
  .nav ul { display: flex; padding: 0; gap: var(--s1); }
  .nav li + li { border: 0; }
  .nav a { min-height: 44px; padding-inline: var(--s3); border-radius: var(--radius); white-space: nowrap; }
  .nav a:hover { background: var(--beige); color: var(--ink); }
  .nav a[aria-current="page"] { background: var(--beige); color: var(--primary); }
  .nav__item--sub { position: relative; }
  .nav__sub-toggle { width: auto; min-height: 44px; padding: 0 var(--s3); border-radius: var(--radius); }
  .nav__sub-toggle:hover, .nav__sub-toggle[aria-expanded="true"] { background: var(--beige); }
  .nav__sub-toggle.is-current { background: var(--beige); }
  .nav__sub, .js .nav__sub:not(.is-open) { display: none; }
  .nav__sub {
    position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; min-width: 260px; padding: var(--s2);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(43, 39, 35, .08);
  }
  .js .nav__sub.is-open { display: block; }
  html:not(.js) .nav__item--sub:hover .nav__sub, html:not(.js) .nav__item--sub:focus-within .nav__sub { display: block; }
  .nav__sub a { padding-inline: var(--s3); color: var(--ink); }
  .nav__sub a:hover { background: var(--beige); color: var(--ink); }
  .nav__sub .nav__sub-all { margin-top: var(--s1); padding-top: var(--s1); border-top: 1px solid var(--line); }
  .header__cta { order: 4; margin-left: var(--s2); }
  html:not(.js) .nav { order: 2; flex-basis: auto; }
  html:not(.js) .header__inner { flex-wrap: nowrap; }
}

/* ---------- Grafika produktu (zastępstwo zdjęcia) ---------- */
.media {
  container-type: inline-size;
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--media-bg, var(--soft)); border-radius: var(--radius);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media__scale { --mm: calc(var(--k) * 1cqi); display: flex; align-items: center; justify-content: center; gap: calc(14 * var(--mm)); }
.cluster__item { display: block; transform: rotate(var(--tilt)); }

.mag {
  --ton: #9fb0a0;
  display: block; flex-shrink: 0;
  width: calc(var(--w) * var(--mm)); height: calc(var(--h) * var(--mm));
  border-radius: calc(2.5 * var(--mm));
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(43, 39, 35, .16), 0 6px 14px rgba(43, 39, 35, .09);
}
.mag--zdjecie { background: linear-gradient(165deg, color-mix(in srgb, var(--ton) 55%, #fff), var(--ton)); }
.mag--ramka { padding: calc(5 * var(--mm)); background: linear-gradient(var(--ton), var(--ton)) content-box, #fff; }
.mag--wizytowka, .mag--papier {
  border-left: calc(4 * var(--mm)) solid var(--primary);
  background:
    linear-gradient(var(--ink), var(--ink)) no-repeat calc(8 * var(--mm)) 28% / 46% calc(4 * var(--mm)),
    linear-gradient(#bfc8c8, #bfc8c8) no-repeat calc(8 * var(--mm)) 44% / 30% calc(2.5 * var(--mm)),
    linear-gradient(#bfc8c8, #bfc8c8) no-repeat calc(8 * var(--mm)) 78% / 40% calc(2.5 * var(--mm)),
    #fff;
}
.mag--papier { border-left-color: #8d8a85; }
.mag--kalendarz {
  background:
    linear-gradient(var(--primary), var(--primary)) no-repeat top / 100% 22%,
    repeating-linear-gradient(90deg, transparent 0 calc(5 * var(--mm)), #fff 0 calc(7 * var(--mm))) no-repeat 88% 82% / 52% 58%,
    repeating-linear-gradient(transparent 0 calc(5 * var(--mm)), #fff 0 calc(7 * var(--mm))) no-repeat 88% 82% / 52% 58%,
    linear-gradient(#d5dddd, #d5dddd) no-repeat 88% 82% / 52% 58%,
    linear-gradient(#bfc8c8, #bfc8c8) no-repeat calc(6 * var(--mm)) 45% / 28% calc(2.5 * var(--mm)),
    linear-gradient(#bfc8c8, #bfc8c8) no-repeat calc(6 * var(--mm)) 62% / 22% calc(2.5 * var(--mm)),
    #fff;
}
.mag--podziekowanie {
  background:
    linear-gradient(var(--ton), var(--ton)) no-repeat center calc(4 * var(--mm)) / calc(100% - 8 * var(--mm)) 62%,
    linear-gradient(var(--ink), var(--ink)) no-repeat center 86% / 50% calc(3 * var(--mm)),
    #fff;
}
.mag-set { display: grid; grid-template-columns: repeat(var(--cols), auto); gap: calc(3 * var(--mm)); }

/* ---------- Sekcje ---------- */
.section { padding-block: var(--s6); }
.section--tight { padding-block: var(--s4) var(--s6); }
.section--soft { background: var(--soft); }
@media (min-width: 768px) { .section { padding-block: var(--s7); } }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s1) var(--s5); margin-bottom: var(--s4); }
.section__head h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }

/* ---------- Strona główna: hero ---------- */
.hero { background: var(--beige); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; justify-items: center; text-align: center; padding-block: var(--s6) var(--s7); }
.hero__logo { width: 168px; height: 168px; filter: drop-shadow(0 6px 18px rgba(122, 90, 55, .14)); }
.hero h1 { margin-top: var(--s4); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); letter-spacing: -0.025em; max-width: 18em; }
.hero__inner > p { margin-top: var(--s3); color: var(--muted); max-width: 38em; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s5); }
@media (max-width: 479px) { .hero__actions .btn { flex: 1 1 100%; } }
@media (min-width: 768px) {
  .hero__inner { padding-block: var(--s7) var(--s8); }
  .hero__logo { width: 240px; height: 240px; }
}

/* ---------- Kafelki kategorii ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile .media { border-radius: 0; aspect-ratio: 16 / 9; }
.tile__body { display: grid; gap: var(--s1); padding: var(--s3) var(--s4) var(--s2); }
.tile__title { font-size: 1.25rem; }
.tile__title a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.tile__body > p { color: var(--muted); font-size: .9375rem; }
.tile__subs { list-style: none; margin: var(--s2) 0 0; padding: 0; }
.tile__subs li + li { border-top: 1px solid var(--line); }
.tile__subs a {
  display: flex; align-items: center; justify-content: space-between; min-height: 44px;
  text-decoration: none; font-weight: 500; font-size: .9375rem;
}
.tile__subs a::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin-right: 4px; }

/* Mozaika zdjęć w kafelku kategorii */
.mosaic { position: relative; display: grid; gap: 3px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.mosaic--2 { grid-template-columns: 1fr 1fr; }
.mosaic--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.mosaic--3 img:first-child { grid-row: span 2; }
.mosaic__more {
  position: absolute; right: var(--s2); bottom: var(--s2); padding: 2px 10px; border-radius: 999px;
  background: rgba(43, 39, 35, .78); color: #fff; font-size: .8125rem; font-weight: 500;
}

/* ---------- Opinie klientów ---------- */
.reviews { overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--beige) 100%); }
.reviews__head { align-items: center; }
.reviews__summary { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s2); color: var(--muted); }
.reviews__summary strong { color: var(--ink); font-size: 1.25rem; font-weight: 600; }
.stars { display: inline-flex; gap: 2px; }
.stars svg { fill: var(--gold); }
.stars svg.off { fill: var(--beige-2); }
.stars--lg svg { width: 22px; height: 22px; }

.reviews__viewport { position: relative; padding-block: var(--s2) var(--s4); }
/* miękkie wygaszenie kart przy krawędziach ekranu */
.reviews__viewport.is-moving { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reviews__track { list-style: none; margin: 0; padding: 0 var(--s4); display: flex; gap: var(--s3); width: max-content; }
.reviews__viewport.is-moving .reviews__track { padding: 0; animation: reviews-slide calc(var(--count) * 7s) linear infinite; }
.reviews__viewport.is-moving:hover .reviews__track,
.reviews__viewport.is-moving:focus-within .reviews__track,
.reviews.is-paused .reviews__track { animation-play-state: paused; }
@keyframes reviews-slide { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--s3) / 2)); } }

.review { flex: 0 0 auto; width: min(280px, 76vw); }
.review .stars svg { width: 15px; height: 15px; }
.review figure {
  position: relative; display: flex; flex-direction: column; gap: var(--s2); height: 100%; margin: 0; padding: var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(122, 90, 55, .08);
}
/* duży cudzysłów jako znak sekcji */
.review figure::before {
  content: "\201D"; position: absolute; top: 2px; right: 14px; font: 600 3.75rem/1 Georgia, serif; color: var(--beige-2); pointer-events: none;
}
.review__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.review__source { font-size: .75rem; font-weight: 500; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; position: relative; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { font-size: .9375rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review figcaption { display: flex; align-items: center; gap: var(--s2); }
.review__avatar { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--primary); color: #fff; font-size: .875rem; font-weight: 600; }
.review__who { display: grid; line-height: 1.3; font-size: .9375rem; }
.review__who strong { font-weight: 600; }
.review__who span { font-size: .8125rem; color: var(--muted); }
.review__product { display: inline-flex; align-items: center; min-height: 44px; margin: calc(-1 * var(--s2)) 0 calc(-1 * var(--s3)); font-size: .8125rem; color: var(--primary); }
.reviews__note { margin-top: var(--s3); font-size: .8125rem; color: var(--muted); max-width: 60em; }

/* bez animacji: zwykłe przewijanie palcem lub myszą, karty przyciągają się do krawędzi */
@media (prefers-reduced-motion: reduce) {
  .reviews__viewport.is-moving { -webkit-mask-image: none; mask-image: none; overflow-x: auto; scroll-snap-type: x mandatory; }
  .reviews__viewport.is-moving .reviews__track { animation: none; padding: 0 var(--s4); }
  .reviews__track > [aria-hidden="true"] { display: none; }
  .review { scroll-snap-align: start; }
  .reviews__pause { display: none; }
}
.reviews__viewport:not(.is-moving) { overflow-x: auto; }

/* ---------- Karty produktów ---------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); } }
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 359px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.grid__info { grid-column: 1 / -1; }
.grid__info .info { margin: 0; height: 100%; }
@media (min-width: 768px) {
  .grid__info--1 { grid-column: auto; }
  .grid__info--2 { grid-column: span 2; }
}

.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card:hover { border-color: var(--gold); }
.card .media { border-radius: 0; }
.card__body { display: grid; gap: 2px; padding: var(--s2) var(--s3) var(--s3); }
.card__meta { font-size: .8125rem; color: var(--muted); }
.card__title { font-size: .9375rem; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { color: var(--primary); }
.card__title a:focus-visible { outline: none; }
.card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.card__price { margin-top: 2px; font-size: .875rem; color: var(--muted); }
.card__price strong { font-size: 1rem; color: var(--ink); font-weight: 600; }

/* ---------- Cennik w skrócie (strona główna) ---------- */
.pricelist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
@media (min-width: 640px) { .pricelist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pricelist__item { padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pricelist__item h3 { font-size: 1.0625rem; }
.pricelist__item h3 a { display: inline-flex; align-items: center; min-height: 44px; }
.pricelist__lead { margin-bottom: var(--s2); font-size: .875rem; color: var(--muted); }
.pricelist__item ul { list-style: none; margin: var(--s1) 0 0; padding: 0; }
.pricelist__item li { display: flex; justify-content: space-between; gap: var(--s3); padding-block: 6px; border-top: 1px solid var(--line); font-size: .9375rem; }
.pricelist__item small { color: var(--muted); font-size: .8125rem; }
.pricelist__item strong { font-weight: 600; }
.pricelist__note { color: var(--muted); }
.shipping { margin-top: var(--s3); font-size: .9375rem; color: var(--muted); }
.shipping::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: var(--s2); border-radius: 50%; background: var(--gold); vertical-align: 1px; }
.price-ask { padding: var(--s3) var(--s4); background: var(--beige); border-radius: var(--radius); }

/* Wyróżnienie w cenniku, np. „Najpopularniejszy wybór” */
.badge { display: inline-block; margin-left: var(--s1); padding: 1px 8px; border-radius: 999px; background: var(--beige-2); color: var(--primary-2); font-size: .75rem; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.contact__address { min-height: 44px; display: flex; align-items: center; font-weight: 500; font-size: 1.0625rem; }

/* ---------- Strony wewnętrzne ---------- */
.page-head { padding-block: var(--s5) var(--s3); }
.page-head h1 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); letter-spacing: -0.025em; }
.page-head p { margin-top: var(--s2); color: var(--muted); max-width: 44em; }

.subnav { margin-block: var(--s2) var(--s1); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.subnav a {
  display: inline-flex; align-items: center; min-height: 44px; margin-bottom: -1px;
  border-bottom: 2px solid transparent; text-decoration: none; font-weight: 500; color: var(--muted);
}
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--primary); }

.info { margin-top: var(--s5); padding: var(--s4) var(--s5); background: var(--beige); border-radius: var(--radius); }
.info h2 { font-size: 1.0625rem; }
.info ul, .product__facts { margin: var(--s2) 0 0; padding-left: 1.2em; display: grid; gap: var(--s1); font-size: .9375rem; }
.info li::marker, .product__facts li::marker { color: var(--gold); }

/* ---------- Strona produktu ---------- */
.product { display: grid; gap: var(--s5); padding-block: var(--s5) var(--s6); }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
  .product__media { position: sticky; top: var(--s4); }
}
.product__note { margin-top: var(--s2); font-size: .8125rem; color: var(--muted); }
.product__info { display: grid; gap: var(--s3); min-width: 0; }
.product__cat { font-size: .875rem; }
.product__cat a { color: var(--primary); display: inline-flex; align-items: center; min-height: 44px; }
.product__info h1 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); letter-spacing: -0.025em; }
.product__cat + h1 { margin-top: calc(-1 * var(--s3)); }
.product__lead { font-size: 1.0625rem; color: var(--primary); font-weight: 500; margin-top: calc(-1 * var(--s1)); }
.product__from { color: var(--muted); }
.product__from strong { font-size: 1.625rem; color: var(--ink); font-weight: 600; }
.choice { display: grid; gap: var(--s1); }
.choice__label { font-size: .875rem; color: var(--muted); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips li { padding: 6px var(--s3); background: var(--surface); border: 1px solid var(--beige-2); border-radius: var(--radius); font-weight: 500; font-size: .9375rem; }
.variants { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.variants li { display: grid; gap: 2px; padding: var(--s2) var(--s3); background: var(--surface); border: 1px solid var(--beige-2); border-radius: var(--radius); }
.variants strong { font-weight: 600; font-size: .9375rem; }
.variants span { font-size: .875rem; color: var(--muted); }
@media (min-width: 560px) { .variants { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }

/* Galeria zdjęć produktu */
.gallery { margin: 0; display: grid; gap: var(--s3); }
.gallery__stage { position: relative; }
.gallery__main { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--soft); }
.js .gallery__main { cursor: zoom-in; }
/* przycisk powiększenia (dla klawiatury i czytników); myszą i palcem działa też kliknięcie w samo zdjęcie */
.gallery__open {
  position: absolute; top: var(--s3); right: var(--s3); display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 2px 10px rgba(43, 39, 35, .2);
}
.gallery__open:hover { background: #fff; color: var(--primary); }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer;
  box-shadow: 0 2px 10px rgba(43, 39, 35, .2);
}
.gallery__nav:hover { background: #fff; color: var(--primary); }
.gallery__nav--prev { left: var(--s3); }
.gallery__nav--next { right: var(--s3); }
.gallery__count {
  position: absolute; left: 50%; bottom: var(--s3); transform: translateX(-50%); padding: 2px 12px; border-radius: 999px;
  background: rgba(43, 39, 35, .78); color: #fff; font-size: .8125rem; font-weight: 500; pointer-events: none;
}
html:not(.js) .gallery__nav, html:not(.js) .gallery__count { display: none; }
.gallery__thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: var(--s2); }
.gallery__thumb { display: block; border-radius: 6px; overflow: hidden; border: 2px solid transparent; }
.gallery__thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); opacity: .75; }
.gallery__thumb:hover img, .gallery__thumb[aria-current="true"] img { opacity: 1; }
.gallery__thumb[aria-current="true"] { border-color: var(--primary); }
.gallery figcaption { font-size: .8125rem; color: var(--muted); }

/* Powiększenie zdjęcia */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(24, 21, 18, .96); color: #fff; }
.lightbox::backdrop { background: rgba(24, 21, 18, .94); }
.lightbox__inner { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 16px; }
/* zdjęcie zawsze mieści się w oknie: szerokość i wysokość ograniczone do ekranu minus miejsce na przyciski */
.lightbox__img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 128px); width: auto; height: auto; object-fit: contain; border-radius: 4px; touch-action: pan-y; user-select: none; }
.lightbox__close, .lightbox__nav {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(0, 0, 0, .8); }
.lightbox__close { top: var(--s3); right: var(--s3); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: var(--s3); }
.lightbox__nav--next { right: var(--s3); }
.lightbox__count { position: absolute; left: 50%; bottom: var(--s4); transform: translateX(-50%); font-size: .9375rem; }
.lightbox :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (min-width: 768px) { .lightbox__inner { padding: 48px 96px; } .lightbox__img { max-width: calc(100vw - 192px); max-height: calc(100dvh - 112px); } }
body.no-scroll { overflow: hidden; }

.media--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }

.product__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (max-width: 479px) { .product__actions .btn { flex: 1 1 100%; } }

.prices, .specs { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prices caption, .specs caption { text-align: left; font-weight: 600; font-size: 1.0625rem; padding-bottom: var(--s1); }
.prices th, .prices td, .specs th, .specs td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: right; }
.prices thead th { font-weight: 500; color: var(--muted); font-size: .8125rem; }
.prices th:first-child, .prices td:first-child, .specs th, .specs td { text-align: left; }
.prices td + td, .prices th + th { padding-left: var(--s3); }
.prices td:nth-child(2) { font-weight: 600; }
.prices td:nth-child(3) { color: var(--muted); }
.prices tfoot td { text-align: left; color: var(--muted); font-size: .875rem; border-bottom: 0; }
.specs th { font-weight: 400; color: var(--muted); width: 40%; padding-right: var(--s3); }

/* ---------- Jak zamówić ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: krok; display: grid; gap: var(--s4); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: krok; display: grid; align-content: start; grid-template-columns: 36px minmax(0, 1fr); column-gap: var(--s3); }
.steps li::before {
  content: counter(krok); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--primary); color: #fff; font-weight: 600;
}
.steps h2, .steps h3 { font-size: 1.0625rem; letter-spacing: -0.01em; padding-top: 7px; }
.steps p { margin-top: 2px; color: var(--muted); font-size: .9375rem; }
.page-head + .steps { margin-block: var(--s2) var(--s6); }

/* ---------- Pasek zachęty ---------- */
.band { background: var(--beige-2); }
.band__inner { display: grid; gap: var(--s4); padding-block: var(--s6); align-items: center; }
.band h2 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.625rem); }
.band p { margin-top: var(--s1); color: #574f46; }
.band .btn--light { background: var(--primary); color: #fff; border-color: var(--primary); }
.band .btn--light:hover { background: var(--primary-2); border-color: var(--primary-2); color: #fff; }
@media (min-width: 768px) { .band__inner { grid-template-columns: 1fr auto; } }

/* ---------- Formularz ---------- */
.order { display: grid; gap: var(--s5); }
@media (min-width: 960px) { .order { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); align-items: start; gap: var(--s7); } }
.order__intro h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.order__intro p { margin-top: var(--s2); color: var(--muted); max-width: 30em; }
.order__alt a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; color: var(--primary); font-weight: 500; }

.form { display: grid; gap: var(--s3); min-width: 0; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 560px) { .form { padding: var(--s5); } }
.field { display: grid; gap: var(--s1); min-width: 0; }
.field[hidden] { display: none; }
.field-row { display: grid; gap: var(--s3); }
@media (min-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.field label { font-weight: 500; font-size: .9375rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: var(--s2) var(--s3);
  font: 1rem/1.4 var(--font); color: var(--ink);
  background: var(--surface); border: 1px solid #9a9188; border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input[type="file"] { padding: var(--s1) var(--s2); cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: var(--s3); min-height: 34px; padding: var(--s1) var(--s3);
  font: 500 .9375rem var(--font); color: var(--primary);
  background: var(--beige); border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--primary); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field__hint { font-size: .8125rem; color: var(--muted); }
.field__error { font-size: .875rem; color: var(--error); font-weight: 500; }
.form__privacy { font-size: .8125rem; color: var(--muted); }
.hp { display: none; }

/* ---------- Kontakt ---------- */
.contact-hero .wrap { padding-block: var(--s6); }
.contact-hero p { margin-top: var(--s2); color: var(--muted); max-width: 36em; }
.contact-layout { display: grid; gap: var(--s5); padding-block: var(--s6) var(--s8); align-items: start; }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s7); } }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s4); padding: var(--s5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card__icon { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--beige); color: var(--primary); }
.contact-card__body { display: grid; gap: var(--s2); justify-items: start; min-width: 0; }
.contact-card h2 { font-size: .9375rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.contact-card__value { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.contact-card__value--email { font-size: 1.0625rem; overflow-wrap: anywhere; }
.contact-social { margin-top: var(--s6); }
.contact-social h2 { font-size: 1.125rem; margin-bottom: var(--s3); }
.contact-social ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.social-btn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: var(--s2) var(--s4); background: var(--surface); border: 1px solid var(--beige-2); border-radius: 999px; color: var(--ink); font-weight: 500; text-decoration: none; }
.social-btn:hover { border-color: var(--primary); color: var(--primary); }
.contact-order { display: grid; gap: var(--s3); padding: var(--s5); background: var(--beige); border-radius: var(--radius); }
.contact-order h2 { font-size: 1.25rem; }
.contact-order > p { color: var(--muted); }
.contact-order ol { margin: 0; padding-left: 1.3em; display: grid; gap: var(--s2); font-size: .9375rem; }
.contact-order ol strong { font-weight: 600; }
.contact-order .shipping { margin-top: 0; }
@media (min-width: 960px) { .contact-order { position: sticky; top: var(--s4); } }

.contact { margin: var(--s2) 0 var(--s6); display: grid; gap: var(--s2) var(--s5); }
.contact div { padding-top: var(--s2); border-top: 1px solid var(--line); }
.contact dt { font-size: .8125rem; color: var(--muted); }
.contact dd { margin: 0; }
.contact a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; font-size: 1.0625rem; overflow-wrap: anywhere; }
@media (min-width: 640px) { .contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .contact { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.thanks { padding-block: var(--s8); max-width: 40em; }
.thanks h1 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); }
.thanks p { margin-block: var(--s2) var(--s5); color: var(--muted); }

/* ---------- O nas ---------- */
.about-teaser__inner { display: grid; gap: var(--s3); }
.about-teaser h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }
.about-teaser p { max-width: 44em; font-size: 1.0625rem; }
@media (min-width: 768px) { .about-teaser__inner { grid-template-columns: 200px minmax(0, 1fr); gap: var(--s6); } }

.about-hero { background: var(--beige); border-bottom: 1px solid var(--line); }
.about-hero__inner { display: grid; gap: var(--s5); justify-items: center; text-align: center; padding-block: var(--s6) var(--s7); }
.about-hero img { width: 160px; height: 160px; filter: drop-shadow(0 6px 18px rgba(122, 90, 55, .14)); }
.about-hero h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); letter-spacing: -0.025em; }
.about-hero p { margin-top: var(--s3); font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.5; max-width: 32em; }
@media (min-width: 768px) {
  .about-hero__inner { grid-template-columns: 220px minmax(0, 1fr); justify-items: start; text-align: left; gap: var(--s7); padding-block: var(--s7); }
  .about-hero img { width: 220px; height: 220px; }
}
.about__title { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); margin-bottom: var(--s5); }
.feature { display: grid; gap: var(--s4); align-items: center; }
.feature + .feature { margin-top: var(--s6); }
.feature .media { border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.feature__text { display: grid; gap: var(--s2); max-width: 34em; }
.feature__text h3 { font-size: 1.25rem; }
.feature__text p { font-size: 1.0625rem; }
@media (min-width: 768px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); }
  .feature--flip .media { order: 2; }
}

/* ---------- Cookies ---------- */
.cookie-bar { background: var(--surface); border-bottom: 1px solid var(--beige-2); }
/* widoczny tylko bez zapisanej zgody; klasę ustawia skrypt w <head> przed pierwszym rysowaniem, więc nic nie przeskakuje */
.cookie-bar { display: none; }
.bez-zgody .cookie-bar { display: block; }
.cookie-bar__inner { display: grid; gap: var(--s2); padding-block: var(--s3); }
.cookie-bar h2 { font-size: 1rem; }
.cookie-bar p { margin-top: 2px; font-size: .875rem; color: var(--muted); max-width: 62em; }
.cookie-bar p a { padding-block: 12px; }
.cookie-bar__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (max-width: 559px) { .cookie-bar__actions .btn { flex: 1 1 40%; } }
@media (min-width: 900px) { .cookie-bar__inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s6); } }

.cookie-dialog { width: min(560px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.cookie-dialog::backdrop { background: rgba(43, 39, 35, .45); }
.cookie-dialog__form { display: grid; gap: var(--s4); padding: var(--s5); }
.cookie-dialog h2 { font-size: 1.25rem; }
.cookie-opt { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s3); align-items: start; padding-top: var(--s3); border-top: 1px solid var(--line); }
.cookie-opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary); }
.cookie-opt label { display: grid; gap: 2px; cursor: pointer; }
.cookie-opt span { font-size: .875rem; color: var(--muted); }
.cookie-dialog__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
@media (max-width: 479px) { .cookie-dialog__actions .btn { flex: 1 1 100%; } }

.linklike { padding: 0; background: none; border: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.linklike:hover { color: var(--primary); }

/* ---------- Strony prawne ---------- */
.legal { max-width: 46em; padding-bottom: var(--s7); }
.legal__toc { padding: var(--s3) var(--s4); background: var(--beige); border-radius: var(--radius); }
.legal__toc ol { margin: 0; padding-left: 1.3em; columns: 2 16em; font-size: .9375rem; }
.legal__toc a { display: inline-flex; align-items: center; min-height: 44px; }
.legal section { margin-top: var(--s6); scroll-margin-top: var(--s4); }
.legal h2 { font-size: 1.25rem; margin-bottom: var(--s2); }
.legal p + p, .legal ul, .legal ol { margin-top: var(--s2); }
.legal ul, .legal section ol { padding-left: 1.3em; display: grid; gap: var(--s1); }
.legal .linklike { display: inline; }
/* linki w tekście: większy obszar kliknięcia bez zmiany wysokości linii */
.legal section a, .legal section .linklike { padding-block: 12px; }

/* ---------- Stopka ---------- */
.footer { background: var(--soft); color: var(--ink); font-size: .9375rem; border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: var(--s5); padding-block: var(--s6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__brand { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s4); }
.footer__logo { flex-shrink: 0; display: block; border-radius: 50%; box-shadow: 0 4px 14px rgba(122, 90, 55, .14); }
.footer__logo img { width: 88px; height: 88px; }
.footer__name { font-weight: 600; font-size: 1.125rem; }
.footer__tag { margin-top: 2px; color: var(--muted); font-size: .875rem; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); }
  /* na komputerze logo nad nazwą, wyrównane do góry z nagłówkami kolumn */
  .footer__brand { grid-column: auto; flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .footer__logo img { width: 104px; height: 104px; }
}
.footer__title { font-size: 1rem; letter-spacing: 0; margin-bottom: var(--s1); }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list .linklike { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; text-align: left; }
.footer__list .linklike:hover { color: var(--primary); text-decoration: underline; }
.footer__status { font-size: .875rem; color: var(--primary); }
.footer__list a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.footer__list a:hover { color: var(--primary); text-decoration: underline; }
.footer__bottom { padding-block: var(--s3); border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
