/* ==========================================================================
   pendriverecovery.pl — DATA Lab
   Mobile-first. Breakpointy: 640px (tablet), 1024px (komputer).
   ========================================================================== */

:root {
  --bg: #0b1820;
  --bg-raised: #10222c;
  --bg-panel: rgba(11, 24, 32, 0.78);
  --accent: #2fb4d4;
  --accent-soft: rgba(47, 180, 212, 0.14);
  --accent-line: rgba(47, 180, 212, 0.28);
  --brand: #1c7f98;
  --text: #e6f3f7;
  --text-muted: #b7cdd5;
  --text-faint: #8fb3c0;
  --warn: #ffb3b3;
  --gold: #c19e54;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1180px;
  --gutter: 16px;
  --header-h: 60px;
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.muted { color: var(--text-muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  border-radius: 10px; border: 1.5px solid transparent;
  font: 700 15px/1.2 var(--font); text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--bg); box-shadow: 0 6px 22px rgba(47, 180, 212, .28); }
.btn--primary:hover { background: #4cc3e0; }
.btn--ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn--ghost:hover { background: var(--accent-soft); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 24, 32, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--accent-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.site-header__logo img { height: 28px; width: auto; }
.site-nav { display: none; }
.call-link {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--accent); color: var(--bg); text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 9px 14px; border-radius: 999px;
  min-height: 40px;
}
.call-link__extra { display: none; }

@media (min-width: 1024px) {
  .site-nav { display: flex; gap: 22px; }
  .site-nav a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 600; }
  .site-nav a:hover { color: var(--text); }
  .call-link__extra { display: inline; font-weight: 600; opacity: .8; }
}

/* ---------- Tło PCB ---------- */
.pcb-bg { position: relative; isolation: isolate; }
.pcb-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url('../img/pcb-lines.svg') center / 600px repeat;
  opacity: .35; pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .3) 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .3) 100%);
}

/* ---------- Sekcje ---------- */
.section { padding: 64px 0; }
.section--raised { background: var(--bg-raised); }
.section__eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-bottom: 8px; }
.section__lead { color: var(--text-muted); max-width: 60ch; font-size: 1.05rem; }

@media (min-width: 1024px) {
  .section { padding: 96px 0; }
}

/* ---------- Pierwszy ekran ---------- */
.hero { padding: 28px 0 48px; }
.hero__grid {
  display: grid; gap: 24px;
  grid-template-areas: "intro" "panel" "visual";
}
.hero__intro { grid-area: intro; }
.hero__visual { grid-area: visual; }
.symptom-panel { grid-area: panel; }

.hero__eyebrow { font-size: 13px; color: var(--accent); margin-bottom: 8px; }
.hero h1 { font-size: clamp(1.6rem, 7vw, 2.6rem); margin-bottom: 12px; }
.hero__promise { display: block; }
.hero__lead { color: var(--text-muted); font-size: 1rem; margin: 0; max-width: 56ch; }

.hero__visual { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.scope {
  width: 150px; height: 150px; flex-shrink: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, #173544 0%, var(--bg) 72%);
  border: 2px solid rgba(47, 180, 212, .5);
  box-shadow: 0 0 50px rgba(47, 180, 212, .3);
}
.scope__chip {
  position: relative; width: 80px; height: 50px; padding: 6px;
  background: #1d1d1d; border-radius: 4px; box-shadow: inset 0 0 0 2px #333;
  font-size: 8px; line-height: 1.3; color: #9a9a9a;
}
.scope__chip::before, .scope__chip::after {
  content: ""; position: absolute; top: 6px; bottom: 6px; width: 6px;
  background: repeating-linear-gradient(var(--gold) 0 3px, transparent 3px 6px);
}
.scope__chip::before { left: -6px; }
.scope__chip::after { right: -6px; }

.stats { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--text-faint); line-height: 2; }
.stats__value { font-weight: 700; color: #fff; font-size: 1.15rem; margin-right: 4px; }

.symptom-panel {
  background: var(--bg-panel);
  border: 1px solid var(--accent-line);
  border-radius: 14px; padding: 16px;
}
.symptom-panel__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }

.symptom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.symptom {
  display: block; width: 100%; min-height: 48px; padding: 10px 12px; text-align: left;
  font: 600 14px/1.3 var(--font); color: var(--text); overflow-wrap: break-word;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(47, 180, 212, .25); border-radius: 10px;
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.symptom small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--text-faint); }
.symptom:hover { border-color: var(--accent); background: rgba(47, 180, 212, .08); }
.symptom[aria-pressed="true"] {
  border-color: var(--accent); background: rgba(47, 180, 212, .14);
  box-shadow: 0 0 18px rgba(47, 180, 212, .25);
}

