/* ==========================================================================
   Zmienne / reset
   ========================================================================== */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-alt: #eef0ee;
  --text: #1b2226;
  --muted: #5c6670;
  --border: #e2e0d9;

  --primary: #1f4d5c;
  --primary-dark: #12333e;
  --primary-light: #2f6c80;
  --accent: #c98a3e;
  --accent-dark: #a86f2c;

  --dark-bg: #12242b;
  --dark-text: #dfe6e8;
  --dark-muted: #93a3a9;

  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px -12px rgba(18, 36, 43, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(18, 36, 43, 0.18);

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
}

/* ==========================================================================
   Placeholder helper
   ========================================================================== */
.placeholder-note {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(201, 138, 62, 0.12);
  border: 1px dashed var(--accent);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 12px;
}

/* ==========================================================================
   Przyciski
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn--outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================================================
   Header / nawigacja
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 245, 242, 0.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo__mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--accent);
}

.logo__text-sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: rgba(31, 77, 92, 0.08);
  color: var(--primary-dark);
}

.main-nav a.is-active {
  color: var(--primary-dark);
  background: rgba(31, 77, 92, 0.1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-cta .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}
.header-cta .btn:hover {
  background: var(--primary-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--primary-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero (strona główna)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 45%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 30, 36, 0.25) 0%, rgba(15, 30, 36, 0.55) 45%, rgba(11, 24, 29, 0.94) 100%),
    linear-gradient(100deg, rgba(18, 51, 62, 0.75) 0%, rgba(18, 51, 62, 0.15) 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 120px;
  padding-bottom: 96px;
  max-width: 720px;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffd8a3;
  margin-bottom: 18px;
}

.hero .eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
  color: #fff;
}

.hero__lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  width: 100%;
  height: auto;
  color: var(--bg);
  line-height: 0;
}

/* ==========================================================================
   Baner strony wewnętrznej (bez zdjęcia)
   ========================================================================== */
.page-hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08), transparent 45%),
    linear-gradient(135deg, var(--primary-dark), var(--primary) 65%, var(--primary-light));
  color: #fff;
  padding: 72px 0 56px;
}

.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffd8a3;
  margin-bottom: 14px;
}
.page-hero .eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: #fff;
  max-width: 680px;
}

.page-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* ==========================================================================
   Sekcje ogólne
   ========================================================================== */
.section {
  padding: 88px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--alt {
  background: var(--surface-alt);
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--primary-dark);
}

.section-heading p {
  color: var(--muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Karty pojemności (strona główna)
   ========================================================================== */
.capacity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.capacity-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.capacity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.capacity-card__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  color: var(--primary);
}

.capacity-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.capacity-card__unit {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-left: 2px;
}

.capacity-card__label {
  display: block;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ==========================================================================
   Cechy / atuty
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  border: 1px solid var(--border);
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.feature-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

/* ==========================================================================
   O nas — statystyki i bloki
   ========================================================================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: center;
}

.stat-card {
  padding: 28px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.stat-card__value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-card__label {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 6px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img,
.split .media-placeholder {
  border-radius: var(--radius-lg);
}

.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 4 / 3;
  background: var(--surface-alt);
  border: 1.5px dashed var(--border);
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.media-placeholder svg {
  width: 54px;
  height: 54px;
  color: var(--primary-light);
  opacity: 0.7;
}

.media-placeholder span {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   Produkty
   ========================================================================== */
.product-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}

.product-block:last-child {
  border-bottom: none;
}

.product-block.is-reversed .product-block__media {
  order: 2;
}

.product-block__media img,
.product-block__media .media-placeholder {
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.product-block__media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.product-block__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.product-block h2 {
  color: var(--primary-dark);
  font-size: 1.7rem;
}

.spec-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.spec-list li {
  font-size: 0.92rem;
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.spec-list strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.spec-list em {
  font-style: normal;
  color: var(--muted);
}

/* ==========================================================================
   Certyfikaty
   ========================================================================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cert-card {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
}

.cert-card__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  color: var(--primary);
}

.cert-card h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.cert-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-row {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.contact-row:first-child {
  border-top: none;
  padding-top: 0;
}

.contact-row svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-row strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.contact-row em {
  font-style: normal;
  color: var(--muted);
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-grid .form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

/* ==========================================================================
   Stopka
   ========================================================================== */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-muted);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid .logo {
  color: #fff;
}
.footer-grid .logo__text-sub {
  color: var(--dark-muted);
}

.footer-about p {
  max-width: 320px;
  font-size: 0.92rem;
  margin-top: 14px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--dark-muted);
  font-size: 0.92rem;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  font-size: 0.82rem;
}

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 980px) {
  .capacity-grid,
  .feature-grid,
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-block {
    grid-template-columns: 1fr;
  }

  .product-block.is-reversed .product-block__media {
    order: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .main-nav,
  .header-cta .btn--outline-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.is-open .main-nav {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 20px;
    display: none;
    gap: 2px;
  }

  .main-nav a {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .hero {
    min-height: 92vh;
  }

  .hero__content {
    padding-top: 90px;
    padding-bottom: 72px;
  }

  .capacity-grid,
  .feature-grid,
  .stat-grid,
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 64px 0;
  }
}
