/* ==========================================================================
   KRK Catering — front-end stylesheet
   Ported 1:1 from the approved static design (index.html) sections 0–14,
   plus additive rules (marked below) for the WP-specific components that
   didn't exist in the one-page mockup: real <nav> menus, the contact form,
   the multi-section Oferta detail layout, the gallery grid/lightbox, and
   generic page/blog fallbacks.
   ========================================================================== */

/* ==========================================================================
   0. TOKENS — swap these for final brand values when handing off to CMS
   ========================================================================== */
:root{
  color-scheme: light;
  --paper:      #FAFAF7;
  --paper-2:    #F2F0EA;
  --ink:        #131210;
  --ink-soft:   #6B6862;
  --ink-faint:  #A5A29A;
  --line:       rgba(19,18,16,0.14);
  --line-soft:  rgba(19,18,16,0.08);
  --dark:       #131210;
  --dark-2:     #1B1916;
  --on-dark:    #FAFAF7;
  --on-dark-soft: rgba(250,250,247,0.62);
  --line-dark:  rgba(250,250,247,0.20);
  --accent:     #C1440C;

  --f-head: 'Archivo', 'Arial Narrow', sans-serif;
  --f-body: 'Inter', -apple-system, sans-serif;

  --rail-w: 56px;
  --pad: clamp(20px, 4vw, 64px);
  --maxw: 1440px;
}

/* ==========================================================================
   1. RESET
   ========================================================================== */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ display:block; max-width:100%; height:auto; object-fit:cover; }
a{ color:inherit; text-decoration:none; }
ul,ol{ list-style:none; }
button{ font:inherit; background:none; border:0; color:inherit; cursor:pointer; }
section{ position:relative; }
::selection{ background:var(--accent); color:var(--on-dark); }

/* every corner in the entire system is square — the one non-negotiable rule */
* { border-radius:0 !important; }

/* ==========================================================================
   2. TYPE PRIMITIVES
   ========================================================================== */
.eyebrow{
  display:flex; align-items:center; gap:10px;
  font-family:var(--f-head); font-weight:600;
  font-size:0.72rem; letter-spacing:0.22em; text-transform:uppercase;
  color:var(--ink-soft);
}
.eyebrow--dark{ color:var(--on-dark-soft); }
.eyebrow__num{ color:var(--accent); font-weight:700; }

.link-arrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--f-head); font-weight:600; font-size:0.95rem;
  letter-spacing:0.02em; padding-bottom:4px;
  border-bottom:1px solid var(--line);
  transition:border-color .3s ease, gap .3s ease, color .3s ease;
}
.link-arrow span{ transition:transform .3s ease; color:var(--accent); }
.link-arrow:hover{ border-color:var(--accent); gap:16px; }
.link-arrow--dark{ border-color:var(--line-dark); color:var(--on-dark); }
.link-arrow--dark:hover{ border-color:var(--accent); }

.section-head{ margin-bottom:clamp(32px,6vw,72px); }

/* generic scroll-reveal — small, purposeful, off by default */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in-view{ opacity:1; transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
  html{ scroll-behavior:auto; }
}

/* ==========================================================================
   3. SOCIAL RAIL — fixed left edge, desktop only
   ========================================================================== */
.rail{
  position:fixed; left:0; top:0; bottom:0; width:var(--rail-w);
  display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
  gap:18px; padding:28px 0; z-index:60;
  border-right:1px solid var(--line);
}
.rail__link{
  writing-mode:vertical-rl; transform:rotate(180deg);
  font-family:var(--f-head); font-weight:600; font-size:0.7rem;
  letter-spacing:0.2em; color:var(--ink-soft);
  transition:color .25s ease;
}
.rail__link:hover{ color:var(--accent); }
.rail__line{ width:1px; height:40px; background:var(--line); }

/* ==========================================================================
   4. NAV
   ========================================================================== */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:90;
  background:rgba(250,250,247,0.92); backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line);
}
.nav__inner{
  max-width:var(--maxw); margin:0 auto;
  padding:20px var(--pad) 20px calc(var(--rail-w) + var(--pad));
  display:flex; align-items:center; justify-content:space-between; gap:32px;
}
.nav__logo{
  font-family:var(--f-head); font-weight:800; font-size:1rem;
  letter-spacing:0.04em; display:flex; align-items:center;
}
.nav__logo img{ max-height:44px; width:auto; }
.nav__logo-dot{ color:var(--accent); padding:0 2px; }
.nav__links{ display:flex; align-items:center; gap:36px; }
.nav__links .menu{ display:flex; align-items:center; gap:36px; }
.nav__links > .menu > .menu-item > a,
.nav__links > .menu > .menu-item-has-children > a{
  position:relative; font-family:var(--f-head); font-weight:600;
  font-size:0.78rem; letter-spacing:0.1em; text-transform:uppercase;
  padding-bottom:4px; display:inline-block;
}
.nav__links .menu-item > a::after{
  content:''; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:var(--accent); transform:scaleX(0); transform-origin:left;
  transition:transform .3s ease;
}
.nav__links .menu-item:hover > a::after{ transform:scaleX(1); }

