:root {
  --blue: #1988d8;
  --blue-dark: #0f73bb;
  --ink: #101820;
  --muted: #5c6670;
  --line: #e7edf2;
  --white: #ffffff;
  --black: #050505;
  --shadow: 0 16px 28px rgba(20, 35, 48, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.shell {
  margin: 0 auto;
  max-width: 1650px;
  width: min(86vw, 1650px);
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 44px 7vw 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 20;
}

.logo {
  display: inline-flex;
  text-decoration: none;
}

.logo img {
  height: auto;
  width: clamp(170px, 17vw, 270px);
}

.script-label {
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-weight: 700;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(22px, 3vw, 56px);
}

.site-nav a {
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav .nav-button {
  background: var(--blue);
  padding: 13px 24px;
}

.menu-button {
  align-items: center;
  background: var(--blue);
  border: 0;
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.menu-button span {
  background: var(--white);
  display: block;
  height: 2px;
  width: 22px;
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 18, 26, 0.9), rgba(7, 18, 26, 0.64) 46%, rgba(7, 18, 26, 0.12)),
    url("hero-bg.jpg") center / cover;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  padding: 170px 7vw 90px;
}

.hero-content {
  color: var(--white);
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.hero-script {
  color: var(--white);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 10px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 6.2vw, 5.7rem);
  margin-bottom: 26px;
}

.hero p:not(.hero-script) {
  color: var(--white);
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  font-weight: 700;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}

.outline-button {
  align-items: center;
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--white);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  text-decoration: none;
  text-transform: uppercase;
}

.section {
  padding: clamp(72px, 8vw, 150px) 0;
}

.script-label {
  color: var(--blue);
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1;
  margin: 0 0 14px;
}

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

h1,
h2 {
  font-size: clamp(2.3rem, 4.2vw, 4rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 22px;
}

p {
  color: var(--muted);
  font-weight: 600;
}

.copy p:not(.script-label),
.section-intro {
  max-width: 620px;
}

.button,
.phone-button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  text-decoration: none;
  text-transform: uppercase;
}

.button {
  background: var(--blue);
  color: var(--white);
}

.button:hover {
  background: var(--blue-dark);
}

.button.light {
  background: var(--white);
  color: var(--blue);
}

.phone-button {
  border: 2px solid var(--blue);
  color: var(--blue);
  gap: 8px;
}

.phone-button::before {
  content: "\260E";
  font-size: 0.86rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.welcome-grid,
.areas-grid,
.contact-grid {
  align-items: center;
  display: grid;
  gap: clamp(48px, 7vw, 120px);
  grid-template-columns: 0.9fr 1.1fr;
}

.image-pair {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1fr;
}

.image-pair img {
  box-shadow: var(--shadow);
  height: 620px;
  object-fit: cover;
  width: 100%;
}

.image-pair img:nth-child(2) {
  margin-top: 0;
}

.center {
  text-align: center;
}

.center .section-intro {
  margin: 0 auto 46px;
  max-width: 1060px;
}

.service-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: repeat(6, 1fr);
}

.service-grid article {
  box-shadow: var(--shadow);
  min-height: 1px;
}

.service-grid article:nth-child(1),
.service-grid article:nth-child(2),
.service-grid article:nth-child(3) {
  grid-column: span 2;
}

.service-grid article:nth-child(4) {
  grid-column: 2 / span 2;
}

.service-grid article:nth-child(5) {
  grid-column: 4 / span 2;
}

.service-grid img {
  height: 400px;
  object-fit: cover;
  width: 100%;
}

.difference-section {
  min-height: 950px;
  overflow: hidden;
  padding: 122px 0;
  position: relative;
}

.difference-image {
  background: linear-gradient(90deg, rgba(25, 136, 216, 0.18), rgba(25, 136, 216, 0)), url("difference-bg.jpg") center / cover;
  inset: 0;
  position: absolute;
}

.difference-section .shell {
  position: relative;
  z-index: 1;
}

.blue-panel {
  background: rgba(25, 136, 216, 0.88);
  color: var(--white);
  max-width: 750px;
  padding: clamp(42px, 6vw, 76px);
}

.blue-panel .script-label,
.blue-panel p,
.blue-panel h2 {
  color: var(--white);
}

.blue-panel h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.blue-panel p {
  font-weight: 700;
  max-width: none;
}

.areas-grid {
  grid-template-columns: 1fr 0.9fr;
}

.gallery-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr 1fr;
}

.gallery-grid img {
  height: 310px;
  object-fit: cover;
  width: 100%;
}

.gallery-grid img:nth-child(1),
.gallery-grid img:nth-child(4) {
  height: 390px;
}

.contact-grid img {
  height: 608px;
  object-fit: cover;
  width: 100%;
}

