/* happ-app.living — тема «разобранный прибор».

   Сайт разбирает программу так, как разбирают устройство: контур окна,
   пронумерованные детали, выноски, шильдик с характеристиками. Отсюда
   и язык темы — тонкая чертёжная линия вместо теней, квадратные номера
   деталей в моноширинном, холодный приборный синий как единственный
   акцент и очень скупая заливка.

   Шрифты: AdventPro — узкая техническая, для заголовков и надписей на
   схеме; Geist — нейтральная для текста; PtMono — только для данных,
   номеров деталей, версий и кодов.
   -------------------------------------------------------------------- */

@import url('/fonts/faces.css');

:root {
  --paper: #EDF0F3;
  --grid: #DDE4EA;
  --surface: #FFFFFF;
  --surface2: #F5F8FA;
  --ink: #131920;
  --ink2: #44505D;
  --muted: #6C7884;
  --line: #C6D0D9;
  --line2: #E0E6EB;
  --acc: #17568F;
  --acc-soft: #E7EFF7;
  --acc-ink: #0F3F6B;
  --ok: #1B7A50;
  --warn: #9C6A12;
  --bad: #A03127;

  --f-disp: 'AdventPro', 'Arial Narrow', system-ui, sans-serif;
  --f-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-data: 'PtMono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --wrap: 1180px;
  --r: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0F1317;
    --grid: #181E25;
    --surface: #161B21;
    --surface2: #1B222A;
    --ink: #E7EDF3;
    --ink2: #BBC6D1;
    --muted: #8A96A3;
    --line: #2C343D;
    --line2: #222A32;
    --acc: #6EA8DE;
    --acc-soft: #16222F;
    --acc-ink: #9CC6EE;
    --ok: #4EA87C;
    --warn: #C79A3E;
    --bad: #D2685C;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 17px/1.62 var(--f-body);
  color: var(--ink);
  background: var(--paper);
  /* Чертёжная сетка: 24 px, почти неразличима, но даёт бумаге масштаб. */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

img { max-width: 100%; height: auto; }

a { color: var(--acc); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--acc-ink); }

h1, h2, h3 { font-family: var(--f-disp); font-weight: 700; letter-spacing: .01em; line-height: 1.12; }

code, kbd, pre { font-family: var(--f-data); }

:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--acc); color: #fff;
  padding: 8px 16px; z-index: 60;
}
.skip:focus { left: 0; }

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

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ============================ ШАПКА ============================ */

.hdr {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky; top: 0; z-index: 40;
}
.hdr__in {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 20px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand__badge {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface2); border-radius: var(--r);
}
.brand__badge img { display: block; width: 30px; height: 30px; }
.brand__word { display: grid; }
.brand__row { display: flex; align-items: baseline; gap: 6px; }
.brand__row b { font: 700 20px/1 var(--f-disp); letter-spacing: .14em; }
.brand__row em {
  font: 400 11px/1 var(--f-data); font-style: normal; color: var(--acc);
  border: 1px solid var(--acc); padding: 3px 5px 2px; letter-spacing: .08em;
}
.brand__tag { font: 400 10px/1.3 var(--f-data); color: var(--muted); letter-spacing: .06em; margin-top: 3px; }

.hdr__nav { display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.hdr__links { display: flex; gap: 16px; }
.hdr__links a {
  font: 700 13px/1 var(--f-disp); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink2); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.hdr__links a:hover { color: var(--acc); }
.hdr__links a[aria-current] { color: var(--acc); border-bottom-color: var(--acc); }

.searchbtn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 7px 10px; font: 400 13px/1 var(--f-body); color: var(--ink2);
}
.searchbtn:hover { border-color: var(--acc); color: var(--acc); }
.searchbtn kbd {
  font-size: 11px; border: 1px solid var(--line); padding: 1px 5px; color: var(--muted);
}

.burger {
  display: none; cursor: pointer; background: var(--surface2); color: var(--ink2);
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 8px 10px; font: 700 12px/1 var(--f-disp); letter-spacing: .1em;
}

.mnav { display: none; border-top: 1px solid var(--line2); background: var(--surface2); }
.mnav.is-open { display: block; }
.mnav ul { list-style: none; margin: 0; padding: 6px 16px 12px; display: grid; gap: 2px; }
.mnav a {
  display: block; padding: 9px 4px; text-decoration: none; color: var(--ink);
  font: 700 14px/1 var(--f-disp); letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--line2);
}

/* ============================ КНОПКИ ============================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r); text-decoration: none;
  font: 700 14px/1 var(--f-disp); letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer;
}
.btn--go { background: var(--acc); color: #fff; border-color: var(--acc); }
.btn--go:hover { background: var(--acc-ink); border-color: var(--acc-ink); color: #fff; }
.btn--go:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--acc); color: var(--acc); }
.btn--do { background: var(--surface); color: var(--acc); border-color: var(--acc); }
.btn--do:hover { background: var(--acc-soft); }

@media (prefers-color-scheme: dark) {
  .btn--go { color: #0C1116; }
  .btn--go:hover { color: #0C1116; }
}

.hdr__go { padding: 10px 14px; font-size: 13px; }
.hdr__go-s { display: none; }

/* ============================ МАКЕТ ============================ */

