/* ==========================================================================
   HOTEL IBIS STYLES NOWY SACZ
   Kierunek: "Sadecki modernizm" - ciepla, edytorska elegancja.
   Sliwka i miedz na cieplej bieli, Instrument Serif + Manrope,
   motyw luku z architektury hotelarskiej.
   Jeden arkusz, bez frameworka.
   ========================================================================== */

/* ------------------------------------------------------------- 1. TOKENY */
:root {
  /* ciepla skala neutralna */
  --ink:        #12100F;
  --ink-soft:   #2A2522;
  --paper:      #FCFAF7;
  --sand:       #F4EEE7;
  --sand-deep:  #EBE2D8;
  --line:       #E0D5C9;
  --line-soft:  #EFE9E2;
  --muted:      #6E6259;
  --muted-2:    #A2958A;

  /* marka */
  --plum:       #6B2A4A;
  --plum-deep:  #4A1B33;
  --plum-soft:  #F3EAEE;
  --copper:     #B5713E;
  --copper-dim: #8C5730;
  --sage:       #7F8F63;
  --amber-warn: #B07A0E;

  /* typografia */
  --font-display: 'Instrument Serif', 'Playfair Display', Georgia, serif;
  --font-body:    'Manrope', 'Segoe UI', system-ui, sans-serif;

  /* wymiary */
  --wrap: 1240px;
  --gutter: 24px;
  --r-sm: 2px;
  --r-md: 4px;
  --arch: 999px 999px var(--r-md) var(--r-md);
  --header-h: 88px;

  /* cienie */
  --sh-1: 0 1px 2px rgba(18, 16, 15, .04);
  --sh-2: 0 10px 30px -18px rgba(18, 16, 15, .22);
  --sh-3: 0 22px 54px -26px rgba(18, 16, 15, .34);

  /* ruch */
  --ease: cubic-bezier(.22, .68, .28, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .28s;
  --dur-slow: .6s;
}

/* --------------------------------------------------- 2. PRZEJSCIA STRON
   View Transitions API: przejscie miedzy podstronami bez przeladowania
   wizualnego. Przegladarki bez wsparcia po prostu tego nie widza.        */
@view-transition { navigation: auto; }

@keyframes vt-in  { from { opacity: 0; transform: translateY(10px); } }
@keyframes vt-out { to   { opacity: 0; transform: translateY(-6px); } }

::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in  .34s var(--ease-out) both; }

/* naglowek i stopka zostaja na miejscu przy przejsciu */
.masthead { view-transition-name: masthead; }
.footer   { view-transition-name: footer; }

/* ------------------------------------------------------------- 3. RESET */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.014em;
  line-height: 1.06;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
img, video, iframe, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }

a { color: var(--plum); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--copper); }

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 2px;
  border-radius: 1px;
}

::selection { background: var(--plum); color: var(--paper); }

