/* Capeng — стили сайта. Значения взяты из дизайн-системы Capeng (tokens.json). */
:root, [data-theme="light"] {
  --ground: #f6f5f1; --surface: #ffffff; --surface-sunken: #eceae4;
  --ink: #1e1e1e; --ink-muted: #56606a;
  --line: #c9c6bd; --line-strong: #7d7a72;
  --accent: #fc7d00; --on-accent: #1e1e1e; --accent-text: #a84f00; --accent-tint: #fde8d3;
}
[data-theme="dark"] {
  --ground: #111417; --surface: #181c20; --surface-sunken: #0c0e10;
  --ink: #e9ebed; --ink-muted: #9aa4ad;
  --line: #2c3238; --line-strong: #6b747c;
  --accent: #fc7d00; --on-accent: #1e1e1e; --accent-text: #fc7d00; --accent-tint: #3a2410;
}
:root {
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-none: 0px; --radius-sm: 2px; --radius-md: 4px;
  --border-hairline: 1px; --border-rule: 2px;
  --font-sans: "IBM Plex Sans", "Noto Sans Armenian", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Noto Sans Armenian", ui-monospace, monospace;
  --section: var(--space-24);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 26px;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: var(--border-rule) solid var(--accent-text); outline-offset: 2px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code, .spec { font-family: var(--font-mono); font-size: 14px; font-weight: 500; white-space: nowrap; }

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

/* Типографика */
.display { font-size: 56px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.h1 { font-size: 40px; line-height: 46px; font-weight: 600; letter-spacing: -0.01em; }
.h2 { font-size: 28px; line-height: 36px; font-weight: 600; }
.h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
.small { font-size: 14px; line-height: 22px; }
.muted { color: var(--ink-muted); }
.label { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.figure { font-family: var(--font-mono); font-size: 40px; line-height: 44px; font-weight: 500; letter-spacing: -0.02em; color: var(--accent-text); }
.lead { max-width: 720px; color: var(--ink-muted); font-size: 18px; line-height: 28px; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 10; background: var(--ground); border-bottom: var(--border-hairline) solid var(--line); }
.header .wrap { height: var(--space-16); display: flex; align-items: center; gap: var(--space-6); }
.brand { display: flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 20px; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: var(--space-6); margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; line-height: 22px; padding: 20px 0; border-bottom: var(--border-rule) solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--accent-text); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); }
.tools { display: flex; align-items: center; gap: var(--space-2); }
.seg { display: flex; border: var(--border-hairline) solid var(--line-strong); border-radius: var(--radius-sm); }
.seg button, .icon-btn {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em;
  background: transparent; color: var(--ink); border: 0; cursor: pointer; height: 34px; min-width: 34px; padding: 0 var(--space-2);
}
.seg button + button { border-left: var(--border-hairline) solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.icon-btn { border: var(--border-hairline) solid var(--line-strong); border-radius: var(--radius-sm); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn svg { width: 16px; height: 16px; }
.menu-btn { display: none; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: var(--space-3) var(--space-6);
  font: 600 16px/24px var(--font-sans); text-decoration: none; cursor: pointer; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--on-accent); border: var(--border-hairline) solid var(--accent); }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Разделы */
.section { padding: var(--section) 0; border-bottom: var(--border-hairline) solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-12); }
.section-head .label { display: block; margin-bottom: var(--space-3); }
.page-head { padding: var(--space-16) 0 var(--space-12); border-bottom: var(--border-hairline) solid var(--line); }
.page-head .label { display: block; margin-bottom: var(--space-4); }
.page-head .lead { margin-top: var(--space-6); }

/* Первый экран: чертёжная сетка, без градиентов */
.hero { border-bottom: var(--border-hairline) solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: center; padding-top: var(--space-24); padding-bottom: var(--space-24); }
.hero-text { background: var(--ground); padding: var(--space-8); margin: calc(-1 * var(--space-8)); border: var(--border-hairline) solid var(--line); }
.hero-text .label { display: block; margin-bottom: var(--space-6); }
.hero-text .lead { margin: var(--space-6) 0 var(--space-8); }
.diagram { background: var(--ground); border: var(--border-hairline) solid var(--line); padding: var(--space-4); }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram .w { stroke: var(--line-strong); stroke-width: 1; fill: none; }
.diagram .a { stroke: var(--accent); stroke-width: 2; fill: none; }
.diagram .n { fill: var(--ground); stroke: var(--line-strong); stroke-width: 1; }
.diagram text { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-muted); }
.diagram text.k { fill: var(--ink); font-weight: 500; }

