:root {
  --dark: #182229;
  --dark-2: #111b21;
  --olive: #53651c;
  --olive-2: #6f8028;
  --paper: #f7f7f4;
  --muted: #d8dfd7;
  --ink: #172026;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  display: flex;
  justify-content: center;
  background: #d7d7d7;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
}

.flyer {
  width: min(100%, 1054px);
  height: 1492px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.hero-grid {
  height: 1085px;
  position: relative;
}

.brand-panel {
  z-index: 3;
  position: absolute;
  left: 0;
  top: 0;
  width: 650px;
  height: 450px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 70px 0 0 0;
  background: #fff;
  clip-path: path("M 0 0 H 590 C 578 82 596 142 622 223 C 677 312 596 398 607 450 H 0 Z")
}

.brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 560px;
  max-width: calc(100% - 82px);
  height: auto;
}

.photo-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 470px;
  height: 594px;
  overflow: hidden;
  background: #9fb8c9;
}

.photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% 42%;
  display: block;
}

.trust-badge {
  position: absolute;
  top: 112px;
  right: 20px;
  width: 154px;
  height: 154px;
  border: 4px solid #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--olive);
  color: #fff;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

.trust-badge p,
.trust-badge strong {
  margin: 0;
  font-size: 15px;
  line-height: 1.18;
  font-weight: 800;
}

.trust-badge span {
  width: 52px;
  height: 2px;
  margin: 13px 0 12px;
  background: rgba(255, 255, 255, .7);
}

.headline-panel {
  position: absolute;
  left: 0;
  top: 447px;
  width: 610px;
  height: 426px;
  z-index: 2;
  padding: 43px 34px 30px 52px;
  background: var(--dark);
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%);
}

.headline-panel h2 {
  margin: 0;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 77px;
  line-height: .92;
  letter-spacing: 1px;
  font-weight: 800;
}

.headline-panel h2 span {
  color: var(--olive-2);
}

.accent-rule {
  width: 158px;
  height: 3px;
  margin: 25px 0 15px;
  background: var(--olive-2);
}

.headline-panel p {
  margin: 0;
  font-size: 27px;
  line-height: 1.32;
  color: #f6f7f5;
}

.services-panel {
  position: absolute;
  right: 0;
  top: 594px;
  width: 459px;
  height: 491px;
  padding: 34px 34px 18px 26px;
  background: var(--paper);
  overflow: hidden;
}

.services-panel h2 {
  position: relative;
  margin: 0 0 19px;
  color: var(--olive);
  font-size: 32px;
  line-height: 1;
  font-weight: 800;
}

.services-panel h2::after {
  content: "";
  display: block;
  width: 119px;
  height: 3px;
  margin-top: 14px;
  background: var(--olive);
}

.services-panel ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-panel li {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #141b20;
  font-size: 20px;
  font-weight: 700;
}

.services-panel li::before {
  content: "";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 41%, #fff 42% 52%, transparent 53%) 8px 13px / 16px 9px no-repeat,
    var(--olive);
  transform: rotate(-8deg);
}

.watermark {
  position: absolute;
  right: -15px;
  bottom: 10px;
  width: 260px;
  height: 215px;
  opacity: .05;
}

.watermark::before,
.watermark::after {
  content: "";
  position: absolute;
}

.watermark::before {
  left: 0;
  right: 0;
  bottom: 18px;
  height: 95px;
  background: #172026;
  clip-path: polygon(0 100%, 37% 20%, 100% 100%);
}

.watermark::after {
  right: 0;
  bottom: 100px;
  width: 190px;
  height: 85px;
  background: #172026;
  clip-path: polygon(0 90%, 12% 42%, 23% 53%, 31% 18%, 43% 43%, 55% 10%, 68% 45%, 83% 15%, 100% 54%, 100% 100%, 0 100%);
}

.promise-row {
  position: absolute;
  left: 0;
  top: 873px;
  width: 610px;
  height: 212px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #f8f8f6;
  border-top: 1px solid #e0e0dc;
}

.promise-row article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 20px;
  text-align: center;
}

.promise-row article + article {
  border-left: 1px solid #d5d5d1;
}

.promise-icon {
  position: relative;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  color: #fff;
}

