/*
Theme Name: Rodent Pest
Theme URI: https://rodentpest.pl
Author: Rodent
Description: Industrialny motyw DDD na bazie projektu rodent-ddd. Czarno-czerwony, mono, sticky CTA telefon.
Version: 1.0.5
License: MIT
Text Domain: rodent
*/

/* ============== FONTS (self-hosted, latin + latin-ext) ============== */
/* Barlow Condensed */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/barlow-condensed-v13-latin_latin-ext-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-v13-latin_latin-ext-700.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-v13-latin_latin-ext-700italic.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/barlow-condensed-v13-latin_latin-ext-800.woff2") format("woff2");
}
/* Inter */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/inter-v20-latin_latin-ext-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/inter-v20-latin_latin-ext-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/inter-v20-latin_latin-ext-600.woff2") format("woff2");
}
/* JetBrains Mono */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-v24-latin_latin-ext-regular.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-v24-latin_latin-ext-500.woff2") format("woff2");
}

/* ============== TOKENS ============== */
:root {
  --bg: #0d0d0d;
  --bg-elev-1: #141414;
  --bg-elev-2: #1a1a1a;
  --bg-elev-3: #222222;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --red: #e5001c;
  --red-hot: #ff1f38;
  --red-deep: #b8001a;
  --white: #f5f5f5;
  --muted: #b0b0b0;
  --dim: #5a5a5a;

  --max: 1440px;
  --pad-x: clamp(20px, 4vw, 64px);

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body {
  background:
    radial-gradient(1200px 600px at 80% -200px, rgba(229, 0, 28, 0.1), transparent 60%),
    radial-gradient(900px 500px at -100px 30%, rgba(229, 0, 28, 0.04), transparent 60%),
    var(--bg);
  min-height: 100vh;
  padding-bottom: 64px;
}
@media (min-width: 700px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--red); color: var(--white); }

.grain::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  z-index: 1;
}

/* ============== TYPE ============== */
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; text-transform: uppercase; line-height: 1; }
h1, h2, h3, h4, h5, h6, .display { font-family: var(--font-display); }
.display em, .accent { font-style: italic; color: var(--red); font-weight: 700; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  padding-bottom: 16px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; display: inline-block; width: 22px; height: 6px; background: var(--red);
}
.eyebrow::before { clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.eyebrow::after { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.t-1 { font-size: clamp(40px, 6.5vw, 104px); }
.t-2 { font-size: clamp(28px, 4vw, 64px); }
.t-3 { font-size: clamp(18px, 2vw, 32px); }
.t-4 { font-size: clamp(14px, 1.2vw, 18px); }
@media (max-width: 699px) {
  .t-1 { font-size: 56px; }
  .t-2 { font-size: 40px; }
  .t-3 { font-size: 26px; }
  .t-4 { font-size: 18px; }
}
.red { color: var(--red); }
.mono { font-family: var(--font-mono); }

/* ============== LAYOUT ============== */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad-x); position: relative; z-index: 2; }
section { padding-block: clamp(64px, 8vw, 128px); position: relative; }
section.tight { padding-block: clamp(40px, 5vw, 80px); }

.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(32px, 4vw, 56px); align-items: center; text-align: center; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 48ch; }