.layout {
  max-width: var(--wrap); margin: 0 auto; padding: 28px 20px 64px;
  display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 40px; align-items: start;
  flex: 1;
}
main { min-width: 0; }

/* ============================ САЙДБАР ============================ */

.side { position: sticky; top: 76px; display: grid; gap: 24px; }
.side__grp { display: grid; gap: 10px; }
.side__ttl {
  font: 700 12px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.side__list { list-style: none; margin: 0; padding: 0; }
.side__list li + li { border-top: 1px dotted var(--line2); }
.side__list a {
  display: grid; grid-template-columns: 46px 1fr; gap: 8px; align-items: start;
  padding: 8px 0; text-decoration: none; color: var(--ink2); font-size: 14px; line-height: 1.35;
}
.side__list a:hover { color: var(--acc); }
.side__i { font: 400 11px/1.4 var(--f-data); color: var(--muted); letter-spacing: .02em; }
.side__list a[aria-current] { color: var(--acc); font-weight: 700; }
.side__list a[aria-current] .side__i { color: var(--acc); }
.side__flat { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.side__flat a {
  display: inline-block; padding: 5px 9px; border: 1px solid var(--line); border-radius: var(--r);
  font-size: 12px; color: var(--ink2); text-decoration: none; background: var(--surface);
}
.side__flat a:hover { border-color: var(--acc); color: var(--acc); }

.side__cta {
  border: 1px solid var(--line); border-left: 3px solid var(--acc);
  background: var(--surface); padding: 16px; display: grid; gap: 8px;
}
.side__cta-tag { font: 400 10px/1.4 var(--f-data); letter-spacing: .08em; color: var(--acc); }
.side__cta-ttl { margin: 0; font: 700 17px/1.2 var(--f-disp); }
.side__cta-txt { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.side__cta .btn { width: 100%; margin-top: 4px; }

/* ============================ СТАТЬЯ ============================ */

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font: 400 12px/1.4 var(--f-data); color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--acc); }
.crumbs i { font-style: normal; color: var(--line); }

.art { max-width: 760px; }
.art h1 { font-size: clamp(28px, 4.2vw, 38px); margin: 0 0 10px; }
.art__meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font: 400 11px/1 var(--f-data); color: var(--muted); letter-spacing: .04em; }
.art__rt { border: 1px solid var(--line); padding: 3px 6px; }
.art__lead { font-size: 19px; line-height: 1.55; color: var(--ink2); margin: 16px 0 24px; }
.art h2 {
  font-size: 24px; margin: 40px 0 12px; padding-top: 14px; border-top: 1px solid var(--line);
}
.art h2:first-of-type { margin-top: 32px; }
.art h3 { font-size: 19px; margin: 26px 0 8px; }
.art p { margin: 0 0 16px; }
.art ul:not([class]), .art ol:not([class]) { margin: 0 0 20px; padding: 0; list-style: none; }
.art ul:not([class]) > li, .art ol:not([class]) > li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.art ul:not([class]) > li::before {
  content: ''; position: absolute; left: 6px; top: 11px; width: 8px; height: 1px; background: var(--acc);
}
.art ol:not([class]) { counter-reset: n; }
.art ol:not([class]) > li::before {
  counter-increment: n; content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: 2px; font: 400 11px/1.6 var(--f-data); color: var(--acc);
}
.art code {
  font-size: .88em; background: var(--surface2); border: 1px solid var(--line2);
  padding: 1px 5px; border-radius: 2px; word-break: break-word;
}
pre {
  background: var(--surface2); border: 1px solid var(--line2); border-left: 3px solid var(--acc);
  padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.55;
}

/* ============================ ТАБЛИЦЫ ============================ */

.tw { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line2); vertical-align: top; }
th {
  font: 700 11px/1.3 var(--f-disp); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: var(--surface2); border-bottom: 1px solid var(--line);
}
tr:last-child td { border-bottom: 0; }

/* ============================ ВРЕЗКИ ============================ */

