/* Royal Club Warsaw — arkusz stylów */

:root {
  --ink: #0d1013;
  --ink-2: #12161b;
  --panel: #171c22;
  --panel-2: #1d232a;
  --line: #262d35;
  --line-2: #333c46;
  --text: #e8eaed;
  --text-2: #a9b2bc;
  --text-3: #7d868f;
  --gold: #c9a227;
  --gold-2: #e0be4e;
  --green: #2f6b53;
  --radius: 3px;
  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

html.is-locked, html.is-locked body { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: .005em;
}
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #10130f; padding: .7rem 1.1rem; font-weight: 600;
}
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  display: block;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.lead { font-size: clamp(1.03rem, .98rem + .3vw, 1.16rem); color: var(--text-2); max-width: 68ch; }
.muted { color: var(--text-2); }
.small { font-size: .88rem; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ---------- Nagłówek ---------- */

.topbar {
  background: #0a0c0f;
  border-bottom: 1px solid var(--line);
  font-size: .82rem;
  color: var(--text-3);
}
.topbar__in { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; justify-content: space-between; padding-block: .5rem; }
.topbar a { color: var(--text-2); }
.topbar a:hover { color: var(--gold-2); }
.topbar__list { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.55rem; height: 1.55rem; border: 1px solid var(--gold);
  border-radius: 50%; color: var(--gold); font-size: .66rem; font-weight: 700; letter-spacing: 0;
}

.site-head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(13, 16, 19, .96);
  border-bottom: 1px solid var(--line);
}
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { display: block; font-family: var(--serif); font-size: 1.12rem; line-height: 1.1; }
.brand__sub { display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }

.nav__list { display: flex; align-items: center; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.nav__link {
  display: block; padding: .6rem .72rem; color: var(--text-2);
  font-size: .92rem; border-radius: var(--radius);
}
.nav__link:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--gold-2); box-shadow: inset 0 -2px 0 var(--gold); }

.has-sub { position: relative; }
.sub-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  font: inherit; font-size: .92rem; color: var(--text-2);
  background: none; border: 0; padding: .6rem .72rem; cursor: pointer; border-radius: var(--radius);
}
.sub-toggle:hover { color: var(--text); background: var(--panel); }
.sub-toggle__chev { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .18s; }
.sub-toggle[aria-expanded="true"] .sub-toggle__chev { transform: rotate(225deg) translateY(-2px); }
.sub {
  position: absolute; top: calc(100% + 4px); left: 0; min-width: 224px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .35rem; margin: 0; list-style: none; box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.sub[hidden] { display: none; }
.sub a { display: block; padding: .55rem .7rem; color: var(--text-2); font-size: .9rem; border-radius: var(--radius); }
.sub a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }

.head-cta { display: flex; align-items: center; gap: .6rem; }
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2);
  background: transparent; border-radius: var(--radius); cursor: pointer; padding: 0;
}
.burger span, .burger::before, .burger::after {
  content: ""; display: block; width: 20px; height: 1.5px; background: var(--text); margin: 0 auto; transition: transform .2s, opacity .2s;
}
.burger span { margin: 5px auto; }
.burger[aria-expanded="true"]::before { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span { opacity: 0; }
.burger[aria-expanded="true"]::after { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.35rem; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--sans); font-size: .93rem; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; transition: background-color .18s, color .18s, border-color .18s;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn--gold { background: var(--gold); color: #14100a; }
.btn--gold:hover { background: var(--gold-2); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }
.btn--wide { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }

/* ---------- Hero ---------- */

.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(9,11,14,.94) 0%, rgba(9,11,14,.86) 45%, rgba(9,11,14,.5) 100%);
}
.hero__body { position: relative; z-index: 2; padding-block: clamp(3rem, 9vw, 6.5rem); }
.hero__in { max-width: 44rem; }
.hero h1 { margin-bottom: .5em; }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1.9rem; font-size: .87rem; color: var(--text-2); }
.hero__meta strong { color: var(--text); font-weight: 600; }

.page-head { background: var(--ink-2); border-bottom: 1px solid var(--line); padding-block: clamp(2.1rem, 5vw, 3.4rem); }
.crumbs { font-size: .8rem; color: var(--text-3); margin-bottom: .9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .45rem; color: var(--line-2); }
.crumbs a { color: var(--text-2); }

/* ---------- Siatki i karty ---------- */

.grid { display: grid; gap: var(--gap); }
/* Bez tego kolumna nie zwęża się poniżej szerokości szerokiej tabeli w środku */
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--split { grid-template-columns: 1.05fr .95fr; align-items: center; }
.grid--aside { grid-template-columns: 1.6fr 1fr; align-items: start; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; height: 100%;
}
.card--flat { background: transparent; }
.card__num { font-family: var(--serif); font-size: 1.55rem; color: var(--gold); display: block; margin-bottom: .4rem; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--text-2); font-size: .95rem; }

