/* =========================================================
   Carmazing — styles.css  ·  "Werkstatt-Licht" (Light)
   Warm paper + white, bold ink type, signal-orange accent,
   tech-blue secondary. Tactile photography + parallax tools.
   ========================================================= */

:root {
  --bg: #ffffff; /* clean white */
  --bg-2: #f4f5f7; /* cool light band */
  --surface: #ffffff;
  --ink: #16181d;
  --ink-soft: #3c414b;
  --muted: #6e7480;
  --line: rgba(20, 24, 31, 0.1);
  --line-2: rgba(20, 24, 31, 0.16);

  --accent: #ff5a1f; /* signal orange — energy / CTA */
  --accent-press: #e2440e;
  --accent-soft: rgba(2, 2, 2, 0.12);
  --blue: #1b4de0; /* tech / data accent */
  --blue-soft: rgba(27, 77, 224, 0.1);
  --green: #1fa971; /* confirmed / live */
  --dark: #14171c; /* footer / dark device */

  --font-display: "Geomini", "Arial Black", system-ui, sans-serif;
  --font-body: "Geomini", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "Geomini", "SF Mono", ui-monospace, monospace;

  --container: 1240px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 20px;
  --radius-sm: 13px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #ff5a1f rgba(20, 24, 31, 1);
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: clamp(16px, 1.05vw, 17px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Geomini загружен в 400–900 — не даём браузеру рисовать фейковый жирный */
  font-synthesis-weight: none;
}
/* subtle skinned scrollbar */
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: rgba(20, 24, 31, 0.55);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-press);
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.mono {
  font-family: var(--font-mono);
}

/* =========================================================
   PRELOADER · Logo + Fortschrittsbalken + Prozent-Ecke
   ========================================================= */
html.loader-active,
html.loader-active body {
  overflow: hidden;
  height: 100%;
}
.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  transition: transform 0.8s cubic-bezier(0.65, 0, 0.3, 1);
}
.loader[hidden] {
  display: none;
}
.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  transition:
    transform 0.5s var(--ease),
    opacity 0.5s var(--ease);
}
.loader__logo {
  width: clamp(150px, 22vw, 230px);
  height: auto;
}
.loader__bar {
  width: clamp(140px, 20vw, 220px);
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.loader__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: inherit;
}
.loader__pct {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  display: flex;
  align-items: flex-start;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  transition:
    transform 0.5s var(--ease),
    opacity 0.5s var(--ease);
}
.loader__pct i {
  font-style: normal;
  font-size: 0.42em;
  margin-top: 0.15em;
  margin-left: 2px;
  color: var(--accent);
}
/* Inhalt hebt sich zuerst ab (schneller, ohne Verzögerung) —
   die dunkle Fläche folgt eine Idee später und zieht komplett nach oben weg. */
.loader--leaving {
  transform: translateY(-100%);
}
.loader--leaving .loader__inner,
.loader--leaving .loader__pct {
  transform: translateY(-56px);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .loader,
  .loader__inner,
  .loader__pct {
    transition: opacity 0.25s linear;
  }
  .loader--leaving {
    transform: none;
    opacity: 0;
  }
  .loader--leaving .loader__inner,
  .loader--leaving .loader__pct {
    transform: none;
    opacity: 0;
  }
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Decorative ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 170px;
}
.scroll-progress {
  display: none; /* прогресс-бар сверху отключён */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #ff9061);
  box-shadow: 0 0 10px rgba(255, 90, 31, 0.55);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 24px;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.25s,
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
  will-change: transform;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(255, 90, 31, 0.7);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px -10px rgba(255, 90, 31, 0.85);
}
.btn--primary:active {
  background: var(--accent-press);
  transform: translateY(0) scale(0.98);
}
.btn--ghost {
  border: 1.5px solid var(--line-2);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn--lg {
  padding: 16px 30px;
  font-size: 1.04rem;
}
.btn--sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}
.btn--block {
  display: flex;
  width: 100%;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  color: var(--ink);
  transform: translateY(-105%);
  transition:
    transform 0.6s var(--ease),
    background 0.35s,
    border-color 0.35s,
    color 0.35s;
}
.nav.is-ready {
  transform: none;
}
.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  height: 100%;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.nav.is-scrolled {
  background: rgba(244, 241, 234, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.is-dark {
  color: #fff;
}
.nav.is-scrolled.is-dark {
  background: rgba(20, 23, 28, 0.7);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand__logo {
  display: block;
  height: 30px;
  width: auto;
}
.brand__logo--white {
  display: none;
}
.nav.is-dark .brand__logo--dark {
  display: none;
}
.nav.is-dark .brand__logo--white {
  display: block;
}
/* меню открыто: фон светлый — логотип всегда тёмный, иконки тоже */
body.menu-open .nav .brand__logo--white {
  display: none;
}
body.menu-open .nav .brand__logo--dark {
  display: block;
}
body.menu-open .nav.is-dark {
  color: var(--ink);
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav__links a {
  position: relative;
  opacity: 0.78;
  transition: opacity 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transition: right 0.3s var(--ease);
}
.nav__links a:hover {
  opacity: 1;
}
.nav__links a:hover::after {
  right: 0;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav.is-dark .nav__burger {
  border-color: rgba(255, 255, 255, 0.3);
}
.nav__burger span {
  width: 20px;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.3s var(--ease),
    opacity 0.2s;
}
body.menu-open .nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.menu-open .nav__burger span:nth-child(2) {
  opacity: 0;
}
body.menu-open .nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(244, 241, 234, 0.98);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ссылки вверху, кнопка сразу под ними */
  gap: 14px;
  padding: var(--pad);
  padding-top: calc(var(--nav-h) + 30px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s,
    visibility 0.4s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
}
.menu__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.menu__links a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 8vw, 2.5rem);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 16px;
  transition:
    color 0.2s,
    transform 0.3s var(--ease);
}
.menu__links a:hover {
  color: var(--accent);
  transform: translateX(10px);
}
.menu__num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
}
.menu__foot {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.menu__foot .btn {
  width: auto;
  flex: 0 0 auto;
  padding: 11px 18px;
  font-size: 0.9rem;
}

/* ---------- Shared headings ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
.sec-head {
  max-width: 780px;
  margin-bottom: 54px;
}
.sec-title {
  font-size: clamp(1.9rem, 2.5vw, 3.6rem);
  font-weight: 900;
  color: var(--ink);
}
.sec-sub {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 60ch;
  margin-top: 18px;
}
.hl {
  color: var(--accent);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.dot--live {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(31, 169, 113, 0.16);
  animation: blink 2s infinite;
}

/* =========================================================
   HERO
   ========================================================= */
.cm-flat .hero {
  min-height: auto !important;
  padding-bottom: 60px;
}
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--bg);
}
.hero__bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(22, 24, 29, 0.74) 0%,
    rgba(22, 24, 29, 0.58) 38%,
    rgba(22, 24, 29, 0.28) 62%,
    rgba(22, 24, 29, 0.18) 100%
  );
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(
    120% 90% at 50% 30%,
    #000,
    transparent 80%
  );
  mask-image: radial-gradient(120% 90% at 50% 30%, #000, transparent 80%);
}
.hero__grid {
  position: relative;
  z-index: 5;
  display: block;
  padding-block: clamp(24px, 5vh, 64px);
  max-width: none;
  margin-inline: 0;
  margin-top: clamp(80px, 14vh, 200px);
}
.hero__copy {
  max-width: 920px;
  width: fit-content;
  margin-inline: 0;
  text-align: center;
}

