/* ARC — базовые токены и общие компоненты */
:root {
  --bg: #0A0A0B;
  --surface: #141416;
  --surface-2: #1A1B1E;
  --line: #232325;
  --line-strong: #3A3A3D;
  --text: #EDEDEA;
  --text-2: #C9C9C4;
  --muted: #9A9A95;
  --muted-2: #8A8A85;
  --ink: #0A0A0B;
  --accent: #8EC5E8;
  --winter: #8EC5E8;
  --spring: #C9F26B;
  --summer: #FF7A45;
  --autumn: #E8B04B;
  --danger: #FF8A80;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Onest', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-body); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.container { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--light { background: var(--text); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--text); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--arrow { padding-right: 8px; }
.btn__arrow {
  width: 36px; height: 36px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--text); font-size: 15px; transition: transform .25s var(--ease);
}
.btn--dark .btn__arrow { background: var(--accent); color: var(--ink); }
.btn:hover .btn__arrow { transform: rotate(45deg); }
.btn--block { width: 100%; }

/* Поля */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 0 18px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); font-size: 16px;
  transition: border-color .2s;
}
.input:focus { outline: none; border-color: var(--accent); }
.input::placeholder { color: #6E6E6A; }
textarea.input { padding: 14px 18px; min-height: 96px; resize: vertical; line-height: 1.5; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.form-error { color: var(--danger); font-size: 14px; min-height: 20px; margin: 0; }

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: .12em; text-decoration: none; }
.logo svg { width: 26px; height: 15px; }

/* Спиннер */
.spinner { width: 22px; height: 22px; border-radius: 999px; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

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

/* Большие мониторы: шрифты прежние, просто контент шире, чтобы не терялся посередине */
@media (min-width: 1760px) { .container { max-width: 1600px; } }
@media (min-width: 2240px) { .container { max-width: 1840px; } }
