/* MC-Project – arkusz stylów
   Kolory z logo: granat #003399, pomarańcz #FF7F00 */

:root {
  --navy: #003399;
  --navy-dark: #00246b;
  --orange: #ff7f00;
  --text: #1c2230;
  --muted: #5b6475;
  --line: #dde1e8;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

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

a { color: var(--navy); }
a:hover { color: var(--navy-dark); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}
.brand img { width: 56px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.15rem; color: var(--navy); }
.brand-text small { font-size: .78rem; color: var(--muted); }

.main-nav { display: flex; gap: 24px; margin-left: auto; }
.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: .95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--orange); color: var(--text); }

.header-phone {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Wstęp ---------- */
.intro { padding: 64px 0 72px; }
.intro-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-left: 12px;
  border-left: 3px solid var(--orange);
}
.lead { font-size: 1.1rem; color: #3a4252; max-width: 34em; }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.intro-photo { margin: 0; }

.btn {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 3px;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-link { padding-left: 0; padding-right: 0; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Sekcje ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.prose { max-width: 40em; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.facts dt { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.facts dd { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Usługi ---------- */
.services {
  list-style: none;
  counter-reset: usl;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}
.services > li {
  counter-increment: usl;
  min-width: 0;
  padding-top: 20px;
  border-top: 2px solid var(--navy);
}
.services > li::before {
  content: counter(usl, decimal-leading-zero);
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 6px;
}
.services p { color: #3a4252; }
.services ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.services ul li { margin-bottom: 4px; }

/* ---------- Realizacje ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head p { color: var(--muted); font-size: .95rem; margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin-top: 24px;
}
.gallery figure { margin: 0; }
.gallery a { display: block; overflow: hidden; background: var(--bg-alt); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
.gallery figcaption { margin-top: 10px; display: flex; flex-direction: column; }
.gallery figcaption strong { font-size: 1rem; }
.gallery figcaption span { font-size: .9rem; color: var(--muted); }

/* ---------- Kontakt ---------- */
.section-contact { background: var(--navy); color: #fff; border-top: 0; }
.section-contact h2 { color: #fff; }
.contact-intro { color: #d5dcf0; font-size: 1.05rem; }
.contact-card { background: #fff; color: var(--text); padding: 32px 36px; border-radius: 3px; max-width: 560px; }
.contact-name { font-size: 1.3rem; font-weight: 700; margin: 0; }
.contact-role { color: var(--muted); margin: 0 0 20px; }
.contact-list { margin: 0; }
.contact-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.contact-list dt { color: var(--muted); font-size: .95rem; }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Stopka ---------- */
.site-footer { padding: 24px 0; font-size: .88rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-inner p { margin: 0; }

/* ---------- Powiększenie zdjęć ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(1100px, 94vw);
  color: #fff;
}
.lightbox::backdrop { background: rgba(10, 14, 25, .88); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox-caption { text-align: center; margin: 12px 0 0; }
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: #fff;
  color: var(--text);
  border: 0;
  border-radius: 3px;
  padding: 8px 14px;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}

/* ---------- Telefon / tablet ---------- */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-phone { margin-left: auto; }
  .intro { padding: 40px 0 48px; }
  .intro-inner, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .services { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { gap: 12px; min-height: 64px; }
  .brand img { width: 44px; }
  .brand-text small { display: none; }
  .header-phone { font-size: .9rem; }
  .gallery { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 12px; }
  .facts div { display: flex; align-items: baseline; gap: 12px; }
  .contact-card { padding: 24px 20px; }
  .contact-list div { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Typy obiektów ---------- */
.sectors-title { margin-top: 28px; font-size: 1rem; }
.sectors {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sectors li {
  border: 1px solid var(--line);
  padding: 6px 12px;
  font-size: .92rem;
  border-radius: 3px;
}
/* ---------- Dlaczego warto ---------- */
.why { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.why-title { font-size: 1.35rem; margin-bottom: 24px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.why-grid > div { padding-left: 14px; border-left: 3px solid var(--orange); }
.why h4 { font-size: 1rem; margin: 0 0 6px; }
.why p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 1100px) and (min-width: 901px) {
  
.services { grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
}