/* Inter лежит у нас, а не на fonts.googleapis.com: сторонний шрифт означал
   запрос к Google с IP каждого посетителя ещё до вопроса о согласии. Файлы
   вариативные — один на диапазон символов, все начертания внутри. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800;
             font-display: swap; src: url(/site-static/fonts/inter-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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800;
             font-display: swap; src: url(/site-static/fonts/inter-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800;
             font-display: swap; src: url(/site-static/fonts/inter-cyrillic.woff2) format('woff2');
             unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800;
             font-display: swap; src: url(/site-static/fonts/inter-cyrillic-ext.woff2) format('woff2');
             unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
    /* латунь на глубоком синем: холодная база, тёплый акцент */
    --bg: #080C14;
    --bg-2: #0F1520;
    --bg-3: #131B29;
    --fg: #EFF1F5;
    --muted: #95A1B4;
    --dim: #67728A;
    --line: #151D2B;
    --line-2: #24304A;
    --accent: #D8B26A;
    --on-accent: #16130A;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
    --maxw: 1180px;
  }
  * { box-sizing: border-box; }
  /* переход по якорю (#prices из меню и нижней панели) не прячет заголовок
     секции под закреплённой шапкой */
  html { scroll-padding-top: 58px; }
  body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans);
         -webkit-font-smoothing: antialiased; overflow-x: clip; }
  /* height: auto — иначе атрибут height (место под картинку до загрузки)
     растягивал бы её при max-width */
  img { display: block; max-width: 100%; height: auto; }
  h1, h2, h3 { margin: 0; letter-spacing: -0.033em; line-height: 1.06; text-wrap: balance; }
  p { margin: 0; }
  a { color: inherit; text-decoration: none; }
  input, button { font: inherit; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

  .wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
  section { border-top: 1px solid var(--line); }

  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700; padding: 12px 22px; border-radius: 8px;
    border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
    cursor: pointer;
  }
  .btn:hover { background: #E6C27E; border-color: #E6C27E; }
  .btn-o { background: transparent; color: var(--fg); border-color: var(--line-2); font-weight: 500; }
  .btn-o:hover { border-color: var(--dim); }
  .btn-sm { padding: 8px 15px; font-size: 14px; border-radius: 7px; }

  .h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
  .lead { color: var(--muted); font-size: clamp(15.5px, 1.6vw, 17.5px); margin-top: 14px; max-width: 52ch; line-height: 1.55; }

  /* появление при прокрутке: включается скриптом, без него всё видно сразу */
  body.has-reveal .rv { opacity: 0; transform: translateY(52px) scale(.988); }
  body.has-reveal .rv.in {
    opacity: 1; transform: none;
    transition:
      opacity .5s ease var(--rvd, 0ms),
      transform .78s cubic-bezier(.16,.84,.28,1) var(--rvd, 0ms);
  }
  @media (prefers-reduced-motion: reduce) {
    body.has-reveal .rv { opacity: 1; transform: none; }
  }

  /* ---------- шапка ---------- */
  header { position: sticky; top: 0; z-index: 40; background: rgba(8, 12, 20, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .bar { display: flex; align-items: center; gap: 26px; height: 58px; }
  .logo { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
  nav { display: flex; gap: 20px; font-size: 14px; color: var(--muted); }
  nav a:hover { color: var(--fg); }
  .bar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .lang { font-family: var(--mono); font-size: 12px; color: var(--dim); }
  .lang b { color: var(--fg); font-weight: 500; }
  @media (max-width: 900px) { nav { display: none; } }

  /* ---------- герой ---------- */
  .hero { position: relative; text-align: center; padding-block: clamp(46px, 7vw, 86px) 0; }
  .hero::before {
    /* слой не шире экрана: иначе страница едет вбок */
    content: ""; position: absolute; left: 0; right: 0; top: -160px;
    height: calc(100% + 320px); z-index: 0; pointer-events: none;
    background:
      radial-gradient(70% 34% at 50% 16%, rgba(70, 110, 180, .20), transparent 72%),
      radial-gradient(78% 34% at 50% 74%, rgba(216, 178, 106, .14), transparent 74%);
    /* маска гасит края: без неё прямоугольник слоя виден как плашка */
    -webkit-mask-image: radial-gradient(60% 52% at 50% 50%, #000 35%, transparent 100%);
    mask-image: radial-gradient(60% 52% at 50% 50%, #000 35%, transparent 100%);
  }
  .hero > * { position: relative; z-index: 1; }
  .hero h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; max-width: 15ch; margin: 20px auto 0; }
  .hero .sub { color: var(--muted); font-size: clamp(16px, 1.7vw, 19px); margin: 18px auto 0; max-width: 46ch; line-height: 1.5; }
  .hero .cta { display: flex; gap: 11px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
  .hero-shot { position: relative; margin: clamp(38px, 5vw, 60px) auto 0; max-width: 1000px; }
  .hero-shot img { border: 1px solid var(--line-2); border-radius: 12px 12px 0 0; }
  .hero-shot::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

  /* ---------- лента ---------- */
  .feed { display: grid; gap: 16px; padding-block: clamp(44px, 6vw, 72px); }
  .feed .intro { margin-bottom: 8px; }
  .block { position: relative; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg-2); min-height: 300px; display: flex; align-items: center; }
  .block > img { position: absolute; top: 0; right: 0; height: 100%; width: 72%; object-fit: cover; object-position: top left; opacity: .55;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 44%); mask-image: linear-gradient(90deg, transparent 0%, #000 44%); }
  .block .text { position: relative; z-index: 1; padding: clamp(24px, 4vw, 44px); max-width: 52%; }
  .block h3 { font-size: clamp(20px, 2.4vw, 27px); font-weight: 700; }
  .block p { color: var(--muted); font-size: 15.5px; margin-top: 11px; line-height: 1.55; }
  .block .fact { margin-top: 16px; color: var(--dim); font-size: 14px; }
  .block .fact b { color: var(--fg); font-weight: 600; }
  .block.lead-block { min-height: 380px; }
  .block.lead-block h3 { font-size: clamp(24px, 3.2vw, 34px); }
  @media (max-width: 860px) {
    .block, .block.lead-block { min-height: 0; }
    .block > img { width: 100%; opacity: .16; -webkit-mask-image: none; mask-image: none; }
    .block .text { max-width: none; }
  }

  /* ---------- справочник (тизер) ---------- */
  .dict { padding-block: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: center; }
  @media (max-width: 860px) { .dict { grid-template-columns: 1fr; gap: 26px; } }
  .dict-search { border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); padding: 20px; }
  .dict-search input { width: 100%; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--fg); border-radius: 9px; padding: 12px 14px; font-size: 15px; font-family: var(--mono); }
  .dict-search input::placeholder { color: var(--dim); font-family: var(--sans); }
  /* высота списка зафиксирована: результаты меняются, а страница не прыгает */
  .dict-hits { margin-top: 12px; display: grid; align-content: start; min-height: 252px; }
  @media (max-width: 560px) { .dict-hits { min-height: 190px; } }
  .dict-hit { padding: 11px 6px; border-bottom: 1px solid var(--line); border-radius: 6px; }
  .dict-hit:last-child { border-bottom: none; }
  .dict-hit:hover { background: rgba(255,255,255,.03); }
  .dict-hit .code { font-family: var(--mono); font-size: 13px; color: var(--accent); }
  .dict-hit .t { display: block; font-size: 14.5px; margin-top: 3px; }
  .dict-more { margin-top: 14px; font-size: 14px; color: var(--muted); min-height: 21px; }

  /* ---------- демо ---------- */
  .demo { padding-block: clamp(44px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
  .demo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; color: var(--muted); font-size: 15px; }
  .demo li { padding-left: 18px; position: relative; }
  .demo li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
  @media (max-width: 820px) { .demo { grid-template-columns: 1fr; gap: 24px; } }

  /* ---------- цены ---------- */
  .prices { padding-block: clamp(44px, 6vw, 72px); }
  .rows { border-top: 1px solid var(--line); margin-top: 26px; }
  .row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 21px 0; border-bottom: 1px solid var(--line); }
  .row .term { font-size: 17px; font-weight: 600; }
  .row .term span { display: block; color: var(--dim); font-size: 13px; font-weight: 400; margin-top: 3px; font-variant-numeric: tabular-nums; }
  .row .who { color: var(--muted); font-size: 15px; max-width: 46ch; }
  .row .price { display: flex; align-items: baseline; gap: 14px; }
  .row .price b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .row.best { background: linear-gradient(90deg, rgba(78,216,196,.05), transparent 60%); }
  @media (max-width: 820px) { .row { grid-template-columns: 1fr; gap: 10px; } .row .price { justify-content: flex-start; } }

  .checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); margin-top: 32px; align-items: start; }
  @media (max-width: 860px) { .checkout { grid-template-columns: 1fr; gap: 26px; } }
  .buyform { display: flex; gap: 10px; flex-wrap: wrap; }
  .buyform input { background: var(--bg-3); border: 1px solid var(--line-2); color: var(--fg); border-radius: 8px; padding: 12px 14px; font-size: 15px; min-width: 220px; flex: 1; }
  .buyform input::placeholder { color: var(--dim); }
  .fine { color: var(--dim); font-size: 13px; margin-top: 12px; }
  .included { display: grid; gap: 10px; }
  .included h3 { font-size: 13.5px; color: var(--dim); font-weight: 400; }
  .included div { display: flex; gap: 11px; font-size: 15px; color: #D9DDE2; }
  .included i { color: var(--accent); font-style: normal; font-family: var(--mono); font-size: 12px; padding-top: 4px; }

  /* форма уехала в окно покупки — «Что входит в ключ» занимает всю ширину */
  .checkout-solo { grid-template-columns: minmax(0, 1fr); }

  .buym { width: min(430px, calc(100vw - 32px)); padding: 26px; border-radius: 14px;
          border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg);
          box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55); }
  .buym::backdrop { background: rgba(4, 7, 12, 0.72); }
  .buym h3 { font-size: 20px; font-weight: 700; padding-right: 30px; }
  .buym h3 b { color: var(--accent); font-variant-numeric: tabular-nums; }
  .buym-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
            display: grid; place-items: center; border: 0; border-radius: 8px;
            background: none; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; }
  .buym-x:hover { color: var(--fg); background: var(--bg-3); }
  .buym .buyform { margin-top: 18px; }
  .buym .buyform input, .buym .buyform button { flex: 1 1 100%; min-width: 0; }
  .buym a { color: var(--accent); }

  /* ---------- услуги ---------- */
  .svcs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 30px; }
  .svc { border: 1px solid var(--line-2); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
  .svc h3 { font-size: 17px; font-weight: 600; }
  .svc p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
  .svc .flow { display: grid; gap: 6px; margin-top: 2px; }
  .svc .flow div { display: flex; gap: 10px; font-size: 14px; color: #D9DDE2; }
  .svc .flow span:first-child { font-family: var(--mono); font-size: 11.5px; color: var(--accent); padding-top: 3px; }
  .svc .foot { margin-top: auto; padding-top: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
  .svc .stripe { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
  @media (max-width: 800px) { .svcs { grid-template-columns: 1fr; } }

  /* ---------- скачивание ---------- */
  .dl { padding-block: clamp(44px, 6vw, 72px); }
  .dl-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; margin-top: 28px; }
  .dl-card { padding: 22px; border-right: 1px solid var(--line-2); display: grid; gap: 5px; align-content: start; }
  .dl-card:last-child { border-right: none; }
  .dl-card:hover { background: var(--bg-2); }
  .dl-card .os { font-size: 18px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
  .dl-card .os em { font-style: normal; color: var(--accent); font-family: var(--mono); font-size: 13px; }
  .dl-card .size { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
  .dl-card .req { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
  @media (max-width: 860px) { .dl-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .dl-card:nth-child(2) { border-right: none; } .dl-card:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); } }
  @media (max-width: 520px) { .dl-grid { grid-template-columns: 1fr; } .dl-card { border-right: none; border-bottom: 1px solid var(--line-2); } .dl-card:last-child { border-bottom: none; } }
  .dl-note { margin-top: 16px; color: var(--dim); font-size: 14px; }

  /* ---------- начало работы ---------- */
  .start { padding-block: clamp(44px, 6vw, 72px); }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; margin-top: 28px; }
  .step h3 { font-size: 17px; font-weight: 600; }
  .step p { color: var(--muted); font-size: 15px; margin-top: 8px; line-height: 1.55; }
  .step code { font-family: var(--mono); font-size: 13.5px; color: var(--fg); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
  @media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 22px; } }

  table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
  th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
  thead th { font-size: 13px; font-weight: 500; color: var(--dim); background: var(--bg-2); }
  tbody th { font-weight: 600; white-space: nowrap; }
  tbody th span, td span { display: block; color: var(--dim); font-size: 13.5px; margin-top: 3px; }
  tr:last-child th, tr:last-child td { border-bottom: none; }

  /* ---------- подвал ---------- */
  footer { border-top: 1px solid var(--line); padding-block: 40px 52px; }
  .foot-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
  .foot-top h4 { font-size: 13.5px; color: var(--dim); font-weight: 400; margin: 0 0 12px; }
  .foot-top a { display: block; font-size: 14.5px; color: var(--muted); padding: 4px 0; }
  .foot-top a:hover { color: var(--fg); }
  .foot-top .brand { font-size: 17px; font-weight: 700; }
  .foot-top .contacts a { font-family: var(--mono); font-size: 14px; color: var(--accent); }
  .foot-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; max-width: 76ch; line-height: 1.6; }
  @media (max-width: 760px) { .foot-top { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* --- добавлено при переносе в шаблоны --- */
.lang a { color: var(--dim); text-decoration: none; }
.lang a.on { color: var(--fg); font-weight: 500; }
.foot-top .tagline { color: var(--dim); font-size: 14px; margin-top: 10px; max-width: 34ch; line-height: 1.55; }
.foot-top a.plain { font-family: var(--sans); color: var(--muted); }


.dict-cta, .demo-cta { margin-top: 22px; }
.dict-hit { display: block; }


/* ===== справочник ошибок (перенос из макета) ===== */
.alerts p { margin: 0; }
.alerts a { color: inherit; }
.alerts .search { position: relative; }
.alerts .hit { display: block; border-bottom: 1px solid var(--line); padding: 12px 8px; text-decoration: none; border-radius: 6px; }
.alerts .hit:last-child { border-bottom: none; }
.alerts .hit:hover { background: rgba(255,255,255,.03); }
.alerts .hit[aria-current="page"] { background: rgba(78,216,196,.07); box-shadow: inset 2px 0 0 var(--accent); }
.alerts .hit .code { font-family: var(--mono); font-size: 13.5px; color: var(--accent); }
.alerts .hit .sum { display: block; font-size: 14.5px; margin-top: 3px; }
.alerts .hit .node { display: block; color: var(--dim); font-size: 12.5px; margin-top: 3px; }
.alerts .hit mark { background: rgba(240,180,41,.22); color: inherit; border-radius: 2px; padding: 0 1px; }
.alerts .empty { color: var(--dim); font-size: 14px; padding: 20px 8px; }
.alerts .card .top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.alerts .card .code { font-family: var(--mono); font-size: clamp(16px, 2.2vw, 22px); color: var(--accent); }
.alerts .state { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 3px 11px; }
.alerts .state i { width: 7px; height: 7px; border-radius: 50%; background: var(--err); display: block; }
.alerts .state.warnlevel i { background: var(--warn); }
.alerts .state i { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.alerts .card h1.code { font-size: clamp(20px, 2.6vw, 28px); font-weight: 700; margin: 0; max-width: none; overflow-wrap: anywhere; }
.alerts .card dl { margin: 26px 0 0; display: grid; gap: 20px; }
.alerts .card dt { font-size: 13px; color: var(--dim); margin-bottom: 5px; }
.alerts .card dd { margin: 0; font-size: 15.5px; color: #D9DDE2; line-height: 1.58; max-width: 70ch; }
.alerts .card .todo { display: grid; gap: 7px; }
.alerts .card .todo div { display: flex; gap: 10px; }
.alerts .card .todo span:first-child { color: var(--accent); font-family: var(--mono); font-size: 12px; padding-top: 4px; }
.alerts .related { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.alerts .related h2 { font-size: 14px; color: var(--dim); font-weight: 400; margin-bottom: 10px; }
.alerts .related .links { display: flex; flex-wrap: wrap; gap: 8px; }
.alerts .related a { font-family: var(--mono); font-size: 12.5px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 11px; text-decoration: none; }
.alerts .related a:hover { color: var(--fg); border-color: var(--dim); }
.alerts .cta { margin-top: 24px; padding: 18px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-3); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.alerts .cta p { color: var(--muted); font-size: 14.5px; max-width: 42ch; }
.alerts .swap { animation: in .16s ease-out; }
@keyframes in { from { opacity: 0; } to { opacity: 1; } }
/* --- раздел справочника --- */
.alerts { padding-block: clamp(36px, 5vw, 64px); }
.alerts .split { display: grid; grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  border: 1px solid var(--line-2); border-radius: 12px; margin-top: 26px; background: var(--bg-2); min-height: 520px; }
.alerts .left { border-right: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; }
.alerts .list { margin-top: 10px; overflow-y: auto; max-height: 520px; }
.alerts .search input { width: 100%; background: var(--bg-3); border: 1px solid var(--line-2);
  color: var(--fg); border-radius: 9px; padding: 12px 14px; font-size: 15px; font-family: var(--mono); }
.alerts .search input::placeholder { color: var(--dim); font-family: var(--sans); }
.variant-head { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--dim); font-size: 13px; }
.wrap.narrow { max-width: 760px; }
.notice { color: var(--muted); font-size: 16px; margin-top: 24px; }
.empty.pick { padding: 40px 24px; }
@media (max-width: 880px) {
  .alerts .split { grid-template-columns: 1fr; min-height: 0; }
  .alerts .left { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ===== удалённая помощь ===== */
.remote { padding-block: clamp(44px, 6vw, 72px); }
.kicker { color: var(--accent); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.remote-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.rstep { border: 1px solid var(--line-2); border-radius: 12px; padding: 22px; background: var(--bg-2); display: flex; flex-direction: column; gap: 9px; }
.rnum { font-size: 13px; font-weight: 700; color: var(--accent); }
.rstep h3 { font-size: 17px; font-weight: 700; }
.rstep p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.rpanel { margin-top: auto; padding-top: 16px; display: grid; gap: 8px; }
.rrow { display: flex; justify-content: space-between; align-items: baseline; border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 14px; background: var(--bg-3); }
.rrow span { color: var(--dim); font-size: 13px; }
.rrow b { font-family: var(--mono); font-size: 17px; letter-spacing: .06em; color: var(--fg); }
.rwait { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 13px; padding-top: 2px; }
.rwait i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: block; }
@media (prefers-reduced-motion: no-preference) {
  .rwait i { animation: rpulse 2s ease-in-out infinite; }
  @keyframes rpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
}
.rpanel-form { gap: 8px; }
.rfield { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 14px; background: var(--bg-3); color: var(--dim); font-size: 13px; }
.rfield b { font-family: var(--mono); font-size: 16px; color: var(--fg); margin-left: 8px; letter-spacing: .06em; }
.rbtn { display: inline-flex; justify-content: center; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 8px; }
.remote-vs { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.remote-vs h3 { font-size: 18px; font-weight: 700; }
.remote-vs ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; max-width: 70ch; }
.remote-vs li { color: #D6DCE6; font-size: 15.5px; padding-left: 20px; position: relative; }
.remote-vs li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.remote-cta { margin-top: 24px; }
@media (max-width: 860px) { .remote-flow { grid-template-columns: 1fr; } }
.rlive { display: flex; align-items: center; gap: 8px; color: var(--fg); font-size: 13.5px; font-weight: 600; }
.rlive i { width: 7px; height: 7px; border-radius: 50%; background: #46C08A; display: block; }
.rlog { color: var(--dim); font-size: 13px; border-left: 2px solid var(--line-2); padding-left: 10px; }

  /* Баннер согласия на аналитику. Появляется поверх подвала и не перекрывает
     содержимое: посетитель может читать страницу, не отвечая. */
  .consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
             max-width: 640px; margin: 0 auto; background: var(--bg-2);
             border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px;
             box-shadow: 0 12px 32px rgba(0,0,0,.45); }
  .consent p { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }
  .consent p a { color: var(--accent); }
  /* Кнопки одного размера и веса: отказ не должен выглядеть неохотнее согласия. */
  .consent-actions { display: flex; gap: 10px; }
  .consent-actions .btn { flex: 1; justify-content: center; text-align: center; }
  @media (max-width: 480px) {
    .consent { left: 10px; right: 10px; bottom: 10px; padding: 14px; }
  }

/* ===== телефон: меню, нижняя панель, лента вбок ===== */
.menu-btn, .nav-lang { display: none; }
.feed-track { display: grid; gap: 16px; }
.mbar { display: none; }
.row-click { cursor: pointer; }
.row-click:hover .term { color: var(--accent); }

@media (max-width: 900px) {
  /* Меню раскрывается под шапкой кнопкой «☰» (site.js). */
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
              width: 38px; height: 34px; padding: 0; border: 1px solid var(--line-2);
              border-radius: 7px; background: transparent; cursor: pointer; }
  .menu-btn i { display: block; width: 16px; height: 1.5px; margin: 0 auto; background: var(--fg); }
  nav.open { display: flex; flex-direction: column; gap: 0; position: absolute; top: 58px; left: 0; right: 0;
             padding: 4px clamp(16px, 4vw, 40px) 16px; background: var(--bg);
             border-bottom: 1px solid var(--line); font-size: 16px; }
  nav.open a { padding: 13px 0; color: var(--fg); border-bottom: 1px solid var(--line); }
  nav.open .nav-lang { display: block; padding-top: 14px; font-size: 14px; }
  nav.open .nav-lang a { display: inline; padding: 0; border: none; }
  .bar .right .lang, .bar .right .buy-top { display: none; }

  /* Нижняя панель «Демо · Купить ключ». На главной ждёт, пока кнопки
     первого экрана уйдут за край. Отступ у body — чтобы не закрывала подвал. */
  .mbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
          padding: 10px clamp(16px, 4vw, 40px) calc(10px + env(safe-area-inset-bottom));
          background: rgba(8, 12, 20, .92); backdrop-filter: blur(12px);
          border-top: 1px solid var(--line); transition: transform .25s ease; }
  .mbar .btn { flex: 1; justify-content: center; text-align: center; }
  .mbar[data-after-hero]:not(.on) { transform: translateY(110%); }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  /* баннер согласия сидит там же, внизу, — панель ему не мешает */
  body:has(.consent) .mbar { display: none; }
}

@media (max-width: 640px) {
  /* Четыре блока возможностей — лентой вбок; следующий выглядывает из-за
     края, по нему видно, что лента листается. */
  .feed-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
                margin-inline: calc(-1 * clamp(16px, 4vw, 40px));
                padding-inline: clamp(16px, 4vw, 40px);
                scroll-padding-inline: clamp(16px, 4vw, 40px); scrollbar-width: none; }
  .feed-track::-webkit-scrollbar { display: none; }
  .feed-track .block { flex: 0 0 86%; scroll-snap-align: start; align-items: flex-start; }
}
