/* МаркРадар — стили страницы предварительного запуска */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;

  --bg: #0b1320;
  --bg-elevated: #111c2d;
  --line: rgba(163, 178, 204, 0.16);
  --line-strong: rgba(163, 178, 204, 0.3);

  --text: #eef2f7;
  --text-muted: #a6b1c3;
  --text-faint: #7c889c;

  --accent: #3fdfa7;
  --accent-strong: #63e9bb;
  --accent-ink: #052a1d;
  --accent-soft: rgba(63, 223, 167, 0.12);
  --warn: #f2b25b;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space-section: clamp(4rem, 7vw, 6.5rem);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

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

::selection {
  background: rgba(63, 223, 167, 0.3);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Шапка */

.site-header {
  padding-block: clamp(1.25rem, 3vw, 1.75rem);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.brand svg {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.header-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.25rem;
  transition: color 0.2s var(--ease);
}

.header-link:hover {
  color: var(--text);
}

/* Общие элементы */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

.title-xl {
  font-size: clamp(2.125rem, 1.3rem + 3.6vw, 3.75rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.title-lg {
  font-size: clamp(1.625rem, 1.15rem + 1.8vw, 2.5rem);
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.title-sm {
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  max-width: 34rem;
  text-wrap: pretty;
}

.text-muted {
  color: var(--text-muted);
  text-wrap: pretty;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.status-dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -0.25rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: status-ping 2.4s var(--ease) infinite;
}

@keyframes status-ping {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  70%,
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Главный экран */

.hero {
  padding-block: clamp(2rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem);
}

.hero .container {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-copy .title-xl {
  max-width: 13ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.5rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

@media (min-width: 60rem) {
  .hero .container {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }

  .hero-visual {
    justify-content: flex-end;
  }
}

/* Радар */

.radar {
  position: relative;
  width: min(100%, 30rem);
  aspect-ratio: 1;
  isolation: isolate;
}

.radar::before {
  /* мягкое свечение позади радара */
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 223, 167, 0.12), transparent 62%);
  z-index: -1;
}

.radar-sweep {
  position: absolute;
  inset: 4.2%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(63, 223, 167, 0) 0deg,
    rgba(63, 223, 167, 0) 270deg,
    rgba(63, 223, 167, 0.32) 360deg
  );
  animation: radar-sweep 7s linear infinite;
}

.radar-sweep::after {
  /* ведущая кромка луча */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 50%;
  background: linear-gradient(to top, rgba(63, 223, 167, 0.35), var(--accent));
  transform-origin: bottom;
}

@keyframes radar-sweep {
  to {
    transform: rotate(360deg);
  }
}

.radar-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.radar-grid .ring {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.radar-grid .ring-outer {
  stroke: var(--line-strong);
}

.radar-grid .axis {
  stroke: var(--line);
  stroke-width: 1;
}

.radar-grid .tick {
  stroke: var(--line-strong);
  stroke-width: 1.5;
}

.radar-grid .blip {
  fill: #c9d3e3;
}

.radar-grid .blip-flag {
  fill: var(--accent);
}

.radar-grid .pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: radar-pulse 2.4s var(--ease) infinite;
}

@keyframes radar-pulse {
  0% {
    transform: scale(0.35);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.radar-label {
  position: absolute;
  left: 57%;
  top: 22%;
  max-width: 12.5rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(17, 28, 45, 0.92);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.radar-label strong {
  display: block;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.radar-label span {
  color: var(--text-muted);
}

@media (max-width: 30rem) {
  .radar-label {
    left: auto;
    right: 0;
    top: 14%;
    max-width: 10.5rem;
    font-size: 0.75rem;
  }
}

/* Смысловой блок */

.section {
  padding-block: var(--space-section);
  border-top: 1px solid var(--line);
}

.split {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.split-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.split-copy .title-lg {
  max-width: 16ch;
}

.split-copy .text-muted {
  max-width: 32rem;
}

/* Последовательность «до / после продажи» */

.timeline {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  max-width: 26rem;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  column-gap: 1rem;
  padding-bottom: 1.75rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
}

.timeline-dot::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--text-faint);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(0.75rem - 0.5px);
  top: 1.5rem;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}

.timeline-body {
  padding-top: 0.0625rem;
}

.timeline-title {
  font-weight: 560;
  line-height: 1.4;
}

.timeline-note {
  display: block;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin-top: 0.125rem;
}

.timeline .is-active .timeline-dot::before {
  width: 0.75rem;
  height: 0.75rem;
  background: var(--accent);
  box-shadow: 0 0 0 0.375rem var(--accent-soft);
}

.timeline .is-active .timeline-title {
  color: var(--accent);
}

.timeline .is-risk .timeline-dot::before {
  background: var(--warn);
}

.timeline .is-risk .timeline-title {
  color: var(--warn);
}

.timeline .is-risk::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.875rem;
  border-top: 1px dashed var(--line-strong);
}

/* Преимущества */

.benefits {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 45rem) {
  .benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
}

.benefit {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.benefit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.benefit-index {
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.benefit-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.benefit-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.benefit .text-muted {
  font-size: 1rem;
}

/* Связь */

.contact .container {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (min-width: 60rem) {
  .contact .container {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-copy .title-lg {
  max-width: 14ch;
}

.contact-copy .text-muted {
  max-width: 30rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 26rem;
}

@media (min-width: 60rem) {
  .contact-list {
    justify-self: end;
  }
}

.contact-phone {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.contact-phone:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.contact-phone-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.contact-phone-label svg {
  width: 1rem;
  height: 1rem;
}

.contact-phone-number {
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.contact-messengers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 24rem) {
  .contact-messengers {
    grid-template-columns: 1fr;
  }
}

/* Подвал */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.site-footer p {
  margin: 0;
}

.footer-note {
  color: var(--text-faint);
  flex-basis: 100%;
}

/* Страница 404 */

.notfound {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: var(--space-section);
}

.notfound .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.notfound-code {
  color: var(--accent);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Сниженная анимация */

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

  .radar-sweep,
  .radar-grid .pulse,
  .status-dot::after {
    animation: none;
  }

  .radar-sweep {
    transform: rotate(35deg);
  }

  .radar-grid .pulse {
    opacity: 0.5;
    transform: scale(0.7);
  }

  .btn:active {
    transform: none;
  }
}

/* Недоступный канал связи */

.btn.is-disabled {
  cursor: default;
  color: var(--text-faint);
  border-color: var(--line);
}

.btn.is-disabled:hover {
  background: transparent;
  border-color: var(--line);
}

.btn-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-faint);
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: rgba(163, 178, 204, 0.1);
}
