:root {
  --dark: #2e2e2e;
  --ink: #434342;
  --muted: #6e6d6b;
  --teal: #4e8793;
  --teal-dark: #3e6c76;
  --teal-deep: #365f68;
  --lime: #e9ff59;
  --red: #ff0000;
  --paper: #faf8f5;
  --line: #edf3f4;
  --white: #ffffff;
  --display: aktiv-grotesk-extended, Heebo, Arial, "Helvetica Neue", Helvetica, sans-serif;
  --body: Heebo, Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Mobile safety net: never allow sideways scroll on small screens. */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

/* Lock page scroll while the mobile nav drawer is open. */
body.nav-lock {
  overflow: hidden;
}

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

img,
iframe,
video {
  height: auto;
}

iframe {
  border: 0;
}

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

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

.container {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

#header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 18px;
  background: #f7f7f7;
}

.header-holder {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: block;
  padding: 22px 0 12px;
  flex: 0 0 auto;
}

.logo a,
.footer__logo a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 54px;
  height: 42px;
  position: relative;
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 6px 10px 6px 0;
  border-radius: 50%;
  border: 10px solid var(--white);
  border-right-color: transparent;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 8px;
  width: 16px;
  height: 10px;
  background: var(--red);
}

.brand-type {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  color: var(--white);
}

.brand-subtitle {
  color: #d7d7d7;
  font-size: 10px;
  line-height: 1;
}

#nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
}

.nav-drop {
  display: flex;
  flex-direction: column-reverse;
  align-items: end;
  justify-content: space-between;
  min-height: 76px;
}

.primary-menu,
.nav-drop__contacts-list,
.footer__menu,
.footer__submenu,
.social-list,
.footer-logos-block__logos-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu {
  display: flex;
  align-items: end;
  gap: 2px;
}

.primary-menu > li {
  position: relative;
}

.primary-menu > li > a {
  display: block;
  padding: 16px 18px 17px;
  color: var(--white);
  font-size: 13px;
  transition: color 0.24s ease, background 0.24s ease;
}

.primary-menu > li:hover > a,
.primary-menu > li.active > a {
  color: var(--lime);
  background: rgba(255, 255, 255, 0.04);
}

.has-drop-down-a::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.24s ease;
}

.has-drop-down:hover .has-drop-down-a::after,
.has-drop-down.open .has-drop-down-a::after {
  transform: rotate(225deg) translateY(-1px);
}

.menu-drop {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 260px;
  background: var(--dark);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.has-drop-down:hover .menu-drop,
.has-drop-down.open .menu-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-drop a {
  display: block;
  padding: 9px 20px;
  color: var(--white);
  font-size: 13px;
  transition: color 0.2s ease, background 0.2s ease;
}

.menu-drop a:hover {
  color: var(--lime);
  background: rgba(255, 255, 255, 0.05);
}

.nav-drop__contacts-list {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 18px;
  color: var(--ink);
  font-size: 12px;
}

.nav-drop__contacts-list a {
  transition: color 0.2s ease;
}

.nav-drop__contacts-list a:hover {
  color: var(--red);
}

.social-list {
  display: flex;
  gap: 13px;
  align-items: center;
}

.social-list a {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  color: currentColor;
}

.nav-opener {
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* Mobile drawer close (X) + dim overlay — hidden on desktop. */
.nav-close {
  display: none;
}

.nav-overlay {
  display: none;
}

.nav-overlay[hidden] {
  display: none !important;
  pointer-events: none;
}

.hero-section {
  min-height: 650px;
  position: relative;
  overflow: hidden;
  background: var(--teal-dark);
}

.hero-section.inner-hero,
.hero-section.about-hero {
  min-height: 640px;
}

.hero-section__bg-image,
.hero-section__bg-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-section__bg-image img {
  object-fit: cover;
}

.hero-section__bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.hero-section__decor {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48%;
  max-width: 620px;
  height: 60%;
  background: rgba(62, 108, 118, 0.88);
  z-index: 1;
}

.hero-section__decor::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  background: rgba(78, 135, 147, 0.35);
}

.hero-section__content-holder {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: end;
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
  padding: 0 0 145px;
}

.inner-hero .hero-section__content-holder,
.about-hero .hero-section__content-holder {
  padding-bottom: 118px;
}

.hero-text-block {
  max-width: 760px;
  color: var(--white);
}

.hero-text-block__pretitle,
.section-kicker,
.label,
.block-title,
.footer-logos-block__title {
  display: block;
  color: var(--teal);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-text-block__pretitle {
  color: var(--white);
  margin-bottom: 22px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--dark);
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

h1 {
  color: var(--white);
  font-size: clamp(38px, 5vw, 72px);
}

h1 .highlight,
h2 .highlight,
.copy-highlight {
  color: var(--lime);
}

h2 {
  font-size: clamp(30px, 3.2vw, 48px);
}

h3 {
  font-size: 24px;
}

p {
  margin: 0 0 18px;
}

.button,
.link-button,
.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 12px 18px;
  border: 1px solid var(--red);
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover,
.link-button:hover,
.form-button:hover {
  background: var(--dark);
  border-color: var(--dark);
  transform: translateY(-1px);
}

.button.secondary {
  background: transparent;
  border-color: var(--white);
}

.button.secondary:hover {
  background: var(--white);
  color: var(--teal-dark);
}

.mission-section {
  position: relative;
  background: var(--teal-dark);
  color: var(--white);
  padding: 100px 0;
  overflow: hidden;
}

.mission-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(62, 108, 118, 0.9), rgba(62, 108, 118, 0.9)),
    var(--mission-image, none) center / cover no-repeat;
  opacity: 0.94;
}

