
:root{
  --bg: #0f172a;         /* tło */
  --surface: #0b1226;    /* sekcje alt */
  --text: #e2e8f0;       /* tekst */
  --muted: #94a3b8;      /* opisowy */
  --brand: #4f46e5;      /* akcent */
  --brand-2: #22d3ee;    /* akcent 2 */
  --card: #111827;
  --border: #1f2937;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* ===== BASE ===== */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(120deg, #0b1226, #0f172a 60%, #0b1226);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1300px, 95%);
  margin-inline: auto;
}

/* ===== HEADER ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
  background: rgba(10, 16, 36, .65);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* GRID HEADER LAYOUT */
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: .9rem 0;
}

.logo {
  font-weight: 800;
  color: white;
  text-decoration: none;
}

/* MENU CENTER */
.nav-center {
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--text);
  text-decoration: none;
  padding: .5rem .8rem;
  border-radius: 8px;
  transition: .2s;
}

.nav-list a:hover {
  background: rgba(255,255,255,.08);
}

/* LANGUAGE RIGHT */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch .lang:not(:last-child)::after {
  content: "|";
  margin-left: 0.5rem;
  color: var(--muted);
}

.lang-switch .active {
    color: #6a86ff;
}

.lang-switch a {
  color: var(--text);
  text-decoration: none;
  margin-left: 6px;
}

.lang-switch a:hover {
  color: var(--brand-2);
}

/* ===== SECTION ===== */

.section {
  padding: 4rem 0;
}

.section.alt {
  background: var(--surface);
}

.section h1,
.section h2 {
  margin-top: 0;
}

.section p + h2 {
  margin-top: 2rem;
}



/* ===== CARD / CONTENT ===== */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

/* ===== BUTTON ===== */

.btn {
  display: inline-block;
  padding: .8rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: .2s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b1226;
  font-weight: 700;
}

.btn.primary:hover {
  transform: translateY(-1px);
}

/* ===== FOOTER ===== */

.site-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: center;
}

/* ===== MOBILE ===== */

@media (max-width: 700px) {

  .nav {
    grid-template-columns: 1fr;
    gap: .8rem;
    text-align: center;
  }

  .nav-center {
    order: 3;
  }

  .lang-switch {
    order: 2;
  }

  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
  }

}

@media (max-width: 900px) {

.product-layout {
  grid-template-columns: 1fr;
}

.gallery {
  grid-template-columns: repeat(2, 1fr);
}

}

@media (max-width: 600px) {

.gallery {
  grid-template-columns: 1fr;
}

}


.product-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.product-image img {
  width: 100%;
  border-radius: 50px;
  box-shadow: var(--shadow);
}

.gallery-title {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.gallery img {
  width: 100%;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.25s;
  box-shadow: var(--shadow);
}

.gallery img:hover {
  transform: scale(1.03);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 9999;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.table-container {
    background-color: var(--card); /* Używamy Twojego koloru karty */
    padding: 20px;
    border-radius: 14px; /* Dopasowane do Twoich kart */
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 100%; /* Lepiej na urządzeniach mobilnych */
    width: 100%;
    margin: 2rem 0;
    overflow-x: auto; /* Dodajemy przewijanie na telefonach */
}

/* Stylizacja tabeli */
table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text); /* Jasny tekst ze zmiennej */
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: rgba(255, 255, 255, 0.05); /* Delikatne wyróżnienie nagłówka */
    color: var(--text); 
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 1px;
}

.range {
    font-weight: bold;
    white-space: nowrap;
    color: #fff;
}

/* Kolorowanie wierszy - dopasowane do ciemnego tła (półprzezroczyste) */
.status-perfect  { background-color: rgba(76, 175, 80, 0.15); }  /* Zielony */
.status-good     { background-color: rgba(139, 195, 74, 0.1); }  
.status-warning  { background-color: rgba(255, 235, 59, 0.1); }  /* Żółty */
.status-check    { background-color: rgba(255, 152, 0, 0.15); }  /* Pomarańczowy */
.status-clogged  { background-color: rgba(244, 67, 54, 0.15); }  /* Czerwony */
.status-critical { background-color: rgba(244, 67, 54, 0.3); color: #ff8a80; font-weight: bold; }

/* Poprawka dla tekstu nad tabelą, żeby nie był czarny */
.table-container h2 {
    color: var(--text);
    margin-top: 0;
}

img.center-image {
  display: block;
  margin: 2rem auto;
  width: 50%;
  max-width: 300px;
  height: auto;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

/* ===== PAGE WITH SIDEBAR ===== */

.page-layout {
  display: grid;
  /* 1fr zajmie całą dostępną resztę miejsca w kontenerze */
  grid-template-columns: 1fr 300px; 
  gap: 3rem;
  align-items: start;
  width: 100%;
}

.page-content {
  min-width: 0;
  width: 100%;
}

/* ===== TOC ===== */

.toc {
  position: sticky;
  top: 100px;
  align-self: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  height: fit-content;
}

.toc h4 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 0.6rem;
}

.toc a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  transition: 0.2s;
}

.toc a:hover {
  color: var(--brand-2);
}

.toc a.active {
  color: var(--brand-2);
  font-weight: 600;
}

.toc a.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: var(--brand-2);
  border-radius: 4px;
}

.toc li {
  position: relative;
}

/* Płynne przewijanie */
html {
  scroll-behavior: smooth;
}

/* ===== MOBILE ===== */

@media (max-width: 1000px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }
}

/* ===== VIDEO SECTION ===== */

.video-section {
  text-align: center;
}

/* kontener na wiele filmów */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  max-width: 1300px;
  margin: 0 auto;
}

/* wrapper pojedynczego filmu */
.video-wrapper {
  position: relative;
  padding-bottom: 60%; /* proporcja 16:9 */
  height: 0;
  overflow: hidden;

  border-radius: 20px;
  box-shadow: var(--shadow);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  border: 0;
  border-radius: 20px;
}

/* responsywność — na telefonie pod sobą */
@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.download-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  transition: 0.2s;
  background: rgba(255,255,255,0.02);
}

.download-list li:hover {
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.download-list a {
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 600;
}

.download-list a:hover {
  text-decoration: underline;
}

.file-info {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Kontener na 3 obrazy */
.image-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;        /* odstęp między zdjęciami */
  flex-wrap: wrap;    /* zawijanie na małych ekranach */
  margin: 2rem 0;
}

/* Obrazy w rzędzie */
.image-row img {
  width: 30%;         /* 3 obok siebie */
  max-width: 330px;
  height: auto;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

/* Opcjonalnie — lepsze zachowanie na telefonie */
@media (max-width: 600px) {
  .image-row img {
    width: 80%;       /* po jednym na wąskim ekranie */
  }
}