.page-hero {
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(7, 18, 26, 0.9), rgba(7, 18, 26, 0.54) 52%, rgba(7, 18, 26, 0.18)),
    url("hero-bg.jpg") center / cover;
  color: var(--white);
  display: flex;
  min-height: 560px;
  padding: 180px 0 86px;
}

.page-hero h1,
.page-hero p {
  color: var(--white);
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero p:not(.hero-script) {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  max-width: 720px;
}

.services-hero {
  background:
    linear-gradient(90deg, rgba(7, 18, 26, 0.9), rgba(7, 18, 26, 0.54) 52%, rgba(7, 18, 26, 0.18)),
    url("service-civil.jpg") center / cover;
}

.projects-hero {
  background:
    linear-gradient(90deg, rgba(7, 18, 26, 0.9), rgba(7, 18, 26, 0.54) 52%, rgba(7, 18, 26, 0.18)),
    url("difference-bg.jpg") center / cover;
}

.contact-hero {
  background:
    linear-gradient(90deg, rgba(7, 18, 26, 0.9), rgba(7, 18, 26, 0.54) 52%, rgba(7, 18, 26, 0.18)),
    url("contact-work.jpg") center / cover;
}

.values-section {
  background: #f5f8fb;
}

.detail-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 42px;
}

.detail-grid article {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 48px);
}

.detail-grid h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.service-detail-grid {
  display: grid;
  gap: 34px;
}

.service-detail-grid article {
  align-items: stretch;
  background: var(--white);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
}

.service-detail-grid img {
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  width: 100%;
}

.service-detail-grid div {
  align-self: center;
  padding: clamp(30px, 5vw, 64px);
}

.service-detail-grid h2 {
  font-size: clamp(1.85rem, 3vw, 3rem);
}

.project-gallery {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(3, 1fr);
}

.project-gallery figure {
  background: var(--white);
  box-shadow: var(--shadow);
  margin: 0;
}

.project-gallery img {
  height: 360px;
  object-fit: cover;
  width: 100%;
}

.project-gallery figcaption {
  color: var(--ink);
  font-weight: 800;
  padding: 18px 22px;
}

.contact-page-grid {
  align-items: start;
  display: grid;
  gap: clamp(44px, 7vw, 110px);
  grid-template-columns: 0.9fr 1fr;
}

.contact-details {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
}

.contact-details div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.contact-details dt {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-details dd {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  margin: 2px 0 0;
}

.quote-form {
  background: #f5f8fb;
  display: grid;
  gap: 18px;
  padding: clamp(28px, 5vw, 56px);
}

.quote-form label {
  color: var(--ink);
  display: grid;
  font-size: 0.86rem;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

.quote-form input,
.quote-form textarea {
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
  width: 100%;
}

.quote-form textarea {
  resize: vertical;
}

.quote-form .button {
  border: 0;
  cursor: pointer;
  justify-self: start;
}

.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  gap: 70px;
  grid-template-columns: 1.4fr 1fr 1.4fr 1.5fr;
}

.footer-logo {
  max-width: 300px;
  width: 100%;
}

.site-footer h3 {
  font-size: 1rem;
  margin-bottom: 18px;
}

.site-footer a,
.site-footer p {
  color: var(--white);
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin: 0 0 9px;
  text-decoration: none;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 54px;
  padding: 18px;
}

.copyright p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    background: rgba(0, 0, 0, 0.58);
    padding: 18px 24px;
    position: fixed;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    background: rgba(5, 5, 5, 0.95);
    display: none;
    gap: 0;
    left: 0;
    padding: 16px 24px 24px;
    position: absolute;
    right: 0;
    top: 74px;
  }

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

  .site-nav a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 0;
  }

  .site-nav .nav-button {
    margin-top: 12px;
    text-align: center;
  }

  .hero {
    min-height: 540px;
    padding-top: 130px;
  }

  .welcome-grid,
  .areas-grid,
  .contact-grid,
  .contact-page-grid {
    grid-template-columns: 1fr;
  }

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

  .service-detail-grid article {
    grid-template-columns: 1fr;
  }

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

  .service-grid article:nth-child(n) {
    grid-column: auto;
  }

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

@media (max-width: 620px) {
  .shell {
    width: min(90vw, 1650px);
  }

  .hero {
    min-height: 440px;
  }

  .image-pair,
  .service-grid,
  .gallery-grid,
  .detail-grid,
  .project-gallery,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 460px;
    padding: 130px 0 58px;
  }

  .image-pair img,
  .service-grid img,
  .contact-grid img {
    height: auto;
  }

  .difference-section {
    min-height: auto;
  }

  .blue-panel {
    padding: 34px 28px;
  }

  .copyright {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}
