/* ============================================================
   Mikrus - redesign 2026
   Design system: "Terminal, ktory sie sprzedaje"
   Ciemny motyw dev/terminal + brandowy pomarancz
   ============================================================ */

:root {
  /* Tlo i powierzchnie */
  --bg:          #0b0c0e;
  --bg-2:        #0f1013;
  --surface:     #15161a;
  --surface-2:   #1b1c22;
  --surface-3:   #212228;
  --border:      #26272e;
  --border-2:    #34353d;

  /* Tekst */
  --text:        #e9e9ec;
  --text-strong: #ffffff;
  --muted:       #9a9aa5;
  --muted-2:     #6c6d76;

  /* Marka */
  --orange:        #ee7225;
  --orange-bright: #ff8a3d;
  --orange-ink:    #1a0f06;
  --orange-soft:   rgba(238, 114, 37, 0.12);
  --orange-line:   rgba(238, 114, 37, 0.35);
  --green:         #21d07a;
  --green-soft:    rgba(33, 208, 122, 0.12);
  --green-line:    rgba(33, 208, 122, 0.35);
  --purple:        #8b5cf6;
  --purple-bright: #a78bfa;
  --purple-soft:   rgba(139, 92, 246, 0.14);
  --purple-line:   rgba(139, 92, 246, 0.38);

  /* Typografia */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Ksztalt */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 20px 40px -24px rgba(0,0,0,0.8);
  --shadow-glow: 0 0 0 1px var(--orange-line), 0 18px 50px -18px rgba(238,114,37,0.45);
  --maxw: 1250px;
}

/* ---------- Reset / baza ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--orange) var(--bg-2); scrollbar-width: thin; }
/* Pasek przewijania przegladarki - pomaranczowy (WebKit: Chrome/Safari/Edge) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 8px; border: 3px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: var(--orange-bright); }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--text-strong); line-height: 1.1; letter-spacing: -0.03em; margin: 0; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--orange); color: #fff; }

/* ---------- Tlo: siatka + glowy ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(52rem 40rem at 86% -12%, rgba(238,114,37,0.20), transparent 56%),
    radial-gradient(52rem 46rem at 0% 3%, rgba(139,92,246,0.26), transparent 56%),
    radial-gradient(48rem 48rem at 102% 52%, rgba(139,92,246,0.20), transparent 60%),
    radial-gradient(44rem 40rem at 26% 110%, rgba(139,92,246,0.15), transparent 60%),
    var(--bg);
}
/* Tlo: matryca punktow (wezly / data) zamiast kratki - motyw infrastruktury */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    url(../img/bg-network.svg),
    radial-gradient(rgba(255,255,255,0.10) 1.1px, transparent 1.6px),
    radial-gradient(rgba(139,92,246,0.15) 1.1px, transparent 1.6px);
  background-size: 260px 260px, 24px 24px, 24px 24px;
  background-position: 0 0, 0 0, 12px 12px;
  mask-image: radial-gradient(ellipse 150% 120% at 50% -8%, #000 52%, transparent 94%);
  -webkit-mask-image: radial-gradient(ellipse 150% 120% at 50% -8%, #000 52%, transparent 94%);
  pointer-events: none;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding-block: 72px; position: relative; scroll-margin-top: 84px; }
.section--tight { padding-block: 64px; }
@media (max-width: 640px) { .section { padding-block: 64px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--orange-bright);
  padding: 6px 12px;
  border: 1px solid var(--orange-line);
  border-radius: 100px;
  background: var(--orange-soft);
}
.eyebrow::before { content: "❯"; font-weight: 700; opacity: 0.85; }
.eyebrow--green { color: var(--green); border-color: var(--green-line); background: var(--green-soft); }
.eyebrow--green::before { content: "❯"; }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.2vw, 44px); margin-top: 18px; }
.section-head p { color: var(--muted); font-size: 19px; margin-top: 16px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  /* background-color, nie background: Safari nie interpoluje gradientu i
     zostawia przycisk przezroczysty do pierwszego scrolla / odmalowania. */
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background-color: var(--orange);
  background-image: linear-gradient(180deg, var(--orange-bright), var(--orange));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(238,114,37,0.6), 0 1px 0 rgba(255,255,255,0.25) inset;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(238,114,37,0.75), 0 1px 0 rgba(255,255,255,0.3) inset; }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--muted-2); background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.btn-green {
  background-color: var(--green);
  background-image: linear-gradient(180deg, #2ee08c, var(--green));
  color: #04140c;
  box-shadow: 0 10px 30px -12px rgba(33,208,122,0.6);
}
.btn-green:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------- Nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,12,14,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 22px; width: auto; }
.nav-logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; margin-right: auto; }
.nav-links a {
  color: var(--muted); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.nav-burger { display: none; background: none; border: 1px solid var(--border-2); border-radius: 9px; width: 42px; height: 40px; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.nav-burger svg { width: 22px; height: 22px; }

@media (max-width: 940px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta { margin-left: auto; }
}

/* Mobilne menu */
.mobile-menu {
  position: fixed; inset: 68px 0 auto 0; z-index: 49;
  background: rgba(11,12,14,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 22px 26px;
  display: none; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 12px; color: var(--text); font-weight: 500; border-radius: 10px; font-size: 16px; }
.mobile-menu a:hover { background: rgba(255,255,255,0.05); }
.mobile-menu .btn { margin-top: 12px; }
.mobile-menu-panel {
  margin-top: 10px;
  display: flex;
  font-weight: 700;
  color: var(--orange-bright);
  background: var(--orange-soft);
  border: 1px solid var(--orange-line);
}
.mobile-menu a.mobile-menu-panel:hover {
  color: #fff;
  background-color: var(--orange);
  background-image: linear-gradient(180deg, var(--orange-bright), var(--orange));
  border-color: transparent;
}

/* ---------- Hero ---------- */
.hero { padding-top: 62px; padding-bottom: 84px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 46px; max-width: 1000px; margin-inline: auto; }
.hero-grid > .reveal:first-child { text-align: center; max-width: 760px; margin-inline: auto; }
.hero .terminal { max-width: 900px; margin-inline: auto; width: 100%; }

.hero h1 {
  font-size: clamp(28px, 4.8vw, 50px);
  line-height: 1.05;
  margin-top: 22px;
  letter-spacing: -0.04em;
}
.hero h1 .accent { color: var(--orange); }
.hero .lead { color: var(--muted); font-size: clamp(16px, 2.2vw, 20px); margin-top: 22px; max-width: 720px; margin-inline: auto; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; justify-content: center; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted-2); display: flex; align-items: center; justify-content: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--green); }

/* pasek zaufania - chipy, wysrodkowane */
.trustbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: 36px; }
.trustbar .ti { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 100px; padding: 8px 15px; }
.trustbar .ti b { color: var(--text); font-weight: 600; }
.trustbar .ti svg { width: 17px; height: 17px; color: var(--orange); flex-shrink: 0; }

