/* Gracja 2.0. Jasny interfejs: biel i prawie czern na tekst, jeden kolor akcentu: granat aksamitu
   z sali (przyciski, ciemne sekcje, pole pod menu). Teksty nie opisuja sali kolorami.
   Naglowki: Literata (szeryf o niskim kontrascie kresek), tekst: Hanken Grotesk. Fonty: fonts.css. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --tint: #f2f2f2;
  --tint-2: #e6e6e6;
  --ink: #141517;
  --ink-2: #44464a;
  --ink-hover: #2e3034;
  --line: #d9dadc;
  --line-tint: #cfd0d3;
  --line-strong: #8a8d92;
  /* Akcent: granat aksamitu z sali i srebro dodatkow. Ciemne sekcje (kuchnia, stopka) w glebokim granacie. */
  --velvet: #112c78;
  --velvet-2: #1c43a3;
  --velvet-3: #0b1f5a;
  --silver: #d3d9e6;
  /* Wzor ogee (przeswitujacy, w polu pod menu i w sekcji mediow spolecznosciowych) */
  --ogee: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='64' viewBox='0 0 44 64'%3E%3Cg fill='none' stroke='%23cfd4de' stroke-width='.8'%3E%3Cpath d='M0 0c0 16 22 16 22 32S0 48 0 64M44 0c0 16-22 16-22 32s22 16 22 32'/%3E%3C/g%3E%3Cg fill='%23cfd4de'%3E%3Ccircle cx='22' cy='32' r='1.3'/%3E%3Ccircle cx='0' cy='0' r='1.3'/%3E%3Ccircle cx='44' cy='0' r='1.3'/%3E%3Ccircle cx='0' cy='64' r='1.3'/%3E%3Ccircle cx='44' cy='64' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
  --graphite: #0c1c4f;
  --on-dark: #f2f3f7;
  --on-dark-2: #b7c0d8;
  --on-dark-line: #2b3b70;
  --shadow: rgb(20 21 23 / .25);
  --error: #a3161c;

  --serif: "Literata", "Literata FB", Georgia, serif;
  --sans: "Hanken Grotesk", "Hanken FB", Arial, sans-serif;

  --maxw: 1400px;
  --gutter: clamp(20px, 3.7vw, 56px);
  --gap: clamp(12px, 1.8vw, 28px);
  --header-h: 76px;
  /* odstep sekcji: 2 x --section miedzy blokami, czyli najwyzej 160 px */
  --section: clamp(56px, 5.3vw, 80px);
  --ease-out: cubic-bezier(.2, .75, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
/* Plynne przewijanie wlacza main.js po wczytaniu strony (klasa smooth). Wejscie na adres z #kotwica
   (np. powrot formularza na #zapytanie) skacze od razu; klikniecia na tej samej stronie sa plynne. */
@media (prefers-reduced-motion: no-preference) { html.smooth { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 55ch; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 520;
  font-optical-sizing: auto;
  letter-spacing: -0.012em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 3.2vw, 48px); line-height: 1.1; letter-spacing: -0.018em; }
h2 { font-size: clamp(27px, 2.4vw, 36px); line-height: 1.14; margin-bottom: 0.55em; }
h3 { font-size: clamp(20px, 1.45vw, 22px); line-height: 1.25; margin-bottom: 0.5em; }
.lead { font-size: 19px; line-height: 1.55; font-weight: 500; }

.ico { width: 18px; height: 18px; flex: none; }
.ico-s { width: 14px; height: 14px; }
.ico-l { width: 26px; height: 26px; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: var(--section); }
.nw { white-space: nowrap; }
.sr, .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--on-dark); }

.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip:focus { top: 12px; }

/* Przyciski: prostokatne, bez zaokraglen */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  background: var(--velvet); color: #fff;
  border: 1px solid var(--velvet); border-radius: 0;
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, scale .12s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--velvet-2); border-color: var(--velvet-2); }
.btn-ghost { background: transparent; color: var(--velvet); border-color: var(--velvet); }
.btn-ghost:hover { background: var(--velvet); color: #fff; border-color: var(--velvet); }
.btn-light { background: var(--on-dark); color: var(--graphite); border-color: var(--on-dark); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--graphite); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em;
}

figcaption, .cap { font-size: 14.5px; font-weight: 500; color: var(--ink-2); margin-top: 12px; line-height: 1.45; }
/* Tekst 14-15 px: lekko rozstrzelony (jak w systemach Apple), ta sama wartosc wszedzie */
figcaption, .cap, .crumbs, .facts dt, .ft-h, .hero-place, .entry .wp-block-quote cite, thead th { letter-spacing: .01em; }

/* Cytaty z opinii (wspolny wzor podpisu) */
.quote { border-top: 1px solid var(--line); padding-top: 20px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 450; line-height: 1.5; max-width: 34em; }
.quote figcaption { margin-top: 10px; }
.dark .quote { border-top-color: var(--on-dark-line); }
.dark figcaption { color: var(--on-dark-2); }

/* Wejscie tekstu hero przy wczytaniu: krotkie, kaskadowe, tylko gdy ruch jest dozwolony. */
@media (prefers-reduced-motion: no-preference) {
  .hero-place, .hero-rating, .hero-lead, .hero-cta > * { animation: hero-rise .9s var(--ease-out) both; }
  .hero-lead { animation-delay: .32s; }
  .hero-cta > :first-child { animation-delay: .42s; }
  .hero-cta > :last-child { animation-delay: .48s; }
  .hero-rating { animation-delay: .56s; }
  .hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
  .hw > span { display: inline-block; animation: hw-in 1s var(--ease-out) both; animation-delay: calc(.06s + var(--i) * .07s); }
}
@keyframes hw-in { from { transform: translateY(120%); } to { transform: none; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Przyciski: wypelnienie wjezdza od lewej, ikona telefonu lekko sie przechyla */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--velvet-2); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.btn-ghost::before { background: var(--velvet); }
.btn-light::before { background: #fff; }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:hover { background: var(--velvet); }
.btn-ghost:hover { background: transparent; }
.btn-light:hover { background: var(--on-dark); }
.btn .ico { transition: transform .4s var(--ease-out); }
.btn:hover .ico { transform: rotate(-12deg) scale(1.08); }
@media (prefers-reduced-motion: reduce) { .btn::before, .btn .ico { transition: none; } }

/* ---------- NAGLOWEK ---------- */
#top-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgb(255 255 255 / .95);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s;
  view-transition-name: site-header;
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgb(255 255 255 / .86); backdrop-filter: blur(14px) saturate(140%); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: #fff; backdrop-filter: none; }
}
@media (min-width: 783px) {
  .admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgb(20 21 23 / .07); }
.header-in { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand-logo { width: 56px; height: 50px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.brand-place { font-size: 14px; color: var(--ink-2); font-weight: 500; }

.nav-list { display: flex; align-items: center; gap: 32px; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; font-weight: 550; text-decoration: none; padding: 8px 0; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease-out); }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }
.nav-link .ico-s { transition: transform .3s var(--ease-out); }
.nav-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 10px); left: -22px; min-width: 260px;
  background: #fff; border: 1px solid var(--line); padding: 10px 0;
  box-shadow: 0 18px 40px -18px var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
}
.drop::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.drop a { display: block; padding: 9px 22px; font-size: 15.5px; font-weight: 500; text-decoration: none; }
.drop a:hover, .drop a[aria-current] { background: var(--tint); }
.nav-drop:hover .drop, .nav-drop:focus-within .drop, .nav-drop.is-open .drop { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease-out); }
.nav-drop:hover .nav-link .ico-s, .nav-drop:focus-within .nav-link .ico-s, .nav-drop.is-open .nav-link .ico-s { transform: rotate(180deg); }
.nav-drop.is-closed .drop { opacity: 0; visibility: hidden; transform: translateY(-6px); }

