:root {
  color-scheme: dark;
  --bg: #08110f;
  --bg-2: #0d1a17;
  --surface: #11201c;
  --surface-2: #162a25;
  --line: #1f3a33;
  --text: #e8f3ef;
  --muted: #9bb2aa;
  --accent: #5fd0a8;
  --accent-ink: #04130e;
  --accent-soft: rgba(95, 208, 168, .14);
  --radius: 18px;
  --radius-s: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  --font: 'Onest', system-ui, sans-serif;
}

@font-face {
  font-family: 'Onest';
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/onest-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Onest';
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/onest-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;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

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

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(ellipse at top, rgba(95, 208, 168, .12), transparent 70%);
  background-repeat: no-repeat;
  background-size: 100% 60%;
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  border-radius: 0 0 var(--radius-s) 0;
  text-decoration: none;
}

.skip:focus {
  left: 0;
}

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 720px) {
  .container {
    padding-inline: 32px;
  }
}

.container--narrow {
  max-width: 820px;
}

.hide-s {
  display: none;
}

@media (min-width: 480px) {
  .hide-s {
    display: initial;
  }
}

.show-s {
  display: none;
}

@media (max-width: 479px) {
  .show-s {
    display: inline;
  }
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 17, 15, .78);
  border-bottom: 1px solid var(--line);
}

.header__row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.logo__word {
  font-weight: 700;
  font-size: 19px;
}

.nav {
  display: none;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
  }

  .nav a {
    color: var(--muted);
    text-decoration: none;
    transition: color 180ms;
  }

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

.header__tools {
  display: flex;
  gap: 14px;
  margin-left: auto;
}

@media (min-width: 900px) {
  .header__tools {
    margin-left: 0;
  }
}

.lang {
  display: flex;
  gap: 2px;
}

.lang a {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 180ms, color 180ms;
}

.lang a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 180ms, border-color 180ms, color 180ms, filter 180ms, transform 180ms;
  min-height: 44px;
  padding: 0 22px;
  cursor: pointer;
}

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

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

.btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  border-color: var(--accent);
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.btn--lg {
  min-height: 54px;
  padding: 0 28px;
  font-size: 17px;
}

.hero {
  padding: 40px 0 56px;
}

@media (min-width: 900px) {
  .hero {
    padding: 72px 0 96px;
  }
}

.hero__grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(95, 208, 168, .5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(95, 208, 168, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge__dot {
    animation: none;
  }
}

.hero__title {
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 18px 0 18px;
  font-weight: 700;
  text-wrap: balance;
}

.hero__lead {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 36em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
  max-width: 34em;
}

.hero__device {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.phone {
  position: relative;
  width: min(78vw, 300px);
  border-radius: 38px;
  border: 8px solid #0b0f12;
  background: #17212b;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: hidden;
}

.phone--hero {
  width: min(80vw, 320px);
}

.phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #17212b;
  color: #f5f5f5;
  font-size: 12px;
}

.phone__bar strong {
  text-align: center;
  font-size: 14px;
}

.phone__bar small {
  display: block;
  font-size: 10px;
  color: #708499;
}

.phone__screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 760;
  object-fit: cover;
}

.phone__dots {
  letter-spacing: 1px;
}

