/*
Theme Name: Plisy Kraków
Theme URI: https://plisykrakow.pl
Author: Gawikat Katarzyna Gawinowicz
Description: Motyw firmowy Plisy Kraków — plisy, rolety, żaluzje i moskitiery na wymiar. Kraków, Wieliczka i okolice.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: plisykrakow
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:      #0f0e0c;
  --charcoal: #1c1a16;
  --off:      #f6f2eb;
  --paper:    #ece8df;
  --clay:     #b5501b;
  --clay-d:   #954216;
  --sand:     #c8a06a;
  --muted:    #8a7f72;
  --rule:     rgba(15,14,12,.1);
  --serif: 'Syne', system-ui, sans-serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --ease:  cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; }
body  { font-family: var(--sans); background: var(--off); color: var(--ink); overflow-x: hidden; }
img   { display: block; }
a     { color: inherit; }

.u-label {
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--clay);
  display: flex; align-items: center; gap: .6rem;
}
.u-label::before { content: ''; display: block; width: 1.5rem; height: 1px; background: var(--clay); }

/* ─── NAV ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  transition: background .3s, padding .3s, box-shadow .3s;
}
/* Top scrim – keeps the logo & links legible over bright hero photos.
   Fades out once the nav switches to its solid scrolled state. */
#nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(15,14,12,.55), rgba(15,14,12,0));
  transition: opacity .3s;
}
#nav.scrolled::before { opacity: 0; }
#nav.scrolled {
  background: rgba(246,242,235,.94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
  padding: .8rem 3rem;
}
.nav-logo {
  display: flex; align-items: center;
  color: var(--off);
  transition: color .3s;
}
#nav.scrolled .nav-logo { color: var(--ink); }
.nav-logo svg { width: 140px; height: auto; }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .8125rem; font-weight: 400; color: rgba(246,242,235,.6);
  text-decoration: none; transition: color .2s;
}
#nav.scrolled .nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--off); }
#nav.scrolled .nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--clay); color: #fff;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; padding: .55rem 1.25rem;
  text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: var(--clay-d); }

/* active / current page */
.nav-links a.active { color: var(--sand); }
#nav.scrolled .nav-links a.active { color: var(--clay); }

/* hamburger (mobile only) */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 38px; padding: 8px;
  background: none; border: none; cursor: pointer; z-index: 320;
}
.nav-burger span {
  display: block; height: 2px; width: 100%; border-radius: 2px;
  background: var(--off); transition: transform .3s var(--ease), opacity .2s, background .3s;
}
#nav.scrolled .nav-burger span { background: var(--ink); }
.nav-burger.open span { background: var(--off); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* CTA cloned into the mobile menu panel – hidden on desktop */
.nav-cta-li { display: none; }

/* On solid-background subpages the nav needs dark text from the start */
#nav.nav-solid .nav-logo { color: var(--ink); }
#nav.nav-solid .nav-links a { color: var(--muted); }
#nav.nav-solid .nav-links a:hover { color: var(--ink); }

/* ─── HERO ─── */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.82);
  transition: transform 10s ease;
}
.hero-photo img.loaded { transform: scale(1.05); }

.hero-copy {
  background: var(--charcoal);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 4rem 3.5rem 3.5rem;
}
.hero-tag {
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--clay); margin-bottom: 2rem;
}
.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  font-weight: 700; line-height: 1.1;
  color: var(--off); margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}