.note {
  margin: 0 0 24px; padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--line); border-left: 3px solid var(--muted);
}
.note p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; }
.note p:last-child { margin-bottom: 0; }
.note ul { margin: 8px 0 0; padding: 0; list-style: none; }
.note li { position: relative; padding-left: 18px; font-size: 15px; margin-bottom: 6px; }
.note li::before { content: ''; position: absolute; left: 2px; top: 11px; width: 7px; height: 1px; background: currentColor; opacity: .5; }
.note__ttl { display: block; font: 700 13px/1.3 var(--f-disp); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.note--info { border-left-color: var(--acc); }
.note--info .note__ttl { color: var(--acc); }
.note--warn { border-left-color: var(--warn); }
.note--warn .note__ttl { color: var(--warn); }
.note--ok { border-left-color: var(--ok); }
.note--ok .note__ttl { color: var(--ok); }
.note--down { border-left-color: var(--bad); }
.note--down .note__ttl { color: var(--bad); }

/* ============================ КОРОТКИЙ ОТВЕТ ============================ */

.ans {
  margin: 0 0 26px; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-top: 2px solid var(--acc);
}
.ans__hd { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.ans__cap { font: 400 11px/1 var(--f-data); letter-spacing: .12em; color: var(--acc); }
.ans__take { font: 400 11px/1 var(--f-data); color: var(--muted); border: 1px solid var(--line); padding: 4px 7px; }
.ans__txt { margin: 0; font-size: 17px; line-height: 1.55; }
.ans__list { list-style: none; margin: 12px 0 0; padding: 0; counter-reset: a; }
.ans__list li { position: relative; padding-left: 26px; margin-bottom: 7px; font-size: 15px; }
.ans__list li::before {
  counter-increment: a; content: counter(a, decimal-leading-zero);
  position: absolute; left: 0; top: 2px; font: 400 11px/1.5 var(--f-data); color: var(--acc);
}

/* ============================ ПАСПОРТ ДЕТАЛИ ============================ */

.spec { margin: 0 0 26px; border: 1px solid var(--line); background: var(--surface); }
.spec__cap {
  display: block; padding: 9px 16px; border-bottom: 1px solid var(--line); background: var(--surface2);
  font: 700 11px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.spec__rows { margin: 0; padding: 6px 16px; display: grid; }
.spec__rows > div {
  display: grid; grid-template-columns: 200px 1fr; gap: 12px; padding: 9px 0;
  border-bottom: 1px dotted var(--line2);
}
.spec__rows > div:last-child { border-bottom: 0; }
.spec__rows dt { font: 400 12px/1.4 var(--f-data); color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }
.spec__rows dd { margin: 0; font-size: 15px; line-height: 1.45; }
.spec__fine { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line2); font-size: 12px; color: var(--muted); background: var(--surface2); }

/* ============================ ВЫНОСКИ ============================ */

.parts { margin: 0 0 26px; }
.parts__cap { display: block; font: 700 11px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.parts__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.parts__i {
  display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--line2);
}
.parts__n {
  font: 400 12px/1 var(--f-data); color: var(--acc); border: 1px solid var(--acc);
  padding: 5px 0; text-align: center; letter-spacing: .04em;
}
.parts__mid { display: grid; gap: 3px; }
.parts__ttl { font: 700 16px/1.25 var(--f-disp); }
.parts__ttl a { text-decoration: none; }
.parts__ttl a:hover { text-decoration: underline; }
.parts__txt { font-size: 14px; line-height: 1.5; color: var(--ink2); }

/* ============================ ДВЕ КОЛОНКИ ============================ */

.both { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 26px; border: 1px solid var(--line); background: var(--surface); }
.both__col { padding: 14px 16px; }
.both__col--yes { border-right: 1px solid var(--line); }
.both__cap { display: block; font: 700 11px/1 var(--f-disp); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.both__col--yes .both__cap { color: var(--ok); }
.both__col--no .both__cap { color: var(--bad); }
.both__col ul { list-style: none; margin: 0; padding: 0; }
.both__col li { position: relative; padding-left: 20px; margin-bottom: 9px; font-size: 14px; line-height: 1.5; }
.both__col--yes li::before { content: '+'; position: absolute; left: 2px; top: 0; color: var(--ok); font: 400 13px/1.6 var(--f-data); }
.both__col--no li::before { content: '−'; position: absolute; left: 2px; top: 0; color: var(--bad); font: 400 13px/1.6 var(--f-data); }

/* ============================ РАЗБОР СБОЯ ============================ */

.fix { margin: 0 0 26px; border: 1px solid var(--line); background: var(--surface); }
.fix__cap {
  display: block; padding: 9px 16px; background: var(--surface2); border-bottom: 1px solid var(--line);
  font: 700 11px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.fix__list { list-style: none; margin: 0; padding: 0; }
.fix__i {
  display: grid; grid-template-columns: 34px 1fr; gap: 4px 14px; padding: 14px 16px;
  border-bottom: 1px solid var(--line2);
}
.fix__i:last-child { border-bottom: 0; }
.fix__n { grid-row: span 3; font: 400 12px/1 var(--f-data); color: var(--acc); padding-top: 4px; }
.fix__sign { font: 700 16px/1.3 var(--f-disp); }
.fix__why { font-size: 14px; line-height: 1.5; color: var(--ink2); }
.fix__do { font-size: 14px; line-height: 1.5; position: relative; padding-left: 22px; }
.fix__do::before { content: '→'; position: absolute; left: 0; top: 0; color: var(--acc); font-family: var(--f-data); font-size: 13px; }

/* ============================ СТЕНА ОТВЕТОВ ============================ */

.wall { margin: 0 0 26px; }
.wall__cap { display: block; font: 700 11px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.wall__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line2); border: 1px solid var(--line2); }
.wall__list a { display: grid; gap: 4px; padding: 12px 14px; background: var(--surface); text-decoration: none; color: var(--ink); height: 100%; }
.wall__list a:hover { background: var(--acc-soft); }
.wall__list b { font: 700 15px/1.25 var(--f-disp); }
.wall__list span { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ============================ СТРОКИ-ССЫЛКИ ============================ */

.rows { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--line2); text-decoration: none; color: inherit;
}
.row:hover { background: var(--acc-soft); }
.row__idx { font: 400 12px/1 var(--f-data); color: var(--acc); border: 1px solid var(--acc); padding: 5px 0; text-align: center; }
.row__mid { display: grid; gap: 2px; min-width: 0; }
.row__ttl { font: 700 16px/1.25 var(--f-disp); }
.row__sub { font-size: 13px; line-height: 1.4; color: var(--muted); }
.row__go { font: 400 11px/1 var(--f-data); color: var(--acc); letter-spacing: .04em; }

/* ============================ SIGNATURE: КАРТА ОКНА ============================ */

.map {
  margin: 0 0 32px; border: 1px solid var(--line); background: var(--surface);
  background-image: linear-gradient(var(--line2) 1px, transparent 1px), linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: 16px 16px, 16px 16px;
}
.map__hd { padding: 14px 18px 0; }
.map__cap { display: block; font: 700 11px/1.4 var(--f-disp); letter-spacing: .16em; text-transform: uppercase; color: var(--acc); }
.map__lead { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink2); max-width: 62ch; }
.map__body { padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.map__fine { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line2); background: var(--surface2); font-size: 12px; line-height: 1.5; color: var(--muted); }

.win { border: 1px solid var(--ink); background: var(--surface); }
.win__bar {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px;
  border-bottom: 1px solid var(--ink); background: var(--surface2);
}
.win__ctl { width: 26px; height: 8px; border: 1px solid var(--line); border-right: 0; border-left: 0; position: relative; }
.win__ctl::before, .win__ctl::after { content: ''; position: absolute; top: -1px; width: 8px; height: 8px; border: 1px solid var(--line); }
.win__ctl::before { left: 0; }
.win__ctl::after { right: 0; }
.win__ttl { font: 700 12px/1 var(--f-disp); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); }
.win__ver { margin-left: auto; font: 400 10px/1 var(--f-data); color: var(--muted); }

.win__screen {
  display: grid; gap: 6px; padding: 8px;
  grid-template-columns: 1fr 1fr 40px 40px;
  grid-template-areas:
    "head head add  set"
    "sub  sub  sub  sub"
    "list list list ping"
    "mode mode btn  btn";
}
.part--head { grid-area: head; }
.part--add { grid-area: add; }
.part--set { grid-area: set; }
.part--sub { grid-area: sub; }
.part--list { grid-area: list; min-height: 104px; }
.part--ping { grid-area: ping; }
.part--mode { grid-area: mode; }
.part--btn { grid-area: btn; }

.part {
  position: relative; display: grid; gap: 4px; align-content: start; text-align: left;
  padding: 8px 8px 8px 10px; cursor: pointer;
  background: var(--surface); border: 1px dashed var(--line); border-radius: 2px;
  color: var(--ink); font-family: var(--f-body);
}
.part:hover { border-color: var(--acc); border-style: solid; }
.part.is-on { border: 1px solid var(--acc); background: var(--acc-soft); box-shadow: inset 2px 0 0 var(--acc); }
.part__n {
  position: absolute; top: -1px; right: -1px; font: 400 9px/1 var(--f-data);
  color: var(--surface); background: var(--muted); padding: 3px 4px; letter-spacing: .04em;
}
.part.is-on .part__n { background: var(--acc); }
.part__lbl { font: 700 10px/1.2 var(--f-disp); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-right: 22px; }
.part.is-on .part__lbl { color: var(--acc); }
.part__mock { display: grid; gap: 3px; font: 400 11px/1.3 var(--f-data); color: var(--ink2); }
.part--add, .part--set { justify-items: center; text-align: center; padding: 6px 4px 12px; }
.part--ping { padding-bottom: 12px; }
.part--ping .part__n { top: auto; bottom: -1px; right: -1px; }
.part--ping .part__lbl { padding-right: 0; }
.part--add .part__n, .part--set .part__n { top: auto; bottom: -1px; right: -1px; }
.part--add .part__lbl, .part--set .part__lbl { padding-right: 0; font-size: 8px; line-height: 1.15; letter-spacing: .04em; }
.part--add .part__mock, .part--set .part__mock { font-size: 17px; justify-items: center; }
.part--btn .part__mock { font: 700 11px/1 var(--f-disp); letter-spacing: .1em; color: #fff; background: var(--acc); padding: 8px 4px; text-align: center; }
.part--mode .part__mock { display: flex; align-items: center; gap: 6px; }
.mock__nm { font-style: normal; font-size: 12px; color: var(--ink); }
.mock__sub, .mock__txt { font-style: normal; font-size: 10px; color: var(--muted); }
.mock__bar { display: block; height: 4px; background: var(--line); position: relative; }
.mock__bar::before { content: ''; position: absolute; inset: 0 40% 0 0; background: var(--acc); }
.mock__row { display: flex; justify-content: space-between; align-items: center; font-style: normal; border-bottom: 1px dotted var(--line2); padding-bottom: 2px; }
.mock__row b { font-weight: 400; font-size: 11px; }
.mock__row u { text-decoration: none; }
.mock__ms { font-style: normal; font-size: 15px; color: var(--ok); }
.mock__u { font-style: normal; font-size: 9px; color: var(--muted); }
.mock__sw { width: 22px; height: 12px; border: 1px solid var(--acc); position: relative; display: inline-block; }
.mock__sw::before { content: ''; position: absolute; top: 1px; right: 1px; width: 8px; height: 8px; background: var(--acc); }

.map__info { display: grid; align-content: start; gap: 12px; }
html.js .map__info { min-height: 210px; }
.ptab { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); background: var(--surface2); }
.ptab + .ptab { margin-top: 0; }
html.js .ptab { display: none; }
html.js .ptab.is-on { display: grid; }
.ptab__n { font: 400 11px/1 var(--f-data); color: var(--acc); }
.ptab__ttl { margin: 0; font-size: 20px; }
.ptab__sub { margin: 0; font: 400 11px/1 var(--f-data); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.ptab__txt { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.ptab__go { font: 700 13px/1 var(--f-disp); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.ptab__go:hover { text-decoration: underline; }

/* ============================ SIGNATURE: ПОЛОСА ДЕТАЛИРОВКИ ============================ */

.strip { margin: 0 0 26px; border: 1px solid var(--line); background: var(--surface); padding: 10px 12px; }
.strip__cap { display: block; font: 400 10px/1 var(--f-data); letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }
.strip__row { list-style: none; margin: 0; padding: 0 0 2px; display: flex; gap: 6px; overflow-x: auto; }
.strip__i { flex: 0 0 auto; }
.strip__i a {
  display: grid; gap: 2px; padding: 6px 9px; border: 1px solid var(--line2); border-radius: 2px;
  text-decoration: none; color: var(--ink2); background: var(--surface2); min-width: 92px;
}
.strip__i a:hover { border-color: var(--acc); color: var(--acc); }
.strip__i b { font: 400 10px/1 var(--f-data); color: var(--muted); }
.strip__i span { font: 700 11px/1.2 var(--f-disp); letter-spacing: .04em; text-transform: uppercase; }
.strip__i.is-here a { border-color: var(--acc); background: var(--acc-soft); color: var(--acc); }
.strip__i.is-here b { color: var(--acc); }
.strip__here { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.strip__here b { font-family: var(--f-data); font-weight: 400; color: var(--acc); }

/* ============================ ЛЕНТА РАЗДЕЛОВ ============================ */

.strack { margin: 0 0 26px; }
.strack__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.strack__c a {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink2); border-radius: var(--r);
}
.strack__c a:hover { border-color: var(--acc); color: var(--acc); }
.strack__i { font: 400 10px/1 var(--f-data); color: var(--acc); }
.strack__n { font: 700 12px/1 var(--f-disp); letter-spacing: .06em; text-transform: uppercase; }
.strack__c.is-here a { background: var(--acc); border-color: var(--acc); color: #fff; }
.strack__c.is-here .strack__i { color: #fff; }

/* ============================ КАТАЛОГ РАЗДЕЛОВ ============================ */

.cat { display: grid; gap: 1px; background: var(--line2); border: 1px solid var(--line2); margin: 0 0 28px; }
.cat__i {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 14px 16px; background: var(--surface); text-decoration: none; color: inherit;
}
.cat__i:hover { background: var(--acc-soft); }
.cat__code { font: 400 13px/1 var(--f-data); color: var(--acc); border: 1px solid var(--acc); padding: 7px 0; text-align: center; letter-spacing: .04em; }
.cat__mid { display: grid; gap: 3px; min-width: 0; }
.cat__ttl { font: 700 18px/1.2 var(--f-disp); }
.cat__sub { font-size: 14px; line-height: 1.45; color: var(--ink2); }
.cat__sample { font: 400 11px/1.4 var(--f-data); color: var(--muted); }
.cat__n { font: 400 20px/1 var(--f-data); color: var(--muted); text-align: center; }
.cat__n small { display: block; font-size: 9px; margin-top: 3px; }

/* ============================ ВЕДОМОСТЬ ДОСТУПА ============================ */

.tar { margin: 0 0 26px; border: 1px solid var(--line); background: var(--surface); }
.tar__cap {
  display: block; padding: 9px 16px; background: var(--surface2); border-bottom: 1px solid var(--line);
  font: 700 11px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.tar__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.tar__i { padding: 14px 16px; display: grid; gap: 4px; border-right: 1px solid var(--line2); }
.tar__i:last-child { border-right: 0; }
.tar__nm { font: 700 13px/1 var(--f-disp); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tar__sum { font: 400 30px/1 var(--f-data); color: var(--ink); }
.tar__sum i { font-style: normal; font-size: 15px; margin-left: 3px; color: var(--muted); }
.tar__unit { font: 400 11px/1.4 var(--f-data); color: var(--ink2); }
.tar__save { font-size: 12px; line-height: 1.4; color: var(--ok); }
.tar__save--base { color: var(--muted); }
.tar__fine { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line2); font-size: 13px; line-height: 1.5; color: var(--ink2); }
.tar__go { margin: 0 16px 16px; }

/* ============================ ПРИЗЫВЫ ============================ */

.spark {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center;
  margin: 0 0 26px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--acc);
  background: var(--surface);
}
.spark__tag { grid-column: 1 / -1; font: 400 10px/1.4 var(--f-data); letter-spacing: .1em; color: var(--acc); }
.spark__txt { margin: 0; font-size: 15px; line-height: 1.5; }
.spark .btn { white-space: nowrap; }

.cta {
  margin: 30px 0; padding: 20px; border: 1px solid var(--acc); background: var(--surface);
  display: grid; gap: 10px;
}
.cta--trial { border-color: var(--line); border-top: 3px solid var(--acc); }
.cta__tag { font: 400 10px/1.4 var(--f-data); letter-spacing: .1em; color: var(--acc); }
.cta__ttl { margin: 0; font: 700 22px/1.2 var(--f-disp); }
.cta__txt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.cta__pts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.cta__pts li { position: relative; padding-left: 16px; font: 400 12px/1.4 var(--f-data); color: var(--ink2); }
.cta__pts li::before { content: '·'; position: absolute; left: 4px; color: var(--acc); }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta__fine { font-size: 12px; color: var(--muted); }

.goto {
  margin: 0 0 26px; padding: 14px 16px; border: 1px dashed var(--line); background: var(--surface2);
  display: grid; gap: 8px; justify-items: start;
}
.goto__tag { font: 400 10px/1 var(--f-data); letter-spacing: .1em; color: var(--muted); }
.goto__txt { margin: 0; font-size: 15px; line-height: 1.5; }

.foot-go {
  margin: 36px 0 0; padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--acc);
  background: var(--surface); display: grid; gap: 10px; justify-items: start;
}
.foot-go__tag { font: 400 10px/1.4 var(--f-data); letter-spacing: .1em; color: var(--acc); }
.foot-go__txt { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink2); }

/* ============================ ШАГИ ============================ */

.steps { list-style: none; margin: 0 0 26px; padding: 0; counter-reset: s; }
.steps > li {
  position: relative; padding: 0 0 18px 46px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line2);
}
.steps > li:last-child { border-bottom: 0; margin-bottom: 0; }
.steps > li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 32px; padding: 6px 0; text-align: center;
  font: 400 12px/1 var(--f-data); color: var(--acc); border: 1px solid var(--acc);
}
.step__ttl { display: block; font: 700 18px/1.25 var(--f-disp); margin-bottom: 6px; }
.steps p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; }
.steps ul { margin: 0 0 10px; padding: 0; list-style: none; }
.steps ul li { position: relative; padding-left: 18px; margin-bottom: 6px; font-size: 14px; }
.steps ul li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 7px; height: 1px; background: var(--acc); }

