/* FSD – blog, wpisy i sekcje z bloków edytora (wersja 1.2). Wczytywane na stronie i w edytorze. */

.fsd-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fsd-magenta, #be316c); }
.fsd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #4a6480; margin: 0 0 22px; }
.fsd-crumbs a { color: #4a6480; }
.fsd-crumbs span:last-child { color: #073963; font-weight: 500; }

/* ---------- Lista wpisów ---------- */
.fsd-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.fsd-chip { padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid rgba(7,57,99,0.14); font-size: 14px; font-weight: 500; color: #073963; transition: background 180ms, color 180ms, border-color 180ms; }
.fsd-chip:hover { border-color: #be316c; color: #be316c; }
.fsd-chip.is-active { background: #073963; border-color: #073963; color: #fff; }

.fsd-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.fsd-post-card { display: flex; flex-direction: column; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 6px 24px rgba(7,57,99,0.08); transition: transform 220ms, box-shadow 220ms; color: #073963; }
.fsd-post-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(7,57,99,0.14); color: #073963; }
.fsd-post-card-img { display: block; aspect-ratio: 16 / 10; background: linear-gradient(140deg, rgba(190,49,108,0.16), rgba(7,57,99,0.14)); }
.fsd-post-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fsd-post-card-body { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 30px; flex: 1; }
.fsd-post-meta { font-size: 13px; font-weight: 400; color: #4a6480; margin: 0; }
.fsd-post-card-title { font-size: 20px; font-weight: 600; line-height: 1.3; text-wrap: pretty; }
.fsd-post-card-excerpt { font-size: 15px; font-weight: 300; line-height: 1.7; color: #4a6480; }
.fsd-post-card-more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: #be316c; }
.fsd-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.fsd-pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 22px; background: #f3f7fb; font-size: 14px; font-weight: 500; color: #073963; }
.fsd-pagination .page-numbers.current, .fsd-pagination a.page-numbers:hover { background: #073963; color: #fff; }

/* ---------- Pojedynczy wpis ---------- */
.fsd-post-narrow { max-width: 820px; }
.fsd-post-hero h1 { max-width: 24ch; }
.fsd-post-hero .fsd-post-meta { margin-top: 18px; }
.fsd-post-cover { margin-top: -10px; }
.fsd-post-cover img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 26px; display: block; box-shadow: 0 20px 50px rgba(7,57,99,0.14); }
.fsd-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(7,57,99,0.12); }
.fsd-post-nav a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border-radius: 18px; background: #f3f7fb; font-size: 15px; font-weight: 500; line-height: 1.4; }
.fsd-post-nav a span { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #be316c; }
.fsd-post-nav a.is-next { text-align: right; grid-column: 2; }

/* Treść pisana blokami – wpisy i strony z bloków */
.fsd-prose { padding-top: 48px; font-size: 17px; font-weight: 300; line-height: 1.8; color: #2c4a68; }
.fsd-prose > * { margin: 0 0 22px; }
.fsd-prose h2 { font-size: clamp(24px, 2.4vw, 30px); color: #073963; margin: 48px 0 16px; }
.fsd-prose h3 { font-size: 21px; color: #073963; margin: 36px 0 12px; }
.fsd-prose a { color: #be316c; text-decoration: underline; text-underline-offset: 3px; }
.fsd-prose strong { font-weight: 600; color: #073963; }
.fsd-prose ul, .fsd-prose ol { padding-left: 22px; }
.fsd-prose li { margin-bottom: 8px; }
.fsd-prose ul li::marker { color: #be316c; }
.fsd-prose blockquote, .fsd-prose .wp-block-quote { margin: 36px 0; padding: 30px 34px; border: 0; border-radius: 22px; background: #f3f7fb; font-size: 19px; color: #073963; }
.fsd-prose blockquote p { margin: 0; }
.fsd-prose blockquote cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; font-weight: 600; color: #be316c; }
.fsd-prose figure img, .fsd-prose .wp-block-image img { border-radius: 20px; }
.fsd-prose figcaption { font-size: 13px; color: #4a6480; text-align: center; margin-top: 10px; }

/* ---------- Sekcje z bloków edytora (wzorce „FSD · …”) ----------
   Klasy dopisują wzorce. Teksty w nich edytuje się jak zwykły dokument. */
.fsd-b-baner { background: linear-gradient(160deg, #f3f7fb 0%, #ffffff 68%); padding: 64px clamp(18px, 5vw, 32px) 54px !important; margin: 0 !important; }
.fsd-b-baner > * { max-width: 1240px; margin-left: auto !important; margin-right: auto !important; }
.fsd-b-baner h1 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.16; margin-top: 0; margin-bottom: 0; color: #073963; }
.fsd-b-baner h1, .fsd-b-baner .fsd-b-lead { padding-right: calc(100% - min(100%, 62ch)); }

.fsd-b-sekcja { max-width: 1240px; margin: 0 auto !important; padding: 80px clamp(18px, 5vw, 32px) 0 !important; }
.fsd-b-sekcja h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.2; color: #073963; margin: 0 0 18px; }
.fsd-b-sekcja h3 { font-size: 20px; line-height: 1.3; color: #073963; margin: 0 0 12px; }
.fsd-b-sekcja p, .fsd-b-sekcja li { font-size: 16px; font-weight: 300; line-height: 1.8; color: #2c4a68; }
.fsd-b-sekcja ul li::marker { color: #be316c; }
.fsd-b-sekcja .wp-block-image img { border-radius: 24px; box-shadow: 0 20px 50px rgba(7,57,99,0.14); }
.fsd-b-tlo { background: #f3f7fb; border-radius: 26px; padding: clamp(32px, 5vw, 56px) !important; }

.fsd-b-nadtytul { margin: 0 0 12px !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: 0.16em; text-transform: uppercase; color: #be316c !important; }
.fsd-b-lead { font-size: 17px !important; font-weight: 300; line-height: 1.75; color: #3c5773 !important; margin-top: 20px !important; }

.fsd-b-karty { gap: 22px !important; }
.fsd-b-karta { background: #fff; border-radius: 20px; padding: 34px 30px 36px !important; box-shadow: 0 6px 24px rgba(7,57,99,0.08); transition: transform 200ms, box-shadow 200ms; }
.fsd-b-karta:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(7,57,99,0.14); }
.fsd-b-karta p { font-size: 15px; color: #4a6480; margin: 0; }

.fsd-b-cta { max-width: 1240px; margin: 72px auto 0 !important; padding: 0 clamp(18px, 5vw, 32px) !important; }
.fsd-b-cta > .wp-block-group__inner-container, .fsd-b-cta-box { background: #073963; border-radius: 28px; padding: clamp(34px, 5vw, 52px) clamp(26px, 5vw, 56px) !important; }
.fsd-b-cta h2 { color: #fff !important; font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 12px; }
.fsd-b-cta p { color: #d3e2ef !important; font-size: 15px; font-weight: 300; margin: 0; }
.fsd-b-cta .wp-block-buttons { margin-top: 26px; }

/* Przyciski z bloku „Przyciski” w kolorach FSD */
.fsd-page .wp-block-button__link, .editor-styles-wrapper .wp-block-button__link { padding: 15px 30px; border-radius: 30px; background: #be316c; color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 8px 22px rgba(190,49,108,0.28); transition: transform 180ms; }
.fsd-page .wp-block-button__link:hover { background: #be316c; color: #fff; transform: translateY(-3px); }
.fsd-page .is-style-outline .wp-block-button__link { background: transparent; color: #073963; border: 1.5px solid rgba(7,57,99,0.18); box-shadow: none; }

.fsd-page > .fsd-b-ostatni, .fsd-page > *:last-child.fsd-b-sekcja { padding-bottom: 72px !important; }

/* ---------- Strona 404 ---------- */
.fsd-404 { background: linear-gradient(160deg, #f3f7fb 0%, #ffffff 70%); padding: clamp(56px, 9vw, 110px) 0 clamp(72px, 9vw, 120px); }
.fsd-404-inner { max-width: 860px; text-align: center; }
.fsd-404-code { margin: 0 0 8px; font-size: clamp(88px, 16vw, 170px); font-weight: 700; line-height: 1; letter-spacing: -0.04em; color: #073963; opacity: 0.1; }
.fsd-404 h1 { margin: 0 auto; max-width: 22ch; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.18; color: #073963; text-wrap: balance; }
.fsd-404 .fsd-lead { margin: 20px auto 0; max-width: 58ch; }
.fsd-404-search { display: flex; gap: 10px; max-width: 560px; margin: 36px auto 0; }
.fsd-404-search input { flex: 1; min-width: 0; padding: 15px 20px; border: 1px solid rgba(7,57,99,0.18); border-radius: 30px; background: #fff; font-family: inherit; font-size: 15px; color: #073963; }
.fsd-404-search input:focus { outline: none; border-color: #be316c; box-shadow: 0 0 0 3px rgba(190,49,108,0.14); }
.fsd-404-search .fsd-btn { border: 0; cursor: pointer; padding: 15px 28px; border-radius: 30px; background: #be316c; color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; }
.fsd-404-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; text-align: left; }
.fsd-404-links a { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; border-radius: 18px; background: #fff; box-shadow: 0 6px 24px rgba(7,57,99,0.08); font-size: 15px; font-weight: 500; line-height: 1.4; color: #073963; transition: transform 200ms, box-shadow 200ms; }
.fsd-404-links a:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(7,57,99,0.14); color: #073963; }
.fsd-404-links a span { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #be316c; }
@media (max-width: 900px) { .fsd-404-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fsd-404-links { grid-template-columns: minmax(0, 1fr); } .fsd-404-search { flex-direction: column; } }

/* ---------- Formularze FSD ---------- */
.fsd-form { display: grid; gap: 20px; font-family: inherit; }
.fsd-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fsd-field { display: grid; gap: 7px; }
.fsd-field.is-full { grid-column: 1 / -1; }
.fsd-field label, .fsd-field-label { font-size: 13.5px; font-weight: 500; color: #073963; }
.fsd-field label span, .fsd-field-label span { color: #be316c; }
.fsd-form input[type=text], .fsd-form input[type=email], .fsd-form input[type=tel], .fsd-form select, .fsd-form textarea {
  width: 100%; padding: 13px 16px; border: 1px solid rgba(7,57,99,0.18); border-radius: 14px; background: #fff;
  font-family: inherit; font-size: 15px; font-weight: 300; color: #073963; transition: border-color 160ms, box-shadow 160ms;
}
.fsd-form input:focus, .fsd-form select:focus, .fsd-form textarea:focus { outline: none; border-color: #be316c; box-shadow: 0 0 0 3px rgba(190,49,108,0.14); }
.fsd-form textarea { resize: vertical; min-height: 120px; }
.fsd-radios { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; font-weight: 300; }
.fsd-radios label { display: inline-flex; align-items: center; gap: 8px; font-weight: 300; }
.fsd-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 300; line-height: 1.6; color: #4a6480; }
.fsd-consent input { margin-top: 3px; accent-color: #be316c; }
.fsd-consent a { color: #be316c; text-decoration: underline; }
.fsd-consent.fsd-kopia { font-size: 14px; font-weight: 400; color: #073963; }
.fsd-form input[type=radio] { accent-color: #be316c; }
.fsd-form .fsd-btn { justify-self: start; padding: 16px 34px; font-size: 15px; line-height: 1.2; font-weight: 600; border-radius: 30px; background: #be316c; color: #fff; box-shadow: 0 8px 22px rgba(190,49,108,0.28); }
.fsd-form .fsd-btn:hover { background: #be316c; }
.fsd-form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fsd-form, .fsd-form-ok { scroll-margin-top: 130px; }
.fsd-form-ok { display: flex; gap: 16px; align-items: flex-start; padding: 26px 28px; border-radius: 18px; background: #f3f7fb; font-size: 15.5px; font-weight: 300; line-height: 1.7; color: #2c4a68; animation: fsdDone 420ms ease-out; }
.fsd-form-ok strong { display: block; margin-bottom: 4px; font-size: 19px; color: #073963; font-weight: 600; }
.fsd-form-ok-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #be316c; color: #fff; }
.fsd-form-ok-kopia { display: block; margin-top: 8px; font-size: 14px; color: #4a6480; }
@keyframes fsdDone { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fsd-form-err { margin: 0; padding: 14px 18px; border-radius: 14px; background: rgba(190,49,108,0.08); color: #8f1f4e; font-size: 14px; }
@media (max-width: 600px) { .fsd-form-grid { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 1024px) { .fsd-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .fsd-blog-grid { grid-template-columns: minmax(0, 1fr); }
  .fsd-post-nav { grid-template-columns: 1fr; }
  .fsd-post-nav a.is-next { grid-column: auto; text-align: left; }
}
