@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Тёмная тема в стиле f-dev.space: графит, белый текст; акцент — фиолетовый из логотипа (#6500ed) */
:root {
  --bg: #151716;
  --surface: #1c1e1d;
  --card: #222423;
  --line: rgba(255, 255, 255, 0.08);
  --fg: #ffffff;
  --muted: #909da2;
  --soft: #d1d1d1;
  --accent: #6500ed;
  --accent-hi: #9466ff; /* осветлённый — для текста на тёмном фоне */
  --radius: 28px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 20px;
}

a { color: var(--accent-hi); }

/* длинные слова («конфиденциальности») на узких экранах переносим, а не выдавливаем за край */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: break-word; hyphens: auto; }

/* ---------- Шапка ---------- */

header.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: rgba(21, 23, 22, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

header.top .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
  padding-block: 14px;
}

.logo { display: inline-flex; flex: none; }

/* логотип из исходников (relAIx_horizontal.png), перекрашен под тёмный фон */
.logo img { display: block; height: 36px; width: auto; }

header.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-left: auto;
}

header.top nav a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

header.top nav a:hover { color: var(--fg); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 40px -10px rgba(101, 0, 237, 0.7);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover { background: #7614ff; transform: translateY(-1px); }

.btn svg { width: 20px; height: 20px; }

.btn-sm { padding: 9px 18px; font-size: 14px; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* ---------- Первый экран ---------- */

/* overflow-x: clip — фоновое свечение (::before ниже) вылезает за правый край, а на телефонах
   overflow-x: hidden у body не спасает: страница расширяется и скроллится вбок. clip обрезает только
   по горизонтали и, в отличие от hidden, не делает .hero контейнером прокрутки. */
.hero {
  position: relative;
  padding-block: 72px 40px;
  overflow-x: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -200px -40vw auto auto;
  width: 900px;
  height: 900px;
  background: radial-gradient(closest-side, rgba(101, 0, 237, 0.35), rgba(101, 0, 237, 0) 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 800;
  margin: 0 0 22px;
}

.hero h1 span { color: var(--accent-hi); }

.lead {
  font-size: 19px;
  color: var(--soft);
  margin: 0 0 32px;
  max-width: 34em;
}

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

.section-actions { margin-top: 28px; }

.note.partner-mail { margin-top: 28px; color: var(--soft); font-size: 17px; }

.partner-mail .copy-btn { margin-left: 8px; vertical-align: middle; }

.copy-btn { padding: 6px 14px; font-size: 13px; }

/* Телефон с роликом */
.stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding-block: 10px;
}

.phone {
  position: relative;
  width: min(290px, 70vw);
  aspect-ratio: 9 / 18.5;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #3a3d3c, #121313);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: #110a24;
  isolation: isolate;
}

/* «Видео»: размытые цветные пятна, медленно плывут */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(34px);
  z-index: -1;
  animation: drift 12s ease-in-out infinite alternate;
}

.b1 { width: 80%; height: 45%; top: 4%; left: -20%; background: #6500ed; opacity: 0.85; }
.b2 { width: 70%; height: 42%; top: 28%; right: -25%; background: #c026d3; opacity: 0.5; animation-duration: 15s; animation-direction: alternate-reverse; }
.b3 { width: 60%; height: 34%; bottom: 14%; left: 0; background: #14b8c8; opacity: 0.35; animation-duration: 10s; }

@keyframes drift {
  to { transform: translate(22%, 14%) scale(1.2); }
}

.screen .badge {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.screen .badge b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5a4f;
  animation: blink 1.2s ease-in-out infinite;
}

@keyframes blink { 50% { opacity: 0.25; } }

/* Голос: эквалайзер */
.eq {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 30%;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.eq i {
  width: 4px;
  height: 100%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  transform: scaleY(0.12);
  animation: eq var(--t) ease-in-out infinite alternate;
  animation-delay: var(--d);
}

@keyframes eq { to { transform: scaleY(var(--h)); } }

/* Субтитры: три фразы по очереди, слова подсвечиваются под речь */
.caption {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 56%;
  height: 40px;
  text-align: center;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.caption .ln {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: line 9s infinite;
  animation-delay: var(--ld);
}

@keyframes line {
  0% { opacity: 0; transform: translateY(8px) scale(0.96); }
  3%, 30% { opacity: 1; transform: none; }
  33%, 100% { opacity: 0; transform: none; }
}

.caption span {
  display: inline-block;
  padding: 0 5px;
  border-radius: 6px;
  animation: word 9s infinite;
  animation-delay: var(--wd);
}

@keyframes word {
  0%, 9% { background: var(--accent); }
  10%, 100% { background: transparent; }
}

/* Монтажная дорожка: красные куски (паузы) схлопываются */
.tl {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px 12px;
  border-radius: 20px;
  background: rgba(14, 8, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tl-head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.track {
  position: relative;
  display: flex;
  height: 24px;
}

.track .k {
  flex: var(--g) 1 0;
  margin-right: 3px;
  border-radius: 5px;
  background: linear-gradient(180deg, #9466ff, #6500ed);
}

.track .k:last-of-type { margin-right: 0; }

.track .x {
  flex: 0 0 var(--w);
  margin-right: 3px;
  border-radius: 5px;
  background: repeating-linear-gradient(135deg, #e5564b 0 4px, #b8392f 4px 8px);
  animation: cut 9s ease-in-out infinite;
}

@keyframes cut {
  0%, 22% { flex-basis: var(--w); margin-right: 3px; opacity: 1; }
  34%, 90% { flex-basis: 0; margin-right: 0; opacity: 0; }
  100% { flex-basis: var(--w); margin-right: 3px; opacity: 1; }
}

.track .ph {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  animation: head 9s linear infinite;
}

@keyframes head { to { left: 100%; } }

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(34, 36, 35, 0.92);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
  animation: float 6s ease-in-out infinite;
}

.chip i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  font-style: normal;
  font-size: 12px;
}

.chip.c1 { top: 12%; left: 0; }
.chip.c2 { top: 40%; left: 0; animation-delay: -2s; }
.chip.c3 { bottom: 22%; right: 0; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Цифры ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.fact {
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.fact b {
  display: block;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.fact span { color: var(--muted); font-size: 15px; }

/* ---------- Секции ---------- */

section { padding-block: 64px; }

.section-head { max-width: 760px; margin-bottom: 36px; }

.section-head h2 {
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  margin: 0 0 14px;
}

.section-head p { color: var(--soft); font-size: 18px; margin: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
}

.card h3 { font-size: 23px; font-weight: 700; margin: 0 0 10px; }

.card p { color: var(--soft); margin: 0 0 10px; }

.card p:last-child { margin-bottom: 0; }

.icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(101, 0, 237, 0.15);
  color: var(--accent-hi);
  margin-bottom: 22px;
}

.icon svg { width: 28px; height: 28px; }

/* Звуковая дорожка: что вырезается */
.wave-card { margin-top: 20px; }

.wave-card .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
}

.legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 8px;
  background: var(--accent-hi);
}

.legend .cut::before { background: #e5564b; }

.wave { display: block; width: 100%; height: 90px; }

.wave .keep { fill: var(--accent-hi); }
.wave .cut { fill: #e5564b; opacity: 0.55; }
.wave .zone { fill: rgba(229, 86, 75, 0.12); }

.info .card { padding: 28px; }

.info .card h3 { font-size: 20px; }

.info .card p { font-size: 15px; }

/* Шаги */
.step-num {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-hi);
  margin-bottom: 18px;
}

/* ---------- Цены ---------- */

.price-card { display: flex; flex-direction: column; }

.price-card.featured {
  background: linear-gradient(160deg, #6500ed 0%, #4200a0 100%);
  border-color: transparent;
}

.price-card.featured p,
.price-card.featured .per { color: rgba(255, 255, 255, 0.85); }

.price-card .tokens { font-size: 17px; font-weight: 600; color: var(--soft); }

.price-card.featured .tokens { color: #fff; }

.price-card .price {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
}

.price-card .per { color: var(--muted); margin: 0 0 22px; }

.price-card ul {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
}

.price-card li { padding-left: 26px; position: relative; margin-bottom: 6px; }

.price-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.8;
}

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

.rate {
  padding: 22px 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

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

.rate b { display: block; font-size: 22px; font-weight: 800; }

.rate span { color: var(--muted); font-size: 15px; }

.note { color: var(--muted); font-size: 15px; margin-top: 22px; }

/* ---------- Контакты ---------- */

.cta {
  position: relative;
  text-align: center;
  padding: 64px 32px;
  border-radius: 36px;
  background: radial-gradient(120% 140% at 50% 120%, rgba(101, 0, 237, 0.55), rgba(101, 0, 237, 0) 60%), var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}

.cta h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; margin: 0 0 14px; }

.cta p { color: var(--soft); font-size: 18px; margin: 0 auto 28px; max-width: 34em; }

.cta .mail {
  display: inline-block;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  margin-bottom: 26px;
  word-break: break-all;
}

.cta .mail:hover { color: var(--accent-hi); }

/* ---------- Документы ---------- */

.doc {
  max-width: 860px;
  padding-block: 56px 72px;
}

.doc h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin: 0 0 8px; }

.doc h2 { font-size: 21px; margin: 36px 0 10px; }

.doc p, .doc li { color: var(--soft); margin: 8px 0; }

.doc b { color: var(--fg); }

.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

/* Таблица в документе (цели и основания обработки в английской политике) */
.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}

.doc-table th, .doc-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--soft);
}

.doc-table th { color: var(--fg); font-weight: 700; }

/* ---------- Инструкции (страницы под запросы) ---------- */

.guides .card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.guides .card:hover { border-color: rgba(148, 102, 255, 0.5); }

.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 18px; }

.crumbs a { color: var(--soft); }

/* Короткий ответ в начале статьи — его чаще всего цитируют поисковики и ИИ */
.doc .answer {
  color: var(--fg);
  font-size: 18px;
  margin: 0 0 28px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 16px 16px 0;
  background: rgba(101, 0, 237, 0.08);
}

.doc h3 { font-size: 18px; margin: 24px 0 6px; }

.doc ol, .doc ul { padding-left: 22px; }

.doc .doc-cta { margin: 36px 0 8px; }

/* ---------- Подвал в духе f-dev.space ---------- */

footer.site {
  position: relative;
  margin-top: 40px;
  padding-block: 56px 32px;
  border-top: 1px solid var(--line);
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
}

footer.site::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -420px;
  width: 1000px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(101, 0, 237, 0.35), rgba(101, 0, 237, 0));
  pointer-events: none;
}

footer.site .wrap { position: relative; }

.foot-brand { text-align: center; margin-bottom: 44px; }

.foot-brand .logo img { height: 48px; }


.foot-brand p { margin: 10px 0 0; color: var(--soft); }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.foot-cols h4 {
  color: var(--fg);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

.foot-cols p { margin: 0 0 6px; }

.foot-cols .mid { text-align: center; }

.foot-cols .end { text-align: right; }

footer.site a { color: var(--soft); }

footer.site a:hover { color: var(--fg); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- Уведомление о cookie (создаёт metrika.js) ---------- */

.cookie {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 20;
  width: min(640px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 12px 18px;
  padding: 14px 16px 14px 22px;
  background: rgba(34, 36, 35, 0.96);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.7);
  font-size: 14px;
  line-height: 1.45;
}

.cookie p { margin: 0; color: var(--soft); flex: 1; }

.cookie .btn { flex: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* ---------- Узкие экраны ---------- */

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-3, .rates { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .foot-cols .mid, .foot-cols .end { text-align: left; }
}

@media (max-width: 640px) {
  header.top nav { display: none; }
  header.top .btn-sm { margin-left: auto; }
  .facts, .grid-2 { grid-template-columns: 1fr; }
  section { padding-block: 44px; }
  .card { padding: 26px; }
  .chip { font-size: 13px; padding: 8px 12px; }
  .chip.c3 { right: -4px; }
  .cookie { flex-direction: column; align-items: stretch; text-align: center; padding: 14px 16px; }
  .cookie .btn { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
