:root {
  --bg: #f4f7f7;
  --surface: #ffffff;
  --surface-2: #eaf1f0;
  --border: #dbe4e4;
  --text: #13201f;
  --muted: #5c6f6d;
  --accent: #0f766e;
  --accent-hover: #0d655e;
  --accent-soft: #d8f0ec;
  --shadow: 0 1px 2px rgb(16 40 38 / 0.06), 0 8px 28px rgb(16 40 38 / 0.08);
  --phone-shadow: 0 30px 60px -20px rgb(16 40 38 / 0.35);
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1514;
    --surface: #152120;
    --surface-2: #1a2928;
    --border: #2a3b39;
    --text: #e4eeec;
    --muted: #93a6a3;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-soft: #123b36;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 28px rgb(0 0 0 / 0.3);
    --phone-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 28px;
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.92rem;
}

.btn-large {
  padding: 14px 26px;
  font-size: 1.05rem;
}

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

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

.btn-ghost {
  border-color: var(--border);
  background: var(--surface);
}

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

.btn-light {
  background: #fff;
  color: #0f766e;
}

.btn-light:hover {
  background: #e9f7f4;
}

/* ---------- Навигация ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 8px;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

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

.lang-toggle {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 9px;
  cursor: pointer;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .nav-actions {
    margin-left: auto;
  }
}

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

.hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(900px 480px at 85% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(600px 400px at 0% 100%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 22px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-points li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  margin-right: 7px;
}

/* ---------- Телефоны со скриншотами ---------- */

.phone {
  border-radius: 34px;
  padding: 9px;
  background: #0b1211;
  box-shadow: var(--phone-shadow), 0 0 0 1px rgb(255 255 255 / 0.06) inset;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

.hero-phones {
  position: relative;
  height: 560px;
}

.hero-phones .phone {
  position: absolute;
  width: 270px;
}

.phone-front {
  left: 8%;
  top: 30px;
  z-index: 2;
}

.phone-back {
  right: 4%;
  top: 0;
  transform: rotate(5deg);
  opacity: 0.96;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 40px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-phones {
    height: 470px;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }
  .hero-phones .phone {
    width: 230px;
  }
}

@media (max-width: 420px) {
  .hero-phones {
    height: 400px;
  }
  .hero-phones .phone {
    width: 195px;
  }
  .phone-front {
    left: 0;
  }
  .phone-back {
    right: 0;
  }
  .btn-large {
    width: 100%;
  }
}

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

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--surface-2);
}

.section-lead {
  color: var(--muted);
  margin: -14px 0 28px;
  max-width: 620px;
}

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

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.feature h3 {
  margin: 14px 0 6px;
}

.feature p {
  color: var(--muted);
  font-size: 0.97rem;
}

.feature-icon,
.privacy-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg,
.privacy-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .section {
    padding: 56px 0;
  }
  .features {
    grid-template-columns: 1fr;
  }
}

/* Как это работает */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: center;
}

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

.steps li {
  display: flex;
  gap: 16px;
}

.step-num {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: var(--accent);
  color: var(--surface);
}

.steps h3 {
  margin: 6px 0 4px;
}

.steps p {
  color: var(--muted);
}

.phone-single {
  width: 100%;
}

@media (max-width: 820px) {
  .how {
    grid-template-columns: 1fr;
  }
  .phone-single {
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Приватность */
.privacy {
  display: flex;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.privacy-icon {
  width: 56px;
  height: 56px;
  flex: none;
}

.privacy-icon svg {
  width: 30px;
  height: 30px;
}

.privacy h2 {
  margin-bottom: 18px;
}

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

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

@media (max-width: 600px) {
  .privacy {
    flex-direction: column;
    padding: 26px;
  }
}

/* Платформы */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.platform {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.platform p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.95rem;
}

.soon {
  margin-top: 28px;
  color: var(--muted);
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
  margin-right: 6px;
}

@media (max-width: 820px) {
  .platforms {
    grid-template-columns: 1fr;
  }
}

/* Вопросы */
.faq {
  max-width: 780px;
}

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  color: var(--muted);
  margin-top: 10px;
}

/* Финальный призыв */
.final {
  padding: 0 0 80px;
}

.final-inner {
  text-align: center;
  background: linear-gradient(135deg, #0f766e, #115e59);
  color: #fff;
  border-radius: 28px;
  padding: 56px 24px;
}

.final h2 {
  margin-bottom: 10px;
}

.final p {
  opacity: 0.85;
  margin-bottom: 26px;
}

/* Подвал */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}

.footer .brand {
  font-size: 1rem;
}

/* Подвал: ссылка на политику */
.footer-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Политика конфиденциальности */
.legal {
  max-width: 780px;
  padding-top: 40px;
  padding-bottom: 64px;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 6px;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 32px 0 10px;
}

.legal p,
.legal li {
  color: var(--text);
  line-height: 1.6;
}

.legal ul {
  padding-left: 1.2em;
  margin: 10px 0;
}

.legal li + li {
  margin-top: 6px;
}

.legal a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.legal code {
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface-2);
}