/* ============== HEADER ============== */
.header { position: sticky; top: 0; z-index: 50; background: rgba(13, 13, 13, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); text-transform: uppercase; font-weight: 700; letter-spacing: 0.02em; }
.logo .mark { width: 44px; height: 44px; display: grid; place-items: center; background: var(--red); color: var(--white); border-radius: 2px; flex-shrink: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.logo .lockup { display: flex; flex-direction: column; line-height: 0.95; }
.logo .lockup .name { font-size: 22px; color: var(--white); display: inline-flex; gap: 6px; align-items: baseline; }
.logo .lockup .name em { color: var(--red); font-style: normal; font-size: 14px; letter-spacing: 0.1em; position: relative; padding-inline: 14px; }
.logo .lockup .name em::before, .logo .lockup .name em::after { content: ""; position: absolute; top: 50%; width: 10px; height: 1.5px; background: var(--red); }
.logo .lockup .name em::before { left: 0; }
.logo .lockup .name em::after { right: 0; }
.logo .lockup .sub { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.22em; color: var(--muted); margin-top: 4px; text-transform: uppercase; font-weight: 400; }
.logo .logo-mark { height: 46px; width: auto; display: block; flex-shrink: 0; }
.logo .logo-text { height: 30px; width: auto; display: block; }
.footer .logo .logo-mark { height: 92px; }
.footer .logo .logo-text { height: 60px; }

.nav { display: flex; align-items: center; }
.nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav .nav-list li { list-style: none; margin: 0; padding: 0; position: relative; }
.nav .nav-list li::marker { content: ""; }
.nav .nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  opacity: 0.85;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  padding: 24px 14px;
  position: relative;
  transition: opacity 0.18s, color 0.18s;
}
.nav .nav-list > li > a::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}
.nav .nav-list > li > a:hover,
.nav .nav-list > li:hover > a,
.nav .nav-list > li:focus-within > a { opacity: 1; }
.nav .nav-list > li > a:hover::before,
.nav .nav-list > li:hover > a::before,
.nav .nav-list > li:focus-within > a::before { transform: scaleX(1); }
.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-menu-ancestor > a,
.nav a[aria-current="page"] { opacity: 1; color: var(--white); }
.nav .nav-list > li.current-menu-item > a::before,
.nav .nav-list > li.current-menu-ancestor > a::before { transform: scaleX(1); }

/* caret on parents — clean chevron */
.nav .menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s;
  opacity: 0.55;
  margin-left: 2px;
}
.nav .menu-item-has-children:hover > a::after,
.nav .menu-item-has-children:focus-within > a::after {
  transform: translateY(1px) rotate(225deg);
  opacity: 1;
}

/* sub-menu dropdown */
.nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  background: var(--bg-elev-1);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 60;
}
.nav .menu-item-has-children:hover > .sub-menu,
.nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav .sub-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.nav .sub-menu li { position: relative; }
.nav .sub-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.35;
  color: var(--white);
  opacity: 0.78;
  white-space: normal;
  transition: background 0.15s, color 0.15s, opacity 0.15s, padding-left 0.18s;
  position: relative;
}
.nav .sub-menu a::before {
  content: "";
  width: 6px;
  height: 1.5px;
  background: var(--red);
  opacity: 0;
  transition: opacity 0.18s, width 0.18s;
  flex-shrink: 0;
}
.nav .sub-menu a:hover {
  opacity: 1;
  background: var(--bg-elev-2);
  color: var(--white);
  padding-left: 18px;
}
.nav .sub-menu a:hover::before { opacity: 1; width: 10px; }
.nav .sub-menu .current-menu-item > a {
  color: var(--red);
  background: var(--bg-elev-2);
}
.nav .sub-menu .current-menu-item > a::before { opacity: 1; }

/* ============== HAMBURGER (mobile) ============== */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--white);
  z-index: 70;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  order: 3;
}
.nav-toggle:hover { border-color: var(--red); }
.nav-toggle-bars { position: relative; width: 18px; height: 12px; display: inline-block; }
.nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.2s, top 0.25s;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (min-width: 1291px) {
  .nav-toggle { display: none; }
}

/* CTA wewnątrz drawera — domyślnie schowane na desktopie */
.nav .nav-cta { display: none; }

/* ============== MOBILE HEADER LAYOUT ============== */
@media (max-width: 1290px) {
  .header-inner { gap: 10px; flex-wrap: nowrap; }
  .logo .lockup .sub { display: none; }
  .logo .mark { width: 36px; height: 36px; font-size: 18px; }
  .logo .lockup .name { font-size: 16px; }
  .logo .logo-mark { height: 36px; }
  .logo .logo-text { height: 24px; }

  .header-right .cta { display: none; }
  .header-right .header-phone { display: none; }

  .nav .nav-cta {
    display: inline-flex;
    margin-top: 24px;
    align-self: stretch;
    justify-content: center;
    padding: 18px 24px;
    font-size: 16px;
  }
}