/* ============================ FAQ ============================ */

.faq { margin: 0 0 26px; border-top: 1px solid var(--line); }
.faq h3 {
  position: relative; margin: 0; padding: 14px 0 6px 30px; font-size: 17px;
}
.faq h3::before {
  content: '?'; position: absolute; left: 4px; top: 14px;
  font: 400 14px/1.2 var(--f-data); color: var(--acc);
}
.faq p { margin: 0 0 12px; padding: 0 0 12px 30px; font-size: 15px; line-height: 1.6; color: var(--ink2); border-bottom: 1px solid var(--line2); }

/* ============================ КАДРЫ ============================ */

.shot { margin: 0 0 24px; }
.shot__frame {
  display: grid; place-items: center; min-height: 150px; border: 1px dashed var(--line);
  background: var(--surface2);
}
.shot__code { font: 400 12px/1 var(--f-data); color: var(--muted); letter-spacing: .1em; }
.shot img { display: block; width: 100%; border: 1px solid var(--line); max-height: 520px; object-fit: contain; background: var(--surface); }
.shot__link { display: block; position: relative; text-decoration: none; }
.shot__zoom { position: absolute; right: 8px; bottom: 8px; font: 400 10px/1 var(--f-data); background: var(--surface); border: 1px solid var(--line); padding: 4px 6px; color: var(--muted); }
.shot__cap { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.shot__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot__part { position: relative; }
.shot__part img { max-height: 400px; }
.shot__mark { position: absolute; left: 6px; top: 6px; z-index: 2; font: 400 11px/1 var(--f-data); background: var(--acc); color: #fff; padding: 3px 6px; }
.shot__partcap { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

/* ============================ ХВОСТ СТАТЬИ ============================ */

.also { margin: 28px 0 0; }
.also__cap { display: block; font: 700 11px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.also__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line2); border: 1px solid var(--line2); }
.also__list li { background: var(--surface); }
.also__list a { display: block; padding: 11px 14px; text-decoration: none; color: var(--ink); font-size: 15px; }
.also__list a:hover { background: var(--acc-soft); color: var(--acc); }

.helpful {
  margin: 26px 0 0; padding: 14px 16px; border: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.helpful__q { font: 700 13px/1 var(--f-disp); letter-spacing: .06em; text-transform: uppercase; }
.helpful__btns { display: flex; gap: 8px; margin-left: auto; }
.helpful button {
  cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 7px 14px; font: 400 12px/1 var(--f-data); color: var(--ink2);
}
.helpful button:hover { border-color: var(--acc); color: var(--acc); }
.helpful__thanks { font-size: 13px; color: var(--muted); }
.helpful[data-done] .helpful__btns { display: none; }

/* ============================ ГЛАВНАЯ ============================ */

.hero { padding: 26px 0 4px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 32px; align-items: start; }
.hero__txt { padding-top: 4px; }

/* На главной карта окна живёт в первом экране: схема сверху, объяснение под ней. */
.hero__map .map { margin: 0; }
.hero__map .map__body { grid-template-columns: 1fr; gap: 14px; }
.hero__map .map__hd { padding: 12px 14px 0; }
.hero__map .map__body { padding: 12px 14px; }
.hero__map .map__fine { padding: 9px 14px; }

/* Мысль сайта и паспорт программы рядом. */
.idea { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.idea__spec { border: 1px solid var(--line); background: var(--surface); }
.idea__spec .spec__rows { padding: 4px 14px; }
.idea__spec .spec__rows > div { grid-template-columns: 110px 1fr; gap: 10px; padding: 7px 0; }
.idea__txt .hsec__p:last-child { margin-bottom: 0; }
.hero__cap { display: block; font: 400 11px/1.5 var(--f-data); letter-spacing: .16em; color: var(--acc); margin-bottom: 12px; }
.hero h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.hero h1 span { color: var(--acc); }
.hero__lead { font-size: 18px; line-height: 1.55; color: var(--ink2); margin: 0 0 18px; }
.hero__lead b { color: var(--ink); }
.hero__row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero__fine { font-size: 12px; color: var(--muted); margin: 0; }
.hero__facts { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line2); border: 1px solid var(--line2); }
.hero__facts li { background: var(--surface); padding: 10px 12px; display: grid; gap: 3px; }
.hero__facts b { font: 400 18px/1.1 var(--f-data); color: var(--ink); }
.hero__facts span { font: 400 10px/1.3 var(--f-data); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.hero__side { border: 1px solid var(--line); background: var(--surface); }
.hero__side-cap { display: block; padding: 9px 14px; background: var(--surface2); border-bottom: 1px solid var(--line); font: 700 11px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero__side-fine { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line2); font-size: 12px; color: var(--muted); }

.hsec { margin: 44px 0 0; }
.hsec__hd { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.hsec__cap { font: 700 22px/1.1 var(--f-disp); }
.hsec__sub { font-size: 14px; color: var(--muted); margin: 0; }
.hsec__more { margin-left: auto; font: 400 11px/1 var(--f-data); color: var(--acc); text-decoration: none; letter-spacing: .04em; }
.hsec__p { font-size: 16px; line-height: 1.6; color: var(--ink2); max-width: 72ch; }

/* --- поиск на главной --- */
.finder { border: 1px solid var(--line); background: var(--surface); padding: 18px; }
.finder__hd { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; margin-bottom: 12px; }
.finder__cap { font: 700 11px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.finder__hint { font-size: 13px; color: var(--muted); margin: 0; }
.finder__field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface2); padding: 4px 4px 4px 12px; }
.finder__field:focus-within { border-color: var(--acc); }
.finder input {
  flex: 1; border: 0; background: transparent; padding: 11px 0; font: 400 16px/1.2 var(--f-body); color: var(--ink);
  min-width: 0;
}
.finder input:focus { outline: none; }
.finder__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.finder__chipcap { font: 400 10px/1 var(--f-data); color: var(--muted); letter-spacing: .08em; }
.finder__chips button {
  cursor: pointer; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r);
  padding: 5px 9px; font-size: 12px; color: var(--ink2);
}
.finder__chips button:hover { border-color: var(--acc); color: var(--acc); }
.finder__res { margin-top: 14px; }
.finder__idle { font-size: 13px; color: var(--muted); }
.fres__cap { display: block; font: 400 10px/1 var(--f-data); letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.fres__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line2); border: 1px solid var(--line2); }
.fres__list li { background: var(--surface); }
.fres__list a { display: grid; gap: 3px; padding: 10px 12px; text-decoration: none; color: var(--ink); }
.fres__list a:hover { background: var(--acc-soft); }
.fres__grp { font: 400 9px/1 var(--f-data); letter-spacing: .1em; color: var(--muted); }
.fres__t { font: 700 15px/1.25 var(--f-disp); }
.fres__q { font-size: 13px; line-height: 1.45; color: var(--muted); }
.fres--none .fres__none-t { margin: 0 0 4px; font-size: 15px; }
.fres--none .fres__none-s { margin: 0; font-size: 13px; color: var(--muted); }
mark { background: var(--acc-soft); color: inherit; padding: 0 2px; }

/* ============================ ПОИСК В ШАПКЕ ============================ */

.sdlg { display: none; position: fixed; inset: 0; z-index: 70; }
.sdlg.is-open { display: block; }
.sdlg__bd { position: absolute; inset: 0; background: rgba(12, 17, 22, .55); }
.sdlg__box {
  position: relative; max-width: 620px; margin: 8vh auto 0; background: var(--surface);
  border: 1px solid var(--line); padding: 14px;
}
.sdlg input {
  width: 100%; border: 1px solid var(--line); background: var(--surface2); padding: 12px 14px;
  font: 400 16px/1.2 var(--f-body); color: var(--ink);
}
.sdlg input:focus { outline: none; border-color: var(--acc); }
.sres { list-style: none; margin: 12px 0 0; padding: 0; max-height: 52vh; overflow-y: auto; }
.sres li + li { border-top: 1px solid var(--line2); }
.sres a { display: grid; gap: 2px; padding: 10px 12px; text-decoration: none; color: var(--ink); }
.sres a:hover, .sres a.is-sel { background: var(--acc-soft); }
.sres__t { font: 700 15px/1.25 var(--f-disp); }
.sres__q { font-size: 13px; color: var(--muted); }
.sres__p { font: 400 9px/1 var(--f-data); letter-spacing: .1em; color: var(--acc); }
.sres__none { color: var(--muted); }
.sdlg__foot { margin-top: 10px; font: 400 10px/1 var(--f-data); color: var(--muted); letter-spacing: .06em; }

/* ============================ НИЖНЯЯ ПАНЕЛЬ ============================ */

.gobar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; transform: translateY(110%); transition: transform .18s ease-out; }
.gobar.is-on { transform: none; }
.gobar__in {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--surface); border-top: 2px solid var(--acc);
}
.gobar__txt { display: grid; gap: 2px; min-width: 0; }
.gobar__txt b { font: 700 14px/1.1 var(--f-disp); }
.gobar__txt span { font-size: 11px; color: var(--muted); }
.gobar .btn { padding: 9px 14px; font-size: 12px; }
.gobar__x { cursor: pointer; background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; padding: 4px 6px; }
body.has-gobar { padding-bottom: 62px; }