.mission-section .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) 1fr;
  gap: 120px;
  align-items: center;
}

.mission-section h2 {
  color: var(--white);
  font-size: 34px;
}

.mission-section p {
  max-width: 610px;
  font-size: 18px;
  font-weight: 700;
}

.mission-section strong {
  color: var(--lime);
}

.info-content {
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  min-height: 540px;
}

.info-content__text {
  padding: 92px max(40px, calc((100vw - 1180px) / 2)) 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-content__text .section-kicker {
  margin-bottom: 18px;
}

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

.info-content__text p {
  max-width: 570px;
}

.info-content__image {
  min-height: 440px;
  position: relative;
  overflow: hidden;
}

.info-content__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-content__image::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 56%;
  height: 72%;
  background: rgba(255, 255, 255, 0.72);
}

.statistics-section {
  background: var(--paper);
  padding: 80px 0 88px;
  text-align: center;
}

.statistics-section .section-kicker {
  margin-bottom: 36px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px;
}

.stat-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--ink);
  transition: transform 0.22s ease, color 0.22s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
}

.stat-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #d9e7ea;
  display: grid;
  place-items: center;
  color: var(--teal-dark);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.stat-icon svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-icon--leak {
  color: #356d76;
}

.stat-icon--storm {
  color: #a92820;
}

.stat-icon--membrane {
  color: #376374;
}

.stat-icon--coating {
  color: #926800;
}

.stat-icon--drainage {
  color: #385e4f;
}

.stat-icon--reroof {
  color: #603c73;
}

.stat-card:hover .stat-icon {
  background: var(--lime);
  color: var(--dark);
  transform: scale(1.04);
}

.stat-card strong {
  color: var(--dark);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.1;
  text-transform: uppercase;
}

.stat-card span:not(.stat-icon) {
  max-width: 140px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1fr);
  min-height: 560px;
  background: var(--teal-dark);
}

.feature-band__copy {
  padding: 86px max(40px, calc((100vw - 1180px) / 2)) 80px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-band__copy .section-kicker {
  color: var(--lime);
  margin-bottom: 16px;
}

.feature-band__copy h2,
.feature-band__copy p {
  color: var(--white);
}

.feature-band__image {
  position: relative;
  min-height: 430px;
}

.feature-band__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-band__image::after,
.project-panel::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 74px;
  height: 74px;
  background: var(--lime);
}

.project-section {
  padding: 128px 0 112px;
  background: var(--paper);
}