/* Terminal */
.terminal {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-2);
  background: linear-gradient(180deg, #131418, #0e0f12);
  box-shadow: var(--shadow-card), 0 0 80px -34px rgba(238,114,37,0.35), 0 40px 100px -46px rgba(139,92,246,0.5);
  overflow: hidden;
  font-family: var(--font-mono);
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border); }
.terminal-bar .dots { display: flex; gap: 7px; }
.terminal-bar .dots i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.terminal-bar .dots i:nth-child(1) { background: #ff5f57; }
.terminal-bar .dots i:nth-child(2) { background: #febc2e; }
.terminal-bar .dots i:nth-child(3) { background: #28c840; }
.terminal-bar .title { margin-left: 8px; font-size: 12.5px; color: var(--muted-2); }
.terminal-body { padding: 24px 24px 28px; font-size: 14.5px; line-height: 1.9; min-height: 384px; }
.terminal-body .line { white-space: pre-wrap; word-break: break-word; }
.term-prompt { color: var(--green); }
.term-user { color: var(--orange-bright); }
.term-path { color: #6ea8fe; }
.term-out { color: var(--muted); }
.term-ok { color: var(--green); }
.term-warn { color: #febc2e; }
.term-comment { color: var(--muted-2); }
.term-cursor { display: inline-block; width: 8px; height: 16px; background: var(--orange); margin-left: 2px; vertical-align: -3px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee (spoleczne) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat .n { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.03em; }
.stat .n .u { color: var(--orange); }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Filary ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); position: relative; transition: border-color .2s, transform .2s; }
.pillar:hover { border-color: var(--border-2); transform: translateY(-3px); }
.pillar .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); border: 1px solid var(--orange-line); margin-bottom: 18px; }
.pillar .ic img { width: 24px; height: 24px; }
.pillar h3 { font-size: 20px; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 15px; }

/* ---------- Cennik ---------- */
.pricing-tabs { display: inline-flex; padding: 5px; gap: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin: 0 auto 40px; }
.pricing-tabs button { font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); background: none; border: none; padding: 9px 18px; border-radius: 8px; cursor: pointer; transition: .18s; font-weight: 500; }
.pricing-tabs button.active { background: var(--orange-soft); color: var(--orange-bright); box-shadow: inset 0 0 0 1px var(--orange-line); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.plan:hover { border-color: var(--border-2); transform: translateY(-4px); }
.plan.featured {
  border-color: var(--orange-line);
  background: linear-gradient(180deg, rgba(238,114,37,0.06), var(--surface) 60%);
  box-shadow: var(--shadow-glow);
}
.plan.free { border-color: var(--green-line); background: linear-gradient(180deg, rgba(33,208,122,0.05), var(--surface) 60%); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  padding: 5px 13px; border-radius: 100px; white-space: nowrap;
  background: linear-gradient(180deg, var(--orange-bright), var(--orange)); color: #fff;
  box-shadow: 0 6px 18px -6px rgba(238,114,37,0.7);
}
.plan-badge.green { background: linear-gradient(180deg, #2ee08c, var(--green)); color: #04140c; }
.plan-name { font-family: var(--font-mono); font-size: 15px; color: var(--muted); font-weight: 500; }
.plan-price { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amt { font-size: 40px; font-weight: 700; color: var(--text-strong); letter-spacing: -0.03em; font-family: var(--font-mono); }
.plan-price .per { color: var(--muted-2); font-size: 14px; }
.plan-price .free-tag { font-size: 30px; font-weight: 700; color: var(--green); font-family: var(--font-mono); }
.plan-specs { list-style: none; padding: 20px 0; margin: 18px 0 0; border-top: 1px solid var(--border); display: grid; gap: 11px; }
.plan-specs li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--text); }
.plan-specs li svg { width: 17px; height: 17px; color: var(--orange); flex-shrink: 0; }
.plan.free .plan-specs li svg { color: var(--green); }
.plan-specs li .muted { color: var(--muted); }
.plan-specs li b { font-family: var(--font-mono); color: var(--text-strong); font-weight: 600; }
.plan .btn { margin-top: auto; }
.plan-foot { margin-top: 12px; font-size: 12.5px; color: var(--muted-2); text-align: center; min-height: 16px; }

.pricing-note { margin-top: 22px; text-align: center; color: var(--muted-2); font-size: 13.5px; }

/* addon nextcloud */
.addon { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 22px 26px; border: 1px dashed var(--border-2); border-radius: var(--radius); background: rgba(255,255,255,0.015); }
.addon .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; }
.addon .ic img { width: 24px; height: 24px; }
.addon .txt { flex: 1; min-width: 220px; }
.addon .txt h4 { font-size: 17px; margin-bottom: 3px; }
.addon .txt p { color: var(--muted); font-size: 14px; }
.addon .price { font-family: var(--font-mono); color: var(--text-strong); font-weight: 600; }
.addon .price span { color: var(--muted-2); font-weight: 400; font-size: 13px; }

/* ---------- Risk reversal ---------- */
.risk { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; padding: 40px; border: 1px solid var(--orange-line); border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(238,114,37,0.08), rgba(255,255,255,0.01)); }
@media (max-width: 820px) { .risk { grid-template-columns: 1fr; padding: 30px; } }
.risk h2 { font-size: clamp(24px, 3.4vw, 34px); }
.risk p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.risk-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.risk-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.risk-points li svg { width: 19px; height: 19px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.risk-cta { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: rgba(11,12,14,0.5); border: 1px solid var(--border); border-radius: var(--radius); }
.risk-cta .big { font-family: var(--font-mono); font-size: 34px; font-weight: 700; color: var(--text-strong); }
.risk-cta .big span { color: var(--orange); }
.risk-cta .sub { color: var(--muted); font-size: 14px; }

/* ---------- Korzysci grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, background .2s; }
.feature:hover { border-color: var(--border-2); background: var(--surface-2); }
.feature .ic { width: 54px; height: 54px; border-radius: 15px; background: var(--orange-soft); border: 1px solid var(--orange-line); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic img { width: 27px; height: 27px; }
.feature h3 { font-size: 18.5px; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.62; }

/* ---------- Opinie ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.review { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; }
.review .stars { color: var(--orange); font-size: 15px; letter-spacing: 2px; margin-bottom: 14px; }
.review p { color: var(--text); font-size: 15px; line-height: 1.6; }
.review .who { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.review .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--orange), #b8501a); font-size: 15px; }
.review .who .nm { font-weight: 600; font-size: 14.5px; }
.review .who .rl { color: var(--muted-2); font-size: 12.5px; }

/* ---------- Helper / edu / social banner ---------- */
.banner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 32px 36px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
@media (max-width: 760px) { .banner { grid-template-columns: 1fr; text-align: center; } .banner .btn { justify-self: center; } }
.banner .b-ic { width: 56px; height: 56px; border-radius: 14px; background: var(--orange-soft); border: 1px solid var(--orange-line); display: grid; place-items: center; }
.banner .b-ic img { width: 28px; height: 28px; }
.banner h3 { font-size: 21px; }
.banner p { color: var(--muted); margin-top: 6px; font-size: 15px; }
.banner--green .b-ic { background: var(--green-soft); border-color: var(--green-line); }

/* Spolecznosci */
.socials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 720px) { .socials { grid-template-columns: repeat(2, 1fr); } }
.social-card { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, transform .2s; }
.social-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.social-card .si { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; }
.social-card .si img { width: 22px; height: 22px; }
.social-card .st { font-weight: 600; font-size: 15px; }
.social-card .ss { color: var(--muted-2); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq-group { margin-bottom: 34px; }
.faq-group > h3 { font-family: var(--font-mono); font-size: 14px; color: var(--orange-bright); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; padding-left: 4px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: var(--border-2); }
.faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--text); font-family: var(--font-sans); font-size: 16px; font-weight: 500; padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { width: 20px; height: 20px; color: var(--muted); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--orange); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 20px 20px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.faq-a-inner b { color: var(--text); }
.faq-a-inner a { color: var(--orange-bright); text-decoration: underline; text-underline-offset: 2px; }
.faq-a-inner a:hover { color: var(--orange); }
.faq-a-inner code { font-family: var(--font-mono); font-size: 13px; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--orange-bright); }
.faq-a-inner p { margin: 0; }
.faq-a-inner p + p { margin-top: 12px; }

