/* ==========================================================================
   Parrella Digital Solutions GmbH
   Palette: Papier-Weiss / Tinte / Gold (aus dem Logo)
   Schrift: Outfit (variabel, selbst gehostet)
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #fafaf8;
  --paper-tint: #f2f1ec;
  --ink: #16140f;
  --ink-soft: #3c3830;
  --muted: #66615a;
  --gold: #a5814b;
  --gold-deep: #82653a;
  --line: rgba(22, 20, 15, 0.14);
  --line-soft: rgba(22, 20, 15, 0.08);
  --dark: #12100c;
  --dark-2: #1a1712;
  --paper-on-dark: #f5f3ee;
  --muted-on-dark: #a39c8f;
  --line-on-dark: rgba(245, 243, 238, 0.16);
  --error: #a03123;
  --ok: #3f6b45;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html { background: var(--paper); }

body {
  font-family: "Outfit", "Segoe UI", system-ui, sans-serif;
  font-weight: 380;
  background: transparent;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

::selection { background: rgba(165, 129, 75, 0.25); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-size: 0.9rem;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 470;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out), transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}
.btn--primary:hover { background: var(--gold-deep); }

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); }

.btn--gold {
  background: var(--gold-deep);
  color: #fff;
}
.btn--gold:hover { background: #6b5330; }
.btn--gold[disabled] { opacity: 0.6; cursor: default; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  /* Ganz oben offen: die Bühne läuft bis unter das Menüband durch.
     Erst beim Scrollen legt sich Papier darunter. */
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease,
    border-color 0.4s ease;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__brand { flex-shrink: 0; }
.nav__brand img { height: 44px; width: auto; }

.nav__links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 420;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.3rem;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { flex-shrink: 0; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  width: 26px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Mobile-Menü */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  padding: calc(var(--nav-h) + 8vh) clamp(1.5rem, 6vw, 3rem) 3rem;
}
.menu nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.6rem;
}
.menu nav > a {
  text-decoration: none;
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  font-weight: 330;
  letter-spacing: -0.01em;
}
.menu nav > a.btn {
  font-size: 1rem;
  font-weight: 470;
  margin-top: 1.2rem;
}
.menu.is-open nav > a {
  animation: menuIn 0.55s var(--ease-out) both;
  animation-delay: calc(var(--i) * 70ms);
}
@keyframes menuIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Hintergrundbühne (fixiertes Video)
   ========================================================================== */

.stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  overflow: hidden;
}
.stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Netzkugel nach rechts rücken. Der Massstab muss die Verschiebung
     überdecken, sonst entsteht links eine leere Kante: t <= s/2 - 0.5.
     Bewusst knapp über dem Minimum: jedes Prozent Zoom kostet Schärfe,
     weil die Quelle nur 1920 px breit ist. */
  transform: translateX(9%) scale(1.2);
  transform-origin: center;
}

/* Scrim: links papierdicht für Lesbarkeit, rechts offen für das Motiv */
.stage__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(250, 250, 248, 0.97) 0%,
      rgba(250, 250, 248, 0.94) 30%,
      rgba(250, 250, 248, 0.74) 48%,
      rgba(250, 250, 248, 0.14) 74%,
      rgba(250, 250, 248, 0.3) 100%
    ),
    /* weicher Auslauf unter dem Menüband, damit die Navigation lesbar bleibt */
    linear-gradient(
      to bottom,
      rgba(250, 250, 248, 0.62) 0px,
      rgba(250, 250, 248, 0.5) 90px,
      rgba(250, 250, 248, 0) 260px
    );
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
}

.hero__inner {
  width: 100%;
  max-width: 1200px;
}

.hero__title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.hero__title em {
  font-style: italic;
  font-weight: 380;
  color: var(--gold-deep);
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
}
.hero__title .line > span { display: inline-block; }

.hero__sub {
  margin-top: 1.6rem;
  max-width: 42ch;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  /* dunkler als auf deckendem Grund: der Text liegt über dem Video */
  color: var(--ink-soft);
}

