/* Kalkulator Wynagrodzeń — premium financial-product design system (v1.12).
   Presentation only: no webfonts, no third-party CSS, no external requests.
   Tokens: Deep Navy (primary), Emerald (secondary), Soft Blue (accent),
   Warm Gray (background), Pure White (cards). All animation is CSS-only,
   transform/opacity, and fully disabled under prefers-reduced-motion. */
:root {
  /* Deep Navy scale */
  --navy-950: #081a33;
  --navy-900: #0c2140;
  --navy-800: #13294b;
  --navy-700: #1c3a66;
  --navy-600: #2a4e80;
  --navy-500: #3a649b;
  --navy-200: #b9cbe2;
  --navy-100: #dce6f2;
  --navy-50: #eef3f9;
  /* Emerald scale */
  --emerald-700: #095540;
  --emerald-600: #0b6b4f;
  --emerald-500: #0e7c66;
  --emerald-100: #d9efe6;
  --emerald-50: #e9f6f1;
  /* Soft Blue scale */
  --blue-600: #2f6391;
  --blue-500: #3e7cb1;
  --blue-100: #e1ecf6;
  --blue-50: #eff5fb;
  /* Warm Gray + surfaces */
  --bg: #f6f4f0;
  --surface: #ffffff;
  --line: #e3ded4;
  --line-strong: #c9cfd8;
  --text: #1b2432;
  --muted: #55606e;
  /* Semantic */
  --amber-bg: #fef3c7;
  --amber-line: #d97706;
  --amber-text: #7c3f04;
  --error-bg: #fdecea;
  --error-line: #e57373;
  --error-text: #7a1f1f;
  /* Shape + elevation */
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 1px 2px rgba(19, 41, 75, 0.05), 0 12px 32px -16px rgba(19, 41, 75, 0.18);
  --shadow-pop: 0 24px 48px -16px rgba(19, 41, 75, 0.28);
  /* Back-compat aliases (older class rules + QA) */
  --navy: var(--navy-800);
  --navy-2: var(--navy-700);
  --teal: var(--emerald-600);
  --teal-dark: var(--emerald-700);
  --card: var(--surface);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--emerald-700); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--navy-100); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@keyframes kw-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes kw-result-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; display: block; padding: 12px; background: var(--navy-800); color: #fff; }

