/*
Theme Name: Morski Katalog
Theme URI: https://www.faxpanasonic.pl
Author: AA
Version: 1.0.0
Text Domain: aa-faxpanasonic-katalog
*/
/* =========================================================
   Fax Panasonic — arkusz wspólny
   Kierunek: grafit + petrol, karty modeli ze specyfikacjami
   Fonty systemowe, zero zasobów zdalnych
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Grafit */
  --graphite-950: #0f1418;
  --graphite-900: #14191e;
  --graphite-800: #1e262c;
  --graphite-700: #2b353d;
  --graphite-600: #3b4750;

  /* Petrol */
  --petrol-700: #0a5b68;
  --petrol-600: #0c6d7c;
  --petrol-500: #10879a;
  --petrol-400: #2ba3b8;
  --petrol-300: #6fc6d5;
  --petrol-100: #dceef1;

  /* Akcent ciepły (oszczędnie, dla podpisów specyfikacji) */
  --sand-500: #d9a441;
  --sand-100: #f6ecd4;

  /* Neutralne */
  --ink: #17222a;
  --body: #33424c;
  --muted: #60707A; /* WCAG AA: #62727c dawal 4.41 na tincie #eef2f3 przy wymaganych 4.5 */
  --line: #d7e0e3;
  --line-soft: #e7edef;
  --bg: #eef2f3;
  --bg-2: #e5ebed;
  --surface: #ffffff;
  --surface-2: #f7fafa;

  /* System */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 20, 24, .06), 0 1px 3px rgba(15, 20, 24, .05);
  --shadow: 0 6px 18px -8px rgba(15, 20, 24, .22), 0 2px 6px rgba(15, 20, 24, .06);
  --shadow-lg: 0 24px 48px -20px rgba(12, 109, 124, .38), 0 8px 20px -12px rgba(15, 20, 24, .25);
  --ring: 0 0 0 3px rgba(43, 163, 184, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --maxw: 1240px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo,
    Consolas, monospace;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: clamp(15.5px, 1.4vw, 17px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--petrol-600); text-decoration-color: rgba(12, 109, 124, .35); text-underline-offset: 2px; }
a:hover { color: var(--petrol-700); }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; font-weight: 750; letter-spacing: -.01em; margin: 0 0 .5em; }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--petrol-300); color: var(--graphite-950); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  background: var(--graphite-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 25, 30, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding-block: 10px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--petrol-400), var(--petrol-700));
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 4px 12px -4px rgba(12, 109, 124, .8);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { color: #fff; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-sub { color: var(--petrol-300); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

/* Nav */
.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0; padding: 0;
}
.primary-nav a {
  display: inline-block;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: 9px 15px;
  border-radius: 10px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.primary-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.primary-nav a[aria-current="page"] { background: var(--petrol-600); color: #fff; }

/* Hamburger (checkbox-hack, działa bez JS) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 46px; height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .04);
  place-items: center;
}
.nav-toggle-label .bars { position: relative; width: 22px; height: 15px; }
.nav-toggle-label .bars span {
  position: absolute; left: 0; height: 2px; width: 100%;
  background: #fff; border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease), top .25s var(--ease);
}
.nav-toggle-label .bars span:nth-child(1) { top: 0; }
.nav-toggle-label .bars span:nth-child(2) { top: 6.5px; }
.nav-toggle-label .bars span:nth-child(3) { top: 13px; }

@media (max-width: 860px) {
  .nav-toggle-label { display: grid; }
  .primary-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--graphite-900);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s var(--ease);
  }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 12px clamp(16px, 4vw, 40px) 18px; }
  .primary-nav a { padding: 13px 15px; font-size: 1rem; }
  .nav-toggle:checked ~ .primary-nav { max-height: 340px; }
  .nav-toggle:checked ~ .nav-toggle-label .bars span:nth-child(1) { top: 6.5px; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label .bars span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label .bars span:nth-child(3) { top: 6.5px; transform: rotate(-45deg); }
  .header-inner { position: relative; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 82% -10%, rgba(43, 163, 184, .28), transparent 60%),
    radial-gradient(900px 480px at 5% 120%, rgba(12, 109, 124, .32), transparent 55%),
    linear-gradient(160deg, var(--graphite-900), var(--graphite-950));
  color: #eaf2f4;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 400px at 70% 20%, #000, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 92px);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--petrol-300);
  background: rgba(43, 163, 184, .12);
  border: 1px solid rgba(111, 198, 213, .3);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  letter-spacing: -.03em;
  margin-bottom: .35em;
}
.hero h1 .accent { color: var(--petrol-300); }
.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  color: rgba(234, 242, 244, .82);
  max-width: 34ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 26px;
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-stats .stat b { display: block; color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stats .stat span { color: rgba(234, 242, 244, .62); font-size: .82rem; }

/* Hero visual — panel „fax" z inline SVG */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 22px;
  background: linear-gradient(155deg, rgba(43, 163, 184, .16), rgba(20, 25, 30, .1));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: var(--shadow-lg);
}
.hero-visual .device {
  border-radius: 16px;
  background: linear-gradient(180deg, var(--graphite-700), var(--graphite-900));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .96rem;
  padding: 13px 22px;
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .16s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, var(--petrol-500), var(--petrol-700));
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(12, 109, 124, .85);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(12, 109, 124, .95); }
.btn-ghost {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.btn-solid {
  background: var(--graphite-800); color: #fff;
}
.btn-solid:hover { color: #fff; background: var(--graphite-700); transform: translateY(-2px); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: clamp(42px, 6vw, 74px); }
.section-tight { padding-block: clamp(30px, 4vw, 48px); }

.section-head { max-width: 62ch; margin-bottom: 34px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--petrol-600);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin-bottom: 0; }

/* Banner „Fax przez internet" */
.promo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 320px at 90% -30%, rgba(43, 163, 184, .3), transparent 60%),
    linear-gradient(150deg, var(--petrol-700), var(--graphite-900));
  color: #fff;
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.promo h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: .2em; max-width: 22ch; }
.promo p { color: rgba(255, 255, 255, .78); margin: 0; }
.promo-deco { position: absolute; right: -30px; bottom: -40px; opacity: .16; pointer-events: none; }
.promo-deco svg { width: 260px; height: 260px; }