.burger { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; border: 0; background: none; padding: 0; cursor: pointer; margin-right: -10px; color: var(--ink); }

/* Menu na telefonie: pelnoekranowy popover (dziala bez JS). Przegladarki bez popover: klasa is-open z main.js. */
.mnav { border: 0; padding: 0 20px 28px; margin: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; background: #fff; color: var(--ink); overflow-y: auto; inset: 0; }
.mnav::backdrop { background: rgb(20 21 23 / .3); }
@supports not selector(:popover-open) {
  .mnav:not(.is-open) { display: none; }
  .mnav.is-open { position: fixed; z-index: 100; }
}
.mnav-top { height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.mnav-group { font-size: 16px; color: var(--ink-2); margin: 0 0 6px; font-weight: 600; }
.mnav-list a { display: block; font-family: var(--serif); font-size: 23px; font-weight: 550; padding: 7px 0; text-decoration: none; }
.mnav-list a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.mnav-list-2 { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; margin-bottom: 24px; }

/* ==========================================================
   STRONA GLOWNA
   ========================================================== */

/* ---------- HERO ---------- */
.hero {
  --overlap: clamp(96px, 9vw, 150px);
}
/* Pole pod menu: granat sali, srodkiem jasniejszy jak swiatlo z kandelabrow, w tle przeswitujacy wzor. */
.hero-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(ellipse 70% 90% at 50% 0%, var(--velvet-2) 0%, var(--velvet) 55%, var(--velvet-3) 100%);
  color: #fff;
  padding: clamp(50px, 4.6vw, 72px) 0 calc(var(--overlap) + clamp(46px, 4.2vw, 64px));
}
/* Zdjecie sali w tle: przyciemnione granatem, bardzo wolno sie przybliza */
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: blur(1.5px) saturate(1.1); transform: scale(1.06); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 52 140 / .74) 0%, rgb(15 40 112 / .8) 55%, rgb(11 31 90 / .9) 100%), radial-gradient(ellipse 60% 80% at 50% 40%, rgb(9 26 78 / .32), transparent 70%); }
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: bg-drift 24s var(--ease-io) infinite alternate; }
}
@keyframes bg-drift { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
/* Wzor: siatka ogee ze srebrnych linii z kropkami na przecieciach. Wyraznie przy krawedziach,
   prawie znika za tekstem. Bardzo wolno dryfuje. */
.hero-band::before {
  content: ""; position: absolute; inset: -60px; z-index: -1; pointer-events: none;
  background-image: var(--ogee);
  background-size: 44px 64px;
  opacity: .1;
  -webkit-mask-image: radial-gradient(ellipse 46% 58% at 50% 40%, rgb(0 0 0 / .12) 0%, rgb(0 0 0 / .35) 45%, #000 100%);
          mask-image: radial-gradient(ellipse 46% 58% at 50% 40%, rgb(0 0 0 / .12) 0%, rgb(0 0 0 / .35) 45%, #000 100%);
}
/* Poswiata za kursorem: rozjasnia wzor i granat w miejscu, gdzie jest mysz */
.hero-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--bx, 50%) var(--by, -20%), rgb(207 212 222 / .13), transparent 70%);
  transition: opacity .6s;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-band::before { animation: pattern-drift 90s linear infinite; }
}
@keyframes pattern-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(44px, 64px, 0); } }

