:root {
  --bg: #e7eef8;
  --bg-soft: #d6e1ef;
  --surface: rgba(248, 251, 255, 0.82);
  --surface-strong: #f2f7fd;
  --surface-dark: #162a44;
  --text: #1a2d46;
  --muted: #60748e;
  --line: rgba(26, 45, 70, 0.11);
  --accent: #2f6099;
  --accent-dark: #183c69;
  --accent-soft: #d7e4f4;
  --accent-warm: #7f98b8;
  --shadow: 0 30px 82px rgba(24, 42, 68, 0.11);
  --shadow-soft: 0 16px 38px rgba(24, 42, 68, 0.08);
  --radius: 32px;
  --radius-sm: 20px;
  --container: min(1180px, calc(100vw - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 96, 153, 0.16), transparent 34%),
    radial-gradient(circle at right 14% top 12%, rgba(127, 152, 184, 0.14), transparent 22%),
    radial-gradient(circle at left 18% bottom 16%, rgba(24, 60, 105, 0.08), transparent 24%),
    linear-gradient(180deg, #edf3fb 0%, var(--bg) 34%, #f5f8fd 100%);
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

body.page-home,
body.page-budownictwo {
  background:
    radial-gradient(circle at top left, rgba(48, 106, 184, 0.24), transparent 34%),
    radial-gradient(circle at right 14% top 12%, rgba(140, 179, 228, 0.2), transparent 22%),
    radial-gradient(circle at left 18% bottom 16%, rgba(22, 67, 126, 0.12), transparent 24%),
    linear-gradient(180deg, #dce9fb 0%, #d0e1f7 34%, #e8f1fc 100%);
}

body.page-energetyka {
  --bg: #d8ecd7;
  --bg-soft: #c0dfbf;
  --surface: rgba(244, 251, 243, 0.84);
  --surface-strong: #edf7ec;
  --surface-dark: #244026;
  --text: #243825;
  --muted: #5a7357;
  --line: rgba(36, 56, 37, 0.11);
  --accent: #5aa04a;
  --accent-dark: #376c2d;
  --accent-soft: #dcedd8;
  --accent-warm: #8dad7f;
  --shadow: 0 30px 82px rgba(36, 64, 38, 0.11);
  --shadow-soft: 0 16px 38px rgba(36, 64, 38, 0.08);
  background:
    radial-gradient(circle at top left, rgba(90, 160, 74, 0.28), transparent 34%),
    radial-gradient(circle at right 14% top 12%, rgba(161, 204, 144, 0.22), transparent 22%),
    radial-gradient(circle at left 18% bottom 16%, rgba(55, 108, 45, 0.14), transparent 24%),
    linear-gradient(180deg, #d7edd3 0%, #c9e3c3 34%, #e5f3e0 100%);
}

body.page-energetyka .page-shell::before {
  background: rgba(90, 160, 74, 0.14);
}

body.page-energetyka .page-shell::after {
  background: rgba(161, 204, 144, 0.14);
}

body.page-energetyka .site-header {
  background: rgba(218, 237, 213, 0.88);
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  min-height: 100vh;
  position: relative;
  overflow: clip;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(10px);
}

.page-shell::before {
  top: 110px;
  right: -90px;
  width: 280px;
  height: 280px;
  background: rgba(47, 96, 153, 0.1);
}

.page-shell::after {
  bottom: 100px;
  left: -110px;
  width: 320px;
  height: 320px;
  background: rgba(127, 152, 184, 0.1);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: rgba(231, 238, 248, 0.82);
  border-bottom: 1px solid rgba(26, 45, 70, 0.07);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand img {
  width: 180px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.08));
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.brand span {
  margin-left: 4px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  opacity: 0.76;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.site-nav a {
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
  transition: 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  background: linear-gradient(135deg, rgba(47, 96, 153, 0.14), rgba(127, 152, 184, 0.14));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(26, 45, 70, 0.05);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero,
.page-hero {
  padding: 84px 0 42px;
}

.layout-home {
  padding: 72px 0 48px;
}

.layout-subpage {
  padding: 72px 0 48px;
}

.hero-grid,
.page-hero-grid,
.split-showcase,
.contact-grid,
.footer-grid,
.insight-grid {
  display: grid;
  gap: 28px;
}

.hero-grid,
.page-hero-grid,
.split-showcase {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero h1,
.page-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 12ch;
  margin-bottom: 20px;
}

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

.lead.narrow {
  max-width: 52ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  background:
    url("../img/industrial-lines.svg") center/cover no-repeat,
    transparent;
  border-radius: 42px;
}

.hero-card {
  position: absolute;
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.stat-card {
  right: 10px;
  top: 12px;
  width: 210px;
  padding: 24px;
}

.stat-card strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 8px;
}

.image-card {
  left: 0;
  bottom: 24px;
  width: min(100%, 520px);
  padding: 14px;
}

.image-card img,
.feature-media img,
.page-hero-image img,
.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius) - 10px);
}

.tilt-card {
  transform: rotate(-4deg);
}

.hero-orbit {
  position: absolute;
  right: 90px;
  bottom: 84px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(22, 61, 115, 0.12);
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  border: 1px dashed rgba(47, 111, 182, 0.2);
}

.hero-orbit::after {
  inset: 58px;
  background: radial-gradient(circle, rgba(47, 111, 182, 0.25), rgba(47, 111, 182, 0));
}

.section {
  padding: 42px 0 78px;
}

.section-accent {
  background: linear-gradient(180deg, rgba(215, 228, 244, 0.42), rgba(242, 247, 253, 0));
}

.home-stack {
  display: grid;
  gap: 30px;
}

.subpage-stack {
  display: grid;
  gap: 28px;
}

.home-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 28px;
  overflow: hidden;
}

.home-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 40%, rgba(47, 96, 153, 0.04));
  pointer-events: none;
}

