/* HiTek — публичный сайт. Один файл стилей на все страницы.
   Без внешних запросов: системные шрифты, никаких @import и url() наружу.
   Темы: светлая («лист чертежа») и тёмная («графит») по prefers-color-scheme.
   Один акцентный цвет — зелёный: им нарисован контур HiTek и главное действие. */

/* ---------- Токены ---------- */
:root {
  color-scheme: light dark;

  --paper: #f3f4f0;        /* фон страницы */
  --surface: #fbfbf8;      /* карточки, поля */
  --ink: #17212b;          /* основной текст, линии рамок */
  --ink-2: #36424e;
  --muted: #56626e;        /* второстепенный текст, 5.5:1 к фону */
  --line: #d6d9d2;         /* волосяные линии */
  --line-2: #aeb4ab;       /* рамки блоков */
  --field: #74808b;        /* рамки полей, 3.5:1 */
  --accent: #0b6b45;       /* контур HiTek, главное действие */
  --accent-ink: #ffffff;   /* текст на акценте */
  --accent-soft: #e1eee6;
  --danger: #b42318;
  --danger-soft: #fbeae7;
  --grid: rgba(23, 33, 43, .05);

  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --font-head: Bahnschrift, "DIN Alternate", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, ui-monospace, "SF Mono", Menlo, "DejaVu Sans Mono", "Liberation Mono", monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1519;
    --surface: #141d23;
    --ink: #e7ecef;
    --ink-2: #c5ced5;
    --muted: #96a4af;
    --line: #25313a;
    --line-2: #3d4b56;
    --field: #6f7e8a;
    --accent: #4cc38a;
    --accent-ink: #07130d;
    --accent-soft: #11281e;
    --danger: #ff9488;
    --danger-soft: #2b1512;
    --grid: rgba(231, 236, 239, .04);
  }
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font-sans);
  overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img, svg { max-width: 100%; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 10;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: .5rem; }

.kicker {
  font: 400 .8125rem/1.4 var(--font-mono);
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}

.lead { font-size: clamp(1.0625rem, .95rem + .5vw, 1.25rem); line-height: 1.5; color: var(--ink-2); }

.plain { list-style: none; }

.tag {
  display: inline-block; vertical-align: middle;
  font: 400 .75rem/1 var(--font-mono); letter-spacing: .03em;
  color: var(--muted); border: 1px dashed var(--field); border-radius: 2px; padding: .3rem .45rem;
}

.placeholder {
  display: inline-block; font: 400 .8125rem/1.4 var(--font-mono);
  color: var(--muted); border: 1px dashed var(--field); border-radius: 2px; padding: .25rem .5rem;
}

/* ---------- Кнопки и ссылки-действия ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.875rem; padding: .625rem 1.25rem;
  font: 600 1rem/1.2 var(--font-head); letter-spacing: .01em; text-decoration: none;
  color: var(--ink); background: transparent;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--sm { min-height: 2.5rem; padding: .5rem 1rem; font-size: .9375rem; }

.link-arrow { font: 600 1rem/1.2 var(--font-head); color: var(--ink); text-decoration: none; padding: .625rem 0; }
.link-arrow::after { content: "\00a0→"; color: var(--accent); }
.link-arrow:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }

/* ---------- Шапка ---------- */
.site-header { border-bottom: 1px solid var(--line-2); background: var(--paper); }
.site-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; min-height: 4rem; padding-block: .5rem; }

.brand { display: inline-flex; align-items: baseline; gap: .875rem; color: var(--ink); text-decoration: none; }
.brand__name { font: 700 1.625rem/1 var(--font-head); letter-spacing: -.01em; }
.brand__name::after { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-left: .2rem; border: 2.5px solid var(--accent); border-radius: 50%; }
.brand__what { font: 400 .75rem/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem clamp(.75rem, 2.2vw, 1.75rem); }
.nav a { color: var(--ink); text-decoration: none; font: 600 .9375rem/1.2 var(--font-head); letter-spacing: .01em; padding: .5rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--line-2); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.nav .nav__cta { border: 1.5px solid var(--ink); border-radius: var(--radius); padding: .4375rem .875rem; }
.nav .nav__cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Первый экран: контур ---------- */
.hero {
  border-bottom: 1px solid var(--line-2);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center top;
}
.hero__grid { display: grid; gap: 2rem; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem); }
.hero__text { max-width: 44rem; }
.hero h1 { font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.25rem); margin: .875rem 0 1.125rem; text-wrap: balance; }
.hero .lead { max-width: 38rem; }
.hero .actions { margin-top: 1.75rem; }

