:root {
  --green: #0f5a4f;
  --green-dark: #0b3f38;
  --blue: #dceff7;
  --blue-strong: #5ca9c8;
  --text: #2f3437;
  --muted: #677176;
  --line: #d9e2e5;
  --light: #f5f9fa;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  font-weight: 700;
}

.logo-img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--green);
  border-color: var(--blue-strong);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--green-dark);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hero {
  display: flex;
  min-height: 680px;
  align-items: center;
  padding: 88px 0;
  background:
    linear-gradient(90deg, rgba(5, 63, 55, 0.3), rgba(5, 63, 55, 0.06)),
    url("../img/home-engineering-planning.png") center / cover no-repeat;
  color: var(--green-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--blue-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .section-kicker {
  color: var(--green);
}

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

main p,
.service-card p,
.project-card p,
.policy-content p,
.info-box p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  word-spacing: normal;
  letter-spacing: normal;
}

.hero p,
.page-intro,
.section-kicker,
.site-footer p,
.contact-info p {
  text-align: left;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 20px;
}

.hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
}

.hero-panel {
  max-width: 650px;
  padding: 44px;
  border: 1px solid rgba(15, 90, 79, 0.18);
  border-radius: 8px;
  background: rgba(225, 245, 236, 0.93);
  box-shadow: 0 24px 70px rgba(5, 63, 55, 0.18);
}

.hero-panel h1 {
  color: var(--green-dark);
}

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

.hero-contact {
  margin-top: 18px;
  margin-bottom: 0;
  font-size: 15px;
}

.hero-contact a {
  color: var(--blue);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 22px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

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

.hero .btn-primary {
  color: var(--white);
  background: var(--green);
}

.btn-secondary {
  color: var(--green-dark);
  border-color: rgba(15, 90, 79, 0.45);
  background: rgba(255, 255, 255, 0.65);
}

.btn-light {
  color: var(--green-dark);
  background: var(--white);
}

.hero-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero-feature {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-top: 3px solid rgba(220, 239, 247, 0.75);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.feature-icon {
  width: 30px;
  height: 30px;
  color: var(--blue);
}

.feature-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-number {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-feature strong,
.hero-feature span {
  display: block;
}

.hero-feature strong {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 1.08rem;
}

.hero-feature > span:not(.feature-number) {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.55;
}

@media (hover: hover) {
  .hero-feature:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
  }
}

.section {
  padding: 78px 0;
}

.section + .section-light {
  padding-top: 58px;
}

.section-light {
  background: var(--light);
}

.section-light + .section-light {
  padding-top: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 48px;
  align-items: start;
}

.split p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.about-box,
.approach-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 90, 79, 0.06);
}

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

.card-grid {
  display: grid;
  gap: 22px;
  align-items: stretch;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-heading p:not(.section-kicker) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.service-pill-grid span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--green-dark);
  background: var(--white);
  font-weight: 700;
}

.service-card,
.project-card,
.why-card,
.query-form,
.info-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card,
.project-card,
.why-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px;
}

.service-card p,
.project-card p,
.why-card p,
.contact-info p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-card p,
.project-card p,
.why-card p {
  max-width: 34rem;
}

.why-card {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--blue-strong);
  box-shadow: 0 12px 30px rgba(15, 90, 79, 0.06);
}

.why-card span {
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(15, 90, 79, 0.92), rgba(91, 174, 210, 0.82));
}

@media (hover: hover) {
  .why-card {
    transition:
      transform 180ms ease,
      box-shadow 180ms ease;
  }

  .why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 90, 79, 0.1);
  }
}

.project-card span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h2 {
  font-size: 24px;
}

.cta {
  padding-top: 64px;
  padding-bottom: 64px;
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  border-radius: 8px;
  background: var(--blue);
}

.cta-box h2 {
  margin-bottom: 0;
}

.page-hero {
  padding: 76px 0;
  background: var(--light);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--green-dark);
  font-size: clamp(30px, 4vw, 46px);
}

.page-intro {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.services-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.75fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.services-hero-copy {
  max-width: 820px;
}

.services-hero-image {
  margin: 0;
}

.services-hero-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 22px 55px rgba(15, 90, 79, 0.12);
}

.service-list {
  display: grid;
  gap: 18px;
}

.service-list article {
  padding: 24px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--light);
}

.service-list h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

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

.services-catalog {
  padding-top: 64px;
}

.service-category + .service-category {
  margin-top: 48px;
}

.service-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.service-category-heading .section-kicker {
  margin-bottom: 0;
}

.project-count-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 90, 79, 0.16);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--green-dark);
  background: rgba(15, 90, 79, 0.08);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.detailed-card {
  gap: 12px;
  min-height: 260px;
}

.detailed-card h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.24;
}

