@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --accent: #0a84ff;
  --accent-pressed: #0071e3;
  --accent-soft: #e5f2ff;
  --sky: #54c7ec;
  --violet: #8e6cef;
  --canvas: #f3f7fa;
  --surface: #f8fafc;
  --text: #17212b;
  --muted: #6b7a88;
  --line: #e5ebf0;
  --success: #43c989;
  --stamp: #1d4ed8;
  --night: #0b1d2c;
  --grad: linear-gradient(135deg, var(--accent), var(--sky));
  --shadow: 0 30px 80px #0d233826, 0 6px 18px #0d233814;
  --font: Manrope, Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 500 17px/1.6 var(--font); color: var(--text); background: var(--canvas); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent-pressed); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: #ffffffb3; border: 1px solid #fff; font-size: 14px; font-weight: 700; color: var(--accent-pressed); backdrop-filter: blur(12px); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(20px); background: #f3f7facc; border-bottom: 1px solid #e5ebf099; }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo b { color: var(--accent); font-weight: 800; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 700; }
.top nav a { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 16px; border: 1px solid var(--line); background: #fff; color: var(--text); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 12px 28px #0a84ff4d; }
.btn.small { height: 40px; padding: 0 18px; font-size: 15px; }
.btn.dark { background: var(--night); color: #fff; border: 0; }

/* Первый экран */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; }
.hero::before { width: 640px; height: 640px; background: #54c7ec55; top: -260px; left: -180px; }
.hero::after { width: 720px; height: 720px; background: #0a84ff33; top: 80px; right: -260px; }
.hero-text { text-align: center; max-width: 900px; margin: 0 auto; display: grid; gap: 22px; justify-items: center; }
.hero-text p { font-size: 20px; color: #3d4b58; max-width: 720px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.trust span::before { content: '✓ '; color: var(--success); }
.frame { margin: 56px auto 0; width: min(1120px, 100%); border-radius: 22px; background: #fff; box-shadow: var(--shadow); border: 1px solid #fff; overflow: hidden; position: relative; }
.frame .bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: #e2e8f0; }
.frame .bar b { margin-left: 14px; font-size: 12px; color: var(--muted); font-weight: 700; background: #fff; padding: 3px 14px; border-radius: 999px; }
.float-stamp { position: absolute; width: 270px; right: -30px; bottom: 50px; transform: rotate(-4deg); filter: drop-shadow(0 20px 40px #1d4ed840); border-radius: 14px; }

/* Секции */
section.block { padding: 110px 0; }
.head { text-align: center; max-width: 760px; margin: 0 auto 56px; display: grid; gap: 16px; justify-items: center; }
.head p { font-size: 19px; color: #3d4b58; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid #fff; border-radius: 28px; padding: 32px; box-shadow: 0 2px 10px #17212b0a; display: grid; gap: 14px; align-content: start; }
.card .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-pressed); font-size: 24px; }
.card p { color: #3d4b58; font-size: 16px; }
.card.big { padding: 44px; gap: 18px; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 16px; }
.card li::before { content: '✓'; color: var(--success); font-weight: 800; margin-right: 10px; }
.tag { display: inline-flex; align-self: start; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--accent-soft); color: var(--accent-pressed); width: fit-content; }
.tag.violet { background: #efe9fd; color: #6b4fd1; }

.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip > :first-child { order: 2; }
.feature .text { display: grid; gap: 18px; }
.feature .text p { font-size: 18px; color: #3d4b58; }
.frame > img:not(.float-stamp), .shot > img { width: 100%; height: auto; }
.shot { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 1px solid #fff; }
.points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 12px; font-size: 16px; }
.points li b { display: block; }
.points li::before { content: ''; flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--grad); margin-top: 2px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L19 7' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

.route { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; justify-content: center; }
.step { flex: 1 1 200px; max-width: 260px; background: #fff; border-radius: 22px; padding: 22px; display: grid; gap: 8px; position: relative; box-shadow: 0 2px 10px #17212b0a; }
.step .n { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step small { color: var(--muted); font-weight: 700; }
.step + .step::before { content: '→'; position: absolute; left: -14px; top: 50%; transform: translate(-50%, -50%); color: var(--accent); font-weight: 800; }

.dark { background: var(--night); color: #e8f1f8; border-radius: 40px; margin: 0 20px; }
.dark h2 { color: #fff; }
.dark .head p, .dark p { color: #b8c7d4; }
.dark .card { background: #13293b; border-color: #1e3a52; box-shadow: none; }
.dark .card p { color: #b8c7d4; }
.dark .card .icon { background: #0a84ff26; color: #7cc4ff; }

.ritual-demo { aspect-ratio: 1.25; border-radius: 28px; background: radial-gradient(circle at 30% 20%, #d2e9ff, #f8fafc 60%); border: 1px solid #fff; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ritual-demo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ritual-demo path { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 6s ease-in-out infinite; }
@keyframes draw { 60%, 100% { stroke-dashoffset: 0; } }
.ritual-demo .label { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-weight: 800; color: var(--accent-pressed); }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 20px; padding: 22px 26px; border: 1px solid #fff; }
.faq summary { font-weight: 800; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 12px; color: #3d4b58; font-size: 16px; }

.final { text-align: center; padding: 90px 30px; border-radius: 40px; background: var(--grad); color: #fff; display: grid; gap: 20px; justify-items: center; box-shadow: 0 30px 80px #0a84ff40; }
.final h2 { color: #fff; }
.final p { color: #eaf6ff; font-size: 19px; max-width: 640px; }
.final .btn { background: #fff; color: var(--accent-pressed); border: 0; }
.final .btn.ghost { background: #ffffff26; color: #fff; }

.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px; border-radius: 16px; background: var(--night); color: #fff; font-weight: 800; }
.store small { display: block; font-size: 11px; font-weight: 600; opacity: .7; }
.store:hover { text-decoration: none; }
.phone { width: min(320px, 100%); aspect-ratio: 9/19.5; border-radius: 48px; background: var(--night); padding: 12px; margin: 0 auto; box-shadow: var(--shadow); }
.phone > div { width: 100%; height: 100%; border-radius: 38px; background: var(--canvas); overflow: hidden; padding: 46px 16px 16px; display: grid; gap: 10px; align-content: start; background-image: radial-gradient(circle at 10% 0%, #54c7ec44, transparent 50%), radial-gradient(circle at 100% 90%, #0a84ff33, transparent 50%); }
.phone .t { font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.phone .row { background: #ffffffd9; border-radius: 18px; padding: 12px; display: grid; gap: 4px; font-size: 13px; }
.phone .row b { font-size: 14px; }
.phone .pill { justify-self: start; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-pressed); }
.phone .act { margin-top: 6px; height: 44px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; }

footer { padding: 64px 0 40px; margin-top: 90px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { margin: 0 0 12px; color: var(--text); font-size: 14px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer a { color: var(--muted); }
footer .legal { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* Юридические страницы */
.doc { max-width: 820px; margin: 0 auto; padding: 64px 0 20px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; margin: 36px 0 12px; }
.doc p, .doc li { font-size: 17px; color: #2c3a47; margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-bottom: 30px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.doc-nav a { padding: 6px 14px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 700; color: var(--text); }
.doc-nav a.on { background: var(--grad); color: #fff; }

/* Cookie */
.cookie { position: fixed; z-index: 60; left: 20px; bottom: 20px; max-width: 460px; background: #fff; border-radius: 22px; padding: 20px 22px; box-shadow: var(--shadow); display: grid; gap: 14px; font-size: 14px; border: 1px solid var(--line); }
.cookie[hidden] { display: none; }
.cookie .acts { display: flex; gap: 8px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .top nav { display: none; }
  .g3, .g4, .g2 { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip > :first-child { order: 0; }
  .float-stamp { width: 170px; right: -10px; bottom: 10px; }
  section.block { padding: 72px 0; }
  .dark { margin: 0; border-radius: 0; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .step + .step::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ritual-demo path { stroke-dashoffset: 0; }
}
.dark .feature .text p { color: #c3d2de; }
.dark code, .dark .feature .text p { font-weight: 500; }

/* Главная: один экран продукта, короткий сценарий и условия подписи. */
.hero { padding-top: 56px; }
.hero-text { gap: 20px; }
.hero-text h1 { font-size: clamp(36px, 5vw, 60px); }
.hero-text p { max-width: 660px; font-size: 19px; }
.hero-note { font-size: 14px; }
.hero .frame { margin-top: 40px; }
.workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 32px 0 0; }
.workflow li { min-width: 0; border-top: 1px solid var(--line); padding-top: 22px; }
.workflow .n { display: grid; place-items: center; width: 32px; height: 32px; background: var(--accent-soft); color: var(--accent-pressed); border-radius: 50%; font-weight: 800; margin-bottom: 16px; }
.workflow h3 { font-size: 19px; margin-bottom: 10px; }
.workflow p { color: var(--muted); font-size: 16px; }
section.block { padding: 64px 0; }
.signature-section { border-top: 1px solid var(--line); }
.signature-summary { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; }
.signature-summary p { margin: 18px 0 14px; max-width: 580px; }
.signature-note { border-left: 1px solid var(--line); padding-left: 32px; }
.signature-note h3 { font-size: 20px; }
.signature-note p { font-size: 16px; color: var(--muted); }
.signature-summary a { font-size: 15px; font-weight: 700; }
.closing { padding: 32px 0 56px; }
.closing .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.closing h2 { font-size: 30px; }
footer { margin-top: 0; padding-top: 40px; }
@media (max-width: 700px) {
  .workflow, .signature-summary { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .signature-note { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .closing .wrap { align-items: flex-start; flex-direction: column; }
  .closing .btn { width: 100%; }
  .hero { padding-top: 36px; }
  .hero-text p { font-size: 17px; }
  .hero .frame { border-radius: 12px; margin-top: 28px; }
  section.block { padding: 40px 0; }
  .workflow { margin-top: 24px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .top .wrap { gap: 12px; }
  footer .cols { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

.top .wrap > .btn { margin-left: auto; }
.cookie { max-width: 400px; padding: 16px 18px; gap: 12px; }
