:root {
  --blue: #264796;
  --blue-dark: #12387e;
  --blue-soft: #dbe7fb;
  --red: #df2239;
  --sanitaer: #32519c;
  --jobs: #264796;
  --ink: #20242d;
  --text: #20242d;
  --placeholder: #9da3aa;
  --white: #fff;
  --max: 1180px;
  --narrow: 980px;
}

* { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #EBECEC;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

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

.section-wide,
.section-narrow {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.section-narrow { width: min(100% - 40px, var(--narrow)); }

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  border-bottom: 0;
}

.header-inner {
  width: min(100% - 48px, 1760px);
  min-height: clamp(130px, 13vw, 245px);
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding-top: clamp(10px, 1.7vw, 34px);
  width: clamp(245px, 23.5vw, 590px);
}

@media(min-width:1200px){
  .brand {
    margin-left:50px;
  }
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: stretch;
  align-self: flex-start;
  gap: 4px;
  margin-right: clamp(110px, 15vw, 360px);
}

.nav-link {
  --nav-color: var(--blue);
  min-width: clamp(72px, 6.6vw, 158px);
  padding: clamp(9px, 1vw, 22px) 12px clamp(8px, 0.85vw, 18px);
  color: #264796;
  background: rgba(249, 250, 252, 0.88);
  border-top: 0;
  border-right: 2px solid var(--nav-color);
  border-bottom: 2px solid var(--nav-color);
  border-left: 2px solid var(--nav-color);
  font-size: clamp(0.76rem, 1.05vw, 1.55rem);
  text-align: center;
  transition: color 150ms ease, background-color 150ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--white);
  background: var(--nav-color);
}

.nav-heizung { --nav-color: #e31e24; }
.nav-sanitaer { --nav-color: #32519c; }
.nav-klima { --nav-color: #00a0e3; }
.nav-wartung { --nav-color: #ffed00; }
.nav-jobs { --nav-color: #264796; }

.nav-wartung:hover,
.nav-wartung:focus-visible,
.nav-wartung.is-active {
  color: #264796;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  margin-top: 18px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(23, 71, 158, 0.3);
  background: var(--white);
  color: var(--blue);
}

.nav-toggle span:not(.sr-only) {
  width: 22px;
  height: 2px;
  background: currentColor;
}

.hero {
  --hero-image: url("../img/headerbild-heizung.png");
  min-height: clamp(390px, 40.1vw, 770px);
  margin-top: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: end center;
  padding: clamp(210px, 23vw, 430px) 20px clamp(64px, 7vw, 128px);
  color: var(--white);
  background: var(--blue);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(23, 71, 158, 0) 0 70%, rgba(23, 71, 158, 0.54) 81%, rgba(23, 71, 158, 0.82) 100%),
    var(--hero-image) center top / cover no-repeat;
  opacity: 1;
  transition: opacity 360ms ease;
}

.hero-static .hero-bg {
  background:
    linear-gradient(180deg, rgba(23, 71, 158, 0) 0 70%, rgba(23, 71, 158, 0.54) 81%, rgba(23, 71, 158, 0.82) 100%),
    var(--hero-image) center top / cover no-repeat;
}

.hero-static-heizung {
  --hero-image: url("../img/headerbild-heizung.png");
}

.hero-static-sanitaer {
  --hero-image: url("../img/headerbild-sanitaer.png");
}

.hero-static-klima {
  --hero-image: url("../img/headerbild-klima.png");
}

.hero-static-wartung {
  --hero-image: url("../img/headerbild-wartung.png");
}

.hero-static-jobs {
  --hero-image: url("../img/headerbild-jobs.png");
}

.hero.is-fading .hero-bg {
  opacity: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0 42%, rgba(0, 0, 0, 0.32) 72%, rgba(0, 0, 0, 0.08) 100%);
  pointer-events: none;
}

.hero-wave-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 56%;
  background: url("../img/welle-weiss-oben.png") center top / 100% 100% no-repeat;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  transform: translateY(clamp(12px, 1.4vw, 28px));
}

.hero h1 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.35vw, 26px);
  min-height: clamp(40px, 3.6vw, 76px);
  font-size: clamp(1.7rem, 2.65vw, 3.35rem);
  font-weight: 400;
  letter-spacing: 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.hero h1 strong {
  font-weight: 800;
}

.hero h1 img,
.hero-claim-icon {
  width: clamp(36px, 3.3vw, 70px);
  height: auto;
  flex: 0 0 auto;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 0.55vw, 10px);
  margin-top: clamp(18px, 1.55vw, 30px);
}