.service-count {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.service-count span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.service-count strong {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  color: var(--green-dark);
  background: rgba(15, 90, 79, 0.08);
  font-size: 13px;
  white-space: nowrap;
}

.service-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
  color: var(--green);
}

.service-icon path,
.service-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .detailed-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(15, 90, 79, 0.12);
  }
}

.process-section {
  background: var(--white);
}

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

.process-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--light);
}

.process-grid span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 700;
}

.process-grid p,
.cta-box p {
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.services-cta-box {
  display: grid;
  justify-content: start;
}

.services-cta-box .cta-actions {
  margin-top: 8px;
}

.thank-you-section {
  min-height: 58vh;
  display: flex;
  align-items: center;
  background: var(--light);
}

.thank-you-card {
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 42px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(15, 90, 79, 0.1);
}

.thank-you-card h1 {
  color: var(--green-dark);
  font-size: clamp(34px, 4vw, 48px);
}

.thank-you-card p:not(.section-kicker) {
  max-width: 620px;
  color: var(--muted);
}

.thank-you-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.thank-you-actions .btn-light {
  border-color: rgba(15, 90, 79, 0.28);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1fr);
  gap: 44px;
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 104px;
}

.info-box {
  margin-top: 24px;
  padding: 22px;
}

.info-box span,
.site-footer span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-footer span {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.info-box a {
  color: var(--green);
  font-weight: 700;
}

.query-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 26px;
}

.query-form label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

.query-form input,
.query-form select,
.query-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--text);
  background: var(--white);
  font: inherit;
}

.query-form input,
.query-form select {
  min-height: 46px;
}

.query-form textarea {
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

.form-status {
  display: none;
  border-radius: 6px;
  padding: 14px 16px;
  font-weight: 700;
}

.form-status.success,
.form-status.error {
  display: block;
}

.form-status.success {
  border: 1px solid rgba(15, 90, 79, 0.2);
  color: var(--green-dark);
  background: rgba(225, 245, 236, 0.92);
}

.form-status.error {
  border: 1px solid rgba(172, 65, 65, 0.25);
  color: #7a1f1f;
  background: #fff0f0;
}

.query-form button:disabled {
  cursor: wait;
  opacity: 0.76;
}

.site-footer {
  padding: 44px 0;
  color: rgba(255, 255, 255, 0.78);
  background: var(--green-dark);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr) minmax(360px, 1.25fr);
  align-items: start;
  gap: 36px;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}

.site-footer p {
  margin-bottom: 0;
}

.footer-contact {
  font-style: normal;
}

.info-box p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer a {
  display: block;
  color: var(--white);
  font-weight: 400;
}

.footer-contact p,
.footer-contact a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
}

.footer-policies {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}

.footer-policies a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.footer-subscribe p {
  margin-bottom: 12px;
}

.subscribe-form {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.subscribe-form input {
  min-height: 46px;
  width: min(100%, 260px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: var(--white);
  font: inherit;
}

.subscribe-form button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: var(--green-dark);
  background: #f0ca49;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.site-footer .social-links a {
  display: grid;
  width: 38px !important;
  height: 38px !important;
  max-width: 38px;
  max-height: 38px;
  min-width: 38px;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.site-footer .social-links img {
  display: block;
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  object-fit: contain;
}

.policy-content {
  max-width: 850px;
}

.policy-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 850px;
  margin: 26px 0 0;
}

.policy-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--white);
}

.policy-meta dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.policy-meta dd {
  margin: 0;
  color: var(--green-dark);
  font-weight: 700;
}

.policy-content h2 {
  margin-top: 34px;
  font-size: 26px;
  text-align: left;
}

.policy-content p {
  color: var(--muted);
}

.policy-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--muted);
}

.policy-content li {
  margin-bottom: 8px;
}

.policy-content a {
  color: var(--green);
  font-weight: 700;
}

.terms-footer {
  display: block;
}

@media (max-width: 1020px) {
  .card-grid.three,
  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

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

  .site-nav a {
    width: 100%;
    padding: 12px 0;
  }

  .hero-grid,
  .split,
  .services-hero-grid,
  .contact-grid,
  .service-pill-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    position: static;
  }

  .site-footer .footer-grid,
  .cta-box {
    align-items: flex-start;
  }

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

  .cta-box {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 30px, 1120px);
  }

  .hero,
  .section,
  .page-hero {
    padding: 56px 0;
  }

  .hero {
    min-height: 640px;
    align-items: flex-end;
  }

  .hero-panel {
    padding: 28px;
  }

  .hero p,
  .split p {
    font-size: 16px;
    max-width: 100%;
  }

  .card-grid.three,
  .card-grid.four {
    grid-template-columns: 1fr;
  }

  .service-card p,
  .project-card p,
  .why-card p,
  .policy-content p {
    font-size: 15px;
  }

  .service-category-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .policy-meta {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .query-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form input,
  .subscribe-form button {
    width: 100%;
  }
}