.loop { margin: 0; min-width: 0; }
.loop__caption { margin-top: 1rem; font-size: .875rem; line-height: 1.45; color: var(--muted); }

/* кольцо (широкие экраны) */
.ring { display: none; width: 100%; height: auto; max-width: 940px; margin-inline: auto; }
.ring__axis path { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 18 5 3 5; }
.ring__track { fill: none; stroke: var(--accent); stroke-width: 4; }
.ring__dir path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ring__onec rect { fill: var(--ink); }
.ring__onec text { fill: var(--paper); font: 700 34px var(--font-head); }
.ring__cap { fill: var(--muted); font: 400 14px var(--font-mono); letter-spacing: .04em; }
.ring__brand { fill: var(--ink); font: 700 76px var(--font-head); letter-spacing: -.01em; }
.ring__brandsub { fill: var(--muted); font: 400 13.5px var(--font-mono); letter-spacing: .2em; }
.ring__node circle { fill: var(--accent); stroke: var(--paper); stroke-width: 4; }
.ring__node text { fill: var(--accent-ink); font: 700 20px var(--font-mono); }
.ring__node--wip circle { fill: var(--paper); stroke: var(--field); stroke-width: 2; stroke-dasharray: 5 4; }
.ring__node--wip text { fill: var(--muted); }
.ring__title { fill: var(--ink); font: 600 20px var(--font-head); }
.ring__sub { fill: var(--muted); font: 400 15.5px var(--font-sans); }
.ring__tag rect { fill: var(--paper); stroke: var(--field); stroke-width: 1; stroke-dasharray: 4 3; }
.ring__tag text { fill: var(--muted); font: 400 14px var(--font-mono); letter-spacing: .03em; }

/* тот же контур списком (узкие экраны): рамка — это кольцо, этапы стоят на её левой стороне */
.loop__track {
  position: relative; margin: 1.75rem .25rem 0 1.375rem;
  border: 3px solid var(--accent); border-radius: 22px;
  padding: 3rem 1rem 1.5rem 0;
}
.loop__track::before, .loop__track::after,
.loop__onec::before, .loop__onec::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 0 solid var(--accent);
}
/* правая сторона: вверх, обратно к 1С */
.loop__track::before { right: -1.5px; top: 50%; border-width: 3px 0 0 3px; transform: translate(50%, -50%) rotate(45deg); }
/* нижняя сторона: вправо */
.loop__track::after { left: 50%; bottom: -1.5px; border-width: 3px 3px 0 0; transform: translate(-50%, 50%) rotate(45deg); }

.loop__onec {
  position: absolute; left: 50%; top: -1.5px; transform: translate(-50%, -50%);
  background: var(--ink); color: var(--paper);
  font: 700 1.375rem/1 var(--font-head); padding: .5rem 1.375rem; border-radius: var(--radius);
}
/* верхняя сторона: от 1С влево (заказ) и справа к 1С (отгрузка) */
.loop__onec::before { right: calc(100% + 34px); top: 50%; border-width: 0 0 3px 3px; transform: translateY(-50%) rotate(45deg); }
.loop__onec::after { left: calc(100% + 34px); top: 50%; border-width: 0 0 3px 3px; transform: translateY(-50%) rotate(45deg); }