.hero__title {
  font-size: clamp(2.2rem, 3.0vw, 4.7rem);
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.28;
  color: #fff;
  overflow-wrap: break-word;
  text-transform: uppercase;
}
.hero__title .hl {
  color: var(--accent);
}
.nobr {
  white-space: nowrap;
}
/* einzelnes Wort in Zeile 1 — über font-size (nicht letter-spacing) auf
   die Breite von "STATT BÜROAUFWAND" darunter skaliert (Verhältnis
   empirisch gemessen, bleibt über alle Breakpoints konstant) */
.hero__title-line1 {
  font-size: 1.2846em;
}
.strike {
  position: relative;
  color: #fff;
  white-space: nowrap;
}
.strike::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 50%;
  height: 0.16em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s 0.5s var(--ease);
}
.hero__title.is-split-done .strike::after {
  transform: scaleX(1);
}
.hero__pitch {
  margin-top: 84px;
  margin-inline: auto;
  width: fit-content;
  display: grid;
  grid-template-columns: auto auto;
  gap: clamp(14px, 1.6vw, 26px);
  align-items: center;
  text-align: left;
}
.hero__lead {
  margin: 0;
  line-height: 1.55;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 34ch;
}
.hero__actions {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero__lead strong {
  color: #fff;
  font-weight: 700;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  justify-content: center;
}
.hero__pitch .hero__cta {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 0;
}
.hero__coop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
}
.hero__coop-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.hero__coop-logo {
  height: 24px;
  width: auto;
  display: block;
}
/* Планшет и ПК: кооперация — в правом верхнем углу хиро, лого под надписью */
@media (min-width: 761px) {
  .hero__coop {
    position: absolute;
    top: calc(var(--nav-h) + 20px);
    right: var(--pad);
    z-index: 6;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }
}

/* =========================================================
   MANIFEST (Autohandel ist handfest) — Editions-style chapter
   ========================================================= */
.manifest {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* ---------- Tablet-Mockup mit Posteingang (ersetzt das Auto) ---------- */
.tablet {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  /* volles Gerät sichtbar, sitzt neben dem Text statt über den Rand zu laufen */
  width: min(26vw, 320px);
  aspect-ratio: 3 / 4;
  background: #0e1013;
  border: 1px solid #23262c;
  border-radius: 22px;
  padding: 16px 14px;
  box-shadow: 0 50px 100px -40px rgba(20, 24, 31, 0.6);
  pointer-events: none;
}
.tablet__cam {
  position: absolute;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2a2d33;
}
.tablet__screen {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tablet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.tablet__bar-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}
.tablet__bar-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.tablet__list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.tablet__mail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
}
.tablet__mail-avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
}
.tablet__mail--unread .tablet__mail-avatar {
  background: var(--accent-soft);
  color: var(--accent);
}
.tablet__mail-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tablet__mail-body b {
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 600;
}
.tablet__mail--unread .tablet__mail-body b {
  color: var(--ink);
  font-weight: 800;
}
.tablet__mail-body span {
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tablet__mail time {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}
.js .tablet[data-reveal] {
  opacity: 0;
  transform: translateX(-14%);
  transition:
    opacity 1.1s var(--ease),
    transform 1.3s var(--ease);
}
.js .tablet[data-reveal].is-in {
  opacity: 1;
  transform: translateX(0);
}
.manifest__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 100px);
  padding-block: clamp(90px, 13vh, 160px);
}
.manifest__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.0rem, 1.5vw, 2rem);
  line-height: 1.58;
  letter-spacing: 0.02em;
  color: var(--ink);
  /* блок не шире своих строк */
  width: fit-content;
}
.manifest__mark {
  color: var(--accent-press);
  /* непрерывная линия под всей фразой (включая пробелы, даже если фраза
     переносится на 2 строки — box-decoration-break клонирует фон) */
  background: linear-gradient(currentColor, currentColor) 0 96% / 100% 0.07em
    no-repeat;
  padding-bottom: 0.05em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.manifest__mark::before {
  /* большой отступ только перед этой фразой — и она сама начинается с
     новой строки (блочный псевдоэлемент внутри inline рвёт строку) */
  content: "";
  display: block;
  height: 0.8em;
}

/* =========================================================
   PROBLEM → LÖSUNG
   ========================================================= */
.problem {
  position: relative;
  background: var(--dark);
  color: #cdd2da;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.problem__pin {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.problem__states {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.state {
  max-width: 680px;
}
.state--problem {
  position: relative;
  padding: 4px 0 0 38px;
}
.problem__flags {
  position: absolute;
  top: 50%;
  left: var(--pad);
  right: var(--pad);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 2;
  pointer-events: none;
}
.problem__flags li {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  letter-spacing: 0.01em;
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-60px);
}
.problem--static .problem__flags li {
  opacity: 1;
  transform: none;
}
.state--solution {
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  opacity: 0;
  pointer-events: none;
}
.state--solution .solution {
  max-width: 700px;
}

