@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --accent: #128574;
  --accent-strong: #0B6358;
  --accent-soft: #E3F2EF;
  --grad-start: #17A08A;
  --grad-end: #0B6358;
  --bg: #F6F6FA;
  --surface: #FFFFFF;
  --tint: #EEF4F2;
  --text: #16181D;
  --muted: #5E6470;
  --line: #E3E5EA;
  --shadow: 0 18px 50px rgba(16, 40, 36, 0.14), 0 2px 8px rgba(16, 40, 36, 0.06);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #3CC2A9;
    --accent-strong: #5AD6BE;
    --accent-soft: #123A34;
    --bg: #0E1012;
    --surface: #171A1D;
    --tint: #121618;
    --text: #EDEFF2;
    --muted: #A0A6B0;
    --line: #262A2F;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  }
}

:root[data-theme="dark"] {
  --accent: #3CC2A9;
  --accent-strong: #5AD6BE;
  --accent-soft: #123A34;
  --bg: #0E1012;
  --surface: #171A1D;
  --tint: #121618;
  --text: #EDEFF2;
  --muted: #A0A6B0;
  --line: #262A2F;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

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

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 20px; }
.brand span { font-weight: 500; color: var(--muted); }
.brand b { font-weight: 800; color: var(--text); }
.brand.small { font-size: 16px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--text); }
@media (max-width: 719px) { .nav-links a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: #fff;
  box-shadow: 0 8px 22px rgba(18, 133, 116, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(18, 133, 116, 0.34); }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 11px; background: var(--accent); color: #fff; }
.btn-icon { font-size: 18px; line-height: 1; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-inner { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 88px 0 104px; }
  .hero-inner { grid-template-columns: 0.95fr 1.05fr; }
}
.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; }
.lead { font-size: 19px; color: var(--muted); margin: 20px 0 30px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

.hero-visual { position: relative; padding-bottom: 12%; }
.shot-desktop {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.shot-phone {
  position: absolute;
  right: -2%;
  bottom: 0;
  width: 28%;
  border-radius: 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* Sections */
.section { padding: 80px 0; }
.section-tint { background: var(--tint); }
.section h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; text-align: center; }
.section-lead { text-align: center; color: var(--muted); margin: 12px auto 44px; max-width: 36em; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 800;
  margin-bottom: 16px;
}
.steps h3, .features h3, .dl h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.steps p, .features p { color: var(--muted); margin: 0; font-size: 16px; }
.steps a { color: var(--accent); font-weight: 600; }

/* Telegram app ID guide */
.guide { counter-reset: guide; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.guide li {
  counter-increment: guide; position: relative; padding: 18px 20px 18px 64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.guide li::before {
  content: counter(guide); position: absolute; left: 18px; top: 16px;
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-strong); font-weight: 800;
}
.guide a { color: var(--accent); font-weight: 600; }
.guide-actions { text-align: center; margin: 28px 0 20px; }

.features { display: grid; gap: 20px; margin-top: 44px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.f-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  margin-bottom: 16px;
}
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-strong); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.gallery {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 16px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) { .gallery { justify-content: center; } }
.gallery img {
  flex: 0 0 auto;
  width: 220px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  scroll-snap-align: center;
}

/* Downloads */
.downloads { display: grid; gap: 18px; }
@media (min-width: 640px) { .downloads { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .downloads { grid-template-columns: repeat(4, 1fr); } }
.dl {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dl.is-yours { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dl .btn { width: 100%; }
.dl-meta { margin: -6px 0 4px; color: var(--muted); font-size: 14px; }
.dl-alt { font-size: 14px; font-weight: 600; text-decoration: none; }
.is-soon { pointer-events: none; opacity: 0.5; filter: grayscale(1); }

/* Shown inside Telegram and other apps' built-in browsers, which often
   can't download files. */
.inapp {
  display: none; margin: 16px 0 0; padding: 12px 16px; max-width: 460px;
  border-radius: 14px; background: var(--accent-soft); color: var(--text);
  font-size: 15px;
}
.inapp.show { display: block; }
.dl details { font-size: 14px; color: var(--muted); }
.dl summary { cursor: pointer; font-weight: 600; color: var(--text); }
.dl details p { margin: 8px 0 0; }
code { font-size: 0.92em; background: var(--tint); padding: 1px 5px; border-radius: 6px; }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin: 30px 0 0; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; 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-weight: 800; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 10px 0 0; }
#faq h2 { margin-bottom: 24px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
@media (max-width: 639px) { .dl.is-yours { order: -1; } }
