/* ThunderHost Docs — tokeny zgodne z thunderhost.eu / panel.thunderhost.eu */
:root {
  --th-bg: #0b1a2b;
  --th-bg-deep: #07131f;
  --th-card: #10243a;
  --th-card-2: #0f1f33;
  --th-accent: #22d3ee;
  --th-accent-2: #2563eb;
  --th-accent-rgb: 34, 211, 238;
  --th-gradient: linear-gradient(90deg, var(--th-accent) 0%, var(--th-accent-2) 100%);
  --th-glass: rgba(16, 36, 58, 0.65);
  --th-glass-strong: rgba(11, 26, 43, 0.82);
  --th-border: rgba(255, 255, 255, 0.07);
  --th-border-strong: rgba(255, 255, 255, 0.12);
  --th-radius: 14px;
  --th-radius-lg: 20px;
  --th-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.25);
  --th-glow: 0 8px 22px -8px rgba(var(--th-accent-rgb), 0.65);
  --th-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --gold: #ffb300;
  --green: #10b981;
  --red: #ef4444;
  --text: #c7d6e5;
  --text-dim: #8fa6bf;
  --text-muted: #5f7893;
  --white: #f2f7fb;

  --font-main: 'Inter', ui-rounded, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --header-h: 64px;
  --sidebar-w: 280px;
  --toc-w: 220px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--th-bg-deep);
  background-image:
    radial-gradient(900px 520px at 50% -160px, rgba(34, 211, 238, 0.13), transparent 70%),
    radial-gradient(700px 600px at 100% 30%, rgba(37, 99, 235, 0.10), transparent 70%),
    linear-gradient(180deg, var(--th-bg) 0%, var(--th-bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--th-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: rgba(var(--th-accent-rgb), 0.3); color: var(--white); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(11, 26, 43, 0.78);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border-bottom: 1px solid var(--th-border);
}
.header-inner {
  height: 100%; max-width: 1480px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 900; letter-spacing: -0.02em; font-size: 18px; }
.logo:hover { text-decoration: none; }
.logo img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(var(--th-accent-rgb), 0.35)); }
.logo .cyan { color: var(--th-accent); }
.logo-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--th-accent); background: rgba(var(--th-accent-rgb), 0.1);
  border: 1px solid rgba(var(--th-accent-rgb), 0.3); padding: 2px 8px; border-radius: 999px;
}

.search {
  flex: 1; max-width: 460px; margin-left: 12px; position: relative;
}
.search input {
  width: 100%; height: 40px; padding: 0 70px 0 40px;
  background: rgba(16, 36, 58, 0.7); color: var(--white);
  border: 1px solid var(--th-border-strong); border-radius: 12px;
  font: 500 14px var(--font-main); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search input { -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search input::placeholder { color: var(--text-muted); }
.search input:focus { border-color: rgba(var(--th-accent-rgb), 0.5); box-shadow: 0 0 0 3px rgba(var(--th-accent-rgb), 0.12); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font: 600 11px var(--font-mono); color: var(--text-dim);
  border: 1px solid var(--th-border-strong); border-radius: 6px; padding: 2px 6px; background: var(--th-bg-deep);
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--th-card); border: 1px solid var(--th-border-strong); border-radius: var(--th-radius);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.75); max-height: 60vh; overflow: auto; display: none; padding: 6px;
}
.search-results.open { display: block; }
.search-results a {
  display: block; padding: 9px 12px; border-radius: 10px; color: var(--text);
}
.search-results a:hover, .search-results a.sel { background: rgba(var(--th-accent-rgb), 0.1); text-decoration: none; }
.search-results .r-title { color: var(--white); font-weight: 600; font-size: 14px; }
.search-results .r-sec { color: var(--text-muted); font-size: 12px; }
.search-results .empty { padding: 14px; color: var(--text-dim); font-size: 14px; }

