/* ============================================================
   PETALA — subpage.css
   Szablon CSS dla podstron: kwiaty na okoliczność / usługi
   Importuje styl.css dla navbaru, footera i base styles.
   ============================================================ */

/* ── Subpage Hero ── */
.sp-hero {
  position: relative;
  height: 480px;
  margin-top: 68px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.sp-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* Zdjęcie ustawiane inline na każdej podstronie:
     style="background-image: url('...')" */
}

/* Gradient od dołu — tekst zawsze czytelny */
.sp-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.82) 0%,
    rgba(10,10,10,0.35) 55%,
    rgba(10,10,10,0.08) 100%
  );
}

.sp-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* Breadcrumb */
.sp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(250,250,250,0.55);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.sp-breadcrumb a {
  color: rgba(250,250,250,0.55);
  transition: color 0.15s;
}

.sp-breadcrumb a:hover { color: #22c55e; }

.sp-breadcrumb__sep { font-size: 0.65rem; }

.sp-breadcrumb__current { color: #fafafa; }

/* Hero heading */
.sp-hero__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: #fafafa;
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 14px;
}

.sp-hero__lead {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  color: rgba(250,250,250,0.72);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Article layout ── */
.sp-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

/* ── Main content column ── */
.sp-content { min-width: 0; }

/* Intro paragraph (większy) */
.sp-content__intro {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  color: rgba(10,10,10,0.75);
  line-height: 1.8;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(10,10,10,0.08);
}

/* ---- Bloki treści ---- */

/* h2 wewnątrz artykułu */
.sp-content h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #0a0a0a;
  margin: 48px 0 16px;
  line-height: 1.2;
}

.sp-content h2:first-child { margin-top: 0; }

/* h3 */
.sp-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0a0a0a;
  margin: 32px 0 12px;
}

/* Paragrafy */
.sp-content p {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  color: rgba(10,10,10,0.72);
  line-height: 1.8;
  margin-bottom: 18px;
}

/* Obraz pełnej szerokości w treści */
.sp-content__img {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin: 32px 0;
}

.sp-content__img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.sp-content__img figcaption {
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  color: rgba(10,10,10,0.55);
  padding: 10px 4px 0;
  text-align: center;
}

/* Obraz + tekst obok siebie */
.sp-media-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  margin: 36px 0;
}

.sp-media-block--reverse { direction: rtl; }
.sp-media-block--reverse > * { direction: ltr; }

.sp-media-block__img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.sp-media-block__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-media-block__text h3 { margin-top: 0; }

/* Lista punktowana */
.sp-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.sp-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: 0.93rem;
  color: rgba(10,10,10,0.72);
  line-height: 1.7;
  padding: 6px 0;
  border-bottom: 1px solid rgba(10,10,10,0.05);
}

.sp-list li:last-child { border-bottom: none; }

.sp-list__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22c55e;
  margin-top: 8px;
}

/* Highlight / cytat */
.sp-highlight {
  background-color: rgba(34,197,94,0.07);
  border-left: 3px solid #22c55e;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 32px 0;
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #0a0a0a;
  line-height: 1.6;
}

/* CTA banner wewnątrz treści */
.sp-cta-banner {
  background-color: #0a0a0a;
  border-radius: 14px;
  padding: 36px 32px;
  text-align: center;
  margin: 48px 0 0;
}

.sp-cta-banner h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fafafa !important;
  margin: 0 0 10px;
}

.sp-cta-banner p {
  font-size: 0.9rem;
  color: rgba(250,250,250,0.7) !important;
  margin-bottom: 24px;
}

.sp-cta-banner .btn {
  background-color: #22c55e;
  color: #fafafa !important;
  display: inline-flex;
}

/* ── Sidebar ── */
.sp-sidebar { position: sticky; top: 88px; }

.sp-sidebar-card {
  background-color: #fafafa;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 14px;
  padding: 28px 24px;
  margin-bottom: 20px;
}

.sp-sidebar-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 16px;
}

/* Linki powiązanych okazji */
.sp-related-links { list-style: none; }

.sp-related-links li { border-bottom: 1px solid rgba(10,10,10,0.06); }
.sp-related-links li:last-child { border-bottom: none; }

