/* Kolory i fonty z żywej strony weles.biz (przez ~/WELES-oferty/_szablon/weles-oferta.css).
   Fonty hostowane lokalnie, żeby CSP nie musiało wpuszczać Google Fonts. */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/spacegrotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(/fonts/spacegrotesk-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --red-700: #920101;
  --red-600: #B31217;
  --red-50:  #FDF3F3;
  --ink-900: #16181A;
  --steel-600: #4A4F53;
  --steel-500: #7D7D7D;
  --steel-200: #DCDFE1;
  --paper: #F8F8F8;
  --white: #FFFFFF;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--paper);
  border-top: 6px solid var(--red-600);
}

a { color: var(--red-700); text-underline-offset: .18em; }

/* Wspólne dla wszystkich stron: nagłówek, kontener, przyciski w linii. */
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.site-top {
  width: 100%; max-width: 1040px; margin: 0 auto; padding: 18px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.site-name { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--ink-900); text-decoration: none; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--steel-600); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--red-700); }
.site-nav a[aria-current] { color: var(--ink-900); text-decoration: underline; text-decoration-color: var(--red-600); text-decoration-thickness: 2px; text-underline-offset: 6px; }
a:hover { color: var(--red-600); }
:focus-visible { outline: 3px solid var(--red-600); outline-offset: 3px; border-radius: 4px; }

/* Prosta strona z jednym blokiem tekstu (404). */
.card { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 40px 16px; }

/* Chipy jak .cat-chip na weles.biz: kropka w kolorze kategorii, lekko zabarwione tło, promień 3 px.
   Kolor przez klasę (CSP blokuje style="--c:..."). */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.chip {
  --c: var(--steel-600);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: 3px;
  font-size: .75rem; font-weight: 600; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 22%, #fff);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); flex-shrink: 0; }
.chip-seo  { --c: #920101; }
.chip-ai   { --c: #1F5E58; }
.chip-ads  { --c: #2F4A7A; }
.chip-data { --c: #5B2E4A; }
.chip-dev  { --c: #4A4F53; }
.chip-content { --c: #7A4A00; }
h1 {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.lead {
  margin: 12px 0 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.2rem; line-height: 1.35;
  color: var(--steel-600);
}
.lead a { color: inherit; }
.btn {
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 20px;
  min-height: 48px;
  text-decoration: none;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: 10px;
  transition: border-color .15s, transform .15s;
}
.btn:hover { color: var(--ink-900); border-color: var(--red-600); transform: translateY(-1px); }
.btn-label { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; font-size: 1.125rem; }
.btn-label::after { content: " →"; color: var(--red-600); }
.btn-sub { font-size: .875rem; color: var(--steel-600); }

.btn-primary { background: var(--red-700); border-color: var(--red-700); color: var(--white); }
.btn-primary:hover { background: var(--red-600); border-color: var(--red-600); color: var(--white); }
.btn-primary .btn-label::after { color: var(--white); }
.btn-primary .btn-sub { color: var(--red-50); }
.btn-inline { display: inline-flex; padding: 12px 20px; }

.foot {
  padding: 20px 16px 28px;
  text-align: center;
  font-size: .875rem;
  color: var(--steel-600);
}
.foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
