/* RadiCat — информационная страница. Одна строка — одно свойство. */

@font-face {
  font-family: "RCRegular";
  src: url("./roboto-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0f12;
  --surface: #14171c;
  --surface-2: #17191e;
  --surface-3: #1f2229;
  --border: #2a2e37;
  --border-soft: #23262e;
  --text: #e6e8ec;
  --text-dim: #9aa1ad;
  --text-mute: #767d89;
  --accent: #4a9eff;
  --accent-2: #2b7fe0;
  --gold: #c49a6c;
  --gold-light: #e0b070;
  --green: #4ec9a0;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1160px;
  --font: "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "RCRegular", ui-monospace, "SF Mono", Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* высота липкой шапки, чтобы якоря не прятались под ней */
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  /* тонкая сетка на фоне — перекликается с интерфейсом вьюера */
  background-image:
    radial-gradient(1100px 520px at 15% -10%, rgba(74, 158, 255, 0.10), transparent 70%),
    radial-gradient(900px 460px at 92% 4%, rgba(196, 154, 108, 0.07), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 72px 72px, 72px 72px;
  background-position: 0 0, 0 0, -1px -1px, -1px -1px;
  background-attachment: fixed, fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-2);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ─── шапка ─── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 15, 18, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.site-head__in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--accent) 0%, #1f5fae 60%, var(--gold) 160%);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: #06121f;
  flex: 0 0 auto;
}

.brand__name {
  font-size: 0.95rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.brand__sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-dim);
  font-size: 0.86rem;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-3);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
  white-space: nowrap;
}

.btn:hover {
  background: #262a33;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent-2);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(43, 127, 224, 0.22);
}

.btn--primary:hover {
  background: var(--accent);
}

.btn--ghost {
  background: transparent;
}

.btn--sm {
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.site-head .btn {
  margin-left: 8px;
}

/* ─── hero ─── */
.hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--border-soft);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(196, 154, 108, 0.32);
  background: rgba(196, 154, 108, 0.07);
  padding: 5px 11px;
  border-radius: 999px;
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 154, 108, 0.18);
}

h1 {
  font-size: clamp(2rem, 3.4vw, 3.05rem);
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 750;
  margin: 18px 0 18px;
}

h1 .grad {
  background: linear-gradient(96deg, var(--accent) 8%, #9ec8ff 52%, var(--gold-light) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.06rem;
  color: var(--text-dim);
  max-width: 60ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 26px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.facts li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(78, 201, 160, 0.14);
  box-shadow: inset 0 0 0 1px rgba(78, 201, 160, 0.5);
  /* галочка внутри кружка */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.4 7.3l2.3 2.3 4.8-4.9' fill='none' stroke='%234ec9a0' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

/* макет рабочей области — схема, не скриншот */
.mock {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, #16191f 0%, #101317 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.mock__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3f4a;
}

.mock__dot--a { background: #e06c6c; }
.mock__dot--b { background: #d8b45c; }
.mock__dot--c { background: #5cb98f; }

.mock__title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  padding: 3px;
  background: #0a0c0f;
}

.mock__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}

.cell {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 46%, rgba(120, 160, 210, 0.16), transparent 62%),
    linear-gradient(180deg, #0f1216, #0b0d10);
  border: 1px solid #1b1e24;
  border-radius: 3px;
  overflow: hidden;
}

.cell__label {
  position: absolute;
  left: 7px;
  top: 6px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: #8ea3bb;
  text-transform: uppercase;
}

.cell svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mock__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 13px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-mute);
}

.mock figcaption {
  padding: 10px 13px 12px;
  font-size: 0.74rem;
  color: var(--text-mute);
  border-top: 1px solid var(--border-soft);
  background: var(--surface-2);
}

/* ─── секции ─── */
section {
  padding: 68px 0;
  border-bottom: 1px solid var(--border-soft);
}

section:last-of-type {
  border-bottom: 0;
}

.sec-head {
  max-width: 74ch;
  margin-bottom: 34px;
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 12px;
}

.sec-head p {
  color: var(--text-dim);
  font-size: 1rem;
}

h3 {
  font-size: 1.02rem;
  font-weight: 680;
  letter-spacing: -0.005em;
  margin-bottom: 7px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 14px;
  list-style: none;
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, #101317 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.18s, transform 0.18s;
}

.card:hover {
  border-color: #38475c;
  transform: translateY(-2px);
}

.card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card__ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(74, 158, 255, 0.10);
  border: 1px solid rgba(74, 158, 255, 0.24);
  color: var(--accent);
}

.card__ico svg {
  width: 17px;
  height: 17px;
}

.card__ico--gold {
  background: rgba(196, 154, 108, 0.10);
  border-color: rgba(196, 154, 108, 0.28);
  color: var(--gold-light);
}

/* ─── таблица протоколов ─── */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-size: 0.82rem;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border);
}

