/* HiScore — общие токены лендинга и кабинета */
:root {
  --bg: #FFF4F2;
  --bg-2: #FFE9E7;
  --paper: #FFFFFF;
  --ink: #17151C;
  --ink-2: #3B3842;
  --muted: #7A7480;
  --line: rgba(23, 21, 28, .1);
  --line-2: rgba(23, 21, 28, .18);

  --red: #D42A3F;
  --red-d: #AE1A2E;
  --red-soft: #FFDCE0;
  --pink: #FFC9D2;
  --sky: #DCE8FF;
  --blue: #3F68F0;
  --butter: #FFEDA8;
  --mint: #CDEFDC;
  --green: #17955A;
  --violet: #8A78F5;

  --f: "Roboto Flex", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-s: 12px;
  --r: 20px;
  --r-l: 30px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 24px 50px -28px rgba(80, 20, 30, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 450 16px/1.55 var(--f);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
::selection { background: var(--red); color: #fff; }

/* заголовки: узкое начертание Roboto Flex капсом */
.t-display {
  font-family: var(--f);
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: .94;
}

.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 24px;
  border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 650 15.5px/1 var(--f);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 60%, transparent); outline-offset: 2px;
}
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn--red { --bg: var(--red); box-shadow: 0 12px 24px -12px rgba(212, 42, 63, .7); }
.btn--red:hover { --bg: var(--red-d); }
.btn--white { --bg: #fff; --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--soft { --bg: var(--red-soft); --fg: var(--red-d); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo__mark {
  position: relative;
  display: grid; place-items: center;
  width: 40px; height: 34px;
  background: var(--red); color: #fff;
  border-radius: 11px 11px 11px 3px;
  font: 800 15px/1 var(--f); font-stretch: 70%; letter-spacing: .02em;
}
.logo__word { font: 800 21px/1 var(--f); font-stretch: 70%; text-transform: uppercase; letter-spacing: .01em; }
.logo__word small { display: block; margin-top: 3px; font: 600 10px/1 var(--f); font-stretch: 100%; letter-spacing: .08em; color: var(--muted); }

.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field small { font-size: 12.5px; color: var(--muted); }
.input {
  width: 100%; min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-s);
  background: #fff;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(63, 104, 240, .14); }
.input.is-bad { border-color: var(--red); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.55; }
select.input { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317151C' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 42px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-size: 14.5px; font-weight: 600; transition: background .2s, color .2s, box-shadow .2s;
}
.chip input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid rgba(63, 104, 240, .5); outline-offset: 2px; }

.check { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { width: 19px; height: 19px; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.check.is-bad { color: var(--red-d); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