@media (min-width: 761px) {
  .state--solution {
    display: flex;
    align-items: stretch;
  }
  .state--solution .solution {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
  }
  .solution__kpi {
    display: block;
    align-self: stretch;
    flex: 0 0 auto;
    /* рядом с текстом, лёгкий заход на его край — не наглухо у края вьюпорта */
    margin-left: -32px;
    width: min(460px, 34vw);
    height: auto;
    opacity: 0.85;
    z-index: 0;
    transform: scale(0.95);
    transform-origin: left center;
  }
}
.problem__progress {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 32px;
  z-index: 5;
  height: 4px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  overflow: hidden;
}
.problem__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #ff9061);
  border-radius: 4px;
}
.problem--static .problem__pin {
  min-height: auto;
  padding-block: clamp(70px, 11vh, 140px);
}
.problem--static .problem__flags {
  position: static;
  transform: none;
  margin-top: 24px;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 16px;
}
.problem--static .state--solution {
  position: static;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  margin-top: 36px;
}
.problem--static .state--solution .eyebrow {
  position: static;
  text-align: left;
  white-space: normal;
  margin: 0 0 12px;
}
.problem--static .problem__progress {
  display: none;
}
.state__title {
  font-size: clamp(1.9rem, 2.5vw, 3.6rem);
  font-weight: 900;
  margin: 4px 0 18px;
  color: #fff;
}
.state__lead {
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 46ch;
}
.state__lead strong {
  color: #fff;
}
.painlist {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 46ch;
}
.painlist li {
  position: relative;
  padding: 15px 16px 15px 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.78);
  /* тот же шрифт, что у пунктов .winlist («In Sekunden statt Stunden») */
  font-weight: 500;
  font-size: 0.92rem;
}
.painlist li::before {
  content: "✕";
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 800;
}
.solution {
  position: relative;
  width: fit-content;
  background: linear-gradient(160deg, #191c22, #0f1115);
  color: #fff;
  border-radius: 22px;
  padding: 4px 38px 38px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(20, 24, 31, 0.6);
}
.state--solution .eyebrow {
  position: absolute;
  top: 60px;
  right: calc(100% + 20px);
  text-align: right;
  white-space: nowrap;
  color: #ff8a5c;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 0;
}
.solution h2 {
  font-size: clamp(1.9rem, 2.5vw, 3.6rem);
  margin: 4px 0 16px;
}
.solution h2 .hl {
  color: var(--accent);
}
.solution p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 40ch;
}
.solution p strong {
  color: #fff;
}
.winlist {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.winlist li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
}
.winlist li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center/13px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center/13px no-repeat;
}
.solution__kpi {
  max-width: min(520px, 100%);
  margin-left: auto;
}
/* --- Планшет: слева от бокса подписи не хватает места — ставим её
   над боксом; КПИ компактнее, чтобы не резался правым краем --- */
@media (min-width: 761px) and (max-width: 1299px) {
  .state--solution .eyebrow {
    top: -48px;
    right: auto;
    left: 0;
    text-align: left;
  }
  .solution__kpi {
    width: min(380px, 26vw);
    margin-left: -16px;
  }
}

/* =========================================================
   ZAHLEN / ROI
   ========================================================= */
