* {
  box-sizing: border-box;
}

:root {
  --green: #72d11c;
  --green-2: #59b80f;
  --dark: #111313;
  --dark-2: #1a1d1b;
  --text: #202520;
  --muted: #6d756e;
  --light: #f4f6f2;
  --white: #ffffff;
  --line: #dfe5dd;
  --shadow: 0 20px 55px rgba(0,0,0,.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

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

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

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16,18,17,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand-mark {
  width: 52px;
  color: var(--green);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: .8px;
}

.brand-text strong b {
  color: var(--green);
}

.brand-text small {
  font-size: 9px;
  letter-spacing: 3px;
  margin-top: 7px;
  color: #c8cec9;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #e9ece9;
  font-weight: 700;
  font-size: 14px;
}

.nav > a:not(.nav-cta) {
  position: relative;
}

.nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--green);
  transition: .2s ease;
}

.nav > a:not(.nav-cta):hover::after {
  right: 0;
}

.nav-cta {
  background: var(--green);
  color: #111;
  padding: 11px 18px;
  border-radius: 6px;
}

.menu-btn {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-btn span {
  display: block;
  width: 27px;
  height: 2px;
  margin: 6px 0;
  background: white;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(114,209,28,.20), transparent 24%),
    linear-gradient(115deg, #0c0e0d 0 55%, #171b18 55% 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -150px -180px auto;
  width: 520px;
  height: 520px;
  border: 80px solid rgba(114,209,28,.07);
  transform: rotate(28deg);
}

.hero-grid {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
  padding: 90px 0;
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2.5px;
}

.eyebrow.dark {
  color: var(--green-2);
}

.hero h1,
.section h2,
.cta-section h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -3px;
}

.hero h1 span,
.section h2 span {
  color: var(--green);
}

.hero-lead {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: 20px;
  color: #d9dfda;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 7px;
  font-weight: 900;
  transition: .2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
}

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

.btn-primary {
  background: var(--green);
  color: #111;
}

.btn-primary:hover {
  background: #82e42b;
}

.btn-ghost {
  border-color: rgba(255,255,255,.4);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
}

.btn-light {
  background: #fff;
  color: #111;
}

.btn.full {
  width: 100%;
}

.hero-points {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: #bfc6c0;
  font-size: 14px;
  font-weight: 700;
}