.project-heading {
  width: min(100% - 40px, 1180px);
  margin: 0 auto 42px;
  display: grid;
  justify-items: end;
  text-align: right;
}

.project-heading .section-kicker {
  margin-bottom: 12px;
}

.project-panel {
  position: relative;
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  align-items: center;
}

.project-panel__image {
  min-height: 430px;
}

.project-panel__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-panel__card {
  position: relative;
  margin-left: -80px;
  padding: 72px 72px 64px;
  min-height: 340px;
  background: var(--white);
  box-shadow: 0 22px 50px rgba(46, 46, 46, 0.08);
}

.project-panel__card .label {
  margin-bottom: 20px;
}

.project-panel__card h3 {
  margin-bottom: 18px;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  color: var(--dark);
  font-weight: 700;
  transition: color 0.2s ease;
}

.arrow-link::before {
  content: "→";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 17px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.arrow-link:hover {
  color: var(--red);
}

.arrow-link:hover::before {
  transform: translateX(4px);
}

.reach-section {
  position: relative;
  overflow: hidden;
  padding: 122px 0 100px;
  background:
    radial-gradient(circle at 15% 45%, rgba(78, 135, 147, 0.22) 1.8px, transparent 2px) 0 0 / 14px 14px,
    linear-gradient(90deg, rgba(255,255,255,0.85), rgba(250,248,245,0.96));
}

.reach-section .container {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(320px, 0.72fr);
  gap: 80px;
  align-items: center;
}

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

.reach-location-card {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  color: var(--white);
  background: var(--dark);
}

.reach-location-card img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.reach-location-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
}

.reach-location-card span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.reach-location-card:hover img {
  transform: scale(1.07);
  opacity: 0.92;
}

.reach-all {
  display: grid;
  place-items: center;
  min-height: 72px;
  grid-column: 1 / -1;
  background: var(--red);
  color: var(--white);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background 0.22s ease, color 0.22s ease;
}

.reach-all:hover {
  background: var(--lime);
  color: var(--dark);
}

.reach-copy h2 {
  color: var(--teal);
  font-size: 32px;
  margin-bottom: 18px;
  text-transform: none;
}

.legend {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: var(--dark);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 10px;
  vertical-align: -1px;
  background: var(--red);
}

.legend span + span::before {
  background: var(--teal);
}

.hero-text-section {
  padding: 158px 0 94px;
  background: var(--teal-dark);
  color: var(--white);
}

.hero-text-section__holder-block {
  width: min(100% - 40px, 980px);
  margin-inline: auto;
  text-align: center;
}

.hero-text-section .hero-text-block__pretitle {
  color: var(--lime);
}

.hero-text-section h1 {
  margin-bottom: 26px;
}

.hero-text-section p {
  font-size: 20px;
}

.contact-hero {
  min-height: 560px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 110px 20px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(46, 46, 46, 0.58), rgba(46, 46, 46, 0.78)),
    var(--contact-image) center / cover no-repeat;
  color: var(--white);
  text-align: center;
}

.contact-hero__inner {
  width: min(100%, 900px);
  position: relative;
  z-index: 1;
}

.contact-hero .hero-text-block__pretitle {
  color: var(--lime);
}

.contact-hero h1 {
  margin-bottom: 24px;
}

.contact-hero p {
  width: min(100%, 760px);
  margin-inline: auto;
  color: var(--white);
  font-size: 20px;
}

.breadcrumb-bar {
  background: var(--paper);
  padding: 24px 0 0;
}

.breadcrumb-bar ol {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb-bar li + li::before {
  content: "/";
  margin-right: 9px;
  color: var(--teal);
}

.breadcrumb-bar a {
  color: var(--teal-dark);
  font-weight: 700;
}

.breadcrumb-bar a:hover {
  color: var(--red);
}

.overview-section,
.services-info-section,
.detail-section {
  background: var(--paper);
  padding: 104px 0;
}

.overview-grid,
.split-grid,
.detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: 86px;
  align-items: start;
}