.nav__links .menu-item-has-children{ position:relative; }
.nav__links .menu-item-has-children > a{ display:inline-block; transform:translateY(3px); }
.nav__links .menu-item-has-children .sub-menu{
  position:absolute; top:calc(100% + 20px); left:50%; transform:translateX(-50%) translateY(-6px);
  width:240px; background:var(--paper); border:1px solid var(--line);
  padding:6px 0; opacity:0; visibility:hidden;
  transition:opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.nav__links .menu-item-has-children:hover .sub-menu{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.nav__links .sub-menu a{
  display:block; padding:11px 20px; font-size:0.82rem; font-family:var(--f-body);
  font-weight:400; text-transform:none; letter-spacing:normal;
  border-bottom:1px solid var(--line-soft);
  transition:background .2s ease, padding-left .2s ease, color .2s ease;
}
.nav__links .sub-menu a::after{ display:none; }
.nav__links .sub-menu li:last-child a{ border-bottom:0; }
.nav__links .sub-menu a:hover{ background:var(--paper-2); padding-left:26px; color:var(--accent); }

.nav__actions{ display:flex; align-items:center; gap:20px; }

.nav__phone{
  font-family:var(--f-head); font-weight:700; font-size:0.85rem; letter-spacing:0.03em;
  border:1px solid var(--ink); padding:9px 18px;
  transition:background .25s ease, color .25s ease;
  white-space:nowrap;
}
.nav__phone:hover{ background:var(--ink); color:var(--paper); }

.nav__burger{ display:none; flex-direction:column; gap:5px; width:28px; z-index:80; flex-shrink:0; }
.nav__burger span{ display:block; height:1.5px; width:100%; background:var(--ink); transition:transform .3s ease, opacity .3s ease; }
.nav__burger.open span:nth-child(1){ transform:translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2){ opacity:0; }
.nav__burger.open span:nth-child(3){ transform:translateY(-6.5px) rotate(-45deg); }

/* mobile full-screen nav */
.mobile-nav{
  position:fixed; inset:0; background:var(--paper); z-index:75;
  display:flex; flex-direction:column; justify-content:center;
  padding:100px var(--pad) 40px; overflow-y:auto;
  transform:translateY(-100%); transition:transform .45s cubic-bezier(.2,.7,.2,1);
}
.mobile-nav.open{ transform:translateY(0); }
.mobile-nav__menu > .menu-item > a{
  display:block; font-family:var(--f-head); font-weight:800;
  font-size:2rem; padding:14px 0; border-bottom:1px solid var(--line);
}
.mobile-nav__menu .sub-menu{ padding-left:18px; }
.mobile-nav__menu .sub-menu a{ font-size:1rem; font-weight:600; padding:10px 0; color:var(--ink-soft); border-bottom:1px solid var(--line-soft); display:block; }

/* ==========================================================================
   5. HERO — 01
   ========================================================================== */
.hero{
  min-height:100vh; display:flex; flex-direction:column;
  padding-left:var(--rail-w); background:var(--dark); color:var(--on-dark);
}
.hero__media{ position:absolute; top:0; right:0; bottom:96px; left:42%; overflow:hidden; }
.hero__media img{ width:100%; height:100%; filter:saturate(0.9) contrast(1.05); }
.hero__scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(100deg, var(--dark) 0%, rgba(19,18,16,0.55) 30%, rgba(19,18,16,0.05) 60%),
    linear-gradient(to top, rgba(19,18,16,0.7), rgba(19,18,16,0) 40%);
}
.hero__content{
  position:relative; flex:1; display:flex; flex-direction:column; justify-content:center;
  gap:26px; max-width:760px; padding:140px var(--pad) 60px calc(var(--pad) - 8px);
}
.hero__title{
  font-family:var(--f-head); font-weight:900; letter-spacing:-0.02em;
  font-size:clamp(3rem, 7.4vw, 6.4rem); line-height:0.96;
}
.hero__sub{ font-family:var(--f-body); font-size:1.05rem; color:var(--on-dark-soft); max-width:42ch; }

.hero__bar{
  position:relative; height:96px; border-top:1px solid var(--line-dark);
  display:grid; grid-template-columns:1fr auto 1fr; align-items:center;
  padding:0 var(--pad);
}
.hero__bar-social{ justify-self:start; display:flex; gap:22px; font-family:var(--f-head); font-weight:600; font-size:0.72rem; letter-spacing:0.16em; color:var(--on-dark-soft); }
.hero__bar-social a:hover{ color:var(--accent); }
/* Grid with two equal (1fr) flanking columns keeps the dots pinned to the
   true horizontal center of the bar regardless of how many social links or
   how many sections/dots exist — unlike justify-content:space-between,
   which only equalizes the gaps and drifts off-center whenever the social
   block and the count text aren't the same width. */
.hero__bar-dots{ justify-self:center; display:flex; gap:10px; }
.hero__bar-dots .dot{ width:6px; height:6px; border:1px solid var(--on-dark-soft); }
.hero__bar-dots .dot.active{ background:var(--accent); border-color:var(--accent); }
.hero__bar-count{ justify-self:end; font-family:var(--f-head); font-weight:700; font-size:1rem; letter-spacing:0.04em; }
.hero__bar-count sup{ font-size:0.6rem; color:var(--on-dark-soft); }

/* ==========================================================================
   6. O NAS — 02
   ========================================================================== */
.about{ padding:clamp(90px,14vw,180px) var(--pad) clamp(80px,10vw,140px) calc(var(--rail-w) + var(--pad)); border-bottom:1px solid var(--line); }
.about__grid{ display:grid; grid-template-columns:36fr 64fr; gap:clamp(32px,5vw,80px); }
.about__lead h2{ font-family:var(--f-head); font-weight:800; font-size:clamp(2.1rem,3.6vw,3.2rem); line-height:1.02; letter-spacing:-0.01em; }
.about__stat{ margin-top:40px; display:flex; align-items:baseline; gap:14px; }
.about__stat span{ font-family:var(--f-head); font-weight:900; font-size:clamp(3rem,5vw,4.2rem); color:var(--accent); line-height:1; }
.about__stat small{ font-size:0.82rem; color:var(--ink-soft); max-width:16ch; line-height:1.4; }

.about__body p{ font-size:1.08rem; line-height:1.8; color:var(--ink-soft); max-width:60ch; }
.about__body p + p{ margin-top:22px; }
.about__body{ padding-bottom:36px; border-bottom:1px solid var(--line); margin-bottom:32px; }
.about__body .link-arrow{ margin-top:30px; }

.about__image{ margin-top:56px; height:clamp(240px,32vw,420px); position:relative; overflow:hidden; }
.about__image img{ width:100%; height:100%; }
.about__image::after{ content:'02'; position:absolute; left:18px; bottom:16px; font-family:var(--f-head); font-weight:700; letter-spacing:0.16em; font-size:0.68rem; color:var(--on-dark); background:rgba(19,18,16,0.55); padding:6px 10px; }

/* ==========================================================================
   7. OFERTA (teaser list, Home) — 03
   ========================================================================== */
.offer{ padding:clamp(80px,10vw,140px) var(--pad) clamp(80px,10vw,140px) calc(var(--rail-w) + var(--pad)); background:var(--paper-2); border-bottom:1px solid var(--line); }
.offer__intro{ font-size:1.15rem; line-height:1.8; color:var(--ink-soft); max-width:66ch; }
.offer__intro p + p{ margin-top:16px; }
.offer__intro a{ color:var(--accent); border-bottom:1px solid currentColor; }
.offer__grid{ display:grid; grid-template-columns:56fr 44fr; gap:clamp(30px,5vw,64px); align-items:start; margin-top:clamp(40px,6vw,64px); }

.offer__list{ border-top:1px solid var(--line); }
.offer__list li{ border-bottom:1px solid var(--line); }
.offer__list li a{
  display:flex; align-items:center; gap:24px;
  padding:20px 4px;
  transition:padding-left .3s ease, background .3s ease;
}
.offer__list li a:hover{ padding-left:16px; background:rgba(19,18,16,0.03); }
.offer__list li a:hover .offer__name{ color:var(--accent); }
.offer__num{ font-family:var(--f-head); font-weight:700; font-size:0.82rem; color:var(--ink-faint); min-width:28px; }
.offer__name{ font-family:var(--f-head); font-weight:700; font-size:clamp(1.05rem,1.8vw,1.5rem); transition:color .25s ease; }

.offer__media{ display:grid; gap:14px; }
.offer__img-main{ height:clamp(260px,26vw,360px); overflow:hidden; }
.offer__img-main img{ width:100%; height:100%; }
.offer__img-sub{ height:clamp(140px,14vw,190px); width:64%; overflow:hidden; justify-self:end; }
.offer__img-sub img{ width:100%; height:100%; }

/* ==========================================================================
   7b. OFERTA — distinct per-type detail sections (Oferta page). ADDITIVE:
   not in the original one-page design, which only showed the teaser list
   above; required by the brief's "distinct section per event type".
   ========================================================================== */
.offer-detail{ padding:clamp(70px,9vw,120px) var(--pad) clamp(70px,9vw,120px) calc(var(--rail-w) + var(--pad)); border-bottom:1px solid var(--line); }
.offer-detail:nth-child(odd){ background:var(--paper); }
.offer-detail:nth-child(even){ background:var(--paper-2); }
.offer-detail__grid{ display:grid; grid-template-columns:44fr 56fr; gap:clamp(32px,5vw,80px); align-items:center; }
.offer-detail--reverse .offer-detail__grid{ direction:rtl; }
.offer-detail--reverse .offer-detail__grid > *{ direction:ltr; }
.offer-detail__media{ height:clamp(260px,28vw,420px); overflow:hidden; }
.offer-detail__media img{ width:100%; height:100%; }
/* Variant with an optional second ("Dodatkowe zdjęcie") photo — swaps the
   single full-bleed image for the same main+sub composition used in the
   Oferta teaser list, so it needs its own height (not the fixed clamp()
   above, sized for one image) and a grid instead of a single filled box. */
.offer-detail__media--has-sub{ height:auto; overflow:visible; display:grid; gap:14px; }
/* Location pages with no photo yet (see template-parts/section-location-
   detail.php) — collapse to one column instead of leaving an empty box. */
.offer-detail--no-media .offer-detail__grid{ grid-template-columns:1fr; max-width:70ch; }
.offer-detail__title{ font-family:var(--f-head); font-weight:800; font-size:clamp(1.8rem,3vw,2.6rem); margin:14px 0 18px; letter-spacing:-0.01em; }
.offer-detail__desc{ font-size:1.05rem; line-height:1.8; color:var(--ink-soft); max-width:56ch; }
.offer-detail__desc p + p{ margin-top:16px; }
.offer-detail__price{ font-family:var(--f-head); font-weight:700; font-size:1.1rem; color:var(--accent); margin:22px 0 14px; }

/* ==========================================================================
   7c. OFERTA — hub/index page (grid of cards linking to each catering
   type's own dedicated page) + the "Zobacz też" related grid shown on
   each single offer page. ADDITIVE: each catering type now gets its own
   indexable URL for SEO, so this hub only teases rather than duplicating
   the full detail content.
   ========================================================================== */
.offer-hub{ padding:clamp(140px,14vw,200px) var(--pad) clamp(80px,10vw,140px) calc(var(--rail-w) + var(--pad)); }
.offer-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:clamp(20px,3vw,32px); }
.offer-card{ display:flex; flex-direction:column; border:1px solid var(--line); transition:border-color .25s ease; }
.offer-card:hover{ border-color:var(--accent); }
.offer-card:hover .offer-card__name{ color:var(--accent); }
.offer-card__media{ display:block; aspect-ratio:4/3; overflow:hidden; background:var(--paper-2); }
.offer-card__media img{ width:100%; height:100%; transition:transform .4s ease; }
.offer-card:hover .offer-card__media img{ transform:scale(1.05); }
.offer-card__body{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:22px; flex:1; }
.offer-card__num{ font-family:var(--f-head); font-weight:700; font-size:0.78rem; color:var(--ink-faint); }
.offer-card__name{ font-family:var(--f-head); font-weight:700; font-size:1.15rem; transition:color .25s ease; }
.offer-card__subtitle{ font-size:0.85rem; color:var(--ink-soft); }
.offer-card__price{ font-family:var(--f-head); font-weight:700; font-size:0.9rem; color:var(--accent); margin-top:4px; }
.offer-card .link-arrow{ margin-top:auto; padding-top:14px; font-size:0.8rem; }

