/* IKI SKY — строго монохромная тёмная тема, как в приложении */
:root {
  --bg: #000000;
  --card: #121212;
  --raised: #1f1f1f;
  --divider: #292929;
  --stroke: #3d3d3d;
  --stroke-strong: #737373;
  --text: #ffffff;
  --text-2: #a8a8a8;
  --text-3: #707070;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, .72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--divider);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .08em; font-size: 15px; }
.brand img { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px var(--stroke); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--text-2); font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--text); }
.lang {
  text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .06em;
  border: 1px solid var(--stroke); border-radius: 999px; padding: 5px 12px; color: var(--text-2);
  transition: border-color .15s, color .15s;
}
.lang:hover { border-color: var(--stroke-strong); color: var(--text); }
@media (max-width: 760px) { .nav { display: none; } .lang { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 16px/1 var(--font); text-decoration: none;
  padding: 15px 22px; border-radius: 14px; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e6e6e6; }
.btn-secondary { border-color: var(--stroke); color: var(--text); }
.btn-secondary:hover { border-color: var(--stroke-strong); }
.btn[aria-disabled="true"] { cursor: default; }
.btn svg { width: 20px; height: 20px; }
.btn small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .7; margin-bottom: 3px; }
.btn .btn-stack { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }

/* ---------- common section ---------- */
section { padding: 110px 0; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 18px;
}
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; max-width: 18ch; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 60ch; margin: 22px 0 0; }
.section-head { margin-bottom: 56px; }
.divider-top { border-top: 1px solid var(--divider); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 80px 0 110px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 78px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero .lead { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--text-3); font-size: 14px; }
.hero-meta span::before { content: "·"; margin-right: 8px; }
.hero-meta span:first-child::before { content: none; }
.hero-visual { position: relative; display: grid; place-items: center; }
.rings { position: absolute; inset: 50% auto auto 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); pointer-events: none; }
.rings circle { fill: none; stroke: #fff; stroke-width: 1.2; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; margin-top: 30px; }
  .rings { width: 640px; height: 640px; }
}

