/* ========================================
   Motyw ciemny i zmienne bazowe
   ======================================== */
:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0f0f0f;
  --card: #121212;
  --text: #f7f7f7;
  --text-muted: #cfcfcf;
  --accent: #ff7a00;
  --accent-strong: #ff9a3d;
  --border: #1f1f1f;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --radius-lg: 18px;
  --container: 1280px;
  --gradient: linear-gradient(135deg, #1c1c1c, #0f0f0f 60%, #050505);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: url("img/bg/bg.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 24px;
}

.topbar .container {
  padding-left: 20px;
  padding-right: 20px;
}

/* ========================================
   Górny pasek nawigacji
   ======================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #050505;
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.brand__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.topbar__actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

/* ========================================
   Przyciski akcji
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn--primary {
  background: var(--accent);
  color: #050505;
  border-color: #ff9a3d;
}

.btn--accent {
  background: #1a1a1a;
  color: var(--accent);
  border-color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

/* ========================================
   Breadcrumbs
   ======================================== */
.breadcrumbs {
  padding: 12px 0;
  text-align: left;
}

.breadcrumbs__list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.breadcrumbs__link {
  color: var(--accent);
}

.breadcrumbs__current {
  color: var(--text);
}

/* ========================================
   Sekcja hero z banerem
   ======================================== */
.hero {
  position: relative;
  min-height: 60vh;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image: image-set(
    url("img/baner/baner.png") 1x,
    url("img/baner/baner.png") 2x
  );
  background-size: cover;
  background-position: center;
  filter: none;
}

.hero__overlay {
  position: relative;
  z-index: 1;
  inset: 0;
  display: grid;
  align-items: center;
  min-height: 60vh;
  justify-items: center;
  background: transparent;
}

.hero__content {
  padding: 36px 32px;
  width: min(680px, 90%);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 10px;
}

.hero__title {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw + 8px, 42px);
  line-height: 1.15;
}

.hero__text {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 16px;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========================================
   Sekcje treści i grid slotów
   ======================================== */
.section {
  padding: 48px 0;
}

.section__head {
  margin-bottom: 28px;
}

.section__lead {
  color: var(--text-muted);
  margin: 8px 0 0;
}

.slots-grid {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(6, minmax(200px, 1fr));
  justify-items: center;
}

.slot-card {
  background: transparent;
  border: none;
  padding: 0;
  text-align: center;
}

.slot-card img {
  width: 100%;
  height: auto;
  max-width: 220px;
}

/* ========================================
   Treść artykułu i tabela
   ======================================== */
.content {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 24px;
  box-shadow: none;
  line-height: 1.7;
}

.content h2,
.content h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.content p {
  color: var(--text-muted);
}

.content ul,
.content ol {
  color: var(--text-muted);
  padding-left: 18px;
}

.table-wrapper {
  margin: 18px 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.responsive-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.responsive-table th,
.responsive-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  vertical-align: top;
}

.responsive-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.responsive-table td {
  color: var(--text-muted);
}

.responsive-table tr:last-child td {
  border-bottom: 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;
}

/* ========================================
   CTA końcowe
   ======================================== */
.cta {
  background: var(--gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 24px;
}

.cta__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.cta__content p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

/* ========================================
   Stopka i płatności
   ======================================== */
.footer {
  margin-top: auto;
  background: #0a0f1f;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 32px 0;
}

.footer__brand p {
  color: var(--text-muted);
  margin: 10px 0 14px;
}

.footer__logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer__payments img {
  height: 28px;
  width: auto;
  background: #0f162b;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  background: #080c18;
  padding: 12px 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
}

.footer__link {
  color: var(--accent);
  font-size: 14px;
}

/* ========================================
   Responsywność – naprawa widoku mobilnego
   ======================================== */
@media (max-width: 900px) {
  .hero,
  .hero__overlay {
    min-height: 80vh; /* pełne wypełnienie ekranu na mobile */
  }

  .hero__content {
    text-align: center;
    align-self: flex-end;
    padding-bottom: 36px;
  }

  .cta__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .slots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .topbar .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero__media {
    background-image: image-set(
      url("img/baner/baner-mob.png") 1x,
      url("img/baner/baner-mob.png") 2x
    );
    background-position: center top;
  }

  .slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 kolumny na mobile */
    gap: 10px;
  }

  .responsive-table thead {
    display: none;
  }

  .responsive-table,
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td {
    display: block;
    width: 100%;
  }

  .responsive-table tr {
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
  }

  .responsive-table td {
    position: relative;
    padding-left: 110px;
    border: none;
  }

  .responsive-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 14px;
    top: 14px;
    font-weight: 700;
    color: var(--text);
  }

  .footer__payments img {
    height: 26px;
  }
}

@media (max-width: 540px) {
  .slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__text {
    font-size: 15px;
  }

  .topbar__inner {
    padding: 12px 0;
  }

  .footer__inner,
  .footer__bottom-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