.dot {
  width: clamp(11px, 0.85vw, 16px);
  height: clamp(11px, 0.85vw, 16px);
  padding: 0;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dot.is-active {
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.hero-icons {
  position: absolute;
  top: clamp(120px, 15vw, 255px);
  right: clamp(130px, 17vw, 430px);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, clamp(70px, 6.25vw, 156px));
  grid-auto-rows: auto;
  gap: clamp(4px, 0.5vw, 12px);
}

.hero-icons a {
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-icons a:nth-child(1) { grid-column: 1; grid-row: 1; }
.hero-icons a:nth-child(2) { grid-column: 2; grid-row: 1; }
.hero-icons a:nth-child(3) { grid-column: 2; grid-row: 2; }
.hero-icons a:nth-child(4) { grid-column: 2; grid-row: 3; }

.hero-icons img {
  display: block;
  width: 100%;
  height: auto;
}

.intro {
  padding: 44px 0 18px;
  text-align: center;
}

.intro h2,
.support-copy h2,
.quality h2 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.25;
}

.intro p,
.support-copy p,
.quality p {
  margin: 5px auto;
  max-width: 900px;
  font-size: 1rem;
}

.services { padding: 12px 0 8px; }

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

.service-card {
  --service-head: clamp(34px, 2.65vw, 42px);
  --service-wave: clamp(46px, 4.2vw, 62px);
  --service-text-top: clamp(8px, 0.75vw, 12px);
  --service-accent: #264796;
  --service-hover-bg: #264796;
  --service-hover-text: #fff;
  --service-hover-wave: url("../img/kachel-welle-unten-dunkelblau.png");
  min-height: clamp(120px, 10.8vw, 154px);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: var(--service-head) 1fr;
  padding: 0;
  color: #264796;
  background: #fff;
  border: 0;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: var(--service-head);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background: #93a8d6;
  transition: background-color 160ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -2px;
  height: var(--service-wave);
  z-index: 0;
  background: url("../img/kachel-welle-unten.png") center bottom / 100% 100% no-repeat;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(22, 44, 89, 0.16);
}

.service-card:hover::before,
.service-card:focus-visible::before {
  background: var(--service-hover-bg);
}

.service-card:hover::after,
.service-card:focus-visible::after {
  background-image: var(--service-hover-wave);
}

.service-card h3 {
  position: relative;
  z-index: 1;
  height: var(--service-head);
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #264796;
  background: transparent;
  border: 2px solid var(--service-accent);
  border-bottom: 0;
  font-size: clamp(1.1rem, 1.12vw, 1.22rem);
  line-height: 1.15;
  font-weight: 800;
}

.service-copy {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 0;
  padding: var(--service-text-top) 8px calc(var(--service-wave) - 8px);
  overflow: hidden;
}

.service-card p {
  margin: 0;
  font-size: clamp(1.1rem, 0.98vw, 1.02rem);
  line-height: 1.28;
  padding-bottom:20px;
  transition: color 160ms ease;
}

.service-card:hover p,
.service-card:focus-visible p {
  color: var(--service-hover-text);
}

.service-icon {
  position: absolute;
  right: clamp(8px, 0.8vw, 13px);
  bottom: 0px;
  width: clamp(30px, 2.65vw, 42px);
  height: auto;
  z-index: 1;
  transition: opacity 160ms ease;
}

.service-icon-hover {
  opacity: 0;
}

.service-card:hover .service-icon-default,
.service-card:focus-visible .service-icon-default {
  opacity: 0;
}

.service-card:hover .service-icon-hover,
.service-card:focus-visible .service-icon-hover {
  opacity: 1;
}

.service-heizung {
  --service-accent: #e31e24;
  --service-hover-bg: #e31e24;
  --service-hover-text: #fff;
  --service-hover-wave: url("../img/kachel-welle-unten-rot.png");
}

.service-bad {
  --service-accent: #264796;
  --service-hover-bg: #264796;
  --service-hover-text: #fff;
  --service-hover-wave: url("../img/kachel-welle-unten-dunkelblau.png");
}

.service-klima {
  --service-accent: #00a0e3;
  --service-hover-bg: #00a0e3;
  --service-hover-text: #fff;
  --service-hover-wave: url("../img/kachel-welle-unten-blau.png");
}

.service-wartung {
  --service-accent: #ffed00;
  --service-hover-bg: #ffed00;
  --service-hover-text: #264796;
  --service-hover-wave: url("../img/kachel-welle-unten-gelb.png");
}

.support-copy {
  padding: 24px 0 30px;
  text-align: center;
}

.image-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 4px 0 48px;
}