.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Hero-Choreografie beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line > span {
    transform: translateY(115%);
    animation: heroLine 0.9s var(--ease-out) forwards;
  }
  .hero__title .line:nth-child(2) > span { animation-delay: 0.1s; }

  .hero__sub,
  .hero__actions {
    opacity: 0;
    transform: translateY(22px);
    animation: heroFade 0.9s var(--ease-out) forwards;
  }
  .hero__sub { animation-delay: 0.35s; }
  .hero__actions { animation-delay: 0.48s; }

  .stage video {
    opacity: 0;
    animation: stageIn 1.6s var(--ease-out) 0.15s forwards;
  }
}

@keyframes heroLine { to { transform: translateY(0); } }
@keyframes heroFade { to { opacity: 1; transform: translateY(0); } }
@keyframes stageIn { to { opacity: 1; } }

/* ==========================================================================
   Sektionen allgemein
   ========================================================================== */

/* Inhaltssektionen liegen leicht durchscheinend über der Bühne */
.section {
  position: relative;
  z-index: 1;
  background: rgba(250, 250, 248, 0.94);
  padding-block: clamp(4.5rem, 11vh, 8rem);
}
.section--tint { background: rgba(242, 241, 236, 0.94); }

.section__title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 330;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.section__lead {
  margin-top: 0.9rem;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   Leistungen
   ========================================================================== */

.services__list {
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.2rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4.5vh, 3rem);
  border-top: 1px solid var(--line);
  position: relative;
}
.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 1px;
  width: 72px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.service:hover::before { transform: scaleX(1); }

.service__head h3 {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 400;
  line-height: 1.25;
  max-width: 16ch;
}

.service__body p {
  color: var(--ink-soft);
  max-width: 58ch;
}

.service__tags {
  list-style: none;
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service__tags li {
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
}

/* ==========================================================================
   Branchen
   ========================================================================== */

.branches__tabs {
  margin-top: clamp(2rem, 5vh, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.branches__tab {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 450;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  min-height: 44px;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out), transform 0.15s ease;
}
.branches__tab:hover { border-color: var(--gold); color: var(--gold-deep); }
.branches__tab:active { transform: scale(0.97); }
.branches__tab.is-active {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
}

.branches__panels { margin-top: 2.2rem; }
.branches__panel:focus-visible { outline: none; }

.branches__quote {
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 60ch;
}

.branches__grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.use {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
}
.use h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.02rem;
  font-weight: 480;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}
.use p {
  font-size: 0.92rem;
  color: var(--muted);
}

.use__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  position: relative;
}
.use__check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 7px;
  height: 4.5px;
  border-left: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: rotate(-45deg);
}

/* Panel-Wechsel: Karten steigen gestaffelt ein */
@media (prefers-reduced-motion: no-preference) {
  .branches__panel.is-active .branches__quote {
    animation: useIn 0.55s var(--ease-out) both;
  }
  .branches__panel.is-active .use {
    animation: useIn 0.6s var(--ease-out) both;
    animation-delay: calc(0.08s + var(--i) * 70ms);
  }
}
@keyframes useIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Rechner
   ========================================================================== */

.calc__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.calc__panel {
  background: rgba(18, 16, 12, 0.93);
  color: var(--paper-on-dark);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem);
  display: grid;
  gap: 1.9rem;
}

.calc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.calc__row label { font-size: 0.98rem; }
.calc__row output {
  font-weight: 550;
  font-size: 1.05rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Slider */
.calc__slider input[type="range"] {
  --fill: 10%;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  /* 44 px hohe Trefffläche für den Finger, Spur bleibt optisch schmal */
  height: 44px;
  margin-block: -11px;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.calc__slider input[type="range"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 999px;
}
.calc__slider input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--gold) var(--fill), rgba(245, 243, 238, 0.18) var(--fill));
}
.calc__slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  transition: transform 0.15s ease;
}
.calc__slider input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__slider input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(245, 243, 238, 0.18);
}
.calc__slider input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
}
.calc__slider input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
}