.overview-grid h2,
.split-grid h2,
.detail-grid h2 {
  margin-top: 16px;
}

.copy-column {
  font-size: 18px;
}

.copy-column p:last-child {
  margin-bottom: 0;
}

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

.services-section {
  padding: 112px 0;
  background: var(--paper);
}

.services-section__intro {
  width: min(100% - 40px, 740px);
  margin: 0 auto 86px;
  text-align: center;
}

.services-section__intro p {
  font-size: 24px;
}

.services-section__heading {
  text-align: center;
  margin-bottom: 72px;
}

.services-section__heading .section-kicker {
  margin-bottom: 16px;
}

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

.taxonomy-card {
  display: grid;
  justify-items: center;
  text-align: center;
  color: var(--ink);
  transition: transform 0.22s ease, color 0.22s ease;
}

.taxonomy-card:hover {
  transform: translateY(-5px);
}

.taxonomy-card__image {
  width: 210px;
  height: 155px;
  margin-bottom: 22px;
  position: relative;
}

.taxonomy-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.taxonomy-card__image::after {
  content: "";
  position: absolute;
  right: -15px;
  bottom: -15px;
  width: 52px;
  height: 52px;
  background: var(--red);
  opacity: 0.9;
}

.taxonomy-card h3 {
  margin-bottom: 12px;
  text-transform: none;
}

.taxonomy-card p {
  max-width: 360px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.taxonomy-card .arrow-link {
  margin-top: 3px;
  font-size: 13px;
}

.detail-main {
  padding: 92px 0 0;
  background: var(--paper);
}

.detail-lead {
  width: min(100% - 40px, 900px);
  margin: 0 auto 76px;
  text-align: center;
  font-size: 24px;
  line-height: 1.45;
}

.detail-panel {
  background: var(--white);
  padding: 70px;
  box-shadow: 0 18px 44px rgba(46, 46, 46, 0.06);
}

.detail-panel h2 {
  margin-bottom: 24px;
}

.detail-panel p {
  font-size: 17px;
  line-height: 1.7;
}

.detail-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 36px 0;
}

.detail-feature-grid a {
  display: grid;
  gap: 9px;
  min-height: 172px;
  padding: 24px;
  background: var(--paper);
  border-top: 5px solid var(--red);
  color: var(--ink);
  transition: transform 0.22s ease, background 0.22s ease;
}

.detail-feature-grid a:hover {
  transform: translateY(-4px);
  background: #f0f7f8;
}