.image-placeholder {
  min-height: 142px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #283044;
  background: var(--placeholder);
  font-size: 0.9rem;
  text-align: center;
}

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

.reasons {
  padding: 18px 0 34px;
  overflow: hidden;
}

.blue-band h2 {
  margin: 0 0 28px;
  text-align: center;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
}

.testimonial-slider {
  width: 100vw;
  margin-left: calc((100vw - 100%) / -2);
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: clamp(38px, 5vw, 78px);
  transition: transform 620ms ease;
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 clamp(180px, 17vw, 245px);
  margin: 0;
  text-align: center;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: clamp(0.78rem, 0.95vw, 1rem);
  font-weight: 700;
  line-height: 1.28;
}

.testimonial-card figcaption {
  margin-top: 24px;
  font-size: clamp(0.76rem, 0.86vw, 0.92rem);
  font-weight: 700;
}

.faq-grid article { text-align: center; }

.faq-grid h3 {
  margin: 0 0 8px;
  font-size: 0.94rem;
}

.faq-grid p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.48;
}

.logo-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 24px;
  padding: 28px 0 32px;
}

.logo-strip span {
  height: 38px;
  background: #858a91;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: #eef1f5;
  padding-top:40px;
}

.footer-wave {
  height: clamp(120px, 15vw, 205px);
  background: url("../img/welle-weiss-unten.png") center top / 100% 100% no-repeat;
}

.footer-call {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: right;
  margin-top: calc(clamp(120px, 15vw, 205px) * -1.02);
  padding-left: clamp(210px, 24vw, 430px);
}
.footer-call img {
  width:300px;
}

.phone-badge {
  min-width: clamp(270px, 28vw, 390px);
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1vw, 18px);
  padding: 0 clamp(16px, 2vw, 34px) 0 0;
  color: var(--white);
  background: var(--blue);
  font-size: clamp(1.75rem, 3vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.phone-badge img {
  width: clamp(54px, 5.6vw, 86px);
  height: auto;
  margin-left: -2px;
}

.footer-main {
  min-height: clamp(170px, 17vw, 240px);
  margin-top: clamp(52px, 8.0vw, 104px);
  background: #fff;
}

.footer-main-inner {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr auto;
  grid-template-areas:
    "logo . ."
    "address address social"
    "legal legal legal";
  align-items: end;
  gap: 14px 30px;
  padding: clamp(8px, 1.4vw, 18px) 0 28px;
}

.brand-footer {
  grid-area: logo;
  width: clamp(260px, 30vw, 410px);
  padding-top: 0;
}

.footer-main-inner address {
  grid-area: address;
  color: var(--blue);
  font-size: clamp(0.9rem, 1.25vw, 1.2rem);
  font-style: normal;
  line-height: 1.3;
  text-align: left;
}

@media(min-width:1275px){
  .footer-main-inner address {
    margin-left:105px;
  }
}

.social-links {
  grid-area: social;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}

.social-links a {
  width: clamp(31px, 3vw, 42px);
  height: clamp(31px, 3vw, 42px);
  display: grid;
  place-items: center;
}

.social-links img {
  width: 100%;
  height: auto;
}

.footer-legal {
  grid-area: legal;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 8px;
}

.footer-legal button {
  border: 0;
  padding: 0;
  color: var(--blue);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.3;
  text-decoration: underline;
  background: transparent;
  cursor: pointer;
}

.footer-legal button:hover,
.footer-legal button:focus-visible {
  color: var(--sanitaer);
}

body.modal-open {
  overflow: hidden;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.legal-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 50, 0.58);
}

.legal-modal-panel {
  position: relative;
  width: min(100%, 820px);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: clamp(22px, 4vw, 38px);
  color: var(--text);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(10, 24, 60, 0.28);
}

.legal-modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 1.6rem;
  line-height: 1;
  background: var(--white);
  cursor: pointer;
}

.legal-modal-close:hover,
.legal-modal-close:focus-visible {
  color: var(--white);
  background: var(--blue);
}

