/*
 * Wiejskie Wypieki: arkusz stron publicznych (wersja 3, premium).
 * Rozwinięcie układu piekarniajasiek.pl: pływający nagłówek, zaokrąglone panele na lnianym tle,
 * ciemne panele espresso, szeryfowe nagłówki z kursywną etykietą, łuk w sekcji cukierni.
 * Mobile-first, siatka 4 px.
 */

/* ---------- Fonty (lokalnie, OFL; łacina + polskie znaki) ---------- */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/assets/fonts/figtree-pl.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/cormorant-pl.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/cormorant-italic-pl.woff2") format("woff2"); }

/* ---------- Tokeny ---------- */
:root {
  --bg: #F1EBE2;
  --panel: #FFFDFA;
  --soft: #F6F0E7;
  --soft-2: #EEE6DA;
  --text: #1E1611;
  --text-2: #594E45;
  --muted: #6C6157;
  --line: rgb(30 22 17 / 0.1);
  --line-2: rgb(30 22 17 / 0.18);
  --field: #8E8478;

  --espresso: #1B130E;
  --espresso-2: #271C15;
  --espresso-3: #34261D;
  --on-dark: #F4EADB;
  --on-dark-2: #CFC1AE;
  --on-dark-3: #A99B88;
  --line-dark: rgb(244 234 219 / 0.14);

  --caramel: #9A5B2A;
  --caramel-hover: #7F4820;
  --gold: #D8A65E;

  --ok: #2D6A38;
  --ok-bg: #EAF3E8;
  --err: #B42318;
  --err-bg: #FBEDEA;
  --focus: #B5651D;

  --serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gap: 12px;
  --pad: 24px;
  --pad-y: 48px;
  --r-panel: 20px;
  --r-card: 16px;
  --r-img: 16px;
  --r-btn: 12px;
  --r-field: 10px;
  --header-h: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t: 220ms;
  --shadow: 0 1px 2px rgb(30 22 17 / 0.05), 0 8px 24px rgb(30 22 17 / 0.06);
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 40px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; color: var(--text); text-wrap: balance; letter-spacing: -0.01em; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--text); }
p { text-wrap: pretty; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: rgb(30 22 17 / 0.35); transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease); }
@media (hover: hover) { a:hover { color: var(--caramel); text-decoration-color: currentColor; } }
address { font-style: normal; }
code { font-size: 0.9em; background: var(--soft-2); padding: 0 6px; border-radius: 4px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--gold); color: var(--espresso); }

.icon { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.break { overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.anchor { position: absolute; width: 1px; height: 1px; overflow: hidden; }
.hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.skip-link { position: absolute; left: 12px; top: -64px; z-index: 100; background: var(--espresso); color: var(--on-dark); padding: 12px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--on-dark); }

/* ---------- Panele ---------- */
main { display: grid; gap: var(--gap); padding: var(--gap) var(--gap) 0; }
.panel { position: relative; background: var(--panel); border-radius: var(--r-panel); padding: var(--pad-y) var(--pad); min-width: 0; }
.panel--dark { background: var(--espresso); color: var(--on-dark-2); }
.panel--dark h2, .panel--dark h3 { color: var(--on-dark); }
.panel--dark a:not(.btn) { color: var(--on-dark); text-decoration-color: rgb(244 234 219 / 0.4); }
@media (hover: hover) { .panel--dark a:not(.btn):hover { color: var(--gold); } }
.panel--dark :focus-visible { outline-color: var(--gold); }
.panel--soft { background: var(--soft); }
.inner { width: 100%; max-width: 1180px; margin-inline: auto; }

/* ---------- Typografia sekcji ---------- */
.eyebrow { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.2; color: var(--caramel); margin-bottom: 12px; }
.panel--dark .eyebrow, .hero .eyebrow, .banner .eyebrow { color: var(--gold); }
.title { font-size: clamp(30px, 24px + 1.6vw, 44px); line-height: 1.08; }
.title--sm { font-size: clamp(26px, 22px + 0.9vw, 34px); line-height: 1.12; }
.title--statement { font-size: clamp(28px, 22px + 1.5vw, 42px); line-height: 1.15; max-width: 24ch; }
.lead { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 36rem; }
.panel--dark .lead { color: var(--on-dark-2); }
.center { text-align: center; }
.center .lead, .center .title--statement { margin-inline: auto; }
.head { margin-bottom: 32px; display: grid; gap: 16px; }
.head .eyebrow { margin-bottom: 0; }
.head--split { align-items: end; }
.note { margin-top: 32px; font-size: 15px; color: var(--muted); max-width: 42rem; display: flex; gap: 10px; align-items: flex-start; }
.note .icon { color: var(--caramel); margin-top: 3px; width: 16px; height: 16px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r-btn);
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  user-select: none; -webkit-user-select: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 18px; height: 18px; }
.btn--lg { min-height: 54px; padding: 0 28px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--caramel); color: #FFFFFF; }
.btn--dark { background: var(--espresso); color: var(--on-dark); }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--cream { background: var(--on-dark); color: var(--espresso); }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgb(244 234 219 / 0.42); }
.btn--text { background: transparent; color: var(--text); text-decoration: underline; text-underline-offset: 0.22em; text-decoration-color: rgb(30 22 17 / 0.35); padding-inline: 12px; font-weight: 500; }
.btn--danger { background: transparent; color: var(--err); border-color: currentColor; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
@media (hover: hover) {
  .btn--primary:hover { background: var(--caramel-hover); color: #FFFFFF; }
  .btn--dark:hover { background: var(--espresso-3); color: var(--on-dark); }
  .btn--secondary:hover { background: var(--soft); color: var(--text); border-color: rgb(30 22 17 / 0.32); }
  .btn--cream:hover { background: #FFFFFF; color: var(--espresso); }
  .btn--ghost:hover { background: rgb(244 234 219 / 0.1); color: var(--on-dark); border-color: rgb(244 234 219 / 0.7); }
  .btn--danger:hover { background: var(--err-bg); color: var(--err); }
  .btn--text:hover { color: var(--caramel); }
}
.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.22em; cursor: pointer; min-height: 44px; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }
@media (hover: hover) { .icon-button:hover { background: var(--soft); } }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 16px; }
.text-link .icon { width: 16px; height: 16px; }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 20px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--caramel); }
.ticks .icon { display: none; }
.panel--dark .ticks li::before { background: var(--gold); }

