@font-face { font-family: "Velami Serif"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/source-serif-4-cyrillic-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Velami Serif"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/source-serif-4-latin-ext-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Velami Serif"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/source-serif-4-latin-italic.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: "Velami Serif"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/source-serif-4-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Velami Serif"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/source-serif-4-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Velami Serif"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/source-serif-4-latin.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; }

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --tint: #f6f4ef;
  --text: #141413;
  --muted: #64625c;
  --soft: #97948c;
  --line: rgba(20, 20, 19, .08);
  --line-strong: rgba(20, 20, 19, .15);
  --accent: #c96442;
  --accent-hover: #b4563a;
  --accent-soft: rgba(201, 100, 66, .12);
  --accent-ink: #a9502f;
  --ink: #181716;
  --ink-text: #f4f2ec;
  --ink-muted: #b9b5ab;
  --shadow: 0 1px 2px rgba(20, 20, 19, .04), 0 18px 50px -24px rgba(20, 20, 19, .22);
  --shadow-lg: 0 2px 6px rgba(20, 20, 19, .04), 0 50px 100px -40px rgba(20, 20, 19, .3);
  --serif: "Velami Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --surface: #1b1a19;
    --tint: #171615;
    --text: #f2f0ea;
    --muted: #aeaba2;
    --soft: #7f7c75;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --accent: #d97757;
    --accent-hover: #e48a6b;
    --accent-soft: rgba(217, 119, 87, .16);
    --accent-ink: #eb9a7e;
    --ink: #1f1d1c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 50px -24px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 50px 100px -40px rgba(0, 0, 0, .9);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3.1rem); }
