/* Пульт v2 · основа: сброс, типографика, раскладочные утилиты, значки, фокус, движение.
   Имена утилит сохранены из v1 (.row, .stack, .grid-2, .mt12, .small, .mut и др.): шаблоны экранов на них опираются. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
  overflow-x: hidden;
}
img, svg { display: block; }
svg { overflow: visible; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: separate; border-spacing: 0; }
[hidden] { display: none !important; }
::selection { background: var(--lav-200); color: var(--ink); }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }

.skip-link {
  position: fixed; z-index: 700; top: 12px; left: 50%; transform: translate(-50%, -180%);
  padding: 10px 16px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 14px; transition: transform .2s var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- типографика */
.display { font-size: var(--fs-display); font-weight: 600; letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; }
.h1 { font-size: var(--fs-h1); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.h2 { font-size: 21px; font-weight: 600; letter-spacing: -.022em; line-height: 1.2; }
.h3 { font-size: 17px; font-weight: 600; letter-spacing: -.016em; line-height: 1.3; }
.h4 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -.01em; }
/* метка над блоком: обычный регистр, без разрядки — как подписи варианта C */
.kicker { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-2xs); font-weight: 600; line-height: 1.35; color: var(--ink-3); letter-spacing: 0; text-transform: none; }
.kicker .i { width: 15px; height: 15px; }
.lead { font-size: 17px; line-height: 1.5; color: var(--ink-2); letter-spacing: -.01em; }
.small { font-size: var(--fs-xs); line-height: 1.45; }
.xs { font-size: 12px; line-height: 1.4; }
.mut { color: var(--ink-3); }
.mut-2 { color: var(--ink-3); }
.b { font-weight: 600; }
.bb { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: -.01em; }
.nowrap { white-space: nowrap; }
.clip { overflow: hidden; text-overflow: clip; white-space: nowrap; }
.wrap-any { overflow-wrap: anywhere; }
.up { text-transform: none; }
.c-red { color: var(--coral-700); }
.c-green { color: var(--mint-700); }
.c-blue { color: var(--sky-700); }
.c-yellow { color: var(--sand-700); }
.c-magenta { color: var(--berry-700); }
.strike { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: var(--ink-4); }

/* ---------- раскладка */
.row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row.top { align-items: flex-start; }
.row.base { align-items: baseline; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.row.g4 { gap: 4px; } .row.g6 { gap: 6px; } .row.g8 { gap: 8px; } .row.g12 { gap: 12px; } .row.g16 { gap: 16px; } .row.g20 { gap: 20px; } .row.g24 { gap: 24px; }
.col { display: flex; flex-direction: column; min-width: 0; }
.stack { display: grid; gap: var(--gap-sm); min-width: 0; }
.stack.g4 { gap: 4px; } .stack.g6 { gap: 6px; } .stack.g8 { gap: 8px; } .stack.g16 { gap: 16px; } .stack.g20 { gap: 20px; } .stack.g24 { gap: 24px; } .stack.g32 { gap: 32px; }
.grow { flex: 1 1 auto; min-width: 0; }
.none { flex: none; }
.ml-auto { margin-left: auto; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; } .mt32 { margin-top: 32px; }
.mb4 { margin-bottom: 4px; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; } .mb24 { margin-bottom: 24px; }
.w100 { width: 100%; }
.center { text-align: center; }
.right { text-align: right; }
.rel { position: relative; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.divider { height: 0; border-top: 1px solid var(--line); margin: 0; }
.divider.dash { border-top-style: dashed; border-top-color: var(--line-2); }
.vr { width: 1px; align-self: stretch; background: var(--line); flex: none; }
/* только для телефона и узкой колонки / только для широкого экрана: граница 900 px, как в шаблонах экранов */
.m-only { display: none !important; }
@media (max-width: 900px) { .d-only { display: none !important; } .m-only { display: flex !important; } }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--gap); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- значки: линейные, 24×24, цвет от текста */
.i { display: inline-block; vertical-align: -.22em; width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i.s12 { width: 13px; height: 13px; } .i.s14 { width: 14px; height: 14px; } .i.s16 { width: 16px; height: 16px; }
.i.s18 { width: 18px; height: 18px; } .i.s20 { width: 20px; height: 20px; } .i.s22 { width: 22px; height: 22px; } .i.s24 { width: 24px; height: 24px; } .i.s28 { width: 28px; height: 28px; }
.i.fill { fill: currentColor; stroke: none; }

/* ---------- движение */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(232, 100, 63, .5); } 70% { box-shadow: 0 0 0 8px rgba(232, 100, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 100, 63, 0); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes shimmer { from { background-position: -200px 0; } to { background-position: 200px 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shrink-x { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes flash { from { background: var(--lav-100); } to { background: transparent; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
