:root {
  --ink: #111827;
  --muted: #5d6673;
  --line: #dfe5ec;
  --soft: #f4f7fa;
  --panel: #ffffff;
  --blue: #0756b2;
  --blue-dark: #03458f;
  --navy: #101d2b;
  --navy-2: #17283a;
  --shadow: 0 16px 38px rgba(18, 31, 46, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1360px, calc(100% - 64px));
  min-height: 86px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 22px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.brand strong {
  color: var(--blue);
  font-size: 0.72em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 52px);
  color: #111827;
  font-weight: 800;
}

.nav-links a {
  min-height: 86px;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.nav-cta,
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-cta {
  padding: 0 30px;
  background: var(--blue);
  color: #fff;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.lang-button {
  min-width: 36px;
  height: 34px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.lang-button.is-active {
  background: var(--blue);
  color: #fff;
}

.button {
  padding: 0 34px;
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 22px rgba(7, 86, 178, 0.22);
}

.button-primary:hover,
.nav-cta:hover {
  background: var(--blue-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  min-height: 560px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 18, 30, 0.95) 0%, rgba(8, 18, 30, 0.78) 32%, rgba(8, 18, 30, 0.28) 62%, rgba(8, 18, 30, 0.04) 100%),
    linear-gradient(180deg, rgba(8, 18, 30, 0.08), rgba(8, 18, 30, 0.1));
}

.hero-content {
  width: min(1360px, calc(100% - 64px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero-content h1 {
  max-width: 670px;
  margin-bottom: 28px;
  font-size: clamp(2.8rem, 5.4vw, 5.45rem);
  line-height: 1.06;
}

.hero-content p {
  max-width: 540px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.section {
  padding: 64px max(28px, calc((100vw - 1360px) / 2));
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.centered {
  text-align: center;
}

.section-heading p,
.section-kicker {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-heading h2,
.about-copy h2,
.contact-info h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.12;
}

.services {
  background: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 345px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 24px rgba(18, 31, 46, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  left: 4px;
  height: 205px;
  z-index: 1;
  border-radius: 2px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, rgba(5, 16, 28, 0), rgba(5, 16, 28, 0.18));
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(7, 86, 178, 0.28);
  box-shadow: 0 18px 42px rgba(18, 31, 46, 0.12);
}

.service-card svg {
  width: 96px;
  height: 96px;
  margin: 13px 0 35px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card svg .solid {
  fill: rgba(7, 86, 178, 0.08);
}

.service-card svg .ground {
  stroke: #7f8b99;
}

.service-card svg .dashed {
  stroke-dasharray: 2 4;
}

.service-card svg .pipe {
  stroke-width: 5;
}

.service-card svg .pipe-blue {
  stroke: #0756b2;
}

.service-card svg .pipe-orange {
  stroke: #d9822b;
}

.service-photo {
  position: relative;
  z-index: 0;
  width: calc(100% + 36px);
  max-width: none;
  height: 205px;
  margin: -26px -18px 20px;
  border-radius: 2px;
  background: #fff;
  filter: saturate(1.06) contrast(1.04);
  object-fit: cover;
  object-position: center;
  transition: transform 220ms ease, filter 220ms ease;
}

.service-card:hover .service-photo {
  transform: scale(1.025);
  filter: saturate(1.1) contrast(1.06);
}

.service-card h3,
.service-card p {
  position: relative;
  z-index: 2;
}

.drainage-photo {
  object-position: 50% 54%;
}

.paving-photo {
  object-position: 50% 72%;
}

.gate-photo {
  object-position: 52% 58%;
}

.communications-photo {
  object-position: 50% 60%;
}

.foundations-photo {
  object-position: 50% 38%;
}

.landscape-photo {
  object-position: 50% 50%;
}

.concrete-photo {
  object-position: 42% 72%;
}

.estimate-photo {
  object-position: 30% 28%;
}

.service-card h3 {
  min-height: 48px;
  margin-bottom: 14px;
  font-size: 1.04rem;
  line-height: 1.2;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.process {
  background: radial-gradient(circle at 50% 20%, #fff 0%, #f2f5f8 78%);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 42px;
  position: relative;
}

.process-grid article {
  position: relative;
  text-align: center;
}

.process-grid article:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 38px;
  right: -34px;
  color: #98a4b3;
  font-size: 2rem;
  font-weight: 300;
}

.process-icon {
  width: 86px;
  height: 86px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 22px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 1.55rem;
  font-weight: 900;
}

.process-grid h3 {
  margin-bottom: 9px;
  font-size: 1.15rem;
}

.process-grid p {
  max-width: 230px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.94rem;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 54px;
  align-items: center;
  background: var(--soft);
}

.about-image img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.about-copy > p:not(.section-kicker) {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.05rem;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.quality-grid div {
  min-width: 0;
}

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

.quality-grid strong {
  margin-bottom: 8px;
  color: var(--blue);
}

.quality-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.48fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  background: #fff;
}

.contact-info h2 {
  margin-bottom: 28px;
}

.contact-info a,
.contact-info span {
  display: block;
  margin-bottom: 14px;
  color: var(--navy);
  font-weight: 700;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  padding: 14px 16px;
  outline: none;
}

.contact-form textarea {
  min-height: 112px;
  grid-column: span 2;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 86, 178, 0.12);
}

.contact-form button {
  justify-self: end;
  min-width: 240px;
}

.form-status {
  align-self: center;
  margin: 0;
  color: var(--blue);
  font-weight: 800;
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr 0.72fr 1fr 0.92fr 1.18fr;
  gap: 34px;
  padding: 50px max(28px, calc((100vw - 1360px) / 2));
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: rgba(255, 255, 255, 0.78);
}

.footer-brand {
  color: #fff;
  font-size: 2rem;
}

.footer p {
  max-width: 260px;
  margin: 18px 0 0;
}

.footer h3 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.footer a,
.footer span {
  display: block;
  margin-bottom: 9px;
}

.footer-legal span {
  font-size: 0.9rem;
  line-height: 1.38;
}

.footer a:hover {
  color: #fff;
}

@media (max-width: 1160px) {
  .nav {
    width: min(100% - 36px, 1360px);
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
    order: 3;
  }

  .language-switcher {
    justify-self: end;
    order: 2;
  }

  .nav-links {
    order: 4;
    grid-column: 1 / -1;
    display: none;
    align-items: stretch;
    justify-content: start;
    flex-direction: column;
    gap: 0;
    padding-bottom: 16px;
  }

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

  .nav-links a {
    min-height: 44px;
    border-bottom-width: 1px;
  }

  .nav-cta {
    display: none;
  }

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

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

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

@media (max-width: 760px) {
  .nav,
  .hero-content {
    width: calc(100% - 32px);
  }

  .brand {
    font-size: 2rem;
  }

  .nav {
    gap: 10px;
  }

  .language-switcher {
    order: 2;
  }

  .menu-toggle {
    order: 3;
  }

  .lang-button {
    min-width: 31px;
    height: 31px;
    font-size: 0.72rem;
  }

  .hero {
    min-height: 560px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(8, 18, 30, 0.96), rgba(8, 18, 30, 0.62));
  }

  .section {
    padding: 48px 16px;
  }

  .service-grid,
  .process-grid,
  .quality-grid,
  .footer {
    grid-template-columns: 1fr;
  }

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

  .process-grid {
    gap: 26px;
  }

  .process-grid article:not(:last-child)::after {
    display: none;
  }

  .section-heading.split {
    align-items: start;
    flex-direction: column;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form textarea {
    grid-column: auto;
  }

  .contact-form button {
    justify-self: stretch;
    min-width: 0;
  }
}