.detail-feature-grid strong {
  color: var(--teal-dark);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-feature-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.detail-faq {
  margin-top: 34px;
  padding: 34px;
  background: var(--teal-dark);
  color: var(--white);
}

.detail-faq h3,
.detail-faq p {
  color: var(--white);
}

.detail-faq h3 {
  margin-bottom: 12px;
}

.detail-aside {
  background: var(--teal-dark);
  color: var(--white);
  padding: 46px;
  position: sticky;
  top: 110px;
  align-self: start;
  overflow-wrap: anywhere;
}

.detail-aside h2,
.detail-aside h3 {
  color: var(--white);
  margin-bottom: 18px;
}

.detail-aside .button {
  margin-top: 14px;
}

.related-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.related-list a {
  color: var(--white);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 14px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.related-list a:hover {
  color: var(--lime);
  border-color: rgba(233, 255, 89, 0.72);
  background: rgba(255, 255, 255, 0.06);
}

.contact-section {
  padding: 104px 0;
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  gap: 82px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  padding: 54px;
  box-shadow: 0 18px 44px rgba(46, 46, 46, 0.06);
}

.contact-card h2 {
  margin-bottom: 24px;
}

.contact-list {
  display: grid;
  gap: 18px;
  font-size: 18px;
}

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

.roof-form label {
  display: grid;
  gap: 8px;
  color: var(--dark);
  font-weight: 700;
}

.roof-form label:last-of-type {
  grid-column: 1 / -1;
}

.roof-form input,
.roof-form textarea,
.roof-form select {
  width: 100%;
  border: 1px solid #d6d6d3;
  background: var(--white);
  padding: 13px 14px;
  color: var(--dark);
}

.roof-form select {
  appearance: none;
  min-height: 53px;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--teal-dark) 50%),
    linear-gradient(135deg, var(--teal-dark) 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 52%,
    calc(100% - 16px) 52%;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.roof-form textarea {
  min-height: 144px;
  resize: vertical;
}

.roof-form .form-button {
  width: fit-content;
  grid-column: 1 / -1;
}

.footer-logos-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  padding: 42px 20px;
  background: var(--white);
}

.footer-logos-block__title {
  color: var(--dark);
  font-size: 12px;
}

.footer-logos-block__logos-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.footer-logos-block__logos-list a,
.footer-logos-block__logos-list span {
  display: inline-flex;
  min-width: 96px;
  justify-content: center;
  border: 1px solid #d8d8d5;
  padding: 9px 12px;
  color: var(--teal-dark);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer__footer-content {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
  padding: 72px 0 52px;
}

.footer__decor {
  position: absolute;
  right: 34px;
  bottom: 22px;
  width: 170px;
  height: 170px;
  opacity: 0.35;
  border: 3px solid var(--lime);
  border-left: 0;
  border-radius: 0 90px 90px 0;
}

.footer__logo {
  display: inline-flex;
  margin-bottom: 54px;
}

.footer__footer-holder {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(5, minmax(135px, 0.8fr));
  gap: 38px;
}

.footer__title,
.block-title {
  display: block;
  color: var(--teal);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer address {
  font-style: normal;
  color: #d4d4d1;
  font-size: 14px;
  line-height: 1.45;
}

.footer__address-holder + .footer__address-holder {
  margin-top: 20px;
}

.footer__menu,
.footer__submenu {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-size: 16px;
}

.footer__menu--stack {
  font-size: 14px;
}

.footer__submenu {
  margin-top: 26px;
  font-size: 14px;
}

.footer a {
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--lime);
}

.footer__social-holder {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 22px;
  margin-bottom: 22px;
}

.copyrights {
  color: #cfcfcb;
  font-size: 12px;
}

.footer__copy-links {
  display: flex;
  gap: 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.mobile-visible {
  display: none;
}

.not-found {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 80px 20px;
  text-align: center;
  background: var(--paper);
}

.not-found h1 {
  color: var(--dark);
  margin-bottom: 20px;
}

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

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

@media (max-width: 1023px) {
  #header::before {
    display: none;
  }

  .header-holder {
    min-height: 46px;
    align-items: center;
  }

  .logo {
    padding: 7px 0;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
    font-size: 17px;
  }

  .brand-mark::before {
    inset: 4px 5px 4px 0;
    border-width: 5px;
  }

  .brand-mark::after {
    right: 2px;
    top: 5px;
    width: 8px;
    height: 5px;
  }

  .brand-name {
    font-size: 12px;
  }

  .brand-subtitle {
    display: none;
  }

  #nav {
    position: fixed;
    inset: 46px 0 auto;
    max-height: calc(100vh - 46px);
    overflow: auto;
    background: var(--dark);
    transform: translateY(-120%);
    transition: transform 0.26s ease;
    z-index: 60;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  }

  .nav-active #nav {
    transform: translateY(0);
  }

  /* Dim overlay behind the drawer — tap to close. */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.26s ease;
  }

  .nav-active .nav-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* Visible close (X) button, top-right of the drawer. */
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 8px;
    right: 12px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .nav-close:hover,
  .nav-close:focus {
    background: var(--lime);
    color: var(--dark);
  }

  .nav-drop {
    width: 100%;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 56px 0 28px;
    position: relative;
  }

  .primary-menu,
  .nav-drop__contacts-list {
    display: grid;
    align-items: stretch;
    gap: 0;
  }

  .nav-drop__contacts-list {
    min-height: 0;
    padding: 14px 20px 0;
    color: var(--white);
  }

  .primary-menu > li > a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-drop {
    position: static;
    min-width: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    background: rgba(0, 0, 0, 0.18);
    padding: 4px 0;
  }

  .has-drop-down.open .menu-drop {
    display: block;
  }

  .nav-opener {
    display: block;
    width: 28px;
    height: 24px;
    position: relative;
  }

  .nav-opener span,
  .nav-opener::before,
  .nav-opener::after {
    content: "";
    position: absolute;
    right: 0;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  .nav-opener::before {
    top: 5px;
  }

  .nav-opener span {
    top: 11px;
    overflow: hidden;
    text-indent: -999px;
  }

  .nav-opener::after {
    top: 17px;
  }

  .nav-active .nav-opener::before {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-active .nav-opener span {
    opacity: 0;
  }

  .nav-active .nav-opener::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-section,
  .hero-section.inner-hero,
  .hero-section.about-hero {
    min-height: 520px;
  }

  .hero-section__decor {
    width: 78%;
    height: 58%;
  }

  .hero-section__content-holder {
    padding-bottom: 82px;
  }

  .mission-section .container,
  .overview-grid,
  .split-grid,
  .detail-grid,
  .contact-grid,
  .reach-section .container,
  .project-panel,
  .feature-band,
  .info-content {
    grid-template-columns: 1fr;
  }

  .mission-section .container,
  .overview-grid,
  .split-grid,
  .detail-grid,
  .contact-grid,
  .reach-section .container {
    gap: 34px;
  }

  .info-content__text,
  .feature-band__copy {
    padding-inline: 28px;
  }

  .project-panel__card {
    margin-left: 0;
    margin-top: -40px;
    width: calc(100% - 32px);
    justify-self: end;
  }

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

  .reach-map-grid,
  .detail-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 20px;
  }

  .hero-section,
  .hero-section.inner-hero,
  .hero-section.about-hero {
    min-height: 450px;
  }

  .hero-text-block__pretitle,
  .section-kicker,
  .label,
  .block-title,
  .footer-logos-block__title {
    font-size: 10px;
  }

  .mission-section,
  .overview-section,
  .services-info-section,
  .services-section,
  .detail-section,
  .contact-section,
  .reach-section,
  .project-section {
    padding: 64px 0;
  }

  .mission-section p,
  .copy-column,
  .detail-lead,
  .services-section__intro p,
  .hero-text-section p {
    font-size: 17px;
  }

  .stat-grid,
  .card-grid,
  .reach-map-grid,
  .detail-feature-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    gap: 48px;
  }

  .detail-panel,
  .detail-aside,
  .contact-card {
    padding: 32px 24px;
  }

  .detail-faq {
    padding: 28px 22px;
  }

  .detail-aside {
    position: static;
  }

  .contact-hero {
    min-height: 470px;
    padding: 92px 20px 76px;
  }

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

  .footer-logos-block {
    display: grid;
    justify-items: center;
  }

  .footer__footer-content {
    padding-top: 52px;
  }

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

  .footer__logo {
    margin-bottom: 36px;
  }

  .desktop-visible {
    display: none;
  }

  .mobile-visible {
    display: block;
  }
}

