/* ==========================================================================
   tri-d.pl — Milanodoro · spieki kwarcowe TRI-D
   Paleta wyprowadzona z materiału: bazalt / złota żyła / crema / taupe.
   Motyw przewodni: płyta 160 × 320 — wszystkie „slaby" mają prawdziwe proporcje.
   ========================================================================== */

:root {
  --ink:     #16150f;   /* bazalt — tło ciemnych sekcji, tekst */
  --ink-2:   #22201a;   /* płaszczyzna na ciemnym */
  --ink-3:   #34312a;
  --gold:    #b8935a;   /* złota żyła Desire Black — akcent, CTA */
  --gold-2:  #dcbd84;   /* jaśniejsza żyła — hover, tekst na ciemnym */
  --paper:   #f3f1ec;   /* tło strony — jasny kamień, chłodniejszy niż crema */
  --stone:   #e6e2da;   /* sekcje alternating / powierzchnie */
  --stone-2: #d9d4ca;
  --taupe:   #6b6258;   /* tekst pomocniczy (kontrast AA na papierze i kamieniu) */
  --gold-ink: #7d5f2e;  /* złoto jako TEKST na jasnym tle (AA); --gold tylko na tła i ciemne sekcje */
  --line:    #cbc5b9;   /* hairline */
  --text:    #1c1a15;

  --f-display: "TT Ricordi Nobili", Georgia, serif;
  --f-body:    "TT Smalls", "Segoe UI", system-ui, sans-serif;
  --f-mono:    "TT Smalls", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 56px);
  --sec: clamp(72px, 10vw, 140px);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17px/1.6 var(--f-body); letter-spacing: .005em;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; line-height: 1.05; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 7vw, 104px); }