/* Цифры */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: var(--border-hairline) solid var(--line); }
.figures > div { padding: var(--space-8) var(--space-6); border-left: var(--border-hairline) solid var(--line); }
.figures > div:first-child { border-left: 0; padding-left: 0; }
.figures p { margin-top: var(--space-2); color: var(--ink-muted); font-size: 14px; line-height: 22px; }

/* Сетки карточек: линии вместо теней */
.grid { display: grid; gap: 0; border-top: var(--border-hairline) solid var(--line); border-left: var(--border-hairline) solid var(--line); }
.grid > * { border-right: var(--border-hairline) solid var(--line); border-bottom: var(--border-hairline) solid var(--line); padding: var(--space-6); background: var(--surface); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card .label { display: block; margin-bottom: var(--space-4); }
.card p { margin-top: var(--space-2); color: var(--ink-muted); }

/* Услуги развёрнуто */
.service { display: grid; grid-template-columns: 96px minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-8); padding: var(--space-12) 0; border-bottom: var(--border-hairline) solid var(--line); }
.service .num { font-family: var(--font-mono); font-size: 40px; line-height: 44px; font-weight: 500; color: var(--line-strong); }
.service p { margin-top: var(--space-3); color: var(--ink-muted); }
.ticks li { position: relative; padding: var(--space-3) 0 var(--space-3) var(--space-6); border-top: var(--border-hairline) solid var(--line); }
.ticks li:last-child { border-bottom: var(--border-hairline) solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 24px; width: var(--space-3); height: var(--border-rule); background: var(--accent); }
ol.ticks { counter-reset: s; }
ol.ticks li { padding-left: var(--space-12); counter-increment: s; }
ol.ticks li::before { content: "0" counter(s); background: none; width: auto; height: auto; top: var(--space-3); font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; color: var(--accent-text); }

/* Оборудование */
.photo { background: #ffffff; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; border: var(--border-hairline) solid var(--line); margin-bottom: var(--space-4); }
.photo img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-3); }
.source { margin-top: var(--space-8); padding-top: var(--space-4); border-top: var(--border-hairline) solid var(--line); color: var(--ink-muted); font-size: 14px; line-height: 22px; display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
.source img { height: 20px; width: auto; }

/* Работы: места под будущие фотографии */
.notice { display: flex; gap: var(--space-4); align-items: flex-start; background: var(--accent-tint); color: var(--ink); border: var(--border-hairline) solid var(--accent); border-left-width: var(--border-hairline); padding: var(--space-6); margin-bottom: var(--space-8); }
.notice .mark { flex: none; width: var(--space-6); height: var(--space-6); border: var(--border-rule) solid var(--accent-text); position: relative; }
.notice .mark::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: var(--border-rule); margin-left: -1px; background: var(--accent-text); }
.notice p { margin-top: var(--space-1); }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.slot { aspect-ratio: 4 / 3; background: var(--surface-sunken); border: var(--border-hairline) dashed var(--line-strong); position: relative; display: flex; align-items: flex-end; }
.slot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.slot svg line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.slot .label { position: relative; background: var(--surface-sunken); padding: var(--space-2) var(--space-3); margin: var(--space-3); }

