/* dobrymiesny.pl - style serwisu.
   Promienie: przyciski i pigułki = pełne (999px), karty = 14px, pola formularzy = 8px.
   Odstępy: karty 18px wewnątrz, siatki 16px, sekcje 48px. */
:root {
  --bg: #f4f5f7; --surface: #fdfdfd; --surface-2: #eceef1; --text: #1b1f24; --muted: #5a626e;
  --border: #e0e3e8; --accent: #c8202a; --accent-hover: #a6161f; --accent-soft: #fcebec; --on-accent: #fdfdfd;
  --cut: #f3d3d1; --cut-line: #fdfdfd; --cut-hover: #c8202a; --kontur: #8f6764; --tlo-noga: #e9cdca; --label: #4a2422;
  --f-chudy: #e8958f; --f-umiarkowany: #f3c3bd; --f-tlusty: #f7e8d8;
  --cien: 0 1px 2px rgba(27, 31, 36, .04), 0 8px 24px rgba(27, 31, 36, .06);
  --r: 14px; --r-pole: 8px; --pad: 18px; --gap: 16px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15171b; --surface: #1d2025; --surface-2: #262a30; --text: #e9ebef; --muted: #a2a9b4;
    --border: #31363f; --accent: #f0625c; --accent-hover: #ff8580; --accent-soft: #3a2223; --on-accent: #15171b;
    --cut: #563c3b; --cut-line: #1d2025; --cut-hover: #f0625c; --kontur: #a8847f; --tlo-noga: #3e302f; --label: #f4e4e2;
    --f-chudy: #9c4540; --f-umiarkowany: #7b4f4a; --f-tlusty: #6f6352;
    --cien: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  --bg: #15171b; --surface: #1d2025; --surface-2: #262a30; --text: #e9ebef; --muted: #a2a9b4;
  --border: #31363f; --accent: #f0625c; --accent-hover: #ff8580; --accent-soft: #3a2223; --on-accent: #15171b;
  --cut: #563c3b; --cut-line: #1d2025; --cut-hover: #f0625c; --kontur: #a8847f; --tlo-noga: #3e302f; --label: #f4e4e2;
  --f-chudy: #9c4540; --f-umiarkowany: #7b4f4a; --f-tlusty: #6f6352;
  --cien: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
/* Elementy siatek układu nie mogą być szersze niż kolumna: szerokie tabele przewijają się w .tabela-box,
   zamiast rozpychać stronę na telefonie (kolumna 1fr bez tego rośnie do szerokości tabeli) */
.el-layout > *, .el-hero > *, .prz-uklad > *, .prz-hero > *, .kontakt > *, .schemat-wrap > *, .hero > *,
.narzedzia > *, .pary > *, .pas > *, .bloki > *, .lead > *, .duo > *, .danie > *, .ciemny-pas .wrap > *, .aside > * { min-width: 0; }
/* Długie przyciski w kolumnie bocznej (np. „Wszystkie elementy: wieprzowina”) zawijają się na wąskim ekranie */
.aside .btn { white-space: normal; text-align: center; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 15.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 800; }
h1, h2 { font-family: var(--font-display); }
h2 { font-size: clamp(22px, 2.4vw, 28px); }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 10px; }
button, input, select { font-family: inherit; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; z-index: 30; background: var(--surface); padding: 6px 10px; border-radius: var(--r-pole); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sekcja { padding: 48px 0 0; }
.sekcja-h { margin-bottom: 20px; max-width: 65ch; }
.sekcja-h p { color: var(--muted); margin: 8px 0 0; }
.karta-box, .tool, .duo-karta, .danie-kol, .para, .box, .toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); }

