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

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  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 {
  --bg: #0b0816;
  --hero: #100332; /* цвет левого края баннера */
  --surface: rgba(255, 255, 255, 0.025);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(190, 150, 255, 0.22);
  --text: #f1eef8;
  --muted: #a7a1ba;
  --dim: #77718a;
  --brand: #8b3dff;
  --brand-2: #a970ff;
  --brand-3: #c9a6ff;
  --brand-soft: rgba(139, 61, 255, 0.14);
  --pink: #e65bff;
  --success: #22c55e;
  --gutter: 20px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Variable", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01";
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Зерно поверх всего: убирает «пластиковость» градиентов. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-3);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #e2ccff;
}

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

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 18px;
  font-weight: 620;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

p {
  margin: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-3);
}

.sprite {
  position: absolute;
}

/* Линейные иконки: одна толщина. */
.ic-line,
.f-ic,
.r-ic svg,
.faq summary svg,
.link-row svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.tg-blue {
  color: #2aabee;
}

.grad {
  background: linear-gradient(100deg, #f6d2ff 0%, var(--pink) 45%, var(--brand-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--brand-3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink));
}

.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.25s,
    background 0.25s,
    border-color 0.25s;
}

.btn .ic {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

.btn .ic-line {
  fill: none;
  stroke-width: 2;
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  border-radius: 11px;
}

.btn-lg {
  height: 56px;
  padding: 0 26px;
  font-size: 16px;
  border-radius: 15px;
}

.btn-primary {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%),
    linear-gradient(120deg, #9d4dff 0%, #8b3dff 45%, #b542ff 100%);
  border-color: rgba(220, 190, 255, 0.35);
  box-shadow:
    0 10px 30px -6px rgba(139, 61, 255, 0.7),
    0 0 0 1px rgba(139, 61, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px -6px rgba(160, 70, 255, 0.85),
    0 0 0 1px rgba(170, 100, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-glass {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-glass:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.26);
}

/* ---------- шапка ---------- */

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s,
    border-color 0.3s,
    backdrop-filter 0.3s;
}

.top.scrolled {
  background: rgba(11, 8, 22, 0.66);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.top .top-in {
  max-width: none;
  padding: 0 max(var(--gutter), 4.95vw);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 720;
  font-size: 19px;
  letter-spacing: -0.025em;
  transition: opacity 0.3s;
}

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

.logo-paw {
  width: 28px;
  height: 28px;
  fill: var(--pink);
  filter: drop-shadow(0 0 10px rgba(230, 91, 255, 0.6));
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  padding: 8px 14px;
  border-radius: 9px;
  color: rgba(241, 238, 248, 0.82);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  text-shadow: 0 1px 12px rgba(10, 0, 30, 0.8);
  transition:
    color 0.15s,
    background 0.15s;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

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

.hero {
  --h: min(50vw, 100svh);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background:
    radial-gradient(60% 50% at 70% 100%, rgba(139, 61, 255, 0.18), transparent 70%),
    linear-gradient(180deg, var(--hero) 0%, var(--hero) 50%, var(--bg) 100%);
}

.hero-stage {
  position: relative;
  height: var(--h);
}

/* Баннер прижат вправо и растворяется снизу; на очень широких экранах — ещё и слева. */
.hero-art,
.hero-copy {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  aspect-ratio: 2 / 1;
}

.hero-art {
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 68%, transparent 99%);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-aspect-ratio: 2/1) and (min-width: 901px) {
  .hero-art {
    -webkit-mask-image:
      linear-gradient(180deg, #000 68%, transparent 99%), linear-gradient(90deg, transparent, #000 4.5%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(180deg, #000 68%, transparent 99%), linear-gradient(90deg, transparent, #000 4.5%);
    mask-composite: intersect;
  }
}

/* Заголовок и подзаголовок нарисованы на баннере: в HTML — для поисковиков и читалок.
   Кнопки встают под нарисованный подзаголовок, по его левому краю. */
.hero-copy {
  pointer-events: none;
}

.hero-title,
.hero-lead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cta {
  position: absolute;
  left: 4.95%;
  top: 57%;
  display: flex;
  gap: 14px;
  pointer-events: auto;
}

.hero .btn-lg {
  height: clamp(50px, calc(var(--h) * 0.074), 66px);
  padding: 0 clamp(22px, calc(var(--h) * 0.034), 32px);
  font-size: clamp(15px, calc(var(--h) * 0.022), 18.5px);
  border-radius: clamp(14px, calc(var(--h) * 0.02), 18px);
}

.facts {
  list-style: none;
  margin: auto auto 0;
  padding: 28px var(--gutter) 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  color: #cbc3de;
  font-size: 14.5px;
  font-weight: 500;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.facts svg {
  width: 18px;
  height: 18px;
  color: var(--brand-3);
}

/* ---------- секции ---------- */

.section {
  position: relative;
  padding-top: clamp(96px, 11vw, 168px);
}

/* Якорь ведёт к заголовку раздела, а не к пустому отступу над ним. */
.section[id] {
  scroll-margin-top: calc(28px - clamp(96px, 11vw, 168px));
}

.head {
  position: relative;
  max-width: 760px;
  margin: 0 auto clamp(44px, 5vw, 72px);
  text-align: center;
}

.head .lead {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- фоновые персонажи ---------- */

.pet {
  position: absolute;
  z-index: -1;
  width: clamp(240px, 22vw, 360px);
  pointer-events: none;
  opacity: 0.55;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.pet img {
  filter: drop-shadow(0 0 36px rgba(139, 61, 255, 0.55)) saturate(0.9);
  animation: bob 7s ease-in-out infinite;
}

.pet-r {
  top: 120px;
  right: calc((100vw - 100%) / -2 + 1.5vw);
}

.pet-r img {
  transform: rotate(-6deg);
}

.pet-l {
  top: 150px;
  left: calc((100vw - 100%) / -2 + 1.5vw);
}

.pet-l img {
  animation-delay: -3.5s;
}

/* Надпись на картинке — над правой частью заголовка («Telegram —»): под надписью у картинки
   пусто, туда и ложится заголовок. Справа — до телефона с отступом. Шире 1280 px ширина
   страницы постоянная, поэтому размеры в пикселях. */
.pet-teach {
  top: calc(clamp(96px, 11vw, 168px) - 83px);
  left: calc(var(--gutter) + 352px);
  width: 380px;
  opacity: 0.8;
}

/* Над заголовком «Как подключить» — надпись картинки: якорь оставляет ей место под шапкой. */
#how {
  scroll-margin-top: calc(84px - clamp(96px, 11vw, 168px));
}

.pet-teach img {
  animation-delay: -1.8s;
}

@keyframes bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -16px;
  }
}

main {
  position: relative;
  isolation: isolate;
}

/* ---------- как подключить ---------- */

.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}

.how::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 0;
  top: 30%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(139, 61, 255, 0.22), transparent 62%);
  pointer-events: none;
}

.how-text .lead {
  max-width: 520px;
}

.timeline {
  list-style: none;
  max-width: 560px;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding-bottom: 28px;
}

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

.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19.5px;
  top: 44px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, var(--line-strong), transparent);
}

.dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(139, 61, 255, 0.12);
  color: var(--brand-3);
  font-weight: 650;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.timeline h3 {
  margin-top: 8px;
}

.timeline p {
  margin-top: 6px;
  color: var(--muted);
}

/* страны */

.countries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Девять карточек: три ряда по три. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.country {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 24px 12px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.country b {
  font-weight: 620;
  font-size: 15px;
}

/* Страна в планах: приглушена, подпись «скоро…». */
.country.soon {
  border-style: dashed;
  background: transparent;
}

.country.soon .flag {
  filter: grayscale(0.85);
  opacity: 0.45;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.country.soon b {
  color: var(--muted);
}

.country small {
  margin-top: -8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.flag {
  display: block;
  width: 60px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 10px 28px -10px rgba(139, 61, 255, 0.6);
}

.flag svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* телефон с ботом */

.phone-wrap {
  margin: 0;
  justify-self: center;
}

.phone {
  position: relative;
  width: 320px;
  height: 640px;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(160deg, #2b2638, #15121e 50%, #231d31);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 90px -20px rgba(70, 20, 150, 0.7),
    0 0 120px -30px rgba(230, 91, 255, 0.35);
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 2;
  width: 96px;
  height: 28px;
  margin-left: -48px;
  border-radius: 20px;
  background: #050407;
}

.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 42px;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(139, 61, 255, 0.22), transparent 60%),
    radial-gradient(100% 50% at 0% 100%, rgba(230, 91, 255, 0.12), transparent 60%),
    #120f1b;
  display: flex;
  flex-direction: column;
}

.tg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 62px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 16, 30, 0.7);
}