/* ============== MOBILE NAV DRAWER ============== */
@media (max-width: 1290px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: auto;
    max-height: calc(100vh - 76px);
    z-index: 55;
    background: rgba(10, 10, 12, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    align-items: stretch;
    padding: 16px var(--pad-x) 24px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, transform 0.25s, visibility 0.2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav .nav-list > li:last-child { border-bottom: 0; }

  .nav a {
    padding: 18px 0;
    font-size: 16px;
    letter-spacing: 0.08em;
    width: 100%;
    justify-content: space-between;
  }
  .nav .menu-item-has-children > a::after {
    width: 8px; height: 8px;
    margin-left: auto;
  }

  /* sub-menu = collapsible accordion on mobile */
  .nav .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.25s ease;
  }
  .nav .menu-item-has-children.is-expanded > .sub-menu {
    max-height: 1200px;
    padding: 4px 0 16px 16px;
  }
  .nav .sub-menu::before { display: none; }
  .nav .sub-menu a {
    padding: 10px 0;
    font-size: 14px;
    border-left: 0;
    opacity: 0.75;
  }
  .nav .sub-menu a::before { display: none; }
  .nav .sub-menu a:hover { background: transparent; padding-left: 0; opacity: 1; }
  .nav .menu-item-has-children > a::after,
  .nav .menu-item-has-children:hover > a::after,
  .nav .menu-item-has-children:focus-within > a::after { transform: translateY(-2px) rotate(45deg); transition: transform 0.25s ease; }
  .nav .menu-item-has-children.is-expanded > a::after,
  .nav .menu-item-has-children.is-expanded:hover > a::after,
  .nav .menu-item-has-children.is-expanded:focus-within > a::after { transform: translateY(2px) rotate(225deg); }
}

.nav .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.7;
  transition: transform 0.2s, opacity 0.2s;
}
@media (min-width: 1291px) {
  .nav .menu-item-has-children:hover > a::after,
  .nav .menu-item-has-children:focus-within > a::after { opacity: 1; transform: translateY(0) rotate(45deg); }
}

.nav .menu-item-has-children { position: relative; }
@media (min-width: 1291px) {
  .nav .sub-menu {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 280px;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 60;
  }
  .nav .menu-item-has-children:hover > .sub-menu,
  .nav .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .nav .sub-menu li { display: block; }
  .nav .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: none;
    opacity: 0.85;
    white-space: nowrap;
  }
  .nav .sub-menu a:hover { background: rgba(229, 0, 28, 0.08); color: var(--red); opacity: 1; }
}

.header-right { display: flex; align-items: center; gap: 16px; }
.header-phone { display: none; font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: 0.02em; color: var(--white); align-items: center; gap: 10px; flex-direction: column; line-height: 1; }
.header-phone .row { display: inline-flex; align-items: center; gap: 10px; }
.header-phone .pulse { width: 8px; height: 8px; background: var(--red); border-radius: 50%; box-shadow: 0 0 0 0 rgba(229, 0, 28, 0.6); animation: pulse 1.8s infinite; }
.header-phone .open { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; color: var(--red); font-weight: 500; text-transform: uppercase; margin-top: 4px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 0, 28, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(229, 0, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 0, 28, 0); }
}
@media (min-width: 800px) { .header-phone { display: inline-flex; } }

.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--red); color: var(--white); padding: 14px 22px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; border: 1px solid var(--red); transition: background 0.15s, transform 0.15s; position: relative; }
.cta:hover { background: var(--red-hot); transform: translateY(-1px); }
.cta .arrow { transition: transform 0.2s; }
.cta:hover .arrow { transform: translateX(4px); }
.cta.ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.cta.ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: var(--white); }
.cta.lg { padding: 18px 28px; font-size: 16px; }
.cta.xl { padding: 22px 36px; font-size: 18px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
@media (max-width: 699px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .cta { width: 100%; justify-content: center; }
}
.cta-note { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; }
.cta-note .dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: pulse 2s infinite; }