.callout {
  position: absolute;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 14px;
  background: rgba(17, 32, 28, .92);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.callout svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

@media (min-width: 900px) {
  .callout {
    display: flex;
  }
}

.callout--1 {
  left: -4%;
  top: 16%;
  animation: float 6s ease-in-out infinite;
}

.callout--2 {
  right: -6%;
  top: 46%;
  animation: float 6s ease-in-out infinite 2s;
}

.callout--3 {
  left: 2%;
  bottom: 10%;
  animation: float 6s ease-in-out infinite 4s;
}

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

@media (prefers-reduced-motion: reduce) {
  .callout--1,
  .callout--2,
  .callout--3 {
    animation: none;
  }
}

.trust {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}

.trust__grid {
  display: grid;
  gap: 28px;
  padding-block: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .trust__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust__item h2 {
  font-size: 17px;
  margin: 12px 0 6px;
}

.trust__item p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  width: 22px;
  height: 22px;
}.section {
  padding-block: 64px;
}

@media (min-width: 900px) {
  .section {
    padding-block: 96px;
  }
}

.section--alt {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section__title {
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -.015em;
  margin: 0 0 14px;
  text-wrap: balance;
}

.section__lead {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cards--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 200ms, transform 200ms;
}

.card:hover {
  border-color: rgba(95, 208, 168, .45);
  transform: translateY(-3px);
}

.card h3 {
  font-size: 18px;
  margin: 16px 0 8px;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
}

.show__grid {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .show__grid {
    grid-template-columns: 1fr 1.1fr;
  }
  .show--flip .show__text {
    order: 2;
  }
  .show--flip .show__media {
    order: 1;
  }
}

.show__text .ticks {
  margin-top: 22px;
}

.show__media {
  display: grid;
  place-items: center;
}

.show__media--pair {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.show__media--pair .phone {
  position: relative;
}

.show__media--pair .phone--back {
  position: static;
  margin-top: 24px;
  transform: none;
}

@media (min-width: 640px) {
  .show__media--pair {
    display: grid;
    position: relative;
    min-height: 660px;
    width: 100%;
  }
  .show__media--pair .phone {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .show__media--pair .phone--back {
    position: absolute;
    right: 6%;
    top: 48px;
    transform: rotate(4deg);
    z-index: 1;
    margin-top: 0;
  }
}

.phone--back {
  width: min(70vw, 270px);
}

.botmock {
  margin: 0;
  width: min(80vw, 300px);
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.botmock img {
  display: block;
  width: 100%;
  height: auto;
}

.browser {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b0f12;
  box-shadow: var(--shadow);
}

.browser img {
  display: block;
  width: 100%;
  height: auto;
}

.browser__bar {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: #11181c;
  border-bottom: 1px solid var(--line);
}

.browser__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2a3a36;
  display: block;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
}

.ticks svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}

.step h3 {
  font-size: 20px;
  margin: 18px 0 8px;
}

.step p {
  color: var(--muted);
  margin: 0;
}

.step__n {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.note {
  max-width: 860px;
  margin: 28px auto 0;
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid rgba(95, 208, 168, .28);
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: 15.5px;
}

.note svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
}

.access {
  display: grid;
  gap: 28px;
  padding: 36px;
  border-radius: 26px;
  border: 1px solid rgba(95, 208, 168, .3);
  background: linear-gradient(135deg, rgba(95, 208, 168, .14), rgba(17, 32, 28, .9) 55%);
}

@media (min-width: 900px) {
  .access {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    padding: 56px;
  }
}

.access__cta {
  display: grid;
  gap: 14px;
  justify-items: start;
}

@media (min-width: 900px) {
  .access__cta {
    justify-items: center;
  }
}

.access__handle {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0 22px;
  transition: border-color 180ms;
}

.faq summary {
  cursor: pointer;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  font-size: 17px;
  font-weight: 600;
}

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

.faq summary::after {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 180ms;
  flex: none;
  margin-bottom: 4px;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-bottom: -2px;
}

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 16px;
}

.faq details[open] {
  border-color: rgba(95, 208, 168, .4);
}

.footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  background: var(--bg-2);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}

.footer__text {
  color: var(--muted);
  font-size: 15px;
  max-width: 30em;
  margin: 12px 0 0;
}

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

.footer__meta p {
  margin: 0 0 6px;
}

.footer__meta a {
  color: var(--accent);
}

.footer__demo {
  font-size: 13px;
  margin-top: 14px;
  max-width: 34em;
}

/* Появление блоков при прокрутке: чистый CSS (scroll-driven), без JS; где не поддерживается — блоки просто видны */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

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

.ico {
  flex: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
/* --- правки после проверки в браузере --- */
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.12fr .88fr; }
}

@media (max-width: 479px) {
  .header__row, .header__tools { gap: 8px; }
  .lang a { padding: 6px 6px; }
  .btn--sm { padding: 0 14px; }
}

@media (min-width: 640px) {
  .show__media--pair .phone { left: 0; }
  .show__media--pair .phone--back { left: auto; right: 0; }
}

.access__text .ticks { margin-top: 22px; }
.footer__meta a, .footer__meta p { line-height: 1.7; }
.footer__meta a { display: inline-block; padding: 4px 0; }

/* --- полоса экранов --- */
.gallery {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 8px max(20px, calc((100vw - 1096px) / 2)) 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(20px, calc((100vw - 1096px) / 2));
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.gallery:focus-visible { outline-offset: -4px; }

.gallery__item {
  flex: 0 0 auto;
  width: 250px;
  scroll-snap-align: start;
  text-align: center;
}

.phone--mini { width: 250px; margin-inline: auto; }

.gallery figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

/* на телефоне десктопный снимок не сжимается до нечитаемого, а прокручивается */
@media (max-width: 639px) {
  .browser { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .browser img { width: 760px; max-width: none; }
}

/* Узкий экран: в шапке остаётся «Войти», кнопка Telegram есть в первом экране */
@media (max-width: 479px) {
  .header__tg, .header__reg { display: none; }
}

/* --- шапка и кнопки: без переносов строк внутри --- */
.btn, .nav a, .lang a, .logo__word { white-space: nowrap; }

.header__tg { padding: 0; width: 40px; justify-content: center; }
.header__tg svg { width: 20px; height: 20px; }

/* ссылки разделов — только когда они помещаются в контейнер вместе с кнопками */
@media (min-width: 900px) and (max-width: 1239px) {
  .nav { display: none; }
  .header__tools { margin-left: auto; }
}

@media (min-width: 1240px) {
  .nav { gap: 22px; }
}

/* третье действие первого экрана — ссылка, а не третья кнопка */
.btn--link {
  background: transparent;
  color: var(--muted);
  padding-inline: 8px;
}

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

.hero__actions .btn--link { flex-basis: 100%; justify-content: flex-start; min-height: 44px; }