/* Disclaimer / trademark note */
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--petrol-500);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: var(--muted);
  font-size: .95rem;
}
.notice svg { flex: none; width: 22px; height: 22px; color: var(--petrol-600); margin-top: 1px; }
.notice p { margin: 0; }

/* Featured services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--petrol-300); color: var(--ink); }
.service-thumb {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  aspect-ratio: 16 / 10;
  background: var(--graphite-800);
}
.service-thumb svg { width: 100%; height: 100%; }
.service-card .name { font-weight: 750; font-size: 1.02rem; }
.service-card .go { margin-top: auto; padding-top: 10px; color: var(--petrol-600); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }

/* =========================================================
   PAGE GRID (main + sidebar)
   ========================================================= */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}

/* =========================================================
   MODEL CARDS
   ========================================================= */
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.model-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.model-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--petrol-300); }

.model-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(420px 200px at 80% 0%, rgba(43, 163, 184, .22), transparent 60%),
    linear-gradient(160deg, var(--graphite-700), var(--graphite-900));
  display: grid; place-items: center;
  overflow: hidden;
}
.model-media svg.device-illu { width: 62%; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .4)); }
.model-media .caption {
  position: absolute; left: 12px; bottom: 10px;
  font-size: .68rem; letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
  background: rgba(15, 20, 24, .45);
  padding: 3px 9px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.model-badge {
  position: absolute; left: 12px; top: 12px;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--petrol-300);
  background: rgba(15, 20, 24, .55);
  border: 1px solid rgba(111, 198, 213, .35);
  padding: 4px 11px; border-radius: 999px;
}

.model-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.model-body h3 { font-size: 1.18rem; margin-bottom: .5em; }
.model-body h3 a { color: var(--ink); text-decoration: none; }
.model-body h3 a:hover { color: var(--petrol-600); }
.model-excerpt { color: var(--body); font-size: .95rem; margin-bottom: 16px; }
.model-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.model-cat {
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--petrol-700);
  background: var(--petrol-100);
  padding: 5px 11px; border-radius: 999px;
  text-decoration: none;
}
.model-cat:hover { color: #fff; background: var(--petrol-600); }
.more-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .9rem; text-decoration: none;
  color: var(--petrol-600);
}
.more-link:hover { color: var(--petrol-700); gap: 9px; }
.more-link svg { width: 15px; height: 15px; transition: transform .16s var(--ease); }
.more-link:hover svg { transform: translateX(2px); }

/* =========================================================
   SIDEBAR
   ========================================================= */
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 22px; }
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  display: flex; align-items: center; gap: 9px;
}
.widget-title svg { width: 17px; height: 17px; color: var(--petrol-600); }