/* Pasek usług */
.util { background: #1b1d21; color: #c9ced6; font-size: 13px; font-weight: 600; }
.util-in { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.util nav { display: flex; gap: 20px; }
.util a { color: #c9ced6; text-decoration: none; } .util a:hover { color: #fdfdfd; }

/* Nagłówek */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.top-in { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 72px; display: flex; align-items: center; gap: 28px; }
.top .menu { flex: 1; }
.logo { display: inline-flex; align-items: center; flex: none; }

/* Mega menu */
.mm { display: flex; align-items: center; }
.mm > a { display: inline-flex; align-items: center; gap: 6px; }
.mm-strz { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; }
.mm-panel { position: absolute; left: 20px; right: 20px; top: calc(100% - 6px); padding-top: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 25; }
.mm:hover .mm-panel, .mm:focus-within .mm-panel { opacity: 1; visibility: visible; transform: none; }
.mm-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: 0 20px 50px rgba(27, 31, 36, .14); padding: 22px 24px; }
.mm-h { font: 800 13px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.mm-lista { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 24px; }
.mm-lista li { break-inside: avoid; }
.mm-lista a { display: block; padding: 5px 0; color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.mm-lista a:hover { color: var(--accent); }
.mm-cta { display: grid; align-content: end; gap: 2px; padding: 18px; border-radius: var(--r); background: var(--accent-soft); text-decoration: none; color: var(--text); position: relative; overflow: hidden; min-height: 170px; white-space: normal; }
.mm-cta:hover { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--text); }
.mm-cta svg { position: absolute; top: 12px; right: -30px; width: 85%; fill: color-mix(in srgb, var(--accent) 18%, transparent); }
.mm-cta b { font: 800 18px var(--font-display); position: relative; }
.mm-cta span { font-size: 13.5px; color: var(--accent); font-weight: 700; position: relative; }

/* Wyszukiwarka w nagłówku */
.szukajka { position: relative; }
/* Ukrycie wizualne z zachowaniem dla czytników ekranu */
.szukajka label, .sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.szukajka form { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 999px; padding: 4px 4px 4px 16px; transition: border-color .15s, background .15s; }
.szukajka form:focus-within { border-color: var(--accent); background: var(--surface); }
.szukajka input { flex: 1; border: 0; background: transparent; font: 600 14.5px var(--font); color: var(--text); padding: 6px 0; min-width: 0; outline: none; }
.szukajka input::placeholder { color: var(--muted); font-weight: 500; }
.szukajka button { flex: none; width: 34px; height: 34px; border-radius: 999px; border: 0; background: var(--accent); cursor: pointer; display: grid; place-items: center; }
.szukajka button svg { width: 17px; height: 17px; fill: none; stroke: var(--on-accent); stroke-width: 2.4; stroke-linecap: round; }
.szukajka-top { width: 270px; flex: none; }
.podpowiedzi { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 26; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--cien); list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow-y: auto; min-width: 260px; }
.podpowiedzi a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: var(--r-pole); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14.5px; }
.podpowiedzi a span { color: var(--muted); font-weight: 500; font-size: 13px; }
.podpowiedzi a:hover, .podpowiedzi a.on { background: var(--accent-soft); }

/* Nagłówek modułu portalowego */
.modul-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 3px solid var(--text); padding-top: 12px; margin-bottom: 20px; }
.modul-h h2 { font-size: clamp(21px, 2.2vw, 26px); }
.modul-h h3 { font: 800 19px var(--font-display); letter-spacing: -.02em; }
.modul-h a { font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
@media (max-width: 680px) { .modul-h { flex-wrap: wrap; row-gap: 4px; } }
.logo-svg { height: 50px; width: auto; display: block; overflow: visible; }
.menu { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
/* Tylko pozycje menu, nie linki w panelu mega menu */
.menu > a, .mm > a { padding: 7px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.menu > a:hover, .mm > a:hover, .mm:hover > a, .mm:focus-within > a { background: var(--surface-2); color: var(--text); }
.menu > a[aria-current="page"], .mm > a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; border: 1px solid var(--accent); white-space: nowrap; transition: background .2s, transform .15s; cursor: pointer; font-size: 15px; line-height: 1.2; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: end; padding: 44px 0 28px; }
.hero h1 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -.03em; max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 17.5px; color: var(--muted); max-width: 48ch; margin: 16px 0 24px; font-weight: 500; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-liczby { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.hero-liczby div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; }
.hero-liczby dt { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1.1; }
.hero-liczby dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }

/* Dwa schematy obok siebie */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.duo-karta { padding: var(--pad); display: flex; flex-direction: column; box-shadow: var(--cien); }
.duo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.duo-head h2 { font-size: 20px; }
.duo-head a { font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.duo .schemat { margin: auto 0; }
.duo .etykiety text[font-size="11"], .duo .etykiety text[font-size="12"], .duo .etykiety text[font-size="13"] { display: none; }
.podpis { font-size: 14px; color: var(--muted); margin: 6px 0 0; min-height: 22px; }
.podpis b { color: var(--text); }

/* Zakładki i pigułki */
.pigulki { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--gap); }
.pigulki [role="tab"] { border: 1px solid var(--border); background: var(--surface); color: var(--text); padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.pigulki [role="tab"]:hover { border-color: var(--accent); }
.pigulki [role="tab"][aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
[role="tabpanel"][hidden] { display: none; }

/* Dobór mięsa do dania */
.danie { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.danie-opis { grid-column: 1 / -1; color: var(--muted); margin: 0; max-width: 75ch; }
.danie-kol { padding: var(--pad); }
.danie-kol h3, .danie-kol .kol-h { font-weight: 800; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.danie-kol ol { margin: 0; padding: 0; list-style: none; counter-reset: d; }
.danie-kol li { counter-increment: d; display: grid; grid-template-columns: 30px 1fr; align-items: center; column-gap: 8px; padding: 9px 0; }
.danie-kol li + li { border-top: 1px solid var(--border); }
.danie-kol li::before { content: counter(d); grid-row: span 2; width: 24px; height: 24px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.danie-kol li a { font-weight: 700; text-decoration: none; }
.danie-kol li span { font-size: 13.5px; color: var(--muted); grid-column: 2; }

/* Narzędzia */
.narzedzia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.tool { padding: var(--pad) calc(var(--pad) + 2px); display: flex; flex-direction: column; }
.tool h3 { font-size: 19px; margin-bottom: 4px; }
.tool > p { color: var(--muted); font-size: 14px; }
.tool .wynik { margin-top: auto; }
.tool-szeroki { grid-column: 1 / -1; }
.tool-akcent { background: linear-gradient(170deg, var(--accent-soft), var(--surface) 65%); }
.pola { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px 0 14px; }
.pole { display: grid; gap: 6px; align-content: start; margin-bottom: 14px; }
.pola .pole { margin-bottom: 0; }
.pole label, .pole-l { font-size: 13px; font-weight: 700; color: var(--text); }
.pole input, .pole select { font-size: 15px; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--r-pole); background: var(--surface); color: var(--text); min-width: 0; width: 100%; }
.pole small { font-size: 12px; color: var(--muted); }
.segment { display: flex; flex-wrap: wrap; gap: 6px; }
.segment label { cursor: pointer; position: relative; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span { display: inline-block; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; background: var(--surface); transition: background .15s, border-color .15s; }
.segment label:hover span { border-color: var(--accent); }
.segment input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.segment input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.wynik { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-pole); background: var(--surface-2); }
.wynik b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.wynik span { color: var(--muted); font-size: 14px; }
.zalozenia { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
details.zalozenia summary { cursor: pointer; font-weight: 700; color: var(--text); }

/* Tabele */
.tabela-box { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-pole); background: var(--surface); }
.tabela-box.przewijana { max-height: 400px; overflow-y: auto; }
.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th, .tabela td { text-align: left; padding: 10px 14px; vertical-align: top; }
.tabela thead th { position: sticky; top: 0; background: var(--surface-2); font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tabela tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.tabela tbody th { font-weight: 700; }
.tabela a { text-decoration: none; }
.szukaj { width: 100%; max-width: 380px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-pole); background: var(--surface); color: var(--text); font-size: 15px; margin: 6px 0 12px; }
.brak { color: var(--muted); font-size: 14px; padding: 12px 14px; margin: 0; }

/* Porównania */
.pary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.para { overflow: hidden; display: flex; flex-direction: column; }
.para-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 14px var(--pad); background: var(--surface-2); }
.para-top b { font-size: 16px; font-weight: 800; } .para-top b:last-child { text-align: right; }
.para-top a { color: var(--text); text-decoration: none; } .para-top a:hover { color: var(--accent); }
.para-top i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); padding: 2px 10px; border-radius: 999px; }
.para-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 14px var(--pad) var(--pad); font-size: 14px; flex: 1; }
.para-body p { margin: 0; color: var(--muted); } .para-body p:nth-child(2) { text-align: right; }
.para-wniosek { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text) !important; font-weight: 700; text-align: left !important; }

