/* TRS SYSTEM – arkusz stylów (wygląd oparty na pierwotnej stronie, bez zewnętrznych bibliotek) */

@font-face {
  font-family: "Montserrat";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/montserrat-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-400.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/montserrat-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-700.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/montserrat-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal; font-weight: 800; font-display: swap;
  src: url("../fonts/montserrat-latin-ext-800.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;

  --bg: #000;
  --text: #fff;
  --muted: rgba(255, 255, 255, .72);
  --line: rgba(255, 255, 255, .3);
  --line-soft: rgba(255, 255, 255, .14);

  --green: #42dca3;
  --green-strong: #1d9b6c;
  --red: #ff2b2b;

  --max: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-head: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Baza ---------- */

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

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  body { font-size: 20px; line-height: 1.6; }
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0 0 1.4em;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.15;
}
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); margin-bottom: 1.2em; }
h3 { font-size: .9rem; letter-spacing: 1.5px; margin-bottom: .8em; }

p { margin: 0 0 1.4em; }

a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-strong); }
p a, li a { text-decoration: underline; text-decoration-color: rgba(66, 220, 163, .4); text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

::selection { background: rgba(255, 255, 255, .2); }

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.2em; height: 1.2em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  display: inline-block; vertical-align: -.22em;
}
.icon-flip { transform: scaleX(-1); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: #fff; color: #000;
}
.skip-link:focus { top: 12px; color: #000; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { max-width: 780px; }

.accent { color: var(--red); }

/* ---------- Przyciski (jak w oryginale: kanciaste, z obwódką) ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .7em 1.6em;
  border: 1px solid var(--green); border-radius: 0;
  background: transparent; color: var(--green);
  font: 400 .85rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: 1.5px;
  text-decoration: none; cursor: pointer;
  transition: background-color .3s, color .3s;
}
.btn:hover { background: var(--green); color: #000; }
.btn-sm { min-height: 40px; padding: .5em 1.2em; }

/* ---------- Nagłówek i menu ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: #000;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head); text-transform: uppercase;
  transition: background-color .5s, border-color .5s, height .5s;
}
.is-subpage main { padding-top: var(--header-h); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; }
.brand img { width: 25px; height: 20px; }
.brand-name { font-size: 1.05rem; font-weight: 700; letter-spacing: 1px; }

.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }

.nav-burger {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin-right: -8px; cursor: pointer;
  border: 1px solid var(--line);
}
.nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--green); }

.nav-burger-lines,
.nav-burger-lines::before,
.nav-burger-lines::after {
  display: block; width: 20px; height: 2px; background: #fff;
  transition: transform .25s, background-color .25s;
}
.nav-burger-lines { position: relative; }
.nav-burger-lines::before,
.nav-burger-lines::after { content: ""; position: absolute; left: 0; }
.nav-burger-lines::before { top: -6px; }
.nav-burger-lines::after { top: 6px; }
.nav-toggle:checked + .nav-burger .nav-burger-lines { background: transparent; }
.nav-toggle:checked + .nav-burger .nav-burger-lines::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked + .nav-burger .nav-burger-lines::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; color: #fff; text-decoration: none; letter-spacing: 1px; font-size: .85rem; }
.site-nav a:hover { color: rgba(255, 255, 255, .75); }

@media (max-width: 767px) {
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #000; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { padding: 4px var(--gutter) 12px; }
  .site-nav li + li { border-top: 1px solid var(--line-soft); }
  .site-nav a { padding: 14px 0; }
  .site-nav a.is-active { color: var(--green); }
}

@media (min-width: 768px) {
  .nav-burger { display: none; }
  .site-nav ul { display: flex; }
  .site-nav a { padding: 10px 15px; transition: background-color .3s; }
  .site-nav a.is-active { background: rgba(255, 255, 255, .3); }

  /* Na stronie głównej: przezroczysty pasek na zdjęciu, czarny po przewinięciu. */
  .is-home .site-header { height: 100px; background: transparent; border-color: transparent; }
  .is-home .site-header.is-scrolled { height: var(--header-h); background: #000; border-color: var(--line); }
}

/* ---------- Intro (pełny ekran ze zdjęciem) ---------- */

.intro {
  position: relative;
  display: grid; place-items: center;
  min-height: min(100vh, 1000px); min-height: min(100svh, 1000px);
  padding: calc(var(--header-h) + 60px) 0 120px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .15) 40%, rgba(0, 0, 0, .7)),
    url("../img/intro.jpg") center bottom / cover no-repeat #000;
}

.intro h1 {
  margin: 0 0 .35em;
  font-size: clamp(2.3rem, 1rem + 6.4vw, 5.6rem);
  font-weight: 800;
  letter-spacing: 2px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}