.home-about-panel {
  max-width: 860px;
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.64), rgba(248, 251, 255, 0.5)),
    url("../img/featured/bodaczow-4.jpg") center/cover no-repeat;
}

.home-about-panel h1,
.home-service-copy h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.home-about-panel h1 {
  position: relative;
  z-index: 1;
  font-weight: 500;
  color: #102235;
}

.home-about-panel p {
  max-width: 68ch;
  color: #19314b;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.home-bullets {
  margin: 16px 0 0;
  padding-left: 18px;
  color: #102235;
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.home-bullets li {
  margin-bottom: 8px;
  font-weight: 400;
}

.home-service-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 24px;
  align-items: center;
  padding-bottom: 54px;
  max-width: 860px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.4), rgba(230, 239, 250, 0.2)),
    var(--surface);
}

.home-service-copy p {
  color: var(--muted);
  margin-bottom: 0;
}

.home-service-media {
  align-self: stretch;
}

.home-service-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  filter: saturate(1.06) contrast(1.05);
}

.home-more-link {
  position: absolute;
  right: 28px;
  bottom: 20px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: lowercase;
}

.subpage-intro-panel,
.portfolio-panel,
.contact-layout-panel,
.people-panel,
.portfolio-list-secondary {
  max-width: 980px;
}

.contact-layout-panel {
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.78), rgba(248, 251, 255, 0.62)),
    url("../img/featured/chelm-glowne.jpg") center/cover no-repeat;
}

.energetyka-intro-panel {
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.64), rgba(248, 251, 255, 0.5)),
    url("../img/featured/energetyka-choiny.jpg") center/cover no-repeat;
}

.budownictwo-intro-panel {
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.64), rgba(248, 251, 255, 0.5)),
    url("../img/featured/bodaczow-hero.jpg") center/cover no-repeat;
}

.subpage-intro-panel h1,
.portfolio-panel h2,
.contact-layout-panel h1,
.people-panel h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  font-weight: 500;
  color: #102235;
}

.subpage-service-list {
  display: grid;
  gap: 14px;
  max-width: 82ch;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.subpage-service-list p {
  margin: 0;
  font-weight: 500;
  color: #19314b;
}

.portfolio-rows,
.people-rows {
  display: grid;
  gap: 18px;
}

.portfolio-row,
.person-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.74), rgba(230, 239, 250, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow-soft);
}

.portfolio-thumb,
.person-photo {
  min-height: 150px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 1rem;
  text-align: center;
  padding: 16px;
  color: var(--muted);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}

.future-thumb {
  background: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.portfolio-row-copy strong,
.person-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.12rem;
  font-weight: 600;
}

.portfolio-row-copy p,
.person-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-schematic-grid {
  display: grid;
  grid-template-columns: minmax(320px, 720px);
  gap: 24px;
  align-items: start;
}