.numbers {
  position: relative;
  padding: clamp(80px, 12vh, 150px) 0;
  background: var(--bg-2);
  overflow: hidden;
}
.numbers::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.75;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    130% 95% at 50% 38%,
    #000,
    transparent 82%
  );
  mask-image: radial-gradient(130% 95% at 50% 38%, #000, transparent 82%);
}
.numbers > .container {
  position: relative;
  z-index: 1;
}
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-bottom: 52px;
}
.benefit {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 18px 50px -38px rgba(20, 24, 31, 0.35);
  overflow: hidden;
  /* цифра/иконка слева, текст рядом справа */
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: clamp(18px, 2vw, 28px);
  align-items: center;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s,
    border-color 0.35s;
}
.benefit:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 90, 31, 0.4);
  box-shadow: 0 28px 60px -40px rgba(20, 24, 31, 0.45);
}
.benefit__ico {
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.benefit__num {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.85;
  letter-spacing: -0.01em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: flex-start;
}
.benefit__num i {
  font-size: 0.46em;
  font-style: normal;
  margin-top: 0.3em;
}
.benefit h3 {
  grid-column: 2;
  align-self: end;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}
.benefit p {
  grid-column: 2;
  align-self: start;
  color: var(--muted);
  font-size: 1rem;
}
.benefit--accent {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}
.benefit--accent h3,
.benefit--accent .benefit__num,
.benefit--accent .benefit__num i {
  color: #fff;
}
.benefit--accent p {
  color: rgba(255, 255, 255, 0.92);
}
.benefit--accent .benefit__ico {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.pullquote {
  margin: 60px auto 0;
  max-width: 920px;
  text-align: center;
}
.pullquote p {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.pullquote::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--accent);
  margin-bottom: 6px;
}

/* =========================================================
   FEATURES / UNTER DER HAUBE (horizontal scroll)
   ========================================================= */
.features {
  position: relative;
  padding: clamp(70px, 10vh, 120px) 0 clamp(80px, 12vh, 130px);
  background: var(--surface);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.features__intro {
  /* тот же отступ до карточек, что и в секции No-Brainer (.sec-head) */
  margin-bottom: 54px;
}
.hscroll {
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.hscroll::-webkit-scrollbar {
  display: none;
}
.hscroll--pinned {
  overflow: visible;
}
.hscroll__track {
  display: flex;
  gap: 24px;
  padding-inline: var(--pad);
  will-change: transform;
}
.fcard {
  flex: 0 0 min(90vw, 620px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  box-shadow: 0 14px 40px -34px rgba(20, 24, 31, 0.4);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s,
    box-shadow 0.35s;
}
.fcard::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}
.fcard:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 90, 31, 0.5);
  box-shadow: 0 30px 60px -36px rgba(20, 24, 31, 0.5);
}
.fcard:hover::after {
  opacity: 1;
  animation: scan 1.1s var(--ease);
}
@keyframes scan {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
.fcard__media {
  flex: 0 0 48%;
}
.fcard__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fcard__body {
  flex: 1 1 auto;
  min-width: 0;
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.fcard h3 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--ink);
}
.fcard p {
  color: var(--muted);
  font-size: 0.97rem;
}
.fcard p strong {
  color: var(--ink);
}
.fcard--soon {
  background: linear-gradient(160deg, #191c22, #0f1115);
  color: #fff;
  border: 1px dashed rgba(255, 90, 31, 0.5);
}
.fcard--soon h3 {
  color: #fff;
}
.soonlist {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.soonlist li {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 500;
}

/* =========================================================
   DEMO
   ========================================================= */
.demo {
  position: relative;
  padding: clamp(80px, 12vh, 150px) 0;
  background: var(--bg-2);
  overflow: hidden;
}
.demo__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 54px;
  align-items: center;
}
.steps {
  margin: 26px 0 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 1.02rem;
  border-left: 2px solid var(--line-2);
  padding-left: 16px;
}
.steps b {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.85rem;
  min-width: 46px;
}
.phone {
  position: relative;
  justify-self: center;
  /* системный стек, как в самом WhatsApp (SF Pro / Roboto / Segoe UI) */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  width: min(330px, 82vw);
  background: #0e1013;
  border: 1px solid #23262c;
  border-radius: 34px;
  padding: 14px 12px 16px;
  box-shadow: 0 50px 100px -40px rgba(20, 24, 31, 0.6);
}
.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone__top {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.phone__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #c93b00);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}
.phone__top b {
  font-size: 0.95rem;
  display: block;
  color: #fff;
}
.phone__top small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9aa0aa;
  font-size: 0.74rem;
}
.phone__chat {
  min-height: 300px;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px 6px;
  background:
    linear-gradient(rgba(8, 9, 11, 0.5), rgba(8, 9, 11, 0.5)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23ffffff08' stroke-width='1'/%3E%3C/svg%3E");
}
.phone__chat::-webkit-scrollbar {
  display: none;
}
.bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 15px;
  font-size: 0.86rem;
  line-height: 1.42;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s,
    transform 0.4s var(--ease);
}
.bubble.in {
  opacity: 1;
  transform: none;
}
.bubble--them {
  align-self: flex-end;
  background: #0c5e4a;
  color: #eafff6;
  border-bottom-right-radius: 5px;
}
.bubble--me {
  align-self: flex-start;
  background: #23262c;
  color: #eef0f2;
  border-bottom-left-radius: 5px;
}
.bubble small {
  display: block;
  font-size: 0.62rem;
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}
.bubble--typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 13px;
}
.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  height: 16px;
}
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.2s;
}
.typing i:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* =========================================================
   FINAL CTA (bold orange block)
   ========================================================= */
.cta {
  position: relative;
  padding: clamp(56px, 9vh, 110px) 0 clamp(48px, 7vh, 80px);
  text-align: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(
    120% 120% at 50% 0%,
    #ff7a45,
    #ff5a1f 55%,
    #e2440e
  );
}
.cta__inner h2,
.cta__inner > p,
.cta .eyebrow {
  color: #fff;
}
.cta__inner {
  position: relative;
  z-index: 5;
  /* dieselbe Breite/Ausrichtung wie .container in allen anderen Sections —
     Überschrift beginnt an derselben Kante wie z. B. .sec-title */
  max-width: var(--container);
  margin-inline: auto;
}
/* заголовок слева, текст справа */
.cta__text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  text-align: left;
}
.cta .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.cta__title {
  font-size: clamp(1.9rem, 2.5vw, 3.6rem);
  font-weight: 900;
  margin: 0;
}
.cta__title .hl {
  color: #16181d;
}
.cta__lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  max-width: 52ch;
}

/* =========================================================
   FOOTER (dark)
   ========================================================= */
.footer {
  background: var(--dark);
  color: #cdd2da;
  padding-top: clamp(56px, 8vh, 90px);
  position: relative;
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.footer__brand .brand {
  margin-bottom: 16px;
}
.footer__brand p {
  color: #9aa0aa;
  max-width: 34ch;
  font-size: 0.95rem;
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7e8590;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  color: #cdd2da;
  padding: 6px 0;
  width: fit-content;
  position: relative;
  transition: color 0.2s;
}
.footer__col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.footer__col a:hover {
  color: #fff;
}
.footer__col a:hover::after {
  transform: scaleX(1);
}
.footer__fine {
  color: #9aa0aa;
  font-size: 0.86rem;
  margin-bottom: 12px;
  line-height: 1.5;
}
.footer__fine strong {
  color: #cdd2da;
}
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 22px var(--pad);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  color: #7e8590;
  max-width: var(--container);
  margin-inline: auto;
}
/* =========================================================
   COOKIE / TOAST
   ========================================================= */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 130;
  max-width: 560px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 30px 70px -30px rgba(20, 24, 31, 0.4);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease);
}
.cookie.is-in {
  transform: none;
}
.cookie p {
  font-size: 0.84rem;
  color: var(--ink-soft);
  flex: 1 1 260px;
}
.cookie a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie__btns {
  display: flex;
  gap: 10px;
}