/* ============== HERO ============== */
.hero {
  position: relative;
  padding-top: clamp(64px, 8vw, 128px);
  padding-bottom: clamp(240px, 22vw, 320px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(10, 10, 12, 0.78) 0%, rgba(10, 10, 12, 0.62) 45%, rgba(10, 10, 12, 0.92) 100%),
    var(--hero-bg, url("img/mousehole.webp"));
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 75% 30%, rgba(229, 0, 28, 0.22), transparent 65%),
    radial-gradient(500px 300px at 20% 85%, rgba(229, 0, 28, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-grid { position: relative; z-index: 2; display: grid; gap: clamp(40px, 5vw, 80px); }
.hero-top { display: flex; flex-direction: column; gap: 28px; }
.hero-title { margin: 0; }
.hero-title .line { display: block; }

.hero-sub { font-size: clamp(16px, 1.4vw, 20px); color: var(--white); opacity: 0.75; max-width: 56ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.hero-meta .sep { width: 1px; height: 14px; background: var(--line-strong); }
.hero-meta b { color: var(--white); font-weight: 600; }

/* PROBLEM SELECTOR */
.selector { background: var(--bg-elev-1); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); position: relative; }
.selector-section { padding-top: 0; padding-bottom: clamp(64px, 8vw, 128px); min-height: 200px; position: relative; }
.selector-overlap { margin-top: -200px; margin-inline: calc(var(--pad-x) * -1); position: relative; z-index: 3; }
@media (max-width: 900px) {
  .selector-section { min-height: 0; padding-block: clamp(40px, 5vw, 80px); }
  .selector-overlap { margin-top: 0; }
}
.selector-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.selector-head h3 { margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 3vw, 44px); letter-spacing: -0.005em; }
.selector-head .hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; background: var(--bg-elev-2); border: 1px solid var(--line); padding: 22px 18px 18px; min-height: 140px; text-align: left; position: relative; overflow: hidden; transition: background 0.15s, border-color 0.15s, transform 0.15s; cursor: pointer; }
.tile:hover { border-color: var(--red); background: var(--bg-elev-3); }
.tile.active { background: var(--red); border-color: var(--red); color: var(--white); }
.tile.active .tile-label, .tile.active .tile-icon { color: var(--white); }
.tile-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--red); margin-bottom: 16px; }
.tile-label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 18px; letter-spacing: 0.01em; color: var(--white); }
.tile-cap { position: absolute; top: 12px; right: 12px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.tile.active .tile-cap { color: rgba(255, 255, 255, 0.7); }

.selector-result { margin-top: 20px; border: 1px solid var(--red); background: linear-gradient(180deg, rgba(229, 0, 28, 0.08), rgba(229, 0, 28, 0.02)); padding: 24px; display: grid; gap: 20px; grid-template-columns: 1fr; animation: revealUp 0.35s ease; }
.selector-result[hidden] { display: none; }
@keyframes revealUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 800px) { .selector-result { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.selector-result .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.selector-result h4 { margin: 0 0 8px; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(24px, 2.5vw, 32px); }
.selector-result p { margin: 0; color: var(--white); opacity: 0.8; }
.selector-result .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ============== SERVICES ============== */
.services-grid { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); background: var(--line); border: 1px solid var(--line); }
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 740px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .services-grid { grid-template-columns: 1fr; } }
.service { background: var(--bg-elev-2); padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 14px; min-height: 240px; position: relative; overflow: hidden; transition: background 0.2s; }
.service::before { content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; background-image: radial-gradient(circle at 50% 50%, var(--red) 1px, transparent 2px); background-size: 9px 9px; mask-image: radial-gradient(circle at 90% 10%, black 5%, transparent 70%); -webkit-mask-image: radial-gradient(circle at 90% 10%, black 5%, transparent 70%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.service:hover::before { opacity: 0.45; }
.service:hover { background: var(--bg-elev-3); }
.service:hover .service-arrow { transform: translate(4px, -4px); color: var(--red); }
.service-no { font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: 0.1em; }
.service-icon { width: 48px; height: 48px; color: var(--red); display: grid; place-items: center; }
.service-name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 22px; letter-spacing: 0.005em; margin: 0; line-height: 1; }
.service-desc { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }
.service-arrow { position: absolute; top: 24px; right: 24px; color: var(--white); opacity: 0.5; transition: transform 0.25s, color 0.25s, opacity 0.2s; }
.service:hover .service-arrow { opacity: 1; }

/* ============== TRUST ============== */
.trust-section { padding-block: 80px; }
.trust-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.trust-text { display: flex; flex-direction: column; gap: 20px; }
.trust-text h2 { margin: 0; }
.trust-text p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 480px; }
.trust-photo { position: relative; }
.trust-photo img { display: block; }

