/* in-paste.ru — цвета и шрифты как в приложении Paste (тёмная тема). */

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap;
  src: url("/fonts/manrope-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap;
  src: url("/fonts/manrope-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap;
  src: url("/fonts/manrope-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap;
  src: url("/fonts/manrope-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap;
  src: url("/fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

:root {
  --ground: #0b0b0e;
  --panel: #121216;
  --raised: #17171b;
  --line: #222228;
  --line-strong: #2e2e35;
  --ink: #ecebe7;
  --ink-2: #b9b8b2;
  --muted: #a3a29c;
  --faint: #8c8b85;
  --accent: #2453ff;
  --accent-hover: #3b66ff;
  --accent-fg: #8fa6ff;
  --accent-soft: #1e2547;
  --note: #5fcb98;
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-fg); text-decoration: none; }
a:hover { color: #b4c3ff; }
:focus-visible { outline: 2px solid var(--accent-fg); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; padding: 8px 12px; background: var(--raised); border-radius: 8px; }

/* Показываем сочетания для своей системы (класс на <html> ставит script.js) */
.win-only { display: none; }
html.is-win .win-only { display: inline; }
html.is-win .mac-only { display: none; }

/* ---------- Шапка ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 3; }
.top__in { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 9px; background: var(--accent); color: #fff; font: 700 18px/1 "Space Grotesk", sans-serif; }
.logo__word { font: 700 22px/1 "Space Grotesk", sans-serif; letter-spacing: -0.02em; color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 28px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav { display: none; } .top__in > .btn { margin-left: auto; } }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; font-weight: 600; transition: background-color .15s, border-color .15s, transform .15s; }
.btn--sm { height: 44px; padding: 0 18px; border-radius: 10px; font-size: 15px; }
.btn--lg { height: 56px; padding: 0 26px; font-size: 17px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn--secondary { border: 1px solid var(--line-strong); background: #141418; color: var(--ink); }
.btn--secondary:hover { border-color: #4a4a52; background: #1d1d22; color: var(--ink); }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: 168px 0 110px; }
.hero__grid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__fade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 50% at 50% 34%, rgba(11,11,14,0) 0%, rgba(11,11,14,.55) 60%, var(--ground) 100%); }
.hero__in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 1px solid #26262c; border-radius: 999px; background: rgba(23,23,27,.8); font-size: 13px; color: var(--muted); }
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--note); }
h1 { max-width: 900px; font: 800 clamp(40px, 6vw, 76px)/1.04 var(--display); letter-spacing: -0.035em; }
.accent { color: var(--accent-fg); }
.lead { max-width: 620px; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 4px; }
.small { font-size: 13px; color: var(--faint); }
.small #version:not(:empty)::after { content: " · "; }
.shot { position: relative; width: 100%; max-width: 980px; margin-top: 40px; }
.shot__video { display: block; width: 100%; aspect-ratio: 16 / 10; border: 1px solid #26262c; border-radius: 16px; background: #101014; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.keys { position: absolute; right: -18px; bottom: -22px; display: flex; gap: 6px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--raised); box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.keys kbd { display: flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 9px; background: #26262b; box-shadow: 0 3px 0 #3a3a40; font: 20px var(--sans); color: var(--ink); }
.keys kbd.on { background: var(--accent); box-shadow: 0 3px 0 #1a3bb8; font-weight: 600; color: #fff; }
html.is-win .keys { display: none; }
@media (max-width: 640px) { .keys { display: none; } .hero { padding-top: 120px; } }

/* ---------- Разделы ---------- */
.section { padding-top: 72px; padding-bottom: 72px; }
.head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: 96px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--accent-fg); }
h2 { font: 800 44px/1.1 var(--display); letter-spacing: -0.03em; }
.h2-sm { font-size: 36px; margin-bottom: 28px; }
@media (max-width: 640px) { h2 { font-size: 32px; } .h2-sm { font-size: 28px; } }
.muted { color: var(--muted); }

.demo { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; margin-bottom: 112px; }
.demo:last-child { margin-bottom: 0; }
.demo--rev { flex-direction: row-reverse; }
.demo__text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.demo__text h3 { font: 800 34px/1.15 var(--display); letter-spacing: -0.025em; }
.demo__text p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.demo__media { flex: 1 1 520px; min-width: 0; }
.demo__media video { display: block; width: 100%; aspect-ratio: 16 / 10; border: 1px solid #26262c; border-radius: 18px; background: #101014; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.step { display: inline-flex; width: fit-content; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--accent-soft); font-size: 13px; font-weight: 600; color: var(--accent-fg); }
.points { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.points li { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid #26262c; border-radius: 9px; font-size: 14px; color: #cfcec9; }
.points li::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fcb98' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 640px) { .demo { gap: 28px; margin-bottom: 72px; } .demo__text h3 { font-size: 26px; } .head { margin-bottom: 56px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.card svg { width: 40px; height: 40px; padding: 10px; border-radius: 10px; background: #1a1a20; fill: none; stroke: var(--accent-fg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 17px; font-weight: 600; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); }

.intro { max-width: 640px; margin: -12px 0 32px; font-size: 16px; line-height: 1.6; }
.install { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.panel { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.panel h3 { margin-bottom: 20px; font-size: 18px; font-weight: 600; }
.steps { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; min-height: 28px; padding: 3px 0 0 42px; font-size: 15px; line-height: 1.55; color: #cfcec9; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); font-size: 14px; font-weight: 600; color: #fff; }
.steps b { color: var(--ink); }
.more { margin-top: 20px; font-size: 14px; color: var(--muted); }
.more summary { cursor: pointer; color: var(--accent-fg); }
.more p { margin-top: 10px; }
.more pre { margin: 10px 0 0; padding: 12px 14px; overflow-x: auto; border-radius: 10px; background: #0d0d11; border: 1px solid var(--line); }
.more code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.note { max-width: 760px; margin-top: 20px; font-size: 14px; line-height: 1.6; }

.pro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: 48px; border: 1px solid #2a3360; border-radius: 24px; background: #12162b; }
.pro .h2-sm { margin: 12px 0; }
.pro__text { max-width: 560px; font-size: 16px; line-height: 1.6; color: #a9b4d6; }
.pro__note { max-width: 300px; font-size: 14px; line-height: 1.55; color: #a9b4d6; }
@media (max-width: 640px) { .pro { padding: 28px; } }

.foot { margin-top: 40px; border-top: 1px solid #1c1c21; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--faint); }
.foot .logo__word { font-size: 16px; }
.foot__links { display: flex; gap: 20px; margin-left: auto; }
