/* =========================================================================
   pillar.css — style stron filarowych /pakowarki/{cluster}/ i /co-pakujemy/{...}/
   Refactor 2026-05
   ========================================================================= */

/* HERO */
.pillar-hero {
  background: linear-gradient(180deg, #0b0b0d 0%, #1a1a1c 100%);
  color: #ededea;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.pillar-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 106, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 106, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 0%, transparent 70%);
  pointer-events: none;
}
.pillar-hero .container {
  position: relative;
  z-index: 2;
}
.pillar-hero .post-breadcrumb {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: #b0b0ad;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pillar-hero .post-breadcrumb a { color: #b0b0ad; text-decoration: none; }
.pillar-hero .post-breadcrumb a:hover { color: #ff6a00; }
.pillar-hero .post-breadcrumb .sep { color: #5a5a5c; margin: 0 10px; }
.pillar-hero .kicker {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #ff6a00;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 106, 0, 0.35);
  background: rgba(255, 106, 0, 0.1);
}
.pillar-hero h1 {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 920px;
  margin: 0;
}

/* CONTENT */
.pillar-main {
  background: #f4f3ee;
  padding: 70px 0 50px;
}
.pillar-content {
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--font-body, 'Manrope'), system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #2a2a2c;
}
.pillar-content > p {
  margin: 0 0 24px;
}
.pillar-content h2 {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  color: #0b0b0d;
  margin: 50px 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid #ff6a00;
  letter-spacing: -0.01em;
}
.pillar-content h3 {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 700;
  color: #1a1a1c;
  margin: 36px 0 14px;
}
.pillar-content ul,
.pillar-content ol {
  margin: 0 0 24px;
  padding-left: 28px;
}
.pillar-content li {
  margin-bottom: 10px;
}
.pillar-content li > p {
  margin-bottom: 8px;
}
.pillar-content strong {
  color: #0b0b0d;
  font-weight: 700;
}
.pillar-content em {
  color: #5a5a5c;
  font-style: italic;
}
.pillar-content a {
  color: #ff6a00;
  text-decoration: underline;
  text-decoration-color: rgba(255, 106, 0, 0.35);
  text-underline-offset: 3px;
}
.pillar-content a:hover {
  color: #e85e00;
  text-decoration-color: #ff6a00;
}

/* SEKCJA: MACHINES (siatka kart) */
.pillar-machines {
  background: #fff;
  padding: 70px 0;
}
.pillar-machines .sec-header {
  margin-bottom: 40px;
}
.pillar-machines .kicker {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #ff6a00;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.pillar-machines .sec-title {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  color: #0b0b0d;
  margin: 0;
}
.mach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}
.mach-card {
  display: flex;
  flex-direction: column;
  background: #fafaf7;
  border: 1px solid #e2e0d8;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
}
.mach-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  border-color: #ff6a00;
}
.mach-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ededea;
}
.mach-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.mach-card:hover .mach-card-img img {
  transform: scale(1.04);
}
.mach-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.mach-badge {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid;
}
.mach-badge-standard { color: #ff6a00; border-color: rgba(255, 106, 0, 0.4); background: rgba(255, 106, 0, 0.08); }
.mach-badge-custom { color: #2563eb; border-color: rgba(37, 99, 235, 0.4); background: rgba(37, 99, 235, 0.08); }
.mach-badge-akcesorium { color: #5a5a5c; border-color: #b9b6ac; background: #ededea; }
.mach-card-title {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #0b0b0d;
}
.mach-card-keyword {
  font-size: 0.82rem;
  color: #5a5a5c;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.mach-card-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #2a2a2c;
  margin: 4px 0 8px;
  flex: 1;
}
.mach-card-cta {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: #ff6a00;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: auto;
}
.pillar-cta-note {
  text-align: center;
  font-size: 1rem;
  color: #5a5a5c;
  margin-top: 24px;
}
.pillar-cta-note a {
  color: #ff6a00;
  text-decoration: none;
  font-weight: 600;
}

/* CTA BAND */
.pillar-cta-band {
  background: linear-gradient(135deg, #ff6a00 0%, #e85e00 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.pillar-cta-band h2 {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  margin: 0 0 14px;
  color: #fff;
}
.pillar-cta-band p {
  font-size: 1.05rem;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
}
.pillar-cta-band .btn-primary {
  display: inline-block;
  background: #fff;
  color: #ff6a00;
  padding: 14px 30px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.pillar-cta-band .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* ARTICLES + RELATED CLUSTERS */
.pillar-articles,
.pillar-related {
  background: #fafaf7;
  padding: 60px 0;
  border-top: 1px solid #e2e0d8;
}
.pillar-articles .sec-header,
.pillar-related .sec-header {
  margin-bottom: 28px;
}
.pillar-articles .kicker,
.pillar-related .kicker {
  display: inline-block;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #ff6a00;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.pillar-articles .sec-title,
.pillar-related .sec-title {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  color: #0b0b0d;
  margin: 0;
}
.pillar-articles-list,
.pillar-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.pillar-articles-list li,
.pillar-related-list li {
  margin: 0;
}
.pillar-articles-list a,
.pillar-related-list a {
  display: block;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #e2e0d8;
  color: #0b0b0d;
  text-decoration: none;
  font-weight: 600;
  transition: border-color 0.18s, transform 0.18s;
}
.pillar-articles-list a:hover,
.pillar-related-list a:hover {
  border-color: #ff6a00;
  color: #ff6a00;
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .pillar-hero { padding: 40px 0 30px; }
  .pillar-content h2 { margin-top: 36px; }
  .mach-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   CLUSTER GRID — sekcja "Wybierz typ pakowarki" na index.html i katalog.html
   ========================================================================= */
.cluster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.cluster-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid #e2e0d8;
  border-left: 4px solid #ff6a00;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.cluster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  border-left-color: #e85e00;
}
.cluster-icon {
  font-family: var(--font-mono, monospace);
  font-size: 1.8rem;
  color: #ff6a00;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cluster-card h3 {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0b0b0d;
  margin: 0;
  line-height: 1.15;
}
.cluster-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #2a2a2c;
  margin: 0;
  flex: 1;
}
.cluster-meta {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: #5a5a5c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 6px;
}
.cluster-cta {
  font-family: var(--font-mono, monospace);
  font-size: 0.78rem;
  color: #ff6a00;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 4px;
}
.cluster-card:hover .cluster-cta { color: #e85e00; }

@media (max-width: 720px) {
  .cluster-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   FAQ (sekcja na index.html z mikrodanymi FAQPage)
   ========================================================================= */
.faq-list {
  max-width: 860px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid #e2e0d8;
  border-left: 3px solid #ff6a00;
  transition: border-color 0.18s;
}
.faq-item[open] {
  border-color: #ff6a00;
  border-left-width: 4px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #0b0b0d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: color 0.18s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: #ff6a00;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: '−';
  transform: rotate(0);
}
.faq-item summary:hover {
  color: #ff6a00;
}
.faq-answer {
  padding: 0 24px 22px;
  color: #2a2a2c;
  line-height: 1.65;
  font-size: 1rem;
}
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin: 0; }
.faq-answer a { color: #ff6a00; }

/* =========================================================================
   MEDIA HUB — galeria + filmy
   ========================================================================= */
.media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.media-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  border: 1px solid #e2e0d8;
  background: #ededea;
  transition: transform 0.18s, border-color 0.18s;
}
.media-thumb:hover {
  transform: scale(1.02);
  border-color: #ff6a00;
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 30px;
}
.media-film-card {
  background: #fff;
  border: 1px solid #e2e0d8;
  overflow: hidden;
}
.media-film-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #2a2a2c 0%, #1a1a1c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.media-film-thumb .play-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 106, 0, 0.85);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
}
.media-film-card h3 {
  font-family: var(--font-display, 'Archivo Narrow'), sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0b0b0d;
  margin: 14px 18px 6px;
}
.media-film-card p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #5a5a5c;
  margin: 0 18px 16px;
}

/* =========================================================================
   Cluster badge link — używane w sekcji 'Podobne maszyny' na podstronie maszyny
   ========================================================================= */
.cluster-badge-link {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 10px 18px;
  background: rgba(255, 106, 0, 0.08);
  border: 1px solid rgba(255, 106, 0, 0.3);
  color: #ff6a00;
  text-decoration: none;
  font-family: var(--font-mono, monospace);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.15s, border-color 0.15s;
}
.cluster-badge-link:hover {
  background: rgba(255, 106, 0, 0.15);
  border-color: #ff6a00;
}
