:root {
  color-scheme: dark;

  --fn: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fn-m: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --bg: #0a0a0b;
  --surface: #121214;
  --surface-2: #1a1a1d;

  --border: #26262a;
  --border-strong: #3a3a40;

  --text: #f4f4f5;
  --muted: #a1a1aa;

  --accent: #f4f4f5;
  --accent-contrast: #111111;
  --accent-hover: #ffffff;

  --success: #4ade80;
  --error: #f87171;

  --header-bg: rgba(10, 10, 11, 0.82);
  --overlay: rgba(0, 0, 0, 0.65);

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 16px 40px rgba(0, 0, 0, 0.25);
  --ring: 0 0 0 4px rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.03), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: var(--fn);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.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;
}

[hidden] {
  display: none !important;
}

.wrp {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.mb-0 {
  margin-bottom: 0;
}

/* Header */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.lg {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Poprawiona klasa dla logo SVG */
.lg-i {
  height: 2.5em;
  width: auto;
  border-radius: 12px;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-l {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.15s ease;
}

.nav-l:hover {
  color: var(--text);
}

/* Buttons */

.btn-p,
.btn-s {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.btn-p {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-p:hover {
  background: var(--accent-hover);
}

.btn-p:active {
  transform: translateY(0);
}

.btn-s {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-s:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.btn-p:focus-visible,
.btn-s:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn-blk {
  width: 100%;
}

/* Hero */

.hro {
  max-width: 780px;
  margin: 0 auto;
  padding: 96px 0 56px;
  text-align: center;
}

.bdg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hro-t {
  margin: 22px 0 16px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hro-t span {
  color: var(--muted);
}

.hro-d {
  max-width: 640px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.frm-box {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.frm-box:focus-within {
  border-color: var(--border-strong);
  box-shadow: var(--ring);
}

.in-e {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
}

.in-e::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.msg-st {
  min-height: 22px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  color: var(--muted);
}

.msg-st.suc {
  color: var(--success);
}

.msg-st.err {
  color: var(--error);
}

/* Sections */

.sec {
  padding: 32px 0 88px;
}

.sec-t {
  text-align: center;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin-bottom: 12px;
}

.sec-d {
  text-align: center;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 16px;
}

.ftr-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ftr-c {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.ftr-c:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ftr-k {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--fn-m);
  margin-bottom: 16px;
}

.ftr-h {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 8px;
}

.ftr-p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Memory demo */

.mem-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mem-c {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}

.mem-k {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mem-h {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.mem-p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.mem-tag {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.mem-c-accent {
  border-color: var(--border-strong);
}

/* Modal */

.mdl-bg {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.mdl-bg.act {
  display: flex;
}

.mdl-c {
  width: 100%;
  max-width: 760px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.mdl-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.mdl-t {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.btn-cls {
  height: 36px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.btn-cls:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.mdl-bdy {
  padding: 24px;
  overflow: auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.mdl-bdy h3 {
  color: var(--text);
  font-size: 15px;
  letter-spacing: -0.02em;
  margin: 24px 0 10px;
}

.mdl-bdy h3:first-child {
  margin-top: 0;
}

.mdl-bdy p {
  margin: 0 0 14px;
}

/* Checkbox consent */

.chk {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.chk input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.legal-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

a.link {
  color: inherit;
}

/* Footer */

.ftr-w {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
}

.ftr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.ftr-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.ftr-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.ftr-link:hover {
  color: var(--text);
}

/* Admin / Tables */

.tbl-w {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow-x: auto;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin-bottom: 80px;
}

.tbl-w table {
  min-width: 860px;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  padding: 13px 16px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}

/* RESPONSIVENESS (PC, Tablet, Telefon) */

@media (max-width: 980px) {
  .ftr-g {
    grid-template-columns: repeat(2, 1fr);
  }

  .mem-g {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .wrp {
    padding: 0 16px;
  }

  /* Elastyczny nawigacyjny układ na telefonie */
  .hdr-in {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
  }

  .lg-i {
    height: 2em; /* Mniejsza ikona na małych ekranach */
  }

  .nav {
    gap: 14px;
  }

  .nav-l {
    font-size: 13px;
  }

  /* Hero na telefony */
  .hro {
    padding: 48px 0 32px;
  }

  .hro-d {
    font-size: 16px;
  }

  .frm-box {
    flex-direction: column;
    padding: 6px;
  }

  .frm-box .btn-p {
    width: 100%;
  }

  .ftr-g {
    grid-template-columns: 1fr;
  }

  .ftr {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}