/* Ozdobne narożniki w przeciwległych rogach (lewy-górny + prawy-dolny) */
.trust-photo::before,
.trust-photo::after {
  content: "";
  position: absolute;
  width: 56px;
  height: 56px;
  border: 3px solid var(--red);
  pointer-events: none;
}
.trust-photo::before {
  top: -14px;
  left: -14px;
  border-right: 0;
  border-bottom: 0;
}
.trust-photo::after {
  bottom: -14px;
  right: -14px;
  border-left: 0;
  border-top: 0;
}
@media (max-width: 760px) {
  .trust-photo::before,
  .trust-photo::after { width: 40px; height: 40px; }
}
.trust-photo-placeholder {
  aspect-ratio: 4/3;
  background: var(--bg-elev-1);
  border: 2px dashed var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.9rem;
}
@media (max-width: 860px) {
  .trust-inner { grid-template-columns: 1fr; gap: 40px; }
  .trust-text p { max-width: 100%; }
}

/* ============== COVERAGE ============== */
.coverage-section { padding-block: 80px; background: var(--bg-elev-1); }
.coverage-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.coverage-text { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.coverage-text h2 { margin: 0; }
.coverage-text p { color: var(--muted); font-size: 1.05rem; line-height: 1.7; max-width: 480px; }
.coverage-text strong { color: var(--text-1); }
.coverage-map { display: flex; justify-content: center; }
.map-wrap { position: relative; width: 100%; max-width: 520px; }
.map-wrap svg { width: 100%; height: auto; display: block; }
.voivodeship { cursor: pointer; transition: fill 0.15s; }
.voivodeship:hover { fill: var(--red-hot); }
.map-tooltip {
  position: absolute;
  background: var(--bg-elev-3);
  border: 1px solid var(--line-strong);
  padding: 10px 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  z-index: 10;
}
.map-tooltip.visible { opacity: 1; }
.map-tooltip-label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.map-tooltip-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--white); }
@media (max-width: 860px) {
  .coverage-inner { grid-template-columns: 1fr; gap: 32px; }
  .coverage-text p { max-width: 100%; }
  .coverage-map { order: -1; }
  .map-tooltip { display: none; }
}

/* ============== BADGES ============== */
.badges {
  display: grid;
  grid-template-columns:
    minmax(var(--pad-x), 1fr)
    repeat(5, minmax(0, calc((var(--max) - var(--pad-x) * 2) / 5)))
    minmax(var(--pad-x), 1fr);
  border-block: 1px solid var(--line);
  background: var(--bg-elev-1);
}
@media (max-width: 900px) {
  .badges { grid-template-columns: repeat(2, 1fr); }
  .badge-empty { display: none; }
}
.badge-empty { padding: 0; }
.badge { padding: 32px 24px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); position: relative; }
.badge:last-child { border-right: 0; }
@media (max-width: 900px) {
  .badge:nth-child(2n) { border-right: 0; }
  .badge { border-bottom: 1px solid var(--line); }
}
.badge .icon { color: var(--red); width: 28px; height: 28px; }
.badge .big { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(20px, 1.8vw, 28px); line-height: 1; letter-spacing: 0.005em; }
.badge .small { font-size: 13px; color: var(--muted); }

