/* =========================
   Zmienne globalne i reset
   ========================= */
:root {
  --bg: #0f1115;            /* Tło strony  #0f1115*/
  --card: #14171b;          /* Tło kart/sekcji */
  --muted: #98a0aa;         /* Kolor przygaszonego tekstu */
  --accent: #00aaff;        /* Kolor akcentu 1 (np. linki) */
  --accent-2: #ffcc00;      /* Kolor akcentu 2 (np. gradienty) */
  --glass: rgba(255, 255, 255, 0.03); /* Efekt szkła */
  --maxw: 1100px;           /* Maksymalna szerokość kontenera */
  font-family: Inter, system-ui, -apple-system, Arial, sans-serif;
}

* { 
  box-sizing: border-box;   /* Ułatwia kontrolę nad padding/margin */
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(180deg, #07070a 0%, var(--bg) 100%);
  color: #e6eef6;
  line-height: 1.5;
  min-height: 100vh;
}

/* =========================
   Nagłówek i menu
   ========================= */
header {
  position: sticky;         /* Zawsze przyklejony u góry */
  top: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.15));
  backdrop-filter: blur(6px); /* Rozmycie tła */
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  padding: 10px 20px;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* brand po lewej, menu po prawej */
  align-items: center;
  gap: 20px;
}

/* Brand (logo + nazwa) */
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand .logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Obrazek nie zniekształca się */
  border-radius: 8px;
}

.brand-name { font-weight: 800; } /* Pogrubiona nazwa */
.brand-subtitle { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* =========================
   Linki w menu
   ========================= */
#main-nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

#main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease-in-out;
}

#main-nav a:hover { color: var(--accent); }

/* =========================
   Dropdown menu
   ========================= */
.dropdown { position: relative; display: inline-block; }

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--card);
  min-width: 160px;
  border-radius: 8px;
  top: 100%;
  left: 0;
  padding: 8px 0;
  z-index: 100;
}

.dropdown:hover .dropdown-content { display: block; }

/* =========================
   Hamburger (mobile)
   ========================= */
.menu-icon {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* =========================
   Sekcja main
   ========================= */
main {
  max-width: var(--maxw);
  margin: 28px auto;
  padding: 0 16px;
}

/* =========================
   Sekcja hero (baner + boczne)
   ========================= */
.hero {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Lewa większa, prawa mniejsza */
  gap: 24px;
  align-items: start;
}

.hero > .card-container {
  flex: 2;
  display: grid;
  grid-template-columns: 1fr 1fr; /* Dwie karty w rzędzie */
  gap: 16px;
}

.hero > aside { flex: 1; }

.hero > * {
  display: flex;
  flex-direction: column;
}

/* =========================
   Karty i przyciski
   ========================= */
.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.lead { color: var(--muted); margin-bottom: 12px; }

.cta { display: flex; gap: 10px; }

.btn,
a.btn {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  color: #071017;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease-in-out;
  display: inline-block;
  text-decoration: none;
}

.btn:hover,
a.btn:hover { opacity: 0.85; }

.btn.mt-12,
a.btn.mt-12 { margin-top: 12px; }

.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* =========================
   Grid dla innych sekcji
   ========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.full { grid-column: 1/-1; } /* Element na całą szerokość */

/* =========================
   Tabela specyfikacji
   ========================= */
table.specs {
  width: 100%;
  border-collapse: collapse;
}

table.specs td,
table.specs th {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.cat {
  background: linear-gradient(90deg, var(--accent), transparent);
  font-weight: 700;
  color: #071017;
  padding-left: 12px;
}

/* =========================
   Sekcja wideo
   ========================= */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 0;
}

.video-title {
  margin-top: 8px;
  font-weight: bold;
}

/* =========================
   Stopka
   ========================= */
footer {
  text-align: center;
  padding: 20px;
  margin: 20px auto;          /* odstęp od treści i wyśrodkowanie */
  max-width: 500px;          /* szerokość jak reszta strony */
  color: var(--muted); 
  font-size: 14px;
}

/* =========================
   Instagram / Snapwidget
   ========================= */
.snapwidget-widget {
  border: none;
  overflow: hidden;
  width: 950px;
  height: 380px;
}

/* =========================
   Klasy pomocnicze
   ========================= */
.muted { color: var(--muted); }

a.inline-link {
  color: var(--accent);
  text-decoration: none;
}
a.inline-link:hover { text-decoration: underline; }

.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-22 { margin-top: 22px; }

/* =========================
   Menu dropdown (druga wersja)
   ========================= */
.dropdown-content a {
  display: block;
  padding: 8px 16px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease-in-out;
}

.dropdown-content a:hover {
  background: rgba(0, 170, 255, 0.1); /* lekkie podświetlenie */
  color: var(--accent);
}

/* =========================
   Style list - spójne across wszystkich stron
   ========================= */

/* Bazowe style dla list */
ul, ol {
  margin: 12px 0;
  padding-left: 24px;
}

li {
  margin: 6px 0;
  line-height: 1.5;
}

/* Specyficzne style dla list w sekcjach specyfikacji */
.specs + ul {
  margin-top: 12px;
}

.specs + ul li {
  position: relative;
  padding-left: 8px;
  list-style-type: none;
}

.specs + ul li:before {
  content: "•";
  position: absolute;
  left: -16px;
  color: var(--accent);
  font-weight: bold;
}

/* Style dla list w kontrolkach gier */
.controls-left ul {
  margin: 0;
  padding-left: 18px;
  list-style: none;
}

.controls-left li {
  margin: 8px 0;
  font-size: 16px;
  position: relative;
  padding-left: 8px;
}

.controls-left li:before {
  content: "•";
  position: absolute;
  left: -12px;
  color: var(--accent);
}

/* Style dla list w bocznych panelach */
.side.left ul {
  margin: 12px 0;
  padding-left: 20px;
  list-style: none;
}

.side.left li {
  margin: 8px 0;
  position: relative;
  padding-left: 8px;
}

.side.left li:before {
  content: "•";
  position: absolute;
  left: -12px;
  color: var(--accent);
  font-weight: bold;
}

/* =========================
   Responsywność dodatkowa
   ========================= */
@media screen and (max-width: 1200px) {
  #main-nav {
    display: none;            /* Na mobile menu domyślnie ukryte */
    flex-direction: column;   /* Linki w kolumnie */
    gap: 12px;
    width: 100%;
  }
  .menu-icon { display: block; } /* Ikona hamburgera widoczna */
  .dropdown-content { position: relative; box-shadow: none; }
  
  .hero {
    grid-template-columns: 1fr; /* Na telefonie jedna kolumna */
    gap: 16px;
  }
  
  .hero > .card-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav { padding: 10px; flex-wrap: wrap; }
  .brand .logo { width: 40px; height: 40px; }
  .grid { grid-template-columns: 1fr; }
  .video iframe { height: 200px; }
  .snapwidget-widget { width: 100%; height: auto; aspect-ratio: 25 / 10; }
}

section { scroll-margin-top: 80px; } /* Odstęp od menu przy przewijaniu */

/* Efekty hover dla przycisków i linków */
.btn:hover,
a.btn:hover,
.ghost:hover,
a.inline-link:hover {
  transition: all 0.2s ease-in-out;
}