/* =========================================================
   AMORTISATIONS-RECHNER · modal
   ========================================================= */
.calc {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 18px;
}
.calc[hidden] {
  display: none;
}
.calc__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 23, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s;
}
.calc.is-open .calc__backdrop {
  opacity: 1;
}
.calc__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100svh - 36px);
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 40px 90px -30px rgba(20, 24, 31, 0.55);
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.calc.is-open .calc__dialog {
  opacity: 1;
  transform: none;
}
.calc__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  transition: background 0.2s;
}
.calc__close:hover {
  background: var(--line-2);
}
.calc__title {
  font-size: clamp(1.0rem, 1.5vw, 2rem);
  margin: 4px 0 18px;
  max-width: 90%;
}
.calc__form {
  display: grid;
  gap: 14px;
}
.calc__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.calc__field {
  display: grid;
  gap: 6px;
  align-content: start;
}
.calc__q {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.calc__field small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}
.calc__field input,
.calc__field select {
  width: 100%;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  padding: 11px 14px;
  font: 600 1rem var(--font-body);
  background: var(--bg);
  color: var(--ink);
  appearance: auto;
  transition: border-color 0.2s;
}
.calc__field input:focus,
.calc__field select:focus {
  outline: none;
  border-color: var(--accent);
}
.calc__money {
  position: relative;
  display: block;
}
.calc__money i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}
.calc__result {
  margin-top: 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: grid;
  gap: 4px;
}
.calc__result-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}
.calc__result-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1;
}
.calc__result-num b {
  color: var(--accent);
}
.calc__result-sub {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}
body.calc-open {
  overflow: hidden;
}
@media (max-width: 520px) {
  .calc__row {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   REVEAL
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js .word {
  display: inline-block;
  will-change: transform;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .hero__grid {
    padding-block: clamp(24px, 5vh, 54px);
  }
  .demo__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}
@media (max-width: 960px) {
  /* kein eigenes max-width/Zentrierung mehr — .cta__inner bleibt bei
     var(--container), Überschrift startet an derselben Kante wie überall */
  .cta__text {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }
}
/* --- Tablet: Hero-Pitch einspaltig — Text über dem CTA, beide an
   derselben linken Kante --- */
@media (min-width: 761px) and (max-width: 1080px) {
  /* заголовок и питч — от одной левой линии, без центрирования */
  .hero__copy {
    text-align: left;
  }
  .hero__title {
    text-align: left;
  }
  .hero__pitch {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 22px;
    margin-inline: 0;
  }
  .hero__actions {
    order: 0; /* Text zuerst, Button darunter */
    align-items: flex-start;
  }
  .hero__lead {
    font-size: clamp(1.18rem, 2vw, 1.4rem);
    max-width: 44ch;
  }
  .hero__pitch .hero__cta {
    align-items: flex-start;
  }
  .hero__coop {
    justify-content: flex-start;
  }
  /* Manifest: мокап планшета крупнее — при 26vw бейдж «14 ungelesen» и
     строки писем не помещались и ломались */
  .tablet {
    width: min(38vw, 320px);
  }
  /* Benefits: длинные слова («Wettbewerbsvorteil») упирались в край
     карточки и резались overflow'ом */
  .benefit h3 {
    font-size: 1.15rem;
    hyphens: auto;
    overflow-wrap: break-word;
  }
}
@media (max-width: 760px) {
  :root {
    --nav-h: 50px;
  }
  .nav__inner {
    gap: 10px;
  }
  .brand__logo {
    height: 20px;
  }
  /* Rechner-CTA raus aus der Kopfzeile — bleibt im Burger-Menü */
  .nav__cta {
    display: none;
  }
  .nav__actions {
    gap: 8px;
  }
  .nav__burger {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    gap: 4px;
  }
  .nav__burger span {
    width: 16px;
  }
  /* --- Глобально компактнее: меньше базовый rem, короче секции --- */
  html {
    font-size: 14px; /* все rem-размеры ужимаются на ~12% */
  }
  body {
    font-size: 14px;
  }
  .numbers,
  .demo {
    padding: 48px 0;
  }
  .features {
    padding: 44px 0 52px;
  }
  .cta {
    padding: 40px 0 48px;
  }
  .sec-head {
    margin-bottom: 30px;
  }
  .sec-sub {
    margin-top: 10px;
  }
  /* --- кнопки компактнее --- */
  .btn--lg {
    padding: 12px 18px;
    font-size: 0.92rem;
  }
  /* In Aktion: мокап телефона чуть меньше */
  .phone {
    width: min(264px, 72vw);
  }
  /* нативный скроллбар справа скрыт */
  html {
    scrollbar-width: none;
  }
  html::-webkit-scrollbar {
    display: none;
    width: 0;
  }
  .benefits {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  /* --- карточки no-brainer компактнее --- */
  .benefit {
    padding: 18px;
  }
  .benefit__num {
    font-size: 2rem;
  }
  .benefit__ico {
    width: 42px;
    height: 42px;
  }
  .benefit h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
  }
  .benefit p {
    font-size: 0.88rem;
  }
  /* --- цитата меньше --- */
  .pullquote {
    margin: 28px auto 0;
  }
  .pullquote p {
    font-size: 0.98rem;
  }
  .pullquote::before {
    font-size: 2.6rem;
  }
  .problem__pin {
    min-height: auto;
    padding-block: clamp(60px, 9vh, 90px);
  }
  .problem__flags {
    display: none; /* красные слова на мобиле не показываем */
  }
  .state--solution {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    margin-top: 40px;
    padding: 0;
  }
  .solution h2 br {
    display: none; /* заголовок решения без принудительных переносов */
  }
  .state--solution .eyebrow {
    position: static;
    text-align: left;
    white-space: normal;
    margin: 0 0 12px;
  }
  .problem__progress {
    display: none;
  }
  /* --- футер: Rechtliches + Anbieter мелко в два столбика внизу --- */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding-bottom: 26px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .footer__col h4 {
    font-size: 0.58rem;
    margin-bottom: 6px;
  }
  .footer__col a {
    font-size: 0.78rem;
    padding: 3px 0;
  }
  .footer__fine {
    font-size: 0.72rem;
  }
  .footer__bar {
    display: none; /* вместо строки «© 2026 Carmazing…» — колонки выше */
  }
  /* --- все заголовки секций меньше --- */
  .sec-title,
  .state__title,
  .cta__title {
    font-size: 1.5rem;
  }
  .solution h2 {
    font-size: 1.35rem;
  }
  /* --- problem/solution: левый отступ как в остальных секциях --- */
  .state--problem {
    padding-left: 0;
  }
  /* --- решение без тёмного прямоугольника --- */
  .solution {
    background: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  /* --- Hero: Video ab ganz oben, Nav schwebt transparent darüber --- */
  .hero {
    /* Flex-Spalte: Video oben (feste Höhe per aspect-ratio), Rest wächst
       über den Rest der Section — so kann .hero__coop unten sicher per
       margin-top:auto andocken, ohne je den Button zu überlappen */
    display: flex;
    flex-direction: column;
    background: var(--dark);
    /* immer mindestens Bildschirmhöhe — kein weißer Abschnitt lugt durch,
       auch wenn der Inhalt kürzer als das Fenster ist */
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: 0; /* kein Abstand zur Nav — Video beginnt bei 0, Nav liegt drüber */
    padding-bottom: 22px;
  }
  .hero::before,
  .hero::after {
    display: none; /* скрим и сетка не нужны — видео больше не фон */
  }
  .hero__bg-video {
    position: relative;
    inset: auto;
    display: block;
    flex: 0 0 auto; /* feste Höhe per aspect-ratio, wächst nicht mit */
    width: 100%;
    /* größer als vorher, unterer Rand etwas tiefer (+20% Höhe) */
    aspect-ratio: 7 / 7.92;
    object-fit: cover;
    object-position: center 38%;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    /* löst sich unten in den dunklen Hero-Hintergrund auf, statt hart
       abzuschneiden */
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 72%,
      transparent 100%
    );
    mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  }
  .hero__grid {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    margin-top: 6px;
    padding-block: 0;
  }
  .hero__copy {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    width: auto;
  }
  /* заголовок hero — крупнее, в две строки: слово 1 отдельно, 2+3 вместе.
     Zeile 1 wird über .hero__title-line1 (font-size) auf dieselbe Breite
     wie Zeile 2 skaliert. Die Formel ist auf die Breite von .hero__lead
     abgestimmt — beide reichen bis zu denselben Rändern. */
  .hero__title {
    font-size: clamp(1.5rem, calc(8.1vw - 3px), 2.4rem);
    line-height: 1.32;
    white-space: normal;
  }
  .hero__pitch .hero__cta {
    align-items: flex-end; /* кнопка к правому краю */
  }
  .hero__pitch {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%; /* сбрасываем fit-content с десктопа — иначе кнопке некуда прижиматься вправо */
    align-items: stretch; /* сбрасываем align-items:center с десктопа — иначе .hero__actions центрируется и сжимается по контенту */
    gap: 20px;
    margin-top: 64px; /* большой воздух между заголовком и текстом */
  }
  .hero__actions {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    order: 0; /* в одну колонку: сначала текст, потом кнопки */
  }
  .hero__lead {
    max-width: 100%;
  }
  /* Superchat-Kooperation: über margin-top:auto ganz unten in der Section,
     ohne je den Button zu überlappen (füllt nur echten Restplatz) */
  .hero__coop {
    margin-top: auto;
    padding-top: 24px;
  }
  .hero__lead br {
    display: none; /* обычный текст — переносы по ширине экрана, не принудительно */
  }
  .hero .scroll-cue {
    display: none;
  }
  /* --- Manifest: планшет на мобиле не показывается --- */
  .tablet {
    display: none;
  }
  .manifest__inner {
    padding-inline-start: var(--pad);
    padding-block: 40px 48px;
  }
  .solution__kpi {
    display: none;
  }
  .manifest__text {
    max-width: 100%;
    width: auto;
    margin-inline-start: 0;
  }
  .manifest__text br {
    display: none; /* обычный текст — переносы по ширине экрана, не принудительно */
  }
  /* --- Features: горизонтальная свайп-карусель вместо длинной колонки --- */
  .features__intro {
    margin-bottom: 40px;
  }
  .hscroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--pad);
  }
  .hscroll__track {
    width: max-content;
    align-items: flex-start; /* карточки не тянутся под самую высокую — своя высота у каждой */
    gap: 14px;
    transform: none !important;
  }
  .fcard {
    flex: 0 0 84vw;
    max-width: 420px;
    height: auto; /* без вертикального скролла внутри — высота по контенту */
    flex-direction: column; /* картинка сверху, текст на всю ширину снизу — не сжимается вбок */
    scroll-snap-align: center;
  }
  .fcard__media {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 10;
  }
  .fcard__body {
    padding: 20px 18px;
  }
  .fcard h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  .fcard p {
    font-size: 0.95rem;
  }
  /* Coming-Soon-Karte war durch die umrandeten Listenpunkte höher als
     die anderen — Kontur raus, kompakter, damit die Höhen sich angleichen */
  .soonlist {
    gap: 2px;
  }
  .soonlist li {
    border: none;
    padding: 5px 0;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 234, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.legal-top__inner {
  max-width: 960px;
  margin-inline: auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.legal {
  max-width: 860px;
  margin-inline: auto;
  padding: 56px var(--pad) 110px;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.legal__back:hover {
  color: var(--accent);
}
.legal h1 {
  font-size: clamp(2.2rem, 3.0vw, 4.7rem);
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--ink);
  text-transform: uppercase;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 40px 0 12px;
  color: var(--ink);
}
.legal h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--ink);
}
.legal p,
.legal li {
  color: var(--ink-soft);
  margin-bottom: 12px;
  max-width: 74ch;
}
.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}
.legal li {
  margin-bottom: 6px;
}
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal strong {
  color: var(--ink);
}
.legal address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.7;
}
.ph {
  background: var(--accent-soft);
  border: 1px dashed rgba(255, 90, 31, 0.55);
  color: var(--accent-press);
  padding: 0 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  white-space: nowrap;
}
.legal__note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 24px 0 36px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.legal__updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 54px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* =========================================================
   JOURNEY · Conversion-Landkarte
   Растровая изометрическая карта + машина-спрайт (8 ракурсов),
   парящие станции, портал, баблы. Логика: js/journey.js.
   ========================================================= */