.hero-h1 span { color: var(--clay); }
.hero-sub {
  font-size: .9375rem; line-height: 1.7;
  color: rgba(246,242,235,.5); max-width: 38ch; margin-bottom: 1rem;
}
.hero-free {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8125rem; font-weight: 600; color: var(--sand);
  margin-bottom: 2.25rem;
}
.hero-free svg { flex-shrink: 0; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.btn-clay {
  background: var(--clay); color: #fff;
  font-family: var(--sans); font-size: .875rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: .9rem 2rem; border: none; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: background .2s, transform .15s;
}
.btn-clay:hover { background: var(--clay-d); transform: translateY(-1px); }
.hero-tel {
  font-size: .9375rem; color: rgba(246,242,235,.45);
  text-decoration: none; display: flex; align-items: center; gap: .5rem;
  transition: color .2s;
}
.hero-tel:hover { color: var(--off); }
.hero-tel strong { color: var(--off); font-weight: 500; }
.hero-stats {
  display: flex; gap: 0; margin-top: 3rem;
  border-top: 1px solid rgba(246,242,235,.08);
}
.hero-stat { flex: 1; padding: 1.25rem 0 0; border-right: 1px solid rgba(246,242,235,.06); }
.hero-stat:last-child { border-right: none; }
.hero-stat strong {
  display: block; font-family: var(--serif);
  font-size: 1.875rem; font-weight: 700; color: var(--off);
  line-height: 1; margin-bottom: .2rem; letter-spacing: -.02em;
}
.hero-stat span { font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(246,242,235,.3); }

/* ─── MARQUEE ─── */
.marquee { background: var(--clay); overflow: hidden; padding: .75rem 0; }
.marquee-track { display: flex; width: max-content; animation: marq 24s linear infinite; }
.marquee-item {
  display: flex; align-items: center; gap: .75rem;
  padding: 0 2rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(246,242,235,.85); white-space: nowrap;
}
.m-dot { color: rgba(246,242,235,.3); font-size: .4rem; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── FORM (top position) ─── */
.form-section {
  background: var(--paper);
  padding: 5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
}
.fs-left .u-label { margin-bottom: 1.25rem; }
.fs-h2 {
  font-family: var(--serif); font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 700; color: var(--ink); line-height: 1.15;
  letter-spacing: -.02em; margin-bottom: 1rem;
}
.fs-body { font-size: .9375rem; line-height: 1.75; color: var(--muted); margin-bottom: 2rem; }
.fs-perks { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.fs-perks li {
  display: flex; align-items: center; gap: .875rem;
  font-size: .9rem; color: var(--ink); font-weight: 500;
}
.perk-check {
  width: 22px; height: 22px; background: var(--clay);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff; font-size: .75rem;
}

/* form box */
.form-box {
  background: var(--off);
  border: 1px solid rgba(15,14,12,.08);
  padding: 2.5rem;
}
.fb-title {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
  letter-spacing: -.01em; color: var(--ink); margin-bottom: .3rem;
}
.fb-sub { font-size: .8125rem; color: var(--muted); margin-bottom: 1.75rem; }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.f-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .875rem; }
.f-group label {
  font-size: .6875rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.f-group input,
.f-group select,
.f-group textarea {
  background: #fff;
  border: 1px solid rgba(15,14,12,.1);
  border-bottom: 2px solid rgba(15,14,12,.1);
  color: var(--ink); font-family: var(--sans);
  font-size: .9375rem; padding: .75rem 1rem;
  outline: none; width: 100%; transition: border-color .2s;
  -webkit-appearance: none;
}
.f-group input:focus,
.f-group select:focus,
.f-group textarea:focus { border-bottom-color: var(--clay); }
.f-group input::placeholder,
.f-group textarea::placeholder { color: rgba(15,14,12,.25); }
.f-group textarea { min-height: 80px; resize: vertical; }
.f-check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem; margin-bottom: 1.5rem; }
.f-check input { width: 14px; height: 14px; margin-top: .2rem; flex-shrink: 0; accent-color: var(--clay); }
.f-check label { font-size: .75rem; line-height: 1.55; color: var(--muted); }
.btn-send {
  width: 100%; background: var(--ink); color: var(--off);
  font-family: var(--sans); font-size: .875rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 1rem; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-send:hover { background: var(--clay); transform: translateY(-1px); }
.f-note { text-align: center; font-size: .75rem; color: var(--muted); margin-top: .875rem; }

/* ─── Walidacja formularza ─── */
.btn-send:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-send:disabled:hover { background: var(--ink); }

.f-group.has-error input,
.f-group.has-error select,
.f-group.has-error textarea { border-color: var(--clay); border-bottom-color: var(--clay); }
.f-check.has-error label { color: var(--clay); }

.f-error {
  font-size: .75rem; line-height: 1.5; color: var(--clay-d);
  font-weight: 500; margin-top: .1rem;
}
.f-check .f-error { flex-basis: 100%; margin-top: .4rem; }

.f-banner {
  background: rgba(181,80,27,.08);
  border-left: 3px solid var(--clay);
  padding: .875rem 1rem; margin-bottom: 1.25rem;
  font-size: .875rem; line-height: 1.6; color: var(--ink);
}
.f-banner a { color: var(--clay-d); font-weight: 600; text-decoration: underline; }

.success-wrap { display: none; text-align: center; padding: 3rem 1rem; }
.success-wrap.show { display: block; }
.s-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.s-title { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--ink); margin-bottom: .75rem; letter-spacing: -.01em; }
.s-body { font-size: .9375rem; color: var(--muted); line-height: 1.65; }
.s-body a { color: var(--clay); font-weight: 600; }

/* ─── INTRO STATS ─── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-bottom: 1px solid var(--rule);
}
.sb-cell {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--rule);
  transition: background .2s;
}
.sb-cell:last-child { border-right: none; }
.sb-cell:hover { background: var(--paper); }
.sb-num {
  font-family: var(--serif); font-size: 2.25rem; font-weight: 800;
  color: var(--clay); line-height: 1; margin-bottom: .3rem;
  letter-spacing: -.03em;
}
.sb-label { font-size: .8125rem; color: var(--muted); line-height: 1.45; }

/* ─── PRODUCTS ─── */
.products-section { padding: 5rem 0 0; }
.sec-head { padding: 0 5rem 3rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.sec-h2 {
  font-family: var(--serif); font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 700; color: var(--ink); line-height: 1.15;
  letter-spacing: -.02em; margin-top: .875rem;
}
.sec-h2 span { color: var(--clay); }
.sec-aside { font-size: .8125rem; color: var(--muted); padding-bottom: .25rem; }

.bento {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 360px 260px;
}
.bc {
  position: relative; overflow: hidden; cursor: pointer;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.bc:last-child { border-right: none; }
.bc.tall { grid-row: 1 / 3; border-bottom: none; }
.bc img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .4s;
}
.bc:hover img { transform: scale(1.06); filter: brightness(.78); }
.bc-lbl {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(15,14,12,.8) 0%, transparent 100%);
}
.bc-lbl h3 {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
  color: var(--off); margin-bottom: .2rem; letter-spacing: -.01em;
}
.bc-lbl p { font-size: .8rem; color: rgba(246,242,235,.55); }
.bc-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--clay); color: #fff;
  font-size: .625rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .3rem .65rem;
}
.bc-more {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(246,242,235,.92); color: var(--ink);
  font-size: .625rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .35rem .7rem;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .3s, transform .3s;
}
.bc:hover .bc-more { opacity: 1; transform: none; }