/* ============== PROCESS ============== */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
@media (max-width: 900px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; } }
.step { padding: 36px 28px 32px; border-right: 1px solid var(--line); background: var(--bg-elev-2); position: relative; min-height: 220px; display: flex; flex-direction: column; gap: 14px; }
.step:last-child { border-right: 0; }
@media (max-width: 900px) {
  .step:nth-child(2n) { border-right: 0; }
  .step { border-bottom: 1px solid var(--line); }
}
.step .n { font-family: var(--font-display); font-weight: 700; font-size: 44px; line-height: 0.8; color: var(--red); letter-spacing: -0.03em; }
.step h4 { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-size: 22px; letter-spacing: 0.005em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.step .time { position: absolute; top: 20px; right: 20px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--dim); text-transform: uppercase; }

/* ============== CONTACT ============== */
.contact-wrap { display: grid; grid-template-columns: 1fr; gap: 64px; position: relative; }
@media (min-width: 1000px) { .contact-wrap { grid-template-columns: 1.05fr 1fr; gap: 80px; } }
.giant-phone { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: -0.015em; }
.giant-phone .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 18px; display: block; }
.giant-phone .num { display: block; font-size: clamp(40px, 5vw, 88px); color: var(--red); padding-bottom: 24px; }
.giant-phone .num a:hover { color: var(--red-hot); }
.giant-phone .pledge { margin-top: 24px; font-size: clamp(18px, 1.8vw, 24px); color: var(--white); max-width: 22ch; line-height: 1.1; }
.giant-phone .pledge em { color: var(--red); font-style: normal; }

.contact-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.contact-meta .item .key { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; display: inline-flex; align-items: center; gap: 8px; }
.contact-meta .item .val { font-size: 16px; line-height: 1.35; }

.form-card { background: var(--bg-elev-2); border: 1px solid var(--line); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.form-card h3 { margin: 0; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: 0.005em; }
.form-card .sub { margin: -6px 0 6px; color: var(--muted); font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); }
.field input, .field textarea, .field select { background: var(--bg); border: 1px solid var(--line); padding: 14px; color: var(--white); font-family: var(--font-body); font-size: 15px; outline: none; transition: border-color 0.15s, background 0.15s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); background: rgba(229, 0, 28, 0.04); }
.field textarea { resize: vertical; min-height: 90px; }
.field select option { background: var(--bg-elev-2); color: var(--white); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.4; }
.consent input { margin-top: 3px; accent-color: var(--red); }
.consent a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--red-hot); }

/* Form notifications (success / error) */
.form-ok, .form-err { display: flex; align-items: flex-start; border: 1px solid var(--red); }
.form-ok { gap: 14px; padding: 20px; background: rgba(229, 0, 28, 0.08); }
.form-err { gap: 12px; padding: 16px; margin-bottom: 18px; background: rgba(229, 0, 28, 0.12); }
.form-ok[hidden], .form-err[hidden] { display: none; } /* let [hidden] win over display:flex */