.header-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-link { color: var(--text); font-weight: 500; font-size: 14.5px; padding: 6px 10px; border-radius: 10px; }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.05); text-decoration: none; }
.status-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--white);
  padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(16,185,129,.35); background: rgba(16,185,129,.08);
}
.status-badge:hover { text-decoration: none; background: rgba(16,185,129,.14); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 12px; font: 700 14.5px var(--font-main); letter-spacing: -0.005em; color: #fff;
  background: var(--th-gradient); box-shadow: var(--th-glow); border: 0; cursor: pointer;
  transition: transform .2s var(--th-ease), filter .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,.04); border: 1px solid var(--th-border-strong); box-shadow: none; color: var(--white); }

.menu-toggle { display: none; background: none; border: 1px solid var(--th-border-strong); color: var(--white); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }

/* ---------- Layout ---------- */
.layout {
  max-width: 1480px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w); gap: 40px;
}

/* Sidebar */
.sidebar {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
  overflow-y: auto; padding: 28px 8px 40px 0;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}
.side-group { margin-bottom: 22px; }
.side-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted);
  margin: 0 0 6px 12px;
}
.side-group a {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; margin: 1px 0; border-radius: 10px; font-size: 14.5px; color: var(--text-dim); font-weight: 500;
  border-left: 2px solid transparent; transition: background .15s, color .15s;
}
.side-group a:hover { color: var(--white); background: rgba(255,255,255,.04); text-decoration: none; }
.side-group a.active {
  color: var(--white); background: rgba(var(--th-accent-rgb), 0.1); border-left-color: var(--th-accent);
}
.soon { font-size: 10px; font-weight: 700; color: var(--gold); border: 1px solid rgba(255,179,0,.4); padding: 0 6px; border-radius: 999px; margin-left: auto; }

/* Content */
.content { padding: 36px 0 80px; min-width: 0; }
.page { display: none; animation: fade .35s var(--th-ease); }
.page.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.breadcrumb { font-size: 13.5px; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumb span + span::before { content: "/"; margin: 0 8px; color: var(--text-muted); }
.breadcrumb span:last-child { color: var(--white); font-weight: 600; }

.content h1 {
  font-size: clamp(30px, 4vw, 40px); font-weight: 900; letter-spacing: -0.035em; line-height: 1.15;
  color: var(--white); margin: 0 0 10px;
}
.grad { background: var(--th-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: var(--text-dim); margin: 0 0 32px; max-width: 70ch; }
.content h2 {
  font-size: 23px; font-weight: 800; letter-spacing: -0.02em; color: var(--white);
  margin: 44px 0 12px; padding-top: 6px; position: relative;
}
.content h2 .anchor { opacity: 0; margin-left: 8px; color: var(--text-muted); font-weight: 500; }
.content h2:hover .anchor { opacity: 1; }
.content h3 { font-size: 17.5px; font-weight: 700; color: var(--white); margin: 28px 0 8px; }
.content p, .content li { max-width: 74ch; }
.content ul, .content ol { padding-left: 22px; }
.content li { margin: 4px 0; }
.content li::marker { color: var(--th-accent); }
.content strong { color: var(--white); }
.content hr { border: 0; border-top: 1px solid var(--th-border); margin: 40px 0; }

code {
  font-family: var(--font-mono); font-size: .86em; color: #a5f3fc;
  background: rgba(var(--th-accent-rgb), 0.08); border: 1px solid rgba(var(--th-accent-rgb), 0.16);
  padding: 1px 6px; border-radius: 6px;
}
.code {
  position: relative; margin: 16px 0 22px; border-radius: var(--th-radius);
  background: #061019; border: 1px solid var(--th-border-strong); overflow: hidden;
}
.code-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; font: 600 12px var(--font-mono); color: var(--text-muted);
  border-bottom: 1px solid var(--th-border); background: rgba(16,36,58,.5);
}
.code-head .dots { display: flex; gap: 6px; }
.code-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: #1f3550; display: block; }
.copy {
  font: 600 12px var(--font-main); color: var(--text-dim); background: none; cursor: pointer;
  border: 1px solid var(--th-border-strong); border-radius: 8px; padding: 3px 10px;
}
.copy:hover { color: var(--white); border-color: rgba(var(--th-accent-rgb), .5); }
.copy.ok { color: var(--green); border-color: rgba(16,185,129,.5); }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 13.5px/1.65 var(--font-mono); color: #d8e6f8; }
.code pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.tok-c { color: #5f7893; } .tok-k { color: #22d3ee; } .tok-s { color: #ffc926; } .tok-n { color: #a78bfa; }

/* Callouts */
.callout {
  display: flex; gap: 14px; padding: 14px 18px; margin: 20px 0; border-radius: var(--th-radius);
  border: 1px solid; background: rgba(16,36,58,.55); max-width: 80ch;
}
.callout .ic { font-size: 18px; line-height: 1.5; }
.callout p { margin: 0; }
.callout b { display: block; color: var(--white); margin-bottom: 2px; }
.callout.info { border-color: rgba(var(--th-accent-rgb), .3); background: rgba(var(--th-accent-rgb), .06); }
.callout.tip  { border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.06); }
.callout.warn { border-color: rgba(255,179,0,.35); background: rgba(255,179,0,.06); }
.callout.danger { border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.06); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 22px 0 10px; }
.card {
  display: block; padding: 20px; border-radius: var(--th-radius-lg);
  background: rgba(16,36,58,.9); border: 1px solid var(--th-border); color: var(--text);
  transition: transform .25s var(--th-ease), border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(var(--th-accent-rgb), .35); box-shadow: var(--th-shadow); text-decoration: none; }