/* ---------- Header: sticky glass, logo, mega menu, CTA ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 12px rgba(19, 41, 75, 0.06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: #ffffff; }
}
.site-header-inner { position: relative; max-width: 1120px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--navy-800); text-decoration: none; white-space: nowrap; line-height: 1.15; }
.brand:hover { text-decoration: none; }
.brand .brand-text span { color: var(--emerald-600); }
.brand-logo { flex: none; display: block; }
.nav-toggle { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-burger { display: none; }
.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: stretch; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { display: flex; align-items: stretch; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 13px; min-height: 44px; border-radius: 8px; color: var(--navy-800); font-weight: 600; font-size: 16.5px; text-decoration: none; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease; }
.nav-link:hover { background: var(--navy-50); text-decoration: none; }
.nav-item.has-mega .nav-link::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.65; transition: transform 0.18s ease; }
.nav-item.has-mega:hover .nav-link::after, .nav-item.has-mega:focus-within .nav-link::after { transform: rotate(225deg) translateY(-1px); }
.nav-link::before { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--emerald-600); transform: scaleX(0); transform-origin: left; transition: transform 0.18s ease; }
.nav-item.is-active .nav-link { color: var(--emerald-700); }
.nav-item.is-active .nav-link::before { transform: scaleX(1); }
.mega {
  position: absolute; left: 8px; right: 8px; top: 100%;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--emerald-600);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-pop);
  padding: 22px 26px 26px;
  opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.mega::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 28px; }
.mega-title { display: block; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin: 6px 0 8px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin: 0; }
.mega-col a { display: block; padding: 7px 9px; border-radius: 8px; color: var(--navy-800); font-size: 15.5px; line-height: 1.4; text-decoration: none; transition: background 0.13s ease; }
.mega-col a:hover { background: var(--navy-50); text-decoration: none; }
.mega-col a[aria-current="page"] { font-weight: 800; color: var(--emerald-700); background: var(--emerald-50); }
.header-cta { flex: none; background: var(--emerald-600); color: #fff; text-decoration: none; padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 16px; min-height: 44px; display: inline-flex; align-items: center; box-shadow: 0 6px 16px -8px rgba(11, 107, 79, 0.7); transition: background 0.15s ease, transform 0.15s ease; }
.header-cta:hover { background: var(--emerald-700); text-decoration: none; }
.header-cta:active { transform: translateY(1px); }
@media (max-width: 1020px) {
  .nav-link { padding: 10px 9px; font-size: 16px; }
  .brand { font-size: 18px; }
}
@media (max-width: 959px) {
  .site-header-inner { flex-wrap: wrap; row-gap: 4px; padding-bottom: 10px; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; cursor: pointer; }
  .nav-burger span { position: relative; display: block; width: 20px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform 0.18s ease, background 0.18s ease; }
  .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform 0.18s ease, top 0.18s ease; }
  .nav-burger span::before { top: -6px; }
  .nav-burger span::after { top: 6px; }
  .nav-toggle:focus-visible ~ .nav-burger { outline: 3px solid var(--blue-600); outline-offset: 2px; }
  .nav-toggle:checked ~ .nav-burger span { background: transparent; }
  .nav-toggle:checked ~ .nav-burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span::after { top: 0; transform: rotate(-45deg); }
  .header-cta { margin-left: 0; }
  .nav-toggle:checked ~ .header-cta { margin-left: 0; }
  .main-nav { display: none; order: 5; width: 100%; margin-left: 0; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav { max-height: calc(100vh - 130px); overflow-y: auto; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { display: block; }
  .nav-link { display: flex; width: 100%; padding: 12px 10px; font-size: 17px; border-top: 1px solid var(--navy-50); }
  .nav-item:first-child .nav-link { border-top: 0; }
  .nav-item.has-mega .nav-link::after { display: none; }
  .nav-link::before { display: none; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; pointer-events: auto; border: 0; box-shadow: none; padding: 2px 0 12px 10px; border-radius: 0; }
  .mega::before { display: none; }
  .mega-grid { grid-template-columns: 1fr 1fr; gap: 4px 18px; }
  .mega-col a { padding: 9px 8px; font-size: 15px; }
}
@media (max-width: 460px) {
  .mega-grid { grid-template-columns: 1fr; }
  .brand { font-size: 17px; }
  .header-cta { padding: 10px 12px; font-size: 15px; }
}

/* ---------- Layout / hero / page head ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 16px 56px; }
#kalkulator, #main { scroll-margin-top: 92px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.hero { display: grid; gap: 28px; margin-bottom: 32px; animation: kw-fade-up 0.5s ease both; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.15fr; align-items: start; gap: 36px; } }
.hero h1 { font-size: clamp(2.125rem, 1.55rem + 2.9vw, 3.25rem); line-height: 1.14; letter-spacing: -0.02em; margin: 6px 0 14px; color: var(--navy-900); }
.hero p.lead { font-size: 20px; line-height: 1.55; color: var(--muted); margin: 0 0 20px; }
.trust { font-size: 14px; color: var(--muted); }
.trust-row { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--navy-700); }
.trust-row svg { flex: none; color: var(--emerald-600); }
.trust-row a { color: var(--emerald-700); }
.page-head { padding-top: 10px; }
.page-head h1 { font-size: clamp(1.875rem, 1.5rem + 1.8vw, 2.5rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--navy-900); margin: 0 0 12px; }
.page-head .lead { font-size: 20px; line-height: 1.55; color: var(--muted); margin: 0; }
.content { max-width: 780px; }
.content h2 { color: var(--navy-800); margin-top: 36px; font-size: clamp(1.625rem, 1.35rem + 1.2vw, 2.25rem); line-height: 1.25; letter-spacing: -0.01em; }
.content h3 { color: var(--navy-800); margin-top: 26px; font-size: 1.25rem; }
.content table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 16px; }
.content th, .content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.content th { background: var(--navy-50); color: var(--navy-800); }
.content tbody tr:nth-child(even) { background: #fbfaf7; }
.content tbody tr:hover { background: var(--blue-50); }
.content td.num, .content th.num { font-variant-numeric: tabular-nums; }
.content ul, .content ol { padding-left: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin: 18px 0; box-shadow: 0 1px 2px rgba(19, 41, 75, 0.04); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.card h2 { margin-top: 0; font-size: 1.5rem; color: var(--navy-800); }
.related { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin-top: 36px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.related:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.related ul { margin: 8px 0 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy-800); min-height: 48px; display: flex; align-items: center; gap: 10px; list-style: none; padding: 6px 2px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after, details.advanced summary::after, .how summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid var(--emerald-600); border-bottom: 2px solid var(--emerald-600); transform: rotate(45deg); transition: transform 0.18s ease; }
.faq details[open ] summary::after, details.advanced[open ] summary::after, .how[open ] summary::after { transform: rotate(225deg); }
.faq details p { margin: 2px 0 14px; color: var(--text); }
.last-reviewed { font-size: 14px; color: var(--muted); margin-top: 24px; }

/* ---------- Calculator card (flagship) ---------- */
.calc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card); animation: kw-fade-up 0.5s ease both; }
@media (min-width: 700px) { .calc-card { padding: 28px; } }
.calc-card h2 { margin-top: 0; color: var(--navy-800); font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; }
.calc-card > p { color: var(--muted); font-size: 15.5px; }
.field { margin-bottom: 18px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
fieldset.field legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { font-size: 13.5px; line-height: 1.5; color: var(--muted); font-weight: 400; display: block; margin-top: 5px; }
.field input[type="text"], .field input[type="number"], .field select, .field textarea {
  width: 100%; padding: 13px 14px; font-size: 18px; border: 1.5px solid var(--line-strong);
  border-radius: 10px; background: #fff; color: var(--text); min-height: 50px;
  font-variant-numeric: tabular-nums; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--emerald-600); outline: none; box-shadow: 0 0 0 4px rgba(11, 107, 79, 0.18); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; cursor: pointer; min-height: 44px; font-weight: 600; background: #fff; transition: border-color 0.15s ease, background 0.15s ease; margin-bottom: 0; }
.seg label:hover { border-color: var(--navy-500); }
.seg label:has(input:checked) { border-color: var(--emerald-600); background: var(--emerald-50); color: var(--navy-800); }
.seg input { accent-color: var(--emerald-600); width: 18px; height: 18px; }
/* Toggle switches for existing checkbox inputs (presentation only) */
.calc-card label:has(> input[type="checkbox"]) { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.calc-card input[type="checkbox"] { -webkit-appearance: none; appearance: none; flex: none; width: 46px; height: 26px; margin: 3px 0 0; padding: 0; border: 2px solid #c7cfd9; border-radius: 999px; background: #c7cfd9; position: relative; cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease; }
.calc-card input[type="checkbox"]::before { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(19, 41, 75, 0.35); transition: transform 0.18s ease; }
.calc-card input[type="checkbox"]:checked { background: var(--emerald-600); border-color: var(--emerald-600); }
.calc-card input[type="checkbox"]:checked::before { transform: translateX(20px); }
.calc-card input[type="checkbox"]:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }
details.advanced { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 16px; margin-bottom: 18px; background: #fbfaf7; }
details.advanced summary { cursor: pointer; font-weight: 700; color: var(--navy-800); min-height: 48px; display: flex; align-items: center; gap: 10px; list-style: none; }
details.advanced summary::-webkit-details-marker { display: none; }
.btn-primary {
  width: 100%; background: var(--emerald-600); color: #fff; border: 0; border-radius: 10px;
  padding: 15px 18px; font-size: 18px; font-weight: 800; cursor: pointer; min-height: 54px;
  box-shadow: 0 10px 20px -10px rgba(11, 107, 79, 0.65); transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { background: var(--emerald-700); }
.btn-primary:active { transform: translateY(1px); box-shadow: 0 4px 10px -6px rgba(11, 107, 79, 0.65); }
.btn-secondary { background: #fff; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 11px 16px; font-weight: 700; cursor: pointer; min-height: 44px; color: var(--navy-800); text-decoration: none; display: inline-flex; align-items: center; transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease; }
.btn-secondary:hover { border-color: var(--navy-500); background: var(--navy-50); text-decoration: none; }
.error { background: var(--error-bg); border: 1px solid var(--error-line); color: var(--error-text); border-radius: 10px; padding: 13px 15px; margin-top: 16px; }
.warning { background: var(--amber-bg); border: 1px solid var(--amber-line); color: var(--amber-text); border-radius: 10px; padding: 13px 15px; margin-top: 16px; }

/* ---------- Result: fintech dashboard ---------- */
.result { margin-top: 22px; border: 1px solid var(--navy-100); border-radius: var(--radius-lg); padding: 20px; background: linear-gradient(180deg, var(--navy-50), #ffffff 78%); animation: kw-result-in 0.35s ease both; }
.result .big-label { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--emerald-700); font-weight: 800; }
.result .big-value { font-size: 44px; font-weight: 800; color: var(--navy-900); line-height: 1.12; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.result .big-sub { color: var(--muted); margin-top: 5px; font-size: 14.5px; }
.view-toggle { display: flex; gap: 8px; margin: 16px 0 4px; flex-wrap: wrap; }
.view-toggle button { border: 1.5px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; min-height: 44px; color: var(--navy-800); transition: border-color 0.15s ease, background 0.15s ease; }
.view-toggle button:hover { border-color: var(--navy-500); }
.view-toggle button[aria-pressed="true"] { border-color: var(--emerald-600); background: var(--emerald-50); color: var(--navy-800); }
.breakdown { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 16px; }
.breakdown th, .breakdown td { border-bottom: 1px solid var(--line); padding: 9px 8px; text-align: left; }
.breakdown thead th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid var(--line-strong); }
.breakdown tbody tr:hover { background: rgba(255, 255, 255, 0.65); }
.breakdown td.num, .breakdown th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown tr.total td { font-weight: 800; border-top: 2px solid var(--navy-800); color: var(--navy-900); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.how { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 6px; }
.how summary { cursor: pointer; font-weight: 700; color: var(--navy-800); min-height: 48px; display: flex; align-items: center; gap: 10px; list-style: none; }
.how summary::-webkit-details-marker { display: none; }
/* Proportional breakdown bar (segments sized by design.js from rendered values) */
.breakdown-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 16px 0 10px; background: var(--navy-100); box-shadow: inset 0 0 0 1px rgba(19, 41, 75, 0.06); }
.breakdown-bar .seg-zus { background: var(--emerald-600); }
.breakdown-bar .seg-zdrowotna { background: var(--blue-500); }
.breakdown-bar .seg-pit { background: #a79e93; }
.breakdown-bar .seg-ppk { background: var(--navy-500); }
.breakdown-bar .seg-netto { background: var(--navy-800); }
.breakdown-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0 0 4px; padding: 0; font-size: 14px; color: var(--muted); }
.breakdown-legend li { display: inline-flex; align-items: center; gap: 7px; }
.breakdown-legend .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.breakdown-legend .dot-zus { background: var(--emerald-600); }
.breakdown-legend .dot-zdrowotna { background: var(--blue-500); }
.breakdown-legend .dot-pit { background: #a79e93; }
.breakdown-legend .dot-ppk { background: var(--navy-500); }
.breakdown-legend .dot-netto { background: var(--navy-800); }
.breakdown-legend strong { color: var(--navy-800); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .calc-card { padding: 18px 16px; }
  .result { padding: 16px 13px; overflow-x: auto; }
  .result .big-value { font-size: 36px; }
  .breakdown { font-size: 14.5px; }
  .breakdown th, .breakdown td { padding: 8px 5px; }
  .card, .related { padding: 18px 16px; }
  .content table { font-size: 14.5px; }
  .content th, .content td { padding: 8px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c9d6e8; margin-top: 16px; }
.site-footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px 16px 8px; display: grid; gap: 32px; }
@media (min-width: 900px) { .site-footer-inner { grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr; gap: 28px; } }
@media (min-width: 560px) and (max-width: 899px) { .site-footer-inner { grid-template-columns: 1fr 1fr; } }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer h2, .site-footer h3 { color: #fff; margin: 0 0 14px; font-size: 16px; letter-spacing: 0.01em; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand .brand-text span { color: #57c79e; }
.footer-brand-h { display: flex; align-items: center; gap: 11px; font-size: 19px !important; letter-spacing: -0.01em; }
.footer-brand-h .brand-text > span { color: #57c79e; }
.footer-brand-h .brand-logo { flex: none; }
.site-footer p { font-size: 14.5px; line-height: 1.6; color: #c9d6e8; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer li a { display: inline-block; padding: 5px 0; font-size: 15px; min-height: 32px; }
.footer-trust { list-style: none; margin: 18px 0 0; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); display: grid; gap: 9px; }
.footer-trust li { display: flex; align-items: flex-start; gap: 9px; margin: 0; font-size: 14px; line-height: 1.5; color: #e6eef9; }
.footer-trust svg { flex: none; margin-top: 2px; color: #57c79e; }
.footer-trust a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); margin-top: 36px; }
.footer-bottom-inner { max-width: 1120px; margin: 0 auto; padding: 18px 16px 26px; display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; font-size: 14px; color: #c9d6e8; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); color: #e6eef9; border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; font-weight: 700; cursor: not-allowed; opacity: 0.85; min-height: 40px; }
.to-top { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 700; min-height: 40px; }
.cookie-settings-btn { background: none; border: 0; padding: 5px 0; color: #fff; cursor: pointer; font: inherit; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.cookie-settings-btn:hover { text-decoration-thickness: 2px; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 959px) {
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(19, 41, 75, 0.10); }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; border-radius: 10px; background: var(--emerald-600); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none; box-shadow: 0 10px 20px -10px rgba(11, 107, 79, 0.65); }
  .mobile-cta a:active { background: var(--emerald-700); }
  .wrap { padding-bottom: 118px; }
}

/* Consent banner (v1.5.1) — fixed bottom, never shifts calculator layout (no layout shift over inputs); scrollable on small screens. */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: #fff; border-top: 2px solid var(--navy-800); box-shadow: 0 -4px 24px rgba(19, 41, 75, 0.18); padding: 14px 16px; max-height: 40vh; overflow-y: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cookie-banner[hidden] { display: none; }
.cookie-banner-tekst { margin: 0; flex: 1 1 320px; font-size: 15px; color: var(--text); }
.cookie-banner-przyciski { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn { min-width: 120px; width: auto; }
@media (max-width: 640px) { .cookie-btn { flex: 1 1 auto; } }

/* ---------- v1.13: language switcher (header) + footer language links ---------- */
.lang-switch { position: relative; margin-left: 4px; }
.lang-current { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 9px 12px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--navy-800); font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; }
.lang-current::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.65; transition: transform 0.18s ease; }
.lang-switch:hover .lang-current::after, .lang-switch:focus-within .lang-current::after { transform: rotate(225deg) translateY(-1px); }
.lang-current:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.lang-menu { position: absolute; right: 0; top: 100%; min-width: 176px; margin: 0; padding: 8px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; z-index: 96; }
.lang-menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--navy-800); font-weight: 600; font-size: 15.5px; text-decoration: none; white-space: nowrap; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--navy-50); text-decoration: none; }
.lang-menu a[aria-current="true"] { color: var(--emerald-700); background: var(--emerald-50); font-weight: 800; }
.lang-list-mobile { display: none; }
.lang-links { display: inline-flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
.lang-links svg { opacity: 0.8; }
.lang-links a { color: #c9d6e8; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.lang-links a:hover { color: #fff; }
.lang-links a[aria-current="true"] { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1020px) {
  .lang-current { padding: 9px 9px; }
}
@media (max-width: 959px) {
  .lang-switch { display: none; }
  .lang-list-mobile { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 10px 0 2px; padding: 10px 0 2px; border-top: 1px solid var(--line); }
  .lang-list-mobile a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; color: var(--navy-800); font-weight: 700; font-size: 15px; text-decoration: none; }
  .lang-list-mobile a[aria-current="true"] { color: var(--emerald-700); border-color: var(--emerald-600); background: var(--emerald-50); }
}

/* ---------- v1.15: mobile fixes (audit, Nov 2026) ---------- */
/* M1: wide tables scroll inside their own box instead of widening the page */
@media (max-width: 959px) {
  main table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  main table th, main table td { min-width: 96px; }
}
/* M2: calculator above the fold on phones — trust badges move below the calculator */
@media (max-width: 899px) {
  .hero { gap: 16px; margin-bottom: 24px; }
  .hero > div:first-child { display: contents; }
  .hero h1 { order: 1; margin: 0; font-size: clamp(1.75rem, 1.3rem + 2.4vw, 2.25rem); }
  .hero p.lead { order: 2; margin: 0; font-size: 17px; }
  .hero > #kalkulator, .hero > div:last-child { order: 3; }
  .hero .trust-row { order: 4; padding-top: 14px; }
}
/* M3: the sticky bottom CTA already exists on mobile, so the header button is hidden there */
@media (max-width: 959px) {
  .header-cta { display: none; }
  .site-header-inner { min-height: 56px; padding-bottom: 8px; }
}
/* M4: compact cookie banner on phones */
@media (max-width: 640px) {
  .cookie-banner { padding: 10px 12px; gap: 8px; max-height: 32vh; }
  .cookie-banner-tekst { flex-basis: 100%; font-size: 13.5px; line-height: 1.45; }
  .cookie-banner-przyciski { width: 100%; flex-wrap: nowrap; gap: 8px; }
  .cookie-btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 8px 10px; }
}
/* M5: bigger tap areas for links in lists */
@media (max-width: 959px) {
  .content li a, .related li a, .site-footer li a { display: inline-block; padding: 4px 0; }
}
/* v1.16: author byline */
.byline { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); }
.byline a { color: var(--emerald-700); font-weight: 600; }
.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin: 18px 0 8px; }
.author-avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--navy-800); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 26px; letter-spacing: 0.02em; }
.author-box h2 { margin: 0 0 4px; font-size: 1.5rem; }
.author-role { margin: 0 0 10px; font-weight: 700; color: var(--emerald-700); }
@media (max-width: 899px) { .hero .byline { order: 2; margin: 0; } }
@media (max-width: 520px) { .author-box { flex-direction: column; padding: 18px 16px; } }
/* v1.16: slimmer footer (3 columns) */
@media (min-width: 900px) { .site-footer-inner { grid-template-columns: 2fr 1fr; } }
/* v1.16: header fits on laptops/tablets (was overflowing between 960 and ~1330 px) */
@media (min-width: 960px) and (max-width: 1420px) { .header-cta { display: none; } }
@media (min-width: 960px) and (max-width: 1120px) { .nav-link { padding: 10px 7px; font-size: 15.5px; } .site-header-inner { gap: 8px; } }
/* v1.17: homepage contract tabs + calculator hub */
.contract-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 4px; background: var(--paper, #f4f3ef); border-radius: 12px; }
.contract-tabs a { flex: 1 1 auto; text-align: center; padding: 9px 10px; border-radius: 9px; font-weight: 700; font-size: 14.5px; color: var(--navy-800, #13294B); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.contract-tabs a:hover { background: #fff; }
.contract-tabs a[aria-current="page"] { background: var(--navy-800, #13294B); color: #fff; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 24px; margin: 8px 0 12px; }
.hub-grid h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.hub-grid ul { margin: 0; padding-left: 18px; }
.content ol li { margin-bottom: 8px; }
/* v1.18: grid children may shrink, wide result tables scroll inside the card */
.hero > *, .calc-card, .calc-result { min-width: 0; }
.calc-result > .result { max-width: 100%; }
/* v1.19: quick-select chips + VAT card */
.preset-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -6px 0 18px; }
.preset-chips span { font-size: 13.5px; color: var(--muted); margin-right: 2px; }
.preset-chips button { border: 1.5px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; color: var(--navy-800); cursor: pointer; min-height: 36px; }
.preset-chips button:hover { border-color: var(--emerald-600); background: var(--emerald-50); }
.content .vat-card { margin: 18px 0; max-width: 560px; }
.content .vat-card h3 { margin-top: 0; }
.content tr[id] { scroll-margin-top: 90px; }

/* v1.21: scrollable wide tables, 12-month result highlight */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1rem; max-width: 100%; }
.table-wrap > table { margin: 0; }
.roczny-result .breakdown th { text-align: right; font-size: .85em; white-space: nowrap; }
.roczny-result .breakdown th:first-child { text-align: left; }
.roczny-result tr.row-change td { background: rgba(255, 196, 0, .14); }
.content ol li { margin-bottom: .35rem; }
@media (max-width: 600px) { .roczny-result .breakdown { font-size: 13px; } .roczny-result .breakdown td, .roczny-result .breakdown th { padding: 6px 6px; } }
.table-wrap td.num { white-space: nowrap; }
.hub-grid h3 a { text-decoration: none; }
.hub-grid p { margin: .25rem 0 0; font-size: .95em; opacity: .85; }
.filtr { margin: 1.5rem 0 .5rem; max-width: 520px; }
.filtr input { width: 100%; }
.kalk-grupa[hidden], .kalk-lista li[hidden] { display: none; }

/* ===== v1.28 — Hub /kalkulatory/ ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hub2 .ico { flex: none; }
.hub-hero { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 32px; align-items: start; margin: 8px 0 28px; padding: 32px; border-radius: 24px; background: radial-gradient(120% 140% at 0% 0%, var(--navy-50) 0%, #fff 55%), #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.hub-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: var(--emerald-50); color: var(--emerald-700); font-weight: 700; font-size: 14px; }
.hub-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; color: var(--navy-900); margin: 0 0 14px; }
.hub-hero .lead { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 0 20px; }
.hub-search { position: relative; display: flex; align-items: center; }
.hub-search .ico { position: absolute; left: 16px; color: var(--navy-500); pointer-events: none; }
.hub-search input { width: 100%; min-height: 56px; padding: 12px 16px 12px 48px; font-size: 17px; border: 2px solid var(--line-strong); border-radius: 14px; background: #fff; color: var(--text); box-shadow: 0 2px 0 rgba(19,41,75,.04); transition: border-color .15s, box-shadow .15s; }
.hub-search input:focus { outline: none; border-color: var(--emerald-600); box-shadow: 0 0 0 4px var(--emerald-100); }
.hub-hero .filtr-info { min-height: 1.2em; margin: 8px 2px 0; font-weight: 600; color: var(--emerald-700); }
.hub-trust { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.hub-trust li { display: flex; align-items: center; gap: 8px; }
.hub-trust .ico { color: var(--emerald-600); }
.hub-hero .byline { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
/* quick calc */
.quick-card { background: var(--navy-900); color: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow-pop); }
.quick-title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 0 0 16px; color: #fff; }
.quick-toggle { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.08); border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.quick-toggle label { position: relative; text-align: center; padding: 9px 6px; border-radius: 9px; font-weight: 700; font-size: 14.5px; cursor: pointer; color: var(--navy-100); }
.quick-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.quick-toggle label:has(input:checked) { background: #fff; color: var(--navy-900); }
.quick-toggle label:has(input:focus-visible) { outline: 2px solid var(--emerald-100); outline-offset: 2px; }
.quick-label { display: block; font-size: 14px; color: var(--navy-200); margin-bottom: 6px; }
.quick-input { display: flex; align-items: center; background: #fff; border-radius: 12px; padding: 0 14px; }
.quick-input input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 24px; font-weight: 800; color: var(--navy-900); padding: 10px 0; font-variant-numeric: tabular-nums; }
.quick-input input:focus { outline: none; }
.quick-input:focus-within { box-shadow: 0 0 0 4px rgba(14,124,102,.45); }
.quick-input span { font-weight: 700; color: var(--muted); }
.quick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.quick-chips button { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 5px 11px; font-size: 13.5px; font-weight: 700; cursor: pointer; min-height: 32px; }
.quick-chips button:hover { background: rgba(255,255,255,.2); }
.quick-out { margin-top: 14px; }
.quick-big { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.15); }
.quick-big span { color: var(--navy-200); font-weight: 600; }
.quick-big strong { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.1rem); color: #7fe0c4; font-variant-numeric: tabular-nums; }
.quick-dl { margin: 0; display: grid; gap: 6px; font-size: 14.5px; }
.quick-dl div { display: flex; justify-content: space-between; gap: 10px; }
.quick-dl dt { color: var(--navy-200); }
.quick-dl dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.quick-err { color: #ffd2cc; margin: 0; }
.quick-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: #7fe0c4; font-weight: 700; text-decoration: none; }
.quick-more:hover { text-decoration: underline; }
/* category nav */
.hub-cats { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; margin: 0 0 8px; background: var(--bg); scrollbar-width: thin; }
.hub-cats a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--navy-800); font-weight: 700; font-size: 14.5px; text-decoration: none; transition: all .15s; }
.hub-cats a:hover, .hub-cats a:focus-visible { border-color: var(--emerald-600); background: var(--emerald-50); color: var(--emerald-700); }
.hub-cats .ico { color: var(--emerald-600); }
.hub-sec { margin: 36px 0; scroll-margin-top: 72px; }
.hub-sec > h2 { color: var(--navy-800); font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); letter-spacing: -0.01em; margin: 0 0 16px; }
/* featured */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.feat { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.feat:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); border-color: var(--emerald-500); }
.feat > .ico { color: var(--line-strong); transition: color .15s, transform .15s; }
.feat:hover > .ico { color: var(--emerald-600); transform: translateX(3px); }
.feat-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--emerald-50), var(--blue-50)); color: var(--emerald-700); flex: none; }
.feat-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.feat-title { font-weight: 800; font-size: 17.5px; color: var(--navy-900); }
.feat-q { color: var(--muted); font-size: 15px; }
.feat-ex { font-size: 13.5px; font-weight: 700; color: var(--emerald-700); font-variant-numeric: tabular-nums; }
/* groups */
.grp-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.grp-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--navy-900); color: #fff; flex: none; }
.grp-head h2 { margin: 0; color: var(--navy-800); font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); letter-spacing: -0.01em; }
.grp-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.kc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.kc { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.kc:hover, .kc:focus-visible { border-color: var(--emerald-500); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.kc-top { display: flex; justify-content: space-between; align-items: center; }
.kc-top .ico { color: var(--line-strong); transition: color .15s, transform .15s; }
.kc:hover .kc-top .ico { color: var(--emerald-600); transform: translateX(3px); }
.kc-tag { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--emerald-700); background: var(--emerald-50); padding: 3px 8px; border-radius: 6px; }
.kc-tag--guide { color: var(--blue-600); background: var(--blue-50); }
.kc-title { font-weight: 800; font-size: 16.5px; color: var(--navy-900); line-height: 1.3; }
.kc-desc { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.amt-box { margin-top: 16px; padding: 18px; border-radius: var(--radius-lg); background: var(--navy-50); border: 1px solid var(--navy-100); }
.amt-box h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--navy-800); }
.amt-box h3 + .amt-chips + h3 { margin-top: 16px; }
.amt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.amt { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--navy-200); font-weight: 700; font-size: 14.5px; color: var(--navy-800); text-decoration: none; font-variant-numeric: tabular-nums; min-height: 36px; display: inline-flex; align-items: center; }
.amt:hover { border-color: var(--emerald-600); color: var(--emerald-700); background: var(--emerald-50); }
.hub2 [hidden] { display: none !important; }
/* stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.stat { display: grid; gap: 4px; padding: 18px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--emerald-500); text-decoration: none; color: var(--text); transition: box-shadow .15s; }
.stat:hover { box-shadow: var(--shadow-card); }
.stat-v { font-size: 1.6rem; font-weight: 800; color: var(--navy-900); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat-l { font-size: 14.5px; color: var(--muted); }
/* start */
.start-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.start { display: grid; gap: 8px; padding: 18px; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #fff; text-decoration: none; transition: transform .15s; }
.start:hover { transform: translateY(-2px); }
.start-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(127,224,196,.18); color: #7fe0c4; font-weight: 800; }
.start-q { font-weight: 700; font-size: 16.5px; line-height: 1.35; }
.start-a { display: inline-flex; align-items: center; gap: 6px; color: #7fe0c4; font-weight: 700; font-size: 14.5px; }
.hub-about { margin-top: 12px; }
@media (max-width: 899px) {
  .hub-hero { grid-template-columns: minmax(0,1fr); padding: 22px 18px; gap: 22px; border-radius: 18px; }
  .hub-hero .lead { font-size: 17.5px; }
}
@media (max-width: 480px) {
  .feat-grid, .kc-grid { grid-template-columns: 1fr; }
  .stat-grid, .start-grid { grid-template-columns: 1fr 1fr; }
  .stat-v { font-size: 1.25rem; }
  .quick-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .feat, .kc, .start, .feat > .ico, .kc-top .ico { transition: none; } }
.hub-hero-text, .quick-card { min-width: 0; }
@media (min-width: 900px) { .hub-cats { position: static; flex-wrap: wrap; overflow: visible; } }
.quick-card { scroll-margin-top: 16px; }