.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.tile__body { padding: 1.35rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.tile__body p { color: var(--text-2); font-size: .95rem; }
.tile__body .btn { margin-top: auto; align-self: flex-start; }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.figure figcaption { padding: .8rem 1rem; font-size: .85rem; color: var(--text-2); border-top: 1px solid var(--line); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery__item { position: relative; padding: 0; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; display: block; }
.gallery__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .2s, transform .3s; }
.gallery__item:hover img { opacity: .82; transform: scale(1.02); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: .7rem .85rem;
  background: linear-gradient(to top, rgba(8,10,12,.92), rgba(8,10,12,0));
  color: var(--text); font-size: .84rem; text-align: left;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats > div { background: var(--ink-2); padding: 1.4rem 1.2rem; }
.stats dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.stats dd { margin: .35rem 0 0; font-family: var(--serif); font-size: 1.7rem; color: var(--gold-2); }

.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.list-check li { position: relative; padding-left: 1.65rem; color: var(--text-2); }
.list-check li::before {
  content: ""; position: absolute; left: .15rem; top: .52em;
  width: 8px; height: 8px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
}
.list-plain { padding-left: 1.15rem; color: var(--text-2); }
.list-plain li { margin-bottom: .5rem; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-grid > * { background: var(--panel); padding: 1.5rem 1.4rem; }
.info-grid h3 { font-size: 1.08rem; }
.info-grid address { font-style: normal; color: var(--text-2); font-size: .95rem; }

.hours { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hours caption { text-align: left; font-family: var(--serif); font-size: 1.2rem; margin-bottom: .8rem; color: var(--text); }
.hours th, .hours td { text-align: left; padding: .62rem .5rem; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; color: var(--text-2); }
.hours td { color: var(--text); white-space: nowrap; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.cta-band { background: linear-gradient(180deg, var(--ink-2), var(--ink)); border-block: 1px solid var(--line); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* ---------- Akordeon ---------- */

.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.accordion details { border-bottom: 1px solid var(--line); background: var(--panel); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.3rem; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.06rem; color: var(--text);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--panel-2); }
.accordion summary::after {
  content: ""; flex: none; width: 11px; height: 11px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.accordion details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.accordion__body { padding: 0 1.3rem 1.25rem; color: var(--text-2); font-size: .96rem; }
.accordion__body > :first-child { margin-top: 0; }

/* ---------- Formularze ---------- */

.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .4rem; }
.field > span, .field > label { font-size: .85rem; color: var(--text-2); }
.req { color: var(--gold); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%; padding: .72rem .85rem; font: inherit; font-size: .95rem;
  color: var(--text); background: var(--ink-2); border: 1px solid var(--line-2);
  border-radius: var(--radius); appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 19px) 1.15em, calc(100% - 13px) 1.15em; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .86rem; color: var(--text-2); }
.check input { margin-top: .28rem; flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--gold); }
.form__note { font-size: .82rem; color: var(--text-3); }
.form__status { font-size: .9rem; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--ink-2); color: var(--text-2); }
.form__status[hidden] { display: none; }
.form__status.is-ok { border-color: #37624f; color: #b6dfc9; }
.form__status.is-err { border-color: #6b3a34; color: #f0c1b8; }

/* ---------- Modal / pop-up ---------- */

.modal {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 1.1rem;
  background: rgba(6, 8, 10, .84);
}
.modal.is-open { display: flex; }
.modal__box {
  width: 100%; max-width: 560px; max-height: 90vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
}
.modal__box--wide { max-width: 700px; }
.modal__close {
  float: right; width: 38px; height: 38px; margin: -.5rem -.5rem 0 0;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--text-2); font-size: 1.1rem; line-height: 1; cursor: pointer;
}
.modal__close:hover { color: var(--gold-2); border-color: var(--gold); }

.age-gate { display: none; position: fixed; inset: 0; z-index: 150; background: #0a0c0e; padding: 1.1rem; align-items: center; justify-content: center; }
html.is-locked .age-gate { display: flex; }
.age-gate__box { max-width: 520px; width: 100%; text-align: center; border: 1px solid var(--line-2); background: var(--panel); border-radius: var(--radius); padding: clamp(1.6rem, 5vw, 2.6rem); }
.age-gate__mark { width: 56px; height: 56px; margin: 0 auto 1.1rem; }
.age-gate__box h2 { margin-bottom: .5em; }
.age-gate__box p { color: var(--text-2); font-size: .95rem; }
.age-gate .btn-row { justify-content: center; }
.age-gate__deny { display: none; }
.age-gate.is-denied .age-gate__ask { display: none; }
.age-gate.is-denied .age-gate__deny { display: block; }

.lightbox { position: fixed; inset: 0; z-index: 130; display: none; background: rgba(5, 7, 9, .93); padding: clamp(1rem, 4vw, 3rem); }
.lightbox.is-open { display: grid; place-items: center; }
.lightbox img { max-width: min(1100px, 100%); max-height: 78vh; width: auto; border: 1px solid var(--line-2); }
.lightbox__cap { margin-top: .9rem; color: var(--text-2); font-size: .9rem; text-align: center; }
.lightbox__bar { position: absolute; top: 1rem; right: 1rem; display: flex; gap: .5rem; }
.lightbox__nav { position: absolute; inset-inline: 1rem; top: 50%; display: flex; justify-content: space-between; pointer-events: none; }
.lightbox__nav button { pointer-events: auto; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: rgba(26, 31, 38, .96); border: 1px solid #4b555f; border-radius: var(--radius);
  color: var(--text); font-size: 1.15rem; cursor: pointer;
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold-2); }

.cookie {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 110;
  background: #0b0e11; border-top: 1px solid var(--line-2);
  transform: translateY(110%); transition: transform .35s ease;
}
.cookie.is-open { transform: none; }
.cookie__in { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding-block: 1.05rem; }
.cookie p { flex: 1 1 22rem; margin: 0; font-size: .88rem; color: var(--text-2); }
.cookie__btns { display: flex; flex-wrap: wrap; gap: .55rem; }

.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.to-top.is-on { opacity: 1; visibility: visible; }

/* ---------- Treść dokumentów prawnych ---------- */

/* Kolumna tekstu dokumentu wyrównana do lewej krawędzi treści, nie wyśrodkowana */
.doc > * { max-width: 78ch; }
.doc h2 { margin-top: 2.2rem; }
.doc h3 { margin-top: 1.6rem; font-size: 1.12rem; }
.doc ul, .doc ol { padding-left: 1.2rem; color: var(--text-2); }
.doc li { margin-bottom: .5rem; }
.doc p { color: var(--text-2); }
.doc__toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 2.2rem; }
.doc__toc h2 { margin: 0 0 .7rem; font-size: 1.05rem; }
.doc__toc ol { margin: 0; }
.doc__meta { font-size: .85rem; color: var(--text-3); border-left: 2px solid var(--gold); padding-left: .9rem; margin-bottom: 2rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 32rem; }
.tbl th, .tbl td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--panel-2); color: var(--text); font-weight: 600; }
.tbl td { color: var(--text-2); }
.tbl tr:last-child td { border-bottom: 0; }

