.landing {
  margin: -2rem;
}

.impersonation-banner, .landing {
  margin-top: 0;
  color: #242221;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(240, 129, 41, 0.16), transparent 60%),
    #f1efec;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px max(24px, calc((100% - var(--site-container)) / 2));
  background: rgba(241, 239, 236, 0.86);
  backdrop-filter: blur(14px);
}

.site-logo {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-header nav a,
.header-login {
  color: inherit;
}

.site-header form,
.header-login {
  display: block;
  max-width: none;
}

.header-user,
.header-wrench {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(36, 34, 33, 0.08);
  color: inherit;
  text-decoration: none;
}

.header-user:hover,
.header-wrench:hover {
  background: rgba(36, 34, 33, 0.14);
}

.header-user:focus-visible,
.header-wrench:focus-visible {
  outline: 4px solid rgba(240, 129, 41, 0.28);
  outline-offset: 2px;
}

.header-user-icon,
.header-wrench-icon {
  width: 22px;
  height: 22px;
}

.messenger-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.messenger-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #ffffff;
  font: 600 14px/1.2 system-ui, sans-serif;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.messenger-button:hover {
  filter: brightness(1.08);
}

.messenger-telegram {
  background: #2aabee;
}

.messenger-max {
  background: linear-gradient(135deg, #3d7bff, #8a3dff);
}

.messenger-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.chapter {
  position: relative;
  margin: 0 16px 20px;
  padding: 56px 0 64px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.chapter-inner {
  width: min(var(--site-container), calc(100% - 48px));
  margin: 0 auto;
}

.chapter-ink {
  color: #f7f5f2;
  background:
    radial-gradient(700px 280px at 90% 0%, rgba(240, 129, 41, 0.28), transparent 55%),
    #242221;
  box-shadow: none;
}

.chapter-start {
  margin-bottom: 24px;
  background: #e8e5e5;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: #f08129;
  border-radius: 2px;
}

.chapter h1,
.chapter h2 {
  margin: 0 0 16px;
  max-width: 18ch;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  grid-template-areas:
    "copy proof"
    "visual visual";
  gap: 40px;
  align-items: end;
}

.hero-copy {
  grid-area: copy;
}

.hero-visual {
  grid-area: visual;
  margin: 0;
  overflow: hidden;
}

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

.hero-lead {
  margin: 10px 0 12px;
  max-width: 22ch;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.2;
}

.hero-lead span {
  color: #f08129;
}


.hero-note,
.lead,
.muted {
  margin: 0;
  max-width: 46ch;
  color: #5c5854;
  line-height: 1.5;
}


.hero-note, .hero-lead {
  margin-top: 30px;
}

.chapter-ink .hero-note,
.muted.light,
.chapter-ink .lead {
  color: #d9d4ce;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: #f08129;
  color: #e8e5e5;
  font-weight: 600;
  text-decoration: none;
}

.button-quiet {
  background: transparent;
  color: #f7f5f2;
  box-shadow: inset 0 0 0 1px rgba(247, 245, 242, 0.35);
}

.hero-proof,
.metrics,
.bento,
.flow,
.steps,
.race,
.tags {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-proof {
  grid-area: proof;
  display: grid;
  gap: 12px;
}

.hero-proof li,
.metrics li {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-proof strong,
.metrics strong,
.stat {
  display: block;
  color: #f08129;
  font-size: 36px;
  line-height: 1;
}

.hero-proof span,
.metrics span {
  display: block;
  margin-top: 8px;
  line-height: 1.4;
}

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.bento article,
.flow li,
.gift,
.chat-card,
.crm,
.race li,
.race-winner,
.result,
.demo {
  border-radius: 20px;
}

.bento article {
  padding: 22px;
  background: #e8e5e5;
}

.bento article.bento-wide {
  grid-column: 1 / -1;
  background: #242221;
  color: #f7f5f2;
}

.bento p,
.flow p,
.steps p {
  margin: 8px 0 0;
  color: #5c5854;
  line-height: 1.45;
}

.bento article.bento-wide p {
  color: #d9d4ce;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.flow li {
  position: relative;
  padding: 20px;
  background: #e8e5e5;
}

.flow li span,
.steps span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #f1efec;
  color: #f08129;
  font-weight: 600;
}

.flow li.flow-accent {
  background: #f08129;
  color: #fff;
}

.flow li.flow-accent p,
.flow li.flow-accent strong {
  color: #fff;
}

.flow li.flow-accent span {
  background: rgba(255, 255, 255, 0.2);
  color: #e8e5e5;
}

.proof {
  display: grid;
  grid-template-columns: 0.9fr 0.1fr 1.1fr;
  gap: 16px;
  margin-top: 28px;
}

.arrow-box {
  display: flex;
  align-items: center;      /* центр по вертикали */
  justify-content: center;
}

.chat-card {
  padding: 20px;
  background: #242221;
  color: #f7f5f2;
}

.chat-meta,
.crm caption {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bubble {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  background: #f08129;
  line-height: 1.45;
}

.reply {
  display: inline-block;
  margin: 14px 0 0;
  padding: 8px 12px;
  border: 1px solid #f08129;
  border-radius: 999px;
  color: #f08129;
}

.crm {
  width: 100%;
  background: #e8e5e5;
  border-collapse: collapse;
}

.crm caption {
  padding: 16px 16px 0;
  text-align: left;
}

.crm th,
.crm td {
  padding: 10px 16px;
  text-align: left;
  border-top: 1px solid #efece8;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tags li {
  padding: 6px 10px;
  border: 1px solid #242221;
  border-radius: 999px;
  font-size: 14px;
}

.proof-notes {
  margin-top: 20px;
}

.timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 20px;
  background: #e8e5e5;
}

.timeline p:first-child {
  order: 1;
}

.timeline::before {
  content: "";
  order: 2;
  width: 48px;
  height: 2px;
  justify-self: center;
  background: linear-gradient(90deg, #242221, #f08129);
}

.timeline p:last-child {
  order: 3;
}

.timeline p {
  margin: 0;
  line-height: 1.4;
}

.lead {
  margin-bottom: 20px;
}

.race-winner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 8px 0 12px;
  padding: 18px 20px;
  background: #f08129;
}

.race-winner p,
.race-winner span {
  margin: 0;
}

.race-winner strong {
  font-size: 36px;
  line-height: 1;
}

.race {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.race li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.metrics li,
.result {
  padding: 20px;
  background: #e8e5e5;
}

.result {
  margin-top: 16px;
  background: #242221;
  color: #f7f5f2;
}

.result p {
  margin: 0;
}

.stat span {
  display: block;
  margin-top: 8px;
  color: #f7f5f2;
  font-size: 16px;
  font-weight: 400;
}

.start {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.gift {
  padding: 22px;
  background: #f08129;
  color: #fff;
}

.gift .eyebrow,
.gift p,
.gift strong {
  color: #fff;
}

.gift .eyebrow::before {
  background: #fff;
}

.gift strong,
.closer {
  display: block;
  margin: 8px 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.demo {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
  background: #f1efec;
}

.demo-driver-link {
  color: inherit;
  text-underline-offset: 0.18em;
}

.qr {
  display: block;
  width: 88px;
  height: 88px;
  flex: none;
  overflow: hidden;
  border-radius: 12px;
  line-height: 0;
}

.qr svg {
  display: block;
  width: 88px;
  height: 88px;
}

.footnote {
  margin: 16px 0 0;
  font-size: 12px;
  color: #5c5854;
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

@keyframes rise {
  from {
    opacity: 0.35;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

  .reveal {
    animation: none;
  }
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 900px) {
  .chapter {
    margin-right: 8px;
    margin-left: 8px;
    padding: 36px 0 40px;
    border-radius: 24px;
  }

  .chapter-inner,
  .hero,
  .bento,
  .flow,
  .proof,
  .metrics,
  .start,
  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    width: 2px;
    height: 24px;
  }

  .chapter h1,
  .chapter h2,
  .hero-lead {
    max-width: none;
  }

  .hero {
    grid-template-areas:
      "copy"
      "visual"
      "proof";
  }
}
