/* Рейл — сайт myreil.ru. Палитра из иконки и приложения (mobile/src/lib/theme.ts). */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/site/fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/site/fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  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: #f1ece4;
  --surface: #fbf9f4;
  --ink: #1b2430;
  --ink2: #4a5260;
  --muted: #6f6b63;
  --line: rgba(27, 36, 48, 0.12);
  --accent: #1d3350;
  --accent-deep: #132238;
  --accent-wash: #e7ecf3;
  --on-accent: #ffffff;
  --link: #1e5fa8;
  --rail: #e9e4da;
  --terra: #e07a5f;
  /* терракота для текста и кнопок: на светлом фоне контраст ≥ 4,5 (WCAG AA) */
  --terra-ink: #a84b35;
  --terra-btn: #b4523a;
  --mustard: #f2b544;
  --sky: #5aa2f0;
  --sage: #9cc5a1;
  --terra-wash: #fbeae4;
  --mustard-wash: #fdf3dc;
  --sage-wash: #eaf3eb;
  --sky-wash: #e8f1fd;
  --shadow: 0 1px 2px rgba(19, 34, 56, 0.06), 0 8px 28px rgba(19, 34, 56, 0.08);
  --radius: 20px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1623;
    --surface: #162033;
    --ink: #f2efe9;
    --ink2: #c9cfd8;
    --muted: #9aa3b0;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #8fb3e8;
    --accent-wash: #24385a;
    --on-accent: #0f1a2b;
    --link: #8fb3e8;
    --terra-wash: #3b2a28;
    --terra-ink: #e07a5f;
    --mustard-wash: #3a3222;
    --sage-wash: #213229;
    --sky-wash: #1f3350;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 10px;
}

/* ── шапка ─────────────────────────────────────────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.scrolled {
  border-bottom-color: var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 1px 3px rgba(19, 34, 56, 0.25);
}
.brand small {
  font-weight: 450;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0;
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
}
.nav a {
  color: var(--ink2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--terra);
}
.nav .menu-only,
.menu-btn {
  display: none;
}
.nav-mail svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Мобильная шапка: логотип и кнопка меню; разделы — в выпадающей панели под шапкой. */
@media (max-width: 720px) {
  .js .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 -10px 0 auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .js .menu-btn:active {
    background: var(--line);
  }
  .burger {
    position: relative;
    width: 22px;
    height: 16px;
  }
  .burger i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.15s ease;
  }
  .burger i:nth-child(1) {
    top: 0;
  }
  .burger i:nth-child(2) {
    top: 7px;
  }
  .burger i:nth-child(3) {
    top: 14px;
  }
  .top.open .burger i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .top.open .burger i:nth-child(2) {
    opacity: 0;
  }
  .top.open .burger i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 16px 14px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -18px rgba(19, 34, 56, 0.35);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  }
  .js .top.open .nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .js .top.open {
    border-bottom-color: var(--line);
  }
  .js .nav a,
  .js .nav .menu-only {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 4px 4px;
    font-size: 18px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .js .nav a:last-child {
    border-bottom: 0;
  }
  .js .nav a.nav-mail {
    color: var(--link);
    font-size: 16px;
  }
  .js .nav a[aria-current="page"] {
    text-underline-offset: 7px;
  }

  /* без JS — все разделы второй строкой под логотипом */
  html:not(.js) .top .wrap {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    row-gap: 6px;
  }
  html:not(.js) .nav {
    margin-left: 0;
    gap: 18px;
    flex-wrap: wrap;
  }
}
@media (max-width: 359px) {
  .brand small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .burger i,
  .js .nav,
  .js .top.open .nav {
    transition: none;
  }
}
section[id] {
  scroll-margin-top: 64px;
}