.loop__steps { list-style: none; counter-reset: stage; }
.loop__steps li { counter-increment: stage; position: relative; padding-left: 2.125rem; min-height: 2.375rem; }
.loop__steps li + li { margin-top: 1.125rem; }
.loop__steps li::before {
  content: counter(stage);
  position: absolute; left: -1.5px; top: -.25rem; transform: translateX(-50%);
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); border: 3px solid var(--paper);
  font: 700 1rem/1 var(--font-mono); color: var(--accent-ink);
}
.loop__steps li.is-wip::before { background: var(--paper); border: 2px dashed var(--field); color: var(--muted); }
.loop__steps b { display: block; font: 600 1.125rem/1.25 var(--font-head); }
.loop__steps span:not(.tag) { display: block; color: var(--muted); font-size: .9375rem; line-height: 1.35; }
.loop__steps .tag { margin-top: .25rem; }

@media (min-width: 860px) {
  .ring { display: block; }
  .loop__track {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .loop__caption { text-align: center; max-width: 44rem; margin-inline: auto; }
}

@media (min-width: 1180px) {
  .hero__grid { grid-template-columns: clamp(19rem, 27vw, 24rem) minmax(0, 1fr); align-items: center; gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem); }
  .hero h1 { font-size: clamp(2.25rem, .4rem + 2.6vw, 3.125rem); }
}

/* ---------- Блоки ---------- */
.band { padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line-2); }
.band__head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); max-width: 46rem; }
.band__head h2, .band h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); }
.band__head .kicker { margin-bottom: .625rem; }
.band__head .lead { margin-top: .875rem; }

/* 1С и HiTek */
.pair { display: grid; gap: 0; }
.pair__box { border: 1.5px solid var(--line-2); background: var(--surface); padding: 1.375rem 1.5rem 1.5rem; border-radius: var(--radius); }
.pair__box--hitek { border: 2.5px solid var(--accent); }
.pair__box h3 { font-size: 1.375rem; margin-bottom: .875rem; }
.pair__box li { padding: .4375rem 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.pair__link { display: flex; justify-content: center; gap: 2.5rem; padding: .75rem 0; font: 400 .8125rem/1.3 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.pair__flow--to::before { content: "↓\00a0"; }
.pair__flow--back::before { content: "↑\00a0"; }

@media (min-width: 860px) {
  .pair { grid-template-columns: minmax(0, 1fr) 11rem minmax(0, 1fr); align-items: stretch; }
  .pair__link { flex-direction: column; justify-content: center; gap: 1.75rem; padding: 0; text-align: center; }
  .pair__flow { position: relative; padding-bottom: .875rem; }
  .pair__flow::before { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: currentColor; }
  .pair__flow::after { content: ""; position: absolute; bottom: 0; width: 10px; height: 10px; border: 0 solid currentColor; }
  .pair__flow--to::after { right: 1px; border-width: 2px 2px 0 0; transform: rotate(45deg); }
  .pair__flow--back::after { left: 1px; border-width: 0 0 2px 2px; transform: rotate(45deg); }
}

/* три факта */
.facts { display: grid; gap: 1.75rem; }
.fact { padding-top: 1rem; border-top: 3px solid var(--accent); }
.fact h3 { font-size: 1.3125rem; margin-bottom: .5rem; }
.fact p { color: var(--ink-2); max-width: 34rem; }
@media (min-width: 860px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}

/* строка характеристик */
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: clamp(2rem, 4vw, 3rem) 0 0; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.spec > div { padding: .75rem 1rem .875rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: -1px 0 0 -1px; }
.spec dt { font: 400 .75rem/1.4 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.spec dd { margin: .125rem 0 0; font-weight: 600; }
@media (min-width: 860px) {
  .spec { grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
  .spec > div { padding: .875rem 1.25rem 1rem; }
}

.spec--flush { margin-top: 0; }
.more { margin-top: 1.75rem; }

/* что дальше */
.band--next { border-bottom: 0; }
.next { list-style: none; display: grid; gap: 1rem; }
.next__card {
  display: block; height: 100%; padding: 1.25rem 1.5rem 1.375rem;
  border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--surface);
  color: var(--ink); text-decoration: none; transition: background-color .15s, color .15s, border-color .15s;
}
.next__title { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font: 700 1.5rem/1.15 var(--font-head); }
.next__title::after { content: "→"; color: var(--accent); transition: transform .15s; }
.next__text { display: block; margin-top: .5rem; color: var(--muted); font-size: .9375rem; }
.next__card:hover { border-color: var(--accent); }
.next__card:hover .next__title::after { transform: translateX(4px); }
.next__card--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.next__card--primary .next__title::after, .next__card--primary .next__text { color: var(--accent-ink); }
.next__card--primary:hover { border-color: var(--ink); }
.next__card--contact { scroll-margin-top: 2rem; }
.next__card--contact:hover { border-color: var(--ink); }
.next__card--contact .next__title::after { content: none; }
.next__card--contact .mail { display: inline-block; margin-top: .5rem; }
.next__card--contact .next__text { margin-top: .375rem; }
@media (min-width: 860px) {
  .next { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}

/* ---------- Подвал: «основная надпись» ---------- */
.site-footer { padding-block: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line-2); }
.stamp { display: grid; border: 1.5px solid var(--ink); border-radius: var(--radius); font-size: .9375rem; overflow: hidden; }
.stamp__cell { display: flex; flex-direction: column; gap: .25rem; padding: .875rem 1.125rem 1rem; border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); margin: -1px 0 0 -1px; color: var(--ink-2); min-width: 0; }
.stamp__cell strong { font: 700 1.375rem/1.1 var(--font-head); color: var(--ink); }
.stamp__label { font: 400 .6875rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .125rem; }
.stamp__cell a { color: var(--ink); align-self: flex-start; padding-block: .125rem; }
.stamp__cell .placeholder { align-self: flex-start; }
.stamp__cell .mail { font-size: 1rem; }
@media (min-width: 620px) { .stamp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .stamp { grid-template-columns: 1.3fr .9fr 1.2fr 1.2fr; } }

/* ---------- Страница «Установить» ---------- */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.75rem, 4vw, 2.75rem); border-bottom: 1px solid var(--line-2);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center top; }
.page-head h1 { font-size: clamp(2.125rem, 1.4rem + 3vw, 3.125rem); margin: .875rem 0 1rem; }
.page-head .lead { max-width: 44rem; }
.toc { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.5rem; font: 600 .9375rem/1.2 var(--font-head); }
.toc a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: .125rem; }
.toc a:hover { border-bottom-color: var(--ink); }

