/* ============================================================
   LEX & STRATEGY — style.css
   Paleta: navy #0E1622 / panel #111B29 / złoto #C9A158 / jasne złoto #D9B36C
   Display: Cormorant Garamond | Body: Inter
   ============================================================ */
:root {
  --navy: #0E1622;
  --navy-2: #111B29;
  --navy-3: #16233A;
  --line: rgba(201, 161, 88, 0.25);
  --hairline: rgba(255, 255, 255, 0.08);
  --gold: #C9A158;
  --gold-light: #D9B36C;
  --gold-dim: #A8854A;
  --white: #F5F2EC;
  --muted: #9AA3B2;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }
.container.narrow { max-width: 780px; }
.arr { font-family: var(--font-body); margin-left: 8px; transition: transform .25s ease; display: inline-block; }
a:hover .arr, button:hover .arr { transform: translateX(4px); }

/* ---------- Typografia ---------- */
.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.page-title, .article-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  line-height: 1.08;
}
.lead { color: var(--muted); font-size: 17px; max-width: 560px; }
.lead.center, .post-card-meta.center { margin-left: auto; margin-right: auto; text-align: center; justify-content: center; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .15s;
  background: none;
}
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-gold { background: var(--gold); color: #16110A; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: #16110A; }
.btn-gold .arr { color: #16110A; }
.btn-outline { border-color: rgba(245, 242, 236, 0.4); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 22, 34, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: 36px; height: 88px; }
.brand { display: flex; flex-direction: row; align-items: center; gap: 14px; margin-right: auto; }
.brand-mark { width: 46px; height: 46px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
}
.brand-name small { font-size: 0.74em; letter-spacing: 0.08em; }
.brand-tag { color: var(--gold); font-size: 10px; font-weight: 600; letter-spacing: 0.3em; }
.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.16em; color: var(--white);
  position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .25s ease;
}
.main-nav a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero-grid { display: grid; grid-template-columns: minmax(440px, 46%) 1fr; min-height: 640px; }
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 56px 80px 40px;
  position: relative; z-index: 2;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 600;
  line-height: 1.06;
  margin-bottom: 28px;
  text-wrap: balance;
}
.hero-sub { color: var(--muted); font-size: 17px; max-width: 460px; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 18px; flex-wrap: wrap; }

.hero-media { position: relative; min-height: 420px; }
.hero-media .hero-img-wrap {
  position: absolute; inset: 0;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(155deg, #1B2840 0%, #0C131E 55%, #060A10 100%);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.94; }
.hero-diagonal {
  position: absolute; top: -6%; bottom: -6%; left: 13%; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 18%, var(--gold) 82%, transparent);
  transform: skewX(-9.5deg); transform-origin: top;
  z-index: 3;
}
/* fallback gdy brak hero.jpg */
.hero-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: var(--font-display); font-size: 56px; letter-spacing: 0.08em; opacity: 0.35;
}

/* sekwencja wejścia hero */
.hero-copy > * { opacity: 0; transform: translateY(18px); animation: heroIn .7s ease forwards; }
.hero-copy > *:nth-child(1) { animation-delay: .05s; }
.hero-copy > *:nth-child(2) { animation-delay: .15s; }
.hero-copy > *:nth-child(3) { animation-delay: .28s; }
.hero-copy > *:nth-child(4) { animation-delay: .4s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ---------- Pas filarów ---------- */
.pillars { background: var(--navy-2); border-top: 1px solid var(--hairline); }
.pillars-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.pillar {
  padding: 56px 28px 60px;
  border-left: 1px solid var(--hairline);
  transition: background .3s ease;
}
.pillar:first-child { border-left: none; }
.pillar:hover { background: rgba(201, 161, 88, 0.05); }
.pillar svg { width: 42px; height: 42px; stroke: var(--gold); fill: none; stroke-width: 1.4; margin-bottom: 22px; }
.pillar h3 { font-size: 14px; font-weight: 600; letter-spacing: 0.2em; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------- Sekcje strony głównej ---------- */
.section { padding: 110px 0; }
.section-head { margin-bottom: 56px; }
.section-title { font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 46px); font-weight: 600; line-height: 1.1; }
.section-alt { background: var(--navy-2); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* Najnowsze wpisy / siatka bloga */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-bottom: 110px; }
.home-posts .post-grid { padding-bottom: 0; }
.post-card { background: var(--navy-2); border: 1px solid var(--hairline); transition: border-color .3s, transform .3s; }
.post-card:hover { border-color: var(--line); transform: translateY(-4px); }
.post-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-3); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 40px; color: var(--gold); opacity: .4; letter-spacing: .1em; }
.post-card-body { padding: 26px 26px 30px; }
.post-card-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.post-cat { color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; }
.post-date { color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }
.post-card-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.2; margin-bottom: 12px; }
.post-card-excerpt { color: var(--muted); font-size: 14px; margin-bottom: 20px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-more { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; }
.empty-state { color: var(--muted); grid-column: 1 / -1; padding: 40px 0; }

/* O mnie / Współpraca */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.two-col p { color: var(--muted); margin-bottom: 18px; }
.gold-rule { width: 64px; height: 1px; background: var(--gold); margin: 28px 0; }
.check-list { list-style: none; }
.check-list li { color: var(--muted); padding: 12px 0 12px 30px; position: relative; border-bottom: 1px solid var(--hairline); }
.check-list li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }

/* Newsletter */
.newsletter-box { max-width: 680px; margin: 0 auto; text-align: center; }
.newsletter-form { display: flex; gap: 14px; margin-top: 34px; }
.newsletter-form input {
  flex: 1; background: var(--navy); border: 1px solid var(--hairline); color: var(--white);
  padding: 14px 18px; font-family: var(--font-body); font-size: 15px;
}
.newsletter-form input:focus { outline: none; border-color: var(--gold); }
.form-msg { margin-top: 16px; font-size: 14px; color: var(--gold-light); min-height: 20px; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.contact-card { border: 1px solid var(--hairline); padding: 36px 30px; }
.contact-card h3 { font-size: 13px; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 14px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: 15px; }
.contact-card a:hover { color: var(--gold-light); }

/* ---------- Blog ---------- */
.blog-hero { padding: 90px 0 60px; }
.blog-hero .page-title { font-size: clamp(40px, 5vw, 60px); margin-bottom: 18px; }
.cat-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.cat-pill {
  border: 1px solid var(--hairline); color: var(--muted);
  padding: 9px 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em;
  transition: all .25s;
}
.cat-pill:hover { border-color: var(--gold); color: var(--gold-light); }
.cat-pill.active { background: var(--gold); border-color: var(--gold); color: #16110A; }

/* Artykuł */
.article-header { padding: 90px 0 50px; text-align: center; }
.article-title { font-size: clamp(36px, 4.4vw, 56px); margin: 24px auto 22px; max-width: 900px; }
.article-author { color: var(--gold); font-size: 13px; letter-spacing: 0.18em; margin-top: 18px; text-transform: uppercase; }
.article-cover { margin-top: 56px; }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; border: 1px solid var(--hairline); }
.article-content { padding: 0; font-size: 17.5px; line-height: 1.85; color: #D7DAE0; }
.article-content h2, .article-content h3 {
  font-family: var(--font-display); color: var(--white); line-height: 1.2;
  margin: 48px 0 18px; font-weight: 600;
}
.article-content h2 { font-size: 32px; } .article-content h3 { font-size: 25px; }
.article-content p { margin-bottom: 22px; }
.article-content a:not(.btn) { color: var(--gold-light); border-bottom: 1px solid var(--line); }
.article-content ul, .article-content ol { margin: 0 0 22px 24px; }
.article-content li { margin-bottom: 10px; }
.article-content blockquote {
  border-left: 2px solid var(--gold); padding: 8px 0 8px 28px; margin: 34px 0;
  font-family: var(--font-display); font-size: 23px; font-style: italic; color: var(--white);
}
.article-content img { margin: 34px auto; border: 1px solid var(--hairline); }
.article-content pre { background: var(--navy-2); border: 1px solid var(--hairline); padding: 20px; overflow-x: auto; margin-bottom: 22px; font-size: 14px; }
.article-footer { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 90px; }
.related { background: var(--navy-2); border-top: 1px solid var(--hairline); padding: 70px 0 90px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 30px; }
.related-card { border: 1px solid var(--hairline); padding: 30px; transition: border-color .3s; display: flex; flex-direction: column; gap: 14px; }
.related-card:hover { border-color: var(--line); }
.related-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.25; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); background: var(--navy-2); margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding: 56px 40px 30px; flex-wrap: wrap; }
.footer-desc { color: var(--muted); font-size: 14px; max-width: 360px; margin-top: 12px; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { padding: 22px 40px 34px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--hairline); }