.legal-modal-content h2 {
  margin: 0 44px 18px 0;
  color: var(--blue);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.legal-modal-content h3 {
  margin: 22px 0 8px;
  color: var(--blue);
  font-size: 1.08rem;
}

.legal-modal-content p {
  margin: 0 0 11px;
  line-height: 1.55;
}

.legal-note {
  padding: 12px 14px;
  background: #eef1f7;
}

.hero-sub { min-height: clamp(390px, 40.1vw, 770px); }

.heat-row {
  padding-top: 18px;
  padding-bottom: 30px;
}

.sanitary-planners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
  align-items: center;
  width: min(100% - 40px, 640px);
  padding: 0 0 34px;
}

.sanitary-planners a {
  display: block;
  transition: transform 160ms ease, filter 160ms ease;
}

.sanitary-planners a:hover,
.sanitary-planners a:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 8px 14px rgba(22, 44, 89, 0.18));
}

.sanitary-planners img {
  display: block;
  width: 100%;
  height: auto;
}

.heat-row .image-placeholder,
.references .image-placeholder { min-height: 138px; }

.consulting { padding: 0 0 20px; }

.consulting-sanitary {
  width: 100%;
  padding: 22px 0 32px;
  color: var(--white);
  background: var(--blue);
}

.consulting h2,
.quality h2 {
  color: var(--blue);
  text-align: center;
}

.consulting-sanitary h2 {
  color: var(--white);
}

.consulting-sanitary .consulting-item p {
  color: var(--white);
}

.consulting h2 {
  margin: 0 0 15px;
  font-size: clamp(1.12rem, 2.5vw, 1.35rem);
}

.consulting-list {
  display: grid;
  gap: 12px;
  max-width: 950px;
  margin-inline: auto;
}

.consulting-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: center;
}

.consulting-label {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.consulting-label img {
  display: block;
  width: 100%;
  height: auto;
}

.consulting-item p {
  margin: 0;
  font-size: 0.95rem;
}

.jobs-visual {
  margin-top: 10px;
  margin-bottom: 24px;
}

.jobs-visual img {
  display: block;
  width: min(100%, 930px);
  height: auto;
  margin-inline: auto;
}

.jobs-benefits {
  padding: 28px 0 34px;
}

.jobs-benefits h2 {
  margin: 0 0 22px;
  color: var(--white);
  text-align: center;
}

.job-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.job-benefit-grid article {
  text-align: center;
}

.job-benefit-grid h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: clamp(1rem, 1.9vw, 1.18rem);
}

.job-benefit-grid p {
  margin: 0;
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.45;
}

.application-section {
  padding-top: 30px;
}

.application-intro {
  max-width: 780px;
  margin: 0 auto 24px;
  text-align: center;
}

.application-intro h2 {
  margin: 0 0 10px;
  color: var(--blue);
}

.application-intro p {
  margin: 0;
}

.application-form {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px);
  background: #eef1f7;
}

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

.application-form label {
  display: grid;
  gap: 7px;
  color: var(--blue);
  font-weight: 700;
}

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  border: 1px solid rgba(50, 81, 156, 0.45);
  border-radius: 0;
  padding: 11px 12px;
  color: var(--text);
  font: inherit;
  background: var(--white);
}

.application-form textarea {
  resize: vertical;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.form-full,
.upload-field,
.consent-field {
  margin-top: 18px;
}

.upload-field {
  padding: 18px;
  border: 1px dashed rgba(50, 81, 156, 0.65);
  background: var(--white);
}

.upload-field span {
  color: var(--text);
  font-weight: 400;
}

.consent-field {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  color: var(--text);
  font-weight: 400;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 20px;
  border: 0;
  padding: 0 28px;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  background: var(--blue);
  cursor: pointer;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--jobs);
}

.form-status {
  margin: 14px 0 0;
  color: var(--blue);
  font-weight: 700;
}

.quality {
  padding: 12px 0 22px;
  text-align: center;
}

.references { padding-bottom: 48px; }

.faq { padding: 20px 0 40px; }

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

