/* Mięsny Zakątek: podstrony. Tylko to, czego nie ma w style.css; tokeny i komponenty z makiety F. */

/* nagłówek podstrony: kremowy pas jak tło hero */
.phero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(48px, 6vw, 92px) clamp(52px, 6vw, 88px); background:
  radial-gradient(50% 70% at 78% 30%, rgba(201, 163, 91, .12), transparent 72%),
  linear-gradient(180deg, #FCFAF6 0%, #F7F1E8 100%); border-bottom: 1px solid var(--line); }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .47 0 0 0 0 .38 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.phero__art { position: absolute; z-index: -1; width: min(620px, 46vw); height: auto; right: max(-30px, (100vw - var(--wrap)) / 2 - 40px); top: 50%; translate: 0 -50%; opacity: .55; pointer-events: none; }
.phero__in { display: grid; justify-items: start; gap: 18px; }
.phero__in > * { max-width: 720px; }
.phero__h { font-family: var(--f-head); font-weight: 400; font-size: clamp(2.125rem, 1.55rem + 2.2vw, 3.375rem); line-height: 1.1; letter-spacing: -.01em; color: var(--brown-3); text-wrap: balance; }
.phero__h::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 20px; background: var(--gold); transform-origin: left center; }
.phero__lead { max-width: 600px; font-size: var(--fs-lead); line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.phero__extra { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.js:not(.no-motion) .phero__h { animation: fadeUp 1s var(--ease-out) both; animation-delay: .1s; }
.js:not(.no-motion) .phero__h::after { animation: phLine 1.1s var(--ease-out) both; animation-delay: .5s; }
.js:not(.no-motion) .phero__lead, .js:not(.no-motion) .phero__extra, .js:not(.no-motion) .product__fig, .js:not(.no-motion) .product__group { animation: fadeUp 1s var(--ease-out) both; animation-delay: .25s; }
.js:not(.no-motion) .phero__extra { animation-delay: .38s; }
@keyframes phLine { from { transform: scaleX(0); } }

/* pierwsza sekcja pod nagłówkiem podstrony: mniejszy odstęp */
.phero + .sec { padding-top: clamp(48px, 6vw, 96px); }

/* "Pokaż najbliższy sklep" w nagłówku strony sklepów */
.phero__loc { justify-items: start; }
.phero__loc .shops__status { text-align: left; }

/* treść edytora: czytelna kolumna */
.prose { max-width: 68ch; color: var(--text-2); }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-head); font-weight: 400; color: var(--brown-3); line-height: 1.25; text-wrap: balance; }
.prose h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-top: 1.9em; }
.prose h3 { font-size: var(--fs-h3); margin-top: 1.7em; }
.prose h4 { font-size: 1.0625rem; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose > :first-child { margin-top: 0; }
.prose strong, .prose b { font-weight: 600; color: var(--text); }
.prose a { color: var(--brown); font-weight: 520; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color .25s; }
.prose a:hover { color: var(--brown-3); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { padding: 4px 0 0 22px; border-left: 2px solid var(--gold); font-family: var(--f-head); font-size: clamp(1.125rem, 1.05rem + .35vw, 1.375rem); line-height: 1.5; color: var(--brown-3); }
.prose img { border-radius: var(--r); height: auto; }
.prose figure figcaption, .prose .wp-caption-text { margin-top: 10px; font-size: .8125rem; color: var(--text-3); }
.prose hr { border: 0; border-top: 1px solid var(--line-2); margin-block: 2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--brown-3); font-weight: 600; }
.prose__pages { display: flex; gap: 12px; font-weight: 600; }
.page-body__back, .products-all__back { margin-top: 40px; }

/* lista wpisów (szablon zapasowy) */
.plist { display: grid; gap: 28px; max-width: 68ch; }
.plist__item { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.plist__h { font-family: var(--f-head); font-weight: 400; font-size: var(--fs-h3); color: var(--brown-3); }
.plist__h a:hover { color: var(--brown); }
.plist p { margin-top: 8px; color: var(--text-2); }

/* O nas: artykuł + zdjęcie braci i cytat obok */
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 48px; align-items: start; }
.about__text { grid-column: 1 / span 7; }
.about__text > p:first-child { font-size: var(--fs-lead); line-height: 1.6; color: var(--text); }
.about__text > p:last-child { font-size: .8125rem; color: var(--text-3); }
/* wypowiedzi braci: bez kursywy (długie akapity), wyróżnione ciemniejszym kolorem; myślnik otwiera cytat */
.about__text em { font-style: normal; color: var(--text); }
.about__side { grid-column: 9 / -1; position: sticky; top: calc(var(--hdr) + 32px); display: grid; gap: 36px; }
.about__fig .frame { aspect-ratio: 1350 / 788; box-shadow: var(--shadow); }
.about__quote footer { font-family: var(--f-body); }

/* pasek zdjęć z wędzarni */
.strip__head { margin-bottom: 40px; }
.strip__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.strip__item { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.strip__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 18px; }
.strip__foot .cap { margin-top: 0; }

/* kafelki z linkami (CTA, 404) */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tiles--1 { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tiles--3 { grid-template-columns: repeat(3, 1fr); }
.tiles > li { min-width: 0; }
.tile { position: relative; display: grid; align-content: start; gap: 8px; height: 100%; padding: 26px 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out), border-color .3s, scale .1s; }
.tile:active { scale: .985; }
.tile:hover { box-shadow: var(--shadow-up); transform: translateY(-4px); border-color: transparent; }
.tile__ic { width: 48px; height: 48px; padding: 12px; margin-bottom: 10px; border-radius: 50%; background: rgba(201, 163, 91, .14); fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile__h { font-family: var(--f-head); font-size: 1.25rem; line-height: 1.3; color: var(--brown-3); padding-right: 28px; }
.tile__p { font-size: .9375rem; line-height: 1.55; color: var(--text-2); }
/* link zawsze na dole kafelka, niezależnie od długości opisu */
.tile--lg { padding: clamp(28px, 3vw, 40px); gap: 12px; grid-template-rows: auto auto 1fr auto; align-content: stretch; }
.tile--lg .tile__h { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); padding-right: 0; }
.tile--lg .tile__p { max-width: 44ch; }
.tile__lnk { justify-self: start; margin-top: 12px; }
.tile:hover .tile__lnk::after { transform: scaleX(1); }
.tile:hover .tile__lnk .i { transform: translateX(4px); }

/* filtr grup (wygląd zakładek z makiety, ale jako linki) */
.pfilter { margin-bottom: clamp(40px, 5vw, 64px); }
.tabs--nav { margin-top: 0; }
.tabs--nav a { position: relative; display: block; padding: 14px 18px; font-size: .9375rem; font-weight: 560; color: var(--text-3); white-space: nowrap; transition: color .25s; }
.tabs--nav a::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.tabs--nav a:hover, .tabs--nav a.is-on { color: var(--brown-3); }
.tabs--nav a:active { opacity: .7; }
.tabs--nav a.is-on::after { transform: scaleX(1); }
.tabs--nav li { flex: none; }
.pfilter .tabs--nav { flex-wrap: wrap; justify-content: center; overflow: visible; row-gap: 4px; max-width: none; }

/* wędliny: grupy i siatka kart */
.products-all { padding-top: clamp(40px, 5vw, 64px); }
.pgroup + .pgroup { margin-top: clamp(56px, 6vw, 88px); }
.pgroup__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.pgroup__h { font-family: var(--f-head); font-weight: 400; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); line-height: 1.2; color: var(--brown-3); }
.pgroup__n { font-size: var(--fs-sm); color: var(--text-3); }
.pgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.pgrid__item { min-width: 0; }
.products-all__empty { max-width: 60ch; }

