:root {
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #ece9e8;
  --text: #111111;
  --muted: #555555;
  --line: #bdb7b4;
  --line-strong: #111111;
  --line-width: 2px;
  --accent: #000000;
  --white: #ffffff;
  --max-width: 1200px;
  --section-space: 88px;
  --radius: 6px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  --contact-input-bg: #ded9d5;
  --contact-input-focus: #d4cfca;
  /* Horizontal gutters on .container + safe-area on notched phones */
  --page-pad-x: clamp(16px, 4.2vw, 28px);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: max(var(--page-pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--page-pad-x), env(safe-area-inset-right, 0px));
}

.section {
  position: relative;
  padding: var(--section-space) 0;
  border-top: none;
}

.section-head {
  margin-bottom: 28px;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: none;
  color: #2d2d2d;
  margin: 0 0 10px;
  padding: 0;
}

.section-label__text {
  display: block;
  line-height: 1.35;
  max-width: 280px;
}

/* Simple section rule (replace with graphic later if needed) */
.section-divider {
  display: block;
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-top: var(--line-width) solid var(--line-strong);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 400;
  margin-bottom: 24px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 40px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 45;
  background: rgba(236, 233, 232, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 16px;
}

.site-header__menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
  flex-shrink: 0;
  z-index: 60;
}

.site-header__menu-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.site-header__menu-toggle:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}

.site-header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 22px;
  pointer-events: none;
}

.site-header__burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__burger span:nth-child(2) {
  opacity: 0;
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-header__overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.site-header__overlay.is-visible {
  opacity: 1;
  visibility: visible;
  touch-action: none;
  overscroll-behavior: none;
}

/* Prevent background scroll while mobile menu is open (iOS needs fixed body + JS scroll offset) */
html.nav-open {
  overflow: hidden;
  overflow-x: hidden;
  height: 100%;
  overscroll-behavior: none;
}

body.nav-open {
  overflow: hidden;
  overflow-x: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overscroll-behavior: none;
  touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header__burger span,
  .site-header__overlay {
    transition: none;
  }
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-body);
  font-size: 14px;
}

.nav a:hover {
  opacity: 0.7;
}

.nav a.btn:hover {
  opacity: 1;
}

@media (min-width: 901px) {
  .site-header__menu-toggle {
    display: none !important;
  }

  .site-header__overlay {
    display: none !important;
  }

  .nav {
    position: static;
    transform: none;
    width: auto;
    height: auto;
    max-height: none;
    padding: 0;
    margin: 0;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
  }

  /* Text links only — do not reset .btn or it removes border-bottom and padding from Kontakt */
  .nav a:not(.btn) {
    border-bottom: none;
    padding: 0;
  }

  .nav a.btn {
    padding: 0 22px;
    min-height: 48px;
    width: auto;
    align-self: center;
    flex-shrink: 0;
    border: 1px solid var(--accent);
  }

  .nav a.btn:hover {
    border-bottom: 1px solid var(--accent);
  }
}

@media (max-width: 900px) {
  /*
   * backdrop-filter on an ancestor creates a containing block for position:fixed in some browsers,
   * which breaks the slide-in panel. Use solid background on the bar instead.
   */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(236, 233, 232, 0.98);
  }

  /* Avoid horizontal rubber-band revealing a “peek” of the drawer or empty gutter */
  html {
    overflow-x: hidden;
  }

  .site-header__menu-toggle {
    display: inline-flex;
  }

  .site-header__overlay {
    display: block;
    pointer-events: none;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .site-header__overlay.is-visible {
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 50;
    width: min(320px, 88vw);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: calc(var(--header-height) + 20px) max(20px, env(safe-area-inset-right, 0px)) max(28px, env(safe-area-inset-bottom, 0px)) 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(236, 233, 232, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }

  .nav.is-open {
    transform: translate3d(0, 0, 0);
  }

  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 16px;
  }

  .nav a.btn {
    margin-top: 20px;
    padding: 14px 22px;
    border: 1px solid var(--accent);
    text-align: center;
    justify-content: center;
    border-bottom: 1px solid var(--accent);
  }

  .nav a:hover {
    opacity: 1;
    color: var(--muted);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav {
    transition: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  transition: 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--accent);
}

.hero {
  padding: 56px 0 72px;
}

.hero-stage {
  position: relative;
  min-height: 640px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.hero-image {
  width: min(100%, 470px);
}

.hero-image img {
  width: 100%;
  box-shadow: none;
  border-radius: 0;
}

.hero-title-left,
.hero-title-right {
  position: absolute;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  padding: 8px 14px;
  margin: 0;
  z-index: 2;
}

.hero-title-left {
  top: 10px;
  left: 140px;
  font-size: clamp(42px, 4.9vw, 68px);
}

.hero-title-right {
  right: 120px;
  bottom: 10px;
  font-size: clamp(38px, 4.6vw, 62px);
}

/* —— Was machen wir: horizontal gallery (4:3 — typisch für Innenräume) —— */
.projects-strip {
  --projects-gap: 28px;
  /* ~2.65 slides; gutter aligns with container padding via 100% − padding approximation */
  --projects-slide: clamp(240px, calc((100vw - max(32px, 8.4vw)) / 2.65), 440px);
  background: var(--bg);
  margin-top: 28px;
  padding: 40px 0 28px;
}

.projects-strip__inner {
  position: relative;
}

.projects-gallery {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

@media (prefers-reduced-motion: reduce) {
  .projects-gallery {
    scroll-behavior: auto;
  }
}

.projects-gallery::-webkit-scrollbar {
  display: none;
}

.projects-gallery__track {
  display: flex;
  gap: var(--projects-gap);
  width: max-content;
}

.projects-strip .gallery-photo {
  flex: 0 0 var(--projects-slide);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.projects-strip .gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  display: block;
}

.projects-gallery__nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.projects-gallery__btn {
  font: inherit;
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 0;
}

.projects-gallery__btn:hover {
  opacity: 0.65;
}

.projects-gallery__btn:focus-visible {
  outline: 2px solid var(--line-strong);
  outline-offset: 2px;
}

.benefits-list {
  display: grid;
  gap: 0;
  border-top: var(--line-width) solid var(--line-strong);
}

/* Keine Linie direkt unter der Überschrift «Was macht uns attraktiver?» */
#vorteile .benefits-list {
  border-top: none;
}

.benefit-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  border-bottom: var(--line-width) solid var(--line-strong);
}

.benefit-row__title {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
}

.benefit-row__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.benefit-row__icon img {
  display: block;
  width: auto;
  height: auto;
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
}

#ueber-uns .section-title {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.about-grid {
  --about-gutter: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--about-gutter);
  align-items: center;
}