/* ---------- Pasek komunikatu ---------- */
.announcement { background: var(--espresso); color: var(--on-dark); text-align: center; font-size: 15px; line-height: 20px; padding: 10px 16px; }

/* ---------- Nagłówek (pływająca karta) ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: calc(var(--gap) * 2) calc(var(--gap) * 2) 0; pointer-events: none; }
.site-header__bar { pointer-events: auto; }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1440px; margin-inline: auto; min-height: var(--header-h);
  background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 8px 8px 8px 16px;
}
.site-header__logo { display: flex; align-items: center; min-height: 48px; flex: none; }
.site-header__logo img { width: auto; height: 40px; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.btn--call { min-height: 44px; width: 44px; padding: 0; }
.btn--call__label { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-btn); background: var(--panel); color: var(--text);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
.site-nav {
  position: fixed; left: calc(var(--gap) * 2); right: calc(var(--gap) * 2); top: calc(var(--header-h) + var(--gap) * 2 + 8px);
  max-height: calc(100dvh - var(--header-h) - var(--gap) * 4);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 8px 20px 20px; display: none;
}
.site-nav.is-open { display: block; animation: nav-in var(--t) var(--ease); }
@keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.site-nav__list { list-style: none; }
.site-nav__list li + li { border-top: 1px solid var(--line); }
.site-nav__link { display: flex; align-items: center; min-height: 58px; color: var(--text); text-decoration: none; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.site-nav__link[aria-current="page"] { color: var(--caramel); }
@media (hover: hover) { .site-nav__link:hover { color: var(--caramel); } }
.site-nav__extra { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.site-nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); text-decoration: none; min-height: 44px; }
.social-links { display: flex; gap: 8px; }
.social-links a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; }
@media (hover: hover) { .social-links a:hover { background: var(--soft); color: var(--text); } }
body.menu-open { overflow: hidden; }

/* ---------- Hero: zdjęcie wnętrza, dwa logotypy, hasło pośrodku ---------- */
.hero { position: relative; overflow: hidden; border-radius: var(--r-panel); background: var(--espresso); color: var(--on-dark-2); min-height: calc(100svh - var(--gap) * 2); display: flex; align-items: flex-start; }
.hero__bg, .banner__bg { position: absolute; inset: 0; margin: 0; }
.hero__bg img, .banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(27 19 14 / 0.62) 0%, rgb(27 19 14 / 0.7) 50%, rgb(27 19 14 / 0.86) 100%); }
.hero__content { position: relative; z-index: 1; width: 100%; padding: calc(var(--header-h) + var(--gap) + 24px) var(--pad) 40px; }
.hero__layout { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "ww kt" "center center"; gap: 20px 16px; align-items: center; justify-items: center; max-width: 1240px; margin-inline: auto; }
.hero__brand { width: 96px; }
.hero__brand--ww { grid-area: ww; justify-self: end; }
.hero__brand--kt { grid-area: kt; justify-self: start; }
.hero__brand img, .hero__brand .badge { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 50%; box-shadow: 0 0 0 1px rgb(244 234 219 / 0.3), 0 8px 24px rgb(0 0 0 / 0.28); }
.hero__center { grid-area: center; text-align: center; max-width: 44rem; }
.hero__kicker { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 18px; line-height: 1.3; color: var(--gold); margin-bottom: 12px; }
.hero__title { color: var(--on-dark); font-size: clamp(34px, min(22px + 3.8vw, 8.4vh), 76px); line-height: 1; letter-spacing: -0.02em; }
.hero__lead { font-size: 16px; line-height: 1.6; color: var(--on-dark-2); max-width: 42rem; margin: 16px auto 0; }
.hero .actions { margin-top: 24px; gap: 10px; }
.hero .actions { justify-content: center; align-items: center; }
.hero :focus-visible, .banner :focus-visible { outline-color: var(--gold); }
.badge__text { font-family: var(--serif); font-weight: 700; font-size: 33px; letter-spacing: 4px; fill: #FEF2C2; }

/* ---------- Baner podstron ---------- */
.banner { position: relative; overflow: hidden; border-radius: var(--r-panel); background: var(--espresso); color: var(--on-dark-2); min-height: 340px; display: flex; align-items: flex-end; }
.banner__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(27 19 14 / 0.45) 0%, rgb(27 19 14 / 0.88) 100%); }
.banner--plain { background: var(--espresso); min-height: 280px; }
.banner__content { position: relative; z-index: 1; width: 100%; padding: 104px var(--pad) 40px; }
.banner__title { color: var(--on-dark); font-size: clamp(34px, 26px + 2vw, 56px); line-height: 1.06; letter-spacing: -0.015em; max-width: 18ch; }
.banner .lead { color: var(--on-dark-2); margin-top: 16px; }
.breadcrumbs { margin-bottom: 16px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 15px; color: var(--on-dark-3); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark-2); }
.breadcrumbs [aria-current] { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); }

/* ---------- O piekarni ---------- */
.about { display: grid; gap: 48px; }
.about__text > p { color: var(--text-2); margin-top: 16px; max-width: 34rem; }
.about__media { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.about__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-img); background: var(--soft-2); }
.about__media figure:nth-child(2) { margin-top: 48px; }

/* ---------- Pieczywo: karty ze zdjęciem ---------- */
.bread { display: grid; gap: 40px; }
.bread__text p { color: var(--on-dark-2); max-width: 30rem; }
.photo-cards { list-style: none; display: grid; gap: 12px; }
.photo-card { position: relative; overflow: hidden; border-radius: var(--r-img); background: var(--espresso-2); }
.photo-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(27 19 14 / 0) 45%, rgb(27 19 14 / 0.88) 100%); }
.photo-card__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; }
.photo-card__title { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.1; color: var(--on-dark); }
.photo-card__desc { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--on-dark-2); }