/* ---------- Final CTA ---------- */
.final {
  text-align: center; padding: 64px 40px;
  border: 1px solid var(--orange-line); border-radius: var(--radius-lg);
  background:
    radial-gradient(40rem 20rem at 50% 0%, rgba(238,114,37,0.18), transparent 65%),
    var(--surface);
  position: relative; overflow: hidden;
}
.final h2 { font-size: clamp(28px, 4.5vw, 46px); }
.final p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 560px; margin-inline: auto; }
.final .final-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.final .final-note { margin-top: 18px; font-size: 13.5px; color: var(--muted-2); }

/* ---------- Stopka ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 56px 40px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand img { height: 22px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 300px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); margin-bottom: 14px; font-family: var(--font-mono); }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--orange-bright); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted-2); font-size: 13px; }
.footer-bottom .legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Sticky mobilny CTA (podium bottom-nav) ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(15,16,19,0.94);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--border-2);
  box-shadow: 0 -12px 30px -12px rgba(0,0,0,0.7);
  display: none; align-items: flex-end; justify-content: center; gap: 10px;
  opacity: 0; transform: translateY(26px); pointer-events: none;
  transition: opacity .5s ease, transform .5s cubic-bezier(.16, 1, .3, 1);
}
.sticky-cta.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sc-item {
  flex: 1; max-width: 128px; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 9px 6px; border-radius: 13px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted); font-size: 11px; font-weight: 600;
  text-align: center; line-height: 1.15;
  transition: transform .15s ease, border-color .15s, color .15s;
}
.sc-item svg { width: 20px; height: 20px; }
.sc-item span { white-space: nowrap; }
.sc-item:active { transform: scale(0.95); }
.sc-main {
  margin-top: -22px; padding: 14px 8px 11px;
  background: linear-gradient(180deg, var(--orange-bright), var(--orange));
  border-color: transparent; color: #fff; font-size: 12.5px; font-weight: 700;
  box-shadow: 0 -8px 22px -8px rgba(238,114,37,0.85), 0 1px 0 rgba(255,255,255,0.25) inset;
}
.sc-main svg { width: 25px; height: 25px; }
@media (max-width: 720px) { .sticky-cta { display: flex; } body { padding-bottom: 78px; } }

/* ---------- Reveal on scroll: WYLACZONE ----------
   Elementy laduja sie od razu widoczne. Klasa .reveal zostaje w HTML,
   bo sluzy jako hook layoutu (.hero-grid > .reveal:first-child,
   .idea-hero-grid > .reveal:first-child) - nie usuwaj jej z markupu. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .term-cursor { animation: none; }
}

/* ---------- Zabezpieczenia przed overflow poziomym ---------- */
html, body { max-width: 100%; }
h1, h2, h3, h4, p, .lead, .plan-foot, .stat .l { overflow-wrap: break-word; }
/* dzieci gridow/flexow musza moc sie skurczyc ponizej min-content */
.hero-grid > *, .stats > *, .pillars > *, .plans > *, .features > *,
.reviews > *, .socials > *, .footer-grid > *, .risk > *, .banner > *,
.compare-grid > *, .nav-cta, .trustbar .ti, .plan-specs li, .review, .social-card { min-width: 0; }
.terminal, .terminal-body { max-width: 100%; }
.terminal-body .line { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .terminal-body { font-size: 12px; padding: 16px; }
  .nav-inner { gap: 14px; }
}

/* ---------- Tabela porownawcza planow ---------- */
.ptable-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-card);
}
.ptable { width: 100%; border-collapse: collapse; min-width: 780px; }
.ptable thead th {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2);
  text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.ptable thead th.c, .ptable tbody td.c { text-align: center; }