/* программа и её выпуски (разметка — get/_fragments/*.html) */
.products { list-style: none; display: grid; gap: 1.25rem; }
.products__sample {
  font: 400 .8125rem/1.45 var(--font-mono); letter-spacing: .02em; color: var(--ink-2);
  border: 1.5px dashed var(--field); border-radius: var(--radius); padding: .625rem 1rem;
  background: repeating-linear-gradient(135deg, transparent 0 10px, var(--grid) 10px 20px);
}
.products__sample b { text-transform: uppercase; letter-spacing: .08em; color: var(--ink); }

.product { border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--surface); display: grid; }
.product__info { padding: 1.25rem 1.5rem 1.375rem; }
.product__name { font-size: 1.75rem; }
.product__what { margin-top: .5rem; color: var(--ink-2); max-width: 36rem; }
.product__os { margin-top: .75rem; font: 400 .8125rem/1.4 var(--font-mono); letter-spacing: .02em; color: var(--muted); }
.product__body { min-width: 0; border-top: 1px solid var(--line-2); }

/* «что нового»: подпись рисует CSS, пустой блок исчезает целиком */
.product__notes, .release__notes { color: var(--ink-2); font-size: .9375rem; white-space: pre-line; }
.product__notes::before, .release__notes::before {
  content: "Что нового"; display: block; white-space: normal;
  font: 400 .6875rem/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .125rem;
}
.product__notes:empty, .release__notes:empty { display: none; }
.product__notes { padding: 1rem 1.5rem 1.125rem; border-bottom: 1px solid var(--line-2); max-width: none; }