.intro-text {
  margin-bottom: 2em;
  font-size: clamp(1.05rem, .9rem + .8vw, 1.6rem);
  color: rgba(255, 255, 255, .85);
}

.intro-call { margin: 0; }
.intro-call .btn { border-color: #fff; color: #fff; background: rgba(0, 0, 0, .25); font-size: .95rem; }
.intro-call .btn:hover { background: #fff; color: #000; }

.btn-circle {
  position: absolute; left: 50%; bottom: 36px; translate: -50% 0;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border: 2px solid #fff; border-radius: 50%;
  color: #fff;
  transition: background-color .3s;
}
.btn-circle:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.btn-circle .icon { width: 28px; height: 28px; animation: bounce 2.4s ease-in-out infinite; }

@keyframes bounce { 50% { transform: translateY(5px); } }

/* ---------- Sekcje ---------- */

.section { padding: clamp(72px, 10vw, 140px) 0; text-align: center; }

.section-photo { background: center / cover no-repeat #000; }

.section-offer {
  background-image:
    linear-gradient(rgba(0, 0, 0, .78), rgba(0, 0, 0, .78)),
    url("../img/serwerownia.jpg");
}

.section-contact {
  background-image:
    linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .8)),
    url("../img/kontakt.jpg");
}

@media (min-width: 1024px) and (hover: hover) {
  .section-photo { background-attachment: fixed; }
}

.lead { max-width: 720px; margin-inline: auto; margin-bottom: 2.4em; color: var(--muted); }

#o-nas p:last-child { margin-bottom: 0; color: var(--muted); }

/* Oferta */
.offer {
  display: grid; gap: 40px 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  max-width: 980px; margin-inline: auto;
}

.offer-item p { margin: 0; color: var(--muted); font-size: .92em; }

.offer-icon {
  display: grid; place-items: center;
  width: 64px; height: 64px; margin: 0 auto 20px;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--green);
}
.offer-icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }

/* Procedura */
.steps { list-style: none; margin: 0; padding: 0; text-align: left; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 20px; }
.steps li + li { margin-top: 1.6em; }
.steps p { margin: 0; color: var(--muted); }
.steps h3 { margin-bottom: .4em; }
.step-arrow { width: 32px; height: 32px; margin-top: -2px; color: var(--green); stroke-width: 2; }
.steps li:first-child .step-arrow { color: var(--red); }

/* Kontakt */
.contacts {
  display: grid; gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  max-width: 900px; margin-inline: auto;
}
.contact p { margin-bottom: 1em; }

.contact-head {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px;
  min-height: 70px; margin-bottom: 22px; padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.contact-logo { width: auto; height: 24px; }
.contact-name { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 1px; line-height: 24px; }
.contact-note { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-head); }

.contact a { text-decoration: none; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: .6em; }

/* Podstrona */
.page { text-align: left; }
.page h1 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.8rem); margin-bottom: .4em; }
.page h2 { font-size: 1rem; letter-spacing: 1.5px; margin: 2.4em 0 .9em; }
.page p, .policy { color: var(--muted); font-size: .9em; }
.page strong { color: var(--text); }
.page code { font-size: .9em; color: var(--text); }
.page-date { font-size: .8em !important; text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-head); }
.page-back { margin-top: 3em; }
.policy { padding-left: 1.3em; margin: 0 0 1.4em; }
.policy li { margin-bottom: 1em; padding-left: .3em; }
.policy ul { margin: .8em 0; padding-left: 1.2em; list-style: circle; }
.policy ul li { margin-bottom: .6em; }
.policy li::marker { color: var(--green); }

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

.site-footer {
  padding: 48px 0; text-align: center;
  border-top: 1px solid var(--line-soft);
  font-size: .8rem; color: rgba(255, 255, 255, .6);
}
.site-footer p { margin: 0 0 .4em; }
.site-footer p:first-child { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px; color: #fff; }
.site-footer a { color: rgba(255, 255, 255, .6); }
.site-footer a:hover { color: var(--green); }

/* ---------- Informacja o cookies ---------- */

.cookie-notice {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 32px;
  padding: 20px var(--gutter);
  background: rgba(0, 0, 0, .96);
  border-top: 1px solid var(--line);
  font-size: .82rem; line-height: 1.5;
}
.cookie-body { flex: 1 1 420px; max-width: 760px; }
.cookie-notice p { margin: 0; }
.cookie-title {
  margin-bottom: .3em !important;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { min-width: 130px; }

.link-button {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: rgba(255, 255, 255, .6);
  transition: color .2s;
}
.link-button:hover { color: var(--green); }