.card .ci {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; margin-bottom: 12px;
  background: rgba(var(--th-accent-rgb), .1); border: 1px solid rgba(var(--th-accent-rgb), .22);
}
.card h4 { margin: 0 0 4px; color: var(--white); font-size: 15.5px; font-weight: 700; }
.card p { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }

/* Hero */
.hero {
  position: relative; padding: 34px 34px 30px; border-radius: 24px; margin-bottom: 30px; overflow: hidden;
  background: linear-gradient(135deg, rgba(16,36,58,.95), rgba(8,40,78,.75));
  border: 1px solid rgba(var(--th-accent-rgb), .18);
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--th-accent-rgb), .25), transparent 65%); pointer-events: none;
}
.hero img.hero-logo { position: absolute; right: 26px; bottom: -10px; width: 190px; opacity: .9; pointer-events: none; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--white);
  padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--th-border-strong); margin-bottom: 14px;
}
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 52ch; margin-bottom: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0 !important; margin: 20px 0; }
.steps > li {
  counter-increment: s; position: relative; padding: 0 0 18px 50px; margin: 0; border-left: 1px dashed rgba(var(--th-accent-rgb), .25); margin-left: 16px;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(s); position: absolute; left: -17px; top: -2px; width: 33px; height: 33px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--th-gradient); box-shadow: var(--th-glow);
}
.steps > li > strong { display: block; margin-bottom: 2px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 18px 0 24px; border-radius: var(--th-radius); border: 1px solid var(--th-border-strong); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 700; color: var(--white); background: rgba(16,36,58,.8); padding: 11px 14px; white-space: nowrap; }
td { padding: 10px 14px; border-top: 1px solid var(--th-border); color: var(--text); }
tr:hover td { background: rgba(255,255,255,.02); }

/* FAQ */
details.faq {
  border: 1px solid var(--th-border); background: rgba(16,36,58,.6); border-radius: var(--th-radius); margin: 10px 0; max-width: 80ch;
}
details.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--white); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--th-accent); font-weight: 700; font-size: 18px; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq > div { padding: 0 18px 14px; color: var(--text-dim); }

/* Page footer nav */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pager a {
  display: block; padding: 14px 18px; border-radius: var(--th-radius); border: 1px solid var(--th-border-strong); background: rgba(16,36,58,.5);
}
.pager a:hover { border-color: rgba(var(--th-accent-rgb), .45); text-decoration: none; }
.pager small { display: block; color: var(--text-muted); font-size: 12px; }
.pager span { color: var(--white); font-weight: 700; }
.pager .next { text-align: right; grid-column: 2; }
.feedback { margin-top: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--text-dim); font-size: 14px; }
.feedback button { font: 600 13px var(--font-main); color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--th-border-strong); padding: 5px 12px; border-radius: 10px; cursor: pointer; }
.feedback button:hover { border-color: rgba(var(--th-accent-rgb), .5); color: var(--white); }