.journey {
  padding: 110px 0 90px;
  background: var(--bg);
  position: relative;
}
.journey .sec-head {
  margin-bottom: 30px;
}

/* ---------- сцена ---------- */
.journey__stage {
  position: relative;
  /* = пиксели исходного map.webp; менять ВМЕСТЕ с viewBox в index.html */
  aspect-ratio: 2752 / 1536;
  user-select: none;
  -webkit-user-select: none;
}
.journey__map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.journey__geo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ---------- машина ----------
   .journey__car — точка-якорь на дороге (0×0), позиционируется GSAP.
   Спрайты центрируются на якорь, ширину каждому задаёт JS
   (натуральные пропорции ракурсов различаются). */
.journey__car {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0; /* до спавна из портала */
  will-change: transform;
}
.journey__car::before {
  /* тень на асфальте, в точке якоря; размер задаёт JS через --shw */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--shw, 120px);
  height: calc(var(--shw, 120px) * 0.3);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0) 70%
  );
}
.journey__car-bob {
  position: absolute;
  left: 0;
  top: 0;
}
.journey__car-bob img {
  position: absolute;
  left: 0;
  top: 0;
  height: auto;
  max-width: none;
  transform: translate(-50%, -58%);
}
.journey__car-bob img[hidden] {
  display: none;
}