/* -------------------------------------------------------------- 4. UKLAD */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(60px, 7.5vw, 104px); }
.section--tight { padding-block: clamp(40px, 5vw, 68px); }
.section--dark { background: var(--ink); color: var(--muted-2); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--paper); }
.section--sand { background: var(--sand); }
.section--plum { background: var(--plum); color: #E9D6DE; }
.section--plum h1, .section--plum h2, .section--plum h3 { color: #fff; }

.grid { display: grid; gap: var(--gutter); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.split--l { grid-template-columns: 1.15fr 1fr; }
.split--r { grid-template-columns: 1fr 1.15fr; }
.split--aside { grid-template-columns: .8fr 1.2fr; align-items: start; }
.between { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.row { display: flex; align-items: center; }
.wrapish { max-width: 44em; }

/* --------------------------------------------------------- 5. TYPOGRAFIA */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--copper);
}
.section--dark .eyebrow, .section--plum .eyebrow { color: var(--copper); }

.h-xl { font-size: clamp(38px, 5.6vw, 76px); }
.h-lg { font-size: clamp(30px, 4.1vw, 52px); }
.h-md { font-size: clamp(25px, 2.7vw, 36px); }
.h-sm { font-size: clamp(21px, 2vw, 28px); }

.lead { font-size: clamp(16px, 1.25vw, 18px); color: var(--muted); line-height: 1.72; }
.section--dark .lead { color: var(--muted-2); }
.section--plum .lead { color: #E4D2DC; }
.small { font-size: 14px; }
.tiny { font-size: 13px; color: var(--muted); }
.num { font-family: var(--font-display); font-weight: 400; line-height: .95; letter-spacing: -.02em; }
.ital { font-style: italic; color: var(--copper); }
.ph { color: var(--muted-2); font-weight: 600; }

/* ------------------------------------------------------------ 6. PRZYCISKI */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border: 0;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: 0 0 auto; transition: transform var(--dur) var(--ease); }
.btn:hover svg:last-child { transform: translateX(3px); }

.btn--primary { background: var(--plum); color: var(--paper); }
.btn--primary:hover { background: var(--plum-deep); color: var(--paper); box-shadow: var(--sh-2); }
.btn--copper { background: var(--copper); color: var(--ink); }
.btn--copper:hover { background: var(--copper-dim); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--plum); }
.btn--on-dark { background: transparent; color: var(--paper); border: 1px solid rgba(252, 250, 247, .5); }
.btn--on-dark:hover { background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid currentColor;
}
.link-arrow svg { transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* -------------------------------------------------------------- 7. GORA */
.topbar { background: var(--ink); color: var(--muted-2); font-size: 13px; }
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 44px; flex-wrap: wrap;
}
.topbar a { color: var(--paper); font-weight: 600; }
.topbar a:hover { color: var(--copper); }
.topbar__group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }

.rating-chip { display: inline-flex; align-items: center; gap: 8px; }
.rating-chip strong { color: var(--paper); }

.lang { display: inline-flex; gap: 2px; align-items: center; font-size: 12px; font-weight: 700; }
.lang__on { background: var(--plum); color: var(--paper); padding: 4px 9px; border-radius: var(--r-sm); }
.lang a { color: var(--muted-2); padding: 4px 9px; min-height: 32px; display: inline-flex; align-items: center; }

.masthead {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252, 250, 247, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease), min-height var(--dur) var(--ease);
}
.masthead.is-stuck { box-shadow: var(--sh-2); }
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: var(--header-h);
  transition: min-height var(--dur) var(--ease);
}
.masthead.is-stuck .masthead__inner { min-height: 68px; }
.masthead.is-stuck .brand img { height: 34px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 42px; width: auto; transition: height var(--dur) var(--ease); }
.brand__txt { display: block; }
.brand__name { font-family: var(--font-display); font-size: 19px; line-height: 1.05; }
.brand__tag {
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 13px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.nav a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 8px;
  height: 1px; background: var(--plum);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover { color: var(--plum); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--plum); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.burger {
  display: none; width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: var(--ink); border: 0; border-radius: var(--r-sm); cursor: pointer;
}
.burger__box { position: relative; width: 20px; height: 14px; }
.burger__box span {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--paper);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 6px; }
.burger__box span:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 14px 20px;
  border-radius: var(--r-sm); font-weight: 700;
  transition: top var(--dur) var(--ease);
}
.skip:focus { top: 12px; color: var(--paper); }

/* -------------------------------------------------------------- 8. HERO */
.hero {
  position: relative;
  min-height: clamp(480px, 66vw, 680px);
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero--tall { min-height: clamp(520px, 74vw, 760px); }
.hero--compact { min-height: clamp(360px, 44vw, 480px); }

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.hero__media video.is-playing { opacity: 1; }

/* powolne zblizenie na zdjeciu tla - dziala tez gdy filmu nie ma */
@keyframes kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.08) translate3d(0, -1.2%, 0); }
}
.hero__media img { animation: kenburns 22s var(--ease) both; }