/* Ergebnis */
.calc__result {
  text-align: center;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 1.7rem;
}
.calc__result-label {
  font-size: 0.92rem;
  color: var(--muted-on-dark);
}
.calc__total {
  margin-top: 0.5rem;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 330;
  line-height: 1.1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.calc__note {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted-on-dark);
}

.calc__cta { justify-self: center; }

/* ==========================================================================
   Vorgehen
   ========================================================================== */

.process__track {
  list-style: none;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  padding-top: 2rem;
}
.process__track::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.process__track::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.process__track.is-drawn::after {
  transition: transform 1.6s var(--ease-out);
  transform: scaleX(1);
}

.process__num {
  display: block;
  font-size: 1rem;
  font-weight: 480;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: 0.7rem;
  font-variant-numeric: tabular-nums;
}
.process__step h3 {
  font-size: 1.15rem;
  font-weight: 480;
  margin-bottom: 0.5rem;
}
.process__step p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ==========================================================================
   Studio
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.about__media {
  max-width: 400px;
}
.about__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.about__media figcaption {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--gold-deep);
}

.studio__statement {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-weight: 330;
  line-height: 1.45;
  letter-spacing: -0.005em;
  max-width: 36ch;
}
.about__personal {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 48ch;
}

/* ==========================================================================
   Kontakt (dunkle Sektion)
   ========================================================================== */

