:root {
  --blue: #1668ff;
  --blue-dark: #0b4fd8;
  --bg: #f4f7fc;
  --card: #ffffff;
  --text: #0f1b2d;
  --muted: #5f6f86;
  --line: #e4e9f2;
  --radius: 22px;
  --shadow: 0 20px 50px rgba(15, 40, 90, 0.12);
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
img, svg { display: block; }

/* Мова: показуємо лише активну */
html[lang="uk"] [data-lang="en"],
html[lang="en"] [data-lang="uk"] { display: none !important; }

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

/* ───────── Шапка ───────── */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 247, 252, 0.8);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -0.3px; }
.brand b { color: var(--blue); font-style: italic; font-weight: 900; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav__links a:hover { color: var(--text); }
.lang {
  display: flex; background: #e9eef7; border-radius: 999px; padding: 3px;
}
.lang button {
  border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; color: var(--muted); cursor: pointer;
}
.lang button.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

/* ───────── Кнопки ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 15.5px;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(22, 104, 255, .35); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn small { display: block; font-size: 11px; font-weight: 600; opacity: .75; line-height: 1.1; }
.btn span.two { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }

/* ───────── Hero ───────── */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 500px at 85% -10%, #d9e7ff 0%, transparent 60%),
    radial-gradient(600px 400px at -10% 30%, #e9f0ff 0%, transparent 60%);
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; font-weight: 700; color: var(--blue);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2ead4b; box-shadow: 0 0 0 4px #d8f3df; }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -1.6px; margin: 18px 0 18px; font-weight: 850; }
h1 em { font-style: normal; color: var(--blue); }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--blue); }

/* ───────── Телефон ───────── */
.phone-wrap { position: relative; display: grid; place-items: center; }
.phone-wrap::before {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(22,104,255,.28), transparent 65%); filter: blur(10px);
}
.phone {
  position: relative; width: 290px; height: 600px; border-radius: 46px;
  background: #0b0f17; padding: 12px; box-shadow: 0 40px 80px rgba(10, 30, 80, .35), inset 0 0 0 2px #2a2f3a;
  transform: rotate(-4deg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(-4deg) translateY(-12px); } }
.screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #0b0f17; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3; }
.viewfinder {
  position: absolute; inset: 54px 10px 120px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, #8a6a4c, #6d5138 60%, #5a422d);
}
.viewfinder::after { /* текстура дерева */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(100deg, rgba(255,255,255,.04) 0 6px, rgba(0,0,0,.05) 6px 14px);
}
.paper-wrap { position: absolute; inset: 0; z-index: 1; filter: drop-shadow(0 12px 14px rgba(0,0,0,.4)); }
.paper {
  position: absolute; inset: 0; background: #fbfbf8;
  clip-path: polygon(19% 16%, 79% 12%, 84% 84%, 22% 88%);
  padding: 22% 24% 0 25%;
}
.paper h4 { font-size: 12px; text-align: center; margin-bottom: 2px; }
.paper p { font-size: 7px; text-align: center; color: #555; margin-bottom: 10px; }
.paper i { display: block; height: 4px; border-radius: 2px; background: #c9ced6; margin: 6px 0; }
.paper i.s { width: 40%; background: #8a92a0; margin-top: 12px; }
.paper i.m { width: 80%; }
.quad { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.quad polygon { fill: rgba(47,123,255,.14); stroke: #2f7bff; stroke-width: 3; stroke-linejoin: round; animation: lock 3.2s ease-in-out infinite; }
.dot { position: absolute; z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3px solid #2f7bff; animation: lock 3.2s ease-in-out infinite; }
@keyframes lock { 0%, 30% { opacity: .35; } 55%, 100% { opacity: 1; } }
.hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3;
  background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 20px; white-space: nowrap;
}
.controls { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; }
.modes { position: absolute; left: 0; right: 0; bottom: 98px; display: flex; justify-content: center; gap: 6px; }
.modes span { font-size: 10.5px; font-weight: 700; color: #c7ccd6; padding: 4px 10px; border-radius: 12px; }
.modes span.on { background: var(--blue); color: #fff; }
.thumb { width: 34px; height: 44px; border-radius: 5px; background: #f2f2f0; }
.shutter { width: 62px; height: 62px; border-radius: 50%; border: 4px solid var(--blue); padding: 4px; }
.shutter::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.pill { font-size: 10px; color: #fff; background: #232a36; padding: 6px 10px; border-radius: 20px; font-weight: 600; }

/* ───────── Секції ───────── */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -1px; line-height: 1.1; }
.section-head p { color: var(--muted); font-size: 17.5px; margin-top: 12px; }
.kicker { display: block; color: var(--blue); font-weight: 800; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: #e6eeff; color: var(--blue); margin-bottom: 16px;
}
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--card); border-radius: var(--radius); padding: 30px 26px 26px; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

.formats { display: flex; justify-content: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.fmt { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 18px 12px 12px; }
.fmt b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; font-size: 12px; }
.fmt strong { display: block; font-size: 15px; }
.fmt span { color: var(--muted); font-size: 13px; }

/* Приватність */
.privacy-band {
  background: linear-gradient(135deg, #1668ff, #0b4fd8);
  color: #fff; border-radius: 32px; padding: 56px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.privacy-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.privacy-band h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -1px; line-height: 1.1; margin-bottom: 14px; }
.privacy-band p { opacity: .88; font-size: 17px; }
.privacy-band .btn { margin-top: 24px; background: #fff; color: var(--blue); }
.checks { list-style: none; display: grid; gap: 12px; position: relative; z-index: 1; }
.checks li {
  display: flex; gap: 12px; align-items: center; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 13px 16px; font-weight: 600;
}
.checks li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--blue); font-weight: 900; font-size: 13px; }

/* Мови */
.langs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.langs span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-weight: 600; }

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

/* Футер */
footer { padding: 40px 0 50px; border-top: 1px solid var(--line); background: #fff; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.td { line-height: 1; color: var(--blue-dark); font-style: italic; }
.td b { font-weight: 900; font-size: 18px; }
.td span { font-weight: 300; font-size: 18px; }
.td small { display: block; font-size: 8px; font-weight: 800; letter-spacing: .6px; margin-top: 3px; }
.footer__links { display: flex; gap: 22px; font-weight: 600; font-size: 14.5px; }
.footer__links a { color: var(--muted); }
.copy { color: var(--muted); font-size: 13.5px; width: 100%; }

/* Появa при прокрутці */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .quad polygon { animation: none; }
}

/* ───────── Сторінка конфіденційності ───────── */
.doc { padding: 56px 0 88px; }
.doc__card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(26px, 5vw, 56px); max-width: 860px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 4.4vw, 46px); margin: 8px 0 6px; }
.doc .meta { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.doc .summary { background: #eef4ff; border-radius: 18px; padding: 20px 22px; margin-bottom: 34px; color: #183a7a; }
.doc .summary strong { display: block; margin-bottom: 6px; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; letter-spacing: -.3px; }
.doc p, .doc li { color: #33425a; font-size: 16px; }
.doc ul { padding-left: 22px; display: grid; gap: 6px; margin: 8px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* ───────── Адаптив ───────── */
@media (max-width: 900px) {
  .hero__grid, .privacy-band { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; text-align: center; }
  .lead { margin-inline: auto; }
  .cta, .trust { justify-content: center; }
  .phone-wrap { margin-top: 20px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .privacy-band { padding: 36px 26px; }
  .nav__links { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 600px) {
  .features, .steps { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) { .doc table { display: block; overflow-x: auto; } }