.tg-ava {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a1a6e, #1b0b38);
  box-shadow: inset 0 0 0 1px rgba(230, 91, 255, 0.4);
}

.tg-ava svg {
  width: 20px;
  height: 20px;
  fill: var(--pink);
}

.tg-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 14px;
}

.tg-name small {
  color: var(--dim);
  font-size: 12px;
}

.tg-chat {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 14px 20px;
  font-size: 12.5px;
  line-height: 1.45;
}

.msg {
  width: 100%;
  padding: 9px 12px;
  border-radius: 16px 16px 16px 5px;
  background: #241e33;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.msg p + p {
  margin-top: 4px;
  color: #cfc8e0;
}

.msg b {
  font-weight: 620;
}

.rows {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1px 10px;
}

.rows span:nth-child(odd) {
  color: var(--dim);
}

.link-row {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-3) !important;
}

.link-row svg {
  width: 15px;
  height: 15px;
}

.kb {
  display: grid;
  gap: 4px;
  width: 100%;
  margin-bottom: 6px;
}

.key {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #e6e0f5;
  font-weight: 550;
  font-size: 12px;
}

.key-on {
  background: rgba(139, 61, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(190, 150, 255, 0.5);
}

.key-pay {
  background: linear-gradient(120deg, #9d4dff, #b542ff);
  color: #fff;
}

.key-pay svg {
  width: 14px;
  height: 14px;
  fill: #ffd76a;
}

.kb-2 {
  grid-template-columns: 1fr 1fr;
}

.key svg {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.key svg.star {
  fill: #ffd76a;
  stroke: none;
}

.msg .price {
  margin-top: 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.msg .code {
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--brand-3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone-wrap figcaption {
  margin-top: 20px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}

/* сообщения появляются по очереди */
.js .phone-wrap .m1,
.js .phone-wrap .m2,
.js .phone-wrap .m3 {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transform-origin: left bottom;
}

.js .phone-wrap.in .m1,
.js .phone-wrap.in .m2,
.js .phone-wrap.in .m3 {
  animation: pop 0.55s var(--ease) forwards;
}

.js .phone-wrap.in .m1 {
  animation-delay: 0.3s;
}

.js .phone-wrap.in .m2 {
  animation-delay: 1.1s;
}

.js .phone-wrap.in .m3 {
  animation-delay: 1.9s;
}

@keyframes pop {
  to {
    opacity: 1;
    transform: none;
  }
}

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

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

.feature {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  position: relative;
}

.feature::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--pink), transparent);
}

.f-ic {
  width: 28px;
  height: 28px;
  color: var(--brand-3);
  margin-bottom: 20px;
}

.feature p {
  margin-top: 8px;
  color: var(--muted);
}

/* Главные преимущества: одна панель в цветах тарифов, три колонки через тонкую линию. */
.tops {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 64px 0;
  border-radius: 32px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(139, 61, 255, 0.32), transparent 60%),
    radial-gradient(50% 110% at 100% 100%, rgba(230, 91, 255, 0.16), transparent 60%),
    #120c22;
  box-shadow: 0 40px 100px -50px rgba(139, 61, 255, 0.6);
}

.top-f {
  padding: clamp(28px, 3.2vw, 44px);
}

.top-f + .top-f {
  border-left: 1px solid var(--line);
}

.top-f-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.top-f .f-ic {
  width: 36px;
  height: 36px;
  margin: 0;
  color: #fff;
}

.top-f-head em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--brand-3);
  border: 1px solid var(--line-strong);
  background: rgba(139, 61, 255, 0.12);
  white-space: nowrap;
}

