/* ==========================================================================
   ROTLAND — DayZ Server Site
   Tokeny, reset, typografia, komponenty, layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Kolor — wyciągnięte z baneru Rotland (grafit nocy, żar demonicznych pęknięć, mgła) */
  --void:        #0f1216;
  --panel:       #171b20;
  --panel-2:     #1e242b;
  --line:        rgba(236, 231, 219, 0.09);
  --line-strong: rgba(236, 231, 219, 0.18);

  --ember:        #d9762e;
  --ember-bright: #f4954c;
  --ember-dim:    #8a4b23;
  --blood:        #7a2b23;
  --blood-bright: #a83b2c;

  --fog:      #98a1aa;
  --fog-dim:  #626a72;
  --bone:     #ece7da;
  --bone-dim: rgba(236, 231, 218, 0.66);

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  --radius: 3px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

[hidden] { display: none !important; }

::selection { background: var(--ember-dim); color: var(--bone); }

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--bone);
}

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ember-bright);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ember-bright);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-ember {
  background: var(--ember);
  color: #16110a;
}
.btn-ember:hover { background: var(--ember-bright); }
.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--bone);
}
.btn-outline:hover { border-color: var(--ember); color: var(--ember-bright); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 18, 22, 0.96);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 721px) {
  .site-header {
    background: rgba(15, 18, 22, 0.86);
    backdrop-filter: blur(10px);
  }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo span { color: var(--ember-bright); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--bone-dim);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--bone); }
.main-nav a.active { color: var(--ember-bright); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--ember);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
}
.lang-switch button {
  background: transparent;
  border: none;
  color: var(--fog);
  padding: 7px 11px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0.04em;
}
.lang-switch button.is-active {
  background: var(--ember);
  color: #16110a;
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--bone);
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; }

.lang-switch-mobile { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,18,22,0.15) 0%, rgba(15,18,22,0.35) 45%, var(--void) 96%),
    linear-gradient(90deg, rgba(15,18,22,0.55) 0%, rgba(15,18,22,0.05) 40%, rgba(15,18,22,0.05) 60%, rgba(15,18,22,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 64px;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ember-bright);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4fae63;
  box-shadow: 0 0 8px #4fae63;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.hero-tag .dot.is-offline {
  background: var(--blood-bright);
  box-shadow: 0 0 8px var(--blood-bright);
}
.hero-tag .dot.is-unknown {
  background: var(--fog-dim);
  box-shadow: none;
}
.hero h1 {
  font-size: clamp(64px, 11vw, 148px);
  color: var(--bone);
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
}
.hero .lede {
  max-width: 46ch;
  font-size: 18px;
  color: var(--bone-dim);
  margin: 22px 0 34px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(23, 27, 32, 0.7);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.ip-box .ip-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--fog);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.ip-box .ip-value {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--ember-bright);
  font-weight: 500;
}
.ip-copy {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--bone-dim);
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.ip-copy:hover { border-color: var(--ember); color: var(--ember-bright); }
.ip-copy.copied { border-color: #4fae63; color: #4fae63; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding: 168px 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(217,118,46,0.14), transparent 60%),
    var(--void);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(122,43,35,0.28), transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: clamp(48px, 7vw, 84px);
  position: relative;
}
.page-hero .lede {
  max-width: 58ch;
  color: var(--bone-dim);
  font-size: 17px;
  margin-top: 16px;
  position: relative;
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 54px);
  margin-top: 14px;
}
.section-head p {
  color: var(--bone-dim);
  margin-top: 16px;
  font-size: 16px;
}

.section-alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  background: var(--void);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature .glyph {
  width: 34px; height: 34px;
  color: var(--ember);
}
.feature .glyph svg { width: 100%; height: 100%; }
.feature h3 { font-size: 21px; letter-spacing: 0.01em; }
.feature p { color: var(--bone-dim); font-size: 14.5px; margin: 0; }