h3 { margin: 0; font-size: 1.06rem; font-weight: 620; letter-spacing: -.01em; line-height: 1.3; }
em { font-style: italic; color: var(--accent); }
p { margin: 0; text-wrap: pretty; }
code { font: 500 .86em var(--mono); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.center-block { text-align: center; max-width: 860px; }
.sub { margin-top: 18px; color: var(--muted); font-size: 1.12rem; max-width: 40em; }
.center-block .sub { margin-inline: auto; }

.ic { width: 20px; height: 20px; flex: none; }
.mark { width: 26px; height: 26px; flex: none; border-radius: 7px; }
.mark-lg { display: block; width: 60px; height: 60px; border-radius: 14px; margin: 0 auto 32px; box-shadow: 0 18px 40px -14px rgba(201, 100, 66, .6); }

/* Капсула навигации */
.top { position: sticky; top: 14px; z-index: 10; display: flex; justify-content: center; padding: 0 16px; height: 0; overflow: visible; }
.capsule {
  display: flex; align-items: center; gap: 28px;
  height: 56px; padding: 0 8px 0 18px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(16px);
  backdrop-filter: saturate(1.8) blur(16px);
  box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font: 500 1.28rem/1 var(--serif); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-size: .92rem; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font: 600 1rem/1 var(--font); letter-spacing: -.005em;
  transition: background .15s, transform .15s, border-color .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .ic { width: 18px; height: 18px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9rem; background: var(--accent); color: #fff; }
.btn-sm:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-light { background: #f4f2ec; color: #181716; }
.btn-light:hover { background: #fff; }
.btn-ghost-light { background: transparent; color: var(--ink-text); border-color: rgba(255, 255, 255, .22); }
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, .55); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Первый экран */
.hero { position: relative; padding: 150px 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -260px; width: 1100px; height: 700px; transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
  pointer-events: none;
}
.hero-text { position: relative; text-align: center; max-width: 920px; margin: 0 auto; }
.eyebrow { color: var(--muted); font-size: .9rem; font-weight: 550; letter-spacing: .01em; margin-bottom: 26px; }
h1 { font-size: clamp(2.9rem, 1.5rem + 5vw, 5.6rem); line-height: 1.02; letter-spacing: -.03em; margin-bottom: 28px; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 37em; margin: 0 auto 38px; }
.hero .ctas { justify-content: center; }
.note { margin-top: 18px; color: var(--soft); font-size: .88rem; }

.kicker {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: clamp(64px, 8vw, 96px) 0 22px; color: var(--soft);
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.kicker::before, .kicker::after { content: ""; width: 48px; height: 1px; background: var(--line-strong); }

.demo {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  max-width: 1040px; margin: 0 auto;
  border: 1px solid var(--line-strong); border-radius: 26px;
  background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden;
}
.pane { padding: 22px 26px 28px; min-width: 0; }
.pane-out { background: var(--tint); border-left: 1px solid var(--line); }
.pane-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--soft); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pane-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.pane-dot-on { background: #5bb37a; box-shadow: 0 0 0 4px rgba(91, 179, 122, .16); }
.count { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--muted); letter-spacing: 0; text-transform: none; font-size: .8rem; }
.count.on { background: var(--accent-soft); color: var(--accent-ink); }
.demo textarea, .out { font: 400 1.04rem/1.7 var(--font); color: var(--text); }
.demo textarea {
  display: block; width: 100%; min-height: 150px; padding: 0; margin: 0;
  border: 0; outline: 0; resize: none; background: transparent; overflow: hidden;
}
.out { min-height: 150px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tok { padding: 1px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font: 600 .84em var(--mono); white-space: nowrap; }
.found { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; min-height: 52px; }
.found li { display: inline-flex; align-items: center; gap: 8px; padding: 5px 6px 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; }
.found code { padding: 2px 7px; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: .76rem; }
.demo-note { max-width: 640px; margin: 20px auto 0; text-align: center; color: var(--soft); font-size: .9rem; }

/* Секции */
.sec { padding: clamp(80px, 10vw, 140px) 0; }
.sec-tint { background: var(--tint); }
.sec-head { max-width: 760px; margin-bottom: 64px; }

.how { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 110px); align-items: center; margin-bottom: clamp(64px, 8vw, 104px); }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 30px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.num { font: 500 2.6rem/1 var(--serif); color: var(--accent); font-style: italic; }
.steps h3 { font-size: 1.14rem; margin: 4px 0 6px; }
.steps p { color: var(--muted); }
.steps .tok { font-size: .8em; }
.how-shot { justify-self: center; width: min(100%, 420px); }
.how-shot img { filter: drop-shadow(0 40px 60px rgba(20, 20, 19, .14)); }
@media (prefers-color-scheme: dark) { .how-shot img { filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .55)); } }

.frame { margin: 0 auto; max-width: 1040px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); }

.chips { list-style: none; padding: 0; margin: 48px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px; }
.chips li { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .98rem; font-weight: 500; }
.chips li:last-child { border: 1px dashed var(--accent); color: var(--accent-ink); background: transparent; }

.cols { list-style: none; padding: 0; margin: 0 0 clamp(56px, 7vw, 88px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.cols li { padding-top: 22px; border-top: 1px solid var(--text); }
.cols .ic { width: 22px; height: 22px; color: var(--accent); margin-bottom: 18px; }
.cols h3 { margin-bottom: 8px; }
.cols p { color: var(--muted); font-size: .97rem; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.duo h2 { font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); }
.sites { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sites li { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 560; font-size: .94rem; }
.sites li.opt { background: transparent; color: var(--muted); font-weight: 500; }
.sites small { color: var(--soft); font-size: .76rem; font-weight: 400; }

.teams { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px); border-radius: 32px; background: var(--ink); color: var(--ink-text); }
.teams::before {
  content: ""; position: absolute; right: -10%; bottom: -70%; width: 70%; height: 140%;
  background: radial-gradient(closest-side, rgba(217, 119, 87, .3), transparent 70%); pointer-events: none;
}
@media (prefers-color-scheme: dark) { .teams { border: 1px solid var(--line-strong); } }
.teams-head { position: relative; max-width: 680px; margin-bottom: 52px; }
.teams-head p { margin-top: 16px; color: var(--ink-muted); font-size: 1.12rem; }
.teams-grid { position: relative; list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.teams-grid li { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .2); }
.teams-grid .ic { width: 22px; height: 22px; color: #eb9a7e; margin-bottom: 16px; }
.teams-grid h3 { margin-bottom: 8px; }
.teams-grid p { color: var(--ink-muted); font-size: .97rem; }
.teams .ctas { position: relative; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 12px no-repeat;
  color: var(--muted); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 26px 0; color: var(--muted); }

.final { padding-top: 40px; }
.final h2 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); margin-bottom: 40px; }
.final .ctas { justify-content: center; }

/* Подвал */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: .92rem; color: var(--muted); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 32px; align-items: start; }
.foot-brand p { margin-top: 10px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: var(--text); }
.foot-meta { display: grid; gap: 6px; text-align: right; color: var(--soft); }
.foot-meta a { color: var(--muted); }

/* Политика конфиденциальности */
.doc { padding: 140px 0 96px; }
.doc .wrap { width: min(760px, 100% - 48px); }
.doc h1 { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.4rem); margin: 28px 0 12px; }
.doc > .wrap > .muted { margin-bottom: 40px; color: var(--muted); }
.doc p, .doc ul { margin: 0 0 18px; }
.doc p strong { font-weight: 650; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc h3 { margin: 36px 0 12px; font-size: 1.2rem; }
.doc code { padding: 1px 5px; border-radius: 5px; background: var(--tint); border: 1px solid var(--line); font-size: .84em; }
.doc a { word-break: break-word; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .94rem; }
.back .ic { width: 16px; height: 16px; }
.ic-flip { transform: rotate(180deg); }

@media (prefers-reduced-motion: no-preference) {
  .hero-text > *, .kicker, .demo { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .05s; }
  .hero-text > :nth-child(3) { animation-delay: .1s; }
  .hero-text > :nth-child(4) { animation-delay: .15s; }
  .kicker, .demo { animation-delay: .25s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1020px) {
  .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .capsule { gap: 16px; }
  .demo, .how, .duo, .faq-wrap { grid-template-columns: 1fr; }
  .pane-out { border-left: 0; border-top: 1px solid var(--line); }
  .how-shot { width: min(100%, 380px); }
  .teams-grid { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-meta { text-align: left; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 120px; }
  .cols { grid-template-columns: 1fr; }
  .ctas { flex-direction: column; }
  .ctas .btn { width: 100%; }
  .pane { padding: 18px 18px 22px; }
  .faq details p { padding-right: 0; }
}
@media print { .top { display: none; } }