.about-grid--second {
  margin-top: clamp(44px, 5vw, 72px);
  padding-top: clamp(36px, 4vw, 56px);
}

.about-text {
  position: relative;
  display: grid;
  gap: 22px;
  font-family: var(--font-body);
  font-size: clamp(17px, 1.05vw, 18px);
  line-height: 1.68;
  color: var(--muted);
  min-width: 0;
}

/* Vertikale Trennlinie nur so hoch wie der Textblock */
.about-grid:not(.about-grid--second) .about-text::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: var(--line-width);
  height: 100%;
  margin-left: calc(var(--about-gutter) / 2 - 1px);
  background: rgba(17, 17, 17, 0.35);
  pointer-events: none;
}

.about-grid--second .about-text::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  width: var(--line-width);
  height: 100%;
  margin-right: calc(var(--about-gutter) / 2 - 1px);
  background: rgba(17, 17, 17, 0.35);
  pointer-events: none;
}

.about-image {
  width: min(300px, 92%);
  max-width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(520px, 70vh);
  overflow: hidden;
  border-radius: var(--radius);
}

.about-grid:not(.about-grid--second) .about-image,
.about-grid--second .about-image {
  justify-self: center;
}

.about-image img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: none;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.about-image--wide {
  width: min(300px, 92%);
  aspect-ratio: 3 / 4;
  max-height: min(520px, 70vh);
}

.about-image--wide img {
  object-position: center center;
}

.about-highlight {
  color: var(--text);
  font-weight: 600;
}

/* Kundenstimmen under «Wer bin ich?» */
.about-reviews {
  margin-top: 56px;
  padding-top: 48px;
  border-top: var(--line-width) solid var(--line-strong);
}

.about-reviews__title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  margin: 0 0 28px;
  color: var(--text);
}