.ptable thead th.r, .ptable tbody td.r { text-align: right; }
.ptable tbody td { padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 15px; }
.ptable tbody tr:last-child td { border-bottom: none; }
.ptable tbody tr:hover td { background: rgba(255,255,255,0.02); }
.ptable .pl-name { font-family: var(--font-mono); font-weight: 700; color: var(--text-strong); font-size: 15.5px; }
.ptable .pl-name .sub { display: block; font-family: var(--font-sans); font-size: 12px; font-weight: 400; color: var(--muted-2); margin-top: 3px; }
.ptable .spec { font-family: var(--font-mono); font-weight: 600; color: var(--text-strong); font-size: 15px; }
.ptable .use { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.ptable .pl-price { font-family: var(--font-mono); font-weight: 700; font-size: 21px; color: var(--text-strong); white-space: nowrap; }
.ptable .pl-price .u { font-family: var(--font-sans); font-size: 12px; font-weight: 400; color: var(--muted-2); }
.ptable .btn { padding: 9px 20px; font-size: 13.5px; }
.ptable tr.featured td { background: linear-gradient(90deg, rgba(238,114,37,0.12), rgba(238,114,37,0.03)); border-top: 1px solid var(--orange-line); border-bottom: 1px solid var(--orange-line); }
.ptable tr.featured:hover td { background: linear-gradient(90deg, rgba(238,114,37,0.16), rgba(238,114,37,0.05)); }
.ptable tr.featured .pl-name { color: var(--orange-bright); }
.tbadge {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.04em; padding: 3px 9px; border-radius: 100px; margin-left: 8px; vertical-align: middle;
  background: linear-gradient(180deg, var(--orange-bright), var(--orange)); color: #fff; white-space: nowrap;
}
.tbadge.purple { background: none; color: var(--purple-bright); border: 1px solid var(--purple-line); }
.ptable td.spec .tbadge { margin-left: 0; }
.ptable-scroll-hint { text-align: center; color: var(--muted-2); font-size: 12px; margin-top: 10px; display: none; }
@media (max-width: 800px) { .ptable-scroll-hint { display: block; } }

/* ---------- Centrowanie (feedback uzytkownika) ---------- */
.pillar, .feature, .stat { text-align: center; }
.pillar .ic, .feature .ic { margin-inline: auto; }

.plan { text-align: center; }
.plan-price { justify-content: center; }
.plan-specs li { justify-content: center; text-align: center; }

.risk-cta { align-items: center; text-align: center; }
.risk > div:first-child { text-align: center; }
.risk-points { justify-items: center; }
.risk-points li { justify-content: center; }

.faq-group > h3 { text-align: center; font-size: 18px; padding-left: 0; }

/* ============ Poprawki v6 (feedback) ============ */
/* Bez przezroczystosci - solidne tla */
.btn-ghost { background: var(--surface-2); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--muted-2); }
.eyebrow { background: #251811; }
.eyebrow--green { background: #10201a; }
.trustbar .ti { background: var(--surface-2); }
.pillar .ic, .feature .ic, .banner .b-ic, .addon .ic { background: #251811; }
.banner--green .b-ic { background: #10201a; }
.risk { background: var(--surface); }
.risk-cta { background: var(--bg-2); }
.social-card .si { background: var(--surface-2); }
.footer { background: var(--bg-2); padding-block: 50px 38px; }

/* Pasek zaufania - mniejsze chipy (jedna linia) */
.trustbar { max-width: none; margin-top: 34px; }
.trustbar .ti { padding: 7px 14px; font-size: 13px; gap: 8px; white-space: nowrap; }

/* Tabela - naglowki wyrazniejsze + pasek */
.ptable { min-width: 820px; }
.ptable thead th { color: var(--muted); font-size: 12.5px; letter-spacing: 0.08em; background: var(--surface-2); padding-top: 16px; padding-bottom: 16px; }
.tbadge.pro { background: linear-gradient(180deg, var(--orange-bright), var(--orange)); color: #fff; transform: rotate(-4deg); box-shadow: 0 4px 12px -4px rgba(238,114,37,0.75); letter-spacing: 0.08em; }
.tbadge.free { background: linear-gradient(180deg, #2ee08c, var(--green)); color: #04140c; }
.ptable .loc { font-family: var(--font-mono); color: var(--text); font-size: 14.5px; }
.ptable .pl-price.free { color: var(--green); }
.ptable tr.free-row td { border-top: 1px solid var(--green-line); background: linear-gradient(90deg, rgba(33,208,122,0.07), transparent); }
.ptable tr.free-row:hover td { background: linear-gradient(90deg, rgba(33,208,122,0.10), transparent); }
.ptable tr.free-row .pl-name { color: var(--green); }

/* Notka UWAGA */
.notice { max-width: 780px; margin: 26px auto 0; text-align: center; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.notice b { color: var(--orange-bright); letter-spacing: 0.18em; font-weight: 700; }
.notice a { color: var(--orange-bright); text-decoration: underline; text-underline-offset: 2px; }
.notice a:hover { color: var(--orange); }
.ptable .pl-name .sub { color: var(--muted); font-size: 13px; }
/* center wartosci w tabeli (poza pierwsza kolumna Plan) */
.ptable th:not(:first-child), .ptable td:not(:first-child) { text-align: center; }
.pricing-note { font-size: 15.5px; font-weight: 600; color: var(--muted); }

/* Wklejka opinii */
.reviews-embed { border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.reviews-embed iframe { width: 100%; height: 640px; border: 0; display: block; }
.reviews-fallback { text-align: center; margin-top: 18px; }

/* Karty social - wysrodkowane */
.social-card { flex-direction: column; text-align: center; align-items: center; gap: 11px; padding: 24px 18px; }

/* ---------- Przelacznik kategorii (VPS / NextCloud) ---------- */
.cat-toggle-wrap { text-align: center; margin-bottom: 36px; }
.cat-toggle { display: inline-flex; gap: 6px; padding: 6px; border: 1px solid var(--border-2); border-radius: 14px; background: var(--surface); }
.cat-btn { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--muted); background: none; border: none; padding: 10px 22px; border-radius: 9px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .18s, color .18s, box-shadow .18s; }
.cat-btn::before { content: "❯"; opacity: 0.7; font-weight: 700; }
.cat-btn:hover { color: var(--text); }
.cat-btn.active { background: linear-gradient(180deg, var(--orange-bright), var(--orange)); color: #fff; box-shadow: 0 6px 16px -6px rgba(238,114,37,0.6); }
.cat-btn.active:hover { color: #fff; }
.cat-panel.hidden { display: none; }

/* ---------- Menu logo (prawy klik) ---------- */
.logo-ctx { position: fixed; z-index: 100; min-width: 232px; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 12px; padding: 15px 18px; box-shadow: 0 22px 55px -22px rgba(0,0,0,0.85); display: none; }
.logo-ctx.open { display: block; }
.logo-ctx p { font-size: 14px; color: var(--text); margin-bottom: 7px; }
.logo-ctx a { color: var(--orange-bright); font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; }
.logo-ctx a:hover { color: var(--orange); }

/* ---------- Wersja badge (do porownania) ---------- */
.version-flag { position: fixed; left: 14px; bottom: 14px; z-index: 60; font-family: var(--font-mono); font-size: 12px; padding: 7px 12px; border-radius: 100px; border: 1px solid var(--border-2); background: rgba(11,12,14,0.85); backdrop-filter: blur(8px); color: var(--muted); display: flex; align-items: center; gap: 8px; }
.version-flag a { color: var(--orange-bright); }
.version-flag .d { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.version-flag.orig .d { background: var(--muted-2); }
@media (max-width: 720px) { .version-flag { display: none; } }

/* ============================================================
   Poprawki mobilne v7 (feedback) - lipiec 2026
   ============================================================ */

/* (8) Stopka: opcje do prawej (desktop), naglowki kolumn pomaranczowe */
.footer-col { text-align: right; }
.footer-col h4 { color: var(--orange-bright); }

/* (14) Przyciski "Wybieram" w cenniku bardziej widoczne (pomaranczowy akcent),
   zeby to one prowadzily wzrok, a nie zielony FROG */
.ptable .btn-ghost {
  background: var(--orange-soft);
  border-color: var(--orange-line);
  color: var(--orange-bright);
}
.ptable .btn-ghost:hover {
  background: linear-gradient(180deg, var(--orange-bright), var(--orange));
  border-color: transparent; color: #fff;
}

/* (15) Stopka: separator przed NIP (desktop; na mobile NIP idzie do 2. linii) */
.f-nip::before { content: "·"; margin: 0 8px; color: var(--muted-2); }

/* (9) Zielona kropka przy logo: nie pozwol jej sie splaszczyc */
.nav-logo .dot { flex-shrink: 0; }

/* ---------------- MOBILE: nawigacja (<= 940px) ---------------- */
@media (max-width: 940px) {
  /* (1) Menu = 4 kropki + "MENU". Przycisk zakupowy znika z paska na starcie */
  .nav-cta .btn-primary { display: none; }
  .nav-inner { gap: 12px; flex-wrap: nowrap; }
  .nav-logo { flex-shrink: 1; min-width: 0; }
  .nav-logo img { max-width: 100%; }
  .nav-cta { margin-left: auto; display: flex; align-items: center; flex-shrink: 0; }
  .nav-burger {
    width: auto; padding: 0 13px; gap: 9px; flex-shrink: 0;
    font-family: var(--font-mono); color: var(--text);
  }
  .nav-burger svg { width: 19px; height: 19px; }
  .nav-burger__label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; }

  /* (2) Nav NIE przykleja sie od razu - scrolluje z trescia. */
  .nav { position: static; }
  /* nie pokazuj polprzezroczystego tla dopoki nav nie jest przyklejony */
  .nav.scrolled:not(.nav--stuck) {
    background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
  }

  /* (2)+(3) Przykleja sie dopiero po przewinieciu (klasa dodawana z JS) */
  .nav.nav--stuck {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(11,12,14,0.94);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border);
    animation: navDrop .28s ease;
  }
  /* W przyklejonym pasku: tylko logo + kropki MENU (jak floating na mikr.us), bez CTA */
}
@keyframes navDrop { from { transform: translateY(-100%); } to { transform: none; } }

/* ---------------- MOBILE: banery (<= 760px) ---------------- */
@media (max-width: 760px) {
  /* (7) Ikona banera wysrodkowana, nie dosunieta do lewej */
  .banner .b-ic { justify-self: center; margin-inline: auto; }
}

/* ---------------- MOBILE: cennik + bez ryzyka (<= 720px) ---------------- */
@media (max-width: 720px) {
  /* (4) Tabela planow -> karty jedna pod druga (zamiast poziomego scrolla) */
  .ptable-wrap { border: none; background: none; box-shadow: none; overflow: visible; }
  .ptable, .ptable tbody { display: block; width: 100%; min-width: 0; }
  .ptable thead { display: none; }
  .ptable-scroll-hint { display: none !important; }

  .ptable tr {
    display: block; padding: 22px 20px; margin-bottom: 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  }
  .ptable tr:hover td { background: transparent; }
  .ptable tr.featured td, .ptable tr.free-row td { background: transparent; border-top: none; }
  .ptable tr.featured {
    border-color: var(--orange-line); box-shadow: var(--shadow-glow);
    background: linear-gradient(180deg, rgba(238,114,37,0.06), var(--surface) 60%);
  }
  .ptable tr.free-row {
    border-color: var(--green-line);
    background: linear-gradient(180deg, rgba(33,208,122,0.05), var(--surface) 60%);
  }

  .ptable td {
    display: flex; align-items: center; justify-content: flex-start; gap: 6px;
    padding: 10px 0; border: none; border-bottom: 1px solid var(--border);
  }
  .ptable td::before {
    content: attr(data-label);
    font-family: var(--font-mono); font-size: 12px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2);
    margin-right: auto; /* etykieta w lewo, wartosc razem po prawej */
  }
  /* Naglowek karty = nazwa planu */
  .ptable td.pl-name {
    display: block; text-align: center; font-size: 21px;
    padding: 0 0 16px; margin-bottom: 6px; border-bottom: 1px solid var(--border);
  }
  .ptable td.pl-name::before { display: none; }
  .ptable td.pl-name .sub { display: block; margin-top: 10px; }
  /* Badge pod nazwa, wysrodkowany; PRO bez obrotu */
  .ptable td.pl-name .tbadge { display: block; width: fit-content; margin: 12px auto 2px; transform: none; }
  .ptable td.pl-price { font-size: 22px; }
  .ptable td.pl-price .u { font-size: 12px; }
  /* Ostatnia komorka = przycisk na cala szerokosc, bez etykiety i kreski */
  .ptable td:last-child { display: block; border-bottom: none; padding-top: 18px; }
  .ptable td:last-child::before { display: none; }
  .ptable td:last-child .btn { width: 100%; }

  /* (6) "Bez ryzyka": checki tuz przy tekscie (do lewej), lista wysrodkowana jako blok */
  .risk-points { justify-items: start; max-width: 340px; margin-inline: auto; }
  .risk-points li { justify-content: flex-start; text-align: left; }

  /* (10) Mniejsze odstepy: menu -> hero oraz miedzy sekcjami (o ~polowe, tylko mobile) */
  .hero { padding-top: 28px; padding-bottom: 42px; }
  .section { padding-block: 34px; }
  .section--tight { padding-block: 30px; }
  .section-head { margin-bottom: 30px; }

  /* (11) Rozwiniete menu: opcje wysrodkowane */
  .mobile-menu a { text-align: center; justify-content: center; }

  /* (13) Stopka na mobile: kolumny wysrodkowane (naglowki + opcje) */
  .footer-col { text-align: center; }

  /* (16) Stopka mobile: NIP w 2. linii, cala linia firmowa center, copyright do prawej */
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .footer-bottom > div { width: 100%; }
  .f-nip { display: block; margin-top: 4px; }
  .f-nip::before { display: none; }
  .footer-bottom .legal { justify-content: space-between; }
}


/* ============================================================
   Podstrony dokumentowe (polityka prywatnosci / idea)
   ============================================================ */
.doc { padding-block: 52px 40px; }
.doc-head { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.doc-head h1 { font-size: clamp(28px, 5vw, 44px); margin-top: 16px; }
.doc-content { max-width: 820px; margin-inline: auto; }
.doc-content > h2:first-child { margin-top: 0; }
.doc-content h2 { font-size: clamp(21px, 3vw, 27px); margin: 42px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.doc-content h3 { font-size: 18px; margin: 30px 0 10px; color: var(--orange-bright); }
.doc-content h4 { font-size: 16px; margin: 22px 0 8px; color: var(--text-strong); }
.doc-content p { color: var(--muted); line-height: 1.75; margin: 14px 0; }
.doc-content a { color: var(--orange-bright); text-decoration: underline; text-underline-offset: 2px; }
.doc-content a:hover { color: var(--orange); }
.doc-content strong, .doc-content b { color: var(--text-strong); font-weight: 600; }
.doc-content ul, .doc-content ol { margin: 14px 0; padding-left: 26px; }
.doc-content li { color: var(--text); line-height: 1.7; margin: 9px 0; }
.doc-content ul li { color: var(--muted); }
.doc-content ol ol, .doc-content ul ul { margin: 8px 0; }
.doc-content pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; margin: 16px 0; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.doc-content blockquote { border-left: 3px solid var(--orange-line); padding-left: 16px; margin: 16px 0; color: var(--muted); }
.doc-back { max-width: 820px; margin: 44px auto 0; text-align: center; }
@media (max-width: 720px) { .doc-content h2 { font-size: 20px; } .doc-content li, .doc-content p { font-size: 15px; } }

/* Przycisk-link do strony IDEA (pod sekcjami na stronie glownej) */
.idea-cta { text-align: center; margin-top: 40px; }

/* Przycisk menu (kropki) - tlo od razu, nie przezroczysty */
.nav-burger { background: var(--surface-2); }

@media (max-width: 720px) {
  .hero-note { flex-direction: row; align-items: center; text-align: left; gap: 10px; max-width: 340px; margin-inline: auto; }
  .hero-note svg { width: 21px; height: 21px; }
}


/* ============================================================
   Podstrona IDEA - bogaty uklad na wzor strony glownej
   ============================================================ */
.idea-hero { padding-top: 44px; padding-bottom: 64px; }
.idea-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; max-width: var(--maxw); margin-inline: auto; }
.idea-hero-grid .lead { max-width: none; margin-inline: 0; text-align: left; }
.idea-hero-grid h1 { text-align: center; }
.idea-hero-grid > .reveal:first-child { text-align: left; }
.idea-hero-grid .hero-cta { justify-content: flex-start; }
.idea-hero .terminal { max-width: none; }
@media (max-width: 900px) { .idea-hero-grid { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 720px) { .idea-hero-grid h1, .idea-hero-grid .lead { text-align: center; } .idea-hero .hero-cta { justify-content: center !important; } }
.idea-hero-grid h1 { font-size: clamp(30px, 4.4vw, 46px); }

.idea-hero .terminal { max-width: none; }
.idea-hero .terminal-body { min-height: 360px; }



/* karty w dwoch kolumnach (jak oryginal idea) */
.features.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .features.cols-2 { grid-template-columns: 1fr; } }

/* numer zamiast ikony (sekcja "Dla kogo") */
.feat-ic { width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 16px; display: grid; place-items: center; background: var(--orange-soft); border: 1px solid var(--orange-line); box-shadow: 0 8px 22px -10px rgba(238,114,37,0.6); }
.feat-ic span { font-family: var(--font-mono); font-size: 21px; font-weight: 700; color: var(--orange-bright); letter-spacing: 0.06em; }

/* linki i kod wewnatrz kart */
.feature a { color: var(--orange-bright); text-decoration: underline; text-underline-offset: 2px; }
.feature a:hover { color: var(--orange); }
.feature code, .idea-note code { font-family: var(--font-mono); font-size: 0.86em; background: var(--surface-3); padding: 2px 7px; border-radius: 5px; color: var(--orange-bright); }

/* box z wyroznionym tekstem (IPv4, backup, fair-play) */
.idea-note { margin: 28px auto 0; max-width: 900px; padding: 22px 26px; border: 1px solid var(--orange-line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(238,114,37,0.05), var(--surface) 70%); color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.idea-note b { color: var(--text-strong); }
.idea-note b.ok, .idea-note b.warn { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 17px; letter-spacing: 0.04em; }
.idea-note b.ok { color: var(--green); }
.idea-note b.warn { color: #febc2e; }
.idea-note-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; max-width: 900px; margin-inline: auto; }
.idea-note-grid .idea-note { margin: 0; }
@media (max-width: 760px) { .idea-note-grid { grid-template-columns: 1fr; } }

/* historia - proza wysrodkowana blokiem */
.idea-history { text-align: left; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.9; border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); padding: 30px 34px; color: var(--muted); }
.idea-history p { margin: 0 0 16px; }
.idea-history p:last-child { margin-bottom: 0; }

/* sticky link sprzedazowy po prawej */
.side-cta { position: fixed; right: 22px; bottom: 26px; z-index: 60; display: inline-flex; align-items: center; gap: 9px; padding: 14px 22px; border-radius: 100px; font-weight: 700; font-size: 15px; color: #fff; background: linear-gradient(180deg, var(--orange-bright), var(--orange)); box-shadow: 0 12px 34px -10px rgba(238,114,37,0.75), 0 1px 0 rgba(255,255,255,0.25) inset; transition: transform .15s ease, box-shadow .2s ease; }
.side-cta svg { width: 18px; height: 18px; }
.side-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(238,114,37,0.9); }
@media (max-width: 720px) { .side-cta { right: 14px; bottom: 16px; padding: 12px 18px; font-size: 14px; } }


/* Idea - warianty boxow + mniejsze odstepy sekcji */
.idea-note--ok { border-color: var(--green-line); background: linear-gradient(180deg, rgba(33,208,122,0.05), var(--surface) 70%); }
.idea-note--warn { border-color: rgba(254,188,46,0.42); background: linear-gradient(180deg, rgba(254,188,46,0.05), var(--surface) 70%); }
.page-idea .section { padding-block: 52px; }


/* Idea: karty wyrownane do lewej + wieksze teksty (na wzor oryginalu) */
.page-idea .feature { text-align: center; padding: 28px 26px; }
.page-idea .feature .ic { margin-inline: auto; }
.page-idea .feat-ic { margin: 0 auto 16px; }
.page-idea .feature h3 { font-size: 21px; margin-bottom: 11px; }
.page-idea .feature p { font-size: 16px; line-height: 1.72; }
.page-idea .section-head p { font-size: 20px; }
.page-idea .idea-note { font-size: 16px; line-height: 1.8; }
.page-idea .idea-history { font-size: 14.5px; line-height: 1.95; }
@media (max-width: 760px) { .page-idea .feature h3 { font-size: 18.5px; } .page-idea .feature p { font-size: 15px; } }


/* Wieksze teksty na glownej (feedback) */
@media (min-width: 761px) {
  .stat .l { font-size: 15px; }
  .feature h3 { font-size: 21px; }
  .feature p { font-size: 16px; line-height: 1.72; }
  .social-card .st { font-size: 16px; }
  .social-card .ss { font-size: 13.5px; }
}
/* Grupa banerow blisko siebie (helper / idea / edukacja) */
.banner-stack { display: grid; gap: 18px; }


/* Idea: wieksze lead na desktop; jednostka brutto przy cenie 7 zl */
@media (min-width: 761px) { .page-idea .idea-hero-grid .lead { font-size: 19px; } }
.risk-cta .big .unit { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }

/* Mniejszy odstep miedzy liczba a jednostka w big (7 zl) */
.risk-cta .big span { word-spacing: -0.4em; }


/* Idea hero: eyebrow + h1 wysrodkowane (lead i przyciski zostaja do lewej) */
.idea-hero-grid .eyebrow { display: flex; width: fit-content; margin-inline: auto; }
/* Boxy backup (Co/Czego backupujemy) wysrodkowane */
.page-idea .idea-note { text-align: center; }


/* Idea: wieksze ikony w kartach (Podejscie, Koszty itd.) */
.page-idea .feature .ic { width: 54px; height: 54px; border-radius: 15px; margin-bottom: 18px; }
.page-idea .feature .ic img { width: 27px; height: 27px; }

/* hero-note: "Zero zobowiazan" w nowej linii do lewej (mobile) */
@media (max-width: 720px) { .hero-note .hn-2 { display: block; text-align: left; } }


/* ============================================================
   Strona produktu (makieta zakupu) - produkt-*-original/new
   ============================================================ */
.pd-hero { padding-top: 40px; }
.pd-hero-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 44px; align-items: start; max-width: 1120px; margin-inline: auto; }
@media (max-width: 900px) { .pd-hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.pd-hero h1 { font-size: clamp(30px, 4.6vw, 46px); margin-top: 16px; }
.pd-hero h1 .accent { color: var(--orange); }
.pd-hero .lead { color: var(--muted); font-size: 17px; margin: 18px 0 24px; max-width: 560px; }

.pd-summary { border: 1px solid var(--border-2); border-radius: var(--radius); background: var(--surface); padding: 22px 24px; margin-top: 8px; max-width: 470px; }
.pd-summary-head { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.pd-name { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--text-strong); }
.pd-badge { font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: linear-gradient(180deg, var(--orange-bright), var(--orange)); color: #fff; }
.pd-specs { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.pd-specs li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--muted); padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.pd-specs li:last-child { border-bottom: none; padding-bottom: 0; }
.pd-specs li b { color: var(--text-strong); font-family: var(--font-mono); font-weight: 600; text-align: right; }
.pd-price { margin-top: 16px; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.pd-amt { font-family: var(--font-mono); font-size: 34px; font-weight: 700; color: var(--orange-bright); }
.pd-per { color: var(--muted-2); font-size: 14px; }

.pd-form-card { border: 1px solid var(--orange-line); border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(238,114,37,0.05), var(--surface) 60%); padding: 26px; box-shadow: var(--shadow-card); position: sticky; top: 88px; }
.pd-form-title { font-size: 19px; margin-bottom: 6px; }
.pd-opt-lead { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.pd-field { margin-bottom: 16px; }
.pd-field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.pd-field select { width: 100%; padding: 12px 40px 12px 14px; border-radius: 10px; border: 1px solid var(--border-2); background-color: var(--surface-2); color: var(--text); font-family: var(--font-sans); font-size: 15px; cursor: pointer; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a9aa5' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.pd-field select:focus { outline: none; border-color: var(--orange-line); }

.pd-consents { margin: 20px 0; display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.pd-check { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--text); cursor: pointer; line-height: 1.5; }
.pd-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--orange); flex-shrink: 0; cursor: pointer; }
.pd-check a { color: var(--orange-bright); text-decoration: underline; }

.pd-submit { margin-top: 8px; display: flex; width: 60%; margin-inline: auto; transition: opacity .2s, filter .2s; }
@media (max-width: 620px) { .pd-submit { width: 100%; } }
.pd-submit[data-locked] { opacity: 0.45; pointer-events: none; filter: grayscale(0.4); }
.pd-note { margin-top: 12px; font-size: 13.5px; color: var(--muted-2); text-align: center; line-height: 1.5; }

.pd-reg { max-width: 820px; margin-inline: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.pd-reg summary { padding: 18px 24px; cursor: pointer; font-weight: 600; color: var(--text); font-family: var(--font-mono); font-size: 14px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pd-reg summary::after { content: "\25BC"; font-size: 10px; color: var(--muted); transition: transform .2s; }
.pd-reg[open] summary::after { transform: rotate(180deg); }
.pd-reg summary::-webkit-details-marker { display: none; }
.pd-reg-body { padding: 4px 30px 30px; max-height: 540px; overflow-y: auto; border-top: 1px solid var(--border); }
.pd-reg-body h2:first-child { margin-top: 18px; }

.pd-why { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 26px; max-width: 960px; margin-inline: auto; }
@media (max-width: 820px) { .pd-why { grid-template-columns: 1fr; } }
.pd-why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 15px; }
.pd-why-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--text); line-height: 1.5; }
.pd-why-list li svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 3px; }
.pd-why-note { border: 1px solid var(--orange-line); border-radius: var(--radius); background: var(--orange-soft); padding: 26px; text-align: center; align-self: start; }
.pd-why-big { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--orange-bright); margin-bottom: 10px; }
.pd-why-note p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.pd-trust { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.pd-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 100px; padding: 7px 13px; }
.pd-trust svg { width: 15px; height: 15px; color: var(--green); }
.pd-inline-link { color: var(--orange-bright); text-decoration: underline; }

/* ============================================================
   STRONA PRODUKTU v2 - uklad wierny mikr.us
   kolejnosc: regulamin -> 3 zgody -> opcje; solidne tla (bez przezroczystosci)
   ============================================================ */

/* hero: uklad LEWO-PRAWO (tekst | karta), kompaktowo */
.page-product .pd-hero { padding-top: 46px; padding-bottom: 20px; }
/* mniejszy odstep gorna sekcja -> blok zamowienia (obie wersje) */
.page-product #zamowienie { padding-top: 24px; }
.pd-hero-grid2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; max-width: 1060px; margin-inline: auto; }
@media (max-width: 860px) { .pd-hero-grid2 { grid-template-columns: 1fr; gap: 28px; } }
/* naglowek na LEWO, karta na PRAWO */
.pd-hero-aside { min-width: 0; }
.pd-hero-text { text-align: left; }
.pd-hero-text h1 { font-size: clamp(30px, 4.4vw, 44px); margin-top: 16px; line-height: 1.1; }
.pd-hero-text h1 .accent { color: var(--orange); }
.pd-hero-text .lead { color: var(--muted); font-size: 17px; margin: 18px 0 24px; }
.pd-hero-text .pd-trust { justify-content: flex-start; margin: 4px 0 0; }
.pd-hero-aside .pd-summary { max-width: 100%; margin: 0; text-align: left; }
@media (max-width: 860px) { .pd-hero-aside .pd-summary { max-width: 470px; margin-inline: auto; } }
/* benefity (checklista) wprost w hero wersji new */
.pd-hero-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 26px; margin: 22px 0 20px; }
@media (max-width: 560px) { .pd-hero-benefits { grid-template-columns: 1fr; } }
.pd-hero-benefits li { font-size: 15px; }
/* podpis pod karta - reasekuracja ceny (zamiast osobnej sekcji) */
.pd-aside-note { margin: 16px auto 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; text-align: center; max-width: 410px; }
@media (max-width: 860px) { .pd-aside-note { max-width: 470px; } }

/* blok zamowienia: SOLIDNE tlo, jedna kolumna */
.pd-order { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 32px 34px; }
@media (max-width: 620px) { .pd-order { padding: 24px 20px; } }
.pd-order-title { font-size: clamp(24px, 3.4vw, 30px); font-weight: 800; letter-spacing: -0.01em; color: var(--text-strong); margin: 0 0 6px; }
.pd-order-sub { color: var(--muted); font-size: 15.5px; margin: 0 0 8px; }

/* etykiety krokow: wieksze, wyrazniejsze, z numerkiem */
.pd-step { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 17px; letter-spacing: .02em; text-transform: uppercase; color: var(--text-strong); font-weight: 700; margin: 32px 0 15px; padding-top: 26px; border-top: 1px solid var(--border); }
.pd-step-n { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(180deg, var(--orange-bright), var(--orange)); color: #fff; display: inline-grid; place-items: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }

/* regulamin: widoczny box ze scrollem, solidne tlo */
.pd-reg-scroll { max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-2); padding: 2px 22px 18px; }
.pd-reg-scroll.doc-content { max-width: none; margin: 0; font-size: 13px; }
.pd-reg-scroll.doc-content h2 { font-size: 15px; margin: 20px 0 10px; padding-bottom: 8px; }
.pd-reg-scroll.doc-content h2:first-child { margin-top: 16px; }
.pd-reg-scroll.doc-content h3 { font-size: 13.5px; margin: 16px 0 6px; }
.pd-reg-scroll.doc-content p, .pd-reg-scroll.doc-content li { font-size: 13px; line-height: 1.6; margin: 8px 0; }
.pd-reg-open { display: inline-block; margin-top: 12px; font-size: 13px; }

/* zgody: bez gornej kreski (krok ma juz swoja), czytelniejsze */
.pd-order .pd-consents { margin: 4px 0 0; padding-top: 0; border-top: none; }
.pd-order .pd-check { font-size: 14.5px; }

/* opcje: dwie kolumny */
.pd-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; align-items: start; }
@media (max-width: 560px) { .pd-fields { grid-template-columns: 1fr; } }
.pd-order .pd-field { margin-bottom: 0; }
.pd-order .pd-field label { font-size: 14.5px; color: var(--text); font-weight: 600; margin-bottom: 8px; }
.pd-field-help { font-size: 13px; color: var(--muted); margin: 9px 0 0; line-height: 1.55; }
.pd-field-help b { color: var(--text-strong); font-weight: 600; }

/* podsumowanie ceny + przycisk */
.pd-total { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 8px 10px; margin: 26px 0 16px; padding-top: 22px; border-top: 1px solid var(--border); }
.pd-total .lbl { color: var(--muted); font-size: 14.5px; }
.pd-total .amt { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--orange-bright); }
.pd-total .amt .cur { margin-left: 5px; }
.pd-total .per { color: var(--muted); font-size: 14px; }
.pd-total .pd-was { font-family: var(--font-mono); font-size: 16px; color: var(--muted-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.pd-total .pd-was[hidden] { display: none; }
.pd-total .pd-save-row { flex-basis: 100%; display: flex; justify-content: center; margin-top: 4px; }
.pd-total .pd-save-row[hidden] { display: none; }
.pd-total .pd-save { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--green); background: var(--green-soft); border: 1px solid var(--green-line); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.pd-total .pd-save::before { content: "❯ "; opacity: 0.8; }

/* karta specyfikacji w hero: srodek */
.page-product .pd-summary { max-width: 470px; }

/* ============================================================
   STRONA PRODUKTU - mobile (kompaktowe odstepy, czytelnosc)
   ============================================================ */
@media (max-width: 720px) {
  .page-product .pd-hero { padding-top: 30px; padding-bottom: 18px; }
  .pd-hero-grid2 { gap: 22px; }
  .pd-hero-text .lead { font-size: 16px; margin: 16px 0 18px; }
  .pd-hero-benefits { margin: 16px 0 14px; gap: 10px 20px; }
  .pd-hero-text .pd-trust { gap: 8px; }
  .pd-aside-note { font-size: 13px; margin-top: 14px; }
}
@media (max-width: 620px) {
  .pd-order { padding: 22px 18px; }
  .pd-order-title { font-size: 22px; }
  .pd-order-sub { font-size: 14px; margin-bottom: 4px; }
  .pd-step { margin: 24px 0 12px; padding-top: 20px; font-size: 16px; gap: 10px; }
  .pd-step-n { width: 25px; height: 25px; font-size: 13px; }
  .pd-reg-scroll { max-height: 260px; padding: 2px 16px 14px; }
  .pd-order .pd-check { font-size: 14px; }
  .pd-total { margin: 22px 0 14px; padding-top: 18px; }
  .pd-total .amt { font-size: 27px; }
  .pd-note { font-size: 13px; }
}