.top-f h3 {
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.top-f p {
  margin-top: 12px;
  color: var(--muted);
}

/* ---------- сравнение протоколов ---------- */

#protocols::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 40%;
  width: 900px;
  height: 500px;
  margin-left: -450px;
  background: radial-gradient(closest-side, rgba(139, 61, 255, 0.16), transparent);
  pointer-events: none;
}

.compare {
  display: grid;
  grid-template-columns: 170px repeat(2, minmax(0, 1fr));
  grid-template-rows: auto repeat(5, auto);
  column-gap: 12px;
}

.c-labels,
.c-col {
  grid-row: 1 / span 6;
  display: grid;
  grid-template-rows: subgrid;
}

.c-labels span {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}

.c-labels span:first-child {
  border-top: 0;
}

.c-col {
  border-radius: 20px;
  border: 1px solid transparent;
}

.c-main {
  background:
    linear-gradient(180deg, rgba(139, 61, 255, 0.16), rgba(139, 61, 255, 0.04)),
    rgba(255, 255, 255, 0.02);
  border-color: var(--line-strong);
  box-shadow: 0 30px 80px -30px rgba(139, 61, 255, 0.5);
}

.c-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 26px 24px 20px;
}

.c-head h3 {
  font-size: 20px;
}

.c-head em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--pink));
}