/* ============================================================
   Mobile reinforcement (<=768px): stacking, tap targets,
   readable type, and a guaranteed-visible hamburger.
   Complements the existing 1023px drawer breakpoint.
   ============================================================ */
@media (max-width: 768px) {
  /* Desktop primary nav stays hidden; burger + drawer drive nav. */
  .nav-opener {
    display: block;
  }

  /* Collapse every multi-column grid/flex deck to a single column. */
  .card-grid,
  .stat-grid,
  .reach-map-grid,
  .detail-feature-grid,
  .overview-grid,
  .split-grid,
  .detail-grid,
  .contact-grid,
  .feature-band,
  .info-content,
  .project-panel,
  .roof-form,
  .footer__footer-holder,
  .mission-section .container,
  .reach-section .container {
    grid-template-columns: 1fr !important;
  }

  /* Comfortable section padding on phones. */
  .mission-section,
  .overview-section,
  .services-info-section,
  .services-section,
  .detail-section,
  .contact-section,
  .reach-section,
  .project-section,
  .hero-text-section {
    padding-left: 0;
    padding-right: 0;
  }

  /* Fluid hero/headings so big type never forces overflow. */
  h1,
  .hero-text-block h1 {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.15;
  }

  h2 {
    font-size: clamp(22px, 5.5vw, 28px);
  }

  /* Readable body copy + breathing room from screen edges. */
  body {
    font-size: 16px;
  }

  main {
    overflow-x: hidden;
  }

  /* Tap targets: nav links, buttons, fields all >=44px and easy to hit. */
  .primary-menu > li > a,
  .menu-drop a,
  .nav-drop__contacts-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .form-button,
  .mobile-button,
  button[type="submit"],
  .button,
  .arrow-link {
    min-height: 44px;
  }

  .roof-form input,
  .roof-form select,
  .roof-form textarea,
  .mobile-form input,
  .mobile-form select,
  .mobile-form textarea,
  .qgajm-h-contact-form input,
  .qgajm-h-contact-form select,
  .qgajm-h-contact-form textarea {
    min-height: 46px;
    font-size: 16px; /* prevents iOS zoom-on-focus */
    width: 100%;
    max-width: 100%;
  }

  .qgajm-h-contact-form textarea,
  .roof-form textarea,
  .mobile-form textarea {
    min-height: 120px;
  }

  /* Footer columns + logo strip stack cleanly. */
  .footer__footer-holder {
    gap: 28px;
  }

  .footer-logos-block {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  /* Kill any residual offset that could cause horizontal scroll. */
  .project-panel__card {
    margin-left: 0;
  }
}

/* ============================================================
   Location detail pages rebuilt from -al fragments.
   Maps the legacy .mobile-* content blocks onto the site theme.
   ============================================================ */
.mobile-loader {
  display: none;
}

.mobile-hero {
  display: none;
}

.mobile-title-band {
  background: var(--teal-dark);
  color: var(--white);
  padding: 64px 0;
}

.mobile-title-band h1 {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  color: var(--white);
}

.mobile-detail {
  width: min(100% - 40px, 1180px);
  margin: 56px auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 48px;
  align-items: start;
}

.mobile-copyblock p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.6;
}

