/* ===== Базовые переменные ===== */
:root {
  --bg: #101216;
  --bg2: #171a20;
  --line: #252a33;
  --tx: #eceef2;
  --mut: #8a919d;
  --ac: #6aa5ff;
  --ac2: #4c86e8;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 17px/1.6 Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

/* ===== Обёртка ===== */
.w {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Шапка ===== */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: rgba(16, 18, 22, .8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

header .w {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  text-decoration: none;
}

.logo i {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--ac), var(--ac2));
  display: grid;
  place-items: center;
}

.logo i::after {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid #0b1220;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px);
}

nav a {
  color: var(--mut);
  text-decoration: none;
  margin-left: 28px;
  font-size: 15px;
  transition: color .15s;
}

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

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  background: var(--ac);
  color: #0b1220;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 30px -8px rgba(106, 165, 255, .55);
  transition: transform .15s, box-shadow .15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 34px -8px rgba(106, 165, 255, .7);
}

.btn.sm {
  padding: 9px 18px;
  font-size: 15px;
  border-radius: 10px;
  box-shadow: none;
}

/* ===== Первый экран ===== */
.hero {
  position: relative;
  text-align: center;
  padding: 96px 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -80px;
  width: 900px;
  height: 520px;
  max-width: 100%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(106, 165, 255, .16), transparent);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: 0 auto 24px;
  max-width: 780px;
  animation: in .8s both;
}

.lead {
  color: var(--mut);
  font-size: clamp(17px, 2.2vw, 20px);
  max-width: 580px;
  margin: 0 auto 36px;
  animation: in .8s .1s both;
}

.act {
  animation: in .8s .2s both;
}

.meta {
  color: var(--mut);
  font-size: 14px;
  margin-top: 16px;
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== Макет окна приложения ===== */
.win {
  margin: 72px auto 0;
  max-width: 960px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg2);
  overflow: hidden;
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, .7),
    0 0 0 8px rgba(255, 255, 255, .015);
  text-align: left;
}

.bar {
  display: flex;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.body {
  min-height: 340px;
}

.main {
  display: flex;
  align-items: center;
  padding: 0;
}

.main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ===== Секции ===== */
section {
  padding: 112px 0 0;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 0 14px;
}

.sub {
  color: var(--mut);
  max-width: 540px;
  margin: 0 0 48px;
}

/* ===== Карточки возможностей ===== */
.feat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.f {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--bg2), transparent);
  transition: border-color .2s;
}

.f:hover {
  border-color: #3a4150;
}

.ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(106, 165, 255, .1);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.ic svg {
  width: 20px;
  height: 20px;
  stroke: var(--ac);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.f h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

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

/* ===== Шаги ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  counter-reset: s;
}

.steps div {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  counter-increment: s;
}

.steps div::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 1px;
  background: var(--ac);
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}

.steps h3::before {
  content: counter(s) ". ";
  color: var(--ac);
}

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

/* ===== Сетка «Безопасность» ===== */
.sec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px;
}

.sec h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

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

/* ===== Призыв к действию ===== */
.cta {
  margin-top: 120px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 4px;
}

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

/* ===== Подвал ===== */
footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--mut);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== Мобильные устройства ===== */
@media (max-width: 700px) {
  nav {
    display: none;
  }

  .hero {
    padding-top: 64px;
  }

  section {
    padding-top: 80px;
  }

  .win {
    margin-top: 48px;
  }
}

/* ===== Уменьшенная анимация ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation: none !important;
    transition: none !important;
  }
}
