﻿/* Busko w sieci - blog MarketingBusko.pl */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
:root {
  --cream: #f7f3ed;
  --cream-deep: #efe9df;
  --sage: #7a9e8e;
  --sage-deep: #5b7d6d;
  --sage-light: rgba(122,158,142,0.1);
  --sage-border: rgba(122,158,142,0.25);
  --warm: #c4956a;
  --warm-light: rgba(196,149,106,0.12);
  --terra: #b3563d;
  --ink: #2c2c2c;
  --ink-soft: #6b6560;
  --ink-faint: #9e9790;
  --white: #fffcf8;
  --rule: rgba(44,44,44,0.14);
  --radius: 20px;
  --radius-sm: 12px;
}
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
h1, h2, h3, .serif { font-family: 'DM Serif Display', serif; font-weight: 400; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible + .check-box, label:focus-within {
  outline: 3px solid rgba(91,125,109,0.35); outline-offset: 3px;
}

/* === NAV (jak na stronie głównej) === */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 48px;
  background: rgba(247,243,237,0.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: 14px; text-decoration: none; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.nav-cta {
  background: var(--sage-deep); color: var(--white);
  padding: 10px 20px; border-radius: 10px; font-size: 13px; font-weight: 600;
}
.nav-links a.nav-cta:hover { background: #4d6e5e; }

/* === MASTHEAD (winieta gazety) === */
.masthead { max-width: 1080px; margin: 0 auto; padding: 56px 24px 0; text-align: center; }
.masthead-top, .masthead-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft); font-weight: 600;
}
.masthead-top { border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.masthead-title {
  font-family: 'DM Serif Display', serif; font-size: clamp(56px, 11vw, 124px);
  line-height: 0.95; letter-spacing: -2px; padding: 26px 0 18px;
}
.masthead-title em { color: var(--sage-deep); }
.masthead-bottom { border-top: 3px double var(--ink); border-bottom: 1px solid var(--rule); padding: 12px 0; }
.masthead-lead { max-width: 640px; margin: 28px auto 0; color: var(--ink-soft); font-size: 17px; }

/* === RUBRYKI === */
.rubrics { max-width: 1080px; margin: 36px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.rubric { background: var(--white); border: 1px solid var(--sage-border); border-radius: var(--radius-sm); padding: 16px 18px; }
.rubric strong { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--warm); }
.rubric span { font-size: 14px; color: var(--ink-soft); line-height: 1.5; display: block; margin-top: 4px; }

/* === LISTA WYDAŃ === */
.issues { max-width: 1080px; margin: 48px auto 0; padding: 0 24px 80px; display: grid; gap: 28px; }
.issue-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; text-decoration: none;
  background: var(--white); border: 1px solid rgba(0,0,0,0.06); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 18px 45px rgba(44,44,44,0.06);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.issue-card:hover { transform: translateY(-3px); box-shadow: 0 24px 55px rgba(44,44,44,0.10); }
.issue-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; background: var(--cream-deep); }
.issue-body { padding: 34px 36px; display: flex; flex-direction: column; justify-content: center; }
.issue-meta { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.issue-meta b { color: var(--warm); font-weight: 700; }
.issue-body h2 { font-size: 30px; line-height: 1.15; margin-top: 12px; }
.issue-body p { color: var(--ink-soft); margin-top: 12px; font-size: 15px; }
.issue-more { margin-top: 18px; color: var(--sage-deep); font-weight: 700; font-size: 14px; }

/* === ARTYKUŁ === */
.article-head { max-width: 760px; margin: 0 auto; padding: 56px 24px 0; }
.kicker {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-faint); font-weight: 600;
  border-top: 3px double var(--ink); border-bottom: 1px solid var(--rule); padding: 10px 0;
}
.kicker a { text-decoration: none; color: var(--ink); }
.kicker .rub { color: var(--warm); font-weight: 700; }
.article-head h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.08; letter-spacing: -1px; margin-top: 28px; }
.article-head h1 em { color: var(--sage-deep); }
.lead { font-size: 20px; line-height: 1.6; color: var(--ink-soft); margin-top: 22px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--ink-soft); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.byline strong { color: var(--ink); }
.hero-figure { max-width: 1000px; margin: 40px auto 0; padding: 0 24px; }
.hero-figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; background: var(--cream-deep); }