/* Wpisy: równa siatka 3 x N */
.wpisy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px var(--gap); }
.wpis { display: grid; gap: 8px; align-content: start; text-decoration: none; color: var(--text); }
.wpis:hover h3 { color: var(--accent); }
.wpis h3 { font-size: 16.5px; transition: color .15s; }
.wpis small { color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

/* Zdjęcia */
.zdj img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r); }

/* Miejsca na zdjęcia */
.foto { margin: 0; border-radius: var(--r); overflow: hidden; }
.foto-slot { height: 100%; display: grid; place-content: center; text-align: center; gap: 4px; padding: 16px; border-radius: var(--r);
  background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--accent-soft) 70%, var(--surface-2))); border: 1px dashed color-mix(in srgb, var(--accent) 25%, var(--border)); }
.foto-slot span { font-size: 11px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.foto-slot small { font-size: 13px; color: var(--muted); max-width: 32ch; line-height: 1.45; }

/* Pas sklepów */
.pas { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--accent-soft); border-radius: var(--r); padding: 32px; }
.pas p { max-width: 52ch; }
.pas ul { margin: 4px 0 20px; padding-left: 20px; }
.pas li { margin: 2px 0; }

/* Strona elementu */
.el-head { padding: 10px 0 18px; max-width: 75ch; }
.el-head h1 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.03em; margin: 8px 0 12px; }
.el-lead { font-size: 17px; color: var(--muted); }
.meta { font-size: 13px; color: var(--muted); margin: 0; }
.el-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; padding-bottom: 40px; }
.el-main > section { padding: 28px 0; scroll-margin-top: 84px; }
.el-main > section + section { border-top: 1px solid var(--border); }
.el-main h2 { margin-bottom: 14px; }
.el-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
.el-hero .schemat-box { display: flex; flex-direction: column; justify-content: center; padding: var(--pad); }
/* Zdjęcie rozciągnięte do wysokości schematu nie może poszerzać kolumny (aspect-ratio liczyłby szerokość z wysokości) */
.el-hero .foto { width: 100%; min-width: 0; }
.fakty { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: var(--gap) 0 0; }
.fakty div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 16px; }
.fakty dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.fakty dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; }
.aside { position: sticky; top: 88px; display: grid; gap: var(--gap); padding-top: 28px; }
.toc { padding: 16px var(--pad); }
.toc p { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 18px; font-size: 14px; display: grid; gap: 5px; }
.toc a { color: var(--text); text-decoration: none; } .toc a:hover { color: var(--accent); }
.box { padding: 16px var(--pad); font-size: 14px; }
.box h3 { font-size: 15px; margin-bottom: 8px; }
.box ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.lista-ok { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lista-ok li { padding-left: 30px; position: relative; }
.lista-ok li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.przepisy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px var(--gap); }
.przepis { display: grid; gap: 6px; align-content: start; }
.przepis h3 { font-size: 16px; }
.przepis p { font-size: 14px; color: var(--muted); margin: 0; }
.przepis-gotowy { text-decoration: none; color: var(--text); }
.przepis-gotowy h3 { transition: color .15s; } .przepis-gotowy:hover h3 { color: var(--accent); }
.przepis small { font-size: 11.5px; color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
/* Mini galeria */
.galeria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gal-el { margin: 0; display: grid; gap: 6px; }
.gal-el img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); cursor: zoom-in; transition: opacity .15s; }
.gal-el a:hover img { opacity: .9; }
.gal-el .foto-slot small { display: none; }
.gal-el figcaption { font-size: 13px; color: var(--muted); line-height: 1.4; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgba(15, 16, 18, .86); }
.lightbox img { max-height: 84vh; width: auto; border-radius: var(--r); margin: 0 auto; }
.lightbox p { color: #e9ebef; text-align: center; font-size: 14px; margin: 10px 0 0; }
.lightbox button { position: fixed; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 999px; border: 0; background: #fdfdfd; color: #1b1f24; font: 800 20px var(--font); cursor: pointer; }
.lightbox .lb-nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 30px; line-height: 1; background: rgba(253, 253, 253, .9); }
.lightbox .lb-wstecz { left: 16px; right: auto; }
.lightbox .lb-dalej { right: 16px; }
.lightbox img { cursor: pointer; }
/* Zdjęcia w treści, które można powiększyć */
.zdj img.powieksz { cursor: zoom-in; transition: opacity .15s; }
.zdj img.powieksz:hover { opacity: .92; }
@media (max-width: 680px) { .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 0 var(--pad); }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 14px; margin: 0; color: var(--muted); }
.zamienniki { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.zamiennik { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--text); transition: border-color .15s; }
.zamiennik:hover { border-color: var(--accent); color: var(--text); }
.zamiennik b { display: block; font-weight: 800; } .zamiennik span { font-size: 13.5px; color: var(--muted); }
.todo { background: #fff3cd; color: #6b5200; padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.draft { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: #fff3cd; color: #6b5200; margin: 10px 0 0; }
.autor { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }

/* Artykuł */
.spons { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #6b5200; background: #fff3cd; padding: 4px 12px; border-radius: 999px; margin: 0 0 8px; }
/* Pełna szerokość, niższy kadr (aspect-ratio z max-height zwężałby zdjęcie) */
.art-zdj .foto { aspect-ratio: auto !important; width: 100%; height: clamp(220px, 34vw, 440px); }

/* Kontakt */
.kontakt { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; padding-bottom: 20px; }
.kontakt-form { padding: 22px 24px; }
.pole textarea { font: 500 15px/1.5 var(--font); padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-pole); background: var(--surface); color: var(--text); width: 100%; resize: vertical; min-height: 150px; }
.pole [aria-invalid="true"] { border-color: var(--accent); }
.pole-blad { color: var(--accent) !important; font-weight: 700; }
.opc { color: var(--muted); font-weight: 500; }
.pulapka { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.komunikat { border-radius: var(--r-pole); padding: 12px 16px; margin: 0 0 16px; font-size: 14.5px; }
.komunikat p { margin: 4px 0 0; }
.komunikat-ok { background: #e7f4ec; color: #1d5c33; padding: 20px 22px; }
.komunikat-blad { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.kontakt-boczna h3 { margin-bottom: 6px; }
.kontakt-boczna p { margin: 0; }
@media (max-width: 960px) { .kontakt { grid-template-columns: 1fr; } }

/* Stopka: mapa serwisu */
.stopka { border-top: 1px solid var(--border); margin-top: 64px; background: var(--surface); }
/* Układ: pasek z logo i opisem na całą szerokość, pod nim 4 kolumny linków (gatunki w 3 podkolumnach) */
.stopka-in { max-width: 1400px; margin: 0 auto; padding: 36px 24px 28px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px 44px; font-size: 13px; }
.stopka-in .logo-svg { height: 40px; }
.stopka-o { grid-column: 1 / -1; display: flex; align-items: center; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.stopka-o .logo { flex: none; }
.stopka-o p { color: var(--muted); max-width: 90ch; margin: 0; font-size: 14px; line-height: 1.55; }
.stopka-h { margin: 0 0 8px; font: 800 14px var(--font-display); letter-spacing: -.01em; }
.stopka-h a { color: var(--text); text-decoration: none; } .stopka-h a:hover { color: var(--accent); }
.stopka-lista { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 18px; }
.stopka-lista.jedna { columns: 1; }
.stopka-lista li { break-inside: avoid; }
.stopka-lista a { display: block; padding: 2.5px 0; color: var(--muted); text-decoration: none; line-height: 1.4; }
.stopka-lista:not(.jedna) a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stopka-lista a:hover { color: var(--accent); }
.stopka-dol { max-width: 1400px; margin: 0 auto; padding: 16px 24px 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 24px; font-size: 12.5px; color: var(--muted); }
.stopka-dol p { margin: 0; max-width: 90ch; }
.stopka-dol nav { display: flex; gap: 16px; } .stopka-dol a { color: var(--muted); }

/* Wejście sekcji (tylko z JS i bez ograniczenia ruchu) */
@media (prefers-reduced-motion: no-preference) {
  .js .wjazd { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1); }
  .js .wjazd.widac { opacity: 1; transform: none; }
}

/* Tablet */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .el-hero, .pas, .narzedzia, .pary { grid-template-columns: 1fr; }
  .el-layout { grid-template-columns: 1fr; gap: 0; }
  .aside { position: static; padding-top: 0; }
  .aside .toc { display: none; }
  .fakty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wpisy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stopka-in { grid-template-columns: 1fr 1fr; }
  .stopka-o { flex-direction: column; align-items: flex-start; gap: 14px; }
  .top-in { gap: 16px; }
  .szukajka-top { width: 200px; }
  .mm-in { grid-template-columns: 1fr; } .mm-cta { display: none; }
}
/* Węższa wyszukiwarka, żeby zmieściło się całe menu (5 pozycji) */
@media (max-width: 1240px) and (min-width: 961px) {
  .top-in { gap: 18px; }
  .szukajka-top { width: 200px; }
}
@media (max-width: 1080px) and (min-width: 681px) {
  .logo-svg { height: 38px; }
}
/* Menu mobilne: przyciski i panel (domyślnie ukryte, włączane niżej dla .js do 960 px) */
.mob-akcje, .mob-panel { display: none; }
@media (max-width: 960px) {
  .js .top-in { height: 64px; padding-top: 0; padding-bottom: 0; flex-wrap: nowrap; gap: 12px; }
  .js .top .menu { display: none; }
  .js .mob-akcje { display: flex; gap: 6px; margin-left: auto; }
  .mob-btn { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; }
  .mob-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
  .mob-btn[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
  .mob-btn-menu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
  .mob-btn-menu span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
  .mob-btn-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mob-btn-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mob-btn-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  /* Wyszukiwarka: rozwijana pod paskiem */
  .js .szukajka-top { display: none; position: absolute; left: 0; right: 0; top: 100%; width: auto; padding: 10px 16px 12px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 12px 24px rgba(27, 31, 36, .08); order: 0; }
  .js .top.szukaj-on .szukajka-top { display: block; }
  /* Panel menu */
  .js .mob-panel:not([hidden]) { display: block; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 64px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px rgba(27, 31, 36, .14); }
  .mob-panel-in { padding: 8px 16px 20px; max-width: 720px; margin: 0 auto; }
  .mob-grupa { border-bottom: 1px solid var(--border); }
  .mob-grupa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 2px; cursor: pointer; font: 800 18px var(--font-display); letter-spacing: -.01em; }
  .mob-grupa summary::-webkit-details-marker { display: none; }
  .mob-grupa summary small { margin-left: auto; font: 600 13px var(--font); color: var(--muted); }
  .mob-grupa summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex: none; }
  .mob-grupa[open] summary::after { transform: rotate(225deg) translateY(-3px); }
  .mob-schemat { display: block; margin: 0 0 8px; padding: 10px 14px; border-radius: var(--r-pole); background: var(--accent-soft); font-weight: 700; font-size: 14px; text-decoration: none; }
  .mob-grupa ul { list-style: none; margin: 0; padding: 0 0 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
  .mob-grupa li a { display: block; padding: 8px 2px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
  .mob-link { display: block; padding: 14px 2px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font: 800 18px var(--font-display); letter-spacing: -.01em; }
  .mob-link[aria-current="page"] { color: var(--accent); }
  .mob-uslugi { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
  .mob-uslugi a { padding: 7px 14px; border-radius: 999px; background: var(--surface-2); color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 600; }
  html.menu-otwarte { overflow: hidden; }
}

/* Telefon */
@media (max-width: 680px) {
  .wrap, .top-in, .stopka-in { padding-left: 16px; padding-right: 16px; }
  .util { display: none; }
  .top-in { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; gap: 8px 12px; }
  .logo-svg { height: 36px; }
  .szukajka-top { order: 3; width: 100%; }
  .top .menu { order: 4; flex-basis: 100%; width: calc(100% + 32px); margin: 0 -16px; padding: 0 12px; }
  .mm-panel, .mm-strz { display: none; }
  .stopka-in { grid-template-columns: 1fr; }
  .stopka-lista { columns: 2; }
  .stopka-dol { flex-direction: column; }
  .duo, .danie, .para-body, .wpisy, .przepisy, .zamienniki, .pola { grid-template-columns: 1fr; }
  .para-body p:nth-child(2) { text-align: left; }
  .hero { padding-top: 28px; }
  .hero-liczby dt { font-size: 24px; }
  .sekcja { padding-top: 36px; }
  .pas { padding: 20px; gap: 20px; }
}