/* "Gdzie kupić" */
.buy__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.buy__towns { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; margin: 28px auto 0; max-width: 920px; font-size: .9375rem; color: var(--text-3); }
.buy__towns li:not(:last-child)::after { content: "·"; margin: 0 12px; color: var(--gold); }
.buy__towns a { color: var(--text-2); font-weight: 650; transition: color .25s; }
.buy__towns a:hover { color: var(--brown-3); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* karta wyrobu */
.product { padding-block: clamp(36px, 5vw, 72px) clamp(52px, 6vw, 88px); }
.product__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 36px; align-items: center; }
.product__fig { grid-column: 1 / span 6; aspect-ratio: 1; border-radius: 12px; box-shadow: var(--shadow-up); }
.product__fig img { width: 100%; height: 100%; object-fit: cover; }
.product__info { grid-column: 8 / -1; display: grid; gap: 18px; justify-items: start; }
.product__group { margin-bottom: -4px; }
.product__group a { color: var(--gold-ink); transition: color .25s; }
.product__group a:hover { color: var(--brown); }
.product__h { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.product__desc { max-width: 56ch; }
.pfacts { display: grid; gap: 10px; margin-top: 4px; font-size: .9375rem; color: var(--text-2); }
.pfacts li { display: flex; align-items: center; gap: 10px; }
.pfacts .i { width: 24px; height: 24px; stroke: var(--gold); stroke-width: 1.5; }
.pbuy { width: 100%; display: grid; gap: 10px; margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.pbuy__h { font-family: var(--f-head); font-weight: 400; font-size: 1.375rem; color: var(--brown-3); }
.pbuy p { color: var(--text-2); }
.pbuy__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.product__back { margin-top: 6px; }
.related__head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-bottom: 40px; }

/* nasze sklepy */
.shops--page { padding-top: clamp(40px, 5vw, 64px); }
.shops--page .shops__grid { margin-top: 0; }
.shop__opis { margin-top: 4px; font-size: .8125rem; color: var(--text-3); }

/* kontakt: jak dojechać */
.visit__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 40px; align-items: center; }
.visit__txt { grid-column: 1 / span 5; display: grid; gap: 28px; justify-items: start; }
.visit__addr { display: flex; gap: 16px; align-items: flex-start; font-style: normal; color: var(--text-2); line-height: 1.6; }
.visit__addr b { display: block; font-weight: 600; color: var(--brown-3); }
.visit__ic { background: rgba(201, 163, 91, .14); }
.visit__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.map--plant { grid-column: 7 / -1; order: 0; position: relative; top: 0; min-height: 0; height: clamp(360px, 38vw, 480px); }