.symptom-result {
  margin-top: 12px; padding: 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(47, 180, 212, .16), rgba(47, 180, 212, .04));
  border: 1px solid rgba(47, 180, 212, .45);
}
.symptom-result p { margin: 0; }
.r-label { font-size: 13px; color: var(--text-faint); }
.r-label::after { content: " →"; }
.r-desc { font-size: 14px; color: var(--text-muted); margin-top: 4px !important; }
.r-price { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 6px 0 2px !important; }
.r-rule { font-size: 14px; font-weight: 600; color: var(--accent); }

.hero__actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
.hero__warning { margin: 12px 0 0; font-size: 14px; color: var(--warn); }
.fine-print { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-faint); }

@media (min-width: 640px) {
  .hero__actions { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .hero { padding: 56px 0 72px; }
  .hero__grid {
    grid-template-columns: 1.1fr .9fr; column-gap: 40px; row-gap: 32px; align-items: start;
    grid-template-areas: "intro panel" "visual panel";
  }
  .hero h1 { font-size: 2.6rem; }
  .hero__lead { font-size: 1.05rem; }
  .scope { width: 180px; height: 180px; }
  .symptom-panel { padding: 20px; }
}

/* Najwęższe telefony (≤ 400 px): ciaśniejszy panel, cena w jednej linii */
@media (max-width: 400px) {
  .symptom-panel { padding: 12px; }
  .symptom { padding: 10px; font-size: 13px; }
  .symptom-result { padding: 12px; }
  .r-price { font-size: 1.1rem; }
}

/* ---------- Sekcje treści ---------- */
h4 { font-size: 1rem; font-weight: 700; margin: 0 0 4px; }
.section h2 + .section__lead { margin-bottom: 28px; }
.section .btn { margin-top: 24px; }

.hero__order { margin: 12px 0 0; font-size: 14px; font-weight: 600; }
.hero__order a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Listy kart: ostrzeżenia, kroki, cechy, tryby */
.warnings, .steps, .features, .modes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.warning, .step, .feature, .mode {
  position: relative; padding: 18px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--accent-line);
}
.warning p, .step p, .feature p, .mode p { margin: 0; color: var(--text-muted); font-size: 15px; }
.warning { border-left: 4px solid var(--warn); }
.warning h3 { color: var(--warn); }

.steps { counter-reset: step; }
.step { padding-left: 64px; counter-increment: step; }
.step::before {
  content: counter(step); position: absolute; left: 18px; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font: 600 15px/1 var(--mono); color: var(--bg); background: var(--accent);
}
.step .btn { margin-top: 14px; }
.note { margin: 20px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); font-weight: 600; }

