/* ==========================================================
   NORTHBYTE – style.css
   Kolory, czcionki i odstępy ustawisz w zmiennych poniżej.
   ========================================================== */

/* Lokalny Rajdhani Bold – zapas, gdy Google Fonts nie jest dostępne (offline) */
@font-face {
  font-family: "NB Rajdhani";
  src: url("../assets/fonts/Rajdhani-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* TŁO HERO – podmień na własny zrzut ekranu z serwera (ścieżka względem tego pliku CSS) */
  --hero-image: url("../assets/hero-bg.jpg");
  --hero-image-mobile: url("../assets/hero-bg-mobile.jpg");
  --hero-image-4k: url("../assets/hero-bg-4k.jpg");       /* opcjonalnie: duże ekrany / HiDPI */

  --blue: #1E88E5;
  --blue-light: #4FA3F0;
  --blue-dark: #1565C0;
  --blue-glow: rgba(30, 136, 229, 0.45);
  --blue-soft: rgba(30, 136, 229, 0.12);
  --navy: #0A0F1E;
  --navy-2: #0E1529;
  --navy-3: #131C35;
  --navy-4: #1A2544;
  --line: rgba(120, 160, 230, 0.14);
  --line-strong: rgba(120, 160, 230, 0.26);
  --white: #FFFFFF;
  --text: #E8EEF8;
  --muted: #95A6C4;
  --green: #2ECC8F;
  --amber: #F5B942;

  --font-head: "Rajdhani", "NB Rajdhani", "Segoe UI", "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --container: 1200px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .25s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-light); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--white); }
code {
  font-family: ui-monospace, "JetBrains Mono", Consolas, monospace;
  font-size: .88em;
  background: var(--navy-4);
  border: 1px solid var(--line);
  padding: .1em .4em;
  border-radius: 5px;
  color: #CFE3FA;
  word-break: break-word;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.page-hero + .section--tight { padding-top: 44px; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: .95rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); border-radius: 2px; }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--blue); border-radius: 2px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.muted { color: var(--muted); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* Tło: siatka heksów */
.bg-hex {
  background-image:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(30,136,229,.18), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 0L56 16.2V48.5L28 64.7L0 48.5V16.2ZM28 64.7V97' fill='none' stroke='%231E88E5' stroke-opacity='.09' stroke-width='1.1'/%3E%3C/svg%3E");
}

/* ---------- Przyciski ---------- */
.btn {
  --bg: var(--navy-3);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 10px;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t), color var(--t);
}
.btn:hover { color: var(--white); border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 8px 28px -6px var(--blue-glow); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { --bg: var(--blue); border-color: var(--blue); }
.btn--primary:hover { --bg: var(--blue-light); border-color: var(--blue-light); }
.btn--ghost { --bg: transparent; }
.btn--discord { --bg: #5865F2; border-color: #5865F2; }
.btn--discord:hover { --bg: #6D78F5; border-color: #8D96F7; box-shadow: 0 8px 28px -6px rgba(88,101,242,.6); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled {
  cursor: not-allowed; opacity: .55; transform: none; box-shadow: none;
  --bg: var(--navy-4); border-color: var(--line-strong);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t);
}
/* rozmycie w pseudo-elemencie, żeby nie psuć position:fixed menu mobilnego */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(10, 15, 30, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: background var(--t);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-scrolled::before, .nav-open .site-header::before { background: rgba(10, 15, 30, .94); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.brand:hover { color: var(--white); }
.brand img { width: 38px; height: 38px; transition: filter var(--t), transform var(--t); }
.brand:hover img { filter: drop-shadow(0 0 10px var(--blue-glow)); transform: rotate(-4deg); }
.wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; letter-spacing: .16em; line-height: 1; color: var(--white); }
.wordmark span { color: var(--blue); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: block; padding: 10px 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t); box-shadow: 0 0 10px var(--blue-glow);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--white); }
.nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 10px;
  background: var(--navy-3); border: 1px solid var(--line-strong); color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--t), opacity var(--t), top var(--t); }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-open .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 20px 24px 32px;
    background: var(--navy);
    border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--t), transform var(--t), visibility 0s linear .25s;
    overflow-y: auto;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t), transform var(--t); }
  .nav__links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 16px 4px; font-size: 1.35rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { left: 4px; right: auto; width: 40px; bottom: 10px; }
  .nav .btn { margin: 24px 0 0; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 110px;
  min-height: min(calc(100vh - var(--header-h)), 780px);
  display: flex; align-items: center;
  margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + 72px);
}
.hero { isolation: isolate; background: var(--navy); }
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: var(--hero-image) var(--hero-pos, 0% 40%) / var(--hero-size, max(125%, 1440px) auto) no-repeat;
  transform-origin: 70% 50%;
  animation: nb-kenburns 32s ease-in-out infinite alternate;
}
/* Kadr: skyline po prawej stronie logo, światła autostrady pod nim. Na węższych ekranach przesuwamy obraz w lewo. */
@media (max-width: 1100px) { .hero__bg { --hero-pos: 12% 40%; } }
/* bardzo duże ekrany / ekrany HiDPI: wersja 4K */
@media (min-width: 1600px) and (min-resolution: 1.5dppx), (min-width: 2600px) {
  .hero__bg { background-image: var(--hero-image-4k); }
}
/* Nakładka: granat mocny z lewej (pod tekstem), przezroczysty z prawej, lekki blask pod logo, delikatne heksy.
   Zdjęcie jest już niebieskie – dodatkowy niebieski odcień jest minimalny, żeby nie „zamulić” kolorów. */