/* ============== FAQ ============== */
.faq { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 28px 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: 0.005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--red); transition: background 0.15s, transform 0.25s; font-size: 18px; font-weight: 700; }
.faq details[open] summary .plus { background: var(--red); color: var(--white); transform: rotate(45deg); }
/* Answer panel — smooth expand/collapse via height:auto interpolation */
:root { interpolate-size: allow-keywords; }
.faq details > .faq-a { height: 0; overflow: hidden; }
.faq details[open] > .faq-a { height: auto; } /* no-JS / unsupported fallback: shown */
.faq.js details > .faq-a { height: 0; transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.faq.js details.faq-open > .faq-a { height: auto; }
.faq details > .faq-a > div { padding: 0 0 28px; color: var(--muted); max-width: 70ch; font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .faq.js details > .faq-a { transition: none; }
}

/* ============== FOOTER ============== */
.footer { background: #050505; border-top: 1px solid var(--line); padding-block: 64px 28px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; margin: 0 0 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--white); opacity: 0.7; font-size: 14px; }
.footer-col a:hover { opacity: 1; color: var(--red); }
.footer-tag { color: var(--muted); font-size: 14px; max-width: 30ch; line-height: 1.5; margin-top: 16px; }
.footer-regions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.footer-regions span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); padding: 6px 10px; border: 1px solid var(--line-strong); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: 0.12em; text-transform: uppercase; }
.footer-bottom a { color: var(--dim); transition: color 0.15s; }
.footer-bottom a:hover { color: var(--red); }

/* ============== STICKY MOBILE CALL ============== */
.mobile-call { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--red); color: var(--white); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; font-size: 18px; border-top: 1px solid rgba(0, 0, 0, 0.2); box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6); }
.mobile-call-num { font-size: 24px; font-weight: 800; letter-spacing: 0.02em; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
@media (min-width: 700px) { .mobile-call { display: none; } }

/* utility */
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); padding: 6px 10px; border: 1px solid var(--line-strong); background: var(--bg-elev-2); }
.tag .blob { width: 6px; height: 6px; background: var(--red); }

/* ============== USLUGA / SERVICE PAGES ============== */
.usluga-signals {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
@media (max-width: 640px) {
  .usluga-signals { grid-template-columns: 1fr; }
}
.usluga-signals li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.65;
  color: var(--white);
  transition: background 0.15s;
}
.usluga-signals li:nth-child(2n) { border-right: 0; }
.usluga-signals li:hover { background: var(--bg-elev-1); }
.usluga-signals li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 9px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.usluga-outro {
  max-width: 70ch;
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 3px solid var(--red);
  background: rgba(229, 0, 28, 0.05);
  font-size: 16px;
  line-height: 1.65;
  color: var(--white);
  margin-bottom: 0;
}

.usluga-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: none;
  border: 1px solid var(--line);
}
.usluga-steps li {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.usluga-steps li:last-child { border-bottom: 0; }
.usluga-steps li:hover { background: var(--bg-elev-1); }
.usluga-step-no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--red);
  flex-shrink: 0;
  min-width: 2ch;
}
.usluga-step-text { font-size: 15px; line-height: 1.65; padding-top: 6px; }

.prose {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--white);
}
.prose p { margin: 0 0 1.25em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--white); font-weight: 600; }
.prose em { color: var(--muted); font-style: italic; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; transition: color 0.15s; }
.prose a:hover { color: var(--red-hot); }
.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: 0.005em;
  margin: 1.5em 0 0.5em;
  color: var(--white);
}
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol {
  padding: 0;
  margin: 0 0 1.25em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prose ul { list-style: none; }
.prose ul li {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.prose ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 9px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}
.prose ol { list-style: none; counter-reset: prose-ol; }
.prose ol li { counter-increment: prose-ol; display: flex; gap: 12px; align-items: baseline; }
.prose ol li::before {
  content: counter(prose-ol, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--red);
  flex-shrink: 0;
}
.prose blockquote {
  margin: 1.5em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--red);
  background: rgba(229, 0, 28, 0.05);
  color: var(--muted);
  font-size: 15px;
}
.prose blockquote p { margin: 0; }

.where-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.where-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev-2);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.where-tags li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--red);
  flex-shrink: 0;
}
.where-tags li:hover {
  border-color: var(--red);
  background: var(--bg-elev-3);
  color: var(--white);
}

/* ============== JAK DZIAŁAMY PAGE ============== */
.jd-hero-note {
  max-width: 56ch;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--white);
  opacity: 0.7;
  line-height: 1.65;
  margin: 0;
}

.jd-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 800px) { .jd-blocks { grid-template-columns: 1fr; } }