.shield-icon {
  background: var(--olive);
  clip-path: polygon(50% 0, 90% 13%, 86% 65%, 50% 100%, 14% 65%, 10% 13%);
}

.shield-icon::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 23px;
  width: 23px;
  height: 12px;
  border-left: 6px solid #fff;
  border-bottom: 6px solid #fff;
  transform: rotate(-45deg);
}

.house-icon::before {
  content: "";
  position: absolute;
  inset: 15px 8px 5px;
  background: var(--olive);
}

.house-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 46px;
  height: 46px;
  background: var(--olive);
  clip-path: polygon(50% 0, 100% 42%, 88% 42%, 88% 100%, 12% 100%, 12% 42%, 0 42%);
}

.hands-icon::before {
  content: "";
  position: absolute;
  inset: 12px 3px 8px;
  background: var(--olive);
  clip-path: polygon(0 36%, 16% 20%, 34% 44%, 48% 18%, 100% 50%, 82% 85%, 55% 61%, 45% 79%, 29% 60%, 18% 76%);
}

.price-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--olive);
  font-family: Georgia, serif;
  font-size: 40px;
  font-weight: 700;
}

.promise-row h3 {
  margin: 0 0 7px;
  color: var(--olive);
  font-size: 16px;
  line-height: 1.15;
  font-weight: 800;
}

.promise-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.22;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 216px;
  padding: 8px 8px 0;
  background: var(--olive);
  overflow: hidden;
}

.gallery-strip article {
  position: relative;
  min-height: 208px;
  overflow: hidden;
  background: var(--olive);
  clip-path: polygon(0 0, 96% 0, 87% 100%, 0 100%);
}

.gallery-strip article:last-child {
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.gallery-strip img {
  width: 112%;
  height: 166px;
  object-fit: cover;
  display: block;
}

.gallery-strip h3 {
  position: absolute;
  left: 0;
  right: 8%;
  bottom: 0;
  margin: 0;
  min-height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--olive);
  font-size: 17px;
  font-weight: 800;
}

.contact-footer {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 34px;
  height: 191px;
  padding: 27px 52px 24px;
  background: var(--dark);
  color: #fff;
}

.contact-left,
.contact-right {
  display: flex;
  align-items: flex-start;
  gap: 21px;
}

.contact-right {
  border-left: 2px solid var(--olive);
  padding-left: 47px;
}

.footer-symbol {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 50%;
  background: var(--olive);
}

.phone-symbol::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 14px;
  width: 25px;
  height: 35px;
  border: 10px solid #fff;
  border-top: 0;
  border-left-width: 8px;
  border-radius: 0 0 22px 22px;
  transform: rotate(-40deg);
}

.pin-symbol::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 10px;
  width: 27px;
  height: 38px;
  background: #fff;
  clip-path: path("M13.5 0C6 0 0 6 0 13.5 0 24 13.5 38 13.5 38S27 24 27 13.5C27 6 21 0 13.5 0Z");
}

.pin-symbol::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
}

.footer-label {
  margin: 0 0 7px;
  color: var(--olive-2);
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}

.footer-phone {
  display: block;
  margin-bottom: 17px;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

.mail-symbol,
.web-symbol {
  position: relative;
  width: 24px;
  height: 20px;
  flex: 0 0 24px;
}

.mail-symbol {
  border: 3px solid #fff;
}

.mail-symbol::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 2px;
  height: 12px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg) skew(10deg, 10deg);
}

.web-symbol {
  border: 3px solid #fff;
  border-radius: 50%;
}

.web-symbol::before,
.web-symbol::after {
  content: "";
  position: absolute;
  background: #fff;
}

.web-symbol::before {
  left: 3px;
  right: 3px;
  top: 50%;
  height: 3px;
}

.web-symbol::after {
  top: 2px;
  bottom: 2px;
  left: 50%;
  width: 3px;
}

.coverage {
  margin: 0 0 3px;
  color: #fff;
  font-size: 22px;
  line-height: 1.35;
}

.slogan {
  margin: 2px 0 0 53px;
  color: var(--olive-2);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 31px;
  font-style: italic;
  line-height: 1;
  transform: rotate(-8deg);
}