@media (max-width: 980px) {
  .header-inner { min-height: 104px; }

  .main-nav { margin-right: 0; }

  .main-nav {
    position: absolute;
    top: 72px;
    right: 0;
    display: none;
    flex-direction: column;
    min-width: 220px;
    border: 1px solid rgba(23, 71, 158, 0.25);
    box-shadow: 0 12px 24px rgba(20, 42, 86, 0.18);
  }

  .main-nav.is-open { display: flex; }

  .nav-link {
    border-right: 2px solid var(--nav-color);
    border-bottom: 2px solid var(--nav-color);
    border-left: 2px solid var(--nav-color);
    background: rgba(249, 250, 252, 0.96);
    text-align: left;
  }

  .nav-toggle { display: inline-flex; }

  .service-grid,
  .image-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .service-grid {
    gap: 18px 14px;
    width: min(100% - 40px, 900px);
  }

  .service-card {
    --service-head: clamp(52px, 8vw, 66px);
    --service-wave: clamp(86px, 13vw, 112px);
    --service-text-top: clamp(10px, 1.6vw, 14px);
    min-height: clamp(220px, 34vw, 310px);
  }

  .service-card::after {
    bottom: -3px;
  }

  .service-card h3 {
    padding-top: 0;
    font-size: 1.6rem;
  }

  .service-card p {
    font-size: 1.6rem;
  }

  .service-icon {
    width: clamp(48px, 6vw, 62px);
    right: 14px;
    bottom: 22px;
  }

  .logo-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .job-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .consulting-item { grid-template-columns: 220px 1fr; }

  .footer-main-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "address"
      "social"
      "legal";
    justify-items: center;
    text-align: center;
    padding-top: 32px;
  }

  .footer-main-inner address {
    text-align: center;
  }

  .footer-call {
    padding-left: 0;
  }
  .footer-call img {
    width:200px;
    transform:translateY(-15px);
  }
}

@media (max-width: 640px) {
  .section-wide,
  .section-narrow { width: min(100% - 28px, var(--max)); }

  .header-inner {
    min-height: 90px;
    width: min(100% - 28px, var(--max));
  }

  .brand {
    width: min(220px, calc(100% - 58px));
    max-width: calc(100% - 58px);
    padding-top: 10px;
  }

  .hero {
    min-height: 430px;
    padding: 170px 14px 60px;
    background-position: center top;
  }

  .hero-wave-top {
    height: 46%;
    clip-path: none;
    background-size: auto 100%;
  }

  .hero-icons {
    top: 122px;
    right: 14px;
    grid-template-columns: repeat(2, 46px);
    grid-auto-rows: auto;
    gap: 6px;
  }

  .hero-icons a {
    width: 100%;
    height: auto;
  }

  .hero-icons img {
    width: 100%;
    height: auto;
  }

  .hero h1 {
    gap: 8px;
    font-size: 1.25rem;
  }

  .hero h1 img { width: 34px; }

  .intro { padding-top: 32px; }

  .service-grid,
  .image-row,
  .faq-grid { grid-template-columns: 1fr; }

  .job-benefit-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .sanitary-planners {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 320px);
    gap: 12px;
  }

  .testimonial-card {
    flex-basis: min(72vw, 270px);
  }

  .service-grid {
    width: min(100% - 28px, 470px);
    gap: 20px;
  }

  .service-card {
    --service-head: clamp(58px, 13vw, 72px);
    --service-wave: clamp(102px, 25vw, 130px);
    --service-text-top: clamp(10px, 2.5vw, 16px);
    min-height: clamp(310px, 72vw, 360px);
  }

  .service-card::after {
    bottom: -3px;
  }

  .service-card h3 {
    padding-top: 0;
    font-size: 1.7rem;
  }

  .service-card p {
    font-size: 1.7rem;
  }

  .service-icon {
    width: clamp(54px, 13vw, 68px);
    right: 14px;
    bottom: 24px;
  }

  .image-row { gap: 14px; }

  .logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .consulting-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .consulting-label { font-size: 1.05rem; }

  .footer-wave {
    height: 118px;
    background-size: auto 100%;
  }

  .footer-call {
    justify-content: center;
    margin-top: -116px;
    padding-left: 0;
  }
  .footer-call img {
    width:200px;
    transform:translateY(-20px);
  }

  .phone-badge {
    min-width: 0;
    width: min(100%, 320px);
    justify-content: center;
    font-size: 1.45rem;
    letter-spacing: 0.06em;
    padding-right: 14px;
  }

  .phone-badge img {
    width: 54px;
  }

  .footer-main-inner {
    padding-top: 34px;
  }

  .brand-footer {
    width: min(300px, 100%);
  }
}