.hero__overlay {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 0L56 16.2V48.5L28 64.7L0 48.5V16.2ZM28 64.7V97' fill='none' stroke='%231E88E5' stroke-opacity='.07' stroke-width='1.1'/%3E%3C/svg%3E"),
    radial-gradient(circle at var(--hero-logo-x, 74%) 50%, rgba(10,15,30,.55) 0, rgba(10,15,30,.25) 14%, rgba(10,15,30,0) 26%),
    linear-gradient(90deg, rgba(10,15,30,.94) 0%, rgba(10,15,30,.86) 28%, rgba(10,15,30,.45) 50%, rgba(10,15,30,.08) 70%, rgba(10,15,30,0) 85%, rgba(10,15,30,.15) 100%),
    linear-gradient(180deg, rgba(10,15,30,.6) 0%, rgba(10,15,30,0) 22%),
    rgba(30, 136, 229, .03);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: -1;
  background: linear-gradient(to bottom, rgba(10,15,30,0), var(--navy)); pointer-events: none;
}
@keyframes nb-kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1%, -1%); } }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.hero__brand { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.hero__brand .wordmark { font-size: 1.9rem; }
.hero h1 { margin-bottom: 20px; max-width: 14ch; }
.hero h1 .accent { color: var(--blue); text-shadow: 0 0 32px rgba(30,136,229,.35); }
.hero .lead { max-width: 54ch; margin-bottom: 34px; color: #B9C6DE; text-shadow: 0 1px 12px rgba(10,15,30,.8); }
.hero h1 { text-shadow: 0 2px 24px rgba(10,15,30,.7); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.stack li {
  font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--muted);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(19, 28, 53, .6);
}
.stack li strong { color: var(--white); font-weight: 600; }

.hero__visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.hero__visual::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(30,136,229,.32), rgba(30,136,229,.06) 55%, transparent 70%);
  filter: blur(10px);
  animation: nb-pulse 5s ease-in-out infinite;
}
.hero__logo { position: relative; width: 72%; filter: drop-shadow(0 0 24px rgba(30,136,229,.45)); animation: nb-float 7s ease-in-out infinite; }
.hero__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: nb-spin 60s linear infinite; opacity: .5; }
.hero__ring--inner { inset: 9%; width: 82%; height: 82%; animation-duration: 90s; animation-direction: reverse; opacity: .35; }
.hero__ring path, .hero__ring circle { fill: none; stroke: var(--blue); }

@keyframes nb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes nb-pulse { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes nb-spin { to { transform: rotate(360deg); } }

/* Nagłówek podstron */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero .lead { max-width: 640px; margin: 0; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span[aria-hidden] { margin: 0 8px; opacity: .5; }

/* ---------- Karty produktów ---------- */
.grid { display: grid; gap: 24px; }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-4px); border-color: rgba(30,136,229,.55); box-shadow: 0 18px 48px -18px var(--blue-glow), 0 0 0 1px rgba(30,136,229,.25); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--navy-2); overflow: hidden; }
.card__media .card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  opacity: 0; transition: opacity .7s var(--ease), transform .6s var(--ease);
}
.card__media .card__img.is-active { opacity: 1; }
.card:hover .card__media .card__img { transform: scale(1.05); }
/* gradient u góry (czytelność znaczków) i u dołu (przejście w kartę) */
.card__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,15,30,.7) 0%, rgba(10,15,30,0) 32%),
    linear-gradient(0deg, rgba(14,21,41,.85) 0%, rgba(14,21,41,0) 38%);
}
.card__badges { z-index: 1; }
.card__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 1; display: flex; justify-content: center; gap: 6px; opacity: 0; transition: opacity var(--t); }
.card:hover .card__dots { opacity: 1; }
.card__dots span { width: 18px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); transition: background var(--t); }
.card__dots span.is-active { background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 22px; }
.card__title { font-size: 1.55rem; margin-bottom: 6px; }
.card__title a { color: var(--white); }
.card__title a:hover { color: var(--blue-light); }
.card__desc { color: var(--muted); font-size: .95rem; margin-bottom: 18px; flex: 1; }
.card__tags { margin-bottom: 20px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }

.price { white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--white); line-height: 1; }
.price--free { color: #7BF0C2; text-transform: uppercase; letter-spacing: .06em; font-size: 1.35rem; }
.price--muted { color: var(--muted); font-size: 1.15rem; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 7px; color: var(--white); background: rgba(10,15,30,.82);
  border: 1px solid var(--line-strong); backdrop-filter: blur(6px);
}
.badge--free { background: rgba(46, 204, 143, .16); border-color: rgba(46, 204, 143, .55); color: #7BF0C2; }
.badge--soon { background: rgba(245, 185, 66, .14); border-color: rgba(245, 185, 66, .55); color: #FFD47E; }
.badge--paid { background: var(--blue-soft); border-color: rgba(30,136,229,.6); color: #A9D2FA; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tag {
  font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 6px;
  background: var(--blue-soft); color: #A9D2FA; border: 1px solid rgba(30,136,229,.3);
}
.tag--qbox { /* tak samo jak pozostałe frameworki */ }

/* ---------- Dlaczego Northbyte ---------- */
.features-grid { grid-template-columns: repeat(4, 1fr); }
.feature {
  padding: 28px 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(19,28,53,.8), rgba(14,21,41,.6));
  border: 1px solid var(--line);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.feature:hover { border-color: rgba(30,136,229,.5); transform: translateY(-3px); box-shadow: 0 14px 40px -20px var(--blue-glow); }
.feature__icon {
  width: 52px; height: 52px; margin-bottom: 20px; display: grid; place-items: center;
  color: var(--blue-light);
  background: var(--blue-soft); border: 1px solid rgba(30,136,229,.35);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: background var(--t), color var(--t);
}
.feature:hover .feature__icon { background: var(--blue); color: var(--white); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.35rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Pasek CTA */
.cta {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 44px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(30,136,229,.22), rgba(19,28,53,.9) 60%);
  border: 1px solid rgba(30,136,229,.35);
}
.cta h2 { margin-bottom: 6px; }
.cta p { margin: 0; color: var(--muted); }

/* ---------- Sklep: filtry ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.filters { display: inline-flex; padding: 4px; gap: 4px; background: var(--navy-2); border: 1px solid var(--line); border-radius: 12px; }
.filter-btn {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: background var(--t), color var(--t), box-shadow var(--t);
}
.filter-btn:hover { color: var(--white); }
.filter-btn[aria-pressed="true"] { background: var(--blue); color: var(--white); box-shadow: 0 6px 20px -8px var(--blue-glow); }
.filter-btn .count { white-space: nowrap; font-family: var(--font-body); font-size: .75rem; font-weight: 600; opacity: .75; margin-left: 4px; }
.search { position: relative; flex: 1; max-width: 380px; min-width: 220px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 16px 0 44px;
  font: inherit; color: var(--white); background: var(--navy-2);
  border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color var(--t), box-shadow var(--t);
}
.search input::placeholder { color: #6E7FA0; }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,136,229,.25); }
.result-info { color: var(--muted); font-size: .9rem; margin: -16px 0 24px; }

.empty {
  text-align: center; padding: 64px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: rgba(14,21,41,.5);
}
.empty__icon { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--blue); opacity: .85; }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 20px; }

/* ---------- Produkt ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 40px; align-items: start; }
.gallery__main {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-2); border: 1px solid var(--line);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s var(--ease); }
.gallery__main img.is-loading { opacity: 0; }
.gallery__counter {
  position: absolute; right: 12px; bottom: 12px; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 6px;
  background: rgba(10,15,30,.8); border: 1px solid var(--line);
}
.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(10,15,30,.75); border: 1px solid var(--line-strong); color: var(--white); cursor: pointer;
  backdrop-filter: blur(6px); transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.gallery__arrow:hover { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 20px var(--blue-glow); }
.gallery__arrow svg { width: 20px; height: 20px; }
.gallery__arrow--prev { left: 12px; }
.gallery__arrow--next { right: 12px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; list-style: none; padding: 0; }
.thumb {
  display: block; width: 100%; padding: 0; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: var(--navy-2); opacity: .6;
  transition: opacity var(--t), border-color var(--t), box-shadow var(--t);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb[aria-current="true"] { opacity: 1; border-color: var(--blue); box-shadow: 0 0 14px -2px var(--blue-glow); }

.panel {
  position: sticky; top: calc(var(--header-h) + 20px);
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--navy-3), var(--navy-2));
  border: 1px solid var(--line);
}
.panel h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); margin-bottom: 10px; }
.panel__tagline { color: var(--muted); }
.panel__price { display: flex; align-items: center; gap: 12px; margin: 22px 0; flex-wrap: wrap; }
.panel__section { padding-top: 20px; margin-top: 22px; border-top: 1px solid var(--line); }
.panel__section h2 { font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.panel__note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

.req-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.req {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 9px;
  background: rgba(10,15,30,.5); border: 1px solid var(--line); font-size: .92rem;
}
.req svg { width: 18px; height: 18px; flex: none; color: var(--blue); margin-top: 3px; }
.req strong { color: var(--white); font-weight: 600; }
.req small { display: block; color: var(--muted); font-size: .8rem; }
.req__verify { display: inline-block; margin-left: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; color: #FFD47E; border: 1px solid rgba(245,185,66,.5); border-radius: 4px; padding: 0 5px; vertical-align: 1px; }

.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-top: 32px;
  border: 1px solid var(--line); background: var(--navy-2);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video--placeholder {
  display: grid; place-items: center; text-align: center; padding: 24px;
  background:
    radial-gradient(circle at 50% 45%, rgba(30,136,229,.2), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(30,136,229,.06) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(30,136,229,.06) 39px 40px),
    var(--navy-2);
}
.video__play {
  width: 76px; height: 76px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%;
  border: 2px solid rgba(30,136,229,.7); color: var(--blue-light); background: rgba(30,136,229,.1);
  box-shadow: 0 0 30px -4px var(--blue-glow);
}
.video__play svg { width: 30px; height: 30px; margin-left: 4px; }
.video--placeholder h3 { margin-bottom: 4px; }
.video--placeholder p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Zakładki */
.tabs { margin-top: 48px; }
.tabs__list {
  display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tab {
  position: relative; padding: 14px 20px; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  transition: color var(--t);
}
.tab::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; background: var(--blue);
  transform: scaleX(0); transition: transform var(--t); box-shadow: 0 0 12px var(--blue-glow);
}
.tab:hover { color: var(--white); }
.tab[aria-selected="true"] { color: var(--white); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tabpanel { padding: 32px 0 8px; animation: nb-fade .35s var(--ease); }
.tabpanel[hidden] { display: none; }
.tabpanel p { color: #C9D4E8; max-width: 75ch; }
@keyframes nb-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 10px;
  background: var(--navy-2); border: 1px solid var(--line); transition: border-color var(--t);
}
.check-list li:hover { border-color: rgba(30,136,229,.45); }
.check-list svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 2px; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 14px; max-width: 820px; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 62px; border-radius: 10px; background: var(--navy-2); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--white); background: var(--blue);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.changelog { display: grid; gap: 18px; max-width: 820px; }
.release { padding: 20px 22px; border-radius: 12px; background: var(--navy-2); border: 1px solid var(--line); border-left: 3px solid var(--blue); }
.release__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.release__head h3 { margin: 0; }
.release__head time, .release__head span { color: var(--muted); font-size: .88rem; }
.release ul { margin: 0; padding-left: 20px; color: #C9D4E8; }

.not-found { text-align: center; padding: 100px 24px; max-width: 560px; margin: 0 auto; }
.not-found__code { font-family: var(--font-head); font-weight: 700; font-size: 6rem; line-height: 1; color: var(--blue); text-shadow: 0 0 40px var(--blue-glow); margin-bottom: 10px; }
.not-found p { color: var(--muted); margin-bottom: 28px; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { border-radius: 12px; background: var(--navy-2); border: 1px solid var(--line); transition: border-color var(--t), box-shadow var(--t); }
.faq__item:hover { border-color: var(--line-strong); }
.faq__item.is-open { border-color: rgba(30,136,229,.55); box-shadow: 0 10px 34px -20px var(--blue-glow); }
.faq__q { margin: 0; font-size: inherit; }
.faq__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  padding: 20px 22px; background: none; border: 0; cursor: pointer; color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: .01em;
}
.faq__icon {
  position: relative; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--blue-soft); border: 1px solid rgba(30,136,229,.35);
  transition: background var(--t), transform var(--t);
}
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--blue-light); transform: translate(-50%, -50%); transition: transform var(--t), background var(--t); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--blue); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: var(--white); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__answer { padding: 0 22px 22px; color: #C9D4E8; }
.faq__answer p:last-child, .faq__answer ul:last-child { margin-bottom: 0; }
.faq__answer ul, .faq__answer ol { padding-left: 20px; margin: 0 0 1em; }

/* ---------- Kontakt ---------- */
.contact-grid { grid-template-columns: repeat(3, 1fr); }
.contact-card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--navy-3), var(--navy-2)); border: 1px solid var(--line); transition: border-color var(--t), transform var(--t), box-shadow var(--t); }
.contact-card:hover { border-color: rgba(30,136,229,.5); transform: translateY(-3px); box-shadow: 0 14px 40px -20px var(--blue-glow); }
.contact-card--main { border-color: rgba(88,101,242,.5); background: linear-gradient(160deg, rgba(88,101,242,.2), var(--navy-2) 65%); }
.contact-card--main:hover { border-color: #8D96F7; box-shadow: 0 14px 40px -18px rgba(88,101,242,.6); }
.contact-card .feature__icon { margin-bottom: 18px; }
.contact-card--main .feature__icon { background: rgba(88,101,242,.25); border-color: rgba(88,101,242,.5); color: #C3C8FB; }
.contact-card p { color: var(--muted); flex: 1; }
.contact-card .btn { align-self: flex-start; }
.contact-value { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--white); margin-bottom: 18px; word-break: break-all; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.form { display: grid; gap: 16px; padding: 28px; border-radius: var(--radius); background: var(--navy-2); border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; color: #C9D4E8; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--white); background: var(--navy); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px;
  transition: border-color var(--t), box-shadow var(--t);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,136,229,.25); }
.form__hint { font-size: .82rem; color: var(--muted); margin: 0; }
.form__status { font-size: .9rem; margin: 0; color: #7BF0C2; min-height: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(14,21,41,.4), var(--navy-2)); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 40px; }
.footer__about p { color: var(--muted); font-size: .92rem; max-width: 36ch; margin: 16px 0 0; }
.footer__title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--white); margin: 6px 0 14px; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.footer__list a { color: var(--muted); }
.footer__list a:hover { color: var(--white); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: .82rem; color: #6E7FA0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; max-width: calc(100% - 32px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 14px 18px; border-radius: 12px; font-size: .92rem;
  background: var(--navy-3); border: 1px solid rgba(30,136,229,.6); color: var(--white);
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6), 0 0 24px -8px var(--blue-glow);
  transition: opacity var(--t), transform var(--t);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsywność ---------- */
@media (max-width: 1080px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; }
  .panel { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .hero__visual { order: -1; max-width: 260px; }
  .hero__bg { background-image: var(--hero-image-mobile); background-position: 50% 0%; }
  .hero__overlay {
    background:
      radial-gradient(circle at 50% 24%, rgba(10,15,30,.5) 0, rgba(10,15,30,0) 32%),
      linear-gradient(180deg, rgba(10,15,30,.45) 0%, rgba(10,15,30,.2) 18%, rgba(10,15,30,.55) 42%, rgba(10,15,30,.86) 60%, rgba(10,15,30,.95) 100%),
      rgba(30, 136, 229, .03);
  }
  .hero__brand { display: none; }
  .hero h1, .hero .lead { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero .stack { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .container { padding: 0 18px; }
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 28px); padding-bottom: 72px; }
  .hero__visual { max-width: 200px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .features-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .filters { display: flex; }
  .filter-btn { flex: 1; padding: 0 6px; font-size: .95rem; letter-spacing: .04em; }
  .filter-btn .count { display: none; }
  .search { max-width: none; min-width: 0; }
  .cta { padding: 28px; }
  .cta .btn { width: 100%; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .wordmark { font-size: 1.35rem; }
  .brand img { width: 34px; height: 34px; }
  .page-hero { padding: 48px 0 32px; }
  .panel { padding: 22px; }
  .tab { padding: 12px 14px; font-size: 1.05rem; }
  .gallery__arrow { width: 38px; height: 38px; }
  .gallery__thumbs { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__bg { animation: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Przełącznik języka ---------- */
.lang { position: relative; margin-left: 8px; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px 0 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; letter-spacing: .08em; color: var(--muted);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 9px; cursor: pointer;
  transition: color var(--t), border-color var(--t), box-shadow var(--t);
}
.lang__toggle svg { width: 16px; height: 16px; }
.lang__toggle svg:last-child { width: 14px; height: 14px; transition: transform var(--t); }
.lang__toggle:hover, .lang.is-open .lang__toggle { color: var(--white); border-color: var(--blue); box-shadow: 0 0 16px -4px var(--blue-glow); }
.lang.is-open .lang__toggle svg:last-child { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; margin: 0; padding: 6px; list-style: none; z-index: 120;
  background: var(--navy-3); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.7), 0 0 24px -12px var(--blue-glow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--t), transform var(--t), visibility 0s linear .25s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; transition: opacity var(--t), transform var(--t); }
.lang__opt {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 8px;
  background: none; color: var(--text); cursor: pointer; font: inherit; font-size: .92rem; text-align: left;
  transition: background var(--t), color var(--t);
}
.lang__opt:hover { background: var(--blue-soft); color: var(--white); }
.lang__code { font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; width: 26px; color: var(--muted); }
.lang__opt[aria-checked="true"] { color: var(--white); }
.lang__opt[aria-checked="true"] .lang__code { color: var(--blue-light); }
.lang__opt[aria-checked="true"]::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }

@media (max-width: 1080px) and (min-width: 861px) {
  .nav__link { padding: 10px 10px; }
  .nav__link::after { left: 10px; right: 10px; }
}
@media (max-width: 860px) {
  .lang { margin: 24px 0 0; }
  .lang__toggle { display: none; }
  .lang__menu {
    position: static; display: flex; gap: 8px; padding: 0; min-width: 0;
    background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none;
  }
  .lang__menu li { flex: 1; }
  .lang__opt { justify-content: center; flex-direction: column; gap: 2px; padding: 10px 6px; border: 1px solid var(--line-strong); background: var(--navy-2); }
  .lang__opt[aria-checked="true"] { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 16px -6px var(--blue-glow); }
  .lang__opt[aria-checked="true"]::after { display: none; }
  .lang__code { width: auto; font-size: 1.15rem; }
  .lang__name { font-size: .78rem; color: var(--muted); }
}

/* siatka kontaktu: dzieci mogą się zwężać (długie teksty w DE/PL na 390 px) */
.contact-layout > * { min-width: 0; }
.form input, .form select, .form textarea { min-width: 0; max-width: 100%; }

/* Karta z oficjalnym banerem jako okładką (plik z „banner” w nazwie): banner ma już własny tekst,
   więc gradienty są lżejsze, żeby nie przyciemniać tytułu i hasła na dole. */
.card__media--banner::after {
  background:
    linear-gradient(180deg, rgba(10,15,30,.45) 0%, rgba(10,15,30,0) 18%),
    linear-gradient(0deg, rgba(14,21,41,.35) 0%, rgba(14,21,41,0) 14%);
}
.card__media--banner .card__img { object-position: center center; }

/* ---------- Rodzaj kodu: Open Source / Escrow ---------- */
.filter-groups { display: flex; flex-wrap: wrap; gap: 12px; }
.filter-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.filter-btn svg { width: 15px; height: 15px; flex: none; }
.badge svg { width: 14px; height: 14px; flex: none; }
.badge--oss { background: var(--blue); border-color: #4FA3F0; color: #fff; box-shadow: 0 0 14px -2px rgba(30,136,229,.7); }
.badge--escrow { background: rgba(149, 166, 196, .14); border-color: rgba(149, 166, 196, .5); color: #D5DEEE; }
.card__badges { flex-wrap: wrap; }

.panel__links { display: grid; gap: 10px; margin-top: 12px; }
.panel__links .btn svg { width: 18px; height: 18px; }
.panel__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0 0; }
.panel__meta div { padding: 10px 12px; border-radius: 9px; background: rgba(10,15,30,.5); border: 1px solid var(--line); }
.panel__meta dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.panel__meta dd { margin: 2px 0 0; font-weight: 600; color: var(--white); font-size: .92rem; }

@media (max-width: 860px) {
  .filter-groups { flex-direction: column; }
}
.card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.card__tags .badge { height: 26px; font-size: .8rem; padding: 0 9px; backdrop-filter: none; }