.prose { max-width: 700px; margin: 0 auto; padding: 40px 24px 0; font-size: 18px; }
.prose p { margin-top: 18px; }
.prose > p:first-child::first-letter {
  font-family: 'DM Serif Display', serif; float: left; font-size: 74px; line-height: 0.85;
  padding: 6px 12px 0 0; color: var(--sage-deep);
}
.prose h2 { font-size: 34px; line-height: 1.15; margin-top: 52px; }
.prose h3 { font-size: 24px; margin-top: 32px; }
.prose ul, .prose ol { margin: 16px 0 0 22px; }
.prose li { margin-top: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--sage-deep); font-weight: 600; }
.pull {
  margin: 36px 0 8px; padding: 6px 0 6px 24px; border-left: 3px solid var(--warm);
  font-family: 'DM Serif Display', serif; font-size: 27px; line-height: 1.3; color: var(--ink);
}
.note {
  margin-top: 26px; background: var(--sage-light); border: 1px solid var(--sage-border);
  border-radius: var(--radius-sm); padding: 18px 22px; font-size: 16px; color: var(--ink-soft);
}
.note strong { color: var(--sage-deep); }

/* === TEST (checklista) === */
.test { max-width: 760px; margin: 36px auto 0; padding: 0 24px; }
.test-group { margin-top: 30px; }
.test-group h3 {
  font-size: 13px; font-family: 'DM Sans', sans-serif; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--warm); margin-bottom: 12px;
}
.check {
  display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; cursor: pointer;
  background: var(--white); border: 1px solid rgba(0,0,0,0.07); border-radius: var(--radius-sm);
  padding: 18px 20px; margin-top: 10px; transition: border-color 160ms ease, background 160ms ease;
}
.check:hover { border-color: var(--sage-border); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box {
  width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--sage);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
  transition: background 160ms ease;
}
.check-box svg { opacity: 0; transition: opacity 160ms ease; }
.check input:checked + .check-box { background: var(--sage-deep); border-color: var(--sage-deep); }
.check input:checked + .check-box svg { opacity: 1; }
.check:has(input:checked) { background: #f2f6f3; border-color: var(--sage-border); }
.check-num { font-size: 12px; color: var(--ink-faint); font-weight: 700; letter-spacing: 1px; }
.check-title { font-weight: 700; font-size: 17px; line-height: 1.4; display: block; }
.check-why { display: block; color: var(--ink-soft); font-size: 15px; line-height: 1.6; margin-top: 6px; }

.score {
  margin-top: 34px; background: var(--ink); color: var(--white); border-radius: var(--radius);
  padding: 34px 36px; position: relative; overflow: hidden;
}
.score::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122,158,142,0.35) 0%, transparent 70%);
}
.score-top { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.score-num { font-family: 'DM Serif Display', serif; font-size: 84px; line-height: 1; }
.score-num small { font-size: 34px; color: rgba(255,252,248,0.5); }
.score-verdict { font-family: 'DM Serif Display', serif; font-size: 26px; line-height: 1.25; max-width: 420px; }
.score-bar { height: 8px; background: rgba(255,255,255,0.12); border-radius: 8px; margin-top: 22px; overflow: hidden; position: relative; z-index: 1; }
.score-bar span { display: block; height: 100%; width: 0; background: var(--sage); border-radius: 8px; transition: width 300ms ease, background 300ms ease; }
.score p { color: rgba(255,252,248,0.75); margin-top: 16px; font-size: 16px; position: relative; z-index: 1; }
.todo { margin-top: 18px; position: relative; z-index: 1; }
.todo h4 { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--warm); }
.todo ol { margin: 10px 0 0 20px; color: rgba(255,252,248,0.9); font-size: 15px; }
.todo li { margin-top: 6px; }
.score-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; position: relative; z-index: 1; }
.btn-ghost {
  background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.3);
  padding: 11px 18px; border-radius: 10px; font: 600 14px 'DM Sans', sans-serif; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--white); }

