/* Kolory spójne z panelem Pulpit: ciemny granat, akcent błękitny. */
:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-soft: #e0f2fe;
  --border: #e2e8f0;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand img { height: 40px; width: auto; }
.topbar nav { display: flex; align-items: center; gap: 20px; }
.topbar nav a:not(.btn) { color: var(--ink); font-weight: 500; }

main { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.hero {
  text-align: center;
  padding: 72px 0 48px;
}
.hero h1 { font-size: 2.4rem; margin: 0 0 12px; }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto 28px; }

.plans { padding: 40px 0; }
.plans h2 { font-size: 1.6rem; margin: 0 0 6px; }
.muted { color: var(--muted); font-size: 0.95rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card h3 { margin: 0; font-size: 1.05rem; }
.price { font-size: 1.6rem; font-weight: 700; }
.price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.card .btn { margin-top: auto; }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--border); color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn.is-disabled { background: #bae6fd; pointer-events: none; }

.footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .topbar nav a:not(.btn) { display: none; }
}

.eyebrow { color: var(--accent); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.benefits { padding: 40px 0; }
.benefits h2 { font-size: 1.6rem; margin: 0 0 12px; }
.benefits > p { max-width: 720px; }
.benefit-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.benefit-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

/* Efekt "z pazurem": gradient w hero, ikony w zaletach, odznaka i karty z akcentem. */
.hero { position: relative; overflow: hidden; border-radius: 20px; margin-top: 24px; background: linear-gradient(135deg, #0b1220 0%, #0f2747 55%, #0a66ff 100%); color: #fff; padding: 88px 24px 72px; }
.hero h1 { color: #fff; font-size: 2.8rem; letter-spacing: -0.02em; }
.hero p { color: #cbd5e1; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.06); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.14); }
.hero .btn-primary { background: #38bdf8; color: #0b1220; }
.hero .btn-primary:hover { background: #7dd3fc; }
.hero-glow { position: absolute; inset: auto -10% -40% auto; width: 520px; height: 520px; background: radial-gradient(circle, rgba(56,189,248,0.45), transparent 65%); pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: #e0f2fe; margin-bottom: 18px; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 0 4px rgba(56,189,248,0.25); }
.benefit-list li { display: flex; gap: 14px; align-items: flex-start; transition: transform .15s ease, box-shadow .15s ease; }
.benefit-list li:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,23,42,0.08); }
.benefit-list li > div { line-height: 1.45; }
.ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #38bdf8, #0a66ff); color: #fff; }
.ico svg { width: 22px; height: 22px; }
.card { transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); border-color: #7dd3fc; box-shadow: 0 12px 28px rgba(2,132,199,0.12); }
.card .price { background: linear-gradient(90deg, var(--ink), #0a66ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card .price span { -webkit-text-fill-color: var(--muted); background: none; }
@media (max-width: 640px) { .hero { padding: 64px 20px 56px; } .hero h1 { font-size: 2rem; } }


/* Więcej kolorów w tej samej palecie: błękit, turkus, indygo, granat. */
:root {
  --c-sky: #38bdf8;
  --c-blue: #0a66ff;
  --c-teal: #14b8a6;
  --c-indigo: #6366f1;
  --c-navy: #1e3a8a;
  --c-cyan: #22d3ee;
}
.benefit-list li:nth-child(7n+1) .ico { background: linear-gradient(135deg, var(--c-sky), var(--c-blue)); }
.benefit-list li:nth-child(7n+2) .ico { background: linear-gradient(135deg, var(--c-teal), var(--c-cyan)); }
.benefit-list li:nth-child(7n+3) .ico { background: linear-gradient(135deg, var(--c-blue), var(--c-indigo)); }
.benefit-list li:nth-child(7n+4) .ico { background: linear-gradient(135deg, var(--c-cyan), var(--c-sky)); }
.benefit-list li:nth-child(7n+5) .ico { background: linear-gradient(135deg, var(--c-indigo), var(--c-navy)); }
.benefit-list li:nth-child(7n+6) .ico { background: linear-gradient(135deg, var(--c-teal), var(--c-blue)); }
.benefit-list li:nth-child(7n+7) .ico { background: linear-gradient(135deg, var(--c-navy), var(--c-sky)); }

.plans h2, .benefits h2 {
  background: linear-gradient(90deg, var(--c-navy), var(--c-blue) 60%, var(--c-teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}

.card { border-top: 3px solid var(--c-sky); }
#vps-grid .card:nth-child(3n+1) { border-top-color: var(--c-sky); }
#vps-grid .card:nth-child(3n+2) { border-top-color: var(--c-teal); }
#vps-grid .card:nth-child(3n+3) { border-top-color: var(--c-indigo); }
/* VPS: 3 plany u góry (wyśrodkowane), 4 na dole */
@media (min-width: 1000px) {
  #vps-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  #vps-grid .card { grid-column: span 2; }
  #vps-grid .card:nth-child(1) { grid-column: 2 / span 2; }
}
#domain-grid .card { border-top-color: var(--c-blue); }
/* Domeny: 3 w linii, dwa rzędy po 3 */
@media (min-width: 760px) {
  #domain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
#hosting-grid .card { border-top-color: var(--c-cyan); }

.btn-primary { background: linear-gradient(135deg, var(--c-blue), var(--c-indigo)); }
.btn-primary:hover { background: linear-gradient(135deg, var(--c-indigo), var(--c-navy)); }
.hero .btn-primary { background: linear-gradient(135deg, var(--c-sky), var(--c-cyan)); color: #0b1220; }

.contact-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.contact-list span { color: var(--muted); min-width: 120px; font-size: 0.9rem; }
.contact-list a { font-weight: 600; }

.reviews { padding: 40px 0; }
.reviews .eyebrow { margin-bottom: 4px; }
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.reviews-head h2 { margin: 0 0 4px; font-size: 1.6rem; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.review .stars { color: var(--c-blue); letter-spacing: 2px; }
.review p { margin: 0; color: var(--ink); font-size: 0.95rem; }
.review-meta { margin-top: auto; display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 10px; }

/* Nagłówek: elementy bliżej siebie, całość wyśrodkowana. */
.topbar { padding: 12px 24px; }
.topbar nav { gap: 12px; }
.topbar nav a:not(.btn) { padding: 6px 8px; }
.topbar nav .btn { padding: 8px 14px; }
.brand img { height: 36px; }
@media (min-width: 900px) {
  .topbar { justify-content: center; gap: 48px; }
}

/* Dekoracyjna szafa serwerowa w nagłówku (SVG), z migającymi diodami. */
.hero .rack { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 120px; height: auto; opacity: 0.35; pointer-events: none; }
.rack .u { fill: #0f172a; stroke: #334155; stroke-width: 1; }
.rack .vent { stroke: #1e293b; stroke-width: 2; stroke-linecap: round; }
.rack .led { fill: #38bdf8; animation: blink 2.4s ease-in-out infinite; }
.rack .l1 { fill: #22d3ee; animation-delay: .4s; }
.rack .l2 { fill: #0a66ff; animation-delay: 1.1s; }
.rack .l3 { fill: #14b8a6; animation-delay: 1.8s; }
@keyframes blink { 0%,100% { opacity: .25; } 50% { opacity: 1; } }
@media (max-width: 640px) {
  .hero .rack { right: -10px; width: 90px; opacity: 0.18; }
}
@media (prefers-reduced-motion: reduce) { .rack .led { animation: none; opacity: .7; } }

/* Ciemny motyw (przełącznik w nagłówku; domyślnie zgodnie z systemem). */
:root[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #121b2e;
  --ink: #e6edf7;
  --muted: #94a3b8;
  --border: #1f2c46;
  --accent-soft: #0c2a44;
  color-scheme: dark;
}
:root[data-theme="dark"] .topbar { background: var(--surface); }
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .review,
:root[data-theme="dark"] .benefit-list li,
:root[data-theme="dark"] .contact-list li { background: var(--surface); }
:root[data-theme="dark"] .card .price { -webkit-text-fill-color: var(--ink); background: none; color: var(--ink); }
:root[data-theme="dark"] .card .price span { -webkit-text-fill-color: var(--muted); }
:root[data-theme="dark"] .topbar nav a:not(.btn) { color: var(--ink); }
:root[data-theme="dark"] .plans h2, :root[data-theme="dark"] .benefits h2 { color: #bae6fd; -webkit-text-fill-color: #bae6fd; }
:root[data-theme="dark"] .btn-ghost { background: transparent; }
:root[data-theme="dark"] .btn-ghost:hover { background: var(--accent-soft); }
:root[data-theme="dark"] .card.is-disabled, :root[data-theme="dark"] .btn.is-disabled { background: #1e3a5f; }
:root[data-theme="dark"] .review p { color: var(--ink); }
:root[data-theme="dark"] .footer { border-top-color: var(--border); }

.theme-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--accent); cursor: pointer; padding: 0; }
.theme-btn:hover { background: var(--accent-soft); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-ico { display: inline-grid; place-items: center; }

/* Więcej kolorów: kolorowe akcenty sekcji i kart. */
.plans:nth-of-type(odd) h2 { color: var(--c-blue); }
#hosting .card h3 { color: var(--c-teal); }
#domeny .card h3 { color: var(--c-indigo); }
#vps .card h3 { color: var(--c-sky); }
#vps .card .btn-primary { background: var(--c-sky); color: #0b1220; }
#vps .card .btn-primary:hover { background: var(--c-cyan); }
#hosting .card .btn-primary { background: var(--c-teal); }
#hosting .card .btn-primary:hover { background: #0f766e; }
#domeny .card .btn-primary { background: var(--c-indigo); }
#domeny .card .btn-primary:hover { background: var(--c-navy); }
.eyebrow { color: var(--c-teal); }
.review .stars { color: var(--c-blue); }

.hero-points { list-style: none; padding: 0; margin: 0 auto 28px; max-width: 640px; text-align: left; display: grid; gap: 8px; }
.hero-points li { position: relative; padding-left: 22px; color: #cbd5e1; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 0 4px rgba(56,189,248,0.2); }

.badge .flag { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.25); flex: 0 0 auto; }

.hero-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 680px; margin: 28px auto 0; }
.hero-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); color: #fff; text-align: left; transition: background .15s ease, transform .15s ease; }
.hero-tile:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.hero-tile strong { font-size: 1rem; }
.hero-tile span { font-size: 0.85rem; color: #cbd5e1; }
@media (max-width: 640px) { .hero-tiles { grid-template-columns: 1fr; } }

/* Większe litery w kafelkach nagłówka. */
.hero-tile strong { font-size: 1.2rem; }
.hero-tile span { font-size: 1rem; }

.badge .sep { width: 4px; }

/* Szafa serwerowa niżej w nagłówku. */
.hero .rack { top: 68%; }

.hero-points .hl { color: #7dd3fc; font-weight: 700; background: rgba(56,189,248,0.14); padding: 1px 8px; border-radius: 6px; white-space: nowrap; }

.hero-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 26px; }
.feat { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); color: #e0f2fe; font-size: 0.92rem; font-weight: 600; }
.feat svg { width: 18px; height: 18px; color: #38bdf8; flex: 0 0 auto; }

.out-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; max-width: 720px; }
.out-list li { position: relative; padding-left: 22px; color: var(--ink); }
.out-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-blue); box-shadow: 0 0 0 4px rgba(10,102,255,0.12); }
.dot-lead { position: relative; padding-left: 22px; max-width: 720px; }
.dot-lead::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--c-blue); box-shadow: 0 0 0 4px rgba(10,102,255,0.12); }

.h-ico { width: 22px; height: 22px; color: var(--c-sky); vertical-align: -4px; margin-right: 8px; }

/* Opinie: pierwsze 3 widoczne, reszta po kliknięciu. */
.review-hidden { display: none; }
.reviews-more { margin: 18px auto 0; display: block; }

/* Przycisk "na górę" pojawia się po przewinięciu. */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--c-blue); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(10,102,255,0.35); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 20; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { background: var(--c-indigo); }

/* Stopka: kolumny z linkami, jak na nowoczesnych stronach usługowych. */
.site-footer { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--border); padding: 48px 24px 24px; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 12px; }
.footer-brand p { margin: 0; max-width: 280px; font-size: 0.92rem; }
.site-footer h4 { margin: 0 0 12px; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-navy); }
:root[data-theme="dark"] .site-footer h4 { color: #bae6fd; }
.site-footer a { display: block; color: var(--muted); padding: 4px 0; font-size: 0.95rem; }
.site-footer a:hover { color: var(--c-blue); }
.footer-bottom { max-width: 1100px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 4px; color: var(--muted); font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Baner cookie: u dołu strony, niezbędne od razu, reszta po zgodzie. */
.cookie-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; width: min(440px, calc(100% - 32px)); background: #0f172a; color: #cbd5e1; border: 1px solid #1f2c46; border-radius: 14px; padding: 18px; box-shadow: 0 16px 40px rgba(2,6,23,0.35); z-index: 30; }
.cookie-banner[hidden] { display: none; }
.cookie-banner h3 { margin: 0 0 6px; color: #f1f5f9; font-size: 1.05rem; }
.cookie-banner p { margin: 0 0 14px; font-size: 0.9rem; line-height: 1.5; }
.cookie-banner p a, .cookie-link { color: #e2e8f0; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.cookie-actions .cookie-link { grid-column: 1 / -1; justify-self: center; font-size: 0.85rem; margin-bottom: 2px; }
.cookie-btn { padding: 10px 14px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.cookie-accept { background: #e2e8f0; color: #0f172a; }
.cookie-accept:hover { background: #fff; }
.cookie-ghost { background: transparent; color: #e2e8f0; border-color: #334155; }
.cookie-ghost:hover { background: #1e293b; }
.cookie-custom { display: grid; gap: 10px; margin-bottom: 14px; }
.cookie-custom label { display: flex; align-items: center; gap: 10px; color: #e2e8f0; font-size: 0.92rem; }
.cookie-custom .cookie-accept { margin-top: 4px; }

/* Baner cookie: mniejszy i płaski. */
.cookie-banner { width: min(560px, calc(100% - 32px)); padding: 12px 16px; border-radius: 10px; box-shadow: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cookie-banner h3 { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 260px; font-size: 0.82rem; line-height: 1.4; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.cookie-actions .cookie-link { grid-column: auto; margin: 0; font-size: 0.8rem; }
.cookie-btn { padding: 6px 12px; font-size: 0.85rem; border-radius: 6px; }
.cookie-custom { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0; }
.cookie-custom label { font-size: 0.85rem; }
.cookie-custom .cookie-accept { margin-top: 0; }

/* Baner cookie: nagłówek wraca, układ uporządkowany, płasko. */
.cookie-banner { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; padding: 14px 18px; }
.cookie-banner h3 { display: block; grid-column: 1 / -1; margin: 0; font-size: 0.95rem; font-weight: 700; color: #f1f5f9; }
.cookie-banner p { grid-column: 1; margin: 0; flex: none; font-size: 0.85rem; line-height: 1.5; }
.cookie-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-actions .cookie-link { grid-column: auto; order: 3; width: 100%; text-align: right; margin: 2px 0 0; font-size: 0.8rem; }
.cookie-custom { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.cookie-custom .cookie-accept { margin-left: auto; }
.cookie-btn { padding: 7px 14px; font-size: 0.85rem; }
@media (max-width: 560px) {
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-banner p, .cookie-actions { grid-column: 1; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .cookie-btn { flex: 1 1 0; }
  .cookie-actions .cookie-link { text-align: center; }
  .cookie-custom .cookie-accept { margin-left: 0; width: 100%; }
}

/* Baner cookie w rogu strony, nie na środku. */
.cookie-banner { left: 20px; right: auto; bottom: 20px; transform: none; width: min(380px, calc(100% - 40px)); grid-template-columns: 1fr; gap: 10px; }
.cookie-banner h3 { grid-column: 1; }
.cookie-banner p { grid-column: 1; }
.cookie-actions { grid-column: 1; justify-content: flex-start; }
.cookie-actions .cookie-link { text-align: left; }
.cookie-custom { grid-column: 1; }
.cookie-custom .cookie-accept { margin-left: 0; }
@media (max-width: 560px) {
  .cookie-banner { left: 16px; right: 16px; width: auto; }
  .cookie-actions { justify-content: stretch; }
}

/* Baner cookie na środku dołu, dwa razy szerszy. */
.cookie-banner { left: 50%; right: auto; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); grid-template-columns: 1fr auto; gap: 6px 20px; }
.cookie-banner h3 { grid-column: 1 / -1; }
.cookie-banner p { grid-column: 1; }
.cookie-actions { grid-column: 2; justify-content: flex-end; }
.cookie-actions .cookie-link { text-align: right; width: 100%; }
.cookie-custom { grid-column: 1 / -1; }
.cookie-custom .cookie-accept { margin-left: auto; }
@media (max-width: 560px) {
  .cookie-banner { grid-template-columns: 1fr; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); }
  .cookie-banner p, .cookie-actions { grid-column: 1; }
  .cookie-actions { justify-content: stretch; }
}

/* Baner cookie: na środku dołu, mniejszy, przyciski równe i wyrównane. */
.cookie-banner { left: 50%; right: auto; bottom: 20px; transform: translateX(-50%); width: min(480px, calc(100% - 32px)); grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
.cookie-banner h3 { grid-column: 1; }
.cookie-banner p { grid-column: 1; font-size: 0.82rem; }
.cookie-actions { grid-column: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; justify-content: stretch; }
.cookie-actions .cookie-link { grid-column: 1 / -1; order: 3; width: auto; justify-self: center; text-align: center; margin: 0; font-size: 0.8rem; }
.cookie-actions .cookie-btn { width: 100%; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.cookie-custom { grid-column: 1; }
.cookie-custom .cookie-accept { margin-left: 0; height: 36px; padding: 0 12px; }
@media (max-width: 560px) {
  .cookie-banner { width: calc(100% - 32px); }
}

/* Panel "Dostosuj": opcje po lewej, przycisk "Zapisz wybór" wyśrodkowany. */
.cookie-custom { display: grid; grid-template-columns: 1fr; gap: 8px; justify-items: start; }
.cookie-custom label { width: 100%; }
.cookie-custom .cookie-accept { width: 100%; justify-self: stretch; text-align: center; display: inline-flex; align-items: center; justify-content: center; height: 36px; }

/* Opcje cookie ukryte, dopóki ktoś nie kliknie "Dostosuj". */
.cookie-banner [hidden] { display: none !important; }

.hero-tile-hosting em { font-style: normal; font-size: 0.85rem; font-weight: 700; color: #7dd3fc; margin-top: 4px; }

/* Kafelki w nagłówku: tekst wyśrodkowany. */
.hero-tile { align-items: center; text-align: center; justify-content: center; }

/* Nagłówek: mniej pustego miejsca u góry i na dole. */
.hero { padding: 44px 24px 40px; }
@media (max-width: 640px) { .hero { padding: 32px 20px 30px; } }


.card-feats { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 6px; }
.card-feats li { position: relative; padding-left: 20px; color: var(--muted); font-size: 0.9rem; }
.card-feats li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 10px; height: 6px; border-left: 2px solid var(--c-teal); border-bottom: 2px solid var(--c-teal); transform: rotate(-45deg); }
/* Wyróżniona cecha (np. hosting Free w domenach) */
.card-feats li.feat-hl { justify-self: start; padding: 3px 10px 3px 28px; border-radius: 6px; background: rgba(56,189,248,0.16); color: var(--c-blue); font-weight: 700; }
.card-feats li.feat-hl::before { left: 10px; top: calc(50% - 4px); }

/* Strona regulaminu */
.legal { max-width: 760px; margin: 0 auto; padding-top: 32px; padding-bottom: 56px; line-height: 1.65; }
.legal h1 { font-size: 1.5rem; margin: 2em 0 0.5em; }
.legal h1:first-child { margin-top: 0; }
.legal p { margin: 0 0 0.9em; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--c-blue); font-weight: 600; text-decoration: none; margin-bottom: 18px; }
.back-link svg { width: 18px; height: 18px; }
.back-link:hover { text-decoration: underline; }

/* Baner: przenieś domenę do nas */
.transfer-box { margin: 0 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 16px; background: linear-gradient(135deg, #0b1220 0%, #0f2747 55%, #0a66ff 100%); color: #fff; }
.transfer-box strong { display: block; font-size: 1.1rem; margin-bottom: 4px; }
.transfer-box span { color: #cbd5e1; font-size: 0.95rem; }
.transfer-box .btn-primary { background: #fff; color: #0b1220; }
.transfer-box .btn-primary:hover { background: #e0f2fe; }
@media (max-width: 640px) { .transfer-box { flex-direction: column; align-items: flex-start; } }
/* Ikony planów hostingu (jak w panelu) */
.plan-title { display: flex; align-items: center; gap: 8px; }
.plan-ico { display: inline-flex; color: var(--c-teal); }
.plan-ico svg { width: 20px; height: 20px; }
#domeny .plan-ico { color: var(--c-indigo); }
#vps .plan-ico { color: var(--c-sky); }

/* Nowocześniejsze tło nagłówka: siatka, poświaty i delikatna animacja */
.hero {
  background:
    radial-gradient(circle at 12% 92%, rgba(20,184,166,0.28), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(56,189,248,0.22), transparent 40%),
    linear-gradient(135deg, #0b1220 0%, #0f2747 55%, #0a66ff 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(125,211,252,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,211,252,0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 72%);
          mask-image: radial-gradient(ellipse at 50% 35%, #000 25%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; width: 480px; height: 480px; right: -140px; top: -180px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(56,189,248,0.45), transparent 65%);
  filter: blur(12px);
  animation: heroDrift 14s ease-in-out infinite alternate;
}
@keyframes heroDrift { to { transform: translate(-70px, 50px) scale(1.08); } }
.hero > .badge, .hero > h1, .hero > p, .hero > .hero-points, .hero > .hero-features, .hero > .hero-tiles, .hero > .hero-actions { position: relative; z-index: 1; }
.hero-tile { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }

/* Wszystkie przyciski: taki sam najazd jak w nagłówku (szara poświata + lekki wzlot) */
.btn, .cookie-btn, .theme-btn, .to-top { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.btn:hover, .cookie-btn:hover, .theme-btn:hover { box-shadow: inset 0 0 0 999px rgba(148,163,184,0.22); transform: translateY(-2px); }
.btn:active, .cookie-btn:active { transform: translateY(0); }

/* Przyciski kart: kolor z sekcji, przejście od jasnego do ciemnego (jak baner) */
#vps .card .btn-primary:not(.is-disabled) { background: linear-gradient(135deg, var(--c-sky) 0%, var(--c-blue) 100%); color: #0b1220; }
#hosting .card .btn-primary:not(.is-disabled) { background: linear-gradient(135deg, var(--c-teal) 0%, var(--c-blue) 100%); color: #fff; }
#domeny .card .btn-primary:not(.is-disabled) { background: linear-gradient(135deg, var(--c-indigo) 0%, var(--c-blue) 100%); color: #fff; }
.legal .cookie-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 0 0 1.2em; }
.legal .cookie-table th, .legal .cookie-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.legal .cookie-table th { font-weight: 600; }
.withdraw-h { font-size: 1.2rem; margin: 2em 0 0.5em; }
.withdraw-form { display: grid; gap: 12px; margin: 0 0 1.5em; max-width: 520px; }
.withdraw-form label { display: grid; gap: 4px; font-weight: 600; font-size: 0.9rem; }
.withdraw-form input { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 400; }
.withdraw-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.withdraw-form .btn { justify-self: start; }

/* Baner cookies: wyśrodkowany, tylko przycisk Akceptuj */
.cookie-banner { text-align: center; }
.cookie-banner .cookie-actions { display: flex; justify-content: center; }
.cookie-banner .cookie-actions .cookie-btn { width: auto; min-width: 160px; height: auto; padding: 10px 18px; }

.hero-tile .ht-ico { display: inline-flex; color: #7dd3fc; margin-bottom: 4px; }
.hero-tile .ht-ico svg { width: 22px; height: 22px; }
.hero-tile strong { font-size: 1.05rem; }
.hero-tile span:not(.ht-ico) { color: #cbd5e1; font-size: 0.9rem; line-height: 1.45; }

/* Kafelki nagłówka: bliżej góry, ikony w widocznym miejscu */
.hero-tiles { margin-top: 14px; }
.hero-tile { padding: 14px 16px; }
.hero-tile .ht-ico { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(125,211,252,0.14); color: #7dd3fc; margin-bottom: 6px; }
.hero-tile .ht-ico svg { width: 22px; height: 22px; display: block; }

/* Kafelki hero: ikona obok tytułu, krótszy kafelek */
.hero-tile { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 4px; align-items: center; text-align: left; justify-content: start; padding: 12px 14px; }
.hero-tile .ht-ico { grid-column: 1; grid-row: 1 / span 2; width: 34px; height: 34px; margin: 0; border-radius: 9px; }
.hero-tile .ht-ico svg { width: 20px; height: 20px; }
.hero-tile strong { grid-column: 2; grid-row: 1; font-size: 1rem; line-height: 1.2; }
.hero-tile span:not(.ht-ico) { grid-column: 2; grid-row: 2; }
.hero-tiles { margin-top: 10px; }

/* Kafelki: ikona w linii z tytułem, opisy wyrównane do dołu */
.hero-tile { grid-template-rows: auto 1fr; align-items: start; }
.hero-tile .ht-ico { grid-row: 1; align-self: center; }
.hero-tile strong { grid-row: 1; align-self: center; }
.hero-tile span:not(.ht-ico) { grid-row: 2; align-self: end; }

/* Mniejsze ikony, opisy wyśrodkowane */
.hero-tile .ht-ico { width: 28px; height: 28px; border-radius: 8px; }
.hero-tile .ht-ico svg { width: 16px; height: 16px; }
.hero-tile span:not(.ht-ico) { text-align: center; }

/* Cała zawartość kafelka wyśrodkowana */
.hero-tile { grid-template-columns: auto auto; justify-content: center; text-align: center; }
.hero-tile .ht-ico { grid-column: 1; }
.hero-tile strong { grid-column: 2; }
.hero-tile span:not(.ht-ico) { grid-column: 1 / -1; }

/* Tytuły przy ikonkach, do lewej, bez zawijania */
.hero-tile strong { text-align: left; justify-self: start; white-space: nowrap; }

/* Ikona bliżej tytułu */
.hero-tile { column-gap: 6px; }

/* Ikona i tytuł jako jeden blok, stały odstęp */
.hero-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.hero-tile .ht-head { display: flex; align-items: center; justify-content: center; gap: 6px; }
.hero-tile .ht-head strong { white-space: nowrap; text-align: left; }
.hero-tile span:not(.ht-ico):not(.ht-head) { text-align: center; }

/* Blok ikona+tytuł na środku kafelka */
.hero-tile .ht-head { align-self: center; grid-row: auto; grid-column: auto; }
.hero-tile span.ht-head:not(.ht-ico) { align-self: center; grid-row: auto; grid-column: auto; }

/* Tabele cookies na telefonie: przewijanie wewnątrz tabeli, bez przewijania strony */
.legal .cookie-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal .cookie-table th, .legal .cookie-table td { white-space: normal; min-width: 110px; }

/* Delikatna sieć w tle strony (jak w nagłówku) */
body {
  background-color: var(--bg);
}
/* Tło jak na logowaniu panelu: ten sam kafelek, przezroczystość i dryf */
body::before {
  content: ""; position: fixed; inset: -400px 0 0 -400px; z-index: -1; pointer-events: none;
  background: url("bg/siec-impuls.svg") repeat; background-size: 400px 400px;
  opacity: .6;
}

/* Biała karta z treścią na tle sieci (jasny motyw); w ciemnym zostaje ciemna */
main {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(15,23,42,0.10);
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 0 24px 24px;
}
main > .hero { margin-top: 24px; }

/* Więcej białego nad nagłówkiem */
main { padding-top: 28px; }

/* Biały pasek nad nagłówkiem: połowa poprzedniej wysokości */
main { padding-top: 14px; }

/* Biały pasek nad nagłówkiem: kolejna połowa */
main { padding-top: 7px; }

/* Pigułka w nagłówku: na telefonie bez „RODO EU" */
@media (max-width: 640px) { .badge-desktop { display: none; } }

/* Menu na telefonie (rozwijane, bez JavaScriptu) */
.menu-mobile { display: none; position: relative; }
.menu-mobile summary { list-style: none; cursor: pointer; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); color: var(--ink); background: var(--surface); }
.menu-mobile summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 46px; min-width: 180px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(15,23,42,0.15); padding: 8px; display: grid; z-index: 30; }
.menu-panel a { padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; text-decoration: none; }
.menu-panel a:hover { background: rgba(10,102,255,0.08); }
@media (max-width: 640px) { .menu-mobile { display: block; } }
.topbar nav .menu-panel a { display: block; padding: 10px 12px; color: var(--ink); }
.menu-panel { left: 0; right: auto; }

/* Przyciski w pasku na telefonie: mniejsze, bez zawijania */
@media (max-width: 640px) {
  .topbar nav .btn { padding: 6px 10px; font-size: 0.8rem; white-space: nowrap; }
  .topbar nav { gap: 8px; }
}

/* Menu na telefonie: na samym końcu paska, za „Załóż konto" */
@media (max-width: 640px) {
  .topbar nav .theme-btn { order: 1; }
  .topbar nav .btn-ghost { order: 2; }
  .topbar nav .btn-primary { order: 3; }
  .menu-mobile { order: 4; }
  .menu-panel { left: auto; right: 0; }
}

/* Pasek na telefonie: logo nie jest ściskane, przyciski się mieszczą */
@media (max-width: 640px) {
  .topbar { padding: 10px 12px; gap: 6px; }
  .brand { flex: 0 0 auto; }
  .brand img { height: 30px; width: auto; max-width: none; flex-shrink: 0; }
  .topbar nav { gap: 6px; flex-shrink: 0; }
  .topbar nav .menu-mobile summary { width: 34px; height: 34px; }
  .topbar nav .theme-btn { width: 34px; height: 34px; }
}

/* Ikony w pasku na telefonie trochę mniejsze, żeby menu nie wychodziło poza ekran */
@media (max-width: 640px) {
  .topbar nav .menu-mobile summary { width: 30px; height: 30px; }
  .topbar nav .theme-btn { width: 30px; height: 30px; }
  .topbar nav { gap: 5px; }
}

/* Baner cookies: niski, szeroki, w jasnoniebieskich barwach, tytuł i tekst w jednym wierszu */
.cookie-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  left: 50%; right: auto; bottom: 20px; transform: translateX(-50%);
  width: min(900px, calc(100% - 32px));
  padding: 12px 18px; border-radius: 12px; text-align: left;
  background: linear-gradient(135deg, #0a66ff 0%, #1e5bd8 60%, #38bdf8 100%);
  border: 1px solid rgba(255,255,255,0.25);
  color: #eaf4ff; box-shadow: 0 12px 30px rgba(10,102,255,0.30);
}
.cookie-banner h3 { display: block; margin: 0; flex: 0 0 auto; font-size: 0.95rem; font-weight: 700; color: #ffffff; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: 0.86rem; line-height: 1.45; color: #eaf4ff; }
.cookie-banner p a, .cookie-banner .cookie-link { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner .cookie-actions { margin-left: auto; display: flex; gap: 8px; }
.cookie-banner .cookie-actions .cookie-btn { width: auto; min-width: 0; height: auto; padding: 8px 16px; font-size: 0.85rem; }
.cookie-banner .cookie-accept { background: #ffffff; color: #0a66ff; border: 0; }
.cookie-banner .cookie-accept:hover { background: #e6f0ff; }

/* Przycisk „Akceptuj" w banerze: lekko przyciemniony */
.cookie-banner .cookie-accept { background: #dbeafe; color: #0a3d91; }
.cookie-banner .cookie-accept:hover { background: #bfdbfe; }

/* Sekcje ofert: szaro-biały przepływ jak w oknie logowania panelu. */
.plans, .benefits, .reviews {
  margin: 20px 0;
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #ffffff 0%, #f1f5f9 55%, #e2e8f0 100%);
}
:root[data-theme="dark"] .plans,
:root[data-theme="dark"] .benefits,
:root[data-theme="dark"] .reviews {
  background: linear-gradient(160deg, #121b2e 0%, #0f172a 55%, #0b1220 100%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plans,
  :root:not([data-theme="light"]) .benefits,
  :root:not([data-theme="light"]) .reviews {
    background: linear-gradient(160deg, #121b2e 0%, #0f172a 55%, #0b1220 100%);
  }
}

/* Górny pasek: delikatne przejście z bieli w szarość (jasny motyw). */
.topbar {
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}
:root[data-theme="dark"] .topbar { background: var(--surface); }

/* Ikonka ciasteczka przy tytule baneru cookies */
.cookie-banner h3 .ck-ico { width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; color: #38bdf8; }

/* Znaczek Stripe przy informacji o płatnościach w stopce */
.pay-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stripe-badge { display: inline-block; background: #ffffff; color: #635bff; border: 1px solid var(--border); border-radius: 8px; padding: 3px 10px; font-weight: 700; font-size: 0.9rem; letter-spacing: -0.02em; line-height: 1.2; }