.jd-block {
  background: var(--bg-elev-1);
  padding: clamp(28px, 3vw, 48px) clamp(24px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.jd-block-no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 7vw, 104px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--red);
}
.jd-block h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: 0.005em;
  margin: 0;
  line-height: 1.05;
}
.jd-block p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 52ch;
}
.jd-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-left: 3px solid var(--red);
  background: rgba(229, 0, 28, 0.06);
  font-size: 14px;
  line-height: 1.6;
  color: var(--white);
  margin-top: 4px;
}
.jd-callout svg { flex-shrink: 0; color: var(--red); margin-top: 2px; }

.jd-cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  max-width: 70ch;
}
.jd-cert {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.jd-cert:last-child { border-bottom: 0; }
.jd-cert:hover { background: var(--bg-elev-2); }
.jd-cert-thumb {
  flex-shrink: 0;
  display: block;
  width: 84px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
  transition: border-color 0.15s, transform 0.15s;
}
.jd-cert-thumb:hover { border-color: var(--red); transform: translateY(-2px); }
.jd-cert-thumb img { display: block; width: 100%; height: auto; }
.jd-cert-body { display: flex; flex-direction: column; gap: 6px; }
.jd-cert-year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--red);
  flex-shrink: 0;
  min-width: 4ch;
}
.jd-cert-text { font-size: 15px; line-height: 1.65; }

.jd-clients-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 4vw, 64px);
}
@media (max-width: 700px) { .jd-clients-grid { grid-template-columns: 1fr; } }
.jd-clients-col { display: flex; flex-direction: column; gap: 20px; }
.jd-clients-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Katalog usług (strona /uslugi + archiwa kategorii) ---- */
.selector-foot { margin-top: 18px; display: flex; justify-content: flex-end; }
.catalog-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; font-size: 15px; color: var(--white);
  text-decoration: none; transition: color 0.15s, gap 0.15s;
}
.catalog-link:hover { color: var(--red); gap: 12px; }

.catalog-cat { margin-bottom: clamp(40px, 5vw, 72px); }
.catalog-cat:last-of-type { margin-bottom: 0; }
.catalog-cat-head {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 16px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.catalog-cat-icon {
  flex: 0 0 auto; width: 48px; height: 48px;
  display: grid; place-items: center; color: var(--red);
  border: 1px solid var(--line); background: var(--bg-elev-2);
}
.catalog-cat-icon.inline { width: auto; height: auto; border: 0; background: none; display: inline-grid; vertical-align: middle; }
.catalog-cat-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px); line-height: 1; margin: 0; letter-spacing: 0.01em;
}
.catalog-cat-tagline { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.catalog-cat-all {
  margin-left: auto; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em;
  color: var(--muted); text-decoration: none; transition: color 0.15s, gap 0.15s;
}
.catalog-cat-all:hover { color: var(--red); gap: 10px; }
@media (max-width: 600px) {
  .catalog-cat-head { flex-wrap: wrap; }
  .catalog-cat-all { margin-left: 0; width: 100%; }
}

.catalog-archive .section-head { align-items: flex-start; text-align: left; }
.catalog-empty { color: var(--muted); }
.catalog-empty a, .catalog-back a { color: var(--red); text-decoration: none; }
.catalog-back { margin-top: 32px; }
.catalog-back a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; }

/* Naprzemienne tła sekcji na podstronach usług (tylko single-usluga).
   Liczone od końca (nth-last-of-type), więc sekcja kontaktu (zawsze ostatnia,
   jaśniejsza --bg-elev-1) wyznacza rytm — dzięki temu sąsiednie sekcje zawsze
   się przeplatają, niezależnie od tego, które sekcje dana usługa wypełnia.
   Hero ma własne tło (obrazek) i jest wykluczone. */
body.single-usluga > section:not(.hero):nth-last-of-type(odd) {
  background: var(--bg-elev-1);
}
body.single-usluga > section:not(.hero):nth-last-of-type(even) {
  background: var(--bg);
}
