/* Complex – zaopatrzenie przemysłu spożywczego
   Statyczny arkusz stylów, bez zewnętrznych zależności. */

:root {
  --navy: #1b3a57;
  --navy-dark: #12283d;
  --accent: #c8b900;
  --accent-soft: #f4f0c4;
  --text: #1f2933;
  --muted: #5b6875;
  --line: #e3e7eb;
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 6px 20px rgba(16, 32, 48, .06);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

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

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

a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-dark); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(160%) blur(6px);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 24px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy);
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px; letter-spacing: -.5px;
  box-shadow: inset 0 -4px 0 var(--accent);
}
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: .5px; line-height: 1; }
.brand-name small {
  display: block; font-weight: 500; font-size: 12px; letter-spacing: .3px;
  color: var(--muted); margin-top: 4px;
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600; color: var(--text);
}
.nav a:hover { background: var(--bg-alt); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }

.nav .btn-nav { background: var(--navy); color: #fff; margin-left: 8px; }
.nav .btn-nav:hover { background: var(--navy-dark); color: #fff; }

/* Menu mobilne bez JavaScriptu */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

@media (max-width: 760px) {
  .nav-toggle-label {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px;
    font-weight: 600; user-select: none;
  }
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block; width: 18px; height: 2px; background: var(--text); position: relative;
  }
  .nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; }
  .nav-toggle-label span::before { top: -6px; }
  .nav-toggle-label span::after { top: 6px; }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .nav .btn-nav { margin: 8px 0 0; text-align: center; }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid var(--accent); }
}

/* ---------- Sekcje ---------- */

section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--navy);
  border-left: 4px solid var(--accent); padding-left: 10px; margin-bottom: 14px;
}

h1, h2, h3 { line-height: 1.2; color: var(--navy-dark); margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.5px; }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.3px; }
h3 { font-size: 20px; }

.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }

.section-head { max-width: 760px; margin-bottom: 40px; }

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 72px;
  background:
    linear-gradient(135deg, rgba(27, 58, 87, .97), rgba(18, 40, 61, .97)),
    repeating-linear-gradient(45deg, #1b3a57 0 2px, #12283d 2px 14px);
  color: #fff;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 185, 0, .28), transparent);
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: #fff; }
.hero .lead { color: #d3dde7; }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

.hero-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; z-index: 1; }
.hero-tiles div {
  background: #fff; border-radius: var(--radius); aspect-ratio: 1;
  display: grid; place-items: center; padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.hero-tiles img { max-height: 100%; object-fit: contain; }
.hero-tiles div:nth-child(2) { transform: translateY(-18px); }
.hero-tiles div:nth-child(5) { transform: translateY(-18px); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 8px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--navy-dark); }
.btn-primary:hover { background: #ddd000; color: var(--navy-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-dark); color: #fff; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .15); color: #d3dde7; font-size: 15px;
}
.hero-facts strong { display: block; color: #fff; font-size: 17px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-tiles { max-width: 460px; }
}

/* ---------- Karty kategorii ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfd6dd; color: inherit; }

.card-img {
  height: 170px; display: grid; place-items: center; padding: 18px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.card-img img { max-height: 100%; width: auto; object-fit: contain; }

.card-body { padding: 18px 20px 22px; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card-more { margin-top: 12px; font-weight: 700; font-size: 15px; color: var(--navy); }

/* ---------- O firmie ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) no-repeat center / 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1.5' fill='none' stroke='%231b3a57' stroke-width='2'/%3E%3C/svg%3E");
}

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.stat b { display: block; font-size: 18px; color: var(--navy-dark); margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- Oferta – podstrona ---------- */

.page-head { padding: 56px 0 40px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-bottom: 0; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a {
  padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: 15px;
}
.toc a:hover { border-color: var(--navy); }

.group { padding: 64px 0; border-bottom: 1px solid var(--line); }
.group:last-of-type { border-bottom: 0; }
.group-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 28px; }
.group-head p { margin: 0; color: var(--muted); max-width: 70ch; }
@media (max-width: 700px) { .group-head { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 24px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; height: 220px; object-fit: cover; }
.gallery figcaption { padding: 10px 14px; font-size: 14px; color: var(--muted); }

/* ---------- CTA ---------- */

.cta {
  background: var(--navy); color: #fff; border-radius: 14px; padding: 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { margin: 0; color: #d3dde7; }
@media (max-width: 700px) { .cta { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- Kontakt ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact-list .label { font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list a { font-weight: 600; }

.map-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-card img { width: 100%; }
.map-card p { margin: 0; padding: 14px 18px; font-size: 15px; color: var(--muted); }



/* ---------- Stopka ---------- */

.site-footer { background: var(--navy-dark); color: #b8c6d4; padding: 48px 0 28px; font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; margin: 0 0 12px; font-size: 15px; letter-spacing: .5px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 55vh; display: grid; place-items: center; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.notfound .lead { margin-inline: auto; }
.hero-actions.center { justify-content: center; }
@media (min-width: 900px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.nav .btn-nav[aria-current="page"] { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px; }
.contact-list a[href^="mailto"] { white-space: nowrap; }
@media (max-width: 480px) { .contact-list li { grid-template-columns: 84px 1fr; } .contact-card { padding: 22px; } }