/* Магазин */
.link { background: none; border: 0; padding: 0; margin-top: var(--space-3); font: inherit; font-size: 14px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.shop-note { max-width: 360px; }
.shop-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); margin-bottom: var(--space-6); max-width: 880px; }
.shop-tools select { width: 100%; font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--surface); border: var(--border-hairline) solid var(--line-strong); border-radius: var(--radius-sm); padding: var(--space-3); min-height: 48px; }
@media (max-width: 640px) { .shop-tools { grid-template-columns: minmax(0, 1fr); } }
.shop-search { width: 100%; font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--surface); border: var(--border-hairline) solid var(--line-strong); border-radius: var(--radius-sm); padding: var(--space-3); min-height: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { font: 500 14px/20px var(--font-sans); color: var(--ink); background: transparent; border: var(--border-hairline) solid var(--line-strong); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.shop-count { display: block; margin-bottom: var(--space-4); }
.prods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: var(--border-hairline) solid var(--line); border-left: var(--border-hairline) solid var(--line); }
.prod { display: flex; flex-direction: column; padding: var(--space-4); background: var(--surface); border-right: var(--border-hairline) solid var(--line); border-bottom: var(--border-hairline) solid var(--line); }
.prod .photo { margin-bottom: var(--space-3); }
.prod .spec { font-size: 12px; white-space: normal; }
.prod-title { font-size: 14px; line-height: 20px; font-weight: 500; margin: var(--space-1) 0 var(--space-4); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.prod-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; }
.price { font-family: var(--font-mono); font-weight: 500; font-size: 16px; white-space: nowrap; }
.btn.small { min-height: 36px; padding: var(--space-1) var(--space-3); font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: var(--border-hairline) solid var(--line-strong); border-radius: var(--radius-sm); }
.qty button { width: 34px; height: 34px; background: transparent; border: 0; color: var(--ink); font: 500 16px var(--font-mono); cursor: pointer; }
.qty b { min-width: 28px; text-align: center; font-family: var(--font-mono); font-weight: 500; }
.more { display: flex; justify-content: center; margin-top: var(--space-8); }
.cart-bar { position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 20; display: none; align-items: center; gap: var(--space-3); min-height: 48px; padding: var(--space-2) var(--space-4); background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--radius-sm); cursor: pointer; font: 600 14px/20px var(--font-sans); }
.cart-bar.on { display: flex; }
.cart-bar .label { color: var(--on-accent); }
.cart-back { position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .5); }
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 31; width: min(480px, 100%); background: var(--ground); border-left: var(--border-hairline) solid var(--line); display: flex; flex-direction: column; animation: cart .25s cubic-bezier(.2,.7,.2,1); }
@keyframes cart { from { transform: translateX(24px); opacity: 0; } }
.cart header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-4); border-bottom: var(--border-hairline) solid var(--line); }
.cart .icon-btn { font-size: 18px; }
.cart-body { padding: var(--space-4); overflow-y: auto; display: grid; gap: var(--space-4); align-content: start; }
.cart-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-2) var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: var(--border-hairline) solid var(--line); }
.cart-list li > div { grid-column: 1 / -1; }
.cart-list .spec { white-space: normal; font-size: 12px; }
.cart-list .link { grid-column: 1 / -1; justify-self: start; margin-top: 0; }
.cart-name { font-size: 14px; line-height: 20px; font-weight: 500; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.cart-total .figure { font-size: 28px; line-height: 32px; }
.cart-form { display: grid; gap: var(--space-3); }
.cart-form .field textarea { min-height: 72px; }
.cart-open, .cart-open body { overflow: hidden; }
@media (max-width: 1000px) { .prods { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prod { padding: var(--space-3); } .prod-foot .btn.small { width: 100%; } .shop-note { max-width: none; } }

/* Товар без фотографии у производителя: пустая рамка с диагональю */
.photo.noimg { background: linear-gradient(to top right, transparent calc(50% - 1px), var(--line) 50%, transparent calc(50% + 1px)) var(--surface-sunken); }

/* Работы: снимки 4:3 с подписью */
.shot { margin: 0; border: var(--border-hairline) solid var(--line); background: var(--surface); }
.shot .frame { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-sunken); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { display: grid; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-top: var(--border-hairline) solid var(--line); font-weight: 600; }

/* Партнёрам */
.two { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-8); padding: var(--space-12) 0; border-bottom: var(--border-hairline) solid var(--line); }
.two > div > p + ul, .two > div > p + ol { margin-top: var(--space-6); }

/* Контакты и форма */
.contacts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); padding: var(--space-12) 0 var(--space-24); }
.dl > div { padding: var(--space-4) 0; border-top: var(--border-hairline) solid var(--line); }
.dl > div:last-child { border-bottom: var(--border-hairline) solid var(--line); }
.dl dt { margin-bottom: var(--space-1); }
.dl dd { margin: 0; font-family: var(--font-mono); font-size: 18px; line-height: 28px; font-weight: 500; }
.dl dd a { color: var(--ink); text-decoration: none; }
.dl dd a:hover { color: var(--accent-text); }
.dl dd.plain { font-family: var(--font-sans); font-weight: 400; font-size: 16px; }
.form { background: var(--surface); border: var(--border-hairline) solid var(--line); padding: var(--space-8); display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--ground);
  border: var(--border-hairline) solid var(--line-strong); border-radius: var(--radius-sm); padding: var(--space-3); min-height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }
.done { background: var(--accent-tint); border: var(--border-hairline) solid var(--accent); border-radius: var(--radius-md); padding: var(--space-4); }
.done a { color: var(--ink); font-family: var(--font-mono); font-weight: 500; display: block; margin-top: var(--space-2); }
[hidden] { display: none !important; }

/* Подвал */
.footer { padding: var(--space-12) 0; }
.footer .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: var(--space-8); }
.footer p, .footer li { color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.footer .brand { margin-bottom: var(--space-3); }
.footer a { color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--accent-text); }
.footer li { padding: 2px 0; }
.footer .tdm { height: 18px; width: auto; margin-top: var(--space-4); }
.cta-band { padding: var(--space-16) 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); flex-wrap: wrap; }
.cta-band .spec { font-size: 18px; }