/* ─── WHY US ─── */
.why-section {
  padding: 5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
  background: var(--charcoal);
}
.why-left .u-label { color: var(--sand); }
.why-left .u-label::before { background: var(--sand); }
.why-h2 {
  font-family: var(--serif); font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700; color: var(--off); line-height: 1.2;
  letter-spacing: -.02em; margin: 1rem 0 1.25rem;
}
.why-h2 span { color: var(--clay); }
.why-body { font-size: .9375rem; line-height: 1.75; color: rgba(246,242,235,.45); margin-bottom: 2.5rem; }
.why-list { list-style: none; display: flex; flex-direction: column; }
.why-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(246,242,235,.06);
}
.why-item:first-child { border-top: 1px solid rgba(246,242,235,.06); }
.wi-icon {
  width: 36px; height: 36px; background: rgba(181,80,27,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; margin-top: .1rem;
}
.wi-txt strong {
  display: block; font-size: .875rem; font-weight: 600;
  color: rgba(246,242,235,.8); margin-bottom: .2rem;
}
.wi-txt p { font-size: .8125rem; color: rgba(246,242,235,.4); line-height: 1.55; }

/* Images grid – right side */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 6px;
}
.wg-img {
  position: relative; overflow: hidden; cursor: pointer;
}
.wg-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease), filter .3s;
}
.wg-img:hover img { transform: scale(1.06); filter: brightness(.7); }
.wg-img .zoom-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  background: rgba(15,14,12,.3);
}
.wg-img:hover .zoom-hint { opacity: 1; }
.zoom-hint span {
  background: rgba(15,14,12,.7); color: #fff;
  font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: .4rem .85rem;
}
.wg-img.span2 { grid-column: 1 / 3; }