/* Kontakt lässt die Bühne leicht durchscheinen: Klammer zum Hero */
.section--dark {
  background: rgba(18, 16, 12, 0.93);
  color: var(--paper-on-dark);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.contact__info h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 330;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.contact__info > p {
  margin-top: 1.1rem;
  color: var(--muted-on-dark);
  max-width: 44ch;
}

.contact__details {
  margin-top: 2.4rem;
  display: grid;
  gap: 1.3rem;
}
.contact__details dt {
  font-size: 0.82rem;
  color: var(--muted-on-dark);
  margin-bottom: 0.15rem;
}
.contact__details dd a {
  display: inline-block;
  padding-block: 0.6rem;
  color: var(--paper-on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color 0.3s ease;
}
.contact__details dd a:hover { color: var(--gold); }

.contact__form { display: grid; gap: 1.4rem; }

.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.92rem;
  font-weight: 450;
}
.field__optional {
  color: var(--muted-on-dark);
  font-weight: 380;
  font-size: 0.85rem;
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--paper-on-dark);
  background: var(--dark-2);
  border: 1px solid var(--line-on-dark);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  transition: border-color 0.3s ease;
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
}
.field.is-invalid input,
.field.is-invalid textarea { border-color: #c26a5c; }
.field__error {
  font-size: 0.85rem;
  color: #e0a196;
}

.contact__form .btn { justify-self: start; }

.form__status {
  font-size: 0.95rem;
  min-height: 1.4em;
}
.form__status.is-ok { color: #b8d4bc; }
.form__status.is-error { color: #e0a196; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  z-index: 1;
  background: rgba(250, 250, 248, 0.94);
  border-top: 1px solid var(--line-soft);
  padding-block: 2.2rem;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer__logo { height: 34px; width: auto; }
.footer p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ==========================================================================
   WerkOS (Produktseite)
   Nutzt das Design-System der Hauptseite. Einziges eigenes Stilmittel:
   eine goldene Linie links an hervorgehobenen Elementen.
   ========================================================================== */

/* Seiten ohne Hintergrundbühne: Flächen deckend, sonst schiene der
   Papiergrund durch die dunkle Sektion und würde sie aufhellen. */
.no-stage .section { background: var(--paper); }
.no-stage .section--tint { background: var(--paper-tint); }
.no-stage .section--dark { background: var(--dark); }
.no-stage .footer { background: var(--paper); }

.wo-hero { padding-top: calc(var(--nav-h) + clamp(2rem, 5vh, 3.5rem)); }

.wo-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.wo-eyebrow {
  font-size: 0.92rem;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.wo-hero__title {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.wo-hero__title em {
  font-style: italic;
  font-weight: 380;
  color: var(--gold-deep);
}

.wo-hero__lead {
  margin-top: 1.4rem;
  max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--ink-soft);
}

.wo-hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Produktbilder mit erklärender Unterschrift */
.wo-shot { margin-top: clamp(2rem, 5vh, 3.5rem); }
.wo-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  box-shadow: 0 18px 50px rgba(22, 20, 15, 0.08);
  background: #fff;
}
.wo-shot figcaption {
  margin-top: 0.9rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 68ch;
}
.wo-shot--hero { margin-top: 0; }
/* Rapport-Bild ist im Querformat gezeichnet und füllt seine Spalte */
.wo-shot--phone { margin-top: 0; }

/* Problem: drei Spalten, durch Haarlinien getrennt statt frei schwebend */
.wo-problems {
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.wo-problem {
  padding: 1.6rem clamp(1.2rem, 2.5vw, 2rem);
  border-top: 2px solid var(--line);
}
.wo-problem + .wo-problem { border-left: 1px solid var(--line-soft); }
.wo-problem:first-child { padding-left: 0; }
.wo-problem h3 {
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.wo-problem p { color: var(--muted); font-size: 0.95rem; }

.wo-statement {
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
  padding: 1.3rem 1.6rem;
  border-left: 3px solid var(--gold);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  font-weight: 350;
  line-height: 1.55;
  max-width: 54ch;
}

/* Ablauf: Nummer und Text nebeneinander, Text als eigene Spalte */
.wo-flow {
  list-style: none;
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
  counter-reset: schritt;
}
.wo-step {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding-block: 1.9rem;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.wo-step:last-child { border-bottom: 1px solid var(--line); }
.wo-step__num {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
  padding-left: 0.75rem;
  border-left: 3px solid var(--gold);
  line-height: 1.5;
}
.wo-step__body {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: baseline;
}
.wo-step h3 {
  font-size: 1.18rem;
  font-weight: 480;
  line-height: 1.35;
}
.wo-step p { color: var(--muted); max-width: 58ch; }

/* Module als Karussell: mittlere Karte gross, Nachbarn zurückgenommen */
.carousel { margin-top: clamp(2.5rem, 5vh, 3.5rem); }

.carousel__track {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  /* Randkarten sollen bis in die Mitte scrollen können (halbe Kartenbreite) */
  padding: 0.6rem max(1rem, calc(50% - 17rem)) 1.4rem;
  margin-inline: calc(var(--carousel-bleed, 0px) * -1);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.carousel__card {
  flex: 0 0 min(34rem, 84vw);
  scroll-snap-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transform: scale(0.92);
  opacity: 0.5;
  transition: transform 0.45s var(--ease-out), opacity 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.carousel__card.is-active {
  transform: scale(1);
  opacity: 1;
  border-left-color: var(--gold);
  box-shadow: 0 16px 40px rgba(22, 20, 15, 0.09);
}
/* Bild ist ein Knopf: Klick öffnet die vergrösserte Ansicht */
.carousel__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
}
.carousel__zoom::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  transition: background-color 0.3s var(--ease-out);
}
.carousel__zoom:hover::after { background: rgba(165, 129, 75, 0.07); }
.carousel__zoom:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.carousel__card img {
  display: block;
  width: 100%;
  height: auto;
  /* alle Folien 25:16 — beim Blättern springt nichts */
  aspect-ratio: 25 / 16;
  background: #fff;
}
.carousel__card figcaption {
  padding: 1.1rem 1.4rem 1.3rem;
}
.carousel__card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.carousel__card p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Steuerung */
.carousel__controls {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}
.carousel__arrow {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.carousel__arrow:hover { border-color: var(--gold); }
.carousel__arrow:active { transform: scale(0.96); }
.carousel__arrow[disabled] { opacity: 0.35; cursor: default; }
.carousel__arrow span {
  width: 9px;
  height: 9px;
  border-top: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
}
.carousel__arrow[data-richtung="-1"] span { transform: translateX(2px) rotate(-135deg); }
.carousel__arrow[data-richtung="1"] span { transform: translateX(-2px) rotate(45deg); }

.carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
}
.carousel__dot {
  width: 24px;
  height: 24px;
  padding: 0;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  cursor: pointer;
}
.carousel__dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.3s var(--ease-out), width 0.3s var(--ease-out);
}
.carousel__dot[aria-selected="true"]::before {
  background: var(--gold-deep);
  width: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .carousel__card { transition: none; }
  .carousel__track { scroll-behavior: auto; }
}

/* ==========================================================================
   Vergrösserte Bildansicht
   ========================================================================== */

.lightbox {
  /* Bildhöhe zuerst festlegen, die Dialogbreite folgt daraus (Format 25:16).
     So ist der Rahmen immer exakt so breit wie das Bild. */
  --lb-bildhoehe: min(80vh, calc(94vh - 8.5rem));
  width: min(95vw, calc(var(--lb-bildhoehe) * 25 / 16));
  max-height: 94vh;
  margin: auto;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  overflow: visible;
}
.lightbox::backdrop {
  background: rgba(18, 16, 12, 0.88);
  backdrop-filter: blur(4px);
}
.lightbox__inner {
  border-radius: var(--radius);
  overflow: hidden;
}
.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--lb-bildhoehe);
  aspect-ratio: 25 / 16;
  object-fit: contain;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

/* Öffnen: aus der Mitte heraus aufziehen */
@keyframes lbAuf {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes lbZu {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.96); }
}
@keyframes lbSchleierAuf {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lbBildWechsel {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lbAuf 0.38s var(--ease-out); }
  .lightbox[open]::backdrop { animation: lbSchleierAuf 0.38s ease; }
  .lightbox.is-closing { animation: lbZu 0.2s ease forwards; }
  .lightbox.is-closing::backdrop { animation: lbSchleierAuf 0.2s ease reverse forwards; }
  .lightbox img.is-wechselnd { animation: lbBildWechsel 0.3s var(--ease-out); }
}

.lightbox__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.4rem;
}
.lightbox__text { min-width: 0; }
.lightbox__text h2 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.lightbox__text p {
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 62ch;
}
.lightbox__nav {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}
.lightbox__zaehler {
  font-size: 0.88rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 3.4rem;
  text-align: center;
}

/* im Dialog oben rechts: auch auf kleinen Schirmen immer erreichbar */
.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(18, 16, 12, 0.72);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-out);
}
.lightbox__close:hover { background: rgba(18, 16, 12, 0.9); }
.lightbox__close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.lightbox__close span {
  position: relative;
  width: 15px;
  height: 15px;
}
.lightbox__close span::before,
.lightbox__close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--paper-on-dark);
}
.lightbox__close span::before { transform: rotate(45deg); }
.lightbox__close span::after { transform: rotate(-45deg); }

