/* ===== RangeTech - style bazowe motywu (czcionki, reset, naglowek) ===== */

@font-face { font-family: "Aktiv Grotesk"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/AktivGrotesk-Light.woff2") format("woff2"); }
@font-face { font-family: "Aktiv Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/AktivGrotesk-Regular.woff2") format("woff2"); }
@font-face { font-family: "Aktiv Grotesk"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("../fonts/AktivGrotesk-Medium.woff2") format("woff2"); }
@font-face { font-family: "Aktiv Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/AktivGrotesk-Bold.woff2") format("woff2"); }
@font-face { font-family: "Aktiv Grotesk"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/AktivGrotesk-XBold.woff2") format("woff2"); }
@font-face { font-family: "Aktiv Grotesk"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/AktivGrotesk-Black.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #0a0a0b;
  color: #ffffff;
  font-family: "Aktiv Grotesk", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; }
/* Uwaga: bez 'svg { height: auto }' - sekcje rozciagaja swoje SVG (preserveAspectRatio=none) na cala wysokosc */
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
.rtx-main { display: block; }
/* Atrybut hidden zawsze wygrywa z display ustawionym w sekcjach (np. okno powiekszania zdjec) */
[hidden] { display: none !important; }

/* Link "przejdz do tresci" - widoczny tylko po fokusie klawiatura */
.rtx-skip { position: absolute; left: -9999px; top: 0; z-index: 100001; padding: 10px 14px; background: #cf2227; color: #fff; font-weight: 800; text-decoration: none; }
.rtx-skip:focus { left: 8px; top: 8px; }

/* Naglowek: wersja na komputer i na telefon (obie sa w HTML, CSS pokazuje jedna) */
.rtx-hdr--mobile { display: none; }
@media (max-width: 1024px) {
  .rtx-hdr--desktop { display: none; }
  .rtx-hdr--mobile { display: block; }
}

/* Strony bez szablonu (np. nowa strona z edytora) i strona 404 */
.rtx-plain { padding: clamp(120px, 16vw, 200px) clamp(24px, 5.6vw, 96px) clamp(64px, 8vw, 120px); }
.rtx-plain__inner { width: min(860px, 100%); margin: 0 auto; }
.rtx-plain__eyebrow { margin: 0 0 14px; color: rgba(255,255,255,.7); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.rtx-plain__title { margin: 0 0 20px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.04; font-weight: 800; text-transform: uppercase; }
.rtx-plain p { color: rgba(255,255,255,.75); line-height: 1.7; }
.rtx-plain a { color: #e83a3f; }
.rtx-plain__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid rgb(207 34 39 / .8); background: rgb(207 34 39 / .08); color: #fff !important; text-decoration: none; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rtx-plain__btn:hover { background: rgb(207 34 39 / .22); }

/* Plynne przejscie do sekcji kontaktu: od gory delikatny gradient z koloru strony w tlo sekcji
   (nad tlem i siatka sekcji, pod trescia; sekcja kontaktu ma isolation: isolate, wiec z-index -3 dziala) */
.rtx-contact::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: clamp(140px, 16vw, 220px);
  z-index: -3;
  pointer-events: none;
  background: linear-gradient(180deg, #0a0a0b 0%, rgba(10,10,11,.85) 35%, rgba(10,10,11,.4) 70%, rgba(10,10,11,0) 100%);
}