.search-box { display: flex; gap: 8px; }
.search-box input {
  flex: 1; min-width: 0;
  font: inherit; font-size: .92rem;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--ink);
}
.search-box input:focus-visible { border-color: var(--petrol-400); }
.search-box button {
  flex: none;
  border: 0; cursor: pointer;
  background: var(--petrol-600); color: #fff;
  border-radius: 10px;
  width: 42px; display: grid; place-items: center;
}
.search-box button:hover { background: var(--petrol-700); }
.search-box button svg { width: 18px; height: 18px; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--line-soft); }
.post-list li:last-child { border-bottom: 0; }
.post-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--body);
  font-size: .93rem; font-weight: 500;
  transition: color .16s var(--ease), padding .16s var(--ease);
}
.post-list a:hover { color: var(--petrol-700); padding-left: 8px; }
.post-list a::before {
  content: ""; flex: none;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--petrol-400);
  transform: rotate(45deg);
}

.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cat-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .93rem;
  transition: background .16s var(--ease), border-color .16s, color .16s;
}
.cat-list a:hover { background: var(--petrol-100); border-color: var(--petrol-300); color: var(--petrol-700); }
.cat-list .count {
  font-size: .78rem; font-weight: 700;
  background: var(--petrol-600); color: #fff;
  padding: 2px 9px; border-radius: 999px;
}

.aside-cta {
  background: linear-gradient(160deg, var(--graphite-800), var(--graphite-900));
  color: #fff;
  border-color: var(--graphite-700);
}
.aside-cta .widget-title { color: #fff; border-color: rgba(255, 255, 255, .14); }
.aside-cta .widget-title svg { color: var(--petrol-300); }
.aside-cta p { color: rgba(255, 255, 255, .78); font-size: .92rem; }

/* =========================================================
   ARTICLE (wpis / podstrona)
   ========================================================= */
.page-hero {
  background:
    radial-gradient(700px 300px at 88% -20%, rgba(43, 163, 184, .22), transparent 60%),
    linear-gradient(160deg, var(--graphite-800), var(--graphite-950));
  color: #eaf2f4;
  padding-block: clamp(34px, 6vw, 60px);
}
.breadcrumbs { font-size: .84rem; color: rgba(234, 242, 244, .6); margin-bottom: 16px; }
.breadcrumbs a { color: var(--petrol-300); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span[aria-current] { color: rgba(234, 242, 244, .85); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4.4vw, 3rem); max-width: 20ch; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  margin-top: 18px;
  font-size: .88rem;
  color: rgba(234, 242, 244, .72);
}
.article-meta .m { display: inline-flex; align-items: center; gap: 7px; }
.article-meta svg { width: 15px; height: 15px; color: var(--petrol-300); }
.article-meta .tagchip {
  background: rgba(43, 163, 184, .16);
  border: 1px solid rgba(111, 198, 213, .3);
  color: var(--petrol-300);
  padding: 3px 12px; border-radius: 999px; font-weight: 600;
}

.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.article > *:first-child { margin-top: 0; }
/* [data-aa-content-root] to kontener TECHNICZNY obszaru tresci (bramka
   porownania tresci z baza) — nie ma wlasnego wygladu, wiec regula dziecka
   powyzej musi go przenikac. Lustrzana kopia, nie nowy styl. */
.article > [data-aa-content-root]:first-child > *:first-child { margin-top: 0; }
.article h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-top: 1.6em; }
.article h3 { font-size: 1.2rem; margin-top: 1.4em; }
.article ul, .article ol { padding-left: 1.35em; }
.article li { margin-bottom: .5em; }
.article strong { color: var(--ink); }
.article u { text-decoration-color: var(--petrol-400); text-underline-offset: 3px; }

