:root {
  /* TŁA – GRANATY */
  --bg-body: #1f2430;
  --bg-surface: #262c3a;
  --bg-surface-alt: #222836;

  /* AKCENT */
  --accent: #B1122D;

  /* TEKST */
  --text-main: #f4f6fa;
  --text-muted: #c7ccd8;

  /* OBRAMOWANIA */
  --border-soft: rgba(255, 255, 255, 0.10);

  /* GEOMETRIA */
  --radius-lg: 10px;

  /* CIENIE */
  --shadow-soft: 0 12px 26px rgba(0, 0, 0, 0.55);
}

/* ===========================
   GLOBAL
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  font-size: 14.5px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  letter-spacing: 0.03em;
}

:focus-visible {
  outline: 2px solid rgba(177, 18, 45, 0.55);
  outline-offset: 3px;
  border-radius: 10px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(31, 36, 48, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.20rem 0;
}

.brand-logo {
  height: 68px;
  width: auto;
  display: block;
}

/* NAV */
.main-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
  padding-right: 15px;
}

.main-nav a {
  text-decoration: none;
  color: rgba(244, 246, 250, 0.78);
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 300;
  transition: color 160ms ease;
}

.main-nav a:hover {
  color: var(--accent);
}

/* ===========================
   HERO
   =========================== */
.hero {
  padding: 4rem 0 3.6rem;
}

.hero-text {
  position: relative;
  padding-left: 2.6rem;
}

.hero-text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 2px;
  height: 92px;
  background: var(--accent);
}

.hero-overline {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(244, 246, 250, 0.72);
  margin: 0 0 1rem;
}

.hero-title {
  font-size: clamp(1.85rem, 2.8vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0 0 1.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.hero-subtitle {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72em;
  font-weight: 300;
  opacity: 0.85;
  letter-spacing: 0.10em;
}

.hero-lead {
  max-width: 700px;
  color: rgba(244, 246, 250, 0.76);
  margin: 0 0 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.3rem;
}

/* BUTTONS */
.btn {
  padding: 0.56rem 1.52rem;
  border-radius: 999px;
  font-size: 0.84rem;
  text-decoration: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #C31636;
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.btn-outline:hover {
  border-color: rgba(177, 18, 45, 0.60);
}

/* META */
.hero-meta {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(244, 246, 250, 0.62);
  margin-bottom: 0.35rem;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-main);
  line-height: 1.55;
}

.meta-list li {
  margin: 0.15rem 0;
}

/* DIVIDER */
.section-divider {
  width: 34%;
  max-width: 480px;
  height: 16px;
  margin: 0 0 3rem auto;
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: "";
  position: absolute;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.section-divider::before {
  width: 100%;
  top: 0;
}

.section-divider::after {
  width: 58%;
  top: 7px;
  opacity: 0.55;
}

/* ===========================
   SECTIONS & GRIDS
   =========================== */
.section {
  padding: 2.9rem 0;
}

.section-muted {
  background: var(--bg-surface-alt);
}

.section-header {
  margin-bottom: 1.8rem;
}

.section h2 {
  font-size: 1.55rem;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  font-weight: 300;
}

.section p {
  color: rgba(244, 246, 250, 0.74);
}

.features-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.feature,
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.05rem;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(177, 18, 45, 0.35);
}

/* ===========================
   KONTAKT
   =========================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 300px);
  gap: 2rem;
  align-items: center;
}

.contact-content {
  min-width: 0;
}

.contact-details {
  margin-top: 1rem;
  display: grid;
  gap: 0.45rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon {
  width: 20px;
  height: 20px;
  fill: var(--text-muted);
  flex-shrink: 0;
}

.contact-item a {
  color: var(--text-main);
  text-decoration: none;
}

.contact-item a:hover {
  color: rgba(177, 18, 45, 0.9);
  text-decoration: underline;
}

.contact-meta {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: rgba(244, 246, 250, 0.75);
}

.contact-address,
.contact-company {
  display: flex;
  flex-direction: column;
}

.contact-company {
  margin-top: 0.6rem;
}

.nip-line,
.regon-line {
  display: inline-block;
  white-space: nowrap;
}

.nip-line .d,
.regon-line .d {
  display: inline;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 1.3rem;
  background: #181c26;
}

.footer-inner {
  text-align: center;
}

.site-footer p {
  margin: 0.2rem;
  font-size: 0.82rem;
  color: rgba(244, 246, 250, 0.70);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .features-grid,
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .main-nav {
    gap: 1rem;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
  }
}

@media (max-width: 640px) {
  .features-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* LOGO: linia 1, MENU: linia 2 */
  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .brand-logo {
    height: 62px;
  }

.main-nav {
    width: 100%;
    margin-left: 0;          /* było 15px */
    padding-left: 15px;      /* lewy oddech */
    padding-right: 15px;     /* prawy oddech */
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
    gap: 0.7rem;
  }

  .main-nav a {
    font-size: 0.86rem;
    letter-spacing: 0.14em;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}