/* ── кнопки и бейджи ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--terra-btn);
  color: #fff;
  box-shadow: 0 6px 18px rgba(224, 122, 95, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 14px;
  background: var(--accent-deep);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
}
.soon b {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.soon svg {
  width: 22px;
  height: 22px;
  flex: none;
}
@media (prefers-color-scheme: dark) {
  .soon {
    background: #24385a;
  }
}

/* ── первый экран ──────────────────────────────────────────────────────── */
.hero {
  padding: 56px 0 40px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-wash);
}
.hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 750;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--mustard) 55%, transparent) 62%);
  padding: 0 0.04em;
}
@media (prefers-color-scheme: dark) {
  .hero h1 em {
    background: linear-gradient(transparent 66%, color-mix(in srgb, var(--mustard) 34%, transparent) 66%);
  }
}
.lead {
  font-size: clamp(18px, 1.6vw, 20px);
  color: var(--ink2);
  max-width: 34em;
  margin-bottom: 28px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.hero-art {
  position: relative;
  aspect-ratio: 640 / 520;
}
.hero-art .rail {
  width: 100%;
  height: auto;
}
.sway {
  transform-box: view-box;
  animation: sway 6s ease-in-out infinite;
}
.sway.s2 {
  animation-duration: 7s;
  animation-delay: -2s;
}
.sway.s3 {
  animation-duration: 6.5s;
  animation-delay: -4s;
}
.sway.s4 {
  animation-duration: 7.5s;
  animation-delay: -1s;
}
.sway.s5 {
  animation-duration: 5.5s;
  animation-delay: -3s;
}
@keyframes sway {
  0%,
  100% {
    rotate: -1.6deg;
  }
  50% {
    rotate: 1.6deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sway {
    animation: none;
  }
}
.scan {
  position: absolute;
  right: 0;
  bottom: 2%;
  width: min(300px, 58%);
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
}
/* кот за плашкой «Распознано за секунду»: раз в 12 секунд выглядывает, моргает и прячется обратно */
.cat {
  position: absolute;
  right: 26px;
  bottom: calc(100% - 3px);
  width: 74px;
  height: 66px;
  pointer-events: none;
}
.cat-clip {
  position: absolute;
  inset: 0 0 3px 0; /* низ рамки = верхний край плашки: всё, что ниже, «за карточкой» */
  overflow: hidden;
}
.cat-head {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  transform: translateY(100%);
  transform-origin: 50% 100%;
  animation: cat-peek 12s ease-in-out 2s infinite;
}
.cat-paws {
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: auto;
  opacity: 0;
  animation: cat-paws 12s ease-in-out 2s infinite;
}
.cat-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: cat-blink 12s linear 2s infinite;
}
.cat-ear-l {
  transform-box: fill-box;
  transform-origin: 70% 90%;
  animation: cat-ear 12s ease-in-out 2s infinite;
}
@keyframes cat-peek {
  0%, 38% { transform: translateY(100%); }
  46%, 52% { transform: translateY(60%); }
  60%, 62% { transform: translateY(12%) rotate(0deg); }
  69%, 77% { transform: translateY(12%) rotate(-6deg); }
  83% { transform: translateY(12%) rotate(0deg); }
  91%, 100% { transform: translateY(100%); }
}
@keyframes cat-paws {
  0%, 60% { opacity: 0; transform: translateY(5px); }
  64%, 82% { opacity: 1; transform: translateY(0); }
  88%, 100% { opacity: 0; transform: translateY(5px); }
}
@keyframes cat-blink {
  0%, 65.5%, 67.5%, 74.5%, 76.5%, 100% { transform: scaleY(1); }
  66.5%, 75.5% { transform: scaleY(0.1); }
}
@keyframes cat-ear {
  0%, 48%, 51%, 100% { rotate: 0deg; }
  49.5% { rotate: -12deg; }
}
@media (prefers-reduced-motion: reduce) {
  .cat { display: none; }
}
@media (max-width: 480px) {
  .cat { width: 58px; height: 52px; right: 16px; }
}
.scan-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: 8px;
}
.scan-head svg {
  width: 16px;
  height: 16px;
  color: var(--terra);
}
.scan-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  font-size: 13px;
  font-weight: 550;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--ink);
  white-space: nowrap;
}
.chip .sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
@media (max-width: 900px) {
  .hero {
    padding-top: 32px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-art {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
  }
}
@media (max-width: 480px) {
  .scan {
    width: 62%;
    padding: 10px 12px 12px;
  }
  .scan-title {
    font-size: 15px;
    margin-bottom: 6px;
  }
  .chip {
    font-size: 12px;
    padding: 3px 8px;
  }
}

/* ── секции ────────────────────────────────────────────────────────────── */
.section {
  padding: 72px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 720;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--ink2);
  font-size: 18px;
  margin: 0;
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra-ink);
  margin-bottom: 12px;
}
@media (max-width: 560px) {
  .section {
    padding: 52px 0;
  }
}

/* шаги */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 18px;
  color: #132238;
  background: var(--c, var(--mustard));
  margin-bottom: 18px;
}
.step:nth-child(1) {
  --c: var(--terra);
}
.step:nth-child(2) {
  --c: var(--mustard);
}
.step:nth-child(3) {
  --c: var(--sage);
}
.step h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.step p {
  color: var(--ink2);
  margin: 0;
  font-size: 16px;
}
@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* возможности */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}
.feature .ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: var(--w, var(--accent-wash));
  color: var(--ink);
}
.feature .ic svg {
  width: 26px;
  height: 26px;
}
.feature h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.feature p {
  color: var(--ink2);
  font-size: 16px;
  margin: 0;
}
.w-terra {
  --w: var(--terra-wash);
}
.w-mustard {
  --w: var(--mustard-wash);
}
.w-sage {
  --w: var(--sage-wash);
}
.w-sky {
  --w: var(--sky-wash);
}
@media (max-width: 960px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 620px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* категории */
.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.cats span {
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 550;
  font-size: 16px;
}
.cats span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 9px;
  vertical-align: 1px;
  background: var(--d, var(--sky));
}
.cats span:nth-child(4n + 1) {
  --d: var(--terra);
}
.cats span:nth-child(4n + 2) {
  --d: var(--mustard);
}
.cats span:nth-child(4n + 3) {
  --d: var(--sky);
}
.cats span:nth-child(4n + 4) {
  --d: var(--sage);
}

