﻿/* Blog Agencji Marketingowej Rybrysie - rybrysie.pl/blog/ (04.10.2026)
   Osobny plik, nie zmienia CSS strony głównej. Kolory i fonty jak na rybrysie.pl. */
:root {
  --bg: #f4efe8;
  --bg-deep: #ebe3d8;
  --surface: #fffcf6;
  --dark: #161a21;
  --text: #171b22;
  --muted: #5d6471;
  --faint: #8a8f99;
  --line: rgba(23, 27, 34, 0.1);
  --accent: #c16a3a;
  --accent-dark: #9d4f24;
  --accent-soft: rgba(193, 106, 58, 0.12);
  --accent-line: rgba(193, 106, 58, 0.3);
  --shadow-soft: 0 8px 30px rgba(16, 20, 28, 0.06);
  --shadow-strong: 0 16px 48px rgba(16, 20, 28, 0.12);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "DM Serif Display", serif; font-weight: 400; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(193, 106, 58, 0.35); outline-offset: 3px; }

/* === NAV (jak na podstronach rybrysie.pl) === */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 48px;
  background: rgba(244, 239, 232, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-logo img { height: 64px; width: auto; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--muted); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { font-weight: 600; }
.nav-links a.cta {
  background: var(--dark); color: #fff; padding: 10px 18px; border-radius: var(--radius-md); font-weight: 600;
}
.nav-links a.cta:hover { background: #262c36; }

/* === NAGŁÓWEK BLOGA === */
.blog-head { max-width: 1120px; margin: 0 auto; padding: 56px 24px 0; }
.kicker {
  display: inline-block; background: var(--accent-soft); color: var(--accent-dark);
  border: 1px solid var(--accent-line); border-radius: 100px; padding: 7px 16px;
  font-size: 13px; font-weight: 700;
}
.blog-head h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -1px; margin-top: 18px; max-width: 820px; }
.blog-head h1 em { color: var(--accent); }
.blog-lead { font-size: 18px; color: var(--muted); margin-top: 18px; max-width: 680px; }
.blog-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.blog-topics span {
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--muted);
}

/* === LISTA WPISÓW === */
.blog-list { max-width: 1120px; margin: 44px auto 0; padding: 0 24px; }
.blog-empty {
  background: var(--surface); border: 1px dashed var(--accent-line); border-radius: var(--radius-lg);
  padding: 36px 28px; text-align: center; font-family: "DM Serif Display", serif; font-size: 28px; color: var(--text);
}
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-grid:empty { display: none; }
/* Zabezpieczenie: gdyby publikator nie usunął pustego stanu, chowamy go, gdy jest już karta */
.blog-list:has(.post-card) .blog-empty { display: none; }
.blog-empty + .post-grid { margin-top: 0; }

.post-card {
  display: flex; flex-direction: column; min-width: 0;
  text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); border-color: var(--accent-line); }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-deep); }
.post-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-meta { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.post-meta b { color: var(--accent-dark); font-weight: 700; }
.post-body h2 { font-size: 24px; line-height: 1.2; margin-top: 10px; overflow-wrap: break-word; }
.post-body p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-top: 10px; }
.post-more { margin-top: auto; padding-top: 16px; font-weight: 700; font-size: 14px; color: var(--accent-dark); }

/* Najnowszy wpis (pierwszy w siatce) wyróżniony na całą szerokość */
.post-grid > .post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
.post-grid > .post-card:first-child { align-items: center; }
.post-grid > .post-card:first-child img { width: calc(100% - 20px); height: auto; margin: 20px 0 20px 20px; border-radius: 14px; }
.post-grid > .post-card:first-child .post-body { padding: 34px 36px; justify-content: center; }
.post-grid > .post-card:first-child h2 { font-size: 34px; line-height: 1.12; }
.post-grid > .post-card:first-child p { font-size: 16px; }
.post-grid > .post-card:first-child .post-more { margin-top: 0; padding-top: 20px; }

/* === ARTYKUŁ === */
.article-head { max-width: 728px; margin: 0 auto; padding: 44px 24px 0; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--accent-dark); }
.crumbs .rub { color: var(--accent-dark); font-weight: 700; }
.article-head h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.08; letter-spacing: -0.5px; margin-top: 18px; overflow-wrap: break-word; }
.article-head h1 em { color: var(--accent); }
.article-lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin-top: 20px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.byline .avatar {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: "DM Serif Display", serif; font-size: 18px;
}
.byline strong { color: var(--text); font-weight: 600; }
.hero-figure { max-width: 1000px; margin: 36px auto 0; padding: 0 24px; }
.hero-figure img { width: 100%; height: auto; border-radius: var(--radius-xl); aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-deep); border: 1px solid var(--line); }

