/* Manrope (переменная насыщенность 200–800), лежит у нас — без внешних запросов. */
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/static/fonts/manrope-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/static/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/static/fonts/manrope-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 {
  --black: #0f0f10;
  --panel: #17171a;
  --panel-2: #222226;
  --line: #2a2a2f;
  --light: #f2f2f2;
  --muted: #a3a3a8;
  --dim: #75757b;
  --gold: #e8a33d;
  --gold-hover: #f0b458;
  --gold-ink: #1a1205;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--light);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(27px, 3.4vw, 40px); line-height: 1.15; }
h3 { font-size: 19px; line-height: 1.3; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: border-color .15s, background-color .15s, color .15s;
}
.btn:hover { border-color: var(--muted); color: var(--light); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--gold-ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(15, 15, 16, .92); border-bottom: 1px solid var(--line); backdrop-filter: saturate(140%) blur(8px); }
.top-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; color: var(--light); }
.brand:hover { color: var(--light); }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--light); }

/* Первый экран */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.lead { font-size: 19px; color: var(--muted); margin: 22px 0 0; max-width: 560px; }
.channels { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 32px 0 0; }
.channels li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); }

.chat { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.chat-head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; }
.msg { margin: 0 0 10px; padding: 10px 14px; border-radius: 14px; max-width: 86%; font-size: 15px; line-height: 1.45; }
.msg-in { background: var(--panel-2); border-bottom-left-radius: 4px; }
.msg-out { background: var(--gold); color: var(--gold-ink); margin-left: auto; border-bottom-right-radius: 4px; }
.chat-meta { margin: 6px 0 0; font-size: 13px; color: var(--dim); text-align: right; }

/* Секции */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head p { margin: 14px 0 0; }
.kicker { display: block; margin-bottom: 12px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { margin: 10px 0 0; color: var(--muted); }
.card-accent { border-color: var(--gold); }
.note { margin: 24px 0 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.steps p { margin: 10px 0 0; }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-weight: 700; font-size: 15px; }

.faq details { border-bottom: 1px solid var(--line); max-width: 780px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; position: relative; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; color: var(--gold); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 680px; }

.cta-box { text-align: center; max-width: 720px; }
.cta-box p { margin: 16px auto 0; }
.cta-box .actions { justify-content: center; }

/* Подвал */
.foot { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot-row p { margin: 0; }
.foot-row a.muted { margin-left: auto; text-decoration: none; }

/* Юридические страницы */
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: #d6d6da; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--gold); }

@media (max-width: 860px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav { display: none; }
  .top-row { justify-content: space-between; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .section { padding: 64px 0; }
  .card, .steps li { padding: 22px; }
  .actions .btn { flex: 1 1 100%; }
  .foot-row a.muted { margin-left: 0; }
}
