/* ============ BORUTA – nowa strona ============ */
:root {
  --ink: #0f1419;
  --ink-2: #1a2129;
  --steel: #5b6673;
  --line: #e3e6ea;
  --paper: #ffffff;
  --paper-2: #f4f5f7;
  --accent: #f2b705;      /* żółć instalacji gazowych */
  --accent-ink: #1a1400;
  --blue: #1e6fd9;        /* błękit zbiorników */
  --radius: 14px;
  --wrap: 1200px;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.01em; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--steel);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; }
.eyebrow--light { color: rgba(255,255,255,.75); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(242,183,5,.7); }
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Nawigacja ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.is-solid { background: rgba(15,20,25,.86); backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent); position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 8px 8px 8px 8px; border-radius: 3px;
  border: 3px solid var(--ink); border-left-width: 6px;
}
.brand__name { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 21px; letter-spacing: .06em; }

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a:not(.btn) {
  color: rgba(255,255,255,.82); text-decoration: none; font-size: 15px; font-weight: 500; position: relative;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:not(.btn):hover { color: #fff; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }

.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.is-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--ink); overflow: hidden;
}
.hero__slides, .hero__slide, .hero__shade { position: absolute; inset: 0; }
.hero__slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s ease, transform 8s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__shade {
  background:
    linear-gradient(90deg, rgba(15,20,25,.92) 0%, rgba(15,20,25,.6) 45%, rgba(15,20,25,.15) 100%),
    linear-gradient(0deg, rgba(15,20,25,.85) 0%, rgba(15,20,25,0) 45%);
}
.hero__content { position: relative; padding-top: 140px; padding-bottom: 56px; }
.hero__title {
  font-size: clamp(44px, 7.4vw, 104px);
  font-weight: 800; font-stretch: 110%;
  max-width: 14ch; margin-bottom: 28px;
}
.hero__rotator { color: var(--accent); display: inline-block; transition: opacity .45s, transform .45s var(--ease); }
.hero__rotator.is-out { opacity: 0; transform: translateY(14px); }
.hero__lead { max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.82); margin: 0 0 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__bar {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; padding-bottom: 28px;
}
.hero__bar::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: rgba(255,255,255,.14); }
.hero__dots { display: flex; gap: 10px; }
.hero__dots button {
  width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(255,255,255,.3); overflow: hidden; position: relative;
}
.hero__dots button::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hero__dots button.is-active::after { animation: fill 6s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.hero__scroll { font-size: 14px; color: rgba(255,255,255,.7); text-decoration: none; letter-spacing: .08em; text-transform: uppercase; }
.hero__scroll:hover { color: #fff; }

/* ---------- Pasek atutów ---------- */
.strip { background: var(--ink-2); color: #fff; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 30px 24px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid rgba(255,255,255,.08); }
.strip__item:first-child { border-left: 0; padding-left: 0; }
.strip__item strong { font-family: var(--display); font-size: 22px; font-weight: 700; font-stretch: 112%; }
.strip__item span { color: rgba(255,255,255,.6); font-size: 15px; }

/* ---------- Sekcje ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--alt { background: var(--paper-2); }
.section__head { margin-bottom: 56px; max-width: 760px; }
.section__head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section__title { font-size: clamp(34px, 4.4vw, 58px); font-weight: 800; font-stretch: 105%; }
.section__lead { max-width: 420px; margin: 0; color: var(--steel); }

/* Branże */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sector {
  position: relative; padding: 40px 34px 44px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  overflow: hidden;
}
.sector::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.sector:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(15,20,25,.3); border-color: transparent; }
.sector:hover::before { transform: scaleX(1); }
.sector__num { position: absolute; top: 28px; right: 32px; font-family: var(--display); font-weight: 700; color: #c5cbd2; font-size: 15px; letter-spacing: .1em; }
.sector__icon { width: 52px; height: 52px; margin-bottom: 28px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.sector__icon path:first-child { fill: rgba(242,183,5,.22); }
.sector h3 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
.sector p { margin: 0; color: var(--steel); }

/* Usługi */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,20,25,.06);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(15,20,25,.35); }
.service__img { aspect-ratio: 16 / 10; overflow: hidden; background: #d9dde2; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service__img img { transform: scale(1.07); }
.service__body { padding: 26px 28px 30px; }
.service h3 { font-size: 23px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service h3::after { content: "→"; font-family: var(--text); font-size: 20px; color: var(--accent); opacity: 0; transform: translateX(-8px); transition: .35s var(--ease); }
.service:hover h3::after { opacity: 1; transform: none; }
.service p { margin: 0; color: var(--steel); font-size: 16px; }

/* O nas */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about__badge {
  position: absolute; right: -24px; bottom: 40px;
  background: var(--accent); color: var(--accent-ink);
  padding: 24px 28px; border-radius: var(--radius);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.4);
}
.about__badge strong { display: block; font-family: var(--display); font-size: 24px; line-height: 1.05; font-weight: 800; }
.about__badge span { font-size: 14px; font-weight: 500; }
.about__text .section__title { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 22px; }
.about__lead { color: var(--steel); margin: 0 0 30px; font-size: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2b705' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* Kontakt */
.contact {
  background: var(--ink); color: #fff; padding: clamp(80px, 11vw, 140px) 0;
  position: relative; overflow: hidden;
}
.contact::before {
  content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242,183,5,.18), transparent 65%);
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; }
.contact__title { font-size: clamp(38px, 5.4vw, 72px); font-weight: 800; font-stretch: 108%; margin-bottom: 22px; }
.contact__lead { color: rgba(255,255,255,.7); max-width: 460px; margin: 0 0 36px; }
.contact__mail {
  display: inline-flex; gap: 12px; align-items: center;
  font-family: var(--display); font-size: clamp(24px, 3vw, 38px); font-weight: 700;
  color: var(--accent); text-decoration: none;
  border-bottom: 2px solid rgba(242,183,5,.4); padding-bottom: 6px;
  transition: border-color .3s;
  overflow-wrap: anywhere;
}
.contact__mail:hover { border-color: var(--accent); }
.company {
  margin: 0; display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); overflow: hidden;
}
.company div { padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.company div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }
.company div:nth-last-child(-n+2) { border-bottom: 0; }
.company dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 4px; }
.company dd { margin: 0; font-weight: 500; }

