/* ───────────────────────────────────────────────────────────────────
   Relabs Connect — общий стиль сайта redesktop.ru
   Один источник стилей для всех страниц.
─────────────────────────────────────────────────────────────────── */

/* ── Палитра и токены ───────────────────────────────────────────── */
:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --ink: #0e1116;
  --ink-soft: #46506080;
  --muted: #5b6472;
  --line: #e7e9ef;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-soft: #eef0ff;
  --ink-900: #0b0d12;
  --radius: 16px;
  --radius-sm: 11px;
  --container: 1120px;
  --shadow-sm: 0 1px 2px rgba(16,19,24,.06), 0 4px 16px rgba(16,19,24,.05);
  --shadow-md: 0 8px 28px rgba(16,19,24,.10);
  --shadow-glow: 0 24px 80px -24px rgba(79,70,229,.45);
  font-synthesis: none;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* ── Кнопки ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  padding: 13px 20px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 20px -6px rgba(79,70,229,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(79,70,229,.7); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: #cfd3e0; }
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 13px; }

/* ── Навигация ──────────────────────────────────────────────────── */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(251,251,253,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
header.nav.scrolled { border-bottom-color: var(--line); background: rgba(251,251,253,.86); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand .logo {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; box-shadow: 0 4px 12px -2px rgba(79,70,229,.55);
}
.brand .logo svg { width: 18px; height: 18px; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a.navlink { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .15s ease; }
.nav-links a.navlink:hover, .nav-links a.navlink.active { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3.5px auto; border-radius: 2px; }

/* ── Hero (главная) ─────────────────────────────────────────────── */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--accent); background: var(--accent-soft); padding: 7px 13px; border-radius: 999px;
  letter-spacing: .01em;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(79,70,229,.18); }
h1 {
  font-size: clamp(34px, 5.2vw, 58px); line-height: 1.05; letter-spacing: -.03em;
  font-weight: 800; margin: 20px 0 0;
}
h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin-top: 20px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-note b { color: var(--muted); font-weight: 600; }

/* макет окна приложения */
.appwin {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-glow); overflow: hidden; position: relative;
}
.appwin::before {
  content: ""; position: absolute; inset: -40% -20% auto -20%; height: 220px;
  background: radial-gradient(60% 100% at 50% 0, rgba(124,58,237,.18), transparent 70%);
  pointer-events: none;
}
.appwin-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.appwin-bar .dots { display: flex; gap: 6px; }
.appwin-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.appwin-bar .dots i:nth-child(1){ background:#ff5f57; } .appwin-bar .dots i:nth-child(2){ background:#febc2e; } .appwin-bar .dots i:nth-child(3){ background:#28c840; }
.appwin-bar .title { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.appwin-body { padding: 22px; display: grid; gap: 16px; }
.idcard {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px;
  background: linear-gradient(180deg, #fff, #fbfbff);
}
.idcard .label { font-size: 12px; color: var(--ink-soft); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.idcard .value { font-size: 27px; font-weight: 700; letter-spacing: .06em; margin-top: 5px; font-variant-numeric: tabular-nums; }
.idcard .value.pw { letter-spacing: .22em; color: var(--accent); }
.idrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.connect-field { border: 1px dashed #cdd1df; border-radius: var(--radius-sm); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.connect-field span { color: var(--ink-soft); font-size: 14px; }
.connect-field .fakebtn { font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); padding: 9px 14px; border-radius: 9px; }

/* ── Полоса платформ ────────────────────────────────────────────── */
.platbar { padding: 8px 0 20px; }
.platbar .inner { display: flex; align-items: center; justify-content: center; gap: 34px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 600; }
.platbar .os { display: inline-flex; align-items: center; gap: 9px; opacity: .78; }
.platbar .os svg { width: 19px; height: 19px; }
.platbar .os.soon::after { content: "скоро"; font-size: 10px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; }

/* ── Заголовки секций ───────────────────────────────────────────── */
.sec { padding: 84px 0; }
.sec-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.sec-head .kicker { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.sec-head h2 { font-size: clamp(27px, 3.4vw, 40px); letter-spacing: -.025em; font-weight: 800; margin-top: 12px; line-height: 1.1; }
.sec-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }

/* ── Шаги (3 карточки) ──────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9dcea; }
.step .num {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: var(--accent); background: var(--accent-soft); margin-bottom: 18px;
}
.step h3 { font-size: 18.5px; letter-spacing: -.01em; }
.step p { color: var(--muted); margin-top: 9px; font-size: 15px; }

/* ── Возможности ────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9dcea; }
.feature .ic {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(79,70,229,.1), rgba(124,58,237,.12)); color: var(--accent);
}
.feature .ic svg { width: 23px; height: 23px; }
.feature h3 { font-size: 17.5px; letter-spacing: -.01em; }
.feature p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }

/* ── Тёмная полоса ──────────────────────────────────────────────── */
.band { padding: 0 0 84px; }
.band-inner {
  position: relative; overflow: hidden; border-radius: 26px; padding: 56px 52px;
  background: linear-gradient(135deg, var(--ink-900), #1b1740 70%, #2a1f55);
  color: #fff; box-shadow: var(--shadow-md);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.band-inner::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,.55), transparent 62%); pointer-events: none;
}
.band h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.12; position: relative; }
.band p { color: #c8cadb; margin-top: 16px; font-size: 16px; position: relative; max-width: 34em; }
.band-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; position: relative; }
.band-stats .st .n { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.band-stats .st .t { color: #aab0c7; font-size: 13.5px; margin-top: 4px; }

/* ── Скачать (карточки) ─────────────────────────────────────────── */
.dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dlcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; text-align: center; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative;
}
.dlcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d9dcea; }
.dlcard.featured { border-color: rgba(79,70,229,.4); box-shadow: 0 14px 40px -16px rgba(79,70,229,.4); }
.dlcard .os-ic { width: 54px; height: 54px; margin: 0 auto 16px; display: grid; place-items: center; color: var(--ink); }
.dlcard .os-ic svg { width: 40px; height: 40px; }
.dlcard h3 { font-size: 19px; letter-spacing: -.01em; }
.dlcard .meta { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
.dlcard .btn { margin-top: 20px; width: 100%; }
.dlcard .tag { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.dlcard .tag.ready { color: #0a7d32; background: #e5f7ec; }
.dlcard .tag.soon { color: var(--accent); background: var(--accent-soft); }
.dl-foot { text-align: center; color: var(--ink-soft); font-size: 13.5px; margin-top: 26px; }

/* ── FAQ ────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.qa { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; transition: border-color .2s ease; }
.qa[open] { border-color: #d3d7e6; box-shadow: var(--shadow-sm); }
.qa summary {
  list-style: none; cursor: pointer; padding: 19px 22px; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary .chev { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .22s ease; }
.qa[open] summary .chev { transform: rotate(180deg); }
.qa .ans { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ── Нижний CTA ─────────────────────────────────────────────────── */
.cta-final { text-align: center; padding: 20px 0 96px; }
.cta-final h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.025em; font-weight: 800; }
.cta-final p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.cta-final .hero-actions { justify-content: center; margin-top: 28px; }

/* ── Футер ──────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px;
}
footer .foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer .brand { font-size: 15px; color: var(--ink); }
footer .brand .logo { width: 28px; height: 28px; border-radius: 8px; }
footer .brand .logo svg { width: 15px; height: 15px; }
footer a:hover { color: var(--ink); }
footer .foot-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }

/* ── Появление при скролле ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ════════════════════════════════════════════════════════════════
   Внутренние страницы (Скачать, Как подключиться, Безопасность, FAQ, Политика)
═════════════════════════════════════════════════════════════════ */

/* Компактный заголовок страницы */
.page-hero { padding: 58px 0 10px; text-align: center; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 0 auto; max-width: 16em; }
.page-hero p.lead { color: var(--muted); font-size: 18px; margin: 18px auto 0; max-width: 40em; }

/* Контейнер статьи/текста */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 24px; letter-spacing: -.02em; margin: 42px 0 14px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p { color: var(--muted); font-size: 16px; margin: 10px 0; }
.prose ul { color: var(--muted); font-size: 16px; margin: 10px 0 10px 2px; padding-left: 20px; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a.inline { color: var(--accent); font-weight: 600; }
.prose a.inline:hover { text-decoration: underline; }

/* Выноска */
.callout {
  display: flex; gap: 14px; align-items: flex-start; background: var(--accent-soft);
  border: 1px solid #dfe0ff; border-radius: var(--radius-sm); padding: 18px 20px; margin: 22px 0;
}
.callout svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.callout .c-body { font-size: 15px; color: #3a3f68; }
.callout .c-body b { color: var(--ink); }

/* Вертикальные шаги инструкции */
.steps-v { max-width: 820px; margin: 0 auto; display: grid; gap: 18px; }
.step-v {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.step-v .n {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.step-v h3 { font-size: 18px; letter-spacing: -.01em; }
.step-v p { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* Две колонки ролей (кому помогают / кто помогает) */
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.role {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.role .role-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--accent-soft); color: var(--accent); }
.role .role-ic svg { width: 24px; height: 24px; }
.role h3 { font-size: 19px; }
.role ol { margin: 14px 0 0 2px; padding-left: 20px; color: var(--muted); font-size: 15px; }
.role ol li { margin: 8px 0; }

/* Таблица требований */
.req { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--surface); }
.req table { width: 100%; border-collapse: collapse; }
.req th, .req td { text-align: left; padding: 15px 20px; font-size: 15px; border-bottom: 1px solid var(--line); }
.req th { background: #f6f7fb; font-weight: 600; color: var(--ink); width: 34%; }
.req td { color: var(--muted); }
.req tr:last-child th, .req tr:last-child td { border-bottom: none; }

/* Сетка безопасности */
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.sec-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.sec-card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 15px; background: linear-gradient(135deg, rgba(79,70,229,.1), rgba(124,58,237,.12)); color: var(--accent); }
.sec-card .ic svg { width: 22px; height: 22px; }
.sec-card h3 { font-size: 17.5px; }
.sec-card p { color: var(--muted); margin-top: 7px; font-size: 14.5px; }

/* ── Адаптив ────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 24px; }
  .appwin { max-width: 440px; }
  .steps, .features, .dl, .roles, .sec-grid { grid-template-columns: 1fr; }
  .band-inner { grid-template-columns: 1fr; padding: 40px 30px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn { display: none; }
  header.nav.open .nav-links {
    display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px; box-shadow: var(--shadow-md);
  }
  header.nav.open .nav-links a.navlink { padding: 10px 0; width: 100%; font-size: 16px; }
  header.nav.open .nav-links .btn { display: inline-flex; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
