/* ==========================================================================
   antywirus.pl — ciemny motyw „cybermagenta”
   Czysty HTML/CSS/JS, bez frameworków.
   ========================================================================== */

:root {
  --bg: #0e1116;          /* tło strony */
  --bg-raised: #141a22;   /* panele, karty */
  --bg-deep: #0a0d12;     /* stopka, kod */
  --ink: #e8ecf1;         /* tekst podstawowy */
  --ink-muted: #9aa7b4;   /* tekst drugorzędny */
  --line: #273140;        /* obramowania, linie */
  --accent: #e6177e;      /* cybermagenta — wypełnienia */
  --accent-bright: #f54b9c; /* cybermagenta — linki, akcenty na ciemnym */
  --accent-dim: rgba(230, 23, 126, 0.12);
  --focus: #7db4ff;

  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --maxw: 1140px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

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

/* --------------------------------------------------------------------------
   Nagłówek i nawigacja
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 7px;
}
.brand .tld-dot { color: var(--accent-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 15.5px;
  border-radius: 8px;
}
.site-nav a:hover {
  text-decoration: none;
  background: var(--bg-raised);
  color: var(--accent-bright);
}
.site-nav a[aria-current="page"] {
  color: var(--accent-bright);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 8px 8px 0 0;
}

.has-sub { position: relative; }
.has-sub > a::after {
  content: "";
  display: inline-block;
  margin-left: 7px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.sub {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  min-width: 190px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.has-sub:hover .sub,
.has-sub:focus-within .sub { display: flex; }
.sub a { padding: 9px 12px; }

.nav-cta {
  margin-left: 10px;
}
.nav-cta a {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
}
.nav-cta a:hover { background: #c70f6a; color: #fff; }
.nav-cta a[aria-current="page"] { box-shadow: none; color: #fff; }

@media (max-width: 920px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    padding: 10px 22px 18px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 12px 8px; border-radius: 6px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); border-radius: 6px; }
  .has-sub > a::after { display: none; }
  .sub {
    display: flex;
    position: static;
    border: 0;
    background: none;
    box-shadow: none;
    padding: 0 0 0 18px;
  }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta a { display: inline-block; }
}

/* --------------------------------------------------------------------------
   Hero (strona główna)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 84px 0 76px;
}

/* bajty nagłówka MZ — dyskretna tekstura tematyczna */
.hero::before {
  content: "4D 5A 90 00 03 00 00 00 04 00 00 00 FF FF 00 00  B8 00 00 00 0D 0A 24 1F  54 68 69 73 20 70 72 6F 67 72 61 6D 20 63 61 6E 6E 6F 74  4D 5A 90 00 03 00 00 00 04 00 00 00 FF FF 00 00  B8 00 00 00 0D 0A 24 1F  4D 5A 90 00 03 00 00 00 04 00 00 00 FF FF 00 00";
  position: absolute;
  inset: -20px -10px auto auto;
  width: 46%;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 15px;
  line-height: 2.3;
  letter-spacing: 0.35em;
  word-break: break-all;
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -220px;
  bottom: -260px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 23, 126, 0.14), transparent 65%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 17ch;
}

.hero p.lead {
  font-size: 19px;
  color: var(--ink-muted);
  max-width: 54ch;
  margin: 0 0 34px;
}

.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scanline {
  height: 2px;
  width: 120px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  margin-bottom: 30px;
  animation: scan 1.6s ease-out 0.3s 1 both;
}
@keyframes scan {
  from { width: 0; opacity: 0; }
  60% { opacity: 1; }
  to { width: 120px; opacity: 1; }
}

/* --------------------------------------------------------------------------
   Przyciski
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c70f6a; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

/* --------------------------------------------------------------------------
   Sekcje
   -------------------------------------------------------------------------- */

.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

h2.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.01em;
  margin: 0;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}

.section-head .more { font-size: 15.5px; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Artykuły — listy
   -------------------------------------------------------------------------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.post-card:hover { border-color: #3a4656; }

.post-card time {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.post-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--accent-bright); text-decoration: none; }

.post-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}

/* spis artykułów — lista pionowa */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.post-list time {
  flex: 0 0 100px;
  font-size: 14px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.post-list a {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
}
.post-list a:hover { color: var(--accent-bright); text-decoration: none; }
.post-list li.hidden { display: none; }

.filter-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 11px 14px;
  margin-bottom: 26px;
}
.filter-box::placeholder { color: var(--ink-muted); }

.no-results { color: var(--ink-muted); display: none; }

/* --------------------------------------------------------------------------
   Pojedynczy artykuł
   -------------------------------------------------------------------------- */

