/* =====================================================
   CIVIL ENGINEERING – style
   Wartości (kolory, czcionki) pobrane ze zrzutu strony.
   ===================================================== */
:root {
  --lime: #afcb1f;          /* ikony kontaktu */
  --lime-btn: #adc740;      /* przycisk "Skontaktuj się z nami" */
  --dark: #3d3d3d;          /* ciemne tło tekstur */
  --ink: #111;              /* nagłówki */
  --text: #857d82;          /* tekst "O nas" */
  --text-strong: #6c6468;
  --grey-bg: #f3f3f3;
  --header-h: 90px;
  --font: "Roboto", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.sec-title { font-size: 40px; font-weight: 500; text-align: center; line-height: 1.2; color: var(--ink); }
.sec-title.thin { font-weight: 300; font-size: 44px; }
.sec-title.light { color: #fff; }

/* ================= HEADER ================= */
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; transition: height .3s; }
#header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, box-shadow .3s; }
#header.solid { background: rgba(48, 44, 42, .96); box-shadow: 0 2px 14px rgba(0,0,0,.35); }
#header.solid .header-inner { height: 64px; }
.logo img { height: 46px; width: auto; transition: height .3s; }
#header.solid .logo img { height: 36px; }

nav { margin-left: auto; }
nav ul { display: flex; align-items: center; }
nav a { display: block; padding: 8px 16px; color: #fff; font-size: 13px; font-weight: 500; letter-spacing: .02em; text-shadow: 0 1px 3px rgba(0,0,0,.5); transition: color .2s; }
nav a:hover, nav a.active { color: var(--lime); }

.search-btn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #000; color: #fff; font-size: 12px; cursor: pointer; display: grid; place-items: center; flex: none; }
.search-btn:hover { background: var(--lime); color: #000; }

.search-bar { max-height: 0; overflow: hidden; background: rgba(20,20,20,.96); transition: max-height .25s; }
.search-bar.open { max-height: 90px; }
.search-bar .wrap { display: flex; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.search-bar input { flex: 1; background: transparent; border: 0; border-bottom: 2px solid var(--lime); color: #fff; font: 400 16px var(--font); padding: 8px 2px; outline: none; }
.search-bar span { color: #ccc; font-size: 13px; min-width: 90px; }

.burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 8px; }
.burger span { display: block; height: 2px; background: #fff; margin: 7px 0; transition: transform .25s, opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ================= HERO ================= */
.hero {
  height: clamp(420px, 38.1vw, 780px);
  background: #3b3633 url("../img/hero.avif") center / cover no-repeat;
  display: grid; place-items: center;
  position: relative;
}
.hero::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 160px; background: linear-gradient(rgba(30,26,24,.55), transparent); pointer-events: none; }
.hero-logo { position: relative; z-index: 1; width: min(530px, 78vw); height: auto; margin-top: 10px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.35)); }

/* ================= O NAS ================= */
.about { padding: 150px 20px 170px; }
.about-grid { max-width: 880px; margin: 0 auto; display: grid; grid-template-columns: 290px 1fr; align-items: center; }
.about-title { font-size: 48px; font-weight: 500; letter-spacing: .01em; }
.about-text p { font-size: 13.5px; line-height: 1.85; color: var(--text); margin-bottom: 1.1em; }
.about-text p:last-child { margin-bottom: 0; }
.about-text strong { font-weight: 700; color: var(--text-strong); }

/* ================= OFERTA ================= */
.offer { background: var(--grey-bg) url("../img/blueprint.avif") center / cover no-repeat; padding: 90px 20px 150px; }
.offer-grid { max-width: 1240px; margin: 60px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 60px 40px; align-items: start; justify-items: center; }
.offer-grid li { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ico { width: 54px; height: 54px; border-radius: 50%; background: #fff; color: #333; display: grid; place-items: center; font-size: 21px; margin-bottom: 14px; box-shadow: 0 1px 6px rgba(0,0,0,.07); flex: none; }
.offer-name { font-size: 17px; line-height: 1.4; color: var(--ink); max-width: 270px; }
.offer-cta { text-align: center; margin-top: 70px; }
.btn-pill { display: inline-block; background: var(--lime-btn); color: #fff; padding: 8px 34px; border-radius: 30px; font: 500 13px var(--font); letter-spacing: .03em; transition: background .2s, transform .2s; }
.btn-pill:hover { background: #98b22f; transform: translateY(-1px); }

/* ================= ZESPÓŁ ================= */
.team { padding: 130px 20px 150px; }
.team-grid { max-width: 1160px; margin: 90px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.member {
  aspect-ratio: 369 / 262; min-height: 220px;
  background: var(--dark) url("../img/texture-dark.avif") center / cover no-repeat;
  color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 38px 36px; transition: transform .3s, box-shadow .3s;
}
.member.m1 { background-position: 8% 50%; }
.member.m2 { background-position: 50% 50%; }
.member.m3 { background-position: 92% 50%; }
.member:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0,0,0,.25); }
.member h3 { font-size: 16px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.member p { margin-top: 10px; font-size: 11.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #e6e6e6; }

/* ================= REALIZACJE ================= */
.works { position: relative; padding: 128px 20px 70px; }
.works-band { position: absolute; inset: 0 0 auto 0; height: 385px; background: var(--dark) url("../img/texture-dark.avif") center / cover no-repeat; }
.works .sec-title { position: relative; }

.carousel { position: relative; max-width: 1340px; margin: 118px auto 0; }
.car-viewport { overflow: hidden; }
.car-track { display: flex; will-change: transform; }
.slide { flex: none; display: block; text-align: center; cursor: pointer; color: var(--ink); text-decoration: none; }
.slide:hover .cap { color: #000; text-decoration: underline; }
.slide .pic { display: block; height: 300px; overflow: hidden; background: #ddd; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.slide:hover img { transform: scale(1.05); }
.slide .cap { display: block; padding: 12px 6px 0; font: 700 13px/1.45 Arial, "Helvetica Neue", sans-serif; min-height: 64px; }

.car-arrow { position: absolute; top: 160px; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #9a9a9a; font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: color .2s; }
.car-arrow:hover { color: #333; }
.car-arrow.prev { left: -40px; }
.car-arrow.next { right: -40px; }

.car-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.car-dots button { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: #ccc; cursor: pointer; transition: background .2s, transform .2s; }
.car-dots button:hover { background: #aaa; }
.car-dots button.on { background: #000; transform: scale(1.1); }

/* ================= REFERENCJE ================= */
.refs { background: var(--grey-bg) url("../img/blueprint-ref.avif") center / cover no-repeat; padding: 75px 20px 80px; }
.refs-row { max-width: 1120px; margin: 70px auto 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px 40px; }
.ref { display: grid; place-items: center; width: 242px; height: 84px; padding: 6px 10px; border: 0; background: none; cursor: pointer; transition: transform .25s; }
.ref:hover { transform: scale(1.06); }
.ref img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; }
.logo-fallback { font: 700 26px var(--font); letter-spacing: .12em; text-transform: uppercase; color: #5b6770; }

/* ================= KONTAKT ================= */
.contact { padding: 90px 20px 25px; }
.contact-grid { max-width: 1310px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 690px) 1fr; gap: 110px; align-items: start; }
.map iframe { display: block; width: 100%; height: 690px; border: 0; background: #e8ecef; }
.contact-title { font-size: 36px; font-weight: 400; line-height: 1.2; margin-bottom: 14px; }
.c-label { font-size: 13px; font-weight: 700; margin: 26px 0 12px; }
.c-label:first-of-type { margin-top: 18px; }
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; max-width: 470px; }
.c-row a, .c-list p { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: #333; }
.c-row i, .c-list i { color: var(--lime); font-size: 18px; width: 20px; text-align: center; flex: none; }
.c-row a:hover, .c-list a:hover { color: #000; text-decoration: underline; }
.c-list { display: grid; gap: 14px; }
.fb { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #3b5998; color: #fff; transition: transform .2s, background .2s; }
.fb:hover { transform: scale(1.1); background: #2d4373; }
.krd { margin-top: 26px; max-width: 420px; width: 100%; }

/* ================= STOPKA ================= */
.footer { background: var(--dark) url("../img/texture-dark.avif") center / cover no-repeat; color: #fff; text-align: center; padding: 88px 20px 96px; font-size: 14px; }
.footer p { margin-bottom: 22px; line-height: 1.4; }
.footer p:last-child { margin-bottom: 0; }
.f-name { font-weight: 700; }
.f-ids span { margin: 0 14px; white-space: nowrap; }

.totop { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--lime-btn); color: #fff; font-size: 16px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; }
.totop.show { opacity: 1; pointer-events: auto; }

/* ================= LIGHTBOX ================= */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.92); padding: 40px 70px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; text-align: center; color: #fff; }
.lightbox img { max-width: 100%; max-height: 82vh; margin: 0 auto; object-fit: contain; }
.lightbox figcaption { margin-top: 12px; font-size: 14px; }
.lb-close, .lb-nav { position: absolute; border: 0; background: none; color: #fff; cursor: pointer; }
.lb-close { top: 10px; right: 18px; font-size: 40px; line-height: 1; padding: 6px 12px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 26px; padding: 18px 16px; opacity: .8; }
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 6px; } .lb-next { right: 6px; }
.lb-nav[hidden] { display: none; }


/* ================= PODSTRONY REALIZACJI ================= */
.sub-banner { background: var(--dark) url("../img/texture-dark.avif") center / cover no-repeat; padding: 150px 20px 64px; color: #fff; }
.sub-wrap { max-width: 1100px; margin: 0 auto; }
.crumb { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: #d6d6d6; transition: color .2s; }
.crumb:hover { color: var(--lime); }
.sub-banner h1 { max-width: 900px; font-size: clamp(26px, 3.4vw, 42px); font-weight: 300; line-height: 1.25; }

.project { padding: 70px 20px 90px; }
.project-inner { max-width: 1100px; margin: 0 auto; }
.proj-text { max-width: 820px; }
.proj-h { font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.client { font-size: 15px; font-weight: 700; color: var(--text-strong); margin-bottom: 18px; }
.proj-text p, .proj-list li { font-size: 15.5px; line-height: 1.85; color: #555; }
.proj-text p { margin-bottom: 1em; }
.proj-text .spec { margin-bottom: .15em; font-weight: 500; color: #333; }
.proj-list { margin: 0 0 1.2em; padding-left: 1.3em; list-style: disc; }
.proj-list li { margin-bottom: .4em; }

.gal-h { display: flex; align-items: baseline; gap: 14px; margin: 56px 0 20px; }
.gal-h span { font-size: 13px; font-weight: 400; color: #888; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.g-item { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: #ddd; overflow: hidden; cursor: zoom-in; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.g-item::after { content: "\f00e"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 26px; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .3s; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.06); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }

.more { background: var(--grey-bg) url("../img/blueprint-ref.avif") center / cover no-repeat; padding: 80px 20px 90px; }
.more-grid { max-width: 1100px; margin: 50px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.more-card { display: grid; grid-template-columns: 150px 1fr; min-height: 130px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.07); transition: transform .25s, box-shadow .25s; }
.more-card.next { grid-template-columns: 1fr 150px; text-align: right; }
.more-card.next .mc-pic { order: 2; }
.more-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.mc-pic { display: block; overflow: hidden; background: #ddd; }
.mc-pic img { width: 100%; height: 100%; object-fit: cover; }
.mc-txt { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px 24px; }
.mc-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-strong); }
.mc-label i { color: var(--lime); }
.mc-title { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); }

/* ================= RESPONSYWNOŚĆ ================= */
@media (max-width: 1440px) {
  .car-arrow.prev { left: -6px; }
  .car-arrow.next { right: -6px; }
  .carousel { padding: 0 24px; }
  .car-arrow { background: rgba(255,255,255,.9); }
}
@media (max-width: 1100px) {
  .offer-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .map iframe { height: 420px; }
  .member h3 { font-size: 14px; }
}
@media (max-width: 860px) {
  .sub-banner { padding: 120px 20px 44px; }
  .more-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .burger { display: block; }
  nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: rgba(34,31,30,.97); max-height: 0; overflow: hidden; transition: max-height .3s; }
  nav.open { max-height: 420px; }
  nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 18px; }
  nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
  .about { padding: 90px 22px 100px; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-title { font-size: 40px; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); gap: 44px 20px; }
  .team { padding: 90px 20px 100px; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; margin-top: 50px; }
  .works { padding-top: 100px; }
  .works-band { height: 330px; }
  .carousel { margin-top: 70px; }
  .f-ids span { display: block; margin: 6px 0; }
}
@media (max-width: 520px) {
  .more-card, .more-card.next { grid-template-columns: 110px 1fr; text-align: left; }
  .more-card.next .mc-pic { order: 0; }
  .sec-title, .sec-title.thin { font-size: 34px; }
  .offer-grid { grid-template-columns: 1fr; }
  .c-row { grid-template-columns: 1fr; }
  .lightbox { padding: 50px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ================= V7 – dodatki SEO ================= */
.hero-title { position: relative; z-index: 1; margin: 0; line-height: 0; }
.proj-text .proj-h { margin-bottom: 18px; }
address.c-list { font-style: normal; }
.slide[aria-hidden="true"] { pointer-events: auto; }
.nf p { font-size: 16px; color: #555; margin-bottom: 1em; }
.nf-links { display: grid; gap: 10px; margin-top: 6px; }
.nf-links a { color: #333; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.nf-links a:hover { color: #000; }