th,
td {
  text-align: left;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

thead th {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 600;
  background: var(--surface-2);
  position: sticky;
  top: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover td {
  background: rgba(74, 158, 255, 0.04);
}

td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

td {
  color: var(--text-dim);
}

/* ─── преимущества ─── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.benefits {
  list-style: none;
  display: grid;
  gap: 2px;
  counter-reset: b;
}

.benefits li {
  counter-increment: b;
  position: relative;
  padding: 16px 0 16px 52px;
  border-bottom: 1px solid var(--border-soft);
}

.benefits li:last-child {
  border-bottom: 0;
}

.benefits li::before {
  content: counter(b, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--gold);
  border: 1px solid rgba(196, 154, 108, 0.3);
  border-radius: 7px;
  width: 34px;
  height: 26px;
  display: grid;
  place-items: center;
}

.benefits b {
  display: block;
  font-size: 0.98rem;
  font-weight: 680;
  margin-bottom: 3px;
}

.benefits span {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ─── шаги ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  list-style: none;
  counter-reset: s;
}

.steps li {
  counter-increment: s;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
}

.steps li::before {
  content: "0" counter(s);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.steps p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  color: #cfe0f5;
}

.kbd {
  font-family: var(--mono);
  font-size: 0.8em;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--text);
  white-space: nowrap;
}

/* ─── дорожная карта ─── */
.roadmap {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0 0 0 30px;
}

.roadmap::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(74, 158, 255, 0.35) 38%, rgba(196, 154, 108, 0.35) 100%);
  border-radius: 2px;
}

.roadmap > li {
  position: relative;
  padding: 0 0 30px 0;
}

.roadmap > li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(74, 158, 255, 0.10);
}

.roadmap > li.is-next::before {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(196, 154, 108, 0.12);
}

.rm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.rm-head h3 {
  margin: 0;
  font-size: 1.08rem;
}

.chip {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-mute);
  background: var(--surface-3);
  white-space: nowrap;
}

.chip--now {
  color: #0b1a12;
  background: var(--green);
  border-color: var(--green);
  font-weight: 700;
}

.chip--next {
  color: #17110a;
  background: var(--gold-light);
  border-color: var(--gold-light);
  font-weight: 700;
}

.chip--later {
  color: var(--text-dim);
  border-color: #343945;
}

.rm-when {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.roadmap p {
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 82ch;
  margin-bottom: 10px;
}

.rm-list {
  list-style: none;
  display: grid;
  gap: 7px;
  max-width: 84ch;
}

.rm-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.rm-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3d4450;
}

.rm-list li b {
  color: var(--text);
  font-weight: 620;
}

.note {
  margin-top: 18px;
  border-left: 2px solid var(--gold);
  background: rgba(196, 154, 108, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 13px 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 84ch;
}

/* ─── FAQ ─── */
.faq {
  display: grid;
  gap: 8px;
  max-width: 900px;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

details[open] {
  border-color: #35404f;
}

summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 620;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--text-mute);
  font-size: 1.05rem;
  flex: 0 0 auto;
}

details[open] summary::after {
  content: "−";
  color: var(--accent);
}

details p {
  padding: 0 18px 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 90ch;
}

/* ─── CTA ─── */
.cta {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 42px 34px;
  background:
    radial-gradient(680px 240px at 12% 0%, rgba(74, 158, 255, 0.16), transparent 72%),
    linear-gradient(180deg, #171b21 0%, #101317 100%);
  text-align: center;
}

.cta h2 {
  margin-bottom: 10px;
}

.cta p {
  color: var(--text-dim);
  max-width: 58ch;
  margin: 0 auto 24px;
}

.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── подвал ─── */
.site-foot {
  padding: 40px 0 46px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-mute);
  font-size: 0.84rem;
}

.site-foot__in {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.site-foot nav a {
  color: var(--text-dim);
}

.site-foot__meta {
  max-width: 46ch;
  line-height: 1.7;
}

.site-foot b {
  color: var(--text-dim);
  font-weight: 600;
}

/* появление при скролле — только если включён JS */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

/* ─── адаптив ─── */
@media (max-width: 940px) {
  .hero__grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .hero {
    padding: 52px 0 48px;
  }

  section {
    padding: 52px 0;
  }

  .site-nav {
    display: none;
  }

  .site-head .btn {
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15.5px;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero__actions .btn,
  .cta__actions .btn {
    width: 100%;
  }

  .cta {
    padding: 30px 20px;
  }

  .roadmap {
    padding-left: 24px;
  }

  .roadmap > li::before {
    left: -24px;
    width: 14px;
    height: 14px;
  }

  .rm-head {
    gap: 7px;
  }

  th,
  td {
    padding: 10px 13px;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-head,
  .cta__actions,
  .site-nav {
    display: none;
  }

  a {
    color: #000;
  }
}
