/* HIT ONE — minimal, mobile-first. One dark look (like the app), one yellow accent. */
:root {
  color-scheme: dark;
  --bg: #0a0a0d;
  --surface: #131317;
  --surface2: #1a1a1f;
  --line: rgba(255, 255, 255, 0.07);
  --text: #f4f4f6;
  --muted: #8e8e98;
  --yellow: #ffd23f;
  --yellow2: #f5a800;
  --green: #30d17a;
  --radius: 18px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; position: relative; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }

/* single soft light at the top (kept from the app's look, but quiet) */
.mesh { position: absolute; inset: 0 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(520px 360px at 72% 18%, rgba(255, 196, 0, .16), transparent 70%),
              radial-gradient(480px 320px at 10% 0%, rgba(110, 90, 255, .12), transparent 70%); }
.mesh i { display: none; }

/* header */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(10,10,13,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: .3px; }
.logo-mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #ffe066, var(--yellow2)); }
.logo-mark svg { width: 15px; height: 15px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--surface2); }
.lang button { background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; cursor: pointer; }
.lang button.on { background: var(--text); color: #111; }

/* hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: 64px 40px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -1.5px; margin: 20px 0 16px; text-wrap: balance; }
.grad { color: var(--yellow); }
.lead { font-size: 17px; color: var(--muted); max-width: 470px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 13px 20px; border-radius: 14px;
  background: var(--surface2); border: 1px solid var(--line); transition: background .2s, transform .2s; }
.btn:hover { background: #222228; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--yellow); color: #111; border-color: transparent; }
.btn.primary:hover { background: #ffdc5c; }
.btn small { display: block; font-size: 11px; font-weight: 600; opacity: .65; line-height: 1.1; }
.btn b { display: block; line-height: 1.25; }
.stats { display: flex; gap: 28px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 420px; }
.stats b { display: block; font-size: 24px; font-weight: 800; }
.stats span { font-size: 13px; color: var(--muted); font-weight: 500; }

/* single phone */
.visual { display: grid; place-items: center; }
.phone { width: min(300px, 78vw); aspect-ratio: 1320 / 2868; border-radius: 46px; padding: 8px; background: #1d1d22;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.6); animation: float 7s ease-in-out infinite; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 39px; }
.phone.back, .halo { display: none; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* sections */
section { padding-block: 72px; border-top: 1px solid var(--line); }
.sec-head { max-width: 620px; margin-bottom: 36px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.6px; color: var(--yellow); text-transform: uppercase; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.8px; line-height: 1.12; margin-top: 8px; text-wrap: balance; }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }

/* advantages: compact list, readable on a phone */
.adv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.ic { flex: 0 0 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.ic svg { width: 20px; height: 20px; }
.item h3 { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.item p { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.y { background: #e8b400; } .r { background: #ff453a; } .g { background: #30c45c; } .b { background: #0a84ff; }
.p { background: #af52de; } .i { background: #5e5ce6; } .o { background: #ff9f0a; } .t { background: #30b0c7; } .k { background: #3a3a42; }
.protos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.protos span { font-size: 13px; font-weight: 600; color: #c8c8d0; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }

/* demo button */
.demo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.demo-box { position: relative; display: grid; place-items: center; height: 360px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.d-status { position: absolute; top: 34px; font-size: 24px; font-weight: 800; color: var(--yellow); transition: color .4s; }
.demo-box.on .d-status { color: var(--green); }
.d-time { position: absolute; bottom: 34px; font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.power { position: relative; width: 140px; height: 140px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #ffe066, var(--yellow2)); box-shadow: 0 0 0 1.5px rgba(255,255,255,.5) inset, 0 12px 40px rgba(245,168,0,.35);
  transition: background .5s, box-shadow .5s, transform .15s; }
.power:active { transform: scale(.94); }
.power::before { content: ""; position: absolute; inset: -16px; border-radius: 50%; border: 1px solid rgba(255,210,63,.35); transition: border-color .5s; }
.power svg { width: 54px; height: 54px; }
.demo-box.on .power { background: linear-gradient(160deg, #3cf09a, #00b85c); box-shadow: 0 0 0 1.5px rgba(255,255,255,.5) inset, 0 12px 40px rgba(0,184,92,.35); }
.demo-box.on .power::before { border-color: rgba(48,209,122,.45); }
.demo-box.connecting .power::before { border-color: transparent; border-top-color: #fff; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ripple { position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 1.5px solid rgba(48,209,122,.5); opacity: 0; pointer-events: none; }
.demo-box.on .ripple { animation: ripple 2.6s ease-out infinite; }
.demo-box.on .ripple:nth-of-type(2) { animation-delay: 1.3s; }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(2); opacity: 0; } }
.demo-text p { color: var(--muted); margin-top: 12px; }

/* screens */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 820px; }
.shot { border-radius: 30px; padding: 6px; background: #1d1d22; box-shadow: 0 0 0 1px rgba(255,255,255,.07); }
.shot img { border-radius: 25px; }
.shot figcaption { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 0 4px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.step { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--yellow); color: #111; font-weight: 800; font-size: 15px; margin-bottom: 14px; }
.step h3 { font-size: 16px; font-weight: 700; }
.step p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* FAQ */
.faq { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); color: var(--yellow); }
details p { color: var(--muted); margin-top: 10px; font-size: 15px; }
details a { color: var(--yellow); }

/* contact */
.contact { padding: 40px 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.contact p { color: var(--muted); margin-top: 10px; }
.mail { font-weight: 700; color: var(--text); user-select: all; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 13.5px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 600; }
.foot a:hover { color: var(--text); }

/* legal pages */
.legal { max-width: 760px; margin: 0 auto; padding-block: 48px 20px; min-width: 0; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; }
.legal .date { color: var(--muted); font-size: 14px; margin-bottom: 24px; font-weight: 500; }
.legal h2 { font-size: 19px; margin: 30px 0 8px; letter-spacing: 0; }
.legal p, .legal li { color: #cfcfd7; font-size: 15.5px; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin: 4px 0; }
.legal a { color: var(--yellow); }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14px; min-width: 480px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: #cfcfd7; }
.legal th { color: var(--text); font-weight: 700; background: var(--surface); }

[data-lang="en"] .ru, [data-lang="ru"] .en { display: none !important; }

@media (max-width: 900px) {
  .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 40px 24px; }
  .lead { font-size: 16px; }
  .cta .btn { flex: 1 1 150px; justify-content: center; }
  .stats { gap: 22px; }
  section { padding-block: 52px; }
  .adv, .steps { grid-template-columns: 1fr; gap: 10px; }
  .item { padding: 15px; }
  .demo { grid-template-columns: 1fr; gap: 24px; }
  .demo-box { height: 300px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .shot { border-radius: 20px; padding: 4px; } .shot img { border-radius: 16px; }
  .shot figcaption { font-size: 11px; }
  .nav-links a { display: none; }
  .contact { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