.article-head { padding: 58px 0 10px; }
.article-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 10px 0 14px;
  max-width: 24ch;
}
.article-head time { color: var(--ink-muted); font-size: 15px; }

.crumbs { font-size: 14.5px; color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); }
.crumbs a:hover { color: var(--accent-bright); }

.article-body {
  max-width: 760px;
  padding-bottom: 70px;
}
.article-body > p:first-of-type { font-size: 18.5px; }
.article-body h2, .article-body h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  margin-top: 1.9em;
}
.article-body img {
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 28px auto;
}
.article-body blockquote {
  margin: 28px 0;
  padding: 4px 22px;
  border-left: 3px solid var(--accent);
  color: var(--ink-muted);
}
.article-body .video {
  position: relative;
  padding-top: 56.25%;
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.article-body .video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-nav {
  max-width: 760px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 70px;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}

/* --------------------------------------------------------------------------
   Pakiety
   -------------------------------------------------------------------------- */

.brand-intro {
  max-width: 820px;
  margin-bottom: 30px;
  color: var(--ink-muted);
  font-size: 17.5px;
}
.brand-intro strong { color: var(--ink); }

.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

.pkg-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.pkg-card:hover { border-color: #3a4656; }

.pkg-card .producer {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.pkg-card .producer b { color: var(--accent-bright); font-weight: 600; }

.pkg-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 10px;
}
.pkg-card h3 a { color: var(--ink); }
.pkg-card h3 a:hover { color: var(--accent-bright); text-decoration: none; }

.pkg-card p { color: var(--ink-muted); margin: 0 0 20px; flex: 1; }

.pkg-card .btn { align-self: flex-start; padding: 10px 20px; font-size: 15px; }

/* strona pakietu */
.product {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  padding: 58px 0 70px;
}
.product .boxshot img {
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
}
.product h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.product .desc { color: var(--ink-muted); font-size: 17.5px; max-width: 62ch; }

.feature-list {
  list-style: none;
  margin: 26px 0 32px;
  padding: 0;
  max-width: 68ch;
}
.feature-list li {
  position: relative;
  padding: 9px 0 9px 32px;
  border-bottom: 1px solid var(--line);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; gap: 28px; }
  .product .boxshot { max-width: 260px; }
}

/* --------------------------------------------------------------------------
   Skaner online / pasy CTA
   -------------------------------------------------------------------------- */

.cta-band {
  background: linear-gradient(135deg, #1b0f1c 0%, #2a1030 55%, #14070f 100%);
  border: 1px solid #3d2340;
  border-radius: 14px;
  padding: 42px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 8px;
}
.cta-band p { margin: 0; color: var(--ink-muted); max-width: 52ch; }

.scanner-banner {
  display: inline-block;
  margin: 30px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.scanner-banner img { display: block; }
.scanner-banner:hover { border-color: var(--accent-bright); }

/* --------------------------------------------------------------------------
   Treść statyczna (o nas, polityka, kontakt)
   -------------------------------------------------------------------------- */

.prose {
  max-width: 760px;
  padding: 10px 0 70px;
}
.prose h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.2vw, 42px);
  letter-spacing: -0.015em;
  margin: 48px 0 24px;
}
.prose h2 {
  font-family: var(--font-display);
  margin-top: 1.9em;
}
.prose .lead { font-size: 19px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  padding-bottom: 70px;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.contact-card h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 14px;
}
.contact-card dl { margin: 0; }
.contact-card dt {
  font-weight: 600;
  margin-top: 16px;
  font-size: 15px;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd {
  margin: 3px 0 0;
  color: var(--ink-muted);
}
.contact-card address { font-style: normal; color: var(--ink-muted); }
.registry { font-size: 14.5px; color: var(--ink-muted); margin-top: 18px; }

/* formularz "wyślij plik" */
.form-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 620px;
}
.form-card label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin: 18px 0 7px;
}
.form-card label:first-child { margin-top: 0; }
.form-card input[type="email"],
.form-card input[type="text"],
.form-card textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 11px 14px;
}
.form-card textarea { min-height: 110px; resize: vertical; }
.form-card .hint { font-size: 14.5px; color: var(--ink-muted); margin-top: 8px; }
.form-card .btn { margin-top: 24px; }

.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--bg-raised);
  padding: 16px 20px;
  margin: 26px 0;
  color: var(--ink-muted);
  font-size: 15.5px;
}

/* --------------------------------------------------------------------------
   Stopka
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 50px 0 34px;
  font-size: 15px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 14px;
  color: var(--ink);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--accent-bright); }
.site-footer address {
  font-style: normal;
  color: var(--ink-muted);
  line-height: 1.7;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