h2 { font-size: clamp(32px, 4.2vw, 56px); }
h3 { font-size: 22px; line-height: 1.2; }
h1 em { font-style: italic; color: var(--gold-2); }
p { margin: 0 0 1em; }
.mono { font-family: var(--f-mono); font-size: .82em; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--taupe); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 96px); align-items: end; }
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 18px;
}
.eyebrow--light { color: var(--gold-2); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; font-weight: 300; max-width: 34em; color: #d9d4ca; }
.lead-s { font-size: 18px; max-width: 34em; color: var(--taupe); margin-top: 18px; }
.material__text { font-size: 18px; max-width: 36em; font-weight: 300; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.inv { filter: invert(1); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px;
  border: 1px solid transparent; border-radius: 2px; text-decoration: none; font-weight: 500;
  font-size: 15px; letter-spacing: .02em; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn--s { padding: 10px 16px; font-size: 14px; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--ghost:hover { background: rgba(0,0,0,.06); }
.btn--light, .hero .btn--ghost { color: var(--paper); }
.btn--light:hover, .hero .btn--ghost:hover { background: rgba(255,255,255,.08); }

/* ---------- nawigacja ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gut); color: var(--paper);
  transition: background .35s, backdrop-filter .35s, padding .35s;
}
.nav.is-scrolled { background: rgba(22,21,15,.88); backdrop-filter: blur(12px); padding-block: 10px; }
.nav__brand img { filter: invert(1); height: 36px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: 14.5px; letter-spacing: .03em; opacity: .85; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--gold-2); transition: right .3s var(--ease); }
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { right: 0; }
.nav__cta { display: flex; gap: 10px; }
.nav__cta .btn--ghost { color: var(--paper); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 0; padding: 10px; flex-direction: column; justify-content: center; gap: 7px; }
.nav__burger span { display: block; height: 1.5px; background: var(--paper); transition: transform .3s; }

/* ---------- HERO ---------- */
.hero {
  background: var(--ink); color: var(--paper);
  padding: calc(80px + 6vw) var(--gut) 0; position: relative; overflow: hidden;
}
.hero::before {
  /* podziałka „rysunku technicznego" w tle — co 40 px = 40 cm */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background:
    linear-gradient(var(--ink-3) 1px, transparent 1px) 0 0 / 100% 160px,
    linear-gradient(90deg, var(--ink-3) 1px, transparent 1px) 0 0 / 160px 100%;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 70%);
}
.hero__copy { position: relative; width: min(var(--wrap), 100%); margin-inline: auto; max-width: 900px; }
.hero__copy h1 { margin: 6px 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* płyta 320 × 160 z wymiarowaniem */
.slab--hero {
  position: relative; width: min(var(--wrap), 100%); margin: clamp(48px, 7vw, 96px) auto 0;
  padding: 0 0 56px 56px;
}
.slab--hero .slab__face {
  aspect-ratio: 2 / 1; overflow: hidden; background: var(--ink-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(220,189,132,.25);
}
.slab--hero video { width: 100%; height: 100%; object-fit: cover; }
.slab__cap { position: absolute; right: 0; top: -28px; color: var(--taupe); }
.dim { position: absolute; display: flex; align-items: center; gap: 10px; color: var(--gold-2); font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; }
.dim i { flex: 1; height: 1px; background: currentColor; position: relative; }
.dim i::before, .dim i::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: currentColor; }
.dim i::before { left: 0; } .dim i::after { right: 0; }
.dim--w { left: 56px; right: 0; bottom: 18px; }
.dim--h { left: 14px; top: 0; bottom: 56px; width: 12px; flex-direction: column; }
.dim--h i { width: 1px; height: auto; flex: 1; }
.dim--h i::before, .dim--h i::after { top: auto; left: -5px; width: 11px; height: 1px; }
.dim--h i::before { top: 0; } .dim--h i::after { bottom: 0; }
.dim--h b { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 500; }
.dim b { font-weight: 500; white-space: nowrap; }

/* ---------- MATERIAŁ ---------- */
.material { padding: var(--sec) 0; }
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(48px, 6vw, 88px) auto; padding: 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts div { padding: 26px 0; border-right: 1px solid var(--line); padding-right: 20px; }
.facts div + div { padding-left: 24px; }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 13px; color: var(--taupe); letter-spacing: .04em; }
.facts dd { margin: 6px 0 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; color: var(--ink); }
.features { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.features li { background: var(--paper); padding: 30px 28px 28px; transition: background .3s; }
.features li:hover { background: var(--stone); }
.features img { margin-bottom: 18px; opacity: .8; }
.features h3 { font-family: var(--f-body); font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.features p { margin: 0; color: var(--taupe); font-size: 15px; }

/* ---------- WZORY ---------- */
.patterns { background: var(--stone); padding: var(--sec) 0; }
.patterns__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: transparent; padding: 8px 14px; border-radius: 999px; font-size: 14px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--taupe); }
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.slabs { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 20px 18px; }
.slabs__item.is-hidden { display: none; }
.slab--card {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; position: relative;
}
.slab--card .slab__face {
  display: block; aspect-ratio: 1 / 2; overflow: hidden; position: relative;
  box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 18px 30px -20px rgba(0,0,0,.45);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.slab--card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
/* krawędź — barwiony w całej masie: kawałek wzoru „przechodzi" na bok płyty */
.slab__edge { position: absolute; left: 0; right: 0; bottom: 42px; height: 6px; background: inherit; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .45s var(--ease); pointer-events: none; }
.slab--card:hover .slab__face, .slab--card:focus-visible .slab__face { transform: translateY(-6px) rotateX(2deg); box-shadow: 0 30px 40px -24px rgba(0,0,0,.6); }
.slab--card:hover img { transform: scale(1.06); }
.slab__name { display: block; margin-top: 12px; font-family: var(--f-display); font-size: 17px; line-height: 1.15; }
.slab__meta { display: block; color: var(--taupe); margin-top: 2px; }
.patterns__note { margin-top: 40px; color: var(--taupe); font-size: 15px; max-width: 46em; }

/* lightbox */
.lb { border: 0; padding: 0; background: var(--ink); color: var(--paper); width: min(1100px, 94vw); max-height: 92vh; border-radius: 2px; }
.lb::backdrop { background: rgba(10,9,6,.82); backdrop-filter: blur(6px); }
.lb[open] { display: grid; grid-template-columns: 1.4fr 1fr; }
.lb__img { background: var(--ink-2); }
.lb__img img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; max-height: 92vh; }
.lb__info { padding: 44px 40px; display: flex; flex-direction: column; gap: 14px; }
.lb__info h3 { font-size: clamp(28px, 3vw, 40px); }
.lb__specs { margin: 8px 0 18px; padding: 0; display: grid; gap: 8px; border-top: 1px solid var(--ink-3); }
.lb__specs div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--ink-3); font-size: 14px; }
.lb__specs dt { color: var(--taupe); } .lb__specs dd { margin: 0; color: var(--gold-2); }
.lb__info .btn--ghost { color: var(--paper); }
.lb__close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: var(--paper); font-size: 32px; line-height: 1; cursor: pointer; width: 44px; height: 44px; }