.job { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.job__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.job__tags li { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 999px; padding: .2rem .65rem; }
.job h3 { margin: 0; }
.job p { margin: 0; color: var(--text-2); font-size: .94rem; }
.job .btn { align-self: flex-start; margin-top: .3rem; }

/* ---------- Stopka ---------- */

.site-foot { background: #0a0c0f; border-top: 1px solid var(--line); padding-top: clamp(2.4rem, 5vw, 3.4rem); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.15fr; gap: var(--gap); }
.site-foot h3 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); font-family: var(--sans); margin-bottom: 1rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-foot a { color: var(--text-2); }
.site-foot a:hover { color: var(--gold-2); }
.site-foot address { font-style: normal; color: var(--text-2); }
.foot-note { border-top: 1px solid var(--line); margin-top: clamp(2rem, 4vw, 2.8rem); padding-block: 1.4rem; color: var(--text-3); font-size: .83rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; }
.foot-warn { background: #0e1114; border-top: 1px solid var(--line); padding-block: 1rem; font-size: .8rem; color: var(--text-3); }
.foot-warn strong { color: var(--text-2); }

/* ---------- Reakcja na szerokość ---------- */

@media (max-width: 980px) {
  .grid--3, .grid--4, .gallery, .info-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid--split, .grid--aside { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); z-index: 95;
    background: var(--ink-2); border-left: 1px solid var(--line);
    padding: 5.5rem 1.25rem 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .28s ease;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav__link, .sub-toggle { width: 100%; padding: .8rem .6rem; font-size: 1rem; }
  .sub-toggle { justify-content: space-between; }
  .sub { position: static; box-shadow: none; margin: .2rem 0 .5rem .6rem; background: transparent; border: 0; border-left: 1px solid var(--line-2); border-radius: 0; padding: 0 0 0 .6rem; }
  .head-cta .btn { display: none; }
  .nav__cta { display: block; margin-top: 1.2rem; }
  /* Tło pod szufladą menu musi zostać poniżej nagłówka, który tworzy własny kontekst nakładania */
  .nav-backdrop { position: fixed; inset: 0; z-index: 88; background: rgba(6,8,10,.66); border: 0; padding: 0; }
  .nav-backdrop[hidden] { display: none; }
}

@media (min-width: 861px) { .nav__cta { display: none; } }

@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .grid--2, .grid--3, .grid--4, .gallery, .info-grid, .stats, .foot-grid { grid-template-columns: 1fr; }
  .topbar__in { justify-content: flex-start; }
  .btn-row .btn { flex: 1 1 100%; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .stats dd { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-head, .topbar, .cookie, .to-top, .modal, .age-gate, .site-foot { display: none !important; }
  body { background: #fff; color: #000; }
}