/* приватность — тёмная плашка */
.private {
  background: linear-gradient(180deg, #1d3350, #132238);
  color: #f2efe9;
  border-radius: 28px;
  padding: 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.private h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  margin-bottom: 14px;
}
.private .kicker {
  color: var(--mustard);
}
.private p {
  color: #c9cfd8;
}
.private a {
  color: #fff;
}
.plist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.plist li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
}
.plist svg {
  width: 36px;
  height: 36px;
  padding: 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sage);
}
.plist b {
  display: block;
  color: #fff;
  font-weight: 600;
  margin-bottom: 2px;
}
.plist span {
  color: #c9cfd8;
  font-size: 15px;
}
@media (max-width: 860px) {
  .private {
    grid-template-columns: 1fr;
    padding: 32px 22px;
    gap: 24px;
    border-radius: 22px;
  }
}

/* тарифы */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.plan-pro {
  border: 2px solid var(--terra);
  box-shadow: var(--shadow);
}
.plan-top {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.plan h3 {
  font-size: 21px;
  margin: 0;
}
.badge {
  background: var(--mustard-wash);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.price b {
  font-size: clamp(36px, 4vw, 44px);
  font-weight: 750;
  line-height: 1.1;
}
.price span {
  color: var(--muted);
  font-size: 16px;
}
.price-alt {
  color: var(--ink2);
  font-size: 15px;
  margin: -6px 0 0;
}
.checks {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 16px;
}
.checks svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  stroke-width: 2.2;
}
.plan .btn {
  margin-top: auto;
  align-self: flex-start;
}
.plans-note {
  color: var(--muted);
  font-size: 15px;
  max-width: 820px;
  margin: 22px 0 0;
}
@media (max-width: 720px) {
  .plans {
    grid-template-columns: 1fr;
  }
  .plan {
    padding: 22px;
  }
}

/* призыв */
.join {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.join h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  margin-bottom: 14px;
}
.join p {
  color: var(--ink2);
  font-size: 18px;
}
.join .cta {
  justify-content: center;
  margin-top: 24px;
}

/* ── подвал ────────────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 44px;
  margin-top: 32px;
  font-size: 15px;
  color: var(--muted);
}
.foot .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 28px;
}
.foot .foot-h {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.foot a {
  color: var(--ink2);
  text-decoration: none;
}
.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot .brand {
  font-size: 18px;
  margin-bottom: 10px;
}
.foot .brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.foot p {
  margin: 0 0 6px;
}
@media (max-width: 720px) {
  .foot .wrap {
    grid-template-columns: 1fr 1fr;
  }
  .foot .wrap > :first-child {
    grid-column: 1 / -1;
  }
}

/* ── текстовые страницы (поддержка, условия, политика) ─────────────────── */
.doc {
  padding: 40px 0 24px;
}
.doc .wrap {
  max-width: 820px;
}
.doc h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 740;
  margin-bottom: 10px;
}
.doc .meta {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.doc h2 {
  font-size: 24px;
  margin: 40px 0 12px;
  scroll-margin-top: 84px;
}
.doc h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}
.doc p,
.doc li {
  color: var(--ink2);
}
.doc li {
  margin-bottom: 6px;
}
.doc ul,
.doc ol {
  padding-left: 22px;
  margin: 0 0 1em;
}
.doc strong {
  color: var(--ink);
  font-weight: 600;
}
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 8px;
}
.toc ol {
  margin: 0;
  columns: 2;
  column-gap: 32px;
  font-size: 15px;
}
.toc li {
  margin-bottom: 4px;
  break-inside: avoid;
}
@media (max-width: 620px) {
  .toc ol {
    columns: 1;
  }
}
.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 16px;
}
.box > :last-child {
  margin-bottom: 0;
}
.box.note {
  background: var(--mustard-wash);
  border-color: transparent;
}
.table-wrap {
  overflow-x: auto;
  margin: 0 0 1em;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 15px;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
th {
  font-weight: 600;
  color: var(--ink);
  background: color-mix(in srgb, var(--accent-wash) 60%, transparent);
}
td {
  color: var(--ink2);
}

/* контакт-карточка */
.contact {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 22px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.contact .ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--terra-wash);
  flex: none;
}
.contact .ic svg {
  width: 26px;
  height: 26px;
}
.contact .txt {
  flex: 1 1 260px;
}
.contact .txt b {
  display: block;
  font-size: 18px;
  color: var(--ink);
}
.contact .txt span {
  color: var(--ink2);
  font-size: 15px;
}

/* вопросы-ответы */
.faq-group {
  margin-top: 36px;
}
.faq-group h2 {
  margin: 0 0 12px;
}
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
details > div {
  padding: 0 20px 16px;
}
details > div > :last-child {
  margin-bottom: 0;
}
details p,
details li {
  font-size: 16px;
}
.path {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
/* отпечаток сертификата подписи APK — длинный, переносится где угодно */
.fp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
  color: var(--ink2);
}

/* страница 404 */
.lost {
  text-align: center;
  padding: 80px 0 40px;
}
.lost h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 12px;
}
.lost p {
  color: var(--ink2);
}
.lost .cta {
  justify-content: center;
  margin-top: 24px;
}
