:root {
  color-scheme: dark;
  --bg: #101114;
  --bg-soft: #15171b;
  --panel: #191b20;
  --panel-2: #20232a;
  --text: #f6f7f9;
  --muted: #a5a9b2;
  --faint: #727782;
  --line: rgba(255,255,255,.08);
  --orange: #ff7a2f;
  --orange-2: #ff9b45;
  --green: #49c989;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 30px 80px rgba(0,0,0,.28);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: weight style;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 78% 4%, rgba(255,122,47,.12), transparent 30%),
    radial-gradient(circle at 8% 18%, rgba(255,255,255,.035), transparent 22%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell { overflow: hidden; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .12em;
}
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--orange-2), var(--orange));
  box-shadow: 0 0 22px rgba(255,122,47,.45);
}
.top-nav { display: flex; gap: 30px; color: var(--muted); font-size: 14px; font-weight: 600; }
.top-nav a { transition: color .2s ease; }
.top-nav a:hover { color: var(--text); }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 72px;
  align-items: center;
  padding: 54px 0 84px;
}
.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 26px;
  color: #c4c7ce;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .035em;
}
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(54px, 6.2vw, 88px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 800;
}
h1 span { color: #b4b8c1; }
.hero-copy > p {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 20px;
  border-radius: 15px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(145deg, var(--orange-2), var(--orange)); color: #15100d; }
.button.ghost { border-color: var(--line); background: rgba(255,255,255,.025); color: #d2d5da; }

.hero-panel {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(34,36,42,.88), rgba(23,25,30,.94));
  box-shadow: var(--shadow);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255,255,255,.18), transparent 30%, rgba(255,122,47,.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.panel-topline { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 2px 4px 16px; }
.panel-label { font-weight: 750; font-size: 15px; }
.panel-status { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.panel-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.composer-card { padding: 20px; border-radius: 20px; background: rgba(7,8,10,.32); border: 1px solid var(--line); }
.composer-title { font-size: 13px; font-weight: 700; color: #d6d8dd; margin-bottom: 14px; }
.composer-lines { display: grid; gap: 8px; }
.composer-lines span { height: 8px; border-radius: 10px; background: rgba(255,255,255,.09); }
.composer-lines span:nth-child(2) { width: 82%; }
.composer-lines span:nth-child(3) { width: 55%; }
.attachment-row { display: flex; gap: 8px; margin-top: 18px; }
.attachment { padding: 8px 10px; border-radius: 10px; background: rgba(255,122,47,.12); color: #ffb078; font-size: 11px; font-weight: 700; }
.attachment.muted { color: var(--faint); background: rgba(255,255,255,.035); }
.network-stack { display: grid; gap: 8px; margin: 12px 0; }
.network-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.035); }
.network-row div { min-width: 0; display: grid; gap: 2px; }
.network-row strong { font-size: 13px; }
.network-row small { color: var(--faint); font-size: 11px; }
.network-row b { color: var(--green); font-size: 13px; }
.network-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; font-weight: 800; font-size: 11px; letter-spacing: -.02em; }
.network-icon.vk { background: #2787f5; color: #fff; }
.network-icon.tg { background: #28a8e9; color: #fff; }
.network-icon.max { background: #f5f5f7; color: #17181b; }
.publish-bar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; border-radius: 16px; background: linear-gradient(145deg, var(--orange-2), var(--orange)); color: #17100c; font-size: 13px; font-weight: 800; }
.publish-bar span:last-child { opacity: .72; font-weight: 700; }

.section { padding: 112px 0; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.compact { max-width: 690px; }
.section-kicker { display: block; margin-bottom: 14px; color: var(--orange-2); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h2 { margin-bottom: 18px; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; }
.section-head p { margin-bottom: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card { min-height: 260px; padding: 26px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.feature-number { margin-bottom: 54px; color: var(--orange); font-size: 12px; font-weight: 800; }
.feature-card h3 { margin-bottom: 12px; font-size: 20px; letter-spacing: -.025em; }
.feature-card p { margin-bottom: 0; color: var(--muted); line-height: 1.62; font-size: 14px; }

.network-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.network-layout { display: grid; grid-template-columns: 1fr .8fr; gap: 72px; align-items: end; }
.network-layout h2 { max-width: 660px; margin-bottom: 0; }
.network-list { display: grid; gap: 10px; }
.network-pill { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.network-pill .network-icon { width: 44px; height: 44px; border-radius: 14px; }
.network-pill div { display: grid; gap: 3px; }
.network-pill strong { font-size: 14px; }
.network-pill small { color: var(--faint); font-size: 12px; }

.documents-section { padding-bottom: 132px; }
.document-links { display: grid; border-top: 1px solid var(--line); }
.document-links a { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); transition: padding .2s ease, color .2s ease; }
.document-links a:hover { padding-left: 8px; color: #fff; }
.document-links span { display: grid; gap: 5px; }
.document-links strong { font-size: 15px; }
.document-links small { color: var(--faint); font-size: 12px; }
.document-links b { color: var(--orange); font-size: 19px; }

.site-footer { min-height: 120px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
.footer-brand { color: var(--text); justify-self: start; }
.footer-copy { justify-self: center; }
.footer-links { justify-self: end; display: flex; gap: 18px; }
.footer-links a:hover { color: var(--text); }

.legal-page { min-height: 100vh; }
.legal-header { border-bottom: 1px solid var(--line); }
.legal-main { width: min(850px, calc(100% - 48px)); margin: 0 auto; padding: 88px 0 120px; }
.legal-breadcrumb { margin-bottom: 28px; color: var(--faint); font-size: 13px; }
.legal-breadcrumb a:hover { color: var(--text); }
.legal-main h1 { font-size: clamp(42px, 7vw, 68px); margin-bottom: 20px; }
.legal-lead { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.68; }
.legal-meta { margin: 24px 0 44px; color: var(--faint); font-size: 12px; }
.legal-placeholder { margin-top: 38px; padding: 24px; border-radius: 18px; border: 1px solid rgba(255,122,47,.2); background: rgba(255,122,47,.06); }
.legal-placeholder strong { display: block; margin-bottom: 8px; }
.legal-placeholder p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 52px; padding-top: 72px; }
  .hero-copy { max-width: 720px; }
  .hero-panel { max-width: 650px; width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-number { margin-bottom: 34px; }
  .network-layout { grid-template-columns: 1fr; gap: 44px; }
  .site-footer { grid-template-columns: 1fr; padding: 30px 0; }
  .footer-brand, .footer-copy, .footer-links { justify-self: start; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, 1180px); }
  .site-header { height: 76px; }
  .top-nav { display: none; }
  .hero { min-height: auto; padding: 60px 0 76px; }
  .eyebrow { margin-bottom: 20px; font-size: 12px; }
  h1 { font-size: clamp(46px, 13.5vw, 66px); line-height: 1.01; margin-bottom: 22px; }
  .hero-copy > p { font-size: 16px; line-height: 1.62; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-panel { padding: 15px; border-radius: 27px; }
  .panel-topline { align-items: flex-start; }
  .panel-status { text-align: right; }
  .section { padding: 82px 0; }
  h2 { font-size: 40px; }
  .section-head { margin-bottom: 34px; }
  .section-head p { font-size: 15px; }
  .feature-card { padding: 22px; }
  .documents-section { padding-bottom: 94px; }
  .document-links a { min-height: 76px; }
  .document-links small { display: none; }
  .footer-links { flex-direction: column; gap: 10px; }
  .legal-main { width: min(100% - 32px, 850px); padding-top: 60px; }
  .legal-main h1 { font-size: 44px; }
}

/* Legal documents */
.legal-note {
  margin: 34px 0 42px;
  padding: 22px 24px;
  border: 1px solid rgba(255,122,47,.2);
  border-radius: 18px;
  background: rgba(255,122,47,.055);
}
.legal-note strong { display: block; margin-bottom: 7px; font-size: 14px; }
.legal-note p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.legal-note a, .legal-section a, .legal-contacts a { color: #ffab73; text-decoration: underline; text-decoration-color: rgba(255,171,115,.32); text-underline-offset: 3px; }
.legal-note a:hover, .legal-section a:hover, .legal-contacts a:hover { color: #ffc49c; text-decoration-color: currentColor; }
.legal-toc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 58px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}
.legal-toc a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: #15171b;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  transition: color .18s ease, background .18s ease;
}
.legal-toc a:hover { background: #1a1c21; color: var(--text); }
.legal-section {
  padding: 0 0 46px;
  margin: 0 0 46px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}
.legal-section:last-of-type { margin-bottom: 0; }
.legal-section h2 {
  margin: 0 0 20px;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.legal-section h3 {
  margin: 30px 0 12px;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.015em;
}
.legal-section p, .legal-section li {
  color: #c1c4ca;
  font-size: 15px;
  line-height: 1.75;
}
.legal-section p { margin-bottom: 16px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul, .legal-section ol { margin: 14px 0 18px; padding-left: 23px; }
.legal-section li + li { margin-top: 8px; }
.legal-section strong { color: #e9eaed; font-weight: 700; }
.legal-contacts { display: grid; margin: 22px 0 0; border-top: 1px solid var(--line); }
.legal-contacts > div {
  min-height: 56px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.legal-contacts dt { color: var(--faint); font-size: 12px; }
.legal-contacts dd { margin: 0; color: #d5d7dc; font-size: 14px; line-height: 1.5; }
.legal-bottom-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 52px;
}
.legal-bottom-nav > a {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  color: #d5d7dc;
  font-size: 13px;
  font-weight: 650;
  transition: transform .18s ease, background .18s ease;
}
.legal-bottom-nav > a:hover { transform: translateY(-1px); background: rgba(255,255,255,.045); }
.legal-bottom-nav span { color: var(--orange); font-size: 18px; }

@media (max-width: 640px) {
  .legal-toc { grid-template-columns: 1fr; margin-bottom: 46px; }
  .legal-note { padding: 18px; margin: 28px 0 36px; }
  .legal-section { padding-bottom: 36px; margin-bottom: 36px; }
  .legal-section h2 { font-size: 27px; }
  .legal-section h3 { font-size: 17px; }
  .legal-section p, .legal-section li { font-size: 14px; line-height: 1.72; }
  .legal-contacts > div { grid-template-columns: 1fr; gap: 5px; padding: 12px 0; }
  .legal-bottom-nav { grid-template-columns: 1fr; }
}

@media print {
  body.legal-page { background: #fff; color: #111; }
  .legal-header, .legal-toc, .legal-bottom-nav { display: none; }
  .legal-main { width: 100%; padding: 0; }
  .legal-main h1, .legal-section h2, .legal-section h3, .legal-section strong { color: #111; }
  .legal-lead, .legal-meta, .legal-section p, .legal-section li, .legal-contacts dt, .legal-contacts dd { color: #333; }
  .legal-section, .legal-contacts, .legal-contacts > div { border-color: #ddd; }
  .legal-note { background: #fafafa; border-color: #ddd; }
}
.legal-purpose-grid { display: grid; gap: 10px; margin-top: 20px; }
.legal-purpose-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.018); }
.legal-purpose-grid h4 { margin: 0 0 12px; color: #eceef1; font-size: 15px; line-height: 1.35; }
.legal-purpose-grid p { margin: 7px 0 0; font-size: 13px; line-height: 1.65; }