/* TOC */
.toc { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); padding: 36px 0; overflow-y: auto; }
.toc h5 { margin: 0 0 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); }
.toc a { display: block; font-size: 13.5px; color: var(--text-dim); padding: 4px 0 4px 12px; border-left: 1px solid var(--th-border-strong); }
.toc a:hover { color: var(--white); text-decoration: none; }
.toc a.active { color: var(--th-accent); border-left-color: var(--th-accent); }
.toc .help {
  margin-top: 26px; padding: 16px; border-radius: var(--th-radius); background: rgba(16,36,58,.7); border: 1px solid var(--th-border);
  font-size: 13px; color: var(--text-dim);
}
.toc .help b { color: var(--white); display: block; margin-bottom: 4px; font-size: 14px; }
.toc .help .btn { height: 34px; font-size: 13px; padding: 0 12px; margin-top: 10px; }

/* Footer */
.footer { border-top: 1px solid var(--th-border); padding: 26px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.footer a { color: var(--text-dim); margin: 0 8px; }

.overlay { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 0 16px; }
  .header-inner { padding: 0 16px; gap: 10px; }
  .menu-toggle { display: grid; place-items: center; }
  .sidebar {
    position: fixed; top: var(--header-h); left: 0; bottom: 0; width: 290px; height: auto; z-index: 40;
    background: var(--th-bg); border-right: 1px solid var(--th-border-strong); padding: 20px 12px;
    transform: translateX(-100%); transition: transform .3s var(--th-ease);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .overlay { display: block; position: fixed; inset: var(--header-h) 0 0 0; background: rgba(0,0,0,.5); z-index: 30; }
  .header-links .nav-link, .logo-tag { display: none; }
  .hero { padding: 26px 20px; }
  .hero img.hero-logo { width: 120px; opacity: .25; }
}
@media (max-width: 640px) {
  .header-links .status-badge, .header-links .btn span { display: none; }
  .header-links .btn { padding: 0 11px; }
  .logo span.txt { display: none; }
  .search { margin-left: 0; }
  .search kbd { display: none; }
  .search input { padding-right: 12px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}

/* ================= v2: ulepszenia ================= */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--th-card); color: var(--white); padding: 8px 14px; border-radius: 10px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--th-accent); outline-offset: 2px; border-radius: 6px; }

/* Pasek promo — jak na thunderhost.eu */
.promo {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 44px 7px 16px; position: relative; font-size: 13.5px; color: var(--text);
  background: linear-gradient(90deg, rgba(8,40,78,.9), rgba(16,36,58,.9));
  border-bottom: 1px solid var(--th-border);
}
.promo .tag { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--th-gradient); padding: 2px 9px; border-radius: 999px; }
.promo code { font-weight: 700; color: var(--th-accent); border-style: dashed; }
.promo button.copy-code { font: 600 12px var(--font-main); color: var(--white); background: rgba(255,255,255,.06); border: 1px solid var(--th-border-strong); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.promo .close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--text-dim); font-size: 18px; cursor: pointer; }
.promo .muted { color: var(--text-muted); }

/* Pasek postępu czytania */
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--th-gradient); box-shadow: 0 0 10px rgba(var(--th-accent-rgb), .6); transition: width .1s linear; }

/* Meta strony */
.page-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); margin: -18px 0 28px; }
.page-meta a { color: var(--text-dim); }

/* Spis treści inline (gdy brak bocznego) */
.toc-inline { display: none; margin: -10px 0 28px; border: 1px solid var(--th-border-strong); border-radius: var(--th-radius); background: rgba(16,36,58,.55); }
.toc-inline summary { cursor: pointer; padding: 10px 16px; font-weight: 700; color: var(--white); font-size: 14px; }
.toc-inline nav { padding: 0 16px 12px; display: grid; gap: 2px; }
.toc-inline a { font-size: 14px; color: var(--text-dim); padding: 3px 0; }
@media (max-width: 1200px) { .toc-inline { display: block; } }