.contact-form-box,
.contact-info-box,
.map-box {
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 22px;
}

.contact-form-box h2 {
  margin-bottom: 14px;
}

.contact-info-map {
  display: grid;
  gap: 18px;
}

.contact-info-box p {
  margin-bottom: 8px;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 72ch;
}

.section-heading h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--muted);
}

.service-panels {
  display: grid;
  gap: 28px;
}

.feature-panel,
.feature-panel.alt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.feature-panel.alt .feature-media {
  order: 2;
}

.feature-panel.alt .feature-copy {
  order: 1;
}

.feature-media {
  min-height: 340px;
}

.feature-copy,
.contact-card,
.insight-card,
.numbered-card,
.portfolio-list article,
.person-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow);
}

.feature-copy {
  border-radius: 24px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-copy h3,
.insight-card h3,
.contact-card h2,
.person-card h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.05;
  margin-bottom: 14px;
  font-weight: 400;
}

.button {
  align-self: flex-start;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #f4f8f5;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 16px 30px rgba(24, 60, 105, 0.18);
}

.button:hover {
  transform: translateY(-2px);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text);
  border: 1px solid rgba(16, 37, 35, 0.1);
  box-shadow: none;
}

.insight-grid,
.footer-grid,
.people-grid {
  grid-template-columns: repeat(3, 1fr);
}

.insight-card,
.person-card {
  padding: 26px;
  border-radius: 24px;
}

.numbered-grid,
.portfolio-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.numbered-card,
.portfolio-list article {
  border-radius: 22px;
  padding: 22px;
}

.numbered-card span {
  display: inline-flex;
  margin-bottom: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
}

.showcase-media {
  min-height: 540px;
}

.showcase-copy {
  padding-right: 22px;
}

.feature-list {
  margin: 26px 0 0;
  padding-left: 18px;
}

.feature-list li {
  margin-bottom: 10px;
}

.contact-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: 22px;
}

.contact-card {
  padding: 28px;
  border-radius: 24px;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(28, 38, 29, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
}

.honeypot {
  display: none;
}

.map-wrap {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.form-status {
  min-height: 24px;
  font-size: 0.94rem;
}

.form-status.success {
  color: #1d6f45;
}

.form-status.error {
  color: #8a2a2a;
}

.site-footer {
  padding: 40px 0 24px;
  margin-top: 42px;
  border-top: 1px solid rgba(16, 37, 35, 0.08);
}

.footer-grid {
  gap: 22px;
}

.footer-title {
  margin-bottom: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.footer-bottom {
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid-home {
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(16, 37, 35, 0.18);
  padding-top: 28px;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 63, 48, 0.12);
  box-shadow: 0 10px 24px rgba(22, 61, 115, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(22, 61, 115, 0.14);
}

.social-link img {
  width: 22px;
  height: 22px;
}

.footer-submenu {
  margin-left: 10px;
  color: var(--muted);
}

.compact {
  padding-bottom: 8px;
}

@media (max-width: 980px) {
  .hero-grid,
  .page-hero-grid,
  .feature-panel,
  .feature-panel.alt,
  .split-showcase,
  .contact-grid,
  .insight-grid,
  .footer-grid,
  .people-grid,
  .numbered-grid,
  .portfolio-list,
  .home-service-panel,
  .footer-grid-home,
  .contact-schematic-grid,
  .portfolio-row,
  .person-row {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .home-about-panel,
  .home-service-panel {
    max-width: none;
  }

  .image-card {
    width: calc(100% - 24px);
  }

  .feature-panel.alt .feature-media,
  .feature-panel.alt .feature-copy {
    order: initial;
  }

  .portfolio-thumb,
  .person-photo {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .nav-toggle {
    display: block;
  }

  .brand span {
    font-size: 0.6rem;
    letter-spacing: 0.14em;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    background: rgba(248, 245, 239, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .page-hero,
  .section,
  .layout-home {
    padding-top: 32px;
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
  }

  .hero-visual {
    min-height: 330px;
  }

  .stat-card {
    width: 160px;
    padding: 16px;
  }

  .stat-card strong {
    font-size: 2.4rem;
  }

  .showcase-media {
    min-height: 320px;
  }

  .home-panel {
    padding: 22px;
  }

  .home-service-panel {
    padding-bottom: 56px;
  }

  .home-more-link {
    right: 22px;
    bottom: 18px;
  }

}