.releases { list-style: none; }
.release { display: grid; gap: .75rem 1.5rem; padding: 1.125rem 1.5rem 1.25rem; }
.release + .release { border-top: 1px solid var(--line-2); }
.release__os { font-weight: 600; }
.release__meta { margin-top: .25rem; display: flex; flex-wrap: wrap; gap: 0 1.125rem; font: 400 .8125rem/1.6 var(--font-mono); color: var(--muted); }
.release__meta > * { white-space: nowrap; }
.release__version { color: var(--ink); font-weight: 700; }
.release__action { display: flex; align-items: center; }
.release__pending { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .375rem .875rem; border: 1.5px dashed var(--field); border-radius: var(--radius); color: var(--muted); font-size: .9375rem; }
.product__by-request { padding: 1.125rem 1.5rem 1.25rem; font-weight: 600; }
.product__by-request a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.product__by-request a::after { content: "\00a0→"; color: var(--accent); }

@media (min-width: 760px) {
  .release { grid-template-columns: minmax(17.5rem, 1fr) minmax(0, 1.5fr) auto; align-items: center; }
  .release__notes { grid-column: 2; }
  .release__action { grid-column: 3; justify-content: flex-end; }
}
@media (min-width: 1100px) {
  .product { grid-template-columns: 21rem minmax(0, 1fr); }
  .product__body { border-top: 0; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; justify-content: center; }
}

/* как установить */
.steps { list-style: none; counter-reset: step; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; position: relative; padding-top: 1rem; border-top: 3px solid var(--accent); }
.steps li::before { content: "0" counter(step); display: block; font: 700 .875rem/1 var(--font-mono); color: var(--muted); margin-bottom: .625rem; }
.steps h3 { font-size: 1.3125rem; margin-bottom: .5rem; }
.steps p { color: var(--ink-2); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

.updates { margin-top: clamp(2rem, 4vw, 3rem); }
.updates h3 { font-size: 1.3125rem; margin-bottom: 1rem; }
.flow { list-style: none; display: grid; gap: 1.625rem; }
.flow li { position: relative; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: var(--surface); padding: .875rem 1rem 1rem; font-size: .9375rem; color: var(--ink-2); }
.flow li b { display: block; color: var(--ink); font: 600 1.0625rem/1.25 var(--font-head); margin-bottom: .25rem; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -1.0625rem; width: 10px; height: 10px;
  border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: translateX(-50%) rotate(45deg);
}
.flow li.flow__fallback { border-style: dashed; border-color: var(--field); }
@media (min-width: 860px) {
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .flow li:not(:last-child)::after { left: auto; right: -1.3125rem; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
}

/* написать нам */
.mail { font: 600 1.125rem/1.3 var(--font-head); color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .22em; overflow-wrap: anywhere; }
.mail:hover { text-decoration-thickness: 3px; }
.mail--lg { font-size: clamp(1.375rem, 1rem + 1.6vw, 1.875rem); font-weight: 700; }

.contact { display: grid; gap: 1.5rem; }
.contact__intro .kicker { margin-bottom: .625rem; }
.contact__intro .lead { margin-top: .875rem; max-width: 30rem; }
.contact__card { border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--surface); padding: clamp(1.25rem, 3vw, 1.75rem); scroll-margin-top: 2rem; }
.contact__card p { margin-top: 1.125rem; color: var(--ink-2); }
.contact__what { list-style: none; margin-top: .5rem; }
.contact__what li { position: relative; padding: .375rem 0 .375rem 1.25rem; border-top: 1px solid var(--line); color: var(--ink-2); }
.contact__what li::before { content: ""; position: absolute; left: 0; top: calc(.375rem + .775em - 1px); width: .5rem; height: 2px; background: var(--accent); }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; align-items: start; } }

/* заметка */
.note { margin-top: 1.5rem; display: inline-block; font: 400 .8125rem/1.45 var(--font-mono); color: var(--muted); border: 1px dashed var(--field); border-radius: 2px; padding: .5rem .75rem; }

/* ---------- Мелкие экраны ---------- */
@media (max-width: 719.98px) {
  .brand__what { display: none; }
}
@media (max-width: 419.98px) {
  .nav a { font-size: .875rem; }
  .nav { gap: .25rem .75rem; }
  .actions .btn { flex: 1 1 auto; }
}

/* ---------- Печать ---------- */
@media print {
  .site-header, .nav, .actions, .band--next { display: none; }
  body { background: #fff; color: #000; }
}
