/* Дополнения к основной сборке: первый экран, доступность и прямой контакт. */

html {
  scroll-behavior: auto !important;
}

.hero-copy {
  order: 1;
}

.hero-funnel {
  order: 2;
}

.hero-funnel-title {
  letter-spacing: -0.035em;
  margin: 0;
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.05;
}

.proof-strip {
  border: 1px solid var(--line);
  background: linear-gradient(110deg, #2de1f20c, #9b6cff0c 55%, #ff97480c);
  border-radius: 20px;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: -10px;
  padding: 20px 24px;
  display: grid;
}

.proof-strip > div {
  gap: 4px;
  display: grid;
}

.proof-strip strong {
  font-size: 18px;
}

.proof-strip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.proof-strip a {
  color: var(--cyan);
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
}

.proof-strip svg {
  width: 18px;
  height: 18px;
}

.route-card[role="link"] {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.route-card[role="link"]::after {
  content: "Обсудить задачу →";
  color: var(--route);
  border-top: 1px solid var(--line-soft);
  margin-top: 18px;
  padding-top: 16px;
  font-size: 12px;
  font-weight: 800;
}

.route-card[role="link"]:focus-visible,
.button:focus-visible,
.nav a:focus-visible,
.proof-strip a:focus-visible,
.article-card:focus-visible,
.report-card:focus-visible,
.real-case-card a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cyan) 72%, white);
  outline-offset: 4px;
}

.contact-direct {
  align-content: center;
  min-height: 360px;
}

.contact-direct-label {
  color: var(--cyan);
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-direct h3 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.contact-direct > p:not(.contact-direct-label, .form-note) {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.contact-direct .button-submit {
  width: 100%;
  justify-content: center;
}

.legal-page,
.error-page {
  width: min(880px, calc(100vw - 32px));
  min-height: calc(100svh - 180px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal-page h1,
.error-page h1 {
  margin: 0 0 24px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
}

.legal-page h2 {
  margin: 42px 0 16px;
  font-size: 26px;
}

.legal-page p,
.legal-page li,
.error-page p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-page a:not(.button),
.error-page a:not(.button) {
  color: var(--cyan);
}

@media (width <= 1050px) {
  .proof-strip {
    grid-template-columns: 1fr 1fr;
  }

  .proof-strip > a {
    grid-column: 1 / -1;
  }
}

@media (width <= 720px) {
  .hero-copy {
    order: 1;
  }

  .hero-funnel {
    order: 2;
  }

  .hero-funnel-title {
    font-size: 28px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 0;
    padding: 20px;
  }

  .proof-strip > div + div {
    border-top: 1px solid var(--line-soft);
    padding-top: 16px;
  }

  .legal-page,
  .error-page {
    padding-top: 48px;
  }
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(56, 215, 232, 0.38);
  border-radius: 50%;
  color: #06111d;
  background: #38d7e8;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  font: 800 24px/1 system-ui, sans-serif;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #6ce5f1;
}

@media (width <= 720px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}