/* ============================ КАССА ============================ */

.pay { max-width: 860px; margin: 0 auto; padding: 24px 0 64px; }
.pay__head { margin-bottom: 20px; }
.pay h1 { font-size: clamp(28px, 4.4vw, 40px); margin: 0 0 12px; }
.pay__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink2); }
.pay__lead b { color: var(--ink); font-family: var(--f-data); font-weight: 400; }
.pay__panel { border: 1px solid var(--acc); background: var(--surface); margin-bottom: 20px; }
.pay__hd { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line2); background: var(--surface2); }
.pay__cap { font: 700 11px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.pay__tag { font: 400 10px/1 var(--f-data); color: var(--muted); margin-left: auto; }
.pay__box { min-height: 420px; padding: 14px; }
.pay__fb { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink2); }
.pay__pts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line2); border: 1px solid var(--line2); }
.pay__pts li { background: var(--surface); padding: 11px 13px; display: grid; gap: 3px; }
.pay__pts b { font: 700 14px/1.2 var(--f-disp); }
.pay__pts span { font-size: 12px; line-height: 1.4; color: var(--muted); }
.pay__flow-hd { font: 700 18px/1.2 var(--f-disp); margin-bottom: 10px; }
.pay__flow { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 1px; background: var(--line2); border: 1px solid var(--line2); }
.pay__flow li { background: var(--surface); padding: 12px 14px; display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; }
.pay__flow-n { grid-row: span 2; font: 400 12px/1 var(--f-data); color: var(--acc); border: 1px solid var(--acc); padding: 6px 0; text-align: center; height: fit-content; }
.pay__flow b { font: 700 15px/1.2 var(--f-disp); }
.pay__flow span { font-size: 13px; color: var(--muted); }
.pay__art { max-width: none; }
.pay__back { margin-top: 28px; padding: 16px; border: 1px dashed var(--line); display: grid; gap: 10px; justify-items: start; }
.pay__back p { margin: 0; font-size: 15px; }

