:root {
  --bg: #0b0d12;
  --card: rgba(255,255,255,0.06);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --stroke: rgba(255,255,255,0.10);
  --accent1: #4f8dff;
  --accent2: #7b5cff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 800px at 30% 10%, rgba(123,92,255,0.25), transparent 60%),
              radial-gradient(1000px 700px at 70% 0%, rgba(79,141,255,0.25), transparent 60%),
              var(--bg);
  color: var(--text);
}

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

a { color: #cfe1ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1040px; margin: 0 auto; padding: 24px; }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 24px;
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.appicon { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--stroke); }

.nav-links { display: flex; gap: 14px; align-items: center; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
  padding: 18px 0 12px;
}

h1 { font-size: 44px; line-height: 1.05; margin: 0 0 10px; }
.subtitle { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 18px; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-weight: 600;
}

.button.primary {
  border: 0;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
}

.button.ghost { background: transparent; }

/* Если где-то поставишь aria-disabled="true", элемент станет некликабельным */
.button[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }

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

.phone {
  width: 280px;
  max-width: 100%;
  border-radius: 28px;
  border: 1px solid var(--stroke);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.section { padding: 30px 0; }
.section h2 { margin: 0 0 14px; font-size: 26px; }

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

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 14px;
  backdrop-filter: blur(10px);
}

.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); line-height: 1.45; }

/* Desktop/tablet: сетка из 3 скриншотов */
.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.screens img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--stroke);
}

/* Подсказка по умолчанию скрыта (покажем только на мобилках) */
.screens-hint { display: none; }

.note { color: var(--muted); font-size: 13px; }
.footer { padding: 26px 0; color: var(--muted); }

@media (max-width: 900px) {
  .container { padding: 16px; }

  /* Навигация: бренд сверху, ссылки ниже, без горизонтального скролла */
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 14px;
  }

  .nav-links a { white-space: nowrap; }

  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }

  /* Скриншоты: горизонтальный скролл */
  .screens {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .screens img {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  /* Подсказка, что есть несколько скринов */
  .screens-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
  }

  .dots { display: inline-flex; gap: 6px; }
  .dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.28);
  }
  .dot.active { background: rgba(255,255,255,0.75); }
}