/* Einzelbild (Hero): keine Blätter-Navigation, freies Seitenverhältnis */
.lightbox--einzeln .lightbox__nav { display: none; }
.lightbox--einzeln img { aspect-ratio: auto; }

@media (max-width: 640px) {
  /* Am Handy zaehlt jedes Pixel Breite: Vorgabe des Browsers ueberschreiben */
  .lightbox {
    width: 96vw;
    max-width: 96vw;
  }
  .lightbox__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .lightbox__nav { align-self: stretch; justify-content: space-between; }
}

/* Unterschied: eine grosse Aussage, drei knappe Belege */
.wo-usp {
  margin-top: clamp(2rem, 4vh, 3rem);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 330;
  line-height: 1.45;
  letter-spacing: -0.005em;
  max-width: 42ch;
}
.wo-usp em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-deep);
}

.wo-diff {
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.wo-diff__item {
  padding-left: 1.1rem;
  border-left: 3px solid var(--gold);
}
.wo-diff__item h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.wo-diff__item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Mobil */
.wo-mobile {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.wo-list {
  list-style: none;
  margin-top: 1.8rem;
  display: grid;
  gap: 1rem;
}
.wo-list li {
  padding-left: 1.1rem;
  border-left: 2px solid var(--gold);
  color: var(--muted);
  font-size: 0.96rem;
}
.wo-list strong {
  display: block;
  color: var(--ink);
  font-weight: 480;
  margin-bottom: 0.15rem;
}

/* Grosses Bild als Zoom-Knopf (Hero) */
.wo-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}
.wo-zoom:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Startvorlagen unter dem Karussell */
.wo-vorlagen { margin-top: clamp(2rem, 4vh, 3rem); }
.wo-vorlagen .wo-note { margin-top: 0; }
.wo-vorlagen .wo-chips { margin-top: 1rem; }

/* Gewerke */
.wo-chips {
  list-style: none;
  margin-top: clamp(2rem, 4vh, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.wo-chips li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
}
.wo-note {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 62ch;
}

/* Einmalige Einrichtung: gehört zum Preis, steht aber ausserhalb der Pakete */
.wo-setup {
  margin-top: 1.6rem;
  padding: 1.2rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 74ch;
}
.wo-setup strong {
  color: var(--ink);
  font-weight: 500;
}

/* Preise */
.wo-plans {
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  /* stretch: alle Karten gleich hoch, Knöpfe auf einer Linie */
  align-items: stretch;
}
.wo-plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.wo-plan--featured {
  border-color: var(--gold);
  border-left-width: 3px;
}
.wo-plan__badge {
  font-size: 0.82rem;
  color: var(--gold-deep);
  font-weight: 500;
}
.wo-plan h3 {
  font-size: 1.2rem;
  font-weight: 500;
}
.wo-plan__price { display: flex; align-items: baseline; gap: 0.45rem; flex-wrap: wrap; }
.wo-plan__amount {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 330;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.wo-plan__period { font-size: 0.88rem; color: var(--muted); }
.wo-plan__for { font-size: 0.92rem; color: var(--muted); }
.wo-plan ul {
  list-style: none;
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding-top: 0.9rem;
  margin-top: 0.2rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.94rem;
  color: var(--ink-soft);
  flex: 1; /* schiebt den Knopf ans Kartenende */
}
.wo-plan ul li { padding-left: 1.1rem; position: relative; }
.wo-plan ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.wo-plan .btn { margin-top: 0.6rem; justify-self: start; }

/* Fragen: Container bündig wie alle Sektionen, nur die Liste bleibt
   für die Lesbarkeit schmaler, linksbündig statt zentriert */
.wo-faq {
  margin-top: clamp(2rem, 4vh, 3rem);
  max-width: 880px;
}
.wo-q {
  border-top: 1px solid var(--line);
}
.wo-q:last-child { border-bottom: 1px solid var(--line); }
.wo-q summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-size: 1.02rem;
  font-weight: 450;
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.wo-q summary::-webkit-details-marker { display: none; }
.wo-q summary::after {
  content: "";
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--gold-deep);
  border-bottom: 1.5px solid var(--gold-deep);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.wo-q[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.wo-q p {
  padding: 0 2.5rem 1.3rem 0;
  color: var(--muted);
  max-width: 68ch;
}

.wo-fineprint {
  margin-top: 2rem;
  font-size: 0.88rem;
  color: var(--muted-on-dark);
  max-width: 46ch;
}

.wo-formrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact__form select {
  font-family: inherit;
  font-size: 1rem;
  color: var(--paper-on-dark);
  background: var(--dark-2);
  border: 1px solid var(--line-on-dark);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  min-height: 48px;
}
.contact__form select:focus-visible {
  outline: none;
  border-color: var(--gold);
}

/* WerkOS-Hinweis auf der Startseite */
.product-teaser {
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.product-teaser__text { max-width: 58ch; }
.product-teaser h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.product-teaser p { color: var(--muted); font-size: 0.96rem; }

@media (max-width: 1180px) {
  /* Vier Pakete nebeneinander werden zu schmal: zwei Reihen à zwei */
  .wo-plans { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  /* Titel über den Text stellen, sobald zwei Spalten zu eng werden */
  .wo-step__body { grid-template-columns: 1fr; gap: 0.4rem; }
  .wo-step p { max-width: 64ch; }
}

@media (max-width: 960px) {
  .wo-hero__grid { grid-template-columns: 1fr; }
  .wo-hero .wo-shot--hero { order: -1; margin-bottom: 2rem; }
  .wo-diff { grid-template-columns: 1fr; gap: 1.4rem; }
  .wo-mobile { grid-template-columns: 1fr; }

  .wo-problems { grid-template-columns: 1fr; }
  .wo-problem { padding-inline: 0; }
  .wo-problem + .wo-problem { border-left: none; }
}

@media (max-width: 640px) {
  .wo-plans { grid-template-columns: 1fr; }
  .wo-step { grid-template-columns: 1fr; gap: 0.6rem; }
  .wo-step__num {
    padding-left: 0.7rem;
    justify-self: start;
  }
  .wo-formrow { grid-template-columns: 1fr; }
  .wo-hero__actions .btn { width: 100%; }
  .product-teaser .btn { width: 100%; }
}

/* ==========================================================================
   Rechtliche Unterseiten
   ========================================================================== */

.footer__links {
  display: flex;
  gap: 1.4rem;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
}
.footer__links a:hover { color: var(--gold-deep); }
.footer__links a[aria-current="page"] { color: var(--ink); }

.legal .nav__links--always { display: flex; }
.legal .nav__links a { white-space: nowrap; }

.legal__main {
  max-width: 820px;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vh, 4rem));
  padding-bottom: clamp(3.5rem, 8vh, 6rem);
}
.legal__main h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 330;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}
.legal__intro {
  color: var(--ink-soft);
  max-width: 65ch;
}
.legal__main section { margin-top: 2.4rem; }
.legal__main h2 {
  font-size: 1.15rem;
  font-weight: 480;
  margin-bottom: 0.7rem;
}
.legal__main p {
  color: var(--ink-soft);
  max-width: 70ch;
}
.legal__main p + p { margin-top: 0.8rem; }
.legal__main a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.legal__main a:hover { color: var(--gold-deep); }

/* ==========================================================================
   Scroll-Reveals
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: var(--d, 0s);
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  /* Bühne hochkant: Text oben, Motiv darunter sichtbar */
  .hero {
    align-items: flex-start;
    padding-top: calc(var(--nav-h) + 2.5rem);
  }
  .stage video { transform: translateY(12%) scale(1.3); }
  .stage__scrim {
    background:
      linear-gradient(
        to bottom,
        rgba(250, 250, 248, 0.96) 0%,
        rgba(250, 250, 248, 0.94) 52%,
        rgba(250, 250, 248, 0.58) 72%,
        rgba(250, 250, 248, 0.12) 100%
      );
  }

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

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

  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 340px; }

  .process__track {
    grid-template-columns: 1fr;
    padding-top: 0;
    padding-left: 2rem;
    gap: 2.2rem;
  }
  .process__track::before,
  .process__track::after {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 1px;
    height: auto;
  }
  .process__track::after {
    transform: scaleY(0);
    transform-origin: top;
  }
  .process__track.is-drawn::after {
    transition: transform 1.6s var(--ease-out);
    transform: scaleY(1);
  }

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

@media (max-width: 640px) {
  .branches__grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; gap: 0.9rem; }
  .service__head h3 { max-width: none; }
  .hero__actions .btn { width: 100%; }
  .footer__inner { justify-content: center; text-align: center; }
}