/* ---------- Cukiernia: łuk pośrodku ---------- */
.patisserie { display: grid; gap: 32px; }
.arch { position: relative; background: var(--soft); border-radius: 999px 999px var(--r-card) var(--r-card); padding: 48px 24px 0; text-align: center; overflow: hidden; display: grid; justify-items: center; }
.arch__title { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1; color: var(--text); }
.arch p { color: var(--text-2); margin-top: 12px; max-width: 22rem; }
.arch .text-link { margin-top: 4px; }
.arch__img { margin-top: 16px; width: 100%; }
.arch__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-img) var(--r-img) 0 0; }
.treats { list-style: none; display: grid; gap: 8px; }
.treat { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; padding: 12px 0; text-decoration: none; color: var(--text); }
.treat img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; background: var(--soft-2); box-shadow: 0 0 0 4px var(--panel), 0 0 0 5px var(--line-2); }
.treat__name { display: block; font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.1; transition: color var(--t-fast) var(--ease); }
.treat__desc { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
@media (hover: hover) { .treat:hover { color: var(--text); } .treat:hover .treat__name { color: var(--caramel); } }
.section-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Kroki ---------- */
.steps { list-style: none; display: grid; gap: 12px; counter-reset: step; }
.step { counter-increment: step; background: var(--soft); border-radius: var(--r-card); padding: 28px 24px; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--caramel); margin-bottom: 12px; font-variant-numeric: lining-nums; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); }
.panel--dark .step { background: var(--espresso-2); }
.panel--dark .step::before { color: var(--gold); }
.panel--dark .step p { color: var(--on-dark-2); }

/* ---------- Punkty i mapa ---------- */
.locations { display: grid; gap: 40px; }
.places { list-style: none; border-top: 1px solid var(--line); }
.place { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.place > p { grid-column: 1; }
.place__name { font-weight: 600; font-size: 17px; line-height: 1.4; color: var(--text); }
.place__meta { font-size: 14px; line-height: 1.5; color: var(--muted); }
.place__addr { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.place__route { grid-column: 2; grid-row: 1 / span 3; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 15px; }
.place__route .icon { width: 16px; height: 16px; }
.panel--dark .places, .panel--dark .place { border-color: var(--line-dark); }
.panel--dark .place__name { color: var(--on-dark); }
.panel--dark .place__addr { color: var(--on-dark-2); }
.panel--dark .place__meta { color: var(--on-dark-3); }

/* Strona punktów: karty z adresem, godzinami i telefonem */
.points-layout { display: grid; gap: 48px; }
.points-layout__title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.place-cards + .points-layout__title { margin-top: 48px; }
.points-layout__count { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.place-cards { list-style: none; display: grid; gap: 12px; }
.place-card { display: grid; gap: 16px; background: var(--soft); border-radius: var(--r-card); padding: 20px; }
.place-card__name { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.15; color: var(--text); }
.place-card__note { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.place-card__info { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.place-card__info dt { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.place-card__info dd { font-size: 16px; line-height: 1.5; color: var(--text); }
.place-card__line { display: block; }
.place-card__muted { color: var(--text-2); }
.place-card__tel { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.place-card__route { justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; }
.place-card__route .icon { width: 16px; height: 16px; }

.map { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--espresso-2); border: 1px solid var(--line-dark); }
.map--light { background: var(--soft); border-color: var(--line); }
.map__canvas { position: relative; aspect-ratio: 4 / 5; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__leaflet { position: absolute; inset: 0; z-index: 1; }
.map.is-interactive .map__svg { visibility: hidden; }
.map__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 12px 16px; border-top: 1px solid var(--line-dark); }
.map--light .map__bar { border-color: var(--line); }
.map__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--on-dark-3); }
.map--light .map__legend { color: var(--muted); }
.map__legend li { display: inline-flex; align-items: center; gap: 8px; }
.map__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.map__dot--hollow { background: transparent; border: 2px solid var(--gold); }
.map__hint { font-size: 14px; color: var(--on-dark-3); padding: 0 16px 16px; }
.map--light .map__hint { color: var(--muted); }
/* rysunek mapy */
.m-grid { stroke: rgb(244 234 219 / 0.07); stroke-width: 1; }
.m-route { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 4 6; fill: none; opacity: 0.7; }
.m-dot { fill: var(--gold); }
.m-dot--hollow { fill: var(--espresso-2); stroke: var(--gold); stroke-width: 2; }
.m-home { fill: var(--espresso); stroke: var(--gold); stroke-width: 2; }
.m-home-ring { fill: none; stroke: rgb(216 166 94 / 0.45); stroke-width: 1; }
.m-label { font-family: var(--serif); font-style: italic; font-size: 34px; fill: var(--on-dark); }
.m-sub { font-family: var(--sans); font-size: 25px; fill: var(--on-dark-3); }
.m-scale { stroke: var(--on-dark-3); stroke-width: 1.5; }
.m-north { font-family: var(--sans); font-size: 26px; fill: var(--on-dark-3); font-weight: 600; }
.map--light .m-grid { stroke: rgb(30 22 17 / 0.06); }
.map--light .m-route { stroke: var(--caramel); }
.map--light .m-dot { fill: var(--caramel); }
.map--light .m-dot--hollow { fill: var(--soft); stroke: var(--caramel); }
.map--light .m-home { fill: var(--panel); stroke: var(--caramel); }
.map--light .m-home-ring { stroke: rgb(154 91 42 / 0.4); }
.map--light .m-label { fill: var(--text); }
.map--light .m-sub, .map--light .m-north { fill: var(--muted); }
.map--light .m-scale { stroke: var(--muted); }
.map--light .map__dot { background: var(--caramel); }
.map--light .map__dot--hollow { background: transparent; border-color: var(--caramel); }
/* Leaflet: stonowane kafelki i własne znaczniki */
.map .leaflet-container { width: 100%; height: 100%; background: var(--soft-2); font-family: var(--sans); }
.map .leaflet-tile-pane { filter: grayscale(0.85) sepia(0.35) contrast(0.95) brightness(1.02); }
.ww-pin { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--caramel); border: 3px solid #FFFFFF; box-shadow: 0 1px 4px rgb(0 0 0 / 0.35); }
.ww-pin--partner { background: #FFFFFF; border-color: var(--caramel); }
.ww-pin--home { background: var(--espresso); border-color: var(--gold); box-shadow: 0 0 0 3px #FFFFFF, 0 2px 6px rgb(0 0 0 / 0.35); }
.ww-cluster { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--espresso); color: var(--on-dark); border: 3px solid #FFFFFF; box-shadow: 0 1px 4px rgb(0 0 0 / 0.35); font: 600 14px/1 var(--sans); cursor: pointer; }
.map .leaflet-popup-content ul { list-style: none; display: grid; gap: 10px; }
.map .leaflet-popup-content-wrapper { border-radius: 12px; }
.map .leaflet-popup-content { margin: 14px 16px; font-size: 15px; line-height: 1.5; color: var(--text); }
.map .leaflet-popup-content strong { display: block; font-size: 16px; }
.map .leaflet-popup-content a { color: var(--caramel); font-weight: 600; }

/* ---------- Galeria (karuzela) ---------- */
.carousel { position: relative; }
.carousel__track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 4px; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track li { scroll-snap-align: start; }
.carousel__track img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-img); background: var(--soft-2); }
.carousel__nav { display: flex; gap: 8px; }
.carousel__btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.carousel__btn[disabled] { opacity: 0.4; cursor: default; }
@media (hover: hover) { .carousel__btn:not([disabled]):hover { background: var(--espresso); color: var(--on-dark); } }
.carousel__btn--prev .icon { transform: scaleX(-1); }

/* ---------- Duet: współpraca i kariera ---------- */
.duo { display: grid; gap: var(--gap); }
.duo__card { position: relative; overflow: hidden; border-radius: var(--r-panel); padding: var(--pad-y) var(--pad); display: grid; align-content: end; justify-items: start; gap: 16px; min-height: 340px; }
.duo__card p { max-width: 30rem; }
.duo__card--photo { background: var(--espresso); color: var(--on-dark-2); }
.duo__card--photo h2 { color: var(--on-dark); position: relative; }
.duo__card--photo > *:not(.duo__bg) { position: relative; z-index: 1; }
.duo__bg { position: absolute; inset: 0; margin: 0; }
.duo__bg img { width: 100%; height: 100%; object-fit: cover; }
.duo__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(27 19 14 / 0.35), rgb(27 19 14 / 0.9)); }
.duo__card--soft { background: var(--soft-2); }
.duo__card--soft p { color: var(--text-2); }

/* ---------- Oferta: kategorie ---------- */
.jump { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgb(244 234 219 / 0.35); border-radius: var(--r-btn); text-decoration: none; font-size: 15px; font-weight: 500; color: var(--on-dark); }
@media (hover: hover) { .jump a:hover { background: rgb(244 234 219 / 0.1); color: var(--on-dark); } }
.cat { display: grid; gap: 32px; }
.cat__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); background: var(--soft-2); }
.cat__num { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--caramel); margin-bottom: 8px; }
.cat__body > p { color: var(--text-2); margin-top: 16px; max-width: 38rem; }
.items { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.items li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.items__price { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 28px; }

/* ---------- Karty cech i kontaktu ---------- */
.panel--dark .panel--dark .proof { margin-top: 32px; color: var(--on-dark); max-width: 44rem; }

/* ---------- Oferty pracy ---------- */
.jobs { list-style: none; display: grid; gap: 12px; }
.job { display: grid; gap: 12px; background: var(--soft); border-radius: var(--r-card); padding: 28px 24px; }
.job__title { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 22px + 0.8vw, 32px); line-height: 1.12; }
.job__title a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.job p { color: var(--text-2); max-width: 40rem; }
.job .btn { justify-self: start; margin-top: 4px; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; color: var(--muted); }
.meta li { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { width: 16px; height: 16px; color: var(--caramel); }
.banner .meta { color: var(--on-dark-2); margin-top: 20px; }
.banner .meta .icon { color: var(--gold); }
.blocks { display: grid; gap: 12px; }
.block { background: var(--soft); border-radius: var(--r-card); padding: 28px 24px; }
.block h2 { font-size: 26px; line-height: 1.1; margin-bottom: 16px; }
.bullets { list-style: none; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 20px; color: var(--text-2); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--caramel); }
.empty-note { background: var(--soft); border-radius: var(--r-card); padding: 24px; color: var(--text-2); max-width: 44rem; }