.prose { max-width: 728px; /* ok. 68-72 znaków w linii przy Sora 18px */ margin: 0 auto; padding: 40px 24px 0; font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 32px; line-height: 1.18; margin-top: 48px; }
.prose h3 { font-size: 23px; line-height: 1.25; margin-top: 32px; }
.prose h2 + p, .prose h3 + p, .prose h2 + ul, .prose h2 + ol, .prose h3 + ul, .prose h3 + ol { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-top: 8px; padding-left: 4px; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose strong { font-weight: 700; color: var(--text); }
.prose a { color: var(--accent-dark); font-weight: 600; text-underline-offset: 3px; }
.prose code { font-size: 0.88em; background: var(--bg-deep); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

.note {
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--radius-md);
  padding: 18px 22px; font-size: 16px; color: var(--text);
}
.note strong { color: var(--accent-dark); }
.pull {
  padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  font-family: "DM Serif Display", serif; font-size: 26px; line-height: 1.3; color: var(--text);
}

/* Lista kroków z numerami */
.prose ol.steps { list-style: none; padding-left: 0; counter-reset: krok; }
.prose ol.steps > li { counter-increment: krok; position: relative; padding-left: 48px; margin-top: 16px; }
.prose ol.steps > li::before {
  content: counter(krok); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font: 700 14px "Sora", sans-serif;
}

/* Checklista */
.prose ul.checklist { list-style: none; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.prose ul.checklist > li { position: relative; padding-left: 36px; margin-top: 12px; }
.prose ul.checklist > li:first-child { margin-top: 0; }
.prose ul.checklist > li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px;
  border: 2px solid var(--accent); border-radius: 6px; background: #fff;
}

/* Tabela (cennik, liczby) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--bg-deep); }
.prose tr:last-child td { border-bottom: none; }
.prose td.num { white-space: nowrap; font-weight: 700; }

/* Porównanie: tak / nie */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare > div { border-radius: var(--radius-md); padding: 16px 18px; font-size: 16px; line-height: 1.55; }
.compare .bad { background: #f6e9e4; border: 1px solid rgba(157, 79, 36, 0.25); }
.compare .good { background: var(--surface); border: 1px solid var(--line); }
.compare b { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.compare .bad b { color: var(--accent-dark); }
.compare .good b { color: #3f6b4f; }

/* === CTA NA KOŃCU ARTYKUŁU === */
.cta-box {
  max-width: 728px; margin: 56px auto 0; padding: 36px; border-radius: var(--radius-xl);
  background: var(--dark); color: #fff; position: relative; overflow: hidden;
}
.cta-box::after {
  content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 106, 58, 0.4) 0%, transparent 70%); pointer-events: none;
}
.cta-box h2 { font-size: 32px; line-height: 1.15; position: relative; z-index: 1; }
.cta-box p { color: rgba(255, 255, 255, 0.78); margin-top: 12px; position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; position: relative; z-index: 1; }
.cta-actions a { padding: 14px 22px; border-radius: 14px; text-decoration: none; font-weight: 700; font-size: 15px; }
.cta-actions a.a1 { background: var(--accent); color: #fff; }
.cta-actions a.a1:hover { background: var(--accent-dark); }
.cta-actions a.a2 { border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; }
.cta-actions a.a2:hover { border-color: #fff; }

.back-blog { max-width: 728px; margin: 36px auto 0; padding: 20px 24px 0; border-top: 1px solid var(--line); font-size: 15px; }
.back-blog a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.back-blog a:hover { text-decoration: underline; }

/* === STOPKA === */
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 32px 24px; margin-top: 64px; border-top: 1px solid var(--line); }
.footer p + p { margin-top: 6px; }
.footer a { color: var(--muted); text-decoration: none; margin: 0 8px; }
.footer a:hover { color: var(--text); }

/* === BANER COOKIES (jak na podstronach) === */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 999; max-width: 720px; margin: 0 auto;
  background: var(--dark); color: #fff; border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3); font-size: 13.5px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { color: rgba(255, 255, 255, 0.75); margin: 6px 0 12px; }
.cookie-banner a { color: #fff; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-actions button { border: none; border-radius: 10px; padding: 10px 18px; font: 600 13px "Sora", sans-serif; cursor: pointer; }
.cookie-actions .acc { background: var(--accent); color: #fff; }
.cookie-actions .nec { background: transparent; color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.3); }

/* === RESPONSYWNOŚĆ === */
@media screen and (max-width: 980px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid > .post-card:first-child { grid-template-columns: 1fr; }
  .post-grid > .post-card:first-child img { width: 100%; margin: 0; border-radius: 0; }
}
@media screen and (max-width: 760px) {
  .nav { padding: 10px 16px; }
  .nav-logo img { height: 52px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.cta):not(.keep) { display: none; }
  .nav-links a.cta { padding: 9px 14px; font-size: 13px; }
  .blog-head { padding: 36px 16px 0; }
  .blog-lead { font-size: 16.5px; }
  .blog-list { padding: 0 16px; margin-top: 32px; }
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .post-grid > .post-card:first-child .post-body { padding: 22px 20px 24px; }
  .post-grid > .post-card:first-child h2, .post-body h2 { font-size: 24px; }
  .post-body { padding: 20px; }
  .blog-empty { font-size: 23px; padding: 28px 20px; }
  .article-head { padding: 28px 16px 0; }
  .article-lead { font-size: 17px; }
  .hero-figure { padding: 0 16px; margin-top: 26px; }
  .hero-figure img { border-radius: var(--radius-lg); }
  .prose { padding: 30px 16px 0; font-size: 17px; line-height: 1.7; }
  .prose h2 { font-size: 27px; margin-top: 40px; }
  .prose h3 { font-size: 21px; }
  .pull { font-size: 22px; }
  .compare { grid-template-columns: 1fr; }
  /* Tabele na telefonie: wiersze jako karty, bez przewijania w bok */
  .table-wrap { overflow-x: visible; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { display: none; }
  .prose tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .prose tr:last-child { border-bottom: none; }
  .prose td { padding: 2px 0; border-bottom: none; }
  .prose td:first-child { font-weight: 600; }
  .prose td + td { color: var(--muted); margin-top: 4px; }
  .prose td.num { color: var(--accent-dark); }
  .cta-box { margin: 44px 16px 0; padding: 28px 22px; }
  .cta-box h2 { font-size: 26px; }
  .cta-actions a { width: 100%; text-align: center; }
  .back-blog { padding: 18px 16px 0; }
  .footer { padding: 24px 16px; }
  .footer a { display: inline-block; margin: 4px 8px; }
}
@media print {
  .nav, .cta-box, .cookie-banner, .footer, .back-blog { display: none; }
}