/* ---------- GRUBOŚCI ---------- */
.thick { padding: var(--sec) 0; }
.thick__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: clamp(40px, 5vw, 72px); align-items: center; }
.thick__img { margin: 0; }
.thick__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.thick__img figcaption { margin-top: 12px; }
.thick__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.thick__list li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.thick__list h3 { font-family: var(--f-body); font-weight: 600; font-size: 18px; margin: 4px 0 6px; }
.thick__list p { margin: 0; color: var(--taupe); font-size: 15.5px; }
.thick__list b { color: var(--gold); font-weight: 500; }
.thick__bar { display: block; width: 40px; height: 13px; margin-top: 6px; background: linear-gradient(180deg, var(--ink-3), var(--ink)); box-shadow: inset 0 0 0 1px rgba(220,189,132,.3); }

/* ---------- WNĘTRZA ---------- */
.rooms { padding: var(--sec) 0; background: var(--ink); color: var(--paper); }
.rooms__mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(240px, 30vw); gap: 14px; margin-top: 48px; }
.rooms__item { margin: 0; position: relative; overflow: hidden; background: var(--ink-2); }
.rooms__item--tall { grid-row: span 2; }
.rooms__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.rooms__item:hover img { transform: scale(1.04); }
.rooms__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em;
  background: linear-gradient(transparent, rgba(22,21,15,.85)); color: var(--gold-2);
}

/* ---------- KONFIGURATOR ---------- */
.app { background: var(--ink-2); color: var(--paper); padding: var(--sec) 0; border-top: 1px solid var(--ink-3); }
.app__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.app__copy p:not(.eyebrow) { color: #cfc9be; font-size: 18px; max-width: 34em; margin-top: 20px; }
.app__steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-3); }
.app__steps li { display: flex; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--ink-3); font-size: 15px; letter-spacing: .04em; }
.app__steps span { color: var(--gold); }

/* ---------- DO POBRANIA ---------- */
.docs { padding: var(--sec) 0; }
.docs__list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.docs__list a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding-left .3s var(--ease); }
.docs__list a:hover { padding-left: 10px; }
.docs__list b { font-weight: 500; font-size: 19px; font-family: var(--f-display); }
.docs__list span { color: var(--taupe); white-space: nowrap; }