/* === KALKULATOR === */
.calc { max-width: 1080px; margin: 36px auto 0; padding: 0 24px; display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.calc-switch {
  grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--white); border: 1px solid var(--sage-border); border-radius: var(--radius-sm); padding: 14px 18px; font-size: 15px;
}
.calc-switch span { color: var(--ink-soft); margin-right: 6px; }
.calc-group { background: var(--white); border: 1px solid rgba(0,0,0,0.07); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 16px; }
.calc-group h3 { font-size: 23px; }
.calc-group > p { color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: block; cursor: pointer; border: 1px solid rgba(0,0,0,0.12); border-radius: 12px;
  padding: 10px 14px; font-size: 14px; line-height: 1.35; background: var(--cream); transition: all 160ms ease;
}
.opt span b { display: block; font-size: 15px; }
.opt span i { font-style: normal; color: var(--ink-soft); font-size: 13px; }
.opt input:checked + span { background: var(--sage-deep); border-color: var(--sage-deep); color: var(--white); }
.opt input:checked + span i { color: rgba(255,252,248,0.8); }
.opt input:focus-visible + span { outline: 3px solid rgba(91,125,109,0.35); outline-offset: 2px; }
.sum {
  position: sticky; top: 84px; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 28px;
}
.sum h3 { font-size: 24px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sum-row span { color: rgba(255,252,248,0.7); font-size: 14px; }
.sum-row strong { font-family: 'DM Serif Display', serif; font-size: 30px; font-weight: 400; white-space: nowrap; }
.sum small { display: block; color: rgba(255,252,248,0.6); font-size: 13px; line-height: 1.5; margin-top: 14px; }
.sum .btn-primary { width: 100%; margin-top: 18px; }

/* === PRZYKŁADY (tabela) === */
.sets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1080px; margin: 28px auto 0; padding: 0 24px; }
.set { background: var(--white); border: 1px solid rgba(0,0,0,0.07); border-radius: var(--radius); padding: 24px; }
.set h3 { font-size: 22px; line-height: 1.2; }
.set ul { list-style: none; margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.set li { padding: 6px 0; border-bottom: 1px dashed var(--rule); display: flex; justify-content: space-between; gap: 10px; }
.set li b { color: var(--ink); white-space: nowrap; }
.set .tot { margin-top: 12px; font-size: 14px; }
.set .tot strong { font-family: 'DM Serif Display', serif; font-size: 22px; font-weight: 400; color: var(--sage-deep); }

/* === CTA === */
.cta-box {
  max-width: 760px; margin: 56px auto 0; padding: 36px; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--sage-deep), #46665a); color: var(--white);
}
.cta-box h2 { font-size: 32px; line-height: 1.15; }
.cta-box p { color: rgba(255,252,248,0.85); margin-top: 12px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.btn-primary, .btn-light {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer;
  padding: 14px 24px; border-radius: var(--radius-sm); font: 600 15px 'DM Sans', sans-serif; border: none;
}
.btn-primary { background: var(--sage-deep); color: var(--white); }
.sum .btn-primary { background: var(--sage); }
.btn-light { background: var(--white); color: var(--sage-deep); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.45); }

/* === NASTĘPNE WYDANIE / STOPKA === */
.next-issue { max-width: 760px; margin: 48px auto 0; padding: 22px 24px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-soft); }
.next-issue a { color: var(--sage-deep); font-weight: 700; }
.footer { text-align: center; padding: 32px 48px; margin-top: 64px; color: var(--ink-faint); font-size: 13px; border-top: 1px solid rgba(0,0,0,0.05); }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer-logo { height: 24px; width: auto; opacity: 0.5; margin: 0 auto 12px; }
.footer-links { margin-top: 8px; }
.footer-links a + a { margin-left: 16px; }

@media screen and (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .sum { position: sticky; top: auto; bottom: 0; border-radius: var(--radius) var(--radius) 0 0; padding: 18px 20px; z-index: 50; }
  .sum h3, .sum small, .sum .btn-primary { display: none; }
  .sum-row { padding: 6px 0; }
  .sum-row strong { font-size: 22px; }
  .sets { grid-template-columns: 1fr; }
  .rubrics { grid-template-columns: repeat(2, 1fr); }
  .issue-card { grid-template-columns: 1fr; }
}
@media screen and (max-width: 760px) {
  .nav { padding: 12px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .masthead { padding-top: 36px; }
  .masthead-top span:nth-child(2), .masthead-bottom span:nth-child(2) { display: none; }
  .rubrics { grid-template-columns: 1fr; }
  .issue-body { padding: 24px; }
  .issue-body h2 { font-size: 25px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 28px; }
  .lead { font-size: 18px; }
  .score { padding: 26px 22px; }
  .score-num { font-size: 64px; }
  .cta-box { margin-left: 16px; margin-right: 16px; padding: 28px 22px; }
  .btn-primary, .btn-light { width: 100%; }
  .footer { padding: 24px 20px; }
}
@media print {
  .nav, .cta-box, .score-actions, .footer, .next-issue { display: none; }
}