/* ---------- phone with real screenshot ---------- */
.phone {
  position: relative; width: 300px; flex: none;
  border-radius: 50px; padding: 10px;
  background: #0b0b0b; border: 1px solid var(--stroke);
  box-shadow: 0 0 0 6px #050505, 0 0 0 7px var(--divider), 0 30px 80px rgba(0, 0, 0, .9);
}
.phone img { width: 100%; height: auto; border-radius: 40px; background: #000; }
.phones { position: relative; width: 470px; max-width: 100%; display: flex; justify-content: flex-end; }
.phones .front { z-index: 2; }
.phones .back { position: absolute; left: 0; top: 56px; width: 260px; border-radius: 44px; padding: 9px; }
.phones .back img { border-radius: 35px; filter: brightness(.5); }
/* дочерние элементы сеток не должны расширять колонку шириной картинок */
.hero .wrap > *, .feature > * { min-width: 0; }
@media (max-width: 520px) {
  .phones { width: auto; justify-content: center; }
  .phones .back { display: none; }
}
@media (max-width: 360px) { .phone { width: 100%; } }
.pill { font-size: 9.5px; font-weight: 600; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--stroke); color: var(--text-2); white-space: nowrap; }
.pill.bad { background: #fff; color: #000; border-color: #fff; }
.pill.warn { border-color: var(--stroke-strong); color: #fff; }

/* ---------- problem ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.q-card { background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius); padding: 26px 22px; }
.q-card .num { font-family: var(--mono); color: var(--text-3); font-size: 13px; }
.q-card h3 { font-size: 19px; margin-top: 30px; line-height: 1.25; letter-spacing: -.01em; }
.q-card p { color: var(--text-2); margin: 10px 0 0; font-size: 15px; }
@media (max-width: 960px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .problem-grid { grid-template-columns: 1fr; } }
.audience { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 10px; }
.audience span { border: 1px solid var(--stroke); border-radius: 999px; padding: 8px 16px; color: var(--text-2); font-size: 15px; }

/* ---------- features ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 70px 0; border-top: 1px solid var(--divider); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature h3 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; max-width: 16ch; }
.feature .lead { font-size: 18px; }
.feature ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.feature li { position: relative; padding-left: 22px; color: var(--text-2); }
.feature li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--stroke-strong); }
.feature li strong { color: var(--text); font-weight: 600; }
.feature-visual { display: grid; place-items: center; position: relative; }
.feature-visual .rings { width: 620px; height: 620px; }
.feature .note { margin-top: 22px; font-size: 14px; color: var(--text-3); border-left: 1px solid var(--stroke); padding-left: 14px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature:nth-child(even) .feature-text { order: 0; }
}

/* ---------- risk levels ---------- */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.level { border-radius: var(--radius); padding: 26px 22px 28px; border: 1px solid var(--divider); min-height: 280px; display: flex; flex-direction: column; }
.level .l-tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.level h3 { font-size: 22px; margin-top: auto; padding-top: 60px; line-height: 1.2; }
.level p { margin: 10px 0 0; font-size: 15px; opacity: .75; }
.level.l1 { background: #0a0a0a; color: var(--text-2); }
.level.l2 { background: var(--card); border-color: var(--stroke); }
.level.l3 { background: #2a2a2a; border-color: var(--stroke-strong); }
.level.l4 { background: #fff; color: #000; border-color: #fff; }
.level.l4 p { opacity: .8; }
.levels-note { margin-top: 26px; color: var(--text-3); font-size: 15px; max-width: 70ch; }
@media (max-width: 960px) { .levels { grid-template-columns: 1fr 1fr; } .level { min-height: 230px; } }
@media (max-width: 560px) { .levels { grid-template-columns: 1fr; } .level { min-height: 0; } .level h3 { padding-top: 34px; } }

/* ---------- privacy ---------- */
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.p-card { background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius); padding: 26px 24px; }
.p-card svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.p-card h3 { font-size: 19px; margin-top: 22px; line-height: 1.25; }
.p-card p { margin: 10px 0 0; color: var(--text-2); font-size: 15px; }
.p-card code { font-family: var(--mono); font-size: 13.5px; color: var(--text); background: var(--raised); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ---------- limits ---------- */
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 10px; }
.limit { padding: 22px 0; border-top: 1px solid var(--divider); }
.limit h3 { font-size: 18px; line-height: 1.3; }
.limit p { margin: 8px 0 0; color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) { .limits { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--divider); }
.faq details:last-child { border-bottom: 1px solid var(--divider); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-size: 19px; font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 0 26px; color: var(--text-2); max-width: 68ch; }
.faq .answer p { margin: 0 0 10px; }

/* ---------- CTA ---------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta img.cta-logo { width: 96px; height: 96px; margin: 0 auto 30px; border-radius: 50%; box-shadow: 0 0 0 1px var(--stroke); }
.cta h2 { margin: 0 auto; }
.cta .lead { margin: 20px auto 0; }
.cta .hero-actions { justify-content: center; }
.cta .rings { width: 1000px; height: 1000px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--divider); padding: 56px 0 44px; color: var(--text-2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .brand { color: var(--text); margin-bottom: 14px; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--divider); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--text-3); font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- legal pages ---------- */
.legal { padding: 70px 0 100px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -.03em; }
.legal .updated { color: var(--text-3); font-size: 14px; margin-top: 14px; }
.legal .summary { background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius); padding: 22px 24px; margin: 36px 0 10px; }
.legal .summary ul { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); }
.legal .summary li { margin: 4px 0; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 48px 0 14px; max-width: none; letter-spacing: -.01em; }
.legal h3 { font-size: 17px; margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--text); font-weight: 600; }
.legal code { font-family: var(--mono); font-size: 14px; color: var(--text); background: var(--raised); padding: 1px 6px; border-radius: 6px; }
.legal a { text-decoration-color: var(--stroke-strong); text-underline-offset: 3px; }
.legal a:hover { text-decoration-color: #fff; }
.back { display: inline-block; color: var(--text-2); text-decoration: none; font-size: 15px; margin-bottom: 30px; }
.back:hover { color: var(--text); }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound .code { font-family: var(--mono); color: var(--text-3); letter-spacing: .2em; }
.notfound h1 { font-size: clamp(34px, 5vw, 52px); margin: 18px 0 14px; }

/* ---------- reveal on scroll ---------- */
/* только сдвиг, без прозрачности: контент виден, даже если анимация не сработает */
.js .reveal { transform: translateY(16px); transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: none; }
}

/* ---------- extras & encryption list ---------- */
.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 70px; }
.extras .p-card h3 { margin-top: 0; font-size: 17px; }
@media (max-width: 960px) { .extras { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .extras { grid-template-columns: 1fr; } }
.enc-list { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius); padding: 8px 22px; position: relative; }
.enc { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--divider); }
.enc:last-child { border-bottom: 0; }
.enc b { display: block; font-weight: 600; }
.enc span.sub { display: block; color: var(--text-3); font-size: 13.5px; margin-top: 2px; }
.enc .pill { font-size: 11px; padding: 4px 10px; }
.brand + .lang { margin-left: auto; }