/* ---------- Lore split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-media {
  position: relative;
  border: 1px solid var(--line-strong);
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--panel-2);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media:not(.is-video)::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(122,43,35,0.25), transparent 60%);
  mix-blend-mode: multiply;
}
.split-media.is-video {
  aspect-ratio: 16/9;
  background: #000;
}
.split-media.is-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.split-text .eyebrow { margin-bottom: 18px; }
.split-text h2 { font-size: clamp(32px, 4.5vw, 46px); margin-bottom: 20px; }
.split-text p { color: var(--bone-dim); }
.split-text .stat-row {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat-row .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--ember-bright);
  letter-spacing: 0.02em;
}
.stat-row .stat span {
  font-size: 13px;
  color: var(--fog);
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}
.step .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ember);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  display: block;
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--bone-dim); font-size: 14.5px; }

/* ---------- Info stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  background: var(--panel);
}
.stat-strip .cell {
  padding: 24px 22px;
  border-left: 1px solid var(--line);
}
.stat-strip .cell:first-child { border-left: none; }
.stat-strip .cell .k {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fog);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.stat-strip .cell .v {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--bone);
  letter-spacing: 0.02em;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background:
    radial-gradient(ellipse 700px 320px at 50% 0%, rgba(217,118,46,0.16), transparent 65%),
    var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-banner h2 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 18px; }
.cta-banner p { color: var(--bone-dim); margin: 0 auto 30px; }
.cta-banner .hero-ctas { justify-content: center; margin-bottom: 0; }

/* ---------- Content blocks (rules / about / join pages) ---------- */
.content-block { max-width: 780px; scroll-margin-top: 100px; }
.content-block + .content-block { margin-top: 64px; }
.content-block h2 {
  font-size: 30px;
  margin-bottom: 18px;
  padding-top: 22px;
  border-top: 2px solid var(--line-strong);
}
.content-block h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--ember-bright);
  margin: 28px 0 10px;
}
.content-block p { color: var(--bone-dim); }
.content-block ul, .content-block ol {
  color: var(--bone-dim);
  padding-left: 22px;
  margin: 0 0 1em;
}
.content-block li { margin-bottom: 8px; }
.content-block li::marker { color: var(--ember); }

.rules-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.rules-toc a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--bone-dim);
}
.rules-toc a:hover { border-color: var(--ember); color: var(--ember-bright); }

.notice {
  border-left: 3px solid var(--ember);
  background: var(--panel);
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--bone-dim);
  margin: 28px 0;
}
.notice b { color: var(--bone); }

.notice-edit {
  border-left: 3px solid var(--blood-bright);
  background: rgba(122,43,35,0.12);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--bone-dim);
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- Sidebar layout (rules page) ---------- */
.with-sidebar {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: start;
}
.side-nav {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 1px solid var(--line-strong);
  padding-left: 18px;
}
.side-nav a {
  font-size: 14px;
  color: var(--fog);
  padding: 7px 0;
}
.side-nav a:hover, .side-nav a.active { color: var(--ember-bright); }