.offer-breadcrumbs{ padding:130px var(--pad) 0 calc(var(--rail-w) + var(--pad)); font-size:0.8rem; color:var(--ink-faint); }
.offer-breadcrumbs a{ color:var(--ink-soft); border-bottom:1px solid var(--line); }
.offer-breadcrumbs a:hover{ color:var(--accent); }

.offer-related{ padding:clamp(70px,9vw,120px) var(--pad) clamp(70px,9vw,120px) calc(var(--rail-w) + var(--pad)); background:var(--paper-2); border-top:1px solid var(--line); }
.offer-related__grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(160px, 1fr)); gap:16px; }
.offer-related__card{ display:flex; flex-direction:column; gap:10px; }
.offer-related__img{ display:block; aspect-ratio:1/1; overflow:hidden; }
.offer-related__img img{ width:100%; height:100%; transition:transform .4s ease; }
.offer-related__card:hover .offer-related__img img{ transform:scale(1.06); }
.offer-related__name{ font-family:var(--f-head); font-weight:600; font-size:0.9rem; transition:color .25s ease; }
.offer-related__card:hover .offer-related__name{ color:var(--accent); }

/* ==========================================================================
   8. SKALA (stat) — 04
   ========================================================================== */
.stat{
  min-height:76vh; display:flex; flex-direction:column; align-items:flex-start; justify-content:center;
  padding:100px var(--pad) 100px calc(var(--rail-w) + var(--pad));
  color:var(--on-dark); overflow:hidden;
}
.stat__bg{ position:absolute; inset:0; }
.stat__bg img{ width:100%; height:100%; filter:grayscale(0.15) brightness(0.55); }
.stat__scrim{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(19,18,16,0.5), rgba(19,18,16,0.82)); }
.stat__content{ position:relative; z-index:1; }
.stat__figure{ font-family:var(--f-head); font-weight:900; font-size:clamp(5.5rem,17vw,13rem); line-height:0.85; letter-spacing:-0.02em; margin-top:18px; }
.stat__label{ font-family:var(--f-head); font-weight:600; font-size:0.85rem; letter-spacing:0.16em; text-transform:uppercase; color:var(--accent); margin-top:6px; }
.stat__copy{ margin-top:26px; max-width:52ch; font-size:1.05rem; line-height:1.75; color:var(--on-dark-soft); }