.sp-related-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  color: rgba(10,10,10,0.7);
  transition: color 0.15s;
}

.sp-related-links a:hover { color: #22c55e; }

.sp-related-links__arrow {
  color: #22c55e;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Sidebar CTA */
.sp-sidebar-card .btn { width: 100%; margin-top: 4px; }

.sp-sidebar-card__meta {
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  color: rgba(10,10,10,0.55);
  text-align: center;
  margin-top: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .sp-article {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 24px 64px;
  }

  .sp-sidebar { position: static; }

  .sp-hero { height: 420px; }
}

/* Mobile */
@media (max-width: 640px) {
  .sp-hero { height: 300px; }
  .sp-hero__content { padding: 0 16px 28px; }
  .sp-hero__title { font-size: 1.7rem; }
  .sp-hero__lead { font-size: 0.9rem; }

  .sp-article {
    grid-template-columns: 1fr;
    padding: 24px 16px 48px;
    gap: 24px;
    overflow: hidden;
  }

  .sp-content {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .sp-content__intro {
    font-size: 0.93rem;
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .sp-content h2 { font-size: 1.35rem; margin: 32px 0 12px; }
  .sp-content h3 { font-size: 1.05rem; margin: 24px 0 10px; }
  .sp-content p  { font-size: 0.9rem; }

  .sp-content__img img { height: 200px; }

  .sp-media-block {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0;
  }

  .sp-media-block--reverse { direction: ltr; }

  .sp-media-block__img {
    aspect-ratio: 16/9;
    width: 100%;
  }

  .sp-media-block__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .sp-highlight {
    padding: 14px 16px;
    font-size: 0.95rem;
    margin: 20px 0;
  }

  .sp-list li { font-size: 0.88rem; }

  .sp-cta-banner {
    padding: 24px 16px;
    margin: 32px 0 0;
    border-radius: 10px;
  }

  .sp-cta-banner h3 { font-size: 1.1rem; margin-bottom: 8px; }
  .sp-cta-banner p  { font-size: 0.85rem; margin-bottom: 18px; }
  .sp-cta-banner .btn { width: 100%; }

  .sp-tags { gap: 6px; margin-top: 28px; }

  /* Sidebar ukryty na mobile — niepotrzebny przy małym ekranie */
  .sp-sidebar { display: none; }

  /* Tabele — przewijalne poziomo */
  .sp-content table { display: block; overflow-x: auto; width: 100%; max-width: 100%; }

  /* Spis treści */
  nav[aria-label="Spis treści"] { padding: 16px 18px !important; margin: 20px 0 !important; }
}

/* Bardzo małe ekrany ≤380px */
@media (max-width: 380px) {
  .sp-hero { height: 260px; }
  .sp-hero__title { font-size: 1.4rem; }
  .sp-article { padding: 20px 12px 40px; }
  .sp-content h2 { font-size: 1.2rem; }
  .sp-cta-banner { padding: 20px 14px; }
  .sp-cta-banner h3 { font-size: 1rem; }
}

/* ============================================================
   TAGI WPISU
   ============================================================ */
.sp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(10,10,10,0.08);
}

.sp-tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #22c55e;
  border: 1.5px solid #22c55e;
  border-radius: 9999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sp-tag:hover {
  background-color: #22c55e;
  color: #fafafa;
}

/* ============================================================
   PAGINACJA WPISU (wp_link_pages)
   ============================================================ */
.sp-page-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 36px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(10,10,10,0.08);
  border-bottom: 1px solid rgba(10,10,10,0.08);
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
}

.sp-page-links__label {
  font-weight: 600;
  color: rgba(10,10,10,0.5);
  margin-right: 4px;
}

.sp-page-links__item a,
.sp-page-links__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-weight: 600;
  color: #0a0a0a;
  border: 1.5px solid rgba(10,10,10,0.12);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.sp-page-links__item a:hover {
  border-color: #22c55e;
  color: #22c55e;
}

.sp-page-links__item span {
  background-color: #22c55e;
  border-color: #22c55e;
  color: #fafafa;
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.sp-faq {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid rgba(10,10,10,0.08);
}

.sp-faq__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 24px;
}

.sp-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-faq__item {
  border: 1.5px solid rgba(10,10,10,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.sp-faq__item--open {
  border-color: #22c55e;
}

.sp-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 18px 22px;
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0a0a0a;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.sp-faq__question:hover { color: #22c55e; }

.sp-faq__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform 0.25s ease;
}

.sp-faq__item--open .sp-faq__icon {
  transform: rotate(180deg);
}

.sp-faq__answer {
  padding: 0 22px 20px;
  font-family: 'Sora', sans-serif;
  font-size: 0.9rem;
  color: rgba(10,10,10,0.68);
  line-height: 1.75;
}

.sp-faq__answer p { margin-bottom: 10px; }
.sp-faq__answer p:last-child { margin-bottom: 0; }

/* ============================================================
   POWIĄZANE WPISY
   ============================================================ */
.sp-related {
  background-color: #fafafa;
  padding: 72px 0 80px;
  border-top: 1px solid rgba(10,10,10,0.07);
}

.sp-related__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #0a0a0a;
  margin-bottom: 36px;
}

.sp-related__title em {
  font-style: italic;
  color: #22c55e;
}

.sp-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sp-related__card {
  background-color: #fafafa;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.sp-related__card:hover {
  border-color: rgba(34,197,94,0.4);
  box-shadow: 0 8px 28px rgba(0,0,0,0.07);
}

.sp-related__card-img {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.sp-related__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.sp-related__card:hover .sp-related__card-img img {
  transform: scale(1.04);
}

.sp-related__card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sp-related__card-cat {
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: 8px;
}

.sp-related__card-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.sp-related__card-title a {
  color: #0a0a0a;
  transition: color 0.15s;
}

.sp-related__card-title a:hover { color: #22c55e; }

.sp-related__card-excerpt {
  font-family: 'Sora', sans-serif;
  font-size: 0.83rem;
  color: rgba(10,10,10,0.58);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.sp-related__card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #22c55e;
  transition: gap 0.2s ease;
}

.sp-related__card-link:hover { gap: 8px; }

/* ── Responsive — powiązane wpisy ── */
@media (max-width: 1024px) {
  .sp-related__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .sp-related { padding: 48px 0 56px; }
  .sp-related__grid { grid-template-columns: 1fr; }
  .sp-faq__question { font-size: 0.9rem; padding: 16px 18px; }
  .sp-faq__answer   { padding: 0 18px 18px; }
}

/* ============================================================
   CATEGORY — siatka wpisów
   ============================================================ */
.cat-layout { padding: 60px 0 80px; }

.cat-layout__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Karta wpisu */
.cat-card {
  background: #fafafa;
  border: 1px solid rgba(10,10,10,.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s;
}
.cat-card:hover {
  border-color: rgba(34,197,94,.4);
  box-shadow: 0 8px 28px rgba(0,0,0,.07);
}
.cat-card__img {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.cat-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.cat-card:hover .cat-card__img img { transform: scale(1.04); }

.cat-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }

.cat-card__meta {
  font-family: 'Sora', sans-serif;
  font-size: .72rem;
  color: rgba(10,10,10,.45);
  margin-bottom: 8px;
}
.cat-card__title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}
.cat-card__title a { color: #0a0a0a; transition: color .15s; }
.cat-card__title a:hover { color: #22c55e; }

.cat-card__excerpt {
  font-family: 'Sora', sans-serif;
  font-size: .83rem;
  color: rgba(10,10,10,.58);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 14px;
}
.cat-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Sora', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: #22c55e;
  transition: gap .2s;
}
.cat-card__link:hover { gap: 8px; }

/* Hero count badge */
.sp-hero__count {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Sora', sans-serif;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(250,250,250,.55);
  border: 1px solid rgba(250,250,250,.2);
  border-radius: 9999px;
  padding: 4px 14px;
}

/* Paginacja */
.cat-pagination { margin-top: 48px; }

.cat-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-family: 'Sora', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: #0a0a0a;
  border: 1.5px solid rgba(10,10,10,.12);
  border-radius: 9999px;
  transition: border-color .15s, background-color .15s, color .15s;
}
.cat-pagination .page-numbers:hover,
.cat-pagination .page-numbers.current {
  background-color: #22c55e;
  border-color: #22c55e;
  color: #fafafa;
}
.cat-pagination .page-numbers.dots { border-color: transparent; }

/* Pusta kategoria */
.cat-empty {
  text-align: center;
  padding: 60px 20px;
}
.cat-empty p {
  font-family: 'Sora', sans-serif;
  color: rgba(10,10,10,.55);
  margin-bottom: 24px;
}

/* ============================================================
   ARCHIVE — lista wpisów
   ============================================================ */
.arc-layout { padding: 60px 0 80px; }

.arc-list { display: flex; flex-direction: column; gap: 28px; max-width: 860px; }

.arc-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  background: #fafafa;
  border: 1px solid rgba(10,10,10,.08);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.arc-item:hover {
  border-color: rgba(34,197,94,.35);
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.arc-item__img {
  display: block;
  overflow: hidden;
  min-height: 180px;
}
.arc-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.arc-item:hover .arc-item__img img { transform: scale(1.04); }

.arc-item__body { padding: 24px 24px 24px 0; display: flex; flex-direction: column; justify-content: center; }

.arc-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Sora', sans-serif;
  font-size: .75rem;
  color: rgba(10,10,10,.45);
  margin-bottom: 10px;
}
.arc-item__cat {
  color: #22c55e;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.arc-item__title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}
.arc-item__title a { color: #0a0a0a; transition: color .15s; }
.arc-item__title a:hover { color: #22c55e; }

.arc-item__excerpt {
  font-family: 'Sora', sans-serif;
  font-size: .88rem;
  color: rgba(10,10,10,.6);
  line-height: 1.7;
  margin-bottom: 18px;
}
.arc-item__link { align-self: flex-start; }

/* ============================================================
   SEARCH — formularz i brak wyników
   ============================================================ */
.search-refine { margin-bottom: 36px; max-width: 480px; }

/* Formularz wyszukiwania WP */
.search-form {
  display: flex;
  gap: 8px;
}
.search-form label { flex: 1; }
.search-form .search-field {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  font-family: 'Sora', sans-serif;
  font-size: .9rem;
  color: #0a0a0a;
  background: #fafafa;
  border: 1.5px solid rgba(10,10,10,.15);
  border-radius: 9999px;
  outline: none;
  transition: border-color .2s;
}
.search-form .search-field:focus { border-color: #22c55e; }
.search-form .search-submit { /* reuses .btn */ }

/* Brak wyników */
.search-empty {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 560px;
  margin: 0 auto;
}
.search-empty__icon { margin-bottom: 28px; }
.search-empty__icon svg { width: 80px; height: 80px; margin: 0 auto; }

.search-empty__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.search-empty__text {
  font-family: 'Sora', sans-serif;
  font-size: .95rem;
  color: rgba(10,10,10,.6);
  line-height: 1.7;
  margin-bottom: 28px;
}
.search-empty__form { margin-bottom: 32px; }
.search-empty__cats { margin: 28px 0 36px; }
.search-empty__cats-label {
  font-family: 'Sora', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(10,10,10,.45);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.search-empty__cats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

/* ============================================================
   404
   ============================================================ */
.error404 { padding: 80px 0 100px; min-height: calc(100vh - 68px - 220px); display: flex; align-items: center; }

.error404__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}

.error404__illustration svg { width: 240px; height: 240px; }

.error404__code {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 6rem;
  font-weight: 700;
  color: rgba(34,197,94,.18);
  line-height: 1;
  margin-bottom: -8px;
}
.error404__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.error404__text {
  font-family: 'Sora', sans-serif;
  font-size: .95rem;
  color: rgba(10,10,10,.6);
  line-height: 1.75;
  margin-bottom: 28px;
}
.error404__search { margin-bottom: 28px; max-width: 420px; }

.error404__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Ghost button (tylko border) */
.btn--ghost {
  background-color: transparent;
  color: #22c55e;
  border: 2px solid #22c55e;
}
.btn--ghost:hover { background-color: #22c55e; color: #fafafa; }

.error404__cats { margin-top: 4px; }
.error404__cats-label {
  font-family: 'Sora', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(10,10,10,.4);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.error404__cats-grid { display: flex; flex-wrap: wrap; gap: 8px; }

/* ============================================================
   RESPONSIVE — nowe szablony
   ============================================================ */
@media (max-width: 1100px) {
  .cat-layout__inner { grid-template-columns: 1fr 260px; gap: 36px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .arc-item { grid-template-columns: 220px 1fr; }
}

@media (max-width: 768px) {
  .cat-layout__inner { grid-template-columns: 1fr; }
  .cat-layout__sidebar { display: none; } /* sidebar chowany na mobile */

  .error404__inner { grid-template-columns: 1fr; gap: 32px; }
  .error404__illustration { display: none; }
  .error404 { padding: 60px 0 80px; }
}

@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat-layout { padding: 40px 0 56px; }

  .arc-item { grid-template-columns: 1fr; }
  .arc-item__img { min-height: 200px; }
  .arc-item__body { padding: 18px 18px 22px; }
  .arc-layout { padding: 40px 0 56px; }

  .search-form { flex-direction: column; }
  .search-form .search-field { border-radius: 9999px; }
  .search-form .search-submit { width: 100%; }
}

/* ============================================================
   FRONT-PAGE — hero selector h2 (nie H1, bo H1 to tytuł)
   ============================================================ */
.hero__selector-h {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0a0a0a;
  margin-bottom: 18px;
}

/* ============================================================
   FRONT-PAGE — sekcja blog
   ============================================================ */
.fp-blog {
  padding: 80px 0 96px;
  border-top: 1px solid rgba(10,10,10,.07);
}

.fp-blog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.fp-blog__title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #0a0a0a;
}

.fp-blog__all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Sora', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: #22c55e;
  white-space: nowrap;
  transition: gap .2s;
}
.fp-blog__all:hover { gap: 8px; }

.fp-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Karta bloga */
.fp-blog__card {
  background: #fafafa;
  border: 1px solid rgba(10,10,10,.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s;
}
.fp-blog__card:hover {
  border-color: rgba(34,197,94,.4);
  box-shadow: 0 8px 28px rgba(0,0,0,.07);
}

.fp-blog__card-img {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.fp-blog__card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.fp-blog__card:hover .fp-blog__card-img img { transform: scale(1.04); }

.fp-blog__card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }

.fp-blog__card-cat {
  font-family: 'Sora', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: 8px;
  display: block;
}

.fp-blog__card-title {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  flex: 1;
}
.fp-blog__card-title a { color: #0a0a0a; transition: color .15s; }
.fp-blog__card-title a:hover { color: #22c55e; }

.fp-blog__card-excerpt {
  font-family: 'Sora', sans-serif;
  font-size: .83rem;
  color: rgba(10,10,10,.58);
  line-height: 1.6;
  margin-bottom: 14px;
}

.fp-blog__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.fp-blog__card-date {
  font-family: 'Sora', sans-serif;
  font-size: .75rem;
  color: rgba(10,10,10,.38);
}

.fp-blog__card-link {
  font-family: 'Sora', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  color: #22c55e;
  transition: opacity .15s;
}
.fp-blog__card-link:hover { opacity: .75; }

/* ============================================================
   PAGE.PHP — layout treści + sidebar
   ============================================================ */
.page-layout { padding: 60px 0 80px; }

.page-layout__inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}

/* Treść strony — style automatyczne dla Gutenberg */
.page-content { min-width: 0; }

.page-content h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #0a0a0a;
  margin: 44px 0 14px;
  line-height: 1.2;
}
.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #0a0a0a;
  margin: 32px 0 10px;
}

.page-content p {
  font-family: 'Sora', sans-serif;
  font-size: .95rem;
  color: rgba(10,10,10,.72);
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
  font-family: 'Sora', sans-serif;
  font-size: .93rem;
  color: rgba(10,10,10,.7);
  line-height: 1.75;
  padding-left: 1.4em;
  margin-bottom: 16px;
  list-style: revert;
}

.page-content li { margin-bottom: 6px; }

.page-content blockquote {
  background: rgba(34,197,94,.06);
  border-left: 3px solid #22c55e;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 28px 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #0a0a0a;
}

.page-content img {
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
}

.page-content a {
  color: #22c55e;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity .15s;
}
.page-content a:hover { opacity: .75; }

.page-content hr {
  border: none;
  border-top: 1px solid rgba(10,10,10,.1);
  margin: 36px 0;
}

/* Gutenberg bloki */
.page-content .wp-block-image { margin: 28px 0; }
.page-content .wp-block-image img { border-radius: 12px; }
.page-content .wp-block-image figcaption {
  font-family: 'Sora', sans-serif;
  font-size: .78rem;
  color: rgba(10,10,10,.45);
  text-align: center;
  margin-top: 8px;
}

.page-content .wp-block-separator {
  border: none;
  border-top: 1px solid rgba(10,10,10,.1);
  margin: 36px 0;
}

.page-content .wp-block-buttons .wp-block-button__link {
  background-color: #22c55e;
  color: #fafafa;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  border-radius: 9999px;
  padding: 14px 28px;
  border: none;
  transition: background-color .2s;
}
.page-content .wp-block-buttons .wp-block-button__link:hover {
  background-color: #16a34a;
}

.page-content .wp-block-table { margin: 28px 0; width: 100%; }
.page-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Sora', sans-serif;
  font-size: .88rem;
}
.page-content .wp-block-table th,
.page-content .wp-block-table td {
  padding: 10px 14px;
  border: 1px solid rgba(10,10,10,.1);
  text-align: left;
}
.page-content .wp-block-table th {
  background: rgba(34,197,94,.08);
  font-weight: 600;
  color: #0a0a0a;
}

/* CTA baner w page.php */
.page-content .sp-cta-banner { margin-top: 48px; }

/* ── Responsive — page i blog ── */
@media (max-width: 1024px) {
  .page-layout__inner {
    grid-template-columns: 1fr 260px;
    gap: 40px;
  }
  .fp-blog__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-layout__inner { grid-template-columns: 1fr; }
  .page-layout__sidebar { display: none; }
  .page-layout { padding: 40px 0 60px; }
}

@media (max-width: 640px) {
  .fp-blog { padding: 56px 0 64px; }
  .fp-blog__grid { grid-template-columns: 1fr; }
  .fp-blog__header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ============================================================
   STRONA KONTAKT
   ============================================================ */
.contact-layout { padding: 56px 0 80px; }

.contact-layout__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

/* ── Karty danych kontaktowych ── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}

.contact-info__card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fafafa;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: #0a0a0a;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-info__card:hover {
  border-color: #22c55e;
  box-shadow: 0 4px 16px rgba(34,197,94,0.1);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(34,197,94,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-info__label {
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.4);
}

.contact-info__value {
  font-family: 'Sora', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #0a0a0a;
}

/* ── Mapa ── */
.contact-map-wrap {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-map {
  width: 100%;
  height: 440px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(10,10,10,0.08);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-map__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #22c55e;
  text-decoration: none;
  transition: opacity 0.15s;
}

.contact-map__link:hover { opacity: 0.75; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .contact-layout__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .contact-map-wrap { position: static; }
  .contact-map { height: 320px; }
}

@media (max-width: 640px) {
  .contact-layout { padding: 36px 0 56px; }
  .contact-map { height: 260px; }
  .contact-info__card { padding: 14px 16px; gap: 12px; }
  .contact-info__icon { width: 38px; height: 38px; }
  .contact-info__value { font-size: 0.88rem; }
}

/* ============================================================
   STRONA BLOGA (home.php)
   ============================================================ */
.blog-layout { padding: 56px 0 80px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

/* ── Box wpisu ── */
.blog-card {
  background: #fafafa;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  border-color: rgba(34,197,94,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Zdjęcie */
.blog-card__img {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: rgba(34,197,94,0.06);
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__img img { transform: scale(1.04); }

/* Placeholder gdy brak miniatury */
.blog-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Treść */
.blog-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__date {
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(10,10,10,0.38);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: block;
}

.blog-card__title {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
  flex: 1;
}

.blog-card__title a {
  color: #0a0a0a;
  text-decoration: none;
  transition: color 0.15s;
}

.blog-card__title a:hover { color: #22c55e; }

.blog-card__excerpt {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  color: rgba(10,10,10,0.58);
  line-height: 1.65;
  margin-bottom: 16px;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Sora', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #22c55e;
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.2s;
}

.blog-card__link:hover { gap: 8px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 640px) {
  .blog-layout { padding: 36px 0 56px; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-card__body { padding: 16px 18px 20px; }
  .blog-card { transform: none !important; }
}