.mobile-sidebar {
  background: var(--white);
  padding: 32px 28px;
  box-shadow: 0 18px 44px rgba(46, 46, 46, 0.06);
  position: sticky;
  top: 92px;
}

.mobile-sidebar h2 {
  margin-top: 0;
}

.mobile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 14px 26px;
  background: var(--red);
  color: var(--white);
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.mobile-button:hover {
  background: #d40000;
}

.mobile-faq {
  margin-top: 36px;
}

.mobile-faq h2 {
  margin-bottom: 18px;
}

.mobile-faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.mobile-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
}

.mobile-faq details p {
  margin: 12px 0 0;
  color: var(--muted);
}

.mobile-contact-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 64px 0;
}

.mobile-band-title {
  width: min(100% - 40px, 1180px);
  margin: 0 auto 24px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--dark);
}

.mobile-form {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mobile-form label {
  display: grid;
  gap: 8px;
  color: var(--dark);
  font-weight: 700;
}

.mobile-form label:nth-of-type(5),
.mobile-form label:last-of-type {
  grid-column: 1 / -1;
}

.mobile-form input,
.mobile-form select,
.mobile-form textarea {
  width: 100%;
  border: 1px solid #d6d6d3;
  background: var(--white);
  padding: 13px 14px;
  color: var(--dark);
}

.mobile-form textarea {
  min-height: 140px;
  resize: vertical;
}

.mobile-form button[type="submit"] {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 14px 30px;
  background: var(--red);
  color: var(--white);
  border: 0;
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.mobile-form button[type="submit"]:hover {
  background: #d40000;
}

@media (max-width: 768px) {
  .mobile-detail {
    grid-template-columns: 1fr;
    gap: 28px;
    margin: 36px auto;
  }

  .mobile-sidebar {
    position: static;
  }

  .mobile-title-band {
    padding: 44px 0;
  }

  .mobile-contact-band {
    padding: 48px 0;
  }
}
