/* Путь голоса — общие токены. Мир: монохром START, прописной широкий гротеск, один красный — клин ударения. */
:root {
  --paper: #ffffff;
  --paper-2: #f3f3f1;
  --paper-3: #e8e8e5;
  --ink: #0c0c0d;
  --ink-2: #3d3d40;
  --ink-3: #6b6b70;
  --line: #e2e2df;
  --line-strong: #c9c9c5;
  --signal: #ff3b2f;
  --signal-ink: #d42316;
  --ok: #157a3f;
  --warn: #9a5b00;

  --display: "Dela Gothic One", "Golos Text", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --r: 14px;
  --r-sm: 9px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: #fff; }

.logo { height: 18px; width: auto; color: var(--ink); }
.logo .cut, .mark .cut { fill: var(--paper); }
.logo .wedge, .mark .wedge { fill: var(--signal); }
.mark { width: 28px; height: 28px; color: var(--ink); }

.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Кнопки — общие для всех поверхностей */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-signal { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn-sm { --h: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { --h: 58px; padding: 0 30px; font-size: 16px; }
.btn[disabled], .btn.is-disabled { opacity: .4; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
  .btn-ghost:hover { background: var(--paper-2); border-color: var(--ink); color: var(--ink); }
  .btn-signal:hover { background: var(--signal-ink); border-color: var(--signal-ink); }
}

/* Поля */
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--paper); font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 0; line-height: 1.45; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(12 12 13 / 8%); }
.field .help { font-size: 13px; color: var(--ink-3); }
.field .error, .errorlist { color: var(--signal-ink); font-size: 13px; margin: 0; padding: 0; list-style: none; }
.field.has-error input, .field.has-error textarea { border-color: var(--signal-ink); }

/* Сообщения */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); background: var(--paper-2); font-size: 15px; }
.flash::before { content: ""; flex: none; width: 4px; height: 16px; margin-top: 3px; transform: skewX(-24deg); background: var(--ink); }
.flash.error::before { background: var(--signal); }
.flash.success::before { background: var(--ok); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* Набранное название — логотип не утверждён */
.wordmark { font: 400 17px/1 var(--display); letter-spacing: 0; text-transform: lowercase; white-space: nowrap; }