/* ==========================================================================
   9. ZASIĘG (coverage) — 05
   ========================================================================== */
.coverage{ padding:clamp(90px,12vw,160px) var(--pad) clamp(90px,12vw,160px) calc(var(--rail-w) + var(--pad)); border-bottom:1px solid var(--line); }
.coverage__grid{ display:grid; grid-template-columns:46fr 54fr; gap:clamp(30px,6vw,80px); align-items:start; }
.coverage__text p{ font-size:1.1rem; line-height:1.8; color:var(--ink-soft); max-width:48ch; }
.coverage__tags{ display:flex; flex-wrap:wrap; gap:10px; margin-top:28px; }
.coverage__tags li{ font-family:var(--f-head); font-weight:600; font-size:0.78rem; letter-spacing:0.06em; border:1px solid var(--line); padding:9px 16px; }
.coverage__map{ position:relative; padding-top:6px; }
.coverage__map svg{ width:100%; height:auto; }

/* ==========================================================================
   10. PROMOCJE / generic CTA banner — 06
   ========================================================================== */
.promo{ padding:clamp(90px,12vw,150px) var(--pad) clamp(90px,12vw,150px) calc(var(--rail-w) + var(--pad)); border-bottom:1px solid var(--line); }
.promo__title{ font-family:var(--f-head); font-weight:800; font-size:clamp(2.2rem,5vw,4rem); margin:20px 0 30px; letter-spacing:-0.01em; color:var(--ink-faint); }