/* Stopka */
.footer { background: #0a0e12; color: rgba(255,255,255,.55); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }
.brand--small .brand__mark { width: 22px; height: 22px; border-radius: 6px; }
.brand--small .brand__mark::after { inset: 6px; border-width: 2px; border-left-width: 4px; }
.brand--small .brand__name { font-size: 16px; }

/* ---------- Animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__slide { transform: none; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: 1fr; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip__item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media img { aspect-ratio: 16 / 10; }
  .about__badge { right: 20px; bottom: 20px; }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 28px;
    background: rgba(15,20,25,.97); backdrop-filter: blur(14px);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .3s, transform .3s var(--ease);
  }
  .nav.is-open { background: rgba(15,20,25,.97); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 16px 0; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 20px; justify-content: center; }
  .section__head--split { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .services { grid-template-columns: 1fr; }
  .strip__item { padding: 22px 14px; }
  .strip__item:nth-child(odd) { padding-left: 0; }
  .strip__item strong { font-size: 18px; }
  .strip__item span { font-size: 13px; }
  .checks { grid-template-columns: 1fr; }
  .company { grid-template-columns: 1fr; }
  .company div:nth-child(odd) { border-right: 0; }
  .company div:nth-last-child(2) { border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 0; justify-content: center; padding: 14px 12px; font-size: 15px; white-space: nowrap; }
  .hero__content { padding-bottom: 40px; }
  .hero__lead { margin-bottom: 28px; }
  .eyebrow { font-size: 11px; letter-spacing: .1em; }
  .hero__bar::before { left: 16px; right: 16px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* ============ Podstrona „O nas” ============ */
.nav__links a.is-current { color: #fff; }
.nav__links a.is-current::after { transform: scaleX(1); }

.page-hero {
  position: relative; min-height: 64vh; min-height: 64svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--ink); overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-hero__content { position: relative; padding-top: 140px; padding-bottom: 64px; }
.page-hero__title {
  font-size: clamp(40px, 6.2vw, 88px);
  font-weight: 800; font-stretch: 110%;
  margin-bottom: 24px;
}
.page-hero__title span { color: var(--accent); }
.page-hero .hero__lead { margin-bottom: 0; }

.crumbs { display: flex; gap: 10px; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 26px; }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Historia */
.story { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.story__text .section__title { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 22px; }
.story__text p:not(.eyebrow):not(.about__lead) { color: var(--steel); margin: 0 0 18px; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -28px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--paper);
}
.timeline__year { display: block; font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 30px; line-height: 1.1; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--steel); }

/* Certyfikaty */
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,20,25,.06);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cert:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(15,20,25,.35); }
.cert__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #e9ecef; padding: 22px 22px 0; }
.cert__img img {
  width: 100%; height: auto; border-radius: 6px 6px 0 0;
  box-shadow: 0 10px 30px -12px rgba(15,20,25,.35);
  transition: transform .8s var(--ease);
}
.cert:hover .cert__img img { transform: translateY(-4%); }
.cert__body { padding: 26px 28px 30px; }
.cert__tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(242,183,5,.18); color: #6b5100;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.cert h3 { font-size: 23px; font-weight: 700; margin-bottom: 8px; }
.cert p { margin: 0; color: var(--steel); font-size: 16px; }

/* Klienci */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.clients li {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 5 / 3; padding: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, box-shadow .3s var(--ease);
}
.clients li:hover { border-color: transparent; box-shadow: 0 20px 40px -24px rgba(15,20,25,.35); }
.clients img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.clients li:hover img { filter: none; opacity: 1; }

/* Link „Więcej o firmie” na stronie głównej */
.about__more { margin-top: 34px; }

@media (max-width: 1024px) {
  .story { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .clients { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .certs { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .page-hero__content { padding-bottom: 44px; }
}
