:root {
  --blue: #2047e7;
  --soft-blue: #edf0ff;
  --footer-blue: #5877f6;
  --ink: #2f3036;
  --muted: #4c4f5a;
  --shadow: 0 20px 45px rgba(26, 36, 78, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.45;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  height: 84px;
  padding: 0 clamp(24px, 12vw, 292px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(34, 34, 34, 0.06);
}

.brand {
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.brand img {
  width: 46px;
  height: 50px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-nav a,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 41px;
  padding: 0 13px;
  font-size: 18px;
  color: #303137;
}

.menu-button {
  width: 52px;
  height: 52px;
  padding: 10px;
  border: 0;
  display: none;
  background: transparent;
  cursor: pointer;
}

.section-texture {
  background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url("assets/waterpros/paper-texture.jpg");
  background-size: cover;
  background-position: center top;
}

.hero {
  min-height: 640px;
  padding: 82px clamp(24px, 12.7vw, 318px) 92px;
  display: grid;
  grid-template-columns: minmax(420px, 576px) minmax(460px, 786px);
  align-items: start;
  justify-content: center;
  gap: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 47px;
}

.hero h1,
.trusted h2,
.projects h2,
.services h2,
.testimonial h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 620px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 62px;
  line-height: 1.07;
  font-weight: 800;
}

.hero h1 span,
.trusted h2 span,
.projects h2 span,
.services h2 span,
.testimonial h2 span {
  color: var(--blue);
}

.hero p {
  max-width: 576px;
  margin: 22px 0 28px;
  color: #303137;
}

.button {
  width: 195px;
  min-height: 45px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 786px;
  height: 608px;
  object-fit: cover;
}

.review-badge {
  min-width: 215px;
  height: 57px;
  padding: 0 22px 0 0;
  border-radius: 999px;
  position: absolute;
  top: -28px;
  right: 90px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #3154ee;
  color: #fff;
  font-weight: 800;
}

.review-badge .rating {
  width: 68px;
  height: 68px;
  border: 4px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #3154ee;
}

.services {
  padding: 128px 24px 112px;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  width: 260px;
  height: 330px;
  border-radius: 50%;
  position: absolute;
  left: 11%;
  top: 190px;
  background: rgba(59, 117, 255, 0.14);
  filter: blur(45px);
}

.services h2,
.projects h2,
.testimonial h2 {
  text-align: center;
  font-size: 42px;
}

.service-grid {
  max-width: 1027px;
  margin: 88px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.service-card {
  min-height: 264px;
  padding: 52px 34px 30px;
  position: relative;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  background: #edf5ff;
}

.company-card .service-icon {
  background: #e9ffe9;
}

.service-card-red .service-icon {
  background: #ffe8ef;
}

.service-icon img {
  width: 30px;
  height: 30px;
}

.service-card h3,
.project-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.2;
}

.service-card p {
  margin: 31px 0 0;
  font-size: 17px;
  line-height: 1.28;
  color: var(--muted);
}

.angled-band {
  position: relative;
  isolation: isolate;
}

.trusted {
  min-height: 760px;
  padding: 0 clamp(24px, 13vw, 326px);
  display: grid;
  grid-template-columns: minmax(340px, 549px) minmax(420px, 560px);
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.trusted::before {
  content: "";
  position: absolute;
  inset: 130px 0 84px;
  z-index: -1;
  background: var(--soft-blue);
  clip-path: polygon(0 17%, 100% 0, 100% 83%, 0 100%);
}

.trusted-image img {
  width: 549px;
  height: 735px;
  object-fit: cover;
}

.trusted h2 {
  max-width: 520px;
  font-size: 54px;
}

.trusted-copy p {
  max-width: 468px;
  margin: 42px 0 32px;
  color: var(--muted);
}

.stats-card {
  max-width: 477px;
  min-height: 100px;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.stats-card div {
  text-align: center;
}

.stats-card strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1;
  font-weight: 400;
}

.stats-card span {
  display: block;
  margin-top: 13px;
  font-size: 17px;
  color: var(--muted);
}

.projects {
  padding: 84px 24px 126px;
}

.project-grid {
  max-width: 1180px;
  margin: 54px auto 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}

.project-card {
  padding: 20px 20px 30px;
  background: #fff;
  box-shadow: var(--shadow);
}

.project-card img {
  width: 316px;
  height: 221px;
  object-fit: cover;
  margin: 0 auto;
}

.project-card h3 {
  margin-top: 28px;
}

.project-card p {
  min-height: 120px;
  margin: 17px 0 25px;
  color: var(--muted);
  font-size: 17px;
}

.project-card .button,
.projects-button {
  background: #5877f6;
}

.project-card .button {
  width: 195px;
}

.projects-button {
  margin: 0 auto;
  display: flex;
}

.testimonial {
  min-height: 548px;
  padding: 61px 24px 120px;
  position: relative;
  background: var(--soft-blue);
}

.testimonial-body {
  max-width: 860px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 120px minmax(280px, 550px) 120px;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.testimonial blockquote {
  margin: 0;
  text-align: center;
}

.testimonial blockquote p {
  margin: 0;
  font-size: 25px;
  line-height: 1.3;
}

.testimonial footer {
  margin-top: 42px;
  display: grid;
  gap: 12px;
  color: #33343a;
}

.testimonial footer strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.quote {
  width: 94px;
  height: auto;
}

.quote-right {
  align-self: end;
}

.urgent {
  width: min(615px, calc(100% - 48px));
  min-height: 100px;
  margin: -50px auto 64px;
  padding: 26px 20px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.urgent h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.urgent .button {
  background: #5877f6;
  font-size: 16px;
}

.site-footer {
  min-height: 329px;
  padding: 66px 24px 42px;
  background: var(--footer-blue);
  color: #fff;
}

.footer-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.6fr 1fr 1.2fr;
  gap: 58px;
}

.site-footer h2 {
  margin: 0 0 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.2;
}

.footer-brand h2 {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
}

.site-footer p,
.site-footer address,
.footer-nav a {
  margin: 0;
  color: #fff;
  font-style: normal;
  font-size: 18px;
  line-height: 1.45;
}

.footer-nav {
  display: grid;
  gap: 5px;
}

.footer-nav a {
  min-height: auto;
  padding: 4px 0;
}

.social-links {
  margin-top: 60px;
  display: flex;
  gap: 18px;
}

.social-links img {
  width: 32px;
  height: 32px;
}

.newsletter {
  display: grid;
  gap: 9px;
}

.newsletter input {
  width: min(306px, 100%);
  height: 35px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: #fff;
  color: #2f3036;
}

.newsletter button {
  width: 115px;
  height: 40px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #4c5dc9;
  cursor: pointer;
}

.copyright {
  margin-top: 44px;
  text-align: center;
}

.cookie-button {
  width: 50px;
  height: 50px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 30;
  background: #fff;
  box-shadow: 0 4px 20px rgba(39, 54, 115, 0.2);
  cursor: pointer;
}

@media (max-width: 1180px) {
  .site-header {
    padding: 0 36px;
  }

  .brand {
    min-width: 260px;
    gap: 36px;
  }

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

  .hero {
    padding: 64px 32px 78px;
  }

  .hero-copy,
  .hero-media {
    max-width: 786px;
    margin: 0 auto;
  }

  .hero-media {
    margin-top: 46px;
  }

  .trusted {
    padding: 60px 32px 120px;
  }

  .trusted-image,
  .trusted-copy {
    max-width: 720px;
    margin: 0 auto;
  }

  .trusted-image img {
    width: 100%;
    height: 560px;
  }

  .project-grid {
    gap: 28px;
  }

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

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .hero h1 {
    font-size: 48px;
  }

  .service-grid,
  .project-grid {
    max-width: 420px;
    grid-template-columns: 1fr;
  }

  .trusted h2 {
    font-size: 42px;
  }

  .testimonial-body {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .quote {
    width: 70px;
    margin: 0 auto;
  }

  .testimonial blockquote p {
    font-size: 21px;
  }

  .urgent {
    display: grid;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .site-header {
    height: 70px;
    padding: 0 18px;
  }

  .brand {
    min-width: 0;
    gap: 14px;
    font-size: 23px;
  }

  .brand img {
    width: 38px;
    height: 42px;
  }

  .hero {
    padding: 44px 18px 64px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-media img {
    height: 390px;
  }

  .review-badge {
    min-width: 185px;
    right: 12px;
  }

  .services,
  .projects {
    padding-left: 18px;
    padding-right: 18px;
  }

  .services h2,
  .projects h2,
  .testimonial h2 {
    font-size: 36px;
  }

  .trusted {
    padding-left: 18px;
    padding-right: 18px;
  }

  .trusted-image img {
    height: 430px;
  }

  .stats-card {
    grid-template-columns: 1fr;
  }

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

  .social-links {
    margin-top: 28px;
  }
}