/* Uklad: wszystko na srodku, symetrycznie jak trzy kadry pod spodem */
.hero-top { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-place { display: flex; align-items: center; gap: 16px; font-size: 14.5px; font-weight: 550; color: var(--silver); margin: 0 0 12px; }
.hero-place::before, .hero-place::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .6; }
.hero-top h1 { color: #fff; font-size: clamp(30px, 3.1vw, 46px); margin: 0 auto; }
.hero-lead { font-size: 17px; line-height: 1.6; margin: 10px auto 0; max-width: none; color: #dfe3ea; }
.hero-row { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ph-cta { justify-content: flex-start; }
.hero-rating { display: inline-flex; align-items: center; gap: 12px; min-height: 50px; padding-left: 26px; border-left: 1px solid rgb(207 212 222 / .3); font-size: 14.5px; font-weight: 550; line-height: 1.6; color: var(--silver); text-decoration: none; }
.hero-rating > span:last-child { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease-out); }
.hero-rating:hover > span:last-child { background-size: 100% 1px; }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 14px; height: 14px; fill: var(--silver); }

/* Slowo zmieniajace sie w tytule: wszystkie slowa w jednej komorce siatki, szerokosc = najdluzsze */
.rot { display: inline-grid; vertical-align: top; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; position: relative; }
.anim .rot[style*='--rw'] { width: var(--rw); grid-template-columns: 100%; transition: width .7s var(--ease-io); }
.rot-w { grid-area: 1 / 1; justify-self: center; width: max-content; white-space: nowrap; }
.rot-w:not(.is-on) { visibility: hidden; }
.anim .rot-w { visibility: visible; opacity: 0; transform: translateY(120%); transition: transform .8s var(--ease-io), opacity .5s var(--ease-out); }
.anim .rot-w.is-on { transform: none; opacity: 1; transition-delay: .08s; }
.anim .rot-w.is-off { transform: translateY(-120%); opacity: 0; }
.rot::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: 2px; background: rgb(207 212 222 / .45); transform: scaleX(0); transform-origin: left; }
.anim .rot.tick::after { animation: rot-line var(--rot-ms, 2600ms) linear both; }
@keyframes rot-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Jasne przyciski na grafitowym polu */
.btn-ghost-light { background: transparent; color: #fff; border-color: rgb(207 212 222 / .6); }
.btn-ghost-light::before { background: #fff; }
.btn-ghost-light:hover { color: var(--velvet, #0f1d3a); border-color: #fff; background: transparent; }
.hero .btn-light { background: #fff; border-color: #fff; color: var(--velvet); }
.hero .btn-light::before { background: var(--silver); }
.hero .btn-light:hover { background: #fff; color: var(--velvet); }

/* Stan statyczny (telefon, Firefox, reduced motion): zdjecie budynku w siatce */
.hero-stage { position: relative; margin-top: calc(-1 * var(--overlap)); }
.hero-box { position: relative; }
.hero-aside { display: none; }
.hero-hint { display: none; }
.hero-frame { position: relative; z-index: 1; overflow: hidden; width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; height: clamp(420px, 70svh, 760px); background: var(--tint); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-out { object-position: 62% 58%; }
.hero-in { display: none; }
.hero-in picture { display: block; width: 100%; height: 100%; }
.hero-cap { position: relative; }
.cap-in { display: none; }

/* Efekt "z zewnatrz do srodka": natywne scroll-driven animations, tylko desktop i bez reduced motion.
   1) przy przewijaniu kadr budynku rozszerza sie z kolumn 2-11 do pelnej szerokosci,
   2) po przypieciu kurtyna (clip-path od srodka na boki) odslania sale. Bez przenikania. */
@media (min-width: 1024px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (view-timeline-inset: 0px) and (animation-range: entry) {
    .hero-stage {
      height: calc(100svh - var(--header-h) + 85svh);
      view-timeline: --hs block;
      view-timeline-inset: var(--header-h) 0px;
    }
    .hero-pin { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; }
    /* Na starcie: zdjecie budynku w kolumnach 3-10, po bokach dwa waskie kadry w kolumnach 1-2 i 11-12.
       Kadry stykaja sie bez przerw (w przerwach bylo widac krawedz granatowego pola). Przy przewijaniu
       boczne kadry odjezdzaja na zewnatrz, a budynek rozszerza sie i je przykrywa. */
    .hero-box {
      --W: min(var(--maxw), 100% - 2 * var(--gutter));
      --m: calc((100% - var(--W)) / 2);
      --c2: calc((var(--W) + var(--gap)) / 6);
      flex: 1 1 auto; min-height: 0; display: flex;
    }
    .hero-aside {
      display: block; position: absolute; z-index: 0; top: 0; bottom: 0; overflow: hidden;
      width: var(--c2); background: var(--tint);
      animation: hero-aside linear both; animation-timeline: scroll(root block); animation-range: 0px 45svh;
    }
    .hero-aside-l { left: var(--m); --dir: -1; }
    .hero-aside-r { right: var(--m); --dir: 1; }
    .hero-aside img { width: 100%; height: 100%; object-fit: cover; scale: 1.06; translate: calc(var(--mx, 0) * -14px) calc(var(--my, 0) * -10px); transition: translate .9s var(--ease-out); }
    .hero-aside-r img { object-position: 50% 40%; }
    .hero-frame {
      --hin: calc(var(--m) + var(--c2));
      width: 100%; height: auto; flex: 1 1 auto; min-height: 0;
      clip-path: inset(0 var(--hin) 0 var(--hin));
      animation: hero-open linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 50svh;
    }
    .hero-out { scale: 1.04; translate: calc(var(--mx, 0) * 10px) calc(var(--my, 0) * 7px); transition: translate .9s var(--ease-out); animation: hero-zoom linear both; animation-timeline: scroll(root block); animation-range: 0px 50svh; }
    .hero-hint {
      display: flex; align-items: center; gap: 12px; position: absolute; right: calc((100% + var(--gap)) / 3); top: 12px; margin: 0;
      animation: cap-out linear both; animation-timeline: scroll(root block); animation-range: 0px 30svh;
    }
    .hero-hint-line { position: relative; width: 44px; height: 1px; background: var(--line-strong); overflow: hidden; }
    .hero-hint-line::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: translateX(-100%); animation: hint-run 2.2s var(--ease-io) infinite; }
    .hero-in {
      display: block; position: absolute; inset: 0;
      clip-path: inset(0 50% 0 50%);
      animation: hero-curtain linear both;
      animation-timeline: --hs;
      animation-range: contain 18% contain 76%;
    }
    .hero-in img { object-position: 50% 60%; animation: hero-zoom linear both; animation-timeline: --hs; animation-range: contain 18% contain 100%; }
    .hero-cap {
      flex: none; height: 52px; padding-top: 12px;
      animation: cap-follow linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 50svh;
    }
    .hero-cap .cap { margin: 0; }
    .cap-out { animation: cap-out linear both; animation-timeline: --hs; animation-range: contain 18% contain 76%; }
    .cap-in { display: block; position: absolute; left: 0; top: 12px; animation: cap-in linear both; animation-timeline: --hs; animation-range: contain 18% contain 76%; }
  }
}
/* zdjecie sali jeszcze sie pobiera: podpis zostaje przy budynku (main.js, klasa hin-wait) */
.hin-wait .cap-out { animation: none; }
.hin-wait .cap-in { visibility: hidden; }
@keyframes hero-aside { from { transform: none; opacity: 1; } to { transform: translateX(calc(var(--dir) * 45%)) scale(.94); opacity: .35; } }
@keyframes hint-run { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
@keyframes hero-open { from { clip-path: inset(0 var(--hin) 0 var(--hin)); } to { clip-path: inset(0 0 0 0); } }
@keyframes hero-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes hero-curtain { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes cap-follow { from { transform: translateX(calc((100% + var(--gap)) / 6)); } to { transform: none; } }
@keyframes cap-out { 0%, 40% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes cap-in { 0%, 52% { opacity: 0; } 66%, 100% { opacity: 1; } }

/* ---------- SALA: tekst stoi, jedzie tylko pas zdjec ---------- */
.hg { padding-block: calc(var(--section) * 1.5) var(--section); }
.hg-grid { align-items: center; }
.hg-text { grid-column: 1 / 6; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px var(--gap); margin: 28px 0 30px; }
.spec div { border-top: 1px solid var(--line); padding-top: 10px; }
.spec dt { font-size: 14.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; }
.spec dd { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 500; line-height: 1.35; }

.hg-window { grid-column: 7 / 13; min-width: 0; timeline-scope: --rail; }
.hg-rail {
  /* statyczny pas na desktopie miesci sie w oknie razem z podpisem i strzalkami */
  --fh: clamp(300px, min(40vw, 100svh - var(--header-h) - 170px), 560px);
  display: flex; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-timeline: --rail inline;
}
.hg-rail::-webkit-scrollbar { display: none; }
.hg-fig { flex: none; width: calc(var(--fh) * 3 / 4); scroll-snap-align: start; }
.hg-ph { display: block; height: var(--fh); overflow: hidden; background: var(--tint); cursor: zoom-in; }
.hg-ph img { width: 100%; height: 100%; object-fit: cover; }
.hg-foot { display: flex; align-items: center; gap: 20px; margin-top: 18px; min-height: 2px; }
.hg-bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; display: none; }
.hg-bar span { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; }
@supports (animation-timeline: scroll()) {
  .hg-bar { display: block; }
  .hg-bar span { animation: bar-grow linear both; animation-timeline: --rail; }
}
@keyframes bar-grow { from { transform: scaleX(.12); } to { transform: scaleX(1); } }
.hg-arrows { display: none; gap: 8px; }
.arrow { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; padding: 0; transition: background-color .2s, color .2s, scale .12s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.arrow:hover { background: var(--ink); color: #fff; }
.arrow:disabled { opacity: .35; cursor: default; background: #fff; color: var(--ink); }
.arrow-prev .ico { transform: scaleX(-1); }
@media (hover: hover) and (pointer: fine) { .js .hg-arrows { display: flex; } }

/* Tryb przypiety: desktop, scroll-driven animations, bez reduced motion. Klase hg-on daje main.js,
   ktory liczy --travel (szerokosci figur sa w CSS, wiec nie zalezy to od wczytania zdjec). */
@media (min-width: 1024px) and (min-height: 640px) {
  .hg-on .hg {
    padding-block: 0;
    height: calc(100svh - var(--header-h) + var(--travel, 0px));
    view-timeline: --hg block;
    view-timeline-inset: var(--header-h) 0px;
  }
  .hg-on .hg-sticky { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
  .hg-on .hg-sticky > .wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); }
  .hg-on .hg-window { overflow: hidden; }
  .hg-on .hg-rail {
    --fh: clamp(340px, calc(100svh - var(--header-h) - 210px), 660px);
    overflow: visible; scroll-snap-type: none;
    animation: hg-move linear both;
    animation-timeline: --hg;
    animation-range: contain 0% contain 100%;
  }
  .hg-on .hg-bar span { animation-timeline: --hg; animation-range: contain 0% contain 100%; }
  .hg-on .hg-arrows { display: none; }
  .hg-on .hg + .oc { padding-top: 40px; }
}
@keyframes hg-move { to { transform: translateX(calc(-1 * var(--travel, 0px))); } }

/* ---------- OKAZJE ---------- */
.oc-grid { align-items: start; }
.oc-h { grid-column: 1 / 9; grid-row: 1; margin-bottom: .55em; }
.oc-list { grid-column: 1 / 9; grid-row: 2; border-bottom: 1px solid var(--line); }
.oc-list li { border-top: 1px solid var(--line); }
.oc-row { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 8px; padding: 24px 0 26px; text-decoration: none; }
.oc-thumb { display: none; }
.oc-name { font-family: var(--serif); font-size: clamp(23px, 1.9vw, 28px); font-weight: 560; line-height: 1.1; letter-spacing: -0.012em; transition: transform .5s var(--ease-out); }
.oc-desc { font-size: 17px; line-height: 1.55; color: var(--ink); max-width: 52ch; }
.oc-more { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
/* hover tylko przy prawdziwym ruchu myszy: przy przewijaniu kolkiem prowadzi wiersz na srodku ekranu (main.js) */
html:not(.js) .oc-row:hover .oc-more .ico, .mouse-on .oc-row:hover .oc-more .ico, .oc-row:focus-visible .oc-more .ico { transform: translateX(5px); }
@media (min-width: 1024px) {
  html:not(.js) .oc-row:hover .oc-name, .mouse-on .oc-row:hover .oc-name, .oc-row:focus-visible .oc-name { transform: translateX(8px); }
}
.oc-extra { grid-column: 1 / 9; grid-row: 3; margin: 26px 0 0; font-size: 17px; }
.oc-extra a { font-weight: 600; text-underline-offset: .2em; }
.oc-preview { display: none; }
@media (min-width: 1024px) {
  .oc-preview {
    display: block;
    grid-column: 9 / 13; grid-row: 1 / 4; align-self: start;
    position: sticky; top: calc(var(--header-h) + 40px);
    aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 80px);
    overflow: hidden; background: var(--tint);
  }
  .oc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); z-index: 0; }
  .oc-preview img.was-on { clip-path: inset(0); z-index: 1; }
  .oc-preview img.is-on { clip-path: inset(0); z-index: 2; }
  .anim .oc-preview img.is-on { transition: clip-path .9s var(--ease-io), transform 1.4s var(--ease-out); }
  .anim .oc-preview img:not(.is-on):not(.was-on) { transform: scale(1.06); }
}

/* ---------- OGROD ---------- */
.og-grid { align-items: start; }
.og-text { grid-column: 1 / 6; }
.og-a { grid-column: 7 / 10; }
.og-b { grid-column: 10 / 13; }
.og-a .rv-media, .og-b .rv-media { aspect-ratio: 3 / 4; }
.rv-media { overflow: hidden; background: var(--tint); }
.dark .rv-media { background: var(--graphite); }
.rv-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- KUCHNIA (ciemna) ---------- */
.dark { background: var(--graphite); color: var(--on-dark); }
.dark p { color: var(--on-dark); }
.kt-grid { align-items: center; }
.kt-img { grid-column: 1 / 6; }
.kt-img .rv-media { aspect-ratio: 4 / 5; }
.kt-text { grid-column: 7 / 13; }
.diets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); margin: 4px 0 28px; max-width: 560px; }
.diets li { font-family: var(--serif); font-size: 19px; font-weight: 500; padding: 11px 0; border-top: 1px solid var(--on-dark-line); }
.kt-text .btn { margin-top: 6px; }
.kt-text .quote { margin-top: 40px; }

/* ---------- OPINIE ---------- */
.op-grid { align-items: end; }
.op-h { grid-column: 1 / 7; grid-row: 1; margin: 0; }
.op-score { grid-column: 7 / 13; grid-row: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 28px; }
.score { display: flex; align-items: center; gap: 18px; margin: 0; max-width: none; }
.score-num { font-family: var(--serif); font-size: clamp(52px, 4.4vw, 68px); font-weight: 500; line-height: .9; letter-spacing: -0.03em; }
.score-of { font-size: 15px; line-height: 1.45; font-weight: 550; color: var(--ink-2); }
.op-score .link-arrow { margin-bottom: 6px; }
.op-feat { grid-column: 1 / 13; grid-row: 2; margin-top: clamp(40px, 4vw, 64px); border-top: 2px solid var(--ink); padding-top: 28px; }
.op-feat blockquote { margin: 0; font-family: var(--serif); font-size: clamp(22px, 1.9vw, 28px); font-weight: 500; line-height: 1.24; letter-spacing: -0.01em; text-wrap: balance; max-width: 26em; }
.op-feat figcaption { margin-top: 14px; font-size: 14.5px; }
.op-q1, .op-q2 { grid-row: 3; align-self: start; margin-top: 44px; }
.op-q1 { grid-column: 1 / 7; }
.op-q2 { grid-column: 7 / 13; }

/* ---------- NOCLEGI ---------- */
.tint { background: var(--tint); }
.tint .rv-media { background: var(--tint-2); }
.nc-grid { align-items: start; }
.nc-text { grid-column: 1 / 6; }
.nc-text .lead { margin-bottom: .7em; }
.nc-score { font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.35; border-top: 1px solid var(--line-tint); padding-top: 18px; margin: 28px 0 30px; max-width: 22em; }
.nc-side { grid-column: 7 / 13; }
.nc-imgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.nc-imgs .rv-media { aspect-ratio: 3 / 4; }
.nc-side .quote { margin-top: 36px; border-top-color: var(--line-tint); }

/* ---------- DOJAZD ---------- */
.dj-grid { align-items: start; }
.dj-text { grid-column: 1 / 6; }
.dj-addr { display: flex; gap: 12px; font-family: var(--serif); font-size: 21px; font-weight: 500; line-height: 1.3; margin-bottom: 16px; }
.dj-addr .ico { margin-top: 3px; }
.dj-addr a { text-decoration: none; }
.dj-addr a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.dj-text .btn { margin-top: 4px; }
.dj-data { grid-column: 7 / 13; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; }
thead th { font-size: 14px; font-weight: 600; color: var(--ink-2); padding-top: 0; border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 600; }
td { padding-left: 16px; white-space: nowrap; }
th:nth-child(2), td:nth-child(2) { text-align: right; }
th:nth-child(3), td:nth-child(3) { text-align: right; width: 9.5em; }
.dj-list { display: none; border-top: 2px solid var(--ink); }
.dj-list li { display: flex; flex-direction: column; padding: 12px 0 13px; border-bottom: 1px solid var(--line); line-height: 1.4; }
.dj-city { font-weight: 600; }

/* Mapa Google dopiero po kliknieciu (polityka prywatnosci to opisuje). Bez JS przycisk nie dziala,
   a link "Wyznacz trasę" obok prowadzi do Map Google. */
.dj-map { grid-column: 1 / -1; margin-top: clamp(40px, 4vw, 64px); }
.map-facade { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--tint); }
.map-facade img { width: 100%; height: 100%; object-fit: cover; }
.map-facade__button { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.map-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html:not(.js) .map-facade__button { display: none; }
.map-facade__note { font-size: 14.5px; color: var(--ink-2); margin: 12px 0 0; }

/* ---------- KONTAKT ---------- */
.ct-grid { align-items: start; }
.ct-text { grid-column: 1 / 6; }
.ct-phone { display: inline-block; font-family: var(--serif); font-size: clamp(32px, 2.8vw, 42px); font-weight: 550; letter-spacing: -0.02em; line-height: 1.1; text-decoration: none; margin: 8px 0 16px; white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 6px; }
.ct-addr { color: var(--ink-2); font-weight: 500; }
.social { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 8px; }
.social a { font-weight: 600; text-underline-offset: .22em; }

/* Formularz (inc/contact.php): na jasnym tle, bledy ciemnoczerwone */
.ct-grid > .inquiry { grid-column: 7 / 13; }
.inquiry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px var(--gap); align-content: start; }
.inquiry-status { grid-column: 1 / -1; margin: 0; max-width: none; padding: 14px 18px; font-size: 16px; font-weight: 600; line-height: 1.45; background: var(--tint); border-left: 3px solid var(--ink); }
.inquiry-status.is-error { color: var(--error); border-left-color: var(--error); background: #fbeeee; }
.inquiry-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 600; line-height: 1.35; }
.optional { font-weight: 450; color: var(--ink-2); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 0;
  font-size: 16.5px; line-height: 1.4; color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 128px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23141517' d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
.field input:hover:not([type="checkbox"]), .field select:hover, .field textarea:hover { border-color: var(--ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field [aria-invalid="true"], .field :user-invalid { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field__error { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--error); }
.field__note { display: none; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.field.is-prefilled .field__note { display: block; }
.field.is-prefilled select { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field-check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.field-check label { flex: 1 1 0; font-size: 14.5px; font-weight: 450; line-height: 1.5; color: var(--ink-2); }
.field-check label a { color: var(--ink); font-weight: 600; }
.field-check .field__error { flex-basis: 100%; }
.field .btn { align-self: flex-start; }

/* ---------- MEDIA SPOLECZNOSCIOWE: granat sali i wzor jak w polu pod menu ---------- */
.so {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse 70% 90% at 50% 0%, var(--velvet-2) 0%, var(--velvet) 55%, var(--velvet-3) 100%);
}
.so::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--ogee) 0 0 / 44px 64px; opacity: .09;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 30%, rgb(0 0 0 / .2), #000 100%);
          mask-image: radial-gradient(ellipse 60% 70% at 30% 30%, rgb(0 0 0 / .2), #000 100%);
}
.so h2 { color: #fff; margin-bottom: .35em; }
.so-lead { font-size: 18px; line-height: 1.55; color: #dfe3ea; margin: 0; }
.so-list { list-style: none; margin: clamp(32px, 3.4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.so-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 250px; padding: 28px;
  color: #fff; text-decoration: none;
  background: rgb(255 255 255 / .05); border: 1px solid rgb(211 217 230 / .28);
  transition: background-color .35s, border-color .35s, scale .12s var(--ease-out);
}
/* poswiata za kursorem (main.js ustawia --cx i --cy) */
.so-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--cx, 50%) var(--cy, 0%), rgb(255 255 255 / .14), transparent 70%);
  transition: opacity .4s;
}
.so-card:hover { background: rgb(255 255 255 / .09); border-color: rgb(211 217 230 / .6); }
.so-card:hover::before { opacity: 1; }
.so-card:active { scale: .985; }
.so-card:focus-visible { outline-color: #fff; }
.so-ico { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgb(211 217 230 / .45); transition: background-color .35s, color .35s, border-color .35s; }
.so-ico .icon { width: 28px; height: 28px; }
.so-card:hover .so-ico { background: #fff; border-color: #fff; color: var(--velvet); }
.so-name { font-family: var(--serif); font-size: clamp(24px, 2vw, 30px); font-weight: 520; line-height: 1.15; letter-spacing: -0.01em; margin-top: auto; padding-top: 36px; }
.so-handle { font-size: 15px; font-weight: 500; letter-spacing: .01em; color: var(--silver); margin-top: 6px; overflow-wrap: break-word; }
.so-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 15.5px; font-weight: 600; }
.so-go > span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .45s var(--ease-out); }
.so-go .ico { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.so-card:hover .so-go .ico { transform: translate(3px, -3px); }
/* kafle wchodza po kolei */
@media (prefers-reduced-motion: no-preference) {
  .anim .so-list:not(.now) li { opacity: 0; translate: 0 28px; transition: opacity .6s var(--ease-out), translate .8s var(--ease-out); }
  .anim .so-list:not(.now) li:nth-child(2) { transition-delay: .08s; }
  .anim .so-list:not(.now) li:nth-child(3) { transition-delay: .16s; }
  .anim .so-list.in li { opacity: 1; translate: none; }
}

/* ---------- STOPKA (ciemna) ---------- */
.site-footer { padding: clamp(64px, 6vw, 96px) 0 32px; }
.ft-grid { row-gap: 40px; }
.ft-brand { grid-column: 1 / 5; }
.ft-logo { width: 92px; height: 82px; margin-bottom: 18px; color: var(--on-dark); }
.ft-name { font-family: var(--serif); font-size: 20px; font-weight: 550; margin-bottom: 8px; }
.ft-brand p { color: var(--on-dark-2); font-size: 15px; margin-bottom: 10px; }
.ft-brand .ft-name { color: var(--on-dark); }
.ft-phone { color: var(--on-dark); font-weight: 600; font-size: 17px; text-decoration: none; }
.ft-phone:hover { text-decoration: underline; text-underline-offset: .22em; }
.ft-col:nth-of-type(1) { grid-column: 7 / 9; }
.ft-col:nth-of-type(2) { grid-column: 9 / 12; }
.ft-col:nth-of-type(3) { grid-column: 12 / 13; }
.ft-h { font-size: 14px; font-weight: 600; color: var(--on-dark-2); margin-bottom: 12px; }
.dark .ft-h { color: var(--on-dark-2); }
.ft-col li { margin-bottom: 8px; }
.ft-col a { display: inline-block; padding: 2px 0; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--on-dark); }
.ft-col a:hover, .ft-bottom a:hover { text-decoration: underline; text-underline-offset: .22em; }
.ft-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--on-dark-line); font-size: 16px; color: var(--on-dark-2); }
.ft-bottom p { margin: 0; max-width: none; }
.dark .ft-bottom p { color: var(--on-dark-2); }
.ft-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.ft-bottom a { color: var(--on-dark-2); text-decoration: none; }

.callbar { display: none; }

/* ==========================================================
   PODSTRONY
   ========================================================== */
.ph-head { padding-top: clamp(20px, 2.4vw, 36px); }
.ph-head + .tint { margin-top: calc(var(--section) * 1.25); }
.crumbs-nav { grid-column: 1 / -1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); margin-bottom: clamp(24px, 3vw, 44px); }
.crumbs a { color: var(--ink-2); text-underline-offset: .22em; }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-strong); }
.crumbs [aria-current] { color: var(--ink); }
.ph-grid { align-items: center; }
.ph-text { grid-column: 1 / 7; padding-bottom: 4px; }
.ph-noimg .ph-text { grid-column: 1 / 10; }
.ph-text h1 { font-size: clamp(32px, 3.2vw, 48px); margin-bottom: .45em; }
.ph-lead { font-size: 18px; line-height: 1.55; max-width: 30em; margin-bottom: 28px; }
.ph-lead a { font-weight: 600; text-underline-offset: .2em; }
.ph-img { grid-column: 7 / 13; }
.ph-img .rv-media { aspect-ratio: 3 / 2; width: 100%; }
.ph-img img { view-transition-name: oc-hero; }

.art { padding-top: calc(var(--section) * 1.25); }
.art-last { padding-bottom: calc(var(--section) * 1.5); }
.art-grid { align-items: start; }
.art-body { grid-column: 1 / 7; grid-row: 1; min-width: 0; }
.art-aside { grid-column: 9 / 13; grid-row: 1; }
.art-wide .art-body { grid-column: 1 / -1; }
/* Przyklejony tylko wtedy, gdy caly blok z przyciskami miesci sie pod naglowkiem. main.js mierzy blok
   i daje klase aside-pin; bez JS zostaje bezpieczny prog wysokosci okna. */
@media (min-width: 1024px) {
  .aside-pin .art-aside { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (min-width: 1024px) and (min-height: 860px) {
  html:not(.js) .art-aside { position: sticky; top: calc(var(--header-h) + 32px); }
}

.facts { border-top: 2px solid var(--ink); padding-top: 18px; }
.facts-h { font-family: var(--serif); font-size: 20px; font-weight: 560; margin: 0 0 6px; }
.facts dl { margin: 0 0 22px; }
.facts dl div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.facts dd { margin: 0; font-size: 16px; line-height: 1.45; }
.facts .btn { width: 100%; }
.facts .facts-phone { margin-top: 10px; }

/* ---------- TRESC PODSTRON: bloki z tools/build-pages.php ----------
   Style bloków rdzenia WP (galeria, obraz, cytat, details, lista) ladowane sa przed main.css.
   Galeria rdzenia ma selektory z :not(#individual-image), czyli specyficznosc ID, dlatego
   tu :not(#_):not(#_) (dwa ID) zamiast !important. */
.entry > h2 { margin-top: clamp(56px, 5.5vw, 80px); }
.entry > h2:first-child, .entry > :first-child { margin-top: 0; }
.entry > h3 { margin: 40px 0 12px; }
.entry p, .entry li { max-width: 75ch; }
.entry a { text-underline-offset: .2em; }
.entry p a, .entry li a { font-weight: 600; }
.entry ul.wp-block-list, .entry ol.wp-block-list { margin: 8px 0 28px; padding: 0; border-top: 1px solid var(--line); }
.entry .wp-block-list li { padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.5; }
.entry ol.wp-block-list { list-style: decimal inside; }

.entry .wp-block-gallery.has-nested-images {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
  margin: 32px 0 40px; padding: 0; flex-wrap: nowrap; align-items: start;
}
.entry .wp-block-gallery.has-nested-images:has(> .wp-block-image:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry .wp-block-gallery.has-nested-images figure.wp-block-image:not(#_):not(#_) { display: block; width: auto; max-width: none; margin: 0; flex: none; }
.entry .wp-block-gallery figure.wp-block-image:not(#_):not(#_) > a {
  display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 3 / 4); overflow: hidden; background: var(--tint); cursor: zoom-in;
}
.entry .wp-block-gallery figure.wp-block-image:not(#_):not(#_) img { display: block; width: 100%; height: 100%; max-width: 100% !important; object-fit: cover; }
.entry .wp-block-gallery figure.wp-block-image figcaption { position: static; background: none; color: var(--ink-2); text-shadow: none; padding: 0; text-align: left; font-size: 16px; margin-top: 10px; }
.entry .wp-block-gallery figure.wp-block-image:has(figcaption)::before { content: none; }
/* Bez dziur w ostatnim rzedzie: siatka 12 kolumn, kadr zajmuje 3 (cztery w rzedzie). Gdy zostaja
   2 zdjecia, sa po polowie; gdy 3, po jednej trzeciej; gdy 1, ostatnie piec idzie jako 2 + 3. */
@media (min-width: 1024px) {
  .entry .wp-block-gallery.has-nested-images,
  .entry .wp-block-gallery.has-nested-images:has(> .wp-block-image:nth-child(3):last-child) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .entry .wp-block-gallery.has-nested-images figure.wp-block-image:not(#_):not(#_) { grid-column: span 3; }
  .entry .wp-block-gallery figure.wp-block-image:not(#_):not(#_):nth-child(4n+1 of .wp-block-image):nth-last-child(2 of .wp-block-image),
  .entry .wp-block-gallery figure.wp-block-image:not(#_):not(#_):nth-child(4n+1 of .wp-block-image):nth-last-child(2 of .wp-block-image) + .wp-block-image,
  .entry .wp-block-gallery figure.wp-block-image:not(#_):not(#_):nth-child(4n+1 of .wp-block-image):nth-last-child(5 of .wp-block-image),
  .entry .wp-block-gallery figure.wp-block-image:not(#_):not(#_):nth-child(4n+1 of .wp-block-image):nth-last-child(5 of .wp-block-image) + .wp-block-image { grid-column: span 6; --ar: 3 / 2; }
  .entry .wp-block-gallery figure.wp-block-image:not(#_):not(#_):nth-child(4n+1 of .wp-block-image):nth-last-child(3 of .wp-block-image),
  .entry .wp-block-gallery figure.wp-block-image:not(#_):not(#_):nth-child(4n+1 of .wp-block-image):nth-last-child(3 of .wp-block-image) ~ .wp-block-image,
  .entry .wp-block-gallery figure.wp-block-image:not(#_):not(#_):nth-child(4n+1 of .wp-block-image):nth-last-child(5 of .wp-block-image) ~ .wp-block-image:nth-last-child(-n+3 of .wp-block-image) { grid-column: span 4; --ar: 1 / 1; }
}
@media (max-width: 1023px) {
  .entry .wp-block-gallery figure.wp-block-image:not(#_):not(#_):nth-child(2n+1 of .wp-block-image):nth-last-child(1 of .wp-block-image) { grid-column: 1 / -1; --ar: 3 / 2; }
}

.entry .wp-block-quote { margin: clamp(48px, 5vw, 72px) 0; padding: 26px 0 0; border: 0; border-top: 2px solid var(--ink); }
.entry .wp-block-quote p { margin: 0; max-width: 30em; font-family: var(--serif); font-size: clamp(21px, 1.7vw, 25px); font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; text-wrap: balance; }
.entry .wp-block-quote p:first-of-type::before { content: "„"; }
.entry .wp-block-quote p:last-of-type::after { content: "”"; }
.entry .wp-block-quote cite { display: block; margin-top: 14px; font-size: 14.5px; font-style: normal; font-weight: 500; color: var(--ink-2); }

/* Pytania: akordeon w kroju tresci. main.js plynnie zmienia wysokosc (od biezacej, mozna przerwac w polowie). */
.entry .wp-block-details { border-bottom: 1px solid var(--line); }
.entry > :not(.wp-block-details) + .wp-block-details, .entry > .wp-block-details:first-child { border-top: 1px solid var(--line); margin-top: 20px; }
.entry .wp-block-details summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 18px 0; font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.4;
}
.entry .wp-block-details summary::-webkit-details-marker { display: none; }
.entry .wp-block-details summary::after {
  content: ""; flex: none; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease-out);
}
.entry .wp-block-details[open]:not(.is-closing) summary::after { transform: rotate(180deg); }
.entry .wp-block-details.is-moving { overflow: hidden; }
.entry .wp-block-details > :not(summary) { margin: 0; padding-bottom: 22px; }

/* Inne przyjecia */
.more-oc { padding-top: calc(var(--section) * 1.5); }
.more-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); margin-top: 8px; }
.more-txt { aspect-ratio: 4 / 5; background: var(--tint); padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; }
.more-txt p { margin: 0; font-size: 15px; line-height: 1.45; }
.more-list a { display: block; text-decoration: none; }
.more-list .rv-media { aspect-ratio: 4 / 5; }
.more-name { display: block; font-family: var(--serif); font-size: 20px; font-weight: 560; line-height: 1.2; margin-top: 14px; }
.more-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }

/* Strona bledu i archiwa */
.ph-simple { padding-bottom: calc(var(--section) * 1.5); }
.ph-simple .ph-lead a { font-weight: 600; }
.post-list { margin-top: 40px; border-top: 1px solid var(--line); }
.post-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-list h2 { font-size: 24px; margin-bottom: 8px; }
.post-list h2 a { text-decoration: none; }

/* Podglad zdjec (dialog z main.js) */
.lb { border: 0; padding: 0; margin: auto; max-width: min(1200px, 100vw - 32px); max-height: calc(100dvh - 32px); background: transparent; overflow: visible; color: var(--on-dark); }
.lb::backdrop { background: rgb(14 15 17 / .9); } /* bez zmiennej: ::backdrop w starszych przegladarkach nie dziedziczy z :root */
.lb-fig { margin: 0; touch-action: pan-y; }
.lb img { max-width: min(1200px, 100vw - 32px); max-height: calc(100dvh - 150px); width: auto; height: auto; margin: 0 auto; transition: opacity .25s; }
.lb.is-loading img { opacity: .75; }
.lb-cap { color: var(--on-dark); font-size: 15px; margin: 12px auto 0; text-align: center; }
.lb-bar { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; }
.lb-count { min-width: 5.5em; text-align: center; font-size: 14px; font-weight: 500; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.lb .arrow { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.lb .arrow:hover { background: var(--on-dark); color: var(--ink); }
.lb.is-single .lb-step, .lb.is-single .lb-count { display: none; }

/* ==========================================================
   RESPONSYWNOSC
   ========================================================== */
@media (max-width: 1279px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .header-in { gap: 20px; }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .hero-cta .btn { padding: 0 20px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .art-body { grid-column: 1 / 9; }
  .art-aside { grid-column: 9 / 13; }
}
@media (max-width: 1023px) {
  :root { --header-h: 64px; }
  .so-card { min-height: 220px; padding: 22px; }
  body { font-size: 16.5px; padding-bottom: 76px; }
  .header-phone { display: none; }
  .brand-logo { width: 42px; height: 38px; }
  .brand-name { font-size: 19px; }
  .brand-place { font-size: 13.5px; }
  .lead { font-size: 18px; }

  .hero-place { font-size: 14.5px; }
  .hero-lead { font-size: 16.5px; }
  .hero { --overlap: 90px; }
  .hero-band { padding-bottom: calc(var(--overlap) + 36px); }
  .hero-place::before, .hero-place::after { display: none; }
  .hero-row { flex-direction: column; gap: 14px; margin-top: 20px; }
  .hero-cta { width: 100%; }
  .hero-rating { min-height: 0; padding-left: 0; border-left: 0; }
  .hero-frame { width: min(var(--maxw), 100% - 2 * var(--gutter)); height: 56svh; min-height: 300px; max-height: 540px; }
  .hero-cap { width: min(var(--maxw), 100% - 2 * var(--gutter)); }

  .hg { padding-block: var(--section); }
  .hg-text, .hg-window { grid-column: 1 / -1; }
  .hg-window { margin-top: 36px; margin-inline: calc(-1 * var(--gutter)); }
  .hg-rail { --fh: min(92vw, 440px); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); gap: 12px; }
  .hg-fig { width: calc(var(--fh) * 3 / 4); }
  .hg-foot { padding-inline: var(--gutter); }

  .oc-h, .oc-list, .oc-extra { grid-column: 1 / -1; }
  .oc-row { grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 12px 18px; padding: 22px 0 24px; }
  .oc-thumb { display: block; width: 72px; aspect-ratio: 1; overflow: hidden; grid-column: 1; grid-row: 1; background: var(--tint); }
  .oc-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .oc-name { grid-column: 2; grid-row: 1; font-size: 22px; }
  .oc-desc { grid-column: 1 / -1; grid-row: 2; font-size: 16.5px; }
  .oc-more { grid-column: 1 / -1; grid-row: 3; font-size: 15px; }

  .og-text, .kt-img, .kt-text, .nc-text, .nc-side, .dj-text, .dj-data, .ct-text, .ct-grid > .inquiry { grid-column: 1 / -1; grid-row: auto; }
  .og-grid { row-gap: 32px; }
  .og-a { grid-column: 1 / 7; }
  .og-b { grid-column: 7 / 13; }
  .kt-grid, .nc-grid, .ct-grid, .dj-grid { row-gap: 40px; }
  .kt-img .rv-media { aspect-ratio: 4 / 3; }
  .op-h, .op-score, .op-feat, .op-q1, .op-q2 { grid-column: 1 / -1; grid-row: auto; }
  .op-score { justify-content: flex-start; margin-top: 18px; }
  .op-feat { margin-top: 36px; }
  .op-q1, .op-q2 { margin-top: 32px; }
  .dj-text .btn { margin-top: 4px; }
  .dj-map { margin-top: 0; }
  .map-facade { aspect-ratio: 4 / 3; }
  .ft-brand { grid-column: 1 / -1; }
  .ft-col:nth-of-type(1) { grid-column: 1 / 7; }
  .ft-col:nth-of-type(2) { grid-column: 7 / 13; }
  .ft-col:nth-of-type(3) { grid-column: 1 / -1; }

  .ph-text, .ph-noimg .ph-text, .ph-img { grid-column: 1 / -1; }
  .ph-img { margin-top: 8px; }
  .ph-img .rv-media { aspect-ratio: 4 / 3; max-height: none; }
  .art-body, .art-aside { grid-column: 1 / -1; grid-row: auto; position: static; }
  .art-aside { margin-bottom: 48px; }
  .facts .btn { display: none; }
  .facts dl { margin-bottom: 0; }
  .art-body { grid-row: 2; }
  .entry .wp-block-gallery.has-nested-images,
  .entry .wp-block-gallery.has-nested-images:has(> .wp-block-image:nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; }
  .brand { gap: 10px; }
  .brand-place { white-space: nowrap; }

  .site-header { position: relative; }
  .callbar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / .94); border-top: 1px solid var(--line);
    transform: translateY(110%); visibility: hidden;
    transition: transform .35s var(--ease-out), visibility 0s .35s;
  }
  @supports (backdrop-filter: blur(10px)) { .callbar { background: rgb(255 255 255 / .84); backdrop-filter: blur(14px) saturate(140%); } }
  .callbar.is-on { transform: none; visibility: visible; transition: transform .35s var(--ease-out); }
  .callbar .btn { min-height: 52px; flex: 1; }
  .callbar .burger { width: 52px; height: 52px; margin: 0; border: 1px solid var(--ink); flex: none; }
  html:not(.js) .callbar { transform: none; visibility: visible; }
  html { scroll-padding-top: 16px; }
}
@media (max-width: 700px) {
  .dj-table { display: none; }
  .dj-list { display: block; }
  .more-list { grid-template-columns: minmax(0, 1fr); row-gap: 0; border-top: 1px solid var(--line); }
  .more-list li { border-bottom: 1px solid var(--line); }
  .more-list a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 2px 18px; align-items: center; padding: 16px 0; }
  .more-list .rv-media, .more-list .more-txt { aspect-ratio: 1; grid-row: 1 / 3; }
  .more-li-txt a { grid-template-columns: minmax(0, 1fr); }
  .more-li-txt .more-txt { display: none; }
  .more-name { margin-top: 0; font-size: 19px; align-self: end; }
  .more-go { margin-top: 0; align-self: start; }
}
@media (max-width: 640px) {
  .grid { column-gap: 12px; }
  .so-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .so-card { min-height: 0; padding: 20px; display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; align-items: center; }
  .so-ico { grid-row: 1 / 4; }
  .so-name { padding-top: 0; font-size: 23px; }
  .so-handle { margin-top: 2px; }
  .so-go { margin-top: 8px; }
  h2 { font-size: clamp(25px, 7vw, 30px); }
  .spec { grid-template-columns: 1fr; gap: 12px; }
  .spec dd { font-size: 17px; }
  .hero-cta .btn { width: 100%; }
  .diets li { font-size: 17.5px; }
  .op-feat blockquote { font-size: 21px; }
  .quote blockquote { font-size: 17px; }
  .score-num { font-size: 52px; }
  .nc-score { font-size: 19px; }
  .dj-addr { font-size: 19px; }
  .inquiry .field { grid-column: 1 / -1; }
  .field .btn { width: 100%; }
  .ct-phone { font-size: 32px; }
  .ph-lead { font-size: 17px; }
  .ph-text .btn { width: 100%; }
  .entry .wp-block-details summary { font-size: 16.5px; }
  .entry .wp-block-gallery.has-nested-images { gap: 12px; }
  .entry .wp-block-quote p { font-size: 20px; }
}
@media (max-width: 370px) {
  .brand-place { white-space: normal; }
}

/* ==========================================================
   EFEKTY (ruch tylko z klasa .anim: jest main.js i brak prefers-reduced-motion)
   Wszystko na transform, opacity i clip-path.
   ========================================================== */

/* Naglowki H2: linie w <span class="ln"> (gracja_lines), wysuwanie czysto w CSS, 0,7 s */
.rise .ln { display: block; }
.anim .rise .ln { overflow: clip; padding: .14em 0 .2em; margin: -.14em 0 -.2em; }
.anim .rise .ln > span { display: block; transform: translateY(115%); }
.anim .rise.in .ln > span { transform: none; transition: transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }

/* Odslanianie zdjec: czasowe (IO + transition), wiec po zatrzymaniu przewijania kadr zawsze sie domyka.
   .rv nadaje szablon, a w galeriach podstron main.js (figure.wp-block-image, gdzie kadrem jest link). */
.anim .rv .rv-media, .anim .wp-block-image.rv > a { clip-path: inset(100% 0 0 0); transition: clip-path .65s var(--ease-io); }
.anim .rv .rv-media img, .anim .wp-block-image.rv > a img { transform: scale(1.1); transition: transform 1.1s var(--ease-out); }
.anim .rv figcaption { opacity: 0; transition: opacity .5s .3s; }
.anim .rv.in .rv-media, .anim .wp-block-image.rv.in > a { clip-path: inset(0 0 0 0); }
.anim .rv.in .rv-media img, .anim .wp-block-image.rv.in > a img { transform: none; }
.anim .rv.in figcaption { opacity: 1; }
.anim .nc-imgs .rv:nth-child(2) .rv-media, .anim .og-b .rv-media,
.anim .wp-block-gallery .rv:nth-child(4n+2) > a { transition-delay: .08s; }
.anim .nc-imgs .rv:nth-child(3) .rv-media, .anim .wp-block-gallery .rv:nth-child(4n+3) > a { transition-delay: .16s; }
.anim .wp-block-gallery .rv:nth-child(4n+4) > a { transition-delay: .24s; }
/* elementy widoczne juz przy starcie: bez animacji */
.anim .now .rv-media, .anim .now .rv-media img, .anim .now figcaption, .anim .rise.now .ln > span,
.anim .wp-block-image.now > a, .anim .wp-block-image.now > a img { transition: none; }

/* Strzalki linkow przesuwaja sie przy najechaniu */
.link-arrow .ico, .oc-more .ico, .more-go .ico, .btn .ico-out { transition: transform .35s var(--ease-out); }
.link-arrow:hover .ico, .more-list a:hover .more-go .ico, .more-list a:focus-visible .more-go .ico { transform: translateX(4px); }
.link-arrow:hover .ico-out, .btn:hover .ico-out { transform: translate(3px, -3px); }

/* Reakcja od razu przy wcisnieciu, a nie dopiero po puszczeniu: przycisk lekko sie wciska
   (scale, wiec nie koliduje z animacjami transform), link przygasa. main.js wlacza :active na iOS. */
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
.btn:active, .arrow:active, .burger:active { scale: .97; }
:is(.nav-link, .crumbs a, .link-arrow, .social a, .ft-col a, .ft-bottom a, .ft-phone, .ct-phone, .hero-rating, .entry p a, .entry li a, .field-check label a, .brand):active,
.entry .wp-block-details summary:active { opacity: .6; }
:is(.oc-row, .more-list a, .hg-ph, .wp-block-gallery figure > a):active { opacity: .82; }

/* Cele dotyku co najmniej ok. 44 px: male linki dostaja wiekszy obszar klikniecia bez zmiany ukladu */
@media (pointer: coarse) {
  .crumbs a, .social a, .ft-bottom a, .entry p a, .entry li a, .field-check label a, .link-arrow, .ft-phone { padding-block: 12px; margin-block: -12px; }
  .ft-col li { margin-bottom: 0; }
  .ft-col a { padding: 11px 0; }
}
@media (pointer: coarse) and (max-width: 1023px) {
  .hero-rating { padding-block: 12px; margin-block: -12px; }
}

/* Delikatny zoom zdjec przy najechaniu (tylko mysz) */
@media (hover: hover) and (pointer: fine) {
  .rv-media img, .hg-ph img, .more-list img, .wp-block-gallery figure.wp-block-image > a img { transition: transform .8s var(--ease-out); }
  :is(.rv-media, .hg-ph, .wp-block-image > a):hover img,
  .anim .rv.in :is(.rv-media, .wp-block-image > a):hover img,
  .anim .wp-block-image.rv.in > a:hover img,
  .more-list a:hover img { transform: scale(1.04); }
  .ph-img .rv-media:hover img { transform: none; }
}

/* Menu na telefonie: wejscie z gory, pozycje po kolei */
@media (prefers-reduced-motion: no-preference) {
  .mnav { transition: opacity .3s, transform .4s var(--ease-out), overlay .4s allow-discrete, display .4s allow-discrete; }
  .mnav:not(:popover-open) { opacity: 0; transform: translateY(-12px); }
  @starting-style { .mnav:popover-open { opacity: 0; transform: translateY(-12px); } }
  .mnav:popover-open .mnav-list li { animation: mnav-item .5s var(--ease-out) both; animation-delay: calc(60ms + var(--i, 0) * 30ms); }
}
@keyframes mnav-item { from { opacity: 0; transform: translateY(10px); } }

/* Pytania: odpowiedz wjezdza i znika razem ze zmiana wysokosci (main.js) */
@media (prefers-reduced-motion: no-preference) {
  .entry .wp-block-details[open] > :not(summary) { animation: faq-in .35s var(--ease-out); }
  .entry .wp-block-details.is-closing > :not(summary) { animation: faq-out .22s var(--ease-io) forwards; }
  .lb[open] .lb-fig { animation: lb-in .35s var(--ease-out); }
  .lb[open]::backdrop { animation: fade-in .3s; }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@keyframes faq-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
@keyframes fade-in { from { opacity: 0; } }

/* Przejscia miedzy stronami (Chrome, Safari 18.2+): naglowek stoi, tresc przenika,
   zdjecie okazji przechodzi w zdjecie naglowka podstrony (nazwa oc-hero, main.js) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
  ::view-transition-group(oc-hero) { animation-duration: .5s; animation-timing-function: var(--ease-out); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