/* Узкие экраны */
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: var(--space-16); background: var(--ground); border-bottom: var(--border-hairline) solid var(--line); flex-direction: column; gap: 0; padding: 0 var(--space-6) var(--space-4); margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: var(--space-3) 0; border-bottom: var(--border-hairline) solid var(--line); font-size: 16px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .tools { margin-left: auto; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: var(--space-16); padding-bottom: var(--space-16); }
  .grid.c3, .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .figures > div:nth-child(n+3) { border-top: var(--border-hairline) solid var(--line); }
  .service { grid-template-columns: 64px minmax(0, 1fr); }
  .service > :last-child { grid-column: 2; }
  .two, .contacts { grid-template-columns: minmax(0, 1fr); }
  .footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --section: var(--space-12); }
  .wrap { padding: 0 var(--space-4); }
  .header .wrap { gap: var(--space-2); }
  .brand span { display: none; }
  .nav { padding: 0 var(--space-4) var(--space-4); }
  .display { font-size: 32px; line-height: 38px; letter-spacing: -0.01em; }
  .h1 { font-size: 28px; line-height: 36px; }
  .h2 { font-size: 22px; line-height: 30px; }
  .lead { font-size: 16px; line-height: 26px; }
  .figure { font-size: 32px; line-height: 36px; }
  .hero .wrap { padding-top: var(--space-8); padding-bottom: var(--space-8); gap: var(--space-8); }
  .hero-text { margin: 0; padding: var(--space-4); }
  .grid.c2, .grid.c3, .grid.c4, .slots { grid-template-columns: minmax(0, 1fr); }
  .figures > div { padding: var(--space-6) var(--space-3); }
  .figures > div:nth-child(odd) { padding-left: 0; }
  .service { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding: var(--space-8) 0; }
  .service > :last-child { grid-column: 1; }
  .page-head { padding: var(--space-8) 0; }
  .two { padding: var(--space-8) 0; gap: var(--space-4); }
  .contacts { padding: var(--space-8) 0 var(--space-12); gap: var(--space-8); }
  .form { padding: var(--space-4); }
  .btn-row .btn { width: 100%; }
  .footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .dl dd { font-size: 16px; }
  code, .spec { white-space: normal; }
}

/* Движение */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: var(--border-rule); background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.btn { transition: transform .15s ease, filter .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.nav a { transition: color .15s ease, border-color .2s ease; }
.seg button, .icon-btn { transition: background-color .15s ease, color .15s ease; }
.card { position: relative; transition: background-color .2s ease; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: var(--border-rule); background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.card:hover::before { transform: scaleX(1); }
.card:hover { background: var(--ground); }
.card .photo img { transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.card:hover .photo img { transform: scale(1.06); }
.service .num { transition: color .25s ease; }
.service:hover .num { color: var(--accent-text); }
.ticks li::before { transition: width .25s ease; }
ul.ticks li:hover::before { width: var(--space-4); }
.slot { transition: border-color .2s ease; }
.slot:hover { border-color: var(--accent-text); }

.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.now { transition: none; }

/* Схема: линии чертятся, по силовой линии бежит ток, узлы мигают */
.diagram .draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .diagram.rv .draw { stroke-dashoffset: 1; }
.js .diagram.rv.in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s ease .3s; }
.js .diagram.rv.in .w.draw { transition-duration: .8s; transition-delay: 1.1s; }
.diagram .flow { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .05 .95; stroke-dashoffset: 1; animation: flow 3.2s linear 1.6s infinite; opacity: 0; }
.diagram .j { fill: var(--accent); animation: pulse 3.2s ease-in-out infinite; }
.diagram .j:nth-of-type(2) { animation-delay: .3s; }
.diagram .j:nth-of-type(3) { animation-delay: .6s; }
.diagram .j:nth-of-type(4) { animation-delay: .9s; }
@keyframes flow { 0% { stroke-dashoffset: 1; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes pulse { 0%, 60%, 100% { opacity: .35; } 75% { opacity: 1; } }
.hero { animation: grid 24s linear infinite; }
@keyframes grid { to { background-position: 47px 47px; } }
.notice .mark { animation: mark 2.4s ease-in-out infinite; }
@keyframes mark { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* Места под фото: медленная линия «ожидает снимка» */
.slot { overflow: hidden; }
.slot::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--border-hairline); background: var(--accent); opacity: .7; animation: scan 4.8s ease-in-out infinite; }
.slot:nth-child(2n)::after { animation-delay: 1.2s; }
.slot:nth-child(3n)::after { animation-delay: 2.4s; }
@keyframes scan { 0% { transform: translateY(0); } 50% { transform: translateY(var(--scan, 240px)); } 100% { transform: translateY(0); } }
.figure { display: inline-block; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
  .diagram .flow { display: none; }
  .js .diagram.rv .draw { stroke-dashoffset: 0; }
}