/* ==========================================================================
   11. KONTAKT (CTA header) — 07
   ========================================================================== */
.cta{
  min-height:78vh; display:flex; flex-direction:column; justify-content:center;
  padding:150px var(--pad) 70px calc(var(--rail-w) + var(--pad));
  color:var(--on-dark); overflow:hidden;
}
.cta__bg{ position:absolute; inset:0; }
.cta__bg img{ width:100%; height:100%; filter:brightness(0.5) contrast(1.05); }
.cta__scrim{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(19,18,16,0.55), rgba(19,18,16,0.88)); }
.cta__content{ position:relative; z-index:1; }
.cta__lead{ font-family:var(--f-head); font-weight:600; font-size:1.1rem; letter-spacing:0.02em; margin-top:22px; color:var(--on-dark-soft); }
.cta__phone{
  display:inline-block; font-family:var(--f-head); font-weight:900;
  font-size:clamp(2.6rem,9vw,7rem); letter-spacing:-0.02em; line-height:1;
  margin:28px 0 40px; border-bottom:2px solid var(--accent); padding-bottom:12px;
  transition:color .25s ease, border-color .25s ease;
}
.cta__phone:hover{ color:var(--accent); }
.cta__details{ display:flex; flex-wrap:wrap; gap:8px 28px; font-size:0.9rem; color:var(--on-dark-soft); border-top:1px solid var(--line-dark); padding-top:26px; max-width:760px; }
.cta__details a:hover{ color:var(--accent); }

