@font-face { font-family: 'IBM Plex Sans'; font-weight: 300 600; font-display: swap; src: url(/fonts/ibm-plex-sans-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 300 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2116, U+2212; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-mono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2116, U+2212; }
@font-face { font-family: 'Unbounded'; font-weight: 300 700; font-display: swap; src: url(/fonts/unbounded-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 300 700; font-display: swap; src: url(/fonts/unbounded-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2116, U+2212; }
:root {
  --bg: #07080a; --sheet: rgba(13, 15, 18, .84); --sheet-2: rgba(18, 21, 25, .94);
  --line: rgba(236, 238, 235, .07); --line2: rgba(236, 238, 235, .14); --line3: rgba(236, 238, 235, .3);
  --ink: #eceeeb; --dim: #9aa0a6; --faint: #5d646b; --acc: #d97757; --acc-ink: #160b06;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 30px 80px -20px rgba(0, 0, 0, .85), 0 2px 8px rgba(0, 0, 0, .45);
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: hidden; }
::selection { background: rgba(217, 119, 87, .32); color: #fff; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--acc); outline-offset: 3px; }
.wrap { position: relative; width: min(1120px, 100%); margin: 0 auto; padding: 0 16px; }

/* ---------- задний слой ---------- */
.back { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(1000px 700px at 85% -5%, rgba(217, 119, 87, .16), transparent 60%),
    radial-gradient(120% 80% at 50% 115%, rgba(0, 0, 0, .75), transparent 60%),
    linear-gradient(rgba(236, 238, 235, .055) 1px, transparent 1px) 0 0 / 128px 128px,
    linear-gradient(90deg, rgba(236, 238, 235, .055) 1px, transparent 1px) 0 0 / 128px 128px,
    linear-gradient(rgba(236, 238, 235, .025) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(236, 238, 235, .025) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg); }
.back svg { position: absolute; left: -5%; top: -5%; width: 110%; height: 130%; color: rgba(236, 238, 235, .075); will-change: transform; }
.back .scan { position: absolute; left: 0; right: 0; height: 1px; top: 0; background: linear-gradient(90deg, transparent, rgba(217, 119, 87, .5), transparent); opacity: .5; animation: scan 9s linear infinite; }
@keyframes scan { from { transform: translateY(-10vh); } to { transform: translateY(110vh); } }
.front { position: relative; z-index: 1; }

/* ---------- лист: рамка с уголками ---------- */
.sheet { position: relative; background: var(--sheet); border: 1px solid var(--line2); box-shadow: var(--shadow); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.sheet > .k { position: absolute; width: 10px; height: 10px; border: 0 solid var(--acc); }
.k.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.k.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.k.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.k.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.label { position: absolute; top: -10px; left: 20px; padding: 0 8px; background: var(--bg); color: var(--faint); font: 11px/20px var(--mono); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- шапка ---------- */
header { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
header.solid { background: rgba(7, 8, 10, .7); border-bottom-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 30px; height: 30px; }
.word { font: 600 18px/1 var(--display); letter-spacing: .08em; }
.word sup { margin-left: 1px; font: 500 10px/1 var(--mono); letter-spacing: .1em; color: var(--acc); vertical-align: 10px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px; border: 1px solid var(--acc); color: var(--acc); font: 600 14px/1 var(--sans); letter-spacing: .05em; transition: background .18s, color .18s, transform .18s; }
.btn:hover { background: var(--acc); color: var(--acc-ink); }
.btn.solid { background: var(--acc); color: var(--acc-ink); }
.btn.solid:hover { background: transparent; color: var(--acc); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .18s; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- первый экран ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 72px 0 96px; }
h1 { font: 600 clamp(34px, 5.6vw, 66px)/1.06 var(--display); letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--acc); }
.lead { margin-top: 22px; max-width: 30em; color: var(--dim); font-size: 18px; }
.hero .btn { margin-top: 36px; }
.free { margin-top: 16px; font: 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.reveal { animation: rise .8s var(--ease) both; }
.reveal.d2 { animation-delay: .12s; } .reveal.d3 { animation-delay: .24s; } .reveal.d4 { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* макет переписки: лист на листе */
.demo { position: relative; }
.demo .under { position: absolute; inset: 22px -18px -22px 18px; border: 1px solid var(--line2); background: rgba(13, 15, 18, .35); }
.demo .sheet { padding: 22px; display: grid; gap: 14px; }
.d-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 11px var(--mono); letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }
.d-top b { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: var(--acc); }
.d-top b::before { content: ""; width: 6px; height: 6px; background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: pulse 1.4s ease-in-out infinite; }
.d-user { justify-self: end; max-width: 88%; padding: 10px 14px; background: #14181d; border: 1px solid var(--line2); font-size: 14px; }
.d-ai { position: relative; padding: 14px 16px 14px 18px; background: var(--sheet-2); border: 1px solid var(--line2); font-size: 14px; color: var(--dim); }
.d-ai::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: var(--acc); }
.d-ai p { color: var(--ink); }
.d-ai ul { margin: 8px 0 0; padding: 0 0 0 18px; }
.d-file { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 9px 13px; border: 1px solid rgba(217, 119, 87, .6); color: var(--acc); font-size: 13px; }
.d-file svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.d-file span { font: 11px var(--mono); color: var(--faint); }
.d-time { justify-self: end; font: 11px var(--mono); color: var(--faint); }
.d-time b { color: var(--acc); font-weight: 400; }
.demo .d-ai, .demo .d-file, .demo .d-time { animation: rise .6s var(--ease) both; }
.demo .d-ai { animation-delay: .7s; } .demo .d-file { animation-delay: 1s; } .demo .d-time { animation-delay: 1.2s; }
@keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ---------- скорость ---------- */
section.block { margin-bottom: 36px; }
.speed { padding: 36px 28px 22px; }
.row { display: grid; grid-template-columns: 220px 1fr 80px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px dashed var(--line2); }
.row:last-child { border-bottom: 0; }
.row h3 { font-size: 15px; font-weight: 500; line-height: 1.35; }
.bars { display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 12px; font: 12px/1 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.bar i { display: block; height: 10px; transform-origin: left; animation: grow 1.3s var(--ease) .3s both; }
@keyframes grow { from { transform: scaleX(0); } }
.bar.hand i { background: repeating-linear-gradient(90deg, rgba(236, 238, 235, .2) 0 6px, transparent 6px 8px); }
.bar.ai i { background: var(--acc); min-width: 4px; box-shadow: 0 0 14px rgba(217, 119, 87, .5); }
.bar.ai { color: var(--ink); }
.x { font: 600 24px/1 var(--display); color: var(--acc); text-align: right; letter-spacing: -.02em; }
.lg { display: inline-block; width: 14px; height: 6px; margin: 0 6px 1px 0; vertical-align: middle; }
.lg.h { background: repeating-linear-gradient(90deg, rgba(236, 238, 235, .3) 0 3px, transparent 3px 4px); }
.lg.a { background: var(--acc); margin-left: 12px; }

/* ---------- данные ---------- */
.trust { padding: 32px 28px; display: grid; grid-template-columns: 56px 1fr auto; gap: 22px; align-items: center; }
.trust > svg { width: 56px; height: 56px; }
.trust h2 { font: 600 20px/1.3 var(--display); letter-spacing: -.01em; }
.trust p { color: var(--dim); margin-top: 6px; }
.gateblock { grid-template-columns: 56px auto 1fr; }
.gateblock .gate { grid-column: auto; padding-top: 0; }
.gate { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding-top: 6px; }
.gate input { flex: 1 1 260px; height: 44px; padding: 0 14px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); border-radius: 0; color: var(--ink); font: 400 15px var(--sans); outline: none; transition: border-color .15s; }
.gate input:focus { border-color: var(--acc); }
.gate input::placeholder { color: var(--faint); }
.gate .btn { cursor: pointer; background: transparent; }
.gate .btn:hover { background: var(--acc); color: var(--acc-ink); }
.gerr { flex-basis: 100%; min-height: 0; color: #ef6b5b; font-size: 13px; }
.gerr:empty { display: none; }

footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 40px 16px 48px; color: var(--faint); font: 12px/1 var(--mono); letter-spacing: .1em; }


/* правила при открытии: «Принять» — через 3 секунды */
.terms { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(7, 8, 10, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.terms[hidden] { display: none; }
.terms .sheet { width: min(420px, 100%); padding: 28px 24px 24px; display: grid; gap: 10px; animation: rise .4s var(--ease) both; }
.terms .brand { margin-bottom: 8px; }
.terms .btn { justify-content: center; width: 100%; background: transparent; cursor: pointer; }
.terms .btn:hover { background: var(--acc); color: var(--acc-ink); }
.terms .phrase { margin: 6px 0 2px; color: var(--dim); font-size: 14px; }
.terms #accept { background: var(--acc); color: var(--acc-ink); }
.terms #accept:disabled { background: transparent; border-color: var(--line2); color: var(--faint); cursor: default; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 40px 0 72px; }
  .demo .under { inset: 14px -8px -14px 8px; }
  .row { grid-template-columns: 1fr 64px; gap: 10px 14px; }
  .row h3 { grid-column: 1 / -1; }
  .trust { grid-template-columns: 44px 1fr; }
  .trust > svg { width: 44px; height: 44px; }
  .trust .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 520px) {
  header .wrap { height: 64px; }
  .speed { padding: 30px 16px 14px; }
  .trust { padding: 28px 16px; }
  .bar { grid-template-columns: 58px 1fr; }
  .x { font-size: 19px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
