/* ============================================================
   MR Lumines — arkusz stylów
   Kolorystyka: ciemny granat, grafit, biel, jasna szarość,
   akcent stalowo-niebieski.
   ============================================================ */

:root {
  --navy: #0d1b2a;          /* ciemny granat — tła główne */
  --navy-2: #14263c;        /* granat jaśniejszy — karty na ciemnym */
  --navy-3: #1b3252;        /* obramowania na ciemnym */
  --graphite: #2a3138;      /* grafit */
  --ink: #1e2630;           /* kolor tekstu na jasnym tle */
  --muted: #5a6675;         /* tekst drugorzędny */
  --light: #f4f6f8;         /* jasna szarość — tła sekcji */
  --white: #ffffff;
  --line: #dfe4e9;          /* linie, obramowania na jasnym */
  --accent: #3d8fb5;        /* stalowy niebieski — akcent */
  --accent-dark: #2c6f8f;
  --accent-soft: #e7f1f6;   /* tło akcentowe bardzo jasne */
  --green: #5d7f6d;         /* złamana zieleń — akcent drugorzędny */
  --radius: 6px;
  --shadow: 0 2px 14px rgba(13, 27, 42, 0.08);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Typografia ---------- */

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; margin-bottom: 0.4em; }

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 0.9em;
}

.dark .section-label { color: #7fbcd8; }

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

.dark .lead { color: #aebdcc; }

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

section { padding: 84px 0; }

.section-light { background: var(--light); }
.section-white { background: var(--white); }

.dark {
  background: var(--navy);
  color: #e9eef3;
}

.dark h2, .dark h3 { color: var(--white); }

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

/* ---------- Przyciski ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: #b8c2cc;
}
.btn-outline-dark:hover { border-color: var(--navy); }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-3);
}

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

.logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo img { height: 56px; width: auto; display: block; }
.logo span { color: var(--accent); }
.logo small {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fa2b5;
}

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

.main-nav > ul {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.main-nav a {
  color: #cdd8e2;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 10px 13px;
  border-radius: 4px;
  text-decoration: none;
  display: block;
}

.main-nav a:hover, .main-nav a.active { color: var(--white); background: var(--navy-2); }

.nav-cta {
  margin-left: 14px;
  background: var(--accent);
  color: var(--white) !important;
  padding: 11px 20px !important;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

/* rozwijane menu usług */
.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  list-style: none;
  padding: 8px;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }

.dropdown a {
  color: var(--ink) !important;
  padding: 10px 14px;
  border-radius: 4px;
}
.dropdown a:hover { background: var(--accent-soft); color: var(--accent-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy-3);
  border-radius: 4px;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  padding: 7px 12px;
  cursor: pointer;
}

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

.hero {
  background:
    linear-gradient(115deg, rgba(9, 19, 32, 0.94) 0%, rgba(13, 27, 42, 0.88) 55%, rgba(20, 38, 60, 0.82) 100%),
    var(--navy) url("../img/hero.jpg") center/cover no-repeat;
  /* Docelowo: ciemne zdjęcie — mur ceglany, piwnica, fundamenty, prace iniekcyjne */
  color: var(--white);
  padding: 110px 0 90px;
}

.hero h1 { max-width: 20ch; margin-bottom: 0.5em; }

.hero .subtitle {
  font-size: 1.15rem;
  color: #c3d0dc;
  max-width: 62ch;
  margin-bottom: 2em;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-badge {
  font-size: 0.94rem;
  color: #dbe4ec;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hero-badge::before {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  margin-top: 8px;
  background: var(--accent);
  border-radius: 2px;
}

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

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}

.card h3 { color: var(--navy); }

.card p { color: var(--muted); font-size: 0.96rem; }

.card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
  color: var(--ink);
}

.card ul li {
  padding: 5px 0 5px 20px;
  position: relative;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 9px;
  height: 2px;
  background: var(--accent);
}

.card .card-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.93rem;
}