/* ==========================================================================
   11b. Kontakt — inquiry form + map. ADDITIVE: not in the approved design
   (which only had a phone CTA); required by the brief.
   ========================================================================== */
.contact-form{ padding:clamp(70px,9vw,120px) var(--pad) clamp(70px,9vw,120px) calc(var(--rail-w) + var(--pad)); }
.contact-form__grid{ display:grid; grid-template-columns:56fr 44fr; gap:clamp(30px,5vw,64px); align-items:stretch; }
.contact-form__map{ min-height:360px; }
.contact-form__map iframe{ width:100%; height:100%; min-height:360px; display:block; }

.krkc-form__row{ margin-bottom:22px; }
.krkc-form__row label{ display:block; font-family:var(--f-head); font-weight:600; font-size:0.75rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:8px; }
.krkc-form__row input,
.krkc-form__row select,
.krkc-form__row textarea{
  width:100%; font-family:var(--f-body); font-size:1rem; color:var(--ink);
  background:var(--paper); border:1px solid var(--line); padding:13px 14px;
  transition:border-color .2s ease;
}
.krkc-form__row input:focus,
.krkc-form__row select:focus,
.krkc-form__row textarea:focus{ outline:none; border-color:var(--accent); }
.krkc-form__row textarea{ resize:vertical; }
.krkc-form__submit{
  font-family:var(--f-head); font-weight:700; font-size:0.85rem; letter-spacing:0.08em; text-transform:uppercase;
  background:var(--ink); color:var(--paper); padding:16px 32px; border:1px solid var(--ink);
  transition:background .25s ease, color .25s ease;
}
.krkc-form__submit:hover{ background:var(--accent); border-color:var(--accent); }
.krkc-form__rodo{ font-size:0.78rem; color:var(--ink-faint); margin-top:16px; line-height:1.6; }
.krkc-form__row--checkbox label{ display:flex; align-items:flex-start; gap:10px; font-family:var(--f-body); font-weight:400; text-transform:none; letter-spacing:normal; font-size:0.85rem; color:var(--ink-soft); }
.krkc-form__row--checkbox input{ width:auto; margin-top:3px; flex-shrink:0; }
.krkc-form__row--checkbox a{ color:var(--accent); border-bottom:1px solid currentColor; }
.krkc-hp{ position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }
.form-notice{ font-family:var(--f-head); font-weight:600; font-size:0.9rem; padding:16px 18px; margin-bottom:26px; border:1px solid var(--line); }
.form-notice--ok{ border-color:var(--accent); color:var(--accent); }
.form-notice--error{ border-color:#B3261E; color:#B3261E; }

/* ==========================================================================
   11c. Galeria grid + filters + lightbox. ADDITIVE.
   ========================================================================== */
.gallery{ padding:clamp(80px,10vw,140px) var(--pad) clamp(80px,10vw,140px) calc(var(--rail-w) + var(--pad)); }
.gallery__filters{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom:36px; }
.gallery__filter{
  font-family:var(--f-head); font-weight:600; font-size:0.75rem; letter-spacing:0.06em; text-transform:uppercase;
  border:1px solid var(--line); padding:10px 18px; transition:background .2s ease, color .2s ease, border-color .2s ease;
}
.gallery__filter.is-active,
.gallery__filter:hover{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.gallery__grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:14px; }
.gallery__item{ display:block; aspect-ratio:1/1; overflow:hidden; cursor:zoom-in; }
.gallery__item img{ width:100%; height:100%; transition:transform .4s ease; }
.gallery__item:hover img{ transform:scale(1.06); }
.gallery__item.is-hidden{ display:none; }

.lightbox{
  position:fixed; inset:0; background:rgba(19,18,16,0.92); z-index:100;
  display:flex; align-items:center; justify-content:center; padding:40px;
  opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease;
}
.lightbox.is-open{ opacity:1; visibility:visible; }
.lightbox img{ max-width:100%; max-height:100%; width:auto; height:auto; }
.lightbox__close{ position:absolute; top:24px; right:28px; font-size:2.2rem; color:var(--on-dark); line-height:1; }
.lightbox__close:hover{ color:var(--accent); }

/* ==========================================================================
   11d. Generic page / blog fallback. ADDITIVE.
   ========================================================================== */
.page-content{ padding:clamp(140px,14vw,200px) var(--pad) clamp(80px,10vw,140px) calc(var(--rail-w) + var(--pad)); }
.page-content__image{ margin-bottom:40px; max-height:480px; overflow:hidden; }
.page-content__body{ font-size:1.08rem; line-height:1.8; color:var(--ink-soft); max-width:70ch; }
.page-content__body p + p,
.page-content__body ul,
.page-content__body ol{ margin-top:20px; }
.page-content__body ul{ list-style:disc; padding-left:1.2em; }
.page-content__body ol{ list-style:decimal; padding-left:1.2em; }
.page-content__body li + li{ margin-top:8px; }
.page-content__body h2,
.page-content__body h3{
  font-family:var(--f-head); font-weight:800; color:var(--ink); letter-spacing:-0.01em;
  margin-top:48px; margin-bottom:4px;
}
.page-content__body h2{ font-size:clamp(1.6rem,3vw,2.2rem); }
.page-content__body h3{ font-size:clamp(1.2rem,2.2vw,1.5rem); }
.page-content__body a{ color:var(--accent); border-bottom:1px solid currentColor; }

/* Promo items (Promocje page) — photo + eyebrow tag + heading + copy,
   side by side, separated by the same thin-line-divider pattern used
   throughout the rest of the site (offer list, about section, etc.)
   instead of a plain stacked, image-less text column. */
.page-content__body .promo-item{
  margin-top:40px; padding-top:32px; border-top:1px solid var(--line);
}
/* WordPress's Group block wraps its own children in this inner container
   (regardless of the markup originally saved) — the grid has to go here,
   not on .promo-item itself, or it only ever has that one wrapper as its
   single grid item. */
.page-content__body .promo-item > .wp-block-group__inner-container{
  display:grid; grid-template-columns:38fr 62fr; gap:clamp(20px,3vw,32px); align-items:center;
}
.page-content__body .promo-item:first-child{ margin-top:32px; }
.page-content__body .promo-item__image{ margin:0; height:clamp(160px,16vw,220px); overflow:hidden; }
.page-content__body .promo-item__image img{ width:100%; height:100%; object-fit:cover; }
.page-content__body .promo-item__tag{
  font-family:var(--f-head); font-weight:700; font-size:0.72rem;
  letter-spacing:0.18em; text-transform:uppercase; color:var(--accent);
  margin:0 0 10px;
}
.page-content__body .promo-item h3{ margin-top:0; margin-bottom:10px; }
.page-content__body .promo-item p{ margin-top:0; }

/* Native block-editor button, styled to match the rest of the button
   system (krkc-form__submit, nav__phone): square, uppercase Archivo,
   ink-on-paper flipping to accent on hover. */
.page-content__body .wp-block-buttons{ margin-top:36px; }
.page-content__body .wp-block-button__link{
  display:inline-block; font-family:var(--f-head); font-weight:700;
  font-size:0.85rem; letter-spacing:0.06em; text-transform:uppercase;
  background:var(--ink); color:var(--paper) !important; border:1px solid var(--ink);
  padding:16px 32px;
  transition:background .25s ease, color .25s ease, border-color .25s ease;
}
.page-content__body .wp-block-button__link:hover{ background:var(--accent); border-color:var(--accent); color:var(--paper) !important; }

/* Promocje page — two-column layout (content + sticky decorative graphic
   filling what would otherwise be a large empty column on wide screens). */
.promocje-layout{ display:grid; grid-template-columns:62fr 38fr; gap:clamp(32px,5vw,64px); align-items:start; }

.promocje-deco{ position:sticky; top:140px; height:60vh; max-height:560px; min-height:320px; overflow:hidden; }
.promocje-deco__percent{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  font-family:var(--f-head); font-weight:900; line-height:1; user-select:none;
  font-size:min(22vw, 320px); color:var(--accent); opacity:0.1;
  animation:krkcPromoBreathe 9s ease-in-out infinite;
}
.promocje-deco__tag{
  position:absolute; display:block; border:2px solid var(--accent);
}
.promocje-deco__tag--1{ top:14%; left:12%; width:64px; height:64px; --r:8deg; opacity:0.45; animation:krkcPromoFloat 7s ease-in-out infinite; }
.promocje-deco__tag--2{ bottom:20%; left:8%; width:40px; height:40px; --r:-12deg; opacity:0.35; animation:krkcPromoFloat 6s ease-in-out infinite 1.2s; }
.promocje-deco__tag--3{ top:22%; right:10%; width:26px; height:26px; background:var(--accent); border:0; opacity:0.18; --r:20deg; animation:krkcPromoFloat 8s ease-in-out infinite .6s; }

@keyframes krkcPromoFloat{
  0%,100%{ transform:translateY(0) rotate(var(--r,0deg)); }
  50%{ transform:translateY(-20px) rotate(calc(var(--r,0deg) + 6deg)); }
}
@keyframes krkcPromoBreathe{
  0%,100%{ transform:translate(-50%,-50%) scale(1); opacity:0.1; }
  50%{ transform:translate(-50%,-50%) scale(1.05); opacity:0.14; }
}
@media (prefers-reduced-motion: reduce){
  .promocje-deco__percent, .promocje-deco__tag{ animation:none !important; }
}

.blog-list{ display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:40px; }
.blog-list__thumb{ display:block; aspect-ratio:16/10; overflow:hidden; margin-bottom:16px; }
.blog-list__title{ font-family:var(--f-head); font-weight:700; font-size:1.3rem; margin-bottom:10px; }
.blog-list__title a:hover{ color:var(--accent); }
.blog-list__excerpt{ color:var(--ink-soft); line-height:1.7; }
.blog-list__item{ padding-bottom:30px; border-bottom:1px solid var(--line); }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.footer{ padding:40px var(--pad) 30px calc(var(--rail-w) + var(--pad)); background:var(--dark); color:var(--on-dark); }
.footer__top{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:24px; padding-bottom:26px; border-bottom:1px solid var(--line-dark); }
.footer__logo{ font-family:var(--f-head); font-weight:800; font-size:1rem; }
.footer__top nav{ display:flex; flex-wrap:wrap; gap:26px; }
.footer__top nav .menu{ display:flex; flex-wrap:wrap; gap:26px; }
.footer__top nav a{ font-family:var(--f-head); font-weight:600; font-size:0.75rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--on-dark-soft); }
.footer__top nav a:hover{ color:var(--accent); }
.footer__bottom{ display:flex; justify-content:space-between; gap:16px; padding-top:20px; font-size:0.75rem; color:var(--on-dark-soft); font-family:var(--f-head); letter-spacing:0.04em; flex-wrap:wrap; }