/* ---------- портал в телефоне ---------- */
.journey__portal {
  position: absolute;
  z-index: 3;
  left: calc(var(--jx, 0.12) * 100%);
  top: calc(var(--jy, 0.247) * 100%);
  width: 13%;
  height: 34%;
  transform: translate(-50%, -50%);
  padding: 0;
  cursor: pointer;
  border-radius: 22px;
  -webkit-tap-highlight-color: transparent;
}
.journey__portal-fx {
  position: absolute;
  left: 52%;
  top: 45%;
  width: 54%;
  aspect-ratio: 1;
  /* плоскость экрана телефона — подогнать при калибровке */
  transform: translate(-50%, -50%) rotate(-4deg) skewX(-4deg) scaleY(0.96);
  pointer-events: none;
}
.journey__portal-swirl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(255, 90, 31, 0),
    rgba(255, 90, 31, 0.85) 25%,
    rgba(255, 179, 138, 0.95) 50%,
    rgba(255, 90, 31, 0.85) 75%,
    rgba(255, 90, 31, 0)
  );
  filter: blur(2.5px);
  opacity: 0.9;
  animation: j-swirl 3.4s linear infinite;
}
.journey__portal-swirl::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #ffd9c2 0%,
    rgba(255, 179, 138, 0.6) 45%,
    rgba(255, 90, 31, 0) 72%
  );
}
.journey__portal-ring {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  border: 2px solid rgba(255, 90, 31, 0.55);
  animation: j-pulse 2.4s var(--ease) infinite;
}
.journey__portal-hint {
  position: absolute;
  left: 50%;
  top: -4%;
  transform: translate(-50%, -100%);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 7px 13px;
  border-radius: 999px;
  white-space: nowrap;
  animation: j-hint 1.9s var(--ease) infinite;
}
.journey__portal-hint::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 9px;
  height: 9px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}
.journey--live .journey__portal-hint,
.journey__portal.is-visited .journey__portal-hint {
  display: none;
}
/* чип «1» на телефоне (портал = станция 1) */
.journey__portal .journey__station-num {
  right: 12%;
  top: -1%;
}
@keyframes j-swirl {
  to {
    transform: rotate(1turn);
  }
}
@keyframes j-pulse {
  0% {
    transform: scale(0.72);
    opacity: 0.9;
  }
  70%,
  100% {
    transform: scale(1.28);
    opacity: 0;
  }
}
@keyframes j-hint {
  0%,
  100% {
    transform: translate(-50%, -100%);
  }
  50% {
    transform: translate(-50%, -100%) translateY(-7px);
  }
}