/* Cennik — na telefonie karty, od 640 px tabela */
.price-table { width: 100%; border-collapse: collapse; }
.price-table thead { display: none; }
.price-table tr {
  display: block; margin-bottom: 14px; padding: 16px; border-radius: var(--radius);
  background: var(--bg-raised); border: 1px solid var(--accent-line);
}
.price-table th[scope="row"], .price-table td { display: block; text-align: left; padding: 4px 0; }
.price-table th[scope="row"] { font-size: 1.15rem; color: var(--accent); }
.price-table td::before {
  content: attr(data-label); display: block;
  font: 400 12px/1.4 var(--mono); color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em;
}
.price-table td { color: var(--text-muted); font-size: 15px; }
.price-table__price { font-size: 1.25rem !important; font-weight: 800; color: #fff !important; white-space: nowrap; }

.modes__title { margin-top: 36px; }
.mode__time { color: var(--accent) !important; font-weight: 600; margin-bottom: 6px !important; }
.price-notes { margin: 20px 0 0; padding-left: 20px; color: var(--text-muted); }
.price-notes li { margin-bottom: 4px; }

/* Zaufali nam */
.stats--row { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-bottom: 28px; font-size: 14px; }
.stats--row .stats__value { font-size: 1.6rem; }
.clients {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.clients li { background: #fff; border-radius: var(--radius-sm); padding: 6px; display: grid; place-items: center; }
.clients img { width: 100%; max-width: 160px; height: auto; }

/* Stopka / kontakt */
.site-footer { padding: 64px 0 32px; background: #071016; border-top: 1px solid var(--accent-line); }
.site-footer h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
.contact-hotline { margin: 8px 0 28px; }
.contact-hotline p { margin: 0; color: var(--text-muted); }
.contact-hotline__phone { font-size: clamp(2rem, 9vw, 2.8rem); font-weight: 800; color: var(--accent); text-decoration: none; }
.contact-grid { display: grid; gap: 14px; }
.contact-card {
  font-style: normal; padding: 18px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--accent-line);
}
.contact-card p { color: var(--text-muted); margin-bottom: .6em; }
.contact-card .btn { margin-top: 6px; }
.site-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--accent-line); font-size: 14px; color: var(--text-faint); }
.site-footer__bottom p { margin: 0 0 6px; }

@media (min-width: 640px) {
  .warnings, .modes, .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .steps, .features { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(4, 1fr); }

  .price-table thead { display: table-header-group; }
  .price-table tr { display: table-row; margin: 0; padding: 0; border: 0; background: none; }
  .price-table th, .price-table th[scope="row"], .price-table td {
    display: table-cell; padding: 16px; vertical-align: top;
    border-bottom: 1px solid var(--accent-line);
  }
  .price-table thead th { font: 600 12px/1.4 var(--mono); color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; text-align: left; }
  .price-table td::before { display: none; }
  .price-table tbody tr { background: var(--bg-raised); }
}

@media (min-width: 1024px) {
  .steps, .features { grid-template-columns: repeat(4, 1fr); }
  .clients { grid-template-columns: repeat(7, 1fr); }
}

/* ---------- Jak odzyskujemy dane (animacja przy przewijaniu) ---------- */
.process { list-style: none; margin: 0; padding: 0; max-width: 960px; }
.process-step {
  display: grid; grid-template-columns: 24px 1fr; column-gap: 16px; row-gap: 12px;
  padding-bottom: 36px;
}
.process-step__trace { grid-row: 1 / span 2; width: 24px; height: 100%; overflow: visible; }
.process-step { position: relative; }
.process-step::before {
  content: ""; position: absolute; left: 6px; top: 6px; z-index: 1;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.process-step__trace path { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .6; }
.process-step:last-child .process-step__trace path { display: none; }
.process-step picture img {
  width: 100%; border-radius: var(--radius); border: 1px solid var(--accent-line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.process-step__no { margin: 0 0 4px; font-size: 13px; color: var(--accent); }
.process-step__body p:last-child { color: var(--text-muted); margin: 0; }

@media (min-width: 640px) {
  .process-step { grid-template-columns: 24px minmax(220px, 320px) 1fr; column-gap: 24px; align-items: center; }
  .process-step__trace { grid-row: 1; align-self: stretch; }
}

@media (prefers-reduced-motion: no-preference) {
  html.js .process-step {
    opacity: 0; transform: translateY(32px);
    transition: opacity .6s ease, transform .6s ease;
  }
  html.js .process-step__trace path {
    stroke-dasharray: 100; stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.2s ease .3s;
  }
  html.js .process-step.is-visible { opacity: 1; transform: none; }
  html.js .process-step.is-visible .process-step__trace path { stroke-dashoffset: 0; }
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq-item { border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--bg); }
.faq-item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 16px 48px 16px 18px; font-weight: 600; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font: 600 22px/1 var(--mono); color: var(--accent);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { margin: 0; padding: 0 18px 18px; color: var(--text-muted); }

/* ---------- Zgoda na cookies ---------- */
[hidden] { display: none !important; }
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--bg-raised); border-top: 1px solid var(--accent);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, .45);
}
.consent__inner {
  max-width: var(--container); margin: 0 auto; padding: 14px var(--gutter);
  display: grid; gap: 12px;
}
.consent__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.consent__text strong { display: block; color: var(--text); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn--consent { min-height: 44px; padding: 10px 16px; background: transparent; color: var(--text); border-color: var(--accent); }
.btn--consent:hover { background: var(--accent-soft); }
.link-button {
  background: none; border: 0; padding: 0; margin-left: 4px; cursor: pointer;
  font: inherit; color: var(--accent); text-decoration: underline;
}
.link-button::before { content: "· "; color: var(--text-faint); }

@media (min-width: 640px) {
  .consent__inner { grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
  .consent__actions { grid-template-columns: auto auto; }
}

/* ---------- Polityka prywatności ---------- */
.legal__container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text-muted); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: .6em; }
.legal__back { font-weight: 600; text-decoration: none; }
.legal__updated { font-size: 13px; color: var(--text-faint) !important; }
.legal__table-wrap { overflow-x: auto; }
.legal__table-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.legal__table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.legal__table th, .legal__table td { padding: 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--accent-line); color: var(--text-muted); }
.legal__table th { font: 600 12px/1.4 var(--mono); color: var(--text-faint); text-transform: uppercase; }
.legal__table .mono { color: var(--accent); white-space: nowrap; }
.site-footer--compact { padding: 8px 0 24px; }
