/* callpair.net: one stylesheet for every page. Colours follow the app's "Бюро" style and the
   icon's violet; fonts are served from here (no third-party requests from the site). */
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #eceef2;
  --surface: #ffffff;
  --surface-2: #f6f7fa;
  --text: #0e1630;
  --muted: #555e78;
  --line: #d9dde6;
  --brand: #5b4bdb;
  --brand-ink: #ffffff;
  --brand-soft: #e7e4fb;
  --coral: #e8553a;
  --spark: #ffd54f;
  --night: #101b45;
  --night-text: #eef1fb;
  --night-muted: #a9b2d6;
  --ok: #1f8a5b;
  --shadow: 0 1px 2px rgba(14, 22, 48, .06), 0 12px 32px -12px rgba(14, 22, 48, .18);
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1024;
    --surface: #141a33;
    --surface-2: #10162d;
    --text: #eef1fb;
    --muted: #a3abc8;
    --line: #262e4f;
    --brand: #9d92ff;
    --brand-ink: #0b1024;
    --brand-soft: #231f4d;
    --coral: #ff8a70;
    --night: #1b2558;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: "Manrope", "Inter", system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(36px, 6.4vw, 64px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: "Manrope", sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang a { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--text); color: var(--bg); }
.top .btn { padding: 9px 16px; font-size: 15px; }
@media (max-width: 860px) { .nav { display: none; } .lang { margin-left: auto; } }
@media (max-width: 420px) { .top .btn { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--spark); box-shadow: 0 0 0 4px color-mix(in srgb, var(--spark) 30%, transparent); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin-top: 20px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

/* The phone in the hero: a made-up day, drawn in HTML (no real calls). */
.phone { justify-self: center; width: min(340px, 100%); aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 12px; background: #0a0d18; box-shadow: 0 40px 80px -30px rgba(14, 22, 48, .55), inset 0 0 0 2px #2b3150; position: relative; }
.screen { height: 100%; border-radius: 36px; overflow: hidden; background: #eceef2; color: #0e1630; padding: 34px 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; position: relative; }
.screen::before { content: ""; position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 84px; height: 22px; border-radius: 999px; background: #0a0d18; }
.screen .hello { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; padding: 4px 4px 0; }
.screen .date { font-size: 12px; color: #555e78; padding: 0 4px; margin-top: -6px; }
.brief { background: #101b45; color: #eef1fb; border-radius: 20px; padding: 14px; }
.brief b { display: block; font-family: "Manrope", sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #a9b2d6; margin-bottom: 6px; }
.brief p { font-size: 14px; line-height: 1.45; }
.brief .stats { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.brief .stats span { background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 3px 9px; font-size: 11.5px; }
.callcard { background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 6px 18px -10px rgba(14, 22, 48, .3); display: flex; flex-direction: column; gap: 8px; }
.callcard .who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, #5b4bdb, #3d5afe); flex: none; }
.callcard .who strong { display: block; font-size: 14px; }
.callcard .who small { color: #555e78; font-size: 10.5px; letter-spacing: .06em; }
.wave { display: flex; align-items: center; gap: 2px; height: 26px; }
.wave i { flex: 1; border-radius: 2px; background: #c9cde0; }
.wave i.on { background: #5b4bdb; }
.callcard .sum { font-size: 13px; line-height: 1.45; }
.items { display: flex; flex-direction: column; gap: 6px; }
.items div { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; line-height: 1.35; }
.items em { font-style: normal; font-size: 10.5px; font-weight: 700; color: #5b4bdb; background: #e7e4fb; border-radius: 6px; padding: 1px 6px; flex: none; }
.items div.hot em { color: #fff; background: #e8553a; }
.pill { margin-top: auto; align-self: center; display: flex; align-items: center; gap: 8px; background: #101b45; color: #eef1fb; border-radius: 999px; padding: 8px 14px; font-size: 12px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #ff6b4a; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.four { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); margin-top: 8px; font-size: 16px; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li { list-style: none; counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: var(--bg); font-family: "Manrope", sans-serif; font-weight: 800; margin-bottom: 16px; }
.steps { padding: 0; margin: 0; }
.steps p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* The dark privacy band */
.night { background: var(--night); color: var(--night-text); border-radius: 32px; padding: 56px 40px; }
.night .section-head p { color: var(--night-muted); }
.night .grid .item { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 18px; }
.night .item p { color: var(--night-muted); margin-top: 8px; font-size: 16px; }
.night a { color: #c9c2ff; }
@media (max-width: 600px) { .night { padding: 40px 22px; border-radius: 26px; } }

/* Download */
.download { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: var(--surface); border-radius: 32px; padding: 44px; box-shadow: var(--shadow); }
.download .qr { background: #fff; padding: 16px; border-radius: 20px; width: 200px; box-shadow: inset 0 0 0 1px var(--line); }
.download .qr small { display: block; text-align: center; color: #555e78; font-size: 13px; margin-top: 10px; }
.download ol { margin: 22px 0 0; padding-left: 22px; color: var(--muted); }
.download ol li + li { margin-top: 6px; }
.meta { margin-top: 12px; font-size: 14px; color: var(--muted); }
.notice { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); font-size: 15px; }
[hidden] { display: none !important; }
@media (max-width: 760px) { .download { grid-template-columns: 1fr; padding: 28px 22px; } .download .qr { display: none; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: 18px; padding: 0 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }
.faq details p + p { margin-top: -8px; }

/* Footer */
footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
footer a { color: var(--muted); }

/* Documents (privacy, terms) */
.doc { max-width: 760px; padding: 40px 0 24px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); }
.doc .updated { color: var(--muted); margin-top: 12px; }
.doc h2 { font-size: 24px; margin-top: 44px; }
.doc h3 { font-size: 18px; margin-top: 24px; }
.doc p, .doc ul, .doc table { margin-top: 12px; }
.doc ul { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .summary { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-top: 28px; }
.doc .summary ul { margin: 8px 0 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.doc code { font-size: 14px; word-break: break-all; }