/* galeria */
.gal__intro { margin-bottom: 40px; }
.gal__album + .gal__album { margin-top: clamp(56px, 6vw, 88px); }
.gal__album { scroll-margin-top: calc(var(--hdr) + 16px); }
.gal__desc { margin: -8px 0 24px; max-width: 68ch; font-size: .875rem; color: var(--text-3); }
.gal__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gal__cell { margin: 0; }
.gal__item { display: block; position: relative; overflow: clip; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--photo); box-shadow: var(--shadow); }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), opacity .3s; }
.gal__item:hover img { transform: scale(1.04); }
.gal__item { transition: scale .12s; }
.gal__item:active { scale: .98; }
/* album z 4n+1 zdjęciami: pierwsze zajmuje 2 × 2, żeby ostatni rząd nie miał jednego zdjęcia */
.gal__grid--lead > :first-child { grid-column: span 2; grid-row: span 2; }
.gal__grid--lead > :first-child .gal__item { aspect-ratio: auto; height: 100%; }
.gal__item:focus-visible { outline-offset: 3px; }

/* lightbox */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(28, 23, 19, var(--lb-a, .94)); color: #EFE7DC; overscroll-behavior: contain; touch-action: pinch-zoom; }
.lb:not([open]) { display: none; }
.lb { opacity: 0; transition: opacity .25s var(--ease), display .25s allow-discrete, overlay .25s allow-discrete; }
.lb[open] { opacity: 1; }
@starting-style { .lb[open] { opacity: 0; } }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; place-items: center; }
.lb__fig { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; gap: 12px; padding: 64px clamp(16px, 7vw, 96px) 20px; }
.lb__img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); opacity: 0; transition: opacity .35s var(--ease-out); user-select: none; -webkit-user-drag: none; will-change: transform; }
.lb.is-loaded .lb__img { opacity: 1; }
.lb__cap { display: flex; gap: 16px; align-items: baseline; justify-content: center; flex-wrap: wrap; min-height: 1.5em; font-size: .875rem; color: #CDBFAE; text-align: center; }
.lb__count { font-variant-numeric: tabular-nums; color: #9C8E7E; }
.lb__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(239, 231, 220, .22); transition: background-color .25s, border-color .25s; }
.lb__btn:hover { background: rgba(255, 255, 255, .16); border-color: var(--gold); }
.lb__btn:active { scale: .92; }
.lb__btn { transition: background-color .25s, border-color .25s, scale .12s; }
.lb__btn .i { width: 20px; height: 20px; }
.lb__close { top: 14px; right: 14px; }
.lb__prev, .lb__next { top: 50%; margin-top: -24px; }
.lb__prev { left: clamp(10px, 2vw, 28px); }
.lb__next { right: clamp(10px, 2vw, 28px); }
.lb__prev .i { transform: scaleX(-1); }
.lb-open, .lb-open body { overflow: hidden; }
.lb-open .mbar { visibility: hidden; }

/* tablet */
@media (max-width: 1099.98px) {
  .about__text, .about__side { grid-column: 1 / -1; }
  .about__side { position: static; grid-template-columns: 1fr 1fr; align-items: center; }
  .strip__list { grid-template-columns: repeat(2, 1fr); }
  .strip__item { aspect-ratio: 4 / 3; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles--3 { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .product__fig { grid-column: 1 / span 6; }
  .product__info { grid-column: 7 / -1; }
  .visit__txt, .map--plant { grid-column: 1 / -1; }
  .gal__grid { grid-template-columns: repeat(3, 1fr); }
  .phero__art { width: 420px; right: -60px; opacity: .3; }
}

/* telefon */
@media (max-width: 767.98px) {
  .phero { padding-block: 40px 44px; }
  .phero__art { width: 300px; top: auto; bottom: -20px; translate: none; opacity: .22; }
  .phero__extra, .phero__extra .shops__loc { width: 100%; }
  .phero__extra .btn { flex: 1 1 100%; }
  .about__side { grid-template-columns: 1fr; }
  .strip__list { gap: 12px; }
  .tiles, .tiles--2 { grid-template-columns: 1fr; gap: 12px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product__fig, .product__info { grid-column: 1 / -1; }
  .pbuy__btns .btn, .buy__btns .btn, .visit__btns .btn { flex: 1 1 100%; }
  .buy__btns { margin-top: 24px; }
  .related__head { margin-bottom: 28px; }
  .map--plant { height: 340px; }
  .gal__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gal .pfilter .tabs--nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; width: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .lb__fig { padding: 60px 8px 16px; }
  .lb__prev, .lb__next { top: auto; bottom: 14px; margin-top: 0; }
  .lb__img { max-height: calc(100dvh - 170px); }
  .lb__cap { padding-inline: 64px; }
}

/* Kontakt: bezpośrednie kontakty pod głównymi danymi */
.contact__sub { margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(239, 231, 220, .16); font-family: var(--f-head); font-size: 1.125rem; color: #fff; }
.contact__list--people { margin-top: 6px; }