/* ---------- KONTAKT ---------- */
.contact { background: var(--stone); padding: var(--sec) 0; }
.contact .grid-2 { align-items: start; }
.contact__info p { max-width: 30em; font-size: 18px; }
address { font-style: normal; line-height: 1.8; margin-top: 28px; }
address a { text-decoration: none; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--taupe); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--paper); border: 1px solid var(--line); padding: 12px 14px; border-radius: 2px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); outline: none; }
.form textarea { resize: vertical; }
.check { display: flex !important; gap: 12px; align-items: start; font-size: 13.5px !important; }
.check input { width: 18px; height: 18px; margin-top: 3px; }
.hp { position: absolute; left: -9999px; }
.form__status { min-height: 1.4em; font-size: 15px; color: var(--gold-ink); margin: 0; }
.form__status.is-error { color: #a4573a; }

/* ---------- STOPKA ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 64px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.footer__brand p { color: var(--taupe); font-size: 15px; max-width: 26em; margin-top: 18px; }
.footer__partner { display: grid; gap: 12px; font-size: 13px; }
.footer__partner img { opacity: .85; }
.footer__links { display: grid; gap: 10px; font-size: 15px; }
.footer__links a { text-decoration: none; opacity: .8; }
.footer__links a:hover { opacity: 1; color: var(--gold-2); }
.footer__legal { margin-top: 56px; color: #9a9083; font-size: 12px; border-top: 1px solid var(--ink-3); padding-top: 20px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .slabs { grid-template-columns: repeat(5, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts div:nth-child(3) { padding-left: 0; }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open { background: var(--ink); flex-wrap: wrap; }
  .nav.is-open .nav__links { display: grid; width: 100%; order: 3; gap: 4px; padding: 16px 0 8px; border-top: 1px solid var(--ink-3); }
  .nav.is-open .nav__links a { padding: 10px 0; font-size: 18px; }
  .nav.is-open .nav__cta { display: flex; width: 100%; order: 4; padding-bottom: 12px; }
  .nav.is-open .nav__burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .grid-2, .thick__grid, .app__inner, .footer__inner { grid-template-columns: 1fr; }
  .slab--hero { padding-left: 34px; padding-bottom: 44px; }
  .dim--w { left: 34px; bottom: 10px; } .dim--h { left: 4px; bottom: 44px; }
  /* na telefonie podpis pod zdjęciem, nie na nim — nakładka zasłaniała kadr */
  .rooms__mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 20px 14px; }
  .rooms__item { display: flex; flex-direction: column; overflow: visible; background: none; }
  .rooms__item--tall { grid-row: auto; }
  .rooms__item img { aspect-ratio: 4 / 3; height: auto; }
  .rooms__item--tall img { aspect-ratio: 3 / 4; }
  .rooms__item figcaption {
    position: static; background: none; color: var(--stone-2);
    padding: 10px 0 0; font-size: 11px; line-height: 1.45;
  }
  .lb[open] { grid-template-columns: 1fr; overflow: auto; }
  .lb__img img { max-height: 46vh; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .slabs { grid-template-columns: repeat(3, 1fr); gap: 16px 12px; }
  .slab__name { font-size: 14px; }
  .features { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; padding-left: 0 !important; }
  .rooms__mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .rooms__item--tall { grid-row: span 1; }
  .rooms__item img, .rooms__item--tall img { aspect-ratio: 4 / 3; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- korekty po przeglądzie ---------- */
.contact__info h2, .docs h2, .rooms h2, .app h2 { margin-bottom: 20px; }
.form label .muted { display: inline; }
.form label > span.muted { margin-left: 4px; }
.form > .btn { justify-self: start; }

/* ---------- v1.1: jasny, beżowy hero (jak strona producenta), spokojniejszy nagłówek ---------- */
:root { --beige: #ece7de; }
.hero { background: var(--beige); color: var(--text); }
.hero::before { opacity: .5; background:
    linear-gradient(var(--stone-2) 1px, transparent 1px) 0 0 / 100% 160px,
    linear-gradient(90deg, var(--stone-2) 1px, transparent 1px) 0 0 / 160px 100%; }
.hero h1 { font-size: clamp(38px, 4.8vw, 64px); font-weight: 400; letter-spacing: 0; }
.hero .lead { color: var(--taupe); }
.hero .btn--ghost { color: var(--ink); }
.hero .btn--ghost:hover { background: rgba(0,0,0,.05); }
.slab--hero .slab__face { box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.dim { color: var(--gold); }
.nav { color: var(--ink); }
.nav__brand img { filter: none; }
.nav__cta .btn--ghost { color: var(--ink); }
.nav__burger span { background: var(--ink); }
.nav__links a::after { background: var(--gold); }
.nav.is-scrolled { background: rgba(236,231,222,.9); }
.nav.is-open { background: var(--beige); }
.nav.is-open .nav__links { border-top-color: var(--line); }
.material { background: var(--paper); }
.patterns { background: var(--stone); }
.contact { background: var(--beige); }
.facts dd, .lb__specs dd, .slab__meta, address .mono { text-transform: none; letter-spacing: .02em; }

/* ---------- v1.3: wideo jako tło hero ---------- */
.hero { background: var(--ink); color: var(--paper); min-height: 100svh; display: grid; align-items: center;
  padding: calc(90px + 4vw) var(--gut) clamp(64px, 8vw, 120px); }
.hero::before { background: linear-gradient(90deg, rgba(22,21,15,.78) 0%, rgba(22,21,15,.55) 55%, rgba(22,21,15,.25) 100%); opacity: 1; mask-image: none; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__copy { z-index: 1; }
.hero h1 { color: var(--paper); }
.hero .lead { color: #e3ded5; }
.nav { color: var(--paper); }
.nav__brand img { filter: invert(1); }
.nav__burger span { background: var(--paper); }
.nav__links a::after { background: var(--gold-2); }
.nav.is-scrolled { background: rgba(22,21,15,.88); }
.nav.is-open { background: var(--ink); }
.nav.is-open .nav__links { border-top-color: var(--ink-3); }
@media (max-width: 860px) { .hero { min-height: 82svh; } }
.nav__brands { display: flex; align-items: center; gap: 18px; }
.nav__sep { width: 1px; height: 28px; background: currentColor; opacity: .35; }
.nav__partner { filter: invert(1); height: 30px; width: auto; opacity: .95; }
@media (max-width: 560px) { .nav__partner { height: 18px; } .nav__sep { height: 22px; } .nav__brands { gap: 12px; } }

/* ---------- v1.4: panel pod tekstem hero (zakrywa obszar po usuniętym logo w spocie) ---------- */
.hero { align-items: center; }
.hero::before { background: linear-gradient(90deg, rgba(22,21,15,.55), rgba(22,21,15,.25)); }
.hero__copy {
  max-width: 980px; padding: clamp(32px, 4vw, 56px) clamp(28px, 4vw, 64px);
  background: rgba(16,15,11,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(220,189,132,.18); border-radius: 2px;
}
.hero__copy h1 { margin-top: 0; }
.hero__copy .lead { margin-bottom: 0; }
.hero__actions { margin-top: 28px; }
@media (max-width: 860px) { .hero { min-height: 100svh; } .hero__copy { padding: 28px 22px; } }

/* ---------- v1.4.1: jaśniejszy panel hero + spójne zaokrąglenia ---------- */
:root { --r: 6px; }
.btn, .form input, .form select, .form textarea, .lb { border-radius: var(--r); }
.hero__copy { background: rgba(16,15,11,.42); backdrop-filter: blur(22px) saturate(.9); -webkit-backdrop-filter: blur(22px) saturate(.9); border-radius: 10px; border-color: rgba(220,189,132,.22); }

/* ---------- v1.4.2: panel hero na granicy przezroczystości (maskuje głównie blur, nie czerń) ---------- */
.hero__copy { background: rgba(16,15,11,.22); backdrop-filter: blur(28px) saturate(.85); -webkit-backdrop-filter: blur(28px) saturate(.85); border-color: rgba(220,189,132,.2); }
.hero__copy h1, .hero__copy .lead { text-shadow: 0 1px 2px rgba(0,0,0,.35); }
@supports not (backdrop-filter: blur(1px)) { .hero__copy { background: rgba(16,15,11,.6); } }

/* ---------- v1.5: hero bez podkładu — kompozycja z logo Paradyż | TRI-D ze spotu ----------
   Desktop: hero = 16:9 (wideo bez kadrowania), logo w spocie zajmuje x 20.2–72.4 %, y 42.8–56.3 %.
   Nasz tekst siedzi NAD logo (wyrównany do jego lewej krawędzi), przycisk POD nim. */
.hero { min-height: 0; display: block; padding: 0; aspect-ratio: 16 / 9; }
.hero::before { background: linear-gradient(180deg, rgba(22,21,15,.55) 0%, rgba(22,21,15,.15) 30%, rgba(22,21,15,0) 60%); }
.hero__copy, .hero__cta { position: absolute; left: 20.2%; z-index: 1; padding: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; max-width: 52%; }
.hero__copy { top: 15%; }
.hero__copy h1 { font-size: clamp(30px, 4.4vw, 84px); text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.hero__copy .lead { font-size: clamp(14px, 1.35vw, 24px); margin-top: 1.2em; max-width: 30em; color: #ece7de; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.hero__cta { top: 60%; }
.hero__actions { margin: 0; }
@media (max-width: 860px) {
  .hero { aspect-ratio: auto; min-height: 92svh; display: grid; align-items: end; padding: 120px var(--gut) 56px; }
  .hero::before { background: linear-gradient(180deg, rgba(22,21,15,.2), rgba(22,21,15,.75) 70%); }
  .hero__copy, .hero__cta { position: static; max-width: none; }
  .hero__cta { margin-top: 24px; }
}
.hero__copy { max-width: 38%; }
.hero__copy h1 { font-size: clamp(28px, 3.9vw, 76px); }
.hero__copy .lead { max-width: 26em; }
@media (max-width: 860px) {
  .hero__copy { max-width: none; }
  .hero__copy h1 { font-size: clamp(34px, 9vw, 48px); }
  .hero__copy .lead { font-size: 17px; max-width: 32em; }
}

/* ---------- v1.5.3: stopka — same logotypy, bez claimu ---------- */
.footer__inner { grid-template-columns: 1fr auto; align-items: center; }
.footer__brands { display: flex; align-items: center; gap: 22px; }
.footer__brands img { height: 36px; width: auto; }
.footer__brands .footer__partner-logo { height: 30px; opacity: .9; }
.footer__links { display: flex; gap: 28px; }
@media (max-width: 860px) { .footer__inner { grid-template-columns: 1fr; } .footer__links { flex-direction: column; gap: 10px; } }

/* ==========================================================================
   Podstrony (/wzory/, /wzory/<slug>/) — v1.6
   ========================================================================== */
body.sub .nav { position: sticky; }
.sub-main { padding-top: 96px; }
.crumbs { padding: 110px 0 0; font-size: 12px; }
.crumbs + .sub-main { padding-top: 24px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; color: var(--taupe); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold-ink); }
.sub-head { padding: 24px 0 40px; }
.sub-head h1 { font-size: clamp(38px, 5.5vw, 76px); }
.sub-head .chips { margin-top: 28px; }
.chips a.chip { text-decoration: none; }
.slabs--links .slab--card { text-decoration: none; text-align: left; display: flex; flex-direction: column; }
.slab__look { display: block; font-size: 13px; line-height: 1.45; color: var(--taupe); margin-top: 6px; }
.sub-text { padding: var(--sec) 0; border-top: 1px solid var(--line); margin-top: var(--sec); }
.sub-text h2 { margin-bottom: 28px; font-size: clamp(28px, 3.2vw, 40px); }
.grid-2--top { align-items: start; }
.sub-text p { font-size: 17px; font-weight: 300; }

.pattern__hero { display: grid; grid-template-columns: minmax(220px, 2fr) 3fr; gap: clamp(28px, 5vw, 80px); align-items: start; padding-bottom: var(--sec); }
.pattern__slab { margin: 0; position: sticky; top: 96px; }
.pattern__slab img { width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(22,21,15,.45); }
.pattern__slab figcaption { margin-top: 12px; font-size: 11px; }
.pattern__intro h1 { font-size: clamp(40px, 6vw, 88px); margin: 8px 0 6px; }
.pattern__full { color: var(--taupe); font-size: 12px; margin-bottom: 20px; }
.pattern__specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; margin: 32px 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pattern__specs dt { font-size: 12px; color: var(--taupe); margin-bottom: 4px; }
.pattern__specs dd { margin: 0; font-size: 15px; }
.pattern__prices { border-collapse: collapse; margin: 0 0 28px; }
.pattern__prices th, .pattern__prices td { text-align: left; padding: 8px 24px 8px 0; border-bottom: 1px solid var(--line); }
.pattern__prices caption { text-align: left; padding-bottom: 8px; font-size: 11px; }
.pattern__body { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(28px, 5vw, 80px); align-items: start; padding: var(--sec) 0; border-top: 1px solid var(--line); }
.pattern__text h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 20px; }
.pattern__text h2 + p, .pattern__text p { font-size: 17px; font-weight: 300; max-width: 38em; }
.pattern__text h2:not(:first-child) { margin-top: 44px; }
.pattern__text h3 { font-size: 18px; margin: 32px 0 14px; }
.pattern__uses { padding-left: 1.2em; font-size: 17px; font-weight: 300; }
.pattern__uses li { margin-bottom: 6px; }
.pattern__thick div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.pattern__thick dt { color: var(--gold-ink); }
.pattern__thick dd { margin: 0; font-size: 15px; }
.pattern__vis { position: sticky; top: 96px; display: grid; gap: 14px; }
.pattern__vis figure { margin: 0; }
.pattern__vis img { width: 100%; height: auto; }
.pattern__vis-note { font-size: 13px; margin: 4px 0 0; }
.pattern__props, .pattern__faq, .pattern__related { padding: var(--sec) 0; border-top: 1px solid var(--line); }
.pattern__props h2, .pattern__faq h2, .pattern__related h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 28px; }
.props { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px 40px; font-size: 16px; font-weight: 300; }
.props li { padding-top: 14px; border-top: 1px solid var(--line); }
.props b { font-weight: 500; }
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--f-display); font-size: 21px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 26px; line-height: 1; flex: none; }
.faq[open] summary::after { content: "–"; }
.faq p { max-width: 44em; font-weight: 300; padding-bottom: 18px; margin: 0; }
.slabs--related { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 32px; }

.cta-band { background: var(--ink); color: var(--paper); padding: var(--sec) 0; }
.cta-band__inner { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: 16px; font-size: clamp(30px, 3.6vw, 48px); }
.cta-band p:last-child { color: var(--stone-2); font-weight: 300; max-width: 34em; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* FAQ na stronie głównej */
.faqs { padding: var(--sec) 0; background: var(--stone); }
.faqs .grid-2 { align-items: start; }

@media (max-width: 860px) {
  .pattern__hero, .pattern__body, .cta-band__inner { grid-template-columns: 1fr; }
  .pattern__slab, .pattern__vis { position: static; }
  .pattern__slab { max-width: 320px; }
  .cta-band__actions { justify-content: flex-start; }
  .crumbs { padding-top: 90px; }
}
a.slab--card { text-decoration: none; color: inherit; display: block; }
.patterns__more { margin-top: 40px; }
.cta-band .btn--light { border-color: currentColor; }
.pattern__hero > *, .pattern__body > *, .cta-band__inner > *, .grid-2 > * { min-width: 0; }
body.sub { overflow-x: clip; }
.thick__bar--12 { height: 26px; }
.thick__bar--20 { height: 44px; }

/* Polityka prywatności (bez inline style — CSP style-src 'self') */
.legal { padding: 140px 0 100px; max-width: 760px; }
.legal h1 { font-size: clamp(32px, 5vw, 56px); }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal ul { padding-left: 20px; }
.legal__back { margin-top: 48px; }
/* złoty tekst na ciemnych sekcjach */
.rooms .eyebrow, .app .eyebrow, .cta-band .eyebrow, .footer .eyebrow { color: var(--gold); }