/* Kontakt: dojazd (tekst i mała mapa obok) */
.directions { display: grid; gap: 24px; }
.directions__addr { margin-top: 12px; font-size: 17px; color: var(--text); }
.directions__hours { margin-top: 4px; font-size: 15px; color: var(--muted); }
.directions .actions { margin-top: 20px; }
.directions__map { width: 100%; max-width: 480px; }
.directions__map .map__canvas { aspect-ratio: 4 / 3; }
.directions__map .map__hint { font-size: 13px; }

/* Kariera: miejsca pracy */
.workplaces { display: grid; gap: 32px; }
.workplaces__group h3 { margin-bottom: 8px; }
.workplaces__list { list-style: none; border-top: 1px solid var(--line); }
.workplaces__list li { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.workplaces__name { font-weight: 600; color: var(--text); }
.workplaces__addr { font-size: 15px; color: var(--text-2); }

/* ---------- Formularze ---------- */
.form-section { display: grid; gap: 40px; }
.form-section__intro > p { color: var(--text-2); margin-top: 16px; max-width: 30rem; }
.link-list { list-style: none; display: grid; margin-top: 20px; }
.link-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.link-list .icon { width: 18px; height: 18px; color: var(--caramel); }
.form { position: relative; display: grid; gap: 24px; min-width: 0; background: var(--soft); border-radius: var(--r-card); padding: 24px 20px; }
.form__grid { display: grid; gap: 20px; }
.form__legend, .form__info { font-size: 15px; color: var(--muted); }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .fieldset legend { font-weight: 500; font-size: 16px; color: var(--text); }
.req { color: var(--err); font-weight: 600; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: inherit; font-size: 16px; color: var(--text);
  background: #FFFFFF; border: 1px solid var(--field); border-radius: var(--r-field);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231E1611' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px;
}
.field textarea { min-height: 144px; resize: vertical; line-height: 1.55; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgb(181 101 29 / 0.28); }
.field [aria-invalid="true"] { border-color: var(--err) !important; }
.field input[type="file"] { font: inherit; font-size: 15px; padding: 8px; border: 1px dashed var(--field); border-radius: var(--r-field); background: #FFFFFF; width: 100%; min-height: 56px; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--espresso); color: var(--on-dark); cursor: pointer; }
.field__hint { font-size: 15px; color: var(--muted); }
.field__error { display: flex; gap: 6px; align-items: flex-start; font-size: 15px; font-weight: 500; color: var(--err); }
.field__error[hidden] { display: none; }
.field__error .icon { width: 16px; height: 16px; margin-top: 3px; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 12px; }
.check-grid { display: grid; gap: 8px; }
.check-tile { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 16px; border: 1px solid var(--field); border-radius: var(--r-field); background: #FFFFFF; cursor: pointer; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.check-tile:has(input:checked) { border-color: var(--caramel); background: #FBF4EC; }
.check-tile:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.field--check { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.field--check .field__error { grid-column: 1 / -1; }
.field--check label { font-weight: 400; font-size: 15px; color: var(--text-2); padding-top: 2px; }
.field--check .field__link { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; }
input[type="checkbox"]:not(.switch) { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--caramel); flex: none; cursor: pointer; }
.field--check input[type="checkbox"] { margin: 0; }
.form-status { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r-field); border: 1px solid; }
.form-status[hidden] { display: none; }
.form-status p { font-weight: 500; }
.form-status .icon { margin-top: 3px; }
.form-status--ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.form-status--error { background: var(--err-bg); border-color: var(--err); color: var(--err); }
.form [data-submit] { width: 100%; }

/* ---------- Dokumenty prawne ---------- */
.prose { max-width: 46rem; margin-inline: auto; }
.prose > h2 { font-size: clamp(24px, 22px + 0.6vw, 30px); line-height: 1.15; margin: 40px 0 12px; }
.prose > p, .prose > ul { color: var(--text-2); margin-bottom: 16px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose .link-list { padding-left: 0; }
.prose .link-list li { margin-bottom: 0; }
.toc { background: var(--soft); border-radius: var(--r-card); padding: 16px 24px; margin: 0 0 8px; }
.toc ol { padding-left: 20px; display: grid; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-actions { display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; }
.legal-status { font-size: 15px; color: var(--muted); min-height: 24px; }
.updated { margin-top: 48px; font-size: 15px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); margin-bottom: 24px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 40rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table th { background: var(--soft); color: var(--text); font-weight: 600; }
.table td { color: var(--text-2); }
.table tr:last-child td { border-bottom: 0; }
.debug { white-space: pre-wrap; font-size: 13px; background: var(--soft-2); padding: 12px; border-radius: 8px; }

/* ---------- Stopka ---------- */
.site-footer { margin: var(--gap); border-radius: var(--r-panel); background: var(--espresso); color: var(--on-dark-2); padding: 56px var(--pad) 32px; }
.site-footer a, .site-footer .link-button { color: var(--on-dark); text-decoration-color: rgb(244 234 219 / 0.35); }
.site-footer :focus-visible { outline-color: var(--gold); }
.site-footer__inner { max-width: 1180px; margin-inline: auto; }
.site-footer__top { display: grid; gap: 24px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.site-footer__brands { display: flex; align-items: center; gap: 20px; }
.site-footer__brand { display: block; flex: none; }
.site-footer__brand img { width: auto; height: 56px; }
.site-footer__brand--kt img { height: 72px; width: 72px; border-radius: 50%; }
.site-footer__brands .site-footer__brand + .site-footer__brand { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.site-footer__order { display: grid; gap: 12px; }
.site-footer__order-label { font-size: 15px; color: var(--on-dark-3); }
.site-footer__order-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.site-footer a.site-footer__phone { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 26px; font-weight: 600; line-height: 1.1; color: var(--gold); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-footer__phone .icon { width: 22px; height: 22px; }
@media (hover: hover) { .site-footer a.site-footer__phone:hover { color: var(--on-dark); } }
.site-footer__grid { display: grid; gap: 32px; padding-top: 40px; }
.site-footer__title { font-family: var(--serif); font-style: italic; font-size: 20px; font-weight: 500; color: var(--gold); margin-bottom: 8px; }
.site-footer__list { list-style: none; display: grid; }
.site-footer__list a, .site-footer__list .link-button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 6px; line-height: 1.4; text-decoration: none; overflow-wrap: break-word; text-align: left; }
@media (hover: hover) { .site-footer__list a:hover, .site-footer__list .link-button:hover { color: var(--gold); } }
.site-footer__list .icon { width: 16px; height: 16px; color: var(--on-dark-3); }
.site-footer__address { line-height: 1.75; margin-bottom: 8px; }
.site-footer__social { margin-top: 8px; }
.panel--soft .step, .panel--soft .job, .panel--soft .block { background: var(--panel); }
.site-footer__legal { border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 16px; font-size: 14px; color: var(--on-dark-3); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-footer a.credit { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--on-dark-2); text-decoration: none; }
.credit__label { font-size: 13px; }
.credit__logo { width: 84px; height: auto; color: var(--on-dark); }
@media (hover: hover) { .site-footer a.credit:hover { color: var(--on-dark); } }
/* Link do panelu (pracownicy, sklepy, magazyn): ostatni wiersz stopki */
.site-footer a.site-footer__panel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-dark-2); text-decoration: underline; text-decoration-color: rgb(244 234 219 / 0.3); text-underline-offset: 0.2em; }
.site-footer__panel .icon { width: 16px; height: 16px; }
@media (hover: hover) { .site-footer a.site-footer__panel:hover { color: var(--on-dark); text-decoration-color: currentColor; } }
/* Węższe ekrany: dane firmy w pierwszym wierszu, pod nimi Panel (lewo) i Projekt i wykonanie (prawo). */
@media (max-width: 959px) { .site-footer__legal > p { flex-basis: 100%; } }

/* ---------- Zgody cookie ---------- */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 12px 32px rgb(30 22 17 / 0.16);
  padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom));
  max-height: calc(100dvh - 24px); overflow-y: auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { font-size: 14px; line-height: 1.5; margin-bottom: 12px; color: var(--text-2); }
.cookie-banner__text strong { color: var(--text); font-weight: 600; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.cookie-banner__actions .btn { min-height: 44px; padding-inline: 8px; font-size: 15px; }
.cookie-banner__actions .btn--text { font-size: 14px; }
.cookie-dialog {
  width: min(100% - 24px, 38rem); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--r-card); background: var(--panel); color: var(--text);
  border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgb(30 22 17 / 0.16);
}
.cookie-dialog::backdrop { background: rgb(27 19 14 / 0.6); }
.cookie-dialog[open] { animation: dialog-in var(--t) var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cookie-dialog__inner { padding: 24px 20px; }
.cookie-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cookie-dialog__head h2 { font-size: 26px; line-height: 1.1; margin: 4px 0 12px; }
.cookie-dialog p { font-size: 15px; color: var(--text-2); }
.consent-option { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); }
.consent-option h3 { font-size: 16px; margin-bottom: 4px; }
.consent-option label { cursor: pointer; }
.switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; cursor: pointer;
  width: 52px; height: 32px; margin: 4px 0 0; border-radius: 999px; background: var(--field);
  transition: background-color var(--t-fast) var(--ease);
}
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: transform var(--t-fast) var(--ease); }
.switch:checked { background: var(--caramel); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { cursor: not-allowed; opacity: 0.55; }
.cookie-dialog__status { color: var(--muted) !important; min-height: 24px; margin-top: 8px; }
.cookie-dialog__actions { display: grid; gap: 8px; margin-top: 12px; }
.cookie-dialog__delete { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.cookie-dialog__delete h3 { font-size: 16px; margin-bottom: 4px; }
.cookie-dialog__delete .btn { margin-top: 12px; }

/* =================== od 600 px =================== */
@media (min-width: 600px) {
  :root { --gap: 16px; --pad: 40px; --pad-y: 64px; --r-panel: 24px; }
  .actions, .legal-actions { flex-direction: row; flex-wrap: wrap; }
  .btn--call { width: auto; padding: 0 18px; }
  .btn--call__label { display: inline; }
  .btn--call__sr { display: none; }
  .head--split { grid-template-columns: 1fr auto; }
  .hero__content { padding: calc(var(--header-h) + var(--gap) + 32px) var(--pad) 48px; }
  .hero__brand { width: 132px; }
  .hero__lead { font-size: 18px; }
  .banner__content { padding: 136px var(--pad) 48px; }
  .photo-cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
    .carousel__track { grid-auto-columns: calc((100% - 24px) / 3); }
  .duo { grid-template-columns: 1fr 1fr; }
  .form { padding: 40px; }
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
  .check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form [data-submit] { width: auto; justify-self: start; }
  .items--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 0; }
  .items--cols li:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .job { grid-template-columns: 1fr auto; align-items: center; column-gap: 32px; padding: 32px; }
  .job .btn { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .workplaces { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .blocks { grid-template-columns: repeat(3, 1fr); }
  .site-footer { padding: 72px var(--pad) 32px; }
  .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .cookie-banner { left: auto; right: 24px; bottom: 24px; max-width: 30rem; }
  .cookie-dialog__inner { padding: 32px; }
  .cookie-dialog__actions { grid-template-columns: repeat(3, auto); justify-content: start; }
  .map__canvas { aspect-ratio: 4 / 3; }
  .place-card { grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; padding: 24px 28px; }
  .place-card__route { grid-column: 2; grid-row: 1; align-self: start; }
  .place-card__info { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
}

/* =================== od 960 px =================== */
@media (min-width: 960px) {
  :root { --gap: 20px; --pad: 64px; --pad-y: 88px; --r-panel: 28px; --header-h: 72px; }
  .site-header__bar { padding: 10px 10px 10px 24px; }
  .site-header__logo img { height: 44px; }
  .hero { min-height: min(calc(100svh - var(--gap) * 2), 900px); align-items: center; }
  .hero__content { padding: calc(var(--header-h) + var(--gap) + 32px) var(--pad) 40px; }
  .hero__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) minmax(0, 1fr); grid-template-areas: "ww center kt"; gap: 32px; }
  .hero__brand { width: clamp(130px, min(13vw, 26vh), 220px); }
  .hero__kicker { font-size: 20px; }
  .hero .actions { margin-top: 28px; }
  .hero__brand--ww, .hero__brand--kt { justify-self: center; }
  .banner { min-height: 380px; }
  .banner__content { padding: 144px var(--pad) 56px; }
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
  .bread { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 56px; align-items: end; }
  .photo-cards { gap: 16px; }
  .patisserie { grid-template-columns: 1fr minmax(0, 360px) 1fr; gap: 40px; align-items: center; }
  .patisserie .arch { grid-column: 2; grid-row: 1; }
  .patisserie .treats--left { grid-column: 1; grid-row: 1; }
  .patisserie .treats--right { grid-column: 3; grid-row: 1; }
  .treats { gap: 24px; }
  .treats--left .treat { grid-template-columns: 1fr 96px; text-align: right; }
  .treats--left .treat img { order: 2; }
  .treat { grid-template-columns: 96px 1fr; }
  .treat img { width: 96px; height: 96px; }
  .locations { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
  .locations .map { position: sticky; top: calc(var(--header-h) + 48px); }
  .map__canvas { aspect-ratio: 1 / 1; }
  .points-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .directions { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: center; }
  .directions__map { justify-self: end; }
  .points-layout__map { position: sticky; top: calc(var(--header-h) + 48px); }
  .carousel__track { grid-auto-columns: calc((100% - 36px) / 4); gap: 12px; }
  .duo__card { min-height: 400px; padding: 56px; }
  .cat { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 72px; align-items: start; }
  .cat--alt .cat__media { order: 2; }
  .cat__media { position: sticky; top: calc(var(--header-h) + 48px); }
  .form-section { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
  .form-section__intro { position: sticky; top: calc(var(--header-h) + 48px); }
    .site-footer__top { grid-template-columns: auto 1fr; align-items: center; gap: 48px; }
  .site-footer__order { justify-items: end; text-align: right; }
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; }
}

/* =================== menu poziome od 1120 px =================== */
@media (min-width: 1120px) {
  .menu-toggle { display: none; }
  .site-nav { position: static; display: flex !important; align-items: center; gap: 20px; background: none; box-shadow: none; padding: 0; max-height: none; overflow: visible; animation: none !important; }
  .site-nav__list { display: flex; gap: 4px; }
  .site-nav__list li + li { border: 0; }
  .site-nav__link { min-height: 44px; padding: 0 12px; font-family: var(--sans); font-size: 15px; font-weight: 500; border-radius: 10px; position: relative; }
  .site-nav__link[aria-current="page"] { color: var(--caramel); background: var(--soft); }
  @media (hover: hover) { .site-nav__link:hover { background: var(--soft); color: var(--text); } }
  .site-nav__extra { border: 0; margin: 0; padding: 0; }
  .site-nav__phone { display: none; }
  body.menu-open { overflow: auto; }
}

@media (min-width: 1480px) {
  main, .site-footer { max-width: 1440px; margin-inline: auto; }
  .site-header__bar { max-width: calc(1440px - 4 * var(--gap)); }
  .site-footer { margin-block: var(--gap); }
}

/* ---------- Ograniczenie ruchu ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .btn:active { transform: none; }
}

/* ---------- Druk ---------- */
@media print {
  .site-header, .cookie-banner, .cookie-dialog, .map, .skip-link, .social-links, .carousel__nav { display: none !important; }
  body, .panel, .panel--dark, .hero, .banner, .site-footer { background: #FFFFFF !important; color: #000000 !important; }
  .hero__bg, .banner__bg { display: none; }
}

/* ---------- Zgodność podstron z wersji 2 (do przepisania na panele v3) ---------- */
.container { width: 100%; max-width: 1180px; margin-inline: auto; }
.page-head, .section { background: var(--panel); border-radius: var(--r-panel); padding: var(--pad-y) var(--pad); min-width: 0; position: relative; }
.page-head { padding-top: 40px; }
.section--dark { background: var(--espresso); color: var(--on-dark-2); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--dark a:not(.btn) { color: var(--on-dark); text-decoration-color: rgb(244 234 219 / 0.4); }
.section--dark .lead { color: var(--on-dark-2); }
.page-head__title { font-size: clamp(34px, 26px + 2vw, 56px); line-height: 1.06; margin-bottom: 20px; }
.page-head .breadcrumbs ol, .page-head .breadcrumbs a { color: var(--muted); }
.page-head .breadcrumbs [aria-current] { color: var(--text); }
.page-head__grid { display: grid; gap: 40px; align-items: center; }
.page-head__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-img); background: var(--soft-2); }
.page-head .jump a { color: var(--text); border-color: var(--line-2); }
.kicker { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--caramel); margin-bottom: 12px; }
.defs { display: grid; gap: 12px; }
.defs__item { background: var(--soft); border-radius: var(--r-card); padding: 24px; }
.defs__item h3, .defs__item dt { margin-bottom: 8px; font-weight: 600; font-size: 18px; color: var(--text); }
.defs__item p, .defs__item dd { color: var(--text-2); }
.defs__item dd:not(.defs__muted) > a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.defs__muted { color: var(--muted) !important; font-size: 15px; }
.contact-line a { font-size: 20px; }
.steps__item { counter-increment: step; background: var(--soft); border-radius: var(--r-card); padding: 28px 24px; }
.steps__item::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--caramel); margin-bottom: 12px; }
.steps__item h3 { margin-bottom: 8px; }
.steps__item p { color: var(--text-2); }
.section--dark .steps__item { background: var(--espresso-2); }
.section--dark .steps__item::before { color: var(--gold); }
.section--dark .steps__item p { color: var(--on-dark-2); }
@media (min-width: 600px) { .defs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .page-head__grid--media { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
  .defs--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Kreatywna Tortownia ---------- */
:root { --kt-purple: #301365; --kt-purple-2: #3D1D7A; --kt-pink: #FEB9BD; }
.panel--kt { background: var(--kt-purple); color: #E9DEF5; }
.panel--kt h2, .panel--kt h3 { color: #FFF6F2; }
.panel--kt .eyebrow { color: var(--kt-pink); }
.panel--kt .lead, .panel--kt p { color: #E2D6F0; }
.panel--kt a:not(.btn) { color: #FFF6F2; text-decoration-color: rgb(254 185 189 / 0.6); }
.panel--kt :focus-visible { outline-color: var(--kt-pink); }
.btn--pink { background: var(--kt-pink); color: var(--kt-purple); }
@media (hover: hover) { .btn--pink:hover { background: #FFD3D5; color: var(--kt-purple); } .panel--kt .btn--ghost:hover { background: rgb(255 255 255 / 0.08); } }
.kt { display: grid; gap: 40px; }
.kt__logo { width: 120px; margin-bottom: 24px; }
.kt__logo img { width: 100%; height: auto; border-radius: 50%; box-shadow: 0 0 0 1px rgb(254 185 189 / 0.35); }
.kt__text > p { margin-top: 16px; max-width: 34rem; }
.kt__mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.kt__mosaic figure:first-child { grid-row: span 2; }
.kt__mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-img); background: var(--kt-purple-2); }
.kt__mosaic figure:first-child img { aspect-ratio: 3 / 4; }
.kt__mosaic figure:not(:first-child) img { aspect-ratio: 1 / 1; }
.kt-gallery { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kt-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-img); background: var(--soft-2); }
.kt-facts { display: grid; gap: 12px; margin-top: 24px; }
.kt-facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.kt-facts dt { font-size: 14px; color: var(--muted); }
.kt-facts dd a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
@media (min-width: 600px) {
  .kt-gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .kt-facts { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .kt { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
  .kt__logo { width: 140px; }
}
@media (min-width: 1120px) { .site-nav__extra .social-links { display: none; } }

/* Podgląd tła hero (rozmyta miniatura), zanim wczyta się zdjęcie: szybsze pierwsze malowanie */
.hero__bg { background: #2a1d15 url("data:image/webp;base64,UklGRqAAAABXRUJQVlA4IJQAAABwBQCdASoUABkAPu1qq0+ppiOiMBgIATAdiWMAsR9MQVZ72Hyfxy4x0MWzfb42aOz1wCgQAPm0khYui+PTjKo89iz7QFwhBTGEVDNS+WHkXp9qA31YpiZqcp30s0wCT+HV/Ffy0KXBKMuG1qtL2CQEhl9VVZ31R0I2Vo+hhEpyl3CEXdHySHGVS6e8NZH0ozKvYQAA") center / cover no-repeat; }
@media (min-width: 960px) { .hero__bg { background-image: url("data:image/webp;base64,UklGRqgAAABXRUJQVlA4IJwAAABwBACdASogABMAPu1uq1GppiOiqAqpMB2JYwC06DMHf/5cnuiGQrWEYs8R4AD+Ai3LYEIOU80vIMnVL5rdp0VUZn4WkQgv4+13muYnFLUFNDBWnUe5bjbXGBHj1JSydvyXzpoUQ//wYbnqD76DAJ/rLyTIDm+kMtGRiVE1EltuAqMbRfe0nG7QtllUb3ZeTQ/02pkK9sXDLYwYgAA="); } }

/* Formularz w panelu Tortowni: kolory jak na jasnym tle */
.panel--kt .form { color: var(--text); }
.panel--kt .form p, .panel--kt .form label { color: var(--text-2); }
.panel--kt .form .field label, .panel--kt .form .fieldset legend { color: var(--text); }
.panel--kt .form .form__legend, .panel--kt .form .form__info, .panel--kt .form .field__hint { color: var(--muted); }
.panel--kt .form a:not(.btn) { color: var(--text); text-decoration-color: rgb(30 22 17 / 0.35); }
.panel--kt .form .field__error { color: var(--err); }
.panel--kt .form .form-status p { color: inherit; }
.panel--kt .form :focus-visible { outline-color: var(--focus); }
.duo__card--soft .eyebrow { color: var(--caramel-hover); }
/* Na wąskich ekranach mapa pokazuje same nazwy miejscowości (podpisy wyjaśnia legenda pod mapą). */
@media (max-width: 599px) { .m-sub, .m-north, .m-scale { display: none; } }

/* Niskie telefony: przyciski muszą zmieścić się na pierwszym ekranie */
@media (max-width: 599px) and (max-height: 760px) {
  .hero__brand { width: 72px; }
  .hero__kicker { display: none; }
  .hero__layout { gap: 16px 12px; }
}
@media (max-width: 599px) and (max-height: 600px) {
  .hero__lead { display: none; }
}
/* Niskie ekrany komputerów */
@media (min-width: 960px) and (max-height: 720px) {
  .hero__lead { font-size: 17px; margin-top: 12px; }
  .hero .actions { margin-top: 20px; }
}

/* ---------- Zdjęcia: rama i podświetlenie po najechaniu ---------- */
/* Rama: cienka linia na krawędzi i jasna linia wewnątrz, jak passe-partout. :where() nie nadpisuje istniejących pozycji (np. sticky). */
:where(.about__media figure, .arch__img, .carousel__track li, .kt__mosaic figure, .kt-gallery li, .photo-grid li, .cat__media, .page-head__media, .photo-card) { position: relative; overflow: hidden; border-radius: var(--r-img); }
:is(.about__media figure, .carousel__track li, .kt__mosaic figure, .kt-gallery li, .photo-grid li, .cat__media, .page-head__media, .photo-card)::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(30 22 17 / 0.16);
  outline: 1px solid rgb(255 250 242 / 0.5); outline-offset: -10px;
  transition: outline-color var(--t) var(--ease), outline-offset var(--t) var(--ease);
}
.arch__img::before { content: ""; position: absolute; inset: 0 0 -1px; z-index: 2; pointer-events: none; outline: 1px solid rgb(255 250 242 / 0.5); outline-offset: -10px; border-radius: var(--r-img) var(--r-img) 0 0; transition: outline-color var(--t) var(--ease), outline-offset var(--t) var(--ease); }
.panel--dark .photo-card::before, .panel--kt .kt__mosaic figure::before { box-shadow: inset 0 0 0 1px rgb(244 234 219 / 0.14); }
:is(.about__media, .arch__img, .carousel__track, .kt__mosaic, .kt-gallery, .photo-grid, .cat__media, .page-head__media, .photo-card) img { transition: transform 600ms var(--ease), filter var(--t) var(--ease); }
.treat img { transition: box-shadow var(--t) var(--ease), filter var(--t) var(--ease); }
@media (hover: hover) {
  :is(.about__media figure, .arch__img, .carousel__track li, .kt__mosaic figure, .kt-gallery li, .photo-grid li, .cat__media, .page-head__media, .photo-card):hover::before { outline-color: rgb(255 250 242 / 0.95); outline-offset: -14px; }
  :is(.about__media figure, .arch__img, .carousel__track li, .kt__mosaic figure, .kt-gallery li, .photo-grid li, .cat__media, .page-head__media, .photo-card):hover img { filter: brightness(1.07) saturate(1.06); }
  .treat:hover img { box-shadow: 0 0 0 4px var(--panel), 0 0 0 5px var(--caramel); filter: brightness(1.06); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.about__media figure, .arch__img, .carousel__track li, .kt__mosaic figure, .kt-gallery li, .photo-grid li, .cat__media, .page-head__media, .photo-card):hover img { transform: scale(1.035); }
}

/* Hero z własnym zdjęciem z panelu: bez rozmytej miniatury domyślnego zdjęcia */
.hero__bg--custom { background-image: none !important; background-color: var(--espresso); }
.duo__card p { position: relative; }

/* ---------- Galeria: siatka i podgląd ---------- */
.link-row { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.photo-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photo-grid__link { display: block; border-radius: inherit; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--soft-2); }
.photo-grid__link:focus-visible { outline-offset: -4px; }
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 16px; border: 0; background: transparent; color: var(--on-dark); }
.lightbox::backdrop { background: rgb(17 12 9 / 0.92); }
.lightbox[open] { display: grid; place-items: center; }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox__figure { display: grid; justify-items: center; gap: 12px; max-width: min(100%, 1100px); }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: var(--r-img); }
.lightbox__caption { font-size: 15px; text-align: center; color: var(--on-dark-2); }
.lightbox__count { margin-left: 8px; color: var(--on-dark-3); font-variant-numeric: tabular-nums; }
.lightbox__btn { position: fixed; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgb(244 234 219 / 0.35); background: rgb(27 19 14 / 0.6); color: var(--on-dark); cursor: pointer; }
.lightbox__btn--close { top: 16px; right: 16px; }
.lightbox__btn--prev, .lightbox__btn--next { bottom: 16px; }
.lightbox__btn--prev { left: calc(50% - 56px); }
.lightbox__btn--prev .icon { transform: scaleX(-1); }
.lightbox__btn--next { right: calc(50% - 56px); }
.lightbox :focus-visible { outline-color: var(--gold); }
@media (hover: hover) { .lightbox__btn:hover { background: var(--espresso-3); border-color: rgb(244 234 219 / 0.7); } }
@media (min-width: 600px) { .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 960px) {
  .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lightbox__btn--prev, .lightbox__btn--next { top: 50%; bottom: auto; transform: translateY(-50%); }
  .lightbox__btn--prev { left: 24px; }
  .lightbox__btn--next { right: 24px; }
}