.hero-card {
  background: linear-gradient(145deg, #222823, #0f1110);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 35px 75px rgba(0,0,0,.35);
  border-radius: 24px;
  overflow: hidden;
  transform: rotate(1.5deg);
}

.house-visual {
  padding: 30px 28px 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-card-copy {
  background: var(--green);
  color: #101210;
  padding: 20px 26px;
}

.hero-card-copy strong {
  display: block;
  font-size: 22px;
}

.hero-card-copy span {
  font-size: 14px;
  font-weight: 700;
}

.trust-strip {
  background: var(--green);
  color: #111;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}

.trust-grid div {
  padding: 22px 24px;
  border-right: 1px solid rgba(0,0,0,.15);
}

.trust-grid div:last-child {
  border-right: 0;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  font-size: 13px;
  letter-spacing: .8px;
}

.trust-grid span {
  margin-top: 4px;
  font-size: 12px;
  opacity: .75;
}

.section {
  padding: 105px 0;
}

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

.section-head.compact {
  max-width: 740px;
}

.section h2,
.cta-section h2 {
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -2.2px;
}

.section-head > p:last-child {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.service-card {
  position: relative;
  min-height: 360px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  transition: .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #cbd5c7;
}

.service-card.featured {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.service-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -50px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(114,209,28,.08);
}

.icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #111;
  font-size: 30px;
  font-weight: 900;
}

.service-no {
  position: absolute;
  right: 28px;
  top: 26px;
  color: #aeb6ae;
  font-weight: 900;
  font-size: 13px;
}

.service-card h3 {
  margin: 42px 0 12px;
  font-size: 30px;
  line-height: 1.1;
}

.service-card p {
  max-width: 540px;
  color: var(--muted);
}

.service-card.featured p {
  color: #b9c1ba;
}

.service-card strong {
  display: block;
  margin-top: 24px;
  max-width: 520px;
  color: var(--green-2);
}

.dark-section {
  background: var(--dark);
  color: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.why-copy {
  position: sticky;
  top: 125px;
}

.why-copy p:not(.eyebrow) {
  color: #b8c0b9;
  font-size: 18px;
  margin: 24px 0 30px;
}

.why-list {
  border-top: 1px solid rgba(255,255,255,.12);
}

.why-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.why-item b {
  color: var(--green);
  font-size: 18px;
}

.why-item strong,
.why-item span {
  display: block;
}

.why-item strong {
  font-size: 22px;
}

.why-item span {
  margin-top: 7px;
  color: #aeb5af;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr .85fr;
  gap: 18px;
}

.gallery-card {
  min-height: 430px;
  margin: 0;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background-color: #222;
  box-shadow: var(--shadow);
}

.gallery-a {
  background:
    linear-gradient(to top, rgba(0,0,0,.72), transparent 45%),
    url(foty/murowanie.png);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gallery-b {
  background:
    linear-gradient(to top, rgba(0,0,0,.75), transparent 45%),
    url(foty/dach.png);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.gallery-c {
  background:
    linear-gradient(to top, rgba(0,0,0,.72), transparent 45%),
    url(foty/ocieplenie.png);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
}

.gallery-card figcaption {
  position: absolute;
  z-index: 2;
  left: 30px;
  right: 30px;
  bottom: 28px;
  color: #fff;
}

.gallery-card strong,
.gallery-card span {
  display: block;
}

.gallery-card strong {
  font-size: 24px;
}

.gallery-card span {
  color: #d7dbd7;
}

.cta-section {
  background: var(--green);
  color: #111;
  padding: 72px 0;
}

.cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.cta-section .eyebrow {
  color: #111;
}

.cta-section h2 {
  font-size: clamp(36px, 5vw, 58px);
}

.cta-section p:last-child {
  max-width: 720px;
  margin: 16px 0 0;
  font-weight: 650;
}

.contact-section {
  background: #f6f8f5;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 70px;
}

.contact-grid > div > p:last-of-type {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.contact-cards {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.contact-cards a {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-cards span,
.contact-cards strong {
  display: block;
}

.contact-cards span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-cards strong {
  margin-top: 4px;
  font-size: 20px;
}

.contact-cards a:hover {
  border-color: var(--green);
}

.contact-form {
  background: var(--dark);
  color: #fff;
  padding: 34px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin: 0 0 24px;
  font-size: 28px;
}

.contact-form label {
  display: block;
  margin-bottom: 17px;
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #3d443f;
  background: #202421;
  color: #fff;
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green);
}

.contact-form small {
  display: block;
  color: #8f9890;
  margin-top: 12px;
}

footer {
  background: #0b0c0b;
  color: #dbe0dc;
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--green);
}

.copyright {
  color: #808780;
  font-size: 13px;
}

@media (max-width: 950px) {
  .menu-btn {
    display: block;
  }

  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    background: #101211;
    padding: 20px;
    border-top: 1px solid #262b27;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px;
  }

  .hero-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 76px 0;
  }

  .hero-card {
    max-width: 720px;
    transform: none;
  }

  .trust-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .trust-grid div:nth-child(2) {
    border-right: 0;
  }

  .why-copy {
    position: static;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-a {
    grid-column: span 2;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header .brand-text small {
    display: none;
  }

  .hero h1 {
    font-size: 46px;
    letter-spacing: -2px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-points {
    display: grid;
    gap: 8px;
  }

  .trust-grid,
  .services-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid div {
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,.13);
  }

  .section {
    padding: 76px 0;
  }

  .section h2 {
    font-size: 40px;
  }

  .service-card {
    min-height: 0;
  }

  .gallery-a {
    grid-column: auto;
  }

  .gallery-card {
    min-height: 320px;
  }

  .cta-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .why-item {
    grid-template-columns: 48px 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}