.c-head .muted-tag {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.c-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.c-tags em {
  white-space: nowrap;
}

.c-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.c-k {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ---------- российские сайты ---------- */

.route {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 360px;
  grid-template-rows: 260px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.r-src {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: rgba(139, 61, 255, 0.08);
}

.r-src small,
.r-card small {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
}

.r-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.r-ic svg {
  width: 22px;
  height: 22px;
  color: var(--brand-3);
}

.r-lines {
  width: 100%;
  height: 260px;
  overflow: visible;
}

.r-path {
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  animation: flow 1.6s linear infinite;
}

.r-a {
  stroke: var(--brand-2);
}

.r-b {
  stroke: #4ade80;
  opacity: 0.8;
}

@keyframes flow {
  to {
    stroke-dashoffset: -24;
  }
}

.r-dst {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.r-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  height: 78px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.r-card .r-ic {
  margin: 0;
}

.r-card b {
  font-weight: 600;
  font-size: 15px;
}

.r-home .r-ic svg {
  color: #4ade80;
}

.route-note {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--dim);
  font-size: 15px;
}

/* ---------- приложения ---------- */

.apps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

.app-os {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-os + .app-os {
  border-left: 1px solid var(--line);
}

.app-os h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.app-os h3 svg {
  width: 22px;
  height: 22px;
  color: var(--brand-3);
}

.app-os p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.app-os .k {
  width: 100%;
  color: var(--dim);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-os a,
.app-os .na {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.app-os a:hover {
  border-color: var(--brand-2);
  background: var(--brand-soft);
}

.app-os small {
  margin-top: auto;
  padding-top: 8px;
  color: var(--dim);
  font-size: 12.5px;
}

/* ---------- тарифы ---------- */

.plan {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(32px, 5vw, 72px);
  border-radius: 32px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(139, 61, 255, 0.3), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(230, 91, 255, 0.14), transparent 60%),
    #120c22;
}

.plan-main .btn {
  margin-top: 36px;
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.plan-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.plan-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

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

.plan-list .f-ic {
  margin: 0;
}

.plan-list b {
  display: block;
  font-weight: 620;
  font-size: 16.5px;
}

.plan-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.tiers {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tier {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.tier-top {
  border-color: var(--line-strong);
  background: linear-gradient(135deg, rgba(139, 61, 255, 0.22), rgba(230, 91, 255, 0.08));
}

.tier b {
  font-weight: 620;
  font-size: 15px;
  color: var(--muted);
}

.tier-price {
  margin: 6px 0 4px;
  font-size: 26px;
  font-weight: 750;
  line-height: 1.1;
}

.tier-price small {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
}

.tier span {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 600px) {
  .tiers {
    grid-template-columns: 1fr;
  }
  .tier {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 12px;
  }
  .tier-price {
    grid-row: span 2;
    grid-column: 2;
    margin: 0;
    text-align: right;
  }
  .tier-price small {
    display: block;
    margin: 2px 0 0;
  }
  .tier b {
    grid-column: 1;
    grid-row: 1;
  }
  .tier span {
    grid-column: 1;
  }
}

/* ---------- вопросы ---------- */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.faq-head {
  position: sticky;
  top: 112px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 560;
  font-size: 17px;
  transition: color 0.15s;
}

.faq summary:hover {
  color: #fff;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--dim);
  transition:
    transform 0.3s var(--ease),
    color 0.2s;
}

.faq details[open] summary svg {
  transform: rotate(180deg);
  color: var(--brand-3);
}

.faq details p {
  padding: 0 40px 24px 0;
  color: var(--muted);
}

/* ---------- финальный призыв ---------- */

.final {
  position: relative;
  margin-top: clamp(112px, 12vw, 180px);
  padding: clamp(96px, 11vw, 160px) 0;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(50% 70% at 50% 100%, rgba(139, 61, 255, 0.38), transparent 70%),
    radial-gradient(30% 40% at 50% 100%, rgba(230, 91, 255, 0.3), transparent 70%);
}

.final::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.final-in {
  position: relative;
}

.final-paw {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  fill: var(--pink);
  filter: drop-shadow(0 0 24px rgba(230, 91, 255, 0.7));
}

.final h2 {
  font-size: clamp(36px, 5vw, 64px);
}

.final .btn {
  margin-top: 40px;
}

/* ---------- подвал ---------- */

.foot {
  border-top: 1px solid var(--line);
}

.foot-in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.foot-brand p {
  margin-top: 8px;
  color: var(--dim);
  font-size: 14px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  align-items: center;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.foot-links a:hover {
  color: var(--text);
}

.copy {
  grid-column: 1 / -1;
  color: var(--dim);
  font-size: 13px;
}

/* ---------- появление при прокрутке ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- адаптив ---------- */

@media (max-width: 1180px) {
  .pet {
    display: none;
  }
  .compare {
    grid-template-columns: 130px repeat(2, minmax(0, 1fr));
  }
  .c-head,
  .c-cell {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 1080px) {
  .countries {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nav a {
    padding: 8px 10px;
  }
  .route {
    grid-template-columns: 200px minmax(0, 1fr) 320px;
  }
  .features {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 28px;
  }
  .apps {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-os:nth-child(odd) {
    border-left: 0;
  }
  .app-os:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .app-os:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Узкий экран: баннер без нарисованного текста (правая часть), текст и кнопки —
   обычным HTML под ним. Тоже во всю ширину, без рамок. */
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .top-in {
    justify-content: space-between;
    height: 64px;
  }
  .hero {
    min-height: 0;
    background: linear-gradient(180deg, var(--hero) 0%, var(--hero) 55%, var(--bg) 100%);
  }
  .hero-stage {
    height: auto;
  }
  .hero-art,
  .hero-copy {
    position: relative;
    height: auto;
    aspect-ratio: auto;
  }
  .hero-art {
    display: block;
    -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 96%);
    mask-image: linear-gradient(180deg, #000 50%, transparent 96%);
  }
  /* Затемнение сверху: шапка читается поверх яркой картинки. */
  .hero-art::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 1;
    height: 140px;
    background: linear-gradient(180deg, rgba(11, 8, 22, 0.88), rgba(11, 8, 22, 0.4) 55%, transparent);
  }
  .hero-art img {
    width: 100%;
    height: min(89.3vw, 74svh);
    object-fit: cover;
    object-position: 50% 30%;
  }
  .hero-copy {
    margin-top: calc(min(89.3vw, 74svh) * -0.2);
    padding: 0 var(--gutter);
    text-align: center;
    pointer-events: auto;
  }
  .hero-title,
  .hero-lead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
  .hero-title {
    font-size: clamp(40px, 12vw, 64px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-shadow: 0 6px 40px rgba(139, 61, 255, 0.55);
  }
  .hero-title .grad {
    display: block;
  }
  .hero-lead {
    max-width: 460px;
    margin: 16px auto 0;
    color: #d3cae6;
    font-size: 17px;
  }
  .cta {
    position: static;
    flex-direction: column;
    align-items: stretch;
    max-width: 420px;
    margin: 28px auto 0;
    gap: 12px;
  }
  .hero .btn-lg {
    height: 56px;
    font-size: 16px;
  }
  .facts {
    margin: 0;
    padding: 36px var(--gutter) 8px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    font-size: 14px;
    max-width: 520px;
    margin: 0 auto;
  }
  .facts li {
    align-items: flex-start;
    line-height: 1.35;
  }
  .facts svg {
    flex: none;
  }
  .how {
    grid-template-columns: 1fr;
  }
  .how-text {
    text-align: left;
  }
  .compare {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    row-gap: 14px;
  }
  .c-labels {
    display: none;
  }
  .c-col {
    grid-row: auto;
    display: block;
    border-color: var(--line);
    background: var(--surface);
  }
  .c-main {
    border-color: var(--line-strong);
  }
  .c-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 10px;
    padding: 20px 20px 14px;
  }
  .c-cell {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14.5px;
  }
  .c-cell:last-child {
    padding-bottom: 18px;
  }
  .c-k {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    color: var(--dim);
    font-size: 13.5px;
  }
  .route {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0;
    max-width: 420px;
  }
  .r-lines {
    display: none;
  }
  .r-src {
    position: relative;
    margin-bottom: 40px;
  }
  .r-src::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -41px;
    height: 40px;
    border-left: 1.5px dashed var(--line-strong);
  }
  .r-dst {
    gap: 12px;
  }
  .plan {
    grid-template-columns: 1fr;
  }
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .faq-head {
    position: static;
  }
  .foot-in {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .cta {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
}

@media (max-width: 600px) {
  .countries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  /* Нечётная последняя карточка — на всю ширину, а не одна в ряду. */
  .country:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .country:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  :root {
    --gutter: 16px;
  }
  .lead {
    font-size: 16.5px;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .tops {
    grid-template-columns: 1fr;
    margin: 44px 0;
    border-radius: 24px;
  }
  .top-f + .top-f {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .apps {
    grid-template-columns: 1fr;
  }
  .app-os + .app-os {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .app-os {
    padding: 22px;
  }
  .phone {
    width: 300px;
    height: 610px;
  }
  .c-cell {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .btn-sm span {
    display: none;
  }
  .btn-sm {
    width: 42px;
    padding: 0;
  }
  .faq summary {
    font-size: 16px;
  }
  .faq details p {
    padding-right: 0;
  }
  .foot-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* «Как подключить»: картинка (.pet-teach) — только где между текстом и телефоном есть место. */
@media (max-width: 1279px) {
  .pet-teach {
    display: none;
  }
}

/* На широком экране логотип нарисован на баннере — в шапке он появляется при прокрутке. */
@media (min-width: 901px) {
  .top:not(.scrolled) .logo {
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .pet {
    transform: none;
  }
  .pet img,
  .r-path {
    animation: none;
  }
  .js .reveal,
  .js .phone-wrap .m1,
  .js .phone-wrap .m2,
  .js .phone-wrap .m3 {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
  .btn {
    transition: none;
  }
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-cta,
.final-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.final-cta {
  justify-content: center;
}

@media (max-width: 600px) {
  .top-bot {
    display: none;
  }
  .btn-sm.top-login {
    width: auto;
    padding: 0 16px;
  }
  .btn-sm.top-login span {
    display: inline;
  }
  .plan-cta .btn,
  .final-cta .btn {
    width: 100%;
    justify-content: center;
  }
}