/* Dwie warstwy: pozioma buduje nastroj, pionowa gwarantuje kontrast pod
   tekstem niezaleznie od tego, jak jasne jest zdjecie w tym miejscu. */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 16, 15, .30) 0%, rgba(18, 16, 15, 0) 34%,
                    rgba(18, 16, 15, .28) 78%, rgba(18, 16, 15, .52) 100%),
    linear-gradient(100deg, rgba(18, 16, 15, .94) 0%, rgba(18, 16, 15, .74) 44%,
                    rgba(18, 16, 15, .30) 100%);
}
.hero--plum::after {
  background:
    linear-gradient(180deg, rgba(30, 10, 20, .26) 0%, rgba(30, 10, 20, 0) 36%,
                    rgba(30, 10, 20, .30) 80%, rgba(30, 10, 20, .54) 100%),
    linear-gradient(96deg, rgba(74, 27, 51, .95) 0%, rgba(74, 27, 51, .74) 48%,
                    rgba(18, 16, 15, .34) 100%);
}
.hero__inner { position: relative; padding-block: clamp(56px, 8vw, 104px); }
.hero h1 { color: var(--paper); max-width: 16em; }
.hero .lead { color: #D8CEC3; max-width: 34em; margin-top: 24px; }

.hero__pills { display: flex; gap: clamp(18px, 3vw, 34px); margin-top: 36px; flex-wrap: wrap; }
.hero__pill { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #E8DFD5; }

.hero__stats { display: flex; gap: clamp(20px, 3vw, 40px); margin-top: 38px; flex-wrap: wrap; }
.hero__stat .num { font-size: clamp(30px, 3.4vw, 44px); color: var(--copper); }
.hero__stat span {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted-2); margin-top: 8px;
}
.hero__rule { width: 1px; background: rgba(252, 250, 247, .16); align-self: stretch; }

/* sterowanie filmem - WCAG 2.2.2: ruch dluzszy niz 5 s musi byc zatrzymywalny */
.video-toggle {
  position: absolute; right: 20px; bottom: 20px; z-index: 5;
  display: none; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 16px;
  background: rgba(18, 16, 15, .7); color: var(--paper);
  border: 1px solid rgba(252, 250, 247, .28); border-radius: var(--r-sm);
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; backdrop-filter: blur(4px);
  transition: background var(--dur) var(--ease);
}
.video-toggle.is-available { display: inline-flex; }
.video-toggle:hover { background: rgba(18, 16, 15, .92); }

/* ---------------------------------------------------- 9. PASEK REZERWACJI */
.rfq { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-3); }
.rfq--float { position: relative; margin-top: clamp(-40px, -5vw, -78px); z-index: 20; }
.rfq__tabs { display: flex; gap: 6px; padding: 12px 12px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.rfq__tab {
  min-height: 46px; padding: 0 22px;
  background: transparent; border: 0; border-radius: var(--r-sm) var(--r-sm) 0 0;
  font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.rfq__tab:hover { background: var(--sand); color: var(--ink); }
.rfq__tab[aria-selected="true"] { background: var(--plum); color: var(--paper); font-weight: 800; }
.rfq__panel { padding: 26px 28px 28px; }
.rfq__panel[hidden] { display: none; }
.rfq__panel:not([hidden]) { animation: vt-in .3s var(--ease-out) both; }
.rfq__fields { display: grid; gap: 18px; align-items: end; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }
.rfq__fields .field { margin-bottom: 0; }
.rfq__hint { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.rfq__hint svg { flex: 0 0 auto; margin-top: 3px; }

/* ------------------------------------------------------------- 10. KARTY */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--plum); }
.card--accent { border-color: var(--plum); }
.card--dark { background: #1B1614; border-color: #332A26; }
.card__media { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.card--link:hover .card__media { transform: scale(1.035); }
.card__figure { overflow: hidden; }
.card__body { padding: 26px; display: flex; flex-direction: column; flex: 1 1 auto; }
.card__kicker { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); }
.card__body > .btn:last-child, .card__body > .link-arrow:last-child { margin-top: auto; }

/* obraz w luku - motyw architektoniczny, uzywany oszczednie */
.arch { border-radius: var(--arch); overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

.chips-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-tag {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: var(--sand); color: var(--muted); padding: 5px 10px; border-radius: var(--r-sm);
}
.chip-tag--plum { background: var(--plum); color: var(--paper); }
.chip-tag--copper { background: var(--copper); color: var(--ink); }
.chip-tag--sage { background: #EDF0E5; color: #4F5B39; border: 1px solid var(--sage); }

.price { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.price__label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price__value { font-family: var(--font-display); font-size: 36px; line-height: 1; }
.price__unit { font-size: 14px; color: var(--muted); font-weight: 700; }

dl.spec-list { margin-top: 18px; }
.spec { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.spec:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; text-align: right; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 30px 26px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats .num { font-size: clamp(32px, 3.2vw, 46px); color: var(--plum); }
.stats span { display: block; font-size: 13px; color: var(--muted); margin-top: 8px; font-weight: 600; }

/* ------------------------------------------------------------ 11. TABELE */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.table-scroll table { min-width: 720px; }
.t-head th {
  padding: 16px 18px; background: var(--ink); color: #E8DFD5;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  text-align: left; white-space: nowrap;
}
.table-scroll td { padding: 18px; border-bottom: 1px solid var(--line-soft); font-size: 15px; vertical-align: middle; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll tbody tr.is-featured { background: #FBF7F2; }
.table-scroll td:first-child { font-weight: 700; }
.table-note { padding: 17px 18px; background: var(--sand); border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* -------------------------------------------------------- 12. FORMULARZE */
.field { display: block; margin-bottom: 18px; }
.field__label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.req { color: var(--copper-dim); }

.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.65; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: #A3512F; background: #FDF6F3;
}
.field__error { display: none; align-items: center; gap: 7px; margin-top: 7px; font-size: 12px; font-weight: 700; color: #A3512F; }
.field__error.is-shown { display: flex; animation: vt-in .2s var(--ease-out) both; }
.field--dark .field__label { color: var(--muted-2); }

.consent { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; line-height: 1.6; color: var(--muted); cursor: pointer; }
.consent input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--plum); }

.opt-row { display: flex; flex-wrap: wrap; gap: 12px; }
.opt {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 46px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.opt:hover { border-color: var(--muted); }
.opt input { width: 17px; height: 17px; accent-color: var(--plum); }
.opt:has(input:checked) { border-color: var(--plum); background: var(--plum-soft); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; background: var(--sand);
  border-left: 3px solid var(--copper); font-size: 13px; color: var(--muted); margin-top: 18px;
}
.form-status { display: none; align-items: flex-start; gap: 11px; padding: 16px 18px; border-radius: var(--r-sm); font-size: 14px; margin-top: 18px; }
.form-status.is-shown { display: flex; animation: vt-in .24s var(--ease-out) both; }
.form-status--ok { background: #EFF3EB; border: 1px solid var(--sage); color: #43512F; }
.form-status--err { background: #FDF2EE; border: 1px solid #A3512F; color: #8A3F23; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 46px; padding: 0 17px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------ 13. OPINIE */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px; }
.review__stars { display: flex; gap: 3px; margin-bottom: 16px; }
.review__who { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.review__who img { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; }
.review__avatar {
  width: 40px; height: 40px; border-radius: 999px; background: var(--plum); color: var(--paper);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: 0 0 auto;
}

/* --------------------------------------------------------- 14. GALERIA */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery__item {
  position: relative; padding: 0; border: 0; background: var(--sand-deep);
  cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--video::after { content: ''; position: absolute; inset: 0; background: rgba(18, 16, 15, .26); }
.gallery__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.gallery__play span { display: grid; place-items: center; width: 54px; height: 54px; background: var(--copper); border-radius: 999px; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: none; background: rgba(12, 10, 9, .96); }
.lightbox.is-open { display: grid; grid-template-rows: auto 1fr auto; animation: vt-in .24s var(--ease-out) both; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; }
.lightbox__count { font-size: 12px; color: var(--muted-2); font-weight: 700; letter-spacing: .1em; }
.lightbox__stage { display: grid; place-items: center; padding: 0 clamp(12px, 6vw, 78px); min-height: 0; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 78vh; width: auto; object-fit: contain; background: #000; border-radius: var(--r-sm); }
.lightbox__caption { padding: 16px 18px 26px; text-align: center; color: var(--muted-2); font-size: 14px; }
.lb-btn {
  display: grid; place-items: center; width: 52px; height: 52px;
  background: rgba(252, 250, 247, .1); color: var(--paper);
  border: 1px solid rgba(252, 250, 247, .22); border-radius: var(--r-sm); cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.lb-btn:hover { background: rgba(252, 250, 247, .22); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

/* --------------------------------------------------------------- 15. FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  min-height: 62px; padding: 20px 0;
  font-family: var(--font-display); font-size: clamp(18px, 1.7vw, 22px);
  cursor: pointer; list-style: none;
  transition: color var(--dur) var(--ease);
}
.faq summary:hover { color: var(--plum); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: 0 0 auto; width: 20px; height: 20px; margin-top: 6px;
  background: currentColor;
  clip-path: polygon(45% 0, 55% 0, 55% 45%, 100% 45%, 100% 55%, 55% 55%, 55% 100%, 45% 100%, 45% 55%, 0 55%, 0 45%, 45% 45%);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 24px; animation: vt-in .26s var(--ease-out) both; }
.faq details p { font-size: 15px; color: var(--muted); line-height: 1.75; }
.section--dark .faq details { border-color: #332A26; }
.section--dark .faq details p { color: var(--muted-2); }

/* ------------------------------------------------------- 16. KROKI, MAPA */
.steps { display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 18px; }
.step__no { font-family: var(--font-display); font-size: 30px; color: var(--copper); flex: 0 0 36px; line-height: 1; }
.step h4 { font-size: 18px; margin-bottom: 5px; }
.step p { font-size: 14px; color: var(--muted); }
.section--dark .step p { color: var(--muted-2); }

.map-embed {
  position: relative; aspect-ratio: 16 / 11;
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--r-md);
  display: grid; place-items: center; text-align: center; padding: 24px; overflow: hidden;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed__ph { display: grid; gap: 12px; justify-items: center; }

.checklist { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; align-items: flex-start; gap: 13px; font-size: 15px; }
.checklist svg { flex: 0 0 auto; margin-top: 4px; }

.breadcrumb { font-size: 12px; color: var(--muted); padding-block: 20px; font-weight: 600; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; }
.breadcrumb a { color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 9px; color: #C4B7AA; }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 700; }
.hero .breadcrumb { color: var(--muted-2); padding-top: 0; }
.hero .breadcrumb a { color: var(--muted-2); }
.hero .breadcrumb li[aria-current] { color: var(--paper); }

/* ------------------------------------------------------------ 17. STOPKA */
.footer { background: var(--ink); color: var(--muted-2); }
.footer h2, .footer h3, .footer .brand__name { color: var(--paper); }
.footer a { color: var(--muted-2); }
.footer a:hover { color: var(--copper); }
.footer__cols { display: grid; gap: clamp(28px, 4vw, 54px); grid-template-columns: 1.4fr 1fr 1fr 1.3fr; padding-block: clamp(48px, 6vw, 74px) 0; }
.footer__title { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--paper); margin-bottom: 18px; }
.footer__links { display: flex; flex-direction: column; gap: 2px; list-style: none; }
.footer__links a { display: block; padding: 6px 0; font-size: 14px; }
.footer__legal {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 60px); padding-block: 26px;
  border-top: 1px solid #29231F; font-size: 13px;
}
.footer__legal nav { display: flex; gap: 24px; flex-wrap: wrap; }
.socials { display: flex; gap: 12px; margin-top: 24px; }
.socials a {
  width: 42px; height: 42px; border: 1px solid #332C28; border-radius: var(--r-sm);
  display: grid; place-items: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.socials a:hover { background: var(--plum); border-color: var(--plum); }
.phone-lg { font-family: var(--font-display); font-size: 21px; color: var(--paper); }
.phone-lg:hover { color: var(--copper); }

/* ---------------------------------------------- 18. PASEK MOBILNY, DO GORY */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: none; gap: 10px; align-items: center; padding: 11px 16px;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 22px -16px rgba(18, 16, 15, .4);
}
.action-bar .btn { min-height: 50px; }
.action-bar__price { flex: 1 1 auto; }
.action-bar__price .num { font-size: 24px; }

.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 65;
  display: grid; place-items: center; width: 48px; height: 48px;
  background: var(--ink); color: var(--paper); border: 0; border-radius: var(--r-sm); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }

/* ------------------------------------------------------- 19. ZGODA COOKIE */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
  display: none; gap: clamp(20px, 3vw, 44px); grid-template-columns: 1.6fr 1fr; align-items: center;
  max-width: var(--wrap); margin-inline: auto; padding: clamp(20px, 3vw, 30px);
  background: var(--ink); color: var(--muted-2); border-radius: var(--r-md);
  box-shadow: 0 24px 60px -20px rgba(12, 10, 9, .7);
}
.cookie.is-shown { display: grid; animation: vt-in .3s var(--ease-out) both; }
.cookie h2 { font-size: 24px; color: var(--paper); }
.cookie p { font-size: 14px; margin-top: 10px; line-height: 1.65; }
.cookie a { color: var(--copper); }
.cookie__cats { display: flex; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.cookie__cats label { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: #E4E2DE; cursor: pointer; min-height: 32px; }
.cookie__cats input { width: 18px; height: 18px; accent-color: var(--copper); }
.cookie__actions { display: flex; flex-direction: column; gap: 10px; }

/* --------------------------------------------- 20. ODSLANIANIE PRZY SCROLLU */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

/* ------------------------------------------------------------- 21. POMOCNE */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ------------------------------------------------------ 22. RESPONSYWNOSC */
@media (max-width: 1080px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .split--l, .split--r, .split--aside { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 16px 20px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { min-height: 54px; padding: 0 8px; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .burger { display: flex; }
  .masthead__cta { display: none; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .action-bar { display: flex; }
  body { padding-bottom: 74px; }
  .to-top { bottom: 84px; }
  .cookie { grid-template-columns: 1fr; bottom: 84px; }
  .topbar__inner { min-height: 40px; font-size: 12px; }
  .topbar__group:first-child .topbar__item + .topbar__item { display: none; }
  .rfq--float { margin-top: 0; }
  .rfq__tab { flex: 1 1 100%; border-radius: var(--r-sm); }
  .lightbox__nav { top: auto; bottom: 14px; transform: none; }
  .arch { border-radius: 400px 400px var(--r-md) var(--r-md); }
}

@media (max-width: 620px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .stats > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats > div:last-child { border-bottom: 0; }
  .hero__rule { display: none; }
  .between { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .btn--sm, .action-bar .btn, .lb-btn, .chip, .opt { width: auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body, .rfq__panel, .review { padding: 20px; }
  .arch { border-radius: 260px 260px var(--r-md) var(--r-md); }
}

/* ------------------------------------------------- 23. RUCH, DRUK, KONTRAST */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .hero__media img { animation: none; }
  .hero__media video { display: none; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .masthead, .topbar, .action-bar, .to-top, .cookie, .rfq, .video-toggle, .lightbox { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .hero { min-height: auto; }
  .hero::after, .hero__media { display: none; }
  .hero h1, .hero .lead { color: #000; }
  .section { padding-block: 20px; }
  a { color: #000; text-decoration: underline; }
  .faq details > div { display: block !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .btn, .chip, .card, .table-scroll, .review { border: 1px solid ButtonText; }
  .hero::after { display: none; }
}