/* ---------- парящие станции ---------- */
.journey__station {
  position: absolute;
  z-index: 3;
  left: calc(var(--jx) * 100%);
  top: calc(var(--jy) * 100%);
  /* --jsize задаётся inline-стилем на кнопке в index.html, чтобы менять
     размер каждого объекта отдельно; без него — общий размер 9% */
  width: var(--jsize, 9%);
  aspect-ratio: 1;
  transform: translate(-50%, -60%);
  padding: 0;
  cursor: pointer;
  visibility: hidden; /* до позиционирования из JS */
  -webkit-tap-highlight-color: transparent;
  transition: scale 0.25s var(--ease);
}
.journey--ready .journey__station {
  visibility: visible;
}
.journey__station:hover {
  scale: 1.06;
}
.journey__station img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: j-float var(--jdur, 4s) ease-in-out var(--jdelay, 0s) infinite
    alternate;
}
.journey__station::before {
  /* тень левитации на постаменте */
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 0;
  height: 12%;
  border-radius: 50%;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(20, 24, 31, 0.3),
    rgba(20, 24, 31, 0) 72%
  );
  animation: j-float-shadow var(--jdur, 4s) ease-in-out var(--jdelay, 0s)
    infinite alternate;
}
.journey__station::after {
  /* гало при наведении/фокусе/активности */
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  border: 2px solid rgba(255, 90, 31, 0.6);
  opacity: 0;
  transition: opacity 0.25s, transform 0.3s var(--ease);
}
.journey__station:hover::after,
.journey__station:focus-visible::after,
.journey__station.is-active::after {
  opacity: 0.85;
  transform: translate(-50%, -50%) scale(1.02);
}
.journey__station-num {
  position: absolute;
  z-index: 2;
  right: 2%;
  top: -2%;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font: 700 0.78rem/1 var(--font-mono);
  border-radius: 999px;
  box-shadow: 0 4px 12px -3px rgba(255, 90, 31, 0.65);
}
.journey__station.is-visited .journey__station-num,
.journey__portal.is-visited .journey__station-num {
  background: var(--green);
  box-shadow: 0 4px 12px -3px rgba(31, 169, 113, 0.6);
}
@keyframes j-float {
  from {
    transform: translateY(-2%);
  }
  to {
    transform: translateY(-11%);
  }
}
@keyframes j-float-shadow {
  from {
    transform: scale(1);
    opacity: 0.85;
  }
  to {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

/* ---------- бабл ---------- */
.journey__bubble {
  position: absolute;
  z-index: 4;
  left: calc(var(--bx, 0.5) * 100%);
  top: calc(var(--by, 0.5) * 100%);
  width: clamp(210px, 30%, 330px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 22px 48px -18px rgba(20, 24, 31, 0.3);
  padding: 14px 16px 15px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.journey__bubble.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.journey__bubble::after {
  /* хвостик */
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--surface);
}
.journey__bubble--top {
  transform: translate(-50%, calc(-100% - 24px)) scale(var(--pop, 1));
  transform-origin: 50% 100%;
}
.journey__bubble--top::after {
  left: 50%;
  bottom: -7px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.journey__bubble--bottom {
  transform: translate(-50%, 24px) scale(var(--pop, 1));
  transform-origin: 50% 0%;
}
.journey__bubble--bottom::after {
  left: 50%;
  top: -7px;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.journey__bubble--right {
  transform: translate(28px, -50%) scale(var(--pop, 1));
  transform-origin: 0% 50%;
}
.journey__bubble--right::after {
  left: -7px;
  top: 50%;
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}
.journey__bubble--left {
  transform: translate(calc(-100% - 28px), -50%) scale(var(--pop, 1));
  transform-origin: 100% 50%;
}
.journey__bubble--left::after {
  right: -7px;
  top: 50%;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}
.journey__bubble-title {
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 5px;
}
.journey__bubble-text {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---------- список станций (источник текстов; карточки на мобилке/без JS) ---------- */
.journey__list {
  counter-reset: jstep;
  display: grid;
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none; /* глобальный сброс покрывает только ul, это ol */
}
.journey__list li {
  counter-increment: jstep;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px 17px 56px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.journey__list li::before {
  content: counter(jstep);
  position: absolute;
  left: 18px;
  top: 17px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font: 700 0.78rem/1 var(--font-mono);
  border-radius: 999px;
}
.journey__list li.is-active {
  border-color: var(--accent);
  box-shadow: 0 10px 28px -14px rgba(255, 90, 31, 0.55);
}
.journey__list h3 {
  font-size: 1.02rem;
  margin-bottom: 5px;
}
.journey__list p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* десктоп с JS: список скрыт визуально, но остаётся для скринридеров */
@media (min-width: 761px) {
  .js .journey__list {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
  .journey__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* без JS интерактив не показываем вовсе */
html:not(.js) .journey__station,
html:not(.js) .journey__portal,
html:not(.js) .journey__car,
html:not(.js) .journey__bubble {
  display: none;
}

/* ---------- мобильная деградация: карта = иллюстрация, интерактив в карточках ---------- */
@media (max-width: 760px) {
  .journey {
    padding: 44px 0 40px;
  }
  .journey__stage {
    display: none; /* карта с объектами на мобиле не показывается — только карточки */
  }
  .journey__list {
    margin-top: 0;
  }
}

/* описание секции карты: на десктопе — про интерактив, на мобиле — статичное */
.jsub-mobile {
  display: none;
}
@media (max-width: 760px) {
  .jsub-desktop {
    display: none;
  }
  .jsub-mobile {
    display: inline;
  }
}

/* =========================================================
   МОБИЛЬНЫЙ ПЕРЕХОД PROBLEM → LÖSUNG (scroll-driven)
   ========================================================= */
@keyframes sol-rise {
  from {
    opacity: 0;
    transform: translateY(56px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sol-eyebrow {
  from {
    opacity: 0;
    transform: translateX(-26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@supports (animation-timeline: view()) {
  @media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
    .state--solution {
      animation: sol-rise linear both;
      animation-timeline: view();
      animation-range: entry 15% entry 90%;
    }
    .state--solution .eyebrow {
      animation: sol-eyebrow linear both;
      animation-timeline: view();
      animation-range: entry 40% entry 110%;
    }
  }
}