/* ─── GALLERY ─── */
.gallery-section { background: var(--paper); overflow: hidden; padding: 4.5rem 0; }
.gallery-head { padding: 0 5rem 2.5rem; }
.gallery-scroll {
  display: flex; gap: 6px;
  animation: gs 40s linear infinite;
  width: max-content;
}
.gallery-scroll .gs-img {
  height: 260px; width: auto; flex-shrink: 0;
  object-fit: cover; cursor: pointer;
  filter: brightness(.95); transition: filter .3s, transform .3s;
}
.gallery-scroll .gs-img:hover { filter: brightness(1.05); transform: scale(1.02); }
@keyframes gs { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── REVIEWS ─── */
.reviews-section { padding: 5rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 3rem; }
.r-card { background: var(--off); padding: 2.25rem; transition: background .2s; }
.r-card:hover { background: var(--paper); }
.r-stars { color: var(--clay); font-size: .75rem; letter-spacing: .15em; margin-bottom: .875rem; }
.r-text { font-size: .9375rem; line-height: 1.7; color: var(--ink); margin-bottom: 1.25rem; font-style: italic; }
.r-text::before { content: '\201C'; }
.r-text::after  { content: '\201D'; }
.r-author strong { display: block; font-size: .875rem; font-weight: 600; color: var(--ink); margin-bottom: .1rem; }
.r-author span   { font-size: .75rem; color: var(--muted); }

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--clay); padding: 3.5rem 5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cb-left h2 {
  font-family: var(--serif); font-size: clamp(1.5rem,2vw,2rem);
  font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: -.02em;
}
.cb-left p { font-size: .9rem; color: rgba(255,255,255,.6); margin-top: .4rem; }
.btn-light {
  background: #fff; color: var(--clay);
  font-size: .875rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; padding: .9rem 2rem;
  border: none; cursor: pointer; text-decoration: none;
  display: inline-block; white-space: nowrap;
  transition: background .2s, transform .15s;
}
.btn-light:hover { background: var(--off); transform: translateY(-1px); }

/* ─── FOOTER ─── */
footer {
  background: var(--ink); padding: 1.75rem 5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.f-logo { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--off); letter-spacing: -.01em; }
footer p { font-size: .75rem; color: rgba(246,242,235,.3); }
.f-social { display: flex; gap: 1rem; }
.f-social a { font-size: .75rem; color: rgba(246,242,235,.35); text-decoration: none; letter-spacing: .06em; text-transform: uppercase; transition: color .2s; }
.f-social a:hover { color: var(--sand); }

/* footer nav links (multi-page) */
.f-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.f-nav a { font-size: .75rem; color: rgba(246,242,235,.4); text-decoration: none; transition: color .2s; }
.f-nav a:hover { color: var(--sand); }

