/* Trenuje www — wspólne style (header, footer-features, komponenty) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  min-width: 1671px; /* kanwa makiet desktop; poniżej = poziomy scroll, ≤767px przejmuje RWD mobile */
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.container { max-width: 1596px; margin: 0 auto; padding: 0 38px; }

/* ── Header ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header .inner {
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}
.logo {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink);
  font-weight: 800; font-size: 1.55rem; letter-spacing: -0.04em;
}
.logo-mark { width: 27px; height: 27px; display: grid; place-items: center; }
.logo-mark svg { width: 100%; height: 100%; }
.logo .dot { color: var(--accent); margin-left: -0.22em; }

/* Menu górne tymczasowo ukryte (2026-07-24, decyzja usera) — przywrócić: usuń display:none */
.main-nav { display: none; gap: 8px; margin: 0 auto; }
.header-actions { margin-left: auto; }
.main-nav a {
  padding: 10px 14px; font-size: 0.94rem; font-weight: 500;
  color: var(--text-primary); border-radius: var(--r-soft);
  transition: color var(--dur-fast) var(--ease);
  position: relative;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.active { color: var(--accent); font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -11px;
  height: 2px; background: var(--accent);
}
.header-actions { display: flex; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; font-weight: 600; font-size: 0.94rem;
  padding: 10px 20px; transition: all var(--dur-fast) var(--ease);
}
.btn-ghost { background: var(--surface); border: 1px solid var(--border-default); color: var(--ink); }
.btn-ghost:hover { border-color: var(--border-strong); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); }

/* ── Komponenty wspólne ─────────────────── */
.badge-mono {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-strong); background: var(--accent-subtle);
  padding: 6px 14px; border-radius: var(--r-pill);
}
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
  background: var(--surface-sunken); border: 1px solid var(--border-subtle);
  padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap;
}
.stars { color: var(--star); letter-spacing: 1px; font-size: 0.82rem; }
.rating-num { color: var(--accent-strong); font-weight: 700; }
.verified { color: var(--accent); flex: none; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); padding: 22px 0 4px; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--text-tertiary); }
.crumbs .here { color: var(--text-primary); }

/* ── Pasek zaufania (features) ──────────── */
.features-bar {
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-low);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding: 26px 40px;
}
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature svg { width: 34px; height: 34px; flex: none; color: var(--ink); margin-top: 2px; }
.feature h3 { font-size: 0.92rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.feature p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.45; }

/* ── Mobile (RWD ≤767px) — wspólne ──────── */
@media (min-width: 768px) { .m-only { display: none !important; } }
@media (max-width: 767px) {
  .d-only { display: none !important; }
  body { min-width: 0; overscroll-behavior-y: none; }
  .container { max-width: none; padding: 0 16px; }

  .site-header { position: static; background: var(--surface); border-bottom: 0; }
  .site-header .inner { height: 60px; gap: 10px; }
  .main-nav { display: none; }
  .logo { font-size: 1.45rem; }
  .logo-mark { width: 24px; height: 24px; }
  .header-actions { margin-left: auto; align-items: center; gap: 10px; }
  .header-actions .btn-primary { display: none; }
  .btn-ghost { padding: 9px 16px; font-size: 0.9rem; }
  .avatar-btn {
    width: 40px; height: 40px; border-radius: var(--r-pill);
    background: var(--accent); color: #fff;
    display: grid; place-items: center;
  }

  .features-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px; padding: 0; background: none; box-shadow: none; border-radius: 0;
  }
  .feature {
    flex-direction: column; gap: 10px;
    background: var(--surface); border: 1px solid var(--border-subtle);
    border-radius: var(--r-card); padding: 16px 14px;
    box-shadow: var(--shadow-low);
  }
  .feature svg { color: var(--accent); width: 30px; height: 30px; margin: 0; }
  .feature h3 { font-size: 0.86rem; }
  .feature p { font-size: 0.78rem; }
}
.avatar-btn { display: none; }
@media (max-width: 767px) { .avatar-btn { display: grid; } }