/* ---------- Animacje scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-copy > * { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 1100px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .pillar { border-top: 1px solid var(--hairline); }
  .post-grid, .related-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .container { padding: 0 22px; }
  .header-inner { gap: 18px; }
  .main-nav {
    display: none; position: absolute; top: 88px; left: 0; right: 0;
    background: var(--navy-2); flex-direction: column; padding: 20px 22px; gap: 18px;
    border-bottom: 1px solid var(--hairline);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner > .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 64px 22px 40px; }
  .hero-media { min-height: 320px; }
  .hero-media .hero-img-wrap { clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  .hero-diagonal { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 44px; }
  .section { padding: 70px 0; }
  .newsletter-form { flex-direction: column; }
  .article-content { padding: 0; }
}
@media (max-width: 560px) {
  .pillars-grid, .post-grid, .related-grid, .contact-grid { grid-template-columns: 1fr; }
  .pillar { border-left: none; }
}

/* focus dla klawiatury */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}

/* ---------- Baner cookie (RODO) ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 300;
  max-width: 940px; margin: 0 auto;
  background: var(--navy-2); border: 1px solid var(--line);
  padding: 24px 28px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  transform: translateY(140%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.cookie-banner.show { transform: none; }
.cookie-text { flex: 1; min-width: 260px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.cookie-text strong { color: var(--white); font-weight: 600; }
.cookie-text a { color: var(--gold-light); border-bottom: 1px solid var(--line); }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 11px 20px; }
@media (max-width: 600px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 20px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Strona prawna (polityka prywatności) ---------- */
.legal-main { padding: 80px 0 100px; }
.legal-main .page-title { font-size: clamp(34px, 4vw, 52px); margin-bottom: 10px; }
.legal-content { font-size: 16.5px; line-height: 1.8; color: #D7DAE0; margin-top: 40px; }
.legal-content h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--white); margin: 44px 0 16px; }
.legal-content h3 { font-size: 18px; font-weight: 600; color: var(--white); margin: 28px 0 10px; letter-spacing: .01em; }
.legal-content p { margin-bottom: 18px; }
.legal-content ul { margin: 0 0 20px 22px; } .legal-content li { margin-bottom: 8px; }
.legal-content a:not(.btn) { color: var(--gold-light); border-bottom: 1px solid var(--line); }
.legal-updated { color: var(--gold); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }

/* ========== Ikony liniowe (SSR) ========== */
.ico-line { width: 40px; height: 40px; color: var(--gold); }

/* ========== Strona O MNIE ========== */
.about-hero { display: grid; grid-template-columns: 42% 1fr; min-height: 560px; border-bottom: 1px solid var(--hairline); }
.about-hero-media { position: relative; background: linear-gradient(160deg,#1B2840,#0C131E); overflow: hidden; }
.about-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 64px; color: var(--gold); opacity: .35; letter-spacing: .1em; }
.about-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 80px 56px; }
.eyebrow-rule { display: inline-block; width: 40px; height: 1px; background: var(--gold); vertical-align: middle; margin-left: 10px; }
.about-title { font-family: var(--font-display); font-size: clamp(40px,4.6vw,62px); font-weight: 600; line-height: 1.05; }
.about-title .gold { color: var(--gold-light); }
.about-intro { color: var(--muted); font-size: 16.5px; line-height: 1.8; max-width: 560px; margin-bottom: 28px; }
.about-quote { font-family: var(--font-display); font-size: clamp(22px,2.6vw,27px); font-style: italic; color: var(--white); line-height: 1.4; border-left: 2px solid var(--gold); padding-left: 22px; }
.about-quote.box { border: 1px solid var(--hairline); border-left: 2px solid var(--gold); padding: 26px 28px; margin-top: 26px; font-size: 21px; }

.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin: 0 auto; }
.about-stat { background: var(--navy); display: flex; gap: 20px; padding: 40px 32px; align-items: flex-start; }
.about-stat-ico .ico-line { width: 44px; height: 44px; }
.about-stat-val { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--white); line-height: 1.1; }
.about-stat-lbl { color: var(--gold); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 4px 0 10px; }
.about-stat-sub { color: var(--muted); font-size: 14px; line-height: 1.6; }

.about-section { padding: 90px 0; }
.timeline { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 40px; position: relative; }
.timeline::before { content:''; position:absolute; top: 21px; left: 6%; right: 6%; height: 1px; background: var(--line); }
.tl-node { position: relative; }
.tl-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: var(--navy); border: 1px solid var(--line); border-radius: 50%; position: relative; z-index: 1; }
.tl-ico .ico-line { width: 24px; height: 24px; }
.tl-period { font-family: var(--font-display); font-size: 20px; color: var(--white); margin: 20px 0 4px; }
.tl-title { font-size: 14px; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.tl-text { color: var(--muted); font-size: 14px; line-height: 1.65; }

.about-bottom { gap: 70px; }
.drives { display: flex; flex-direction: column; gap: 26px; margin-top: 28px; }
.drive { display: flex; gap: 18px; align-items: flex-start; }
.drive-ico .ico-line { width: 34px; height: 34px; }
.drive h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.drive p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.why { margin-top: 28px; }
.why p { color: var(--muted); margin-bottom: 16px; line-height: 1.8; }

/* ========== Blog z paskiem bocznym ========== */
.blog-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; padding-bottom: 100px; }
.blog-grid { grid-template-columns: repeat(2,1fr); padding-bottom: 0; }
.blog-side { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 108px; }
.side-box { border: 1px solid var(--hairline); background: var(--navy-2); padding: 28px 24px; }
.side-ico { width: 38px; height: 38px; color: var(--gold); display: block; margin: 0 auto 14px; }
.side-nl-text { color: var(--muted); font-size: 13.5px; text-align: center; margin-bottom: 16px; line-height: 1.6; }
.side-nl-form { display: flex; flex-direction: column; gap: 10px; }
.side-nl-form input { background: var(--navy); border: 1px solid var(--hairline); color: var(--white); padding: 11px 14px; font-size: 14px; }
.side-nl-form input:focus { outline: none; border-color: var(--gold); }
.side-nl-form .btn { justify-content: center; }
.topics { display: flex; flex-direction: column; margin: 6px 0 14px; }
.topic-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--hairline); transition: .2s; }
.topic-row:last-child { border-bottom: none; }
.topic-row:hover .topic-name { color: var(--gold-light); }
.topic-name { font-size: 14px; font-weight: 500; letter-spacing: .06em; }
.topic-count { font-size: 12px; color: var(--muted); }
.topics-all { display: inline-block; color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: .16em; }
.mono-box { text-align: center; }
.mono { width: 150px; margin: 4px auto 18px; }
.mono svg { width: 100%; height: auto; }
.mono-title { font-family: var(--font-display); font-size: 17px; letter-spacing: .14em; color: var(--white); line-height: 1.5; }
.mono-text { color: var(--muted); font-size: 13px; line-height: 1.7; }

@media (max-width: 1024px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .blog-side .side-box { flex: 1; min-width: 240px; }
}
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-media { min-height: 320px; }
  .about-hero-copy { padding: 56px 22px; }
  .about-stats { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 30px; }
  .timeline::before { display: none; }
  .about-bottom { gap: 44px; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* znak logo w stopce */
.footer-brand { display: inline-block; }
.footer-mark { width: 34px; height: 34px; vertical-align: middle; margin-right: 11px; position: relative; top: -2px; }
@media (max-width: 560px) { .brand-mark { width: 38px; height: 38px; } }

/* Artykuł: szeroki kontener treści (bloki-infografiki), proza i tak wąska wewnątrz */
.article-wrap { padding-top: 64px; padding-bottom: 0; }
.article-wrap .ls-article { max-width: 1060px; margin: 0 auto; }
@media (max-width: 1120px) { .article-wrap .ls-article { max-width: 100%; } }

/* ===== Modal kontaktowy ===== */
.ls-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(6,10,16,.78); padding: 20px; opacity: 0; visibility: hidden; transition: opacity .25s; backdrop-filter: blur(3px); }
.ls-modal.open { opacity: 1; visibility: visible; }
.ls-modal-box { background: var(--navy-2); border: 1px solid var(--gold); max-width: 480px; width: 100%;
  padding: 36px 34px; position: relative; transform: translateY(12px); transition: transform .25s; max-height: 92vh; overflow-y: auto; }
.ls-modal.open .ls-modal-box { transform: none; }
.ls-modal-x { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted);
  font-size: 28px; line-height: 1; cursor: pointer; padding: 4px 8px; transition: color .2s; }
.ls-modal-x:hover { color: var(--gold-light); }
.ls-modal-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--white); margin: 4px 0 22px; }
.ls-modal-fields { display: flex; flex-direction: column; gap: 12px; }
.ls-modal-fields input, .ls-modal-fields textarea { width: 100%; background: var(--navy); border: 1px solid var(--hairline);
  color: var(--white); padding: 13px 15px; font-family: var(--font-body); font-size: 15px; }
.ls-modal-fields input:focus, .ls-modal-fields textarea:focus { outline: none; border-color: var(--gold); }
.ls-modal-fields textarea { resize: vertical; }
.ls-modal-fields .btn { justify-content: center; margin-top: 4px; }
.ls-modal-msg { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; min-height: 18px; }
.ls-modal-msg.ok { color: #6FCF97; } .ls-modal-msg.err { color: #E08A8A; }
.ls-modal-alt { font-size: 13px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.ls-modal-alt a { color: var(--gold-light); }