/* ─── FLOAT ─── */
.float-btns { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 400; display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }
.fb { display: flex; align-items: center; gap: .6rem; padding: .7rem 1.1rem; font-family: var(--sans); font-size: .8125rem; font-weight: 600; border: none; cursor: pointer; text-decoration: none; box-shadow: 0 4px 24px rgba(0,0,0,.25); transition: transform .15s, box-shadow .15s; }
.fb:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,.3); }
.fb-wa  { background: #25d366; color: #fff; }
.fb-tel { background: var(--clay); color: #fff; }

/* ─── LIGHTBOX ─── */
.lb {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,14,12,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.lb.open { opacity: 1; pointer-events: all; }
.lb-img {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain;
  transform: scale(.94); transition: transform .35s var(--ease);
}
.lb.open .lb-img { transform: scale(1); }
.lb-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none; border: none; cursor: pointer;
  color: rgba(246,242,235,.7); font-size: 1.75rem; line-height: 1;
  transition: color .2s; font-family: var(--sans);
}
.lb-close:hover { color: #fff; }
.lb-caption {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-size: .8125rem; color: rgba(246,242,235,.45); letter-spacing: .04em;
}
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(246,242,235,.08); border: none; cursor: pointer;
  color: rgba(246,242,235,.7); font-size: 1.5rem; width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.lb-arrow:hover { background: rgba(246,242,235,.15); color: #fff; }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

/* ─── SCROLL REVEAL ─── */
.sr { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.sr.d1 { transition-delay: .1s; }
.sr.d2 { transition-delay: .2s; }
.sr.d3 { transition-delay: .3s; }
.sr.in { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════
   PRODUCT SUBPAGES
   ═══════════════════════════════════════════════════════ */

/* ─── PRODUCT HERO ─── */
.phero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  min-height: 72vh;
  background: var(--charcoal);
  overflow: hidden;
}
.phero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8rem 4rem 4rem;
}
.breadcrumb {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .75rem; color: rgba(246,242,235,.45); margin-bottom: 1.75rem;
}
.breadcrumb a { color: rgba(246,242,235,.55); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--sand); }
.breadcrumb .sep { color: rgba(246,242,235,.25); }
.breadcrumb .current { color: var(--clay); }
.phero-tag {
  font-size: .6875rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--clay); margin-bottom: 1.25rem;
}
.phero-h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 3.6vw, 3.4rem);
  font-weight: 700; line-height: 1.08; color: var(--off);
  letter-spacing: -.02em; margin-bottom: 1.25rem;
}
.phero-h1 span { color: var(--clay); }
.phero-sub { font-size: .9375rem; line-height: 1.75; color: rgba(246,242,235,.5); max-width: 48ch; margin-bottom: 2rem; }
.phero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.phero-photo { position: relative; overflow: hidden; }
.phero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.85);
  transition: transform 10s ease;
}
.phero-photo img.loaded { transform: scale(1.05); }

/* ─── PROSE / INTRO ─── */
.prose-section { padding: 5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.prose-h2 { font-family: var(--serif); font-size: clamp(1.75rem,2.5vw,2.4rem); font-weight: 700; color: var(--ink); line-height:1.15; letter-spacing:-.02em; margin: 1rem 0 1.5rem; }
.prose-h2 span { color: var(--clay); }
.prose p { font-size: .9375rem; line-height: 1.85; color: var(--muted); margin-bottom: 1.1rem; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose-aside {
  background: var(--paper); border: 1px solid var(--rule);
  padding: 2.5rem;
}
.prose-aside h3 {
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
  color: var(--ink); letter-spacing: -.01em; margin-bottom: 1.25rem;
}
.spec-list { list-style: none; display: flex; flex-direction: column; }
.spec-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .8rem 0; font-size: .875rem; color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.spec-list li:last-child { border-bottom: none; }
.spec-list .perk-check { width: 20px; height: 20px; font-size: .7rem; margin-top: .05rem; }

/* ─── TYPES GRID ─── */
.types-section { padding: 5rem; background: var(--paper); }
.types-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.75rem; margin-top: 3rem; }
.type-card { background: var(--off); border: 1px solid var(--rule); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.type-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,14,12,.1); }
.type-card .tc-img { position: relative; overflow: hidden; height: 220px; cursor: pointer; }
.type-card .tc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.type-card:hover .tc-img img { transform: scale(1.06); filter: brightness(.85); }
.tc-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.tc-body h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; margin-bottom: .6rem; }
.tc-body p { font-size: .875rem; line-height: 1.7; color: var(--muted); }