/* karty na ciemnym tle */
.dark .card {
  background: var(--navy-2);
  border-color: var(--navy-3);
  box-shadow: none;
}
.dark .card h3 { color: var(--white); }
.dark .card p, .dark .card ul { color: #aebdcc; }

/* ---------- Listy problemów / obiektów ---------- */

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 28px 0;
}

.pill-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.92rem;
  color: var(--ink);
}

.dark .pill-list li {
  background: var(--navy-2);
  border-color: var(--navy-3);
  color: #d6dfe8;
}

.check-list { list-style: none; padding: 0; margin: 20px 0; }

.check-list li {
  padding: 7px 0 7px 30px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Proces (kroki) ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }

.step {
  background: var(--navy-2);
  border: 1px solid var(--navy-3);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.step h3 { font-size: 1.02rem; color: var(--white); }
.step p { font-size: 0.89rem; color: #aebdcc; }

/* ---------- Wyróżnione cytaty / konkluzje ---------- */

.callout {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 22px 26px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--navy);
  max-width: 800px;
  margin-top: 36px;
}

.dark .callout {
  background: var(--navy-2);
  color: #e9eef3;
}

/* ---------- Realizacje ---------- */

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-photo {
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #22384f, #0d1b2a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d93a8;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-body { padding: 24px; }

.project-body h3 { font-size: 1.05rem; }

.project-meta { font-size: 0.9rem; color: var(--muted); }
.project-meta dt { font-weight: 600; color: var(--navy); margin-top: 10px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.project-meta dd { margin: 2px 0 0; }

/* ---------- Baza wiedzy ---------- */

.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-card h3 { font-size: 1.02rem; }
.article-card p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.article-card a { font-weight: 600; font-size: 0.9rem; }

/* ---------- Formularz ---------- */

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

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.form-field .req { color: var(--accent-dark); }

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid #c3ccd5;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted);
}
.form-consent input { margin-top: 4px; }

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

.form-success {
  display: none;
  background: #eaf4ee;
  border: 1px solid #bcd8c6;
  color: #2e5b41;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-top: 18px;
}

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

.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, #16304d 100%);
  color: var(--white);
  padding: 72px 0;
}

.cta-band h2 { color: var(--white); max-width: 24ch; }
.cta-band p { color: #bccbd9; max-width: 60ch; margin-bottom: 1.8em; }

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

.site-footer {
  background: #0a1522;
  color: #9fb0c0;
  padding: 64px 0 32px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #9fb0c0; }
.site-footer a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #1b2c40;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: #6d7f91;
}

/* ---------- Podstrony ---------- */

.page-hero {
  background: linear-gradient(115deg, rgba(9,19,32,0.95), rgba(20,38,60,0.88)), var(--navy);
  color: var(--white);
  padding: 72px 0 56px;
}

.page-hero h1 { max-width: 26ch; margin-bottom: 0.4em; }
.page-hero p { color: #c3d0dc; max-width: 66ch; font-size: 1.08rem; }

.breadcrumbs {
  font-size: 0.83rem;
  color: #8fa2b5;
  margin-bottom: 22px;
}
.breadcrumbs a { color: #8fa2b5; }
.breadcrumbs a:hover { color: var(--white); }

.content-block { max-width: 800px; }
.content-block h2 { margin-top: 1.6em; }
.content-block p + p { margin-top: 1em; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* ---------- Responsywność ---------- */

@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-badges { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--navy-3);
    padding: 12px 24px 24px;
  }

  .main-nav.open { display: block; }

  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }

  .main-nav a { padding: 13px 10px; font-size: 1rem; }

  .dropdown {
    display: block;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 18px;
  }

  .dropdown a { color: #9fb0c0 !important; font-size: 0.93rem; }
  .dropdown a:hover { background: var(--navy-2); }

  .nav-cta { margin: 14px 0 0; text-align: center; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding: 72px 0 60px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-badges { grid-template-columns: 1fr; gap: 10px; margin-top: 44px; }
  .form-grid { grid-template-columns: 1fr; }
  .