@media (max-width: 860px) {
  body {
    display: block;
    background: #fff;
  }

  .flyer {
    width: 100%;
    height: auto;
    min-height: 0;
    box-shadow: none;
    overflow: visible;
  }

  .hero-grid {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    position: static;
  }

  .brand-panel,
  .photo-panel,
  .headline-panel,
  .services-panel,
  .promise-row {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }

  .brand-panel,
  .headline-panel,
  .gallery-strip article,
  .gallery-strip article:last-child {
    clip-path: none;
  }

  .brand-panel {
    min-height: 330px;
    align-items: center;
    justify-content: center;
    padding: 34px 20px;
  }

  .brand-logo {
    width: min(600px, 96%);
    max-width: none;
  }

  .photo-panel {
    height: clamp(300px, 58vw, 520px);
  }

  .photo-panel img {
    object-position: 53% 43%;
  }

  .trust-badge {
    top: 24px;
    right: 24px;
    width: clamp(128px, 22vw, 170px);
    height: clamp(128px, 22vw, 170px);
  }

  .trust-badge p,
  .trust-badge strong {
    font-size: clamp(13px, 2.2vw, 17px);
  }

  .headline-panel {
    padding: 42px 36px 44px;
  }

  .headline-panel h2 {
    font-size: clamp(58px, 12vw, 96px);
  }

  .headline-panel p {
    font-size: clamp(21px, 3.6vw, 29px);
  }

  .services-panel {
    padding: 38px 36px 42px;
  }

  .services-panel h2 {
    font-size: clamp(28px, 5vw, 34px);
  }

  .services-panel ul {
    gap: 14px;
  }

  .services-panel li {
    font-size: clamp(18px, 3.2vw, 22px);
  }

  .promise-row {
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #e0e0dc;
  }

  .promise-row article {
    min-height: 180px;
  }

  .gallery-strip {
    grid-template-columns: repeat(2, 1fr);
    min-height: 0;
    padding: 8px;
    gap: 8px;
  }

  .gallery-strip article {
    min-height: 220px;
  }

  .gallery-strip article:last-child {
    grid-column: 1 / -1;
  }

  .gallery-strip img {
    width: 100%;
    height: 176px;
  }

  .gallery-strip h3 {
    right: 0;
  }

  .contact-footer {
    grid-template-columns: 1fr;
    height: auto;
    gap: 24px;
    padding: 32px 36px;
  }

  .contact-right {
    border-left: 0;
    border-top: 2px solid var(--olive);
    padding: 25px 0 0;
  }
}

@media (max-width: 560px) {
  .brand-panel {
    min-height: 250px;
    padding: 22px 12px;
  }

  .photo-panel {
    height: 320px;
  }

  .trust-badge {
    width: 120px;
    height: 120px;
    top: 16px;
    right: 14px;
    border-width: 3px;
  }

  .trust-badge p,
  .trust-badge strong {
    font-size: 12px;
  }

  .trust-badge span {
    width: 42px;
    margin: 8px 0;
  }

  .headline-panel {
    padding: 32px 24px 36px;
  }

  .headline-panel h2 {
    font-size: clamp(50px, 16vw, 66px);
  }

  .headline-panel p {
    font-size: 20px;
  }

  .services-panel {
    padding: 30px 22px 34px;
  }

  .services-panel li {
    font-size: 18px;
    gap: 12px;
  }

  .services-panel li::before {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .promise-row {
    grid-template-columns: 1fr;
  }

  .promise-row article {
    min-height: 160px;
  }

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

  .gallery-strip article,
  .gallery-strip article:last-child {
    grid-column: auto;
  }

  .gallery-strip article {
    min-height: 210px;
  }

  .gallery-strip img {
    height: 165px;
  }

  .contact-footer {
    padding: 24px;
  }

  .contact-left,
  .contact-right {
    gap: 14px;
  }

  .footer-symbol {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .footer-phone {
    font-size: 28px;
  }

  .footer-link,
  .coverage {
    font-size: 15px;
  }

  .footer-link {
    overflow-wrap: anywhere;
  }

  .slogan {
    margin-left: 0;
    font-size: 25px;
  }
}
