/* ==========================================================================
   BRANDGRAF – arkusz stylów katalogu SEO
   Autor: brandgraf.pl
   Plik samodzielny (bez zewnętrznych zasobów, fontów i skryptów)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Zmienne / paleta
   -------------------------------------------------------------------------- */
:root {
  --navy: #0d2745;
  --navy-700: #14375f;
  --navy-50: #f2f6fb;
  --red: #d1272d;
  --red-dark: #ab1f24;
  --ink: #1c2530;
  --muted: #5a6875;
  --line: #dde4ec;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 4px rgba(13, 39, 69, .06), 0 12px 28px rgba(13, 39, 69, .08);
  --shadow-sm: 0 1px 2px rgba(13, 39, 69, .06), 0 4px 12px rgba(13, 39, 69, .06);
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset i typografia bazowa
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(1.9rem, 1.35rem + 2.1vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem); margin-top: 2em; }
h3 { font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); margin-top: 1.6em; }
h4 { font-size: 1.05rem; margin-top: 1.4em; }

p { margin: 0 0 1.1em; }

a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--red); }

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

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .5em; }

strong { color: var(--navy); font-weight: 650; }

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

::selection { background: var(--navy); color: #fff; }

/* --------------------------------------------------------------------------
   3. Układ
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 62px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: 42px 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   4. Nagłówek i nawigacja (menu mobilne bez JS – checkbox)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logo:hover { color: var(--navy); }
.logo-mark {
  width: 30px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--white) 0 50%, var(--red) 50% 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.logo span { color: var(--red); }

.nav-toggle { display: none; }
.nav-label {
  display: none;
  cursor: pointer;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy);
  user-select: none;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 8px 11px;
  font-size: .935rem;
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
  border-radius: 7px;
  white-space: nowrap;
}
.nav a:hover { background: var(--navy-50); color: var(--navy); }
.nav a[aria-current="page"] {
  color: var(--red);
  background: #fdf1f1;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .nav-label { display: inline-block; }
  .nav {
    display: none;
    width: 100%;
    padding-bottom: 14px;
  }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 12px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle:checked ~ .nav { display: block; }
  .header-bar { flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1000px 420px at 88% -12%, rgba(209, 39, 45, .16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #071a30 100%);
  color: #e8eef6;
  padding: 74px 0 66px;
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero p { color: #c3d2e2; font-size: 1.09rem; max-width: 62ch; }
.hero .lead { font-size: 1.16rem; color: #dbe6f2; }
.hero--sub { padding: 56px 0 50px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #ff9ea1;
  margin-bottom: 14px;
}
.section .eyebrow { color: var(--red); }

/* --------------------------------------------------------------------------
   6. Okruszki (breadcrumbs)
   -------------------------------------------------------------------------- */
.breadcrumbs {
  font-size: .87rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg-soft);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: #9aa8b6; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); text-decoration: underline; }

/* --------------------------------------------------------------------------
   7. Przyciski
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 650;
  font-size: .97rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); color: var(--navy); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* --------------------------------------------------------------------------
   8. Siatki i karty
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card h3 { margin-top: 0; margin-bottom: .45em; font-size: 1.16rem; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: .9em; }
.card p:last-child { margin-bottom: 0; }

a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: #c3d2e2;
}
a.card:hover h3 { color: var(--red); }

.card-link {
  display: inline-block;
  margin-top: 4px;
  font-size: .9rem;
  font-weight: 650;
  color: var(--red);
}
.card-link::after { content: " →"; }

.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--navy-50);
  color: var(--navy);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   9. Treść artykułu
   -------------------------------------------------------------------------- */
.content { max-width: 860px; }
.content--wide { max-width: 100%; }

.lead-text {
  font-size: 1.13rem;
  color: #35424f;
  line-height: 1.72;
}

.checklist { list-style: none; padding-left: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: .65em;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.note {
  border-left: 4px solid var(--red);
  background: var(--bg-soft);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.8em 0;
}
.note p:last-child { margin-bottom: 0; }
.note strong { display: block; margin-bottom: .3em; }

/* --------------------------------------------------------------------------
   10. Tabele
   -------------------------------------------------------------------------- */
.table-scroll { overflow-x: auto; margin: 1.6em 0; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: .95rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
caption {
  caption-side: top;
  text-align: left;
  font-size: .88rem;
  color: var(--muted);
  padding-bottom: 8px;
}
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-weight: 650; font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--bg-soft); }

/* --------------------------------------------------------------------------
   11. FAQ
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item h3 { margin: 0 0 .4em; font-size: 1.08rem; }
.faq-item p { margin: 0; color: #3b4753; font-size: .98rem; }

/* --------------------------------------------------------------------------
   12. Pasek CTA
   -------------------------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 42px 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta h2 { color: #fff; margin: 0 0 .3em; }
.cta p { color: #c6d4e3; margin: 0; max-width: 58ch; }
.cta .btn-row { margin-top: 0; }

/* --------------------------------------------------------------------------
   13. Linkowanie wewnętrzne
   -------------------------------------------------------------------------- */
.related ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.related li { margin: 0; }
.related a {
  display: block;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
}
.related a:hover { border-color: var(--red); color: var(--red); }

/* --------------------------------------------------------------------------
   14. Stopka
   -------------------------------------------------------------------------- */
.site-footer {
  background: #071a30;
  color: #9fb2c6;
  padding: 54px 0 26px;
  font-size: .93rem;
  margin-top: 0;
}
.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 34px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: #9fb2c6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { color: #8399ae; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 38px;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .87rem;
  color: #7f94a9;
}

/* --------------------------------------------------------------------------
   15. Drobne
   -------------------------------------------------------------------------- */
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

@media print {
  .site-header, .site-footer, .cta, .btn-row { display: none; }
  body { font-size: 12pt; color: #000; }
}