/* ============================ ФУТЕР ============================ */

.ftr { border-top: 1px solid var(--line); background: var(--surface); margin-top: auto; }
.ftr__in { max-width: var(--wrap); margin: 0 auto; padding: 32px 20px 24px; }
.ftr__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; }
.ftr__ttl { display: block; font: 700 11px/1 var(--f-disp); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr li { font-size: 14px; }
.ftr a { color: var(--ink2); text-decoration: none; }
.ftr a:hover { color: var(--acc); }
.ftr__disc { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line2); font-size: 12px; line-height: 1.6; color: var(--muted); }
.ftr__bar { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font: 400 10px/1 var(--f-data); letter-spacing: .08em; }
.ftr__bar a { color: var(--acc); }
.ftr__cp { margin-left: auto; color: var(--muted); }

/* ============================ АДАПТИВ ============================ */

@media (max-width: 1020px) {
  .layout { grid-template-columns: 210px minmax(0, 1fr); gap: 28px; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .idea { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 860px) {
  .hdr__in { grid-template-columns: 1fr auto auto; gap: 10px; padding: 8px 14px; }
  .hdr__nav { display: none; }
  .burger { display: block; }
  .hdr__go-l { display: none; }
  .hdr__go-s { display: inline; }
  .brand__tag { display: none; }
  .layout { grid-template-columns: 1fr; padding: 18px 14px 56px; gap: 22px; }
  .side { position: static; display: none; }
  .side.is-open { display: grid; }
  .wrap { padding: 0 14px; }
  .map__body { grid-template-columns: 1fr; }
  .both { grid-template-columns: 1fr; }
  .both__col--yes { border-right: 0; border-bottom: 1px solid var(--line); }
  .tar__list { grid-template-columns: 1fr; }
  .tar__i { border-right: 0; border-bottom: 1px solid var(--line2); }
  .spark { grid-template-columns: 1fr; }
  .spark .btn { width: 100%; }
  .spec__rows > div { grid-template-columns: 1fr; gap: 2px; }
  .shot img, .shot__part img { max-height: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  th, td { padding: 8px 10px; font-size: 13px; }
  .art h2 { font-size: 21px; }
  .art__lead { font-size: 17px; }
  .win__screen { grid-template-columns: 1fr 1fr 36px 36px; gap: 5px; padding: 6px; }
  .part { padding: 7px; }
  .part__lbl { font-size: 9px; padding-right: 18px; }
  .cat__i { grid-template-columns: 42px 1fr; gap: 12px; }
  .cat__n { display: none; }
  .shot__pair { grid-template-columns: 1fr; }
  .cta { padding: 16px; }
  .cta__row .btn { width: 100%; }
  .hero h1 { font-size: 30px; }
  .pay__box { min-height: 560px; padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