/* ---------- Shop ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tier-card {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.tier-card.is-featured {
  border-color: var(--ember);
  background: linear-gradient(160deg, rgba(217,118,46,0.1), var(--panel) 55%);
}
.tier-card .badge {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--ember);
  color: #16110a;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  letter-spacing: 0.05em;
}
.tier-card .tier-name {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 0.02em;
}
.tier-card .tier-price {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ember-bright);
}
.tier-card .tier-price span {
  font-size: 13px;
  color: var(--fog);
}
.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--bone-dim);
  flex: 1;
}
.tier-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tier-card li::before {
  content: "";
  width: 5px; height: 5px;
  margin-top: 7px;
  background: var(--ember);
  flex-shrink: 0;
}

.shop-note {
  margin-top: 40px;
  text-align: center;
  color: var(--fog);
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
  background: var(--panel);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--fog); font-size: 14px; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fog);
  margin-bottom: 16px;
  font-weight: 400;
}
.footer-col a, .footer-col p {
  display: block;
  color: var(--bone-dim);
  font-size: 14.5px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--ember-bright); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fog-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.credit-line { font-size: 12.5px; color: var(--fog-dim); }
.credit-line a { color: var(--fog); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ (details/summary, bez JS) ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line-strong);
}
.faq-item + .faq-item { margin-top: 0; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--bone);
}
.faq-item summary::-webkit-details-marker,
.rules-section summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon,
.rules-section summary .faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.faq-item summary .faq-icon::before,
.faq-item summary .faq-icon::after,
.rules-section summary .faq-icon::before,
.rules-section summary .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ember-bright);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-item summary .faq-icon::before,
.rules-section summary .faq-icon::before { width: 10px; height: 2px; }
.faq-item summary .faq-icon::after,
.rules-section summary .faq-icon::after { width: 2px; height: 10px; transition: opacity 0.2s ease; }
.faq-item[open] summary .faq-icon,
.rules-section[open] summary .faq-icon { border-color: var(--ember); transform: rotate(180deg); }
.faq-item[open] summary .faq-icon::after,
.rules-section[open] summary .faq-icon::after { opacity: 0; }
.faq-item summary:hover { color: var(--ember-bright); }

/* ---------- Regulamin — rozwijane sekcje (§1-§8) ---------- */
.rules-section { scroll-margin-top: 100px; }
.rules-section summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 2px solid var(--line-strong);
}
.rules-section summary h2 {
  padding: 0;
  margin: 0;
  border: none;
}
.rules-section summary .faq-icon { margin-top: 8px; }
.rules-section summary:hover h2 { color: var(--ember-bright); }
.rules-section .rules-body {
  padding-top: 22px;
  animation: rules-reveal 0.2s ease;
}
@keyframes rules-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-answer {
  padding: 0 24px 22px;
  color: var(--bone-dim);
  font-size: 14.5px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.faq-answer p { margin: 0 0 0.8em; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer ul { margin: 0 0 0.8em; padding-left: 20px; }
.faq-answer li { margin-bottom: 4px; }
.faq-answer li::marker { color: var(--ember); }
.faq-answer a { color: var(--ember-bright); text-decoration: underline; text-underline-offset: 3px; }
.faq-answer a:hover { color: var(--ember); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .cell:nth-child(2n+1) { border-left: none; }
  .shop-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .with-sidebar { grid-template-columns: 1fr; }
  .side-nav { position: static; border-left: none; padding-left: 0; flex-direction: row; flex-wrap: wrap; border-top: 1px solid var(--line-strong); padding-top: 16px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--void); flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-toggle { display: block; }
  .header-actions .lang-switch { display: none; }
  .main-nav .lang-switch-mobile { display: flex; margin-top: 16px; }
  .hero { min-height: 100vh; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .ip-box { flex-direction: column; align-items: flex-start; gap: 10px; }
  section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip .cell { border-left: none !important; border-top: 1px solid var(--line); }
  .stat-strip .cell:first-child { border-top: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-hero { padding-top: 128px; }
}

/* ---------- Pojazdy ---------- */
.vehicle-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 8px 0 16px;
}
.vehicle-search {
  flex: 1 1 260px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 0;
}
.vehicle-search:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; border-color: var(--ember); }
.vehicle-count { color: var(--fog); font-family: var(--font-mono); font-size: 13px; }
.vehicle-empty { color: var(--fog); max-width: 820px; }
.vehicle-item.is-filtered { display: none; }
.vehicle-photo { margin: 0 0 14px; background: var(--void); border: 1px solid var(--line-strong); }
.vehicle-photo img { display: block; width: 100%; height: auto; }

/* ---------- FAQ: grupy pytań ---------- */
.faq-group {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.04em;
  color: var(--ember-bright);
  margin: 28px 0 2px;
  padding-top: 18px;
  border-top: 2px solid var(--line-strong);
}
.faq-list > .faq-group:first-child,
.faq-list > .faq-group[hidden] + .faq-group:nth-child(2) { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- Regulamin: rozwijana mapa ---------- */
.map-toggle {
  display: inline;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: var(--ember-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.map-toggle:hover { color: var(--ember); }
.map-toggle:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.map-figure { margin: 14px 0 6px; max-width: 640px; }
.map-figure a { display: block; border: 1px solid var(--line-strong); background: var(--void); }
.map-figure img { display: block; width: 100%; height: auto; }
.map-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--fog); }

.page-hero .lede a { color: var(--ember-bright); text-decoration: underline; text-underline-offset: 3px; }
.page-hero .lede a:hover { color: var(--ember); }