/* ─── FEATURE LIST (light bg) ─── */
.feats-section { padding: 5rem; }
.feats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 3rem; margin-top: 2.5rem; }
.feat { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.feat-ic { width: 40px; height: 40px; background: rgba(181,80,27,.12); color: var(--clay); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size: 1.1rem; }
.feat-tx strong { display:block; font-size: .9375rem; font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.feat-tx p { font-size: .8125rem; line-height: 1.65; color: var(--muted); }

/* ─── RELATED PRODUCTS ─── */
.rel-section { padding: 5rem; background: var(--paper); }
.rel-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 2.5rem; }
.rel-card { position: relative; height: 210px; overflow: hidden; background: var(--off); display:block; }
.rel-card img { width:100%; height:100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.rel-card:hover img { transform: scale(1.06); filter: brightness(.65); }
.rel-lbl { position:absolute; left:0; right:0; bottom:0; padding: 1.1rem 1rem; background: linear-gradient(to top, rgba(15,14,12,.85), transparent); color: var(--off); font-family: var(--serif); font-weight:700; font-size: 1.02rem; letter-spacing: -.01em; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .form-section { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 2rem; }
  .why-section { grid-template-columns: 1fr; padding: 4rem 2rem; gap: 3rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 180px 180px; }
  .prose-section { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 2rem; }
  .types-grid { grid-template-columns: 1fr 1fr; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  #nav { padding: 1rem 1.5rem; }
  #nav.scrolled { padding: .75rem 1.5rem; }
  .nav-burger { display: flex; }
  .nav-right { gap: .5rem; }
  /* header CTA moves into the slide-in menu on mobile */
  .nav-right > .nav-cta { display: none; }
  .nav-cta-li { display: block; width: 100%; margin-top: 1.25rem; border-bottom: none; }
  .nav-cta-li .nav-cta { display: block; text-align: center; padding: .9rem 1rem; }
  /* off-canvas mobile panel */
  .nav-links {
    position: fixed; top: 0; right: 0;
    width: min(80vw, 320px); height: 100vh;
    flex-direction: column; align-items: flex-start; gap: .25rem;
    background: var(--charcoal);
    padding: 5.5rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    box-shadow: -12px 0 48px rgba(0,0,0,.35);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(246,242,235,.08); }
  .nav-links a,
  #nav.scrolled .nav-links a {
    display: block; width: 100%; padding: .9rem 0;
    font-size: 1rem; color: rgba(246,242,235,.8);
  }
  .nav-links a:hover,
  #nav.scrolled .nav-links a:hover { color: var(--off); }
  .nav-links a.active,
  #nav.scrolled .nav-links a.active { color: var(--clay); }
  .hero { grid-template-columns: 1fr; height: auto; min-height: auto; }
  .hero-photo { height: 52vw; min-height: 280px; }
  .hero-copy { padding: 3rem 2rem 2.5rem; }
  .hero-stats { flex-wrap: wrap; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .sec-head { padding: 0 2rem 2.5rem; flex-direction: column; align-items: flex-start; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 260px 220px; }
  .bc.tall { grid-row: auto; }
  .reviews-section { padding: 4rem 2rem; }
  .reviews-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 3rem 2rem; }
  footer { padding: 1.5rem 2rem; }
  .gallery-head { padding: 0 2rem 2.5rem; }

  .phero { grid-template-columns: 1fr; min-height: auto; }
  .phero-copy { padding: 7rem 2rem 2.5rem; }
  .phero-photo { height: 56vw; min-height: 280px; order: -1; }
  .types-section { padding: 4rem 2rem; }
  .feats-section { padding: 4rem 2rem; }
  .feats-grid { grid-template-columns: 1fr; }
  .rel-section { padding: 4rem 2rem; }
}
@media (max-width: 640px) {
  .hero-h1 { font-size: 2.1rem; }
  .bento { grid-template-columns: 1fr; grid-template-rows: repeat(5, 240px); }
  .f-row { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .sb-cell { padding: 1.75rem 1.25rem; }
  .types-grid { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
  .phero-h1 { font-size: 2rem; }
}

/* ─── Dostępność: link pomijający nawigację ─── */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: .5rem; left: .5rem; z-index: 999;
  width: auto; height: auto; clip: auto; margin: 0;
  padding: .75rem 1.25rem; background: var(--ink); color: var(--off);
  font-size: .875rem; font-weight: 600; text-decoration: none;
}