.figure {
  margin: 0 0 26px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.figure .ph {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(500px 240px at 78% 0%, rgba(43, 163, 184, .24), transparent 60%),
    linear-gradient(160deg, var(--graphite-700), var(--graphite-950));
  display: grid; place-items: center;
}
.figure .ph svg { width: 46%; }
.figure figcaption {
  padding: 10px 16px;
  font-size: .83rem; color: var(--muted);
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

/* Spec list — karta specyfikacji */
.spec-card {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.spec-card .spec-head {
  background: linear-gradient(150deg, var(--petrol-700), var(--graphite-900));
  color: #fff;
  padding: 14px 20px;
  font-weight: 750;
  display: flex; align-items: center; gap: 10px;
}
.spec-card .spec-head svg { width: 20px; height: 20px; color: var(--petrol-300); }
/* Napis naglowka karty rysuje arkusz, a nie znacznik: „Specyfikacja" to ozdoba
   makiety, a nie tekst wpisu, a obszar [data-aa-content-root] ma zawierac
   WYLACZNIE tresc z bazy. Pseudoelement jest elementem flex, wiec gap: 10px
   ustawia go dokladnie tak, jak dawny wezel tekstowy. */
.spec-card .spec-head::after { content: "Specyfikacja"; }
.spec-list { list-style: none; margin: 0; padding: 6px 0; }
.spec-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line-soft);
  margin: 0;
  color: var(--body);
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list li .ic {
  width: 28px; height: 28px; flex: none;
  border-radius: 8px;
  background: var(--petrol-100);
  color: var(--petrol-700);
  display: grid; place-items: center;
}
.spec-list li .ic svg { width: 15px; height: 15px; }

/* Info callout */
.callout {
  display: flex; gap: 14px;
  background: var(--sand-100);
  border: 1px solid #ecdcb2;
  border-left: 4px solid var(--sand-500);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 22px 0;
}
.callout svg { flex: none; width: 22px; height: 22px; color: #b9832a; margin-top: 2px; }
.callout p { margin: 0; color: #6a5320; font-size: .95rem; }

/* file-format list styling reuse in article via .fmt */
.fmt { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fmt li {
  margin: 0;
  font-size: .86rem; font-weight: 600;
  color: var(--petrol-700);
  background: var(--petrol-100);
  border: 1px solid var(--petrol-300);
  padding: 6px 12px; border-radius: 8px;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink); font-weight: 600; text-decoration: none;
  transition: all .16s var(--ease);
}
.pagination a:hover { border-color: var(--petrol-400); background: var(--petrol-100); color: var(--petrol-700); }
.pagination .current { background: var(--petrol-600); border-color: var(--petrol-600); color: #fff; }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* =========================================================
   CATEGORY (lista)
   ========================================================= */
.cat-hero-count {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-size: .9rem;
  color: rgba(234, 242, 244, .8);
  background: rgba(43, 163, 184, .14);
  border: 1px solid rgba(111, 198, 213, .3);
  padding: 6px 14px; border-radius: 999px;
}
.cat-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
  margin-bottom: 18px;
}
.cat-row:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--petrol-300); }
.cat-row .thumb {
  background:
    radial-gradient(300px 160px at 70% 0%, rgba(43, 163, 184, .22), transparent 60%),
    linear-gradient(160deg, var(--graphite-700), var(--graphite-950));
  display: grid; place-items: center;
}
.cat-row .thumb svg { width: 66%; }
.cat-row .body { padding: 18px 20px; display: flex; flex-direction: column; }
.cat-row h3 { font-size: 1.14rem; margin-bottom: .35em; }
.cat-row h3 a { color: var(--ink); text-decoration: none; }
.cat-row h3 a:hover { color: var(--petrol-600); }
.cat-row p { font-size: .92rem; color: var(--body); margin-bottom: 12px; }
.cat-row .row-foot { margin-top: auto; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: linear-gradient(180deg, var(--graphite-900), var(--graphite-950));
  color: rgba(234, 242, 244, .72);
  padding-block: clamp(40px, 6vw, 64px) 30px;
  margin-top: clamp(40px, 6vw, 70px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(26px, 4vw, 52px);
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand .brand-name { font-size: 1.25rem; }
.footer-about { max-width: 40ch; font-size: .92rem; margin-top: 14px; }
.footer-col h4 {
  color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(234, 242, 244, .72); text-decoration: none; font-size: .93rem; }
.footer-col a:hover { color: var(--petrol-300); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: .84rem; color: rgba(234, 242, 244, .5);
}
.footer-bottom .disc { max-width: 68ch; }
.footer-bottom a { color: rgba(234, 242, 244, .6); }
.footer-bottom a:hover { color: var(--petrol-300); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar .widget { flex: 1 1 260px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 440px; }
  .promo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .model-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .cat-row { grid-template-columns: 1fr; }
  .cat-row .thumb { aspect-ratio: 16 / 8; }
  .hero-stats { gap: 18px; }
  .sidebar { flex-direction: column; }
}
@media (max-width: 420px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
}

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