/* ============================================================
   CAT-SEO — sekcja treści SEO pod listą produktów
   Redesign: premium editorial layout z elementami wizualnymi
   ============================================================ */

/* ── Wrapper sekcji ─────────────────────────────────────────── */
.cat-seo {
  background:
    linear-gradient(180deg, #fff 0%, #f6f6f2 100%);
  border-top: 1px solid var(--line);
  padding: 88px 0 104px;
  position: relative;
  overflow: hidden;
}
.cat-seo::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: min(42vw, 560px);
  height: 100%;
  background:
    linear-gradient(135deg, transparent 0%, rgba(10,21,58,0.035) 100%);
  pointer-events: none;
}

/* ── Nagłówek sekcji ────────────────────────────────────────── */
.cat-seo-head {
  max-width: 980px;
  margin: 0 auto 54px;
  text-align: left;
  position: relative;
}
.cat-seo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  padding: 7px 12px;
  background: #fff;
  border-radius: 3px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(20,21,28,0.05);
}
.cat-seo-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}
.cat-seo-h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  color: var(--navy);
  line-height: .96;
  margin-bottom: 22px;
  letter-spacing: 0;
  text-transform: uppercase;
  max-width: 880px;
}
.cat-seo-h2 .y {
  color: var(--black);
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
  padding: 0 .08em;
}
.cat-seo-intro {
  max-width: 860px;
  margin: 0;
  padding-left: 22px;
  border-left: 4px solid var(--red);
  color: #31333d;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.75;
}

/* ── Divider dekoracyjny ────────────────────────────────────── */
.cat-seo-head::after {
  display: none;
}

/* ── Layout body: 2 kolumny ────────────────────────────────── */
.cat-seo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
  margin-bottom: 64px;
}

/* ── Tekst główny ───────────────────────────────────────────── */
.cat-seo-text {
  display: grid;
  gap: 18px;
}
.cat-seo-section {
  position: relative;
  min-height: 178px;
  padding: 30px 34px 30px 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(20,21,28,0.055);
}
.cat-seo-section::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--red), var(--yellow));
}
.cat-seo-section-no {
  position: absolute;
  top: 30px;
  left: 28px;
  color: rgba(10,21,58,0.18);
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}
.cat-seo-text h3 {
  font-family: var(--serif);
  max-width: 760px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  color: var(--black);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.cat-seo-text p {
  max-width: 820px;
  margin: 0;
  color: #3a3b45;
  font-size: 16px;
  line-height: 1.86;
}
.cat-seo-text p:last-child { margin-bottom: 0; }
.cat-seo-text strong {
  color: var(--navy);
  font-weight: 700;
}

/* Pull quote (opcjonalny element) */
.cat-seo-pullquote {
  background: linear-gradient(135deg, var(--navy) 0%, #1e2d50 100%);
  color: white;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
  font-size: 17px;
  font-style: italic;
  line-height: 1.65;
  position: relative;
}
.cat-seo-pullquote::before {
  content: '"';
  position: absolute;
  top: 8px;
  left: 20px;
  font-size: 64px;
  font-family: var(--serif);
  color: var(--red);
  line-height: 1;
  opacity: 0.6;
}

/* ── Aside — box z CTA ──────────────────────────────────────── */
.cat-seo-aside {
  position: sticky;
  top: 92px;
}
.cat-seo-box {
  position: relative;
  overflow: hidden;
  padding: 30px 28px;
  background: #17191f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(20,21,28,0.2);
  color: #fff;
}
.cat-seo-box::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--yellow), var(--red));
}
.cat-seo-box-label {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cat-seo-box h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.3;
}
.cat-seo-box ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cat-seo-box ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  padding: 10px 14px;
  background: rgba(255,255,255,0.075);
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.1);
}
.cat-seo-box ul li::before {
  content: '✓';
  color: white;
  background: var(--red);
  font-weight: 800;
  font-size: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.cat-seo-box .btn {
  width: 100%;
  justify-content: center;
  display: flex;
  margin-bottom: 10px;
}
.cat-seo-box .btn + .btn {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.28);
}
.cat-seo-box .btn + .btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.cat-seo-box-note {
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}
.cat-seo-box-note strong {
  color: #fff;
}
.cat-seo-contact-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  overflow: hidden;
}
.cat-seo-contact-strip span {
  display: block;
  padding: 13px 10px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}
.cat-seo-contact-strip strong {
  display: block;
  color: var(--yellow);
  font-family: var(--serif);
  font-size: 24px;
  line-height: .95;
  margin-bottom: 4px;
}

/* Separator w boxie */
.cat-seo-box-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

/* Trust-badges pod CTA */
.cat-seo-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.cat-seo-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--steel);
}
.cat-seo-trust-item svg {
  color: var(--red);
  flex-shrink: 0;
}

/* ── Benefits grid ──────────────────────────────────────────── */
.cat-seo-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.cat-seo-benefit {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px 24px;
  transition: box-shadow 0.22s, transform 0.22s;
  position: relative;
  overflow: hidden;
}
.cat-seo-benefit::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  opacity: 0;
  transition: opacity 0.22s;
}
.cat-seo-benefit:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}
.cat-seo-benefit:hover::before { opacity: 1; }
.csb-ico {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--red) 0%, #c41e2e 100%);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: white;
  box-shadow: 0 4px 12px rgba(230,57,70,0.3);
}
.cat-seo-benefit h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  border: none;
  padding: 0;
}
.cat-seo-benefit p {
  font-size: 14px;
  color: var(--steel);
  line-height: 1.7;
  margin: 0;
}

/* ── Stats row ──────────────────────────────────────────────── */
.cat-seo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--navy);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 56px;
}
.cat-seo-stat {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.cat-seo-stat:last-child { border-right: none; }
.cat-seo-stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}
.cat-seo-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.cat-seo-faq {
  margin-top: 8px;
}
.cat-seo-faq-head {
  text-align: center;
  margin-bottom: 36px;
}
.cat-seo-faq-head h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 800;
  color: var(--navy);
  border: none;
  padding: 0;
  margin: 0;
}
.cat-seo-faq-head h3::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  margin: 14px auto 0;
}
.cat-seo-qa {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  background: white;
  overflow: hidden;
  transition: box-shadow 0.18s;
}
.cat-seo-qa:hover {
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.cat-seo-qa[open] {
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.cat-seo-qa summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  user-select: none;
  transition: background 0.15s;
}
.cat-seo-qa summary::-webkit-details-marker { display: none; }
.cat-seo-qa summary:hover { background: rgba(230,57,70,0.03); }
.cat-seo-qa summary::after {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--bone);
  border: 1px solid var(--line);
  border-radius: 50%;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230a153a' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.22s, background-color 0.18s;
}
.cat-seo-qa[open] summary::after {
  transform: rotate(180deg);
  background-color: var(--red);
  border-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.cat-seo-qa[open] summary {
  background: rgba(230,57,70,0.04);
  border-bottom: 1px solid var(--line);
}
.cat-seo-qa-body {
  padding: 20px 24px 24px;
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.85;
}
.cat-seo-qa-body p { margin-bottom: 12px; }
.cat-seo-qa-body p:last-child { margin-bottom: 0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cat-seo-body {
    grid-template-columns: 1fr 320px;
    gap: 24px;
  }
  .cat-seo-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-seo-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-seo-stat { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .cat-seo-stat:nth-child(even) { border-right: none; }
  .cat-seo-stat:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 860px) {
  .cat-seo-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cat-seo-aside { position: static; }
  .cat-seo { padding: 56px 0 64px; }
  .cat-seo-head { margin-bottom: 44px; }
}
@media (max-width: 600px) {
  .cat-seo { padding: 44px 0 52px; }
  .cat-seo-head { margin-bottom: 36px; }
  .cat-seo-head { text-align: left; }
  .cat-seo-intro {
    padding-left: 16px;
    font-size: 16px;
  }
  .cat-seo-section {
    min-height: 0;
    padding: 24px 20px 24px 66px;
  }
  .cat-seo-section-no {
    top: 25px;
    left: 18px;
    font-size: 28px;
  }
  .cat-seo-text h3 {
    font-size: 22px;
  }
  .cat-seo-text p {
    font-size: 15px;
    line-height: 1.78;
  }
  .cat-seo-benefits { grid-template-columns: 1fr; gap: 14px; }
  .cat-seo-benefit { padding: 22px 18px; }
  .cat-seo-box { padding: 24px 20px; }
  .cat-seo-stats { grid-template-columns: repeat(2, 1fr); }
  .cat-seo-faq-head h3 { font-size: 24px; }
  .cat-seo-qa summary { padding: 16px 18px; font-size: 14px; }
  .cat-seo-qa-body { padding: 16px 18px 20px; }
}
