:root {
  --ink: #17212b;
  --ink-soft: #334155;
  --surface: #ffffff;
  --surface-soft: #f4f5f3;
  --surface-warm: #f6f1e5;
  --line: #d9ddd8;
  --accent: #e0ab22;
  --accent-dark: #8a5b00;
  --success: #276749;
  --danger: #a12b2b;
  --shadow: 0 18px 50px rgba(23, 33, 43, 0.12);
  --radius: 18px;
  --header-height: 100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.service-modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.section {
  padding: 96px 0;
}

.section--soft {
  background: var(--surface-soft);
}

.section--warm {
  background: var(--surface-warm);
}

.section--dark {
  background: var(--ink);
  color: #fff;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section--dark .eyebrow,
.hero .eyebrow {
  color: #ffd66a;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6vw, 5.25rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.32rem;
}

p {
  margin-top: 0;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  background: #efbc39;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.button--dark {
  background: var(--ink);
  color: #fff;
}

.button--dark:hover {
  background: #263645;
}

.button--outline {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(23, 33, 43, 0.34);
  color: #fff;
}

.button--outline:hover {
  background: #fff;
  color: var(--ink);
}

.button--outline-dark {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button--outline-dark:hover {
  background: var(--ink);
  color: #fff;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(23, 33, 43, 0.09);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 28px rgba(23, 33, 43, 0.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  width: 250px;
  max-height: 82px;
  object-fit: contain;
}

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

.desktop-nav a {
  font-size: 1rem;
  font-weight: 750;
  text-decoration: none;
}

.desktop-nav a:hover {
  color: var(--accent-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-link {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span::before {
  transform: translateY(-7px);
}

.menu-toggle span::after {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  background: var(--ink);
  transform: translateY(1px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  background: var(--ink);
  transform: translateY(-1px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
}

.mobile-menu.is-open {
  display: block;
  max-height: calc(100vh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-inner {
  display: grid;
  gap: 4px;
  padding: 16px 0 24px;
}

.mobile-menu a {
  padding: 13px 4px;
  font-weight: 750;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: min(850px, 100vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(12, 18, 24, 0.8) 0%, rgba(12, 18, 24, 0.66) 47%, rgba(12, 18, 24, 0.12) 78%),
    url("../images/hero-bagger-v1.0.6.webp");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero-inner {
  padding: calc(var(--header-height) + 74px) 0 88px;
}

.hero-copy {
  max-width: 710px;
}

.hero-copy h1 span {
  color: #ffd66a;
}

.hero-copy .lead {
  max-width: 660px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

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

.trust-strip {
  position: relative;
  z-index: 3;
  margin-top: -42px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.trust-item {
  padding: 24px 28px;
  text-align: center;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--accent-dark);
  font-size: 1.32rem;
}

.trust-item span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(38px, 7vw, 86px);
}

.portrait-wrap {
  position: relative;
}

.portrait-wrap::after {
  position: absolute;
  inset: 24px -20px -20px 24px;
  z-index: -1;
  border-radius: var(--radius);
  background: var(--accent);
  content: "";
}

.portrait-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-copy {
  max-width: 670px;
}

.signature-line {
  margin-top: 24px;
  color: var(--accent-dark);
  font-weight: 800;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card:focus-visible {
  box-shadow: var(--shadow);
}

.service-card:last-child {
  grid-column: 2;
}

.service-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.service-card--erdarbeiten img {
  object-position: center 35%;
}

.service-card--trockenlegung img {
  object-position: center 65%;
}

.service-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.service-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--surface-warm);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 900;
}

.service-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent-dark);
  font-weight: 800;
}

.service-card:hover .service-more,
.service-card:focus-visible .service-more {
  color: #684500;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.service-modal[hidden] {
  display: none;
}

.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 20, 0.78);
  backdrop-filter: blur(3px);
}

.service-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.9fr);
  width: min(1120px, 100%);
  max-height: min(900px, calc(100svh - 48px));
  overflow: auto;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.service-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.service-modal-gallery {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  background: #eef0ed;
}

.service-modal-stage {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
  overflow: hidden;
  border-radius: 15px;
  background: #e2e5e0;
}

.service-modal-stage img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.service-modal-stage img.is-contain {
  object-fit: contain;
}

.service-modal-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.service-modal-badge[hidden] {
  display: none;
}

.service-modal-badge.is-after {
  background: var(--accent);
  color: #111;
}

.service-modal-badge.is-progress {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.service-modal-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0 0 4px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.service-modal-arrow--prev {
  left: 12px;
}

.service-modal-arrow--next {
  right: 12px;
}

.service-modal-image-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.service-modal-image-meta p,
.service-modal-image-meta span {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.service-modal-image-meta span {
  flex: 0 0 auto;
}

.service-modal-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-modal-thumb {
  width: 78px;
  height: 58px;
  overflow: hidden;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  opacity: 0.7;
}

.service-modal-thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.service-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-modal-content {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 48px 34px 34px;
}

.service-modal-content .eyebrow,
.service-modal-content h2,
.service-modal-lead,
.service-modal-copy,
.service-modal-trust {
  margin-bottom: 0;
}

.service-modal-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.service-modal-lead {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.5;
}

.service-modal-copy {
  color: var(--ink-soft);
}

.service-modal-benefits {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-modal-benefits li {
  position: relative;
  padding-left: 30px;
  line-height: 1.45;
}

.service-modal-benefits li::before {
  position: absolute;
  top: 0.08em;
  left: 0;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: #f9edc9;
  color: var(--accent-dark);
  content: "✓";
  font-size: 0.75rem;
  font-weight: 900;
}

.service-modal-trust {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.service-modal-actions {
  display: grid;
  gap: 10px;
}

.additional-services {
  margin-top: 32px;
  padding: 24px 28px;
  border: 1px solid #ddc98f;
  border-radius: 14px;
  background: #fffaf0;
}

.additional-services strong {
  color: var(--accent-dark);
}

.slider {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.slider-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  background: #0d141b;
  box-shadow: var(--shadow);
}

.slider-track {
  display: flex;
  transition: transform 420ms ease;
}

.slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
}

.slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.slide:nth-child(1) img {
  object-position: center 30%;
}

.slide:nth-child(2) img {
  object-position: center 65%;
}

.slide:nth-child(3) img,
.slide:nth-child(4) img {
  object-position: center 55%;
}

.slide:nth-child(5) img {
  object-position: center 60%;
}

.slide figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 32px 28px 18px;
  background: linear-gradient(transparent, rgba(8, 13, 18, 0.76));
  color: #fff;
  font-size: 1.05rem;
  font-weight: 750;
}

.slider-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-size: 1.55rem;
  font-weight: 900;
  cursor: pointer;
  transform: translateY(-50%);
}

.slider-button:hover {
  background: #efbc39;
}

.slider-button--prev {
  left: -25px;
}

.slider-button--next {
  right: -25px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 8px;
}

.slider-dot {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.slider-dot::after {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #b7beb9;
  content: "";
}

.slider-dot.is-active::after {
  background: var(--accent-dark);
  transform: scale(1.25);
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.before-after-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.before-after-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.before-after-card:nth-child(2) .before-after-images {
  grid-template-columns: 9fr 16fr;
}

.comparison-image {
  position: relative;
  min-width: 0;
}

.comparison-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.before-after-card:nth-child(2) .comparison-image:last-child img {
  aspect-ratio: 4 / 3;
}

.comparison-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(23, 33, 43, 0.88);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-image:last-child .comparison-label {
  background: var(--accent);
  color: #111;
}

.before-after-content {
  padding: 24px;
}

.before-after-content p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.case-grid {
  display: grid;
  gap: 28px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.case-card:nth-child(even) .case-image {
  order: 2;
}

.case-image img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
}

.case-content {
  padding: clamp(28px, 5vw, 50px);
}

.case-facts {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}

.case-fact {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
}

.case-fact strong {
  color: var(--accent-dark);
}

blockquote {
  margin: 26px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-style: italic;
}

blockquote cite {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 44px;
  align-items: stretch;
}

.contact-form {
  padding: clamp(26px, 4vw, 42px);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

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

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.92rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #b8c0c7;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}

.form-field textarea {
  min-height: 148px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent-dark);
  outline: 3px solid rgba(224, 171, 34, 0.24);
}

.privacy-check {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 4px 0 22px;
  font-size: 0.88rem;
}

.privacy-check input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}

.privacy-check a {
  color: var(--accent-dark);
  font-weight: 750;
}

.form-status {
  margin-bottom: 14px;
  font-weight: 750;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

.contact-aside {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 16px;
}

.contact-aside .lead {
  color: rgba(255, 255, 255, 0.8);
}

.contact-methods {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.contact-method {
  display: block;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.contact-method span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
}

.contact-method strong {
  color: #ffd66a;
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.map-wrap {
  position: relative;
  flex: 1;
  min-height: 320px;
  overflow: hidden;
  border-radius: 14px;
  background: #e3e6e3;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  padding: 24px;
  color: var(--ink);
  text-align: center;
}

.map-placeholder[hidden] {
  display: none;
}

.map-placeholder p {
  margin-bottom: 16px;
}

.map-wrap iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-wrap iframe[hidden] {
  display: none;
}

.site-footer {
  padding: 48px 0 92px;
  background: #0e171f;
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr;
  gap: 36px;
}

.footer-logo {
  width: 390px;
  max-width: 100%;
  margin-bottom: 18px;
  filter: invert(1);
  mix-blend-mode: screen;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0;
}

.site-footer a {
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.site-footer a:hover {
  color: #ffd66a;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
}

.mobile-contact-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -10px 32px rgba(23, 33, 43, 0.13);
}

.mobile-contact-bar .button {
  min-height: 46px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

@media (max-width: 1040px) {
  .desktop-nav,
  .header-actions .phone-link {
    display: none;
  }

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

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

  .service-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 24px) / 2);
    justify-self: center;
  }

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

@media (max-width: 900px) {
  .service-modal {
    align-items: start;
    overflow-y: auto;
    padding: 12px;
  }

  .service-modal-dialog {
    grid-template-columns: 1fr;
    max-height: none;
    margin: 8px 0;
    overflow: visible;
  }

  .service-modal-stage,
  .service-modal-stage img {
    height: 380px;
    min-height: 380px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    padding-top: 0;
  }

  .map-wrap {
    flex: none;
    min-height: 340px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 80px;
  }

  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, 680px);
  }

  .section {
    padding: 70px 0;
  }

  .brand img {
    width: 190px;
    max-height: 64px;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    min-height: 720px;
    background-image:
      linear-gradient(180deg, rgba(10, 15, 20, 0.69), rgba(10, 15, 20, 0.63)),
      url("../images/hero-bagger-v1.0.6.webp");
    background-position: 58% center;
  }

  .hero-inner {
    padding: calc(var(--header-height) + 50px) 0 82px;
  }

  .hero-actions {
    display: grid;
  }

  .trust-strip {
    margin-top: -24px;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    padding: 18px 22px;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .about-grid,
  .service-grid,
  .before-after-grid,
  .case-card,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card:last-child {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }

  .service-modal {
    padding: 6px;
  }

  .service-modal-dialog {
    margin: 4px 0 78px;
    border-radius: 15px;
  }

  .service-modal-gallery {
    padding: 12px;
  }

  .service-modal-stage,
  .service-modal-stage img {
    height: 310px;
    min-height: 310px;
  }

  .service-modal-content {
    padding: 28px 22px 24px;
  }

  .service-modal-content h2 {
    padding-right: 28px;
  }

  .service-modal-close,
  .service-modal-arrow {
    width: 44px;
    height: 44px;
  }

  .service-modal-close {
    top: 10px;
    right: 10px;
  }

  .service-modal-image-meta {
    gap: 10px;
  }

  .service-modal-thumb {
    width: 70px;
    height: 52px;
  }

  .portrait-wrap {
    max-width: 430px;
    margin: 0 auto;
  }

  .portrait-wrap::after {
    inset: 16px -10px -10px 16px;
  }

  .slider-button {
    width: 44px;
    height: 44px;
  }

  .slider-button--prev {
    left: 8px;
  }

  .slider-button--next {
    right: 8px;
  }

  .slide img {
    aspect-ratio: 4 / 3;
  }

  .slide figcaption {
    padding: 24px 18px 14px;
    font-size: 0.92rem;
  }

  .before-after-images {
    grid-template-columns: 1fr;
  }

  .before-after-card:nth-child(2) .before-after-images {
    grid-template-columns: 1fr;
  }

  .comparison-image img {
    aspect-ratio: 4 / 5;
  }

  .case-card:nth-child(even) .case-image {
    order: 0;
  }

  .case-image img {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .case-fact {
    grid-template-columns: 1fr;
    gap: 2px;
  }

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

  .mobile-contact-bar {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
