:root {
  --bg: #f8fafc;         /* Jasny, nowoczesny szary (Slate 50) */
  --bg-dark: #0f172a;    /* Głęboki, elegancki grafit (Slate 900) */
  --surface: #ffffff;
  --surface-2: #f1f5f9;  /* Jasny szary do sekcji kontrastowych */
  --text: #1e293b;       /* Ciemny antracyt dla świetnej czytelności */
  --muted: #64748b;      /* Stonowany szary do opisów */
  --primary: #059669;    /* Precyzyjna, biznesowa zieleń szmaragdowa */
  --primary-2: #10b981;  /* Jaśniejszy odcień do akcentów i hoverów */
  --border: #e2e8f0;     /* Cienkie, czyste linie podziału */
  --radius: 12px;        /* Nowoczesne, delikatne zaokrąglenie */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.header-action {
  margin-left: auto;
}

.logo {
  color: var(--bg-dark);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

/* Hero Section */
.hero {
  padding: 6rem 0 5rem;
  background: radial-gradient(100% 100% at top left, #f0fdf4 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  background: #dcfce7;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--bg-dark);
  letter-spacing: -0.03em;
}

.hero p {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 620px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.btn-primary:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}

/* Grid & Cards (Zamiast starej listy) */
.section-light {
  padding: 6rem 0;
  background: var(--bg);
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  max-width: 760px;
  margin: 2.5rem auto 0;
  text-align: center;
}

/* Wyśrodkowanie kontenera flex z mailem */
.cta-box .contact-details {
  justify-content: center;
}

/* Nadpisanie niewidocznego białego koloru na biznesowy ciemny grafit */
.cta-box .contact-item a {
  color: var(--bg-dark);
}

.cta-box .contact-item a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.cta-box h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2vw, 2rem);
  color: var(--bg-dark);
}

.cta-box p {
  margin: 0 0 1.75rem;
  color: var(--muted);
  line-height: 1.8;
}

.section-title h2 {
  margin: 0 0 0.5rem;
  font-size: 2.25rem;
  color: var(--bg-dark);
  letter-spacing: -0.02em;
}

.grid-3,
    .grid-4 {
      display: grid;
      gap: 2rem;
    }

    .grid-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .grid-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.25rem;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: #f0fdf4;
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: var(--bg-dark);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Contact Section */
.section-dark {
  padding: 5rem 0;
  background: var(--bg-dark);
  color: white;
}

.contact-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 3rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-box h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.contact-box p {
  color: #94a3b8;
  margin: 0 0 2rem;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item span {
  display: block;
  color: #64748b;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-item a, .contact-item strong {
  font-size: 1.25rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  color: var(--primary-2);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding: 2rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-column h4 {
  margin: 0 0 0.85rem;
  color: white;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: white;
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  background: #090d16;
  color: #64748b;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-details {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   STYLE DLA PODSTRON KATALOGOWYCH (FEFCO / PRODUKTY)
   ========================================================================== */

/* Link powrotu w nagłówku */
.back-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.back-link:hover {
  color: var(--primary);
}

/* Pasek informacyjny o modernizacji */
.info-banner {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  font-size: 0.9rem;
  color: var(--text);
}
.info-banner a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.info-banner a:hover {
  text-decoration: underline;
}

/* Nowoczesny układ dwukolumnowy: Tekst + Sticky CTA */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  padding: 4rem 0;
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: minmax(0, 2.5fr) 1fr;
    align-items: start;
  }
}

/* Typografia artykułu technicznego */
article h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--bg-dark);
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
article h2 {
  font-size: 1.65rem;
  color: var(--bg-dark);
  letter-spacing: -0.01em;
  margin: 3rem 0 1rem;
}
article h3 {
  font-size: 1.2rem;
  color: var(--bg-dark);
  margin: 2rem 0 1rem;
}
article p {
  color: #334155; /* Bardzo czytelny, ciemny grafit */
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
}
article ul {
  padding-left: 1.25rem;
  margin: 0 0 2rem;
}
article li {
  margin-bottom: 0.75rem;
  color: #334155;
}

/* Karta wezwania do działania w bocznej kolumnie */
.cta-box-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
  position: sticky;
  top: 7rem; /* Przykleja element podczas przewijania pod sticky-headerem */
}
.cta-box-sidebar h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  color: var(--bg-dark);
  letter-spacing: -0.01em;
}
.cta-box-sidebar p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  line-height: 1.5;
}
.cta-box-sidebar .btn {
  width: 100%; /* Przycisk na całą szerokość karty bocznej */
}

/* Usunięcie domyślnego podkreślenia z kart powiązanych standardów */
.grid-3 .card {
  text-decoration: none;
  display: block;
}