/* Zakładki */
.tabs { margin: 18px 0 24px; }
.tab-list { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--th-border-strong); margin-bottom: 4px; }
.tab-list button {
  font: 600 13.5px var(--font-main); color: var(--text-dim); background: none; border: 0; cursor: pointer;
  padding: 9px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-list button:hover { color: var(--white); }
.tab-list button[aria-selected="true"] { color: var(--th-accent); border-bottom-color: var(--th-accent); }
.tab-panel[hidden] { display: none; }
.tab-panel > .code:first-child { margin-top: 12px; }

/* Wyszukiwanie: fragmenty i podświetlenia */
.search-results .r-snip { color: var(--text-dim); font-size: 12.5px; margin-top: 2px; line-height: 1.5; }
.search-results mark, mark.hl { background: rgba(255,179,0,.25); color: var(--white); border-radius: 3px; padding: 0 2px; }
mark.hl { transition: background 1.2s; }
mark.hl.fade { background: transparent; color: inherit; }
.search-results .r-head { padding: 6px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

/* Przycisk do góry + toast */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 45; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; background: var(--th-gradient); box-shadow: var(--th-glow);
  border: 0; cursor: pointer; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s var(--th-ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 60; opacity: 0; pointer-events: none;
  background: var(--th-card); color: var(--white); border: 1px solid rgba(var(--th-accent-rgb), .4); border-radius: 12px;
  padding: 10px 16px; font-size: 14px; font-weight: 600; box-shadow: var(--th-shadow); transition: .25s var(--th-ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Tabela błędów */
.err td:first-child { font-family: var(--font-mono); font-size: 12.5px; color: #fca5a5; white-space: nowrap; }
.badge-new { font-size: 10px; font-weight: 700; color: var(--green); border: 1px solid rgba(16,185,129,.45); padding: 0 6px; border-radius: 999px; margin-left: auto; }

@media (max-width: 640px) {
  .promo { font-size: 12.5px; padding-right: 36px; }
  .promo .muted { display: none; }
  .to-top { right: 14px; bottom: 14px; }
}
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { color: var(--white); }

/* Przełącznik języka — jak na thunderhost.eu */
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(16,36,58,.8); border: 1px solid var(--th-border-strong); }
.lang-switch a { font-size: 12.5px; font-weight: 700; color: var(--text-dim); padding: 3px 10px; border-radius: 999px; line-height: 1.4; }
.lang-switch a:hover { color: var(--white); text-decoration: none; }
.lang-switch a.on { color: #fff; background: var(--th-gradient); box-shadow: var(--th-glow); }

/* ── Thunder — maskotka (wolf3d.js, ten sam co na thunderhost.eu) ── */
.wolf3d {
  position: absolute; z-index: 2; cursor: pointer; opacity: 0; transform: translateY(20px) scale(.96);
  transition: opacity .7s, transform .7s var(--th-ease); -webkit-tap-highlight-color: transparent;
}
.wolf3d.is-ready { opacity: 1; transform: none; }
.wolf3d canvas { display: block; width: 100%; height: 100%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.wolf-bubble {
  position: absolute; top: 6px; z-index: 1; padding: 9px 13px; white-space: nowrap;
  border-radius: 14px 14px 4px 14px; background: rgba(16,36,58,.92);
  border: 1px solid rgba(var(--th-accent-rgb), .35);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6), 0 0 24px -10px rgba(var(--th-accent-rgb), .6);
  color: var(--white); font-size: .82rem; font-weight: 700; line-height: 1.35; pointer-events: none;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: wolf-float 4s ease-in-out infinite;
}
.wolf-bubble.pop { animation: wolf-pop .45s cubic-bezier(.22,1.6,.36,1), wolf-float 4s ease-in-out .45s infinite; }
@keyframes wolf-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes wolf-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .wolf-bubble { animation: none; } }

.wolf3d--docs { right: 18px; bottom: -6px; width: 190px; height: 228px; }
.wolf3d--docs .wolf-bubble { right: 46%; top: -30px; }
.hero:has(.wolf3d--docs) .lead { max-width: 46ch; }

@media (max-width: 1100px) {
  .wolf3d--docs { width: 160px; height: 192px; right: 6px; }
}
@media (max-width: 640px) {
  .hero:has(.wolf3d--docs) { padding-bottom: 225px; }
  .wolf3d--docs { right: 50%; margin-right: -75px; width: 150px; height: 180px; }
  .wolf3d--docs .wolf-bubble { right: auto; left: -40px; top: -40px; font-size: .76rem; }
}