.reviews-static {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.review-card {
  border: var(--line-width) solid var(--line-strong);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-card__author {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.review-card__context {
  margin: -4px 0 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--muted);
}

.review-card__stars {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #b8956a;
  line-height: 1;
  margin: 0;
}

.review-card__quote {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  font-style: normal;
  word-break: break-word;
}

.review-card__quote p {
  margin: 0 0 0.85em;
}

.review-card__quote p:last-child {
  margin-bottom: 0;
}

.reviews-all-cta {
  margin-top: 32px;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  position: relative;
}

/* Vertical rule centered between the two columns */
.contact-grid::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: var(--line-width);
  margin-left: calc(var(--line-width) / -2);
  background: var(--line-strong);
  pointer-events: none;
  z-index: 0;
}

.contact-form {
  min-width: 0;
  display: grid;
  gap: 20px;
  align-content: start;
  position: relative;
  z-index: 1;
  padding-right: clamp(28px, 5vw, 56px);
}

.contact-form__notice {
  margin: 0;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.45;
  border-radius: var(--radius);
}

.contact-form__notice--success {
  background: rgba(255, 255, 255, 0.85);
  border: var(--line-width) solid var(--line-strong);
  color: var(--text);
}

.contact-form__notice--error {
  background: #f5e8e6;
  border: var(--line-width) solid #8a4a42;
  color: #3d1814;
}

.contact-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.contact-form__error {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #8a4a42;
  font-weight: 500;
}

.contact-form__error:not([hidden]) {
  display: block;
}

.contact-form__field.has-error input,
.contact-form__field.has-error textarea {
  background: #f5edeb;
  box-shadow: 0 0 0 2px rgba(138, 74, 66, 0.4);
}

.contact-form__field.has-error input:focus,
.contact-form__field.has-error textarea:focus {
  background: var(--contact-input-focus);
  box-shadow: 0 0 0 2px rgba(138, 74, 66, 0.55);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  background: var(--contact-input-bg);
  min-height: 60px;
  padding: 18px 20px;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: none;
  transition: background 0.15s ease;
}

.contact-form textarea {
  min-height: unset;
  max-height: min(220px, 40vh);
  resize: vertical;
  line-height: 1.5;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(17, 17, 17, 0.45);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  background: var(--contact-input-focus);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.contact-form .btn {
  justify-self: start;
  margin-top: 4px;
}

.contact-info {
  min-width: 0;
  position: relative;
  z-index: 1;
  padding-left: clamp(28px, 5vw, 56px);
  border-left: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vw, 40px);
}

.contact-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 22px;
  align-items: start;
}

.contact-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.contact-item__address {
  padding-top: 0;
}

.contact-item__icon svg {
  display: block;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
}

.contact-item__content p {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.contact-item__content a {
  color: inherit;
  text-decoration: none;
}

.contact-item__content a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-top-strip {
  height: 56px;
  background: var(--bg);
}

.site-footer {
  position: relative;
  background: #000000;
  color: #ffffff;
  padding: 52px 0 max(40px, env(safe-area-inset-bottom, 0px));
  border-top: none;
}

.site-footer-house {
  position: absolute;
  top: 0;
  right: max(20px, calc((100vw - 1200px) / 2 + 20px));
  transform: translateY(-100%);
  width: min(200px, 42vw);
  height: auto;
  color: #000000;
  pointer-events: none;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: clamp(36px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.06em;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
}

.footer-instagram-row {
  margin: 0;
}

.footer-instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: clamp(14px, 1.8vw, 18px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-instagram-link:hover {
  opacity: 0.85;
}

.footer-instagram-icon {
  display: inline-flex;
  align-items: center;
}

.footer-instagram-icon svg {
  display: block;
}

.footer-contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  row-gap: 12px;
  font-family: var(--font-body);
  font-size: clamp(13px, 1.35vw, 15px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.4;
}

.footer-contact-bar__item {
  padding: 0 16px;
}

.footer-contact-bar__item a {
  color: #ffffff;
  text-decoration: none;
}

.footer-contact-bar__item a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact-bar__sep {
  width: 1px;
  height: 1.3em;
  align-self: center;
  background: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

.footer-credit {
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.footer-credit__link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-credit__link:hover {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1024px) {
  .about-grid,
  .reviews-static {
    grid-template-columns: 1fr;
  }

  .about-grid:not(.about-grid--second) .about-text::after,
  .about-grid--second .about-text::before {
    display: none;
  }

  .about-image,
  .about-grid--second .about-image {
    justify-self: center;
    width: min(280px, 88vw);
    max-height: min(420px, 65vh);
  }

  .about-image--wide {
    width: min(300px, 92vw);
    max-height: min(400px, 62vh);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .contact-info {
    width: 100%;
    max-width: none;
  }

  .hero-stage {
    min-height: 560px;
  }

  .hero-title-left {
    left: 40px;
    top: 20px;
  }

  .hero-title-right {
    right: 40px;
    bottom: 20px;
  }

  .contact-grid::before {
    display: none;
  }

  .contact-form {
    padding-right: 0;
  }

  .contact-info {
    padding-left: 0;
    padding-top: 28px;
    margin-top: 8px;
    border-top: var(--line-width) solid var(--line-strong);
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
    --section-space: 64px;
  }

  .site-header__inner {
    min-height: var(--header-height);
  }

  .section {
    padding: var(--section-space) 0;
  }

  .hero-stage {
    min-height: unset;
    display: grid;
    gap: 16px;
    justify-items: center;
  }

  .hero-title-left,
  .hero-title-right {
    position: static;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .benefit-row {
    grid-template-columns: 1fr;
  }

  .benefit-row__icon img {
    max-width: 56px;
    max-height: 56px;
  }

  .site-footer-house {
    right: 16px;
    width: min(160px, 48vw);
  }

  .footer-contact-bar {
    flex-direction: column;
    gap: 8px;
  }

  .footer-contact-bar__sep {
    display: none;
  }

  .footer-contact-bar__item {
    padding: 0;
  }
}
