/* Blog Asystent AI — spójny wizualnie ze stroną sprzedażową marketing.html */
@import url('../fonts/fonts.css');

:root {
  color-scheme: light;
  --bg: #EAEAEA;
  --bg-warm: #E2E2E2;
  --bg-card: #FFFFFF;
  --bg-dark: #1A1714;
  --text: #1A1714;
  --text-muted: #625F5F;
  --accent: #E8621A;
  --accent-hover: #C24E12;
  --accent-light: rgba(232, 98, 26, 0.10);
  /* Warianty dostepnosciowe (WCAG AA) - audyt UI/UX 2026-08-04.
     --accent zostaje do ikon, ramek i wypelnien. */
  --accent-btn: #C24E12;
  --accent-btn-hover: #A33F0B;
  --accent-text: #A33F0B;
  --border: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.2; }
a { color: inherit; }

/* ---------- NAGŁÓWEK / NAWIGACJA (jak na stronie sprzedaży) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  background: rgba(234, 234, 234, 0.94);
  backdrop-filter: blur(16px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1144px, calc(100% - 56px));
  margin: 0 auto;
  height: 68px;
}
.brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.brand span { color: var(--accent-text); }
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.site-header nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s;
}
.site-header nav a:hover { color: var(--accent-text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  background: var(--accent-btn);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid var(--accent-btn);
  transition: all 0.18s;
}
.nav-cta:hover {
  background: var(--accent-btn-hover);
  border-color: var(--accent-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 98, 26, 0.3);
}

/* ---------- UKŁAD ---------- */
main {
  width: min(1144px, calc(100% - 56px));
  margin: 0 auto;
}

.hero {
  padding: 72px 0 44px;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero p:last-child {
  max-width: 740px;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 18px;
}

/* ---------- SIATKA ARTYKUŁÓW ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 40px 0 72px;
}
.card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 98, 26, 0.35);
}
.card p {
  margin: 0 0 12px;
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card h2 {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.25;
}
.card h2 a {
  text-decoration: none;
  transition: color 0.18s;
}
.card h2 a:hover { color: var(--accent-text); }
.card span { color: var(--text-muted); font-size: 15px; }

/* ---------- ARTYKUŁ ---------- */
.article-layout { width: min(820px, calc(100% - 56px)); }
.article { padding: 58px 0 76px; }
.article h1 { font-size: clamp(30px, 4.2vw, 46px); }
.meta {
  margin: 20px 0 26px;
  color: var(--text-muted);
  font-size: 15px;
}
.answer-box {
  margin: 28px 0 36px;
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
section { margin: 34px 0; }
main h2 {
  margin: 0 0 16px;
  font-size: 26px;
  line-height: 1.22;
}
ul { padding-left: 22px; }
li + li { margin-top: 8px; }

details {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
details:last-child { border-bottom: 1px solid var(--border); }
summary {
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
}

/* ---------- CTA W ARTYKULE ---------- */
.cta {
  padding: 32px;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.72); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  margin-top: 6px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--accent-btn);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent-btn);
  transition: all 0.18s;
}
.button:hover {
  background: var(--accent-btn-hover);
  border-color: var(--accent-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 98, 26, 0.3);
}

.author, .sources { color: var(--text-muted); font-size: 15px; }
.sources a { color: var(--accent-text); }

/* ---------- STOPKA POWROTNA ---------- */
.blog-back {
  border-top: 1px solid var(--border);
  background: var(--bg-warm);
}
.blog-back-inner {
  width: min(1144px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
  color: var(--text-muted);
}
.blog-back-inner a { color: var(--accent-text); font-weight: 600; text-decoration: none; }

/* ---------- RESPONSYWNOŚĆ ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-inner { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .site-header nav { justify-content: flex-start; gap: 18px; flex: 1 1 100%; order: 3; }
  .nav-cta { padding: 9px 16px; font-size: 14px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .card { min-height: auto; }
}

/* ---------- TABELA PORÓWNAWCZA ---------- */
.table-wrap {
  margin: 24px 0 32px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.article table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.article thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  background: var(--bg-dark);
  color: #fff;
}
.article tbody td {
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}
.article tbody tr:nth-child(even) td { background: rgba(0, 0, 0, 0.025); }
.article table.compare tbody td:first-child { border-left: 3px solid rgba(178, 40, 50, 0.5); }
.article table.compare tbody td:last-child { border-left: 3px solid rgba(34, 139, 84, 0.55); }

/* ---------- SPIS TREŚCI ---------- */
.toc {
  margin: 28px 0 40px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.toc-title {
  margin: 0 0 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.toc ul { margin: 0; padding-left: 20px; }
.toc li + li { margin-top: 8px; }
.toc a { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.toc a:hover { text-decoration: underline; }

/* kotwice nie chowają się pod przyklejonym nagłówkiem */
.article section[id] { scroll-margin-top: 84px; }

/* ---------- BOKS ZE STATYSTYKAMI ---------- */
.stat-box {
  margin: 28px 0 36px;
  padding: 22px 24px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-box strong { color: var(--accent-text); }

/* ---------- CYTAT / BLOCKQUOTE ---------- */
.article blockquote {
  margin: 20px 0;
  padding: 6px 18px;
  border-left: 3px solid var(--accent);
  background: transparent;
  font-size: 16px;
  font-style: normal;
  line-height: 1.6;
  color: var(--text-muted);
}
.article blockquote span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Widoczny focus klawiatury (audyt 2026-08-04) */
a:focus-visible { outline: 3px solid var(--accent-btn-hover); outline-offset: 3px; border-radius: 4px; }

/* Linki prawne w stopce bloga (audyt 2026-08-04) */
.blog-legal a { color: var(--text-muted); font-weight: 500; }
.blog-legal a:hover { color: var(--accent-text); }