/* ==========================================================================
   13. FIXED PROGRESS INDEX — bottom-right, desktop only
   ========================================================================== */
.progress-index{
  position:fixed; right:var(--pad); bottom:20px; z-index:65;
  font-family:var(--f-head); font-weight:700; font-size:0.8rem;
  color:var(--ink-soft); opacity:0; pointer-events:none;
  transition:opacity .4s ease, color .3s ease;
}
.progress-index.visible{ opacity:1; }
.progress-index.on-dark{ color:var(--on-dark-soft); }
.progress-index sup{ font-size:0.55rem; }

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */
@media (max-width:980px){
  .rail{ display:none; }
  .nav__inner{ padding-left:var(--pad); gap:14px; }
  .nav__links{ display:none; }
  .nav__burger{ display:flex; }
  .nav__actions{ gap:12px; }
  .nav__phone{ font-size:0.7rem; padding:8px 10px; }

  .hero{ padding-left:0; }
  .hero__media{ left:0; bottom:auto; height:52vh; position:relative; }
  .hero__scrim{ background:linear-gradient(to top, var(--dark), rgba(19,18,16,0.15) 60%); }
  .hero__content{ padding:44px var(--pad) 40px; max-width:none; }
  .hero__title{ font-size:clamp(2.6rem,11vw,3.6rem); }
  .hero__bar{ display:flex; flex-wrap:wrap; padding:0 var(--pad); height:auto; padding-top:18px; padding-bottom:18px; gap:14px; justify-content:space-between; }

  .about,.offer,.stat,.coverage,.promo,.cta,.footer,.offer-detail,.contact-form,.gallery,.page-content,.offer-hub,.offer-related,.offer-breadcrumbs{ padding-left:var(--pad); }
  .about__grid,.offer__grid,.coverage__grid,.offer-detail__grid,.contact-form__grid,.page-content__body .promo-item > .wp-block-group__inner-container,.promocje-layout{ grid-template-columns:1fr; }
  .promocje-deco{ display:none; }
  .offer-detail--reverse .offer-detail__grid{ direction:ltr; }
  .offer__media{ margin-top:8px; }
  .offer__img-sub{ width:100%; justify-self:stretch; }

  .progress-index{ display:none; }
}

@media (max-width:560px){
  .cta__details{ flex-direction:column; gap:8px; }
  .footer__bottom{ flex-direction:column; }
}

/* Print: don't waste ink on chrome */
@media print{
  .rail,.nav,.mobile-nav,.progress-index,.gallery__filters,.krkc-form,.lightbox{ display:none !important; }
}
