/* Wspólna baza wariantów C, D, E: Cinzel (najbliżej liter w logo) + Manrope. */
:root {
  --czern: #0a0907;
  --czern-2: #12100c;
  --zloto: #c9a24b;
  --zloto-jasne: #f0d58e;
  --tekst: #ece6d9;
  --tekst-2: #a59d8c;
  --zloty-gradient: linear-gradient(100deg, #8a6a2a 0%, #d9b665 30%, #f6e2a4 50%, #d2ad5a 70%, #8a6a2a 100%);
  --naglowek-h: 72px;
  --ekran-h: 760px; /* nadpisywane z JS (main.js); zapas na brak JS, bez vh */
  --f-tytul: "Cinzel", "Times New Roman", serif;
  --f-tekst: "Manrope", system-ui, -apple-system, sans-serif;
  --bok: clamp(20px, 5vw, 72px);
  /* rewers karty: drobne piki w kratkę */
  --rewers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='%23c9a24b'%3E%3Cpath d='M9 3c3 3 6 5 6 8a3 3 0 0 1-5 2l1 4H7l1-4a3 3 0 0 1-5-2c0-3 3-5 6-8z'/%3E%3Cpath d='M27 21c3 3 6 5 6 8a3 3 0 0 1-5 2l1 4h-4l1-4a3 3 0 0 1-5-2c0-3 3-5 6-8z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
body { overscroll-behavior-y: none; }
body {
  margin: 0; background: var(--czern); color: var(--tekst);
  font-family: var(--f-tekst); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--zloto-jasne); outline-offset: 3px; }
.pomin {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--zloto); color: var(--czern); padding: 10px 16px; text-decoration: none;
}
.pomin:focus { top: 16px; }

/* Nagłówek */
.naglowek {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--naglowek-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--bok);
}
/* Tło nagłówka jako osobna warstwa: przy przewijaniu zmienia się tylko jej opacity, bez przerysowania.
   Bez backdrop-filter: rozmycie liczyło się od nowa przy każdej klatce przewijania (zacinanie na telefonie). */
.naglowek::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(10, 9, 7, .96); border-bottom: 1px solid rgba(201, 162, 75, .18);
  opacity: 0; transition: opacity .3s;
}
.naglowek.przewiniety::before, .naglowek.menu-otwarte::before { opacity: 1; }
.znak {
  font-family: var(--f-tytul); font-weight: 600; font-size: 20px; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; color: var(--tekst);
}
.znak span { color: var(--zloto); }
.menu { display: flex; gap: 40px; }
.menu a {
  font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--tekst-2); transition: color .2s;
}
.menu a:hover { color: var(--zloto-jasne); }
.menu-przycisk { display: none; }

/* Typografia */
.etykieta {
  margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase;
  color: var(--zloto);
}
.zloty-tekst {
  background: var(--zloty-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1, h2 { font-family: var(--f-tytul); font-weight: 500; letter-spacing: .04em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(30px, 4.6vw, 50px); }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 176px; min-height: 52px; padding: 0 28px;
  font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; text-decoration: none;
  transition: filter .2s, background .2s;
}
.btn--zloty { background: var(--zloty-gradient); color: #17120a; }
.btn--zloty:hover { opacity: .9; }
.btn--obrys { border: 1px solid var(--zloto); color: var(--zloto-jasne); }
.btn--obrys:hover { background: rgba(201, 162, 75, .1); }
.przyciski { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.telefon {
  display: inline-block; font-family: var(--f-tytul); font-size: clamp(26px, 4.2vw, 38px);
  letter-spacing: .06em; text-decoration: none;
}

/* Karta do gry: kontakt i inne miejsca */
.karta {
  position: relative; width: min(520px, 100%);
  padding: clamp(60px, 8vw, 84px) clamp(28px, 6vw, 60px);
  text-align: center;
  background: linear-gradient(160deg, #18150f, #0e0c09);
  border: 1px solid rgba(201, 162, 75, .5); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 6px var(--czern), inset 0 0 0 7px rgba(201, 162, 75, .22);
}
.indeks {
  position: absolute; font-family: var(--f-tytul); font-weight: 600; font-size: 20px; line-height: 1.05;
  color: var(--zloto); text-align: center;
}
.indeks--g { top: 20px; left: 22px; }
.indeks--d { bottom: 20px; right: 22px; transform: rotate(180deg); }

/* Stopka */
.stopka { padding: 40px var(--bok); text-align: center; border-top: 1px solid rgba(201, 162, 75, .12); }
.stopka p { margin: 0; font-size: 13px; color: var(--tekst-2); }
.stopka__znak { font-family: var(--f-tytul); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px !important; color: var(--tekst) !important; font-size: 15px !important; }
.stopka__znak span { color: var(--zloto); }

/* Telefon */
@media (max-width: 760px) {
  :root { --naglowek-h: 64px; }
  body { font-size: 16px; }
  .menu-przycisk {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; margin-right: -10px; padding: 0 10px; background: none; border: 0; cursor: pointer;
  }
  .menu-przycisk span { display: block; height: 1px; background: var(--zloto-jasne); transition: transform .25s; }
  .menu-otwarte .menu-przycisk span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-otwarte .menu-przycisk span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu {
    position: absolute; top: var(--naglowek-h); left: 0; right: 0; display: none;
    flex-direction: column; gap: 0; padding: 8px 20px 24px;
    background: rgba(10, 9, 7, .97); border-bottom: 1px solid rgba(201, 162, 75, .18);
  }
  .menu-otwarte .menu { display: flex; }
  .menu a { padding: 16px 0; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .przyciski .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
