@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-display: swap; src: url("/brand/inter-tight-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-display: swap; src: url("/brand/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212; }

/* Brief: white ground, blue primary buttons, black and dark grey text, calm and friendly. */
:root {
  --bg: #ffffff; --soft: #f4f6f9; --soft-2: #eaeef4; --line: #dfe4eb; --line-2: #cbd3de;
  --ink: #101317; --ink-2: #2c323b; --muted: #59626e;
  --blue: #1f5af0; --blue-2: #1746c4; --blue-soft: #edf2ff; --blue-line: #c8d6fd;
  --green: #12784a; --green-soft: #e7f5ee; --red: #d0342c; --red-soft: #fdeeed; --amber: #8c5600; --amber-soft: #fff4dd;
  --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --shadow: 0 1px 2px rgb(16 19 23 / .05), 0 6px 20px rgb(16 19 23 / .07);
  --shadow-lift: 0 2px 6px rgb(16 19 23 / .06), 0 18px 40px rgb(16 19 23 / .12);
  --font: "Inter Tight", "Segoe UI", system-ui, sans-serif;
  --t-xs: .8125rem; --t-sm: .9375rem; --t-md: 1.0625rem; --t-lg: 1.375rem; --t-xl: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --top-h: 64px; --tab-h: 64px; --wrap: 1360px; --pad: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-md)/1.5 var(--font); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-xl); font-weight: 760; }
h2 { font-size: var(--t-lg); font-weight: 720; }
h3 { font-size: var(--t-md); font-weight: 680; }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
#view:focus, h1:focus { outline: none; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(var(--wrap), 100% - var(--pad) * 2); margin-inline: auto; }
.muted { color: var(--muted); }
.lead-text { color: var(--ink-2); font-size: var(--t-md); margin-bottom: 16px; }
.hint { color: var(--muted); font-size: var(--t-xs); margin-top: 8px; }

/* Buttons */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r-sm); font-weight: 640; font-size: var(--t-sm); text-decoration: none; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--spring), box-shadow .2s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-2); box-shadow: 0 6px 18px rgb(31 90 240 / .28); }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-soft:hover:not(:disabled) { background: var(--soft-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger-text { background: var(--red-soft); color: #9e231d; }
.btn-danger-text:hover { background: #fbdcd9; }
.btn-vk { background: #0077ff; color: #fff; }
.btn-vk:hover:not(:disabled) { background: #0063d6; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: var(--t-xs); }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: var(--t-md); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); transition: background-color .2s, transform .2s var(--spring); }
.icon-btn:hover { background: var(--soft); }
.icon-btn:active { transform: scale(.92); }
.ripple { position: absolute; z-index: -1; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: currentColor; opacity: .18; pointer-events: none; animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(40); opacity: 0; } }

/* Fields */
.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-size: var(--t-sm); font-weight: 600; color: var(--ink-2); }
.field-hint { font-size: var(--t-xs); color: var(--muted); }
.field-error { font-size: var(--t-xs); color: var(--red); font-weight: 600; min-height: 0; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2359626e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.input::placeholder, .textarea::placeholder { color: #8a929d; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-sm); line-height: 1.4; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex: none; }

/* Chips and badges */
.chip { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: var(--t-sm); font-weight: 560; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--spring); }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip:active { transform: scale(.95); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: var(--t-xs); font-weight: 650; line-height: 1.25; background: var(--soft); color: var(--ink-2); }
.badge .ic { width: 14px; height: 14px; }
.badge-blue { background: var(--blue-soft); color: var(--blue-2); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: #9e231d; }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.empty { display: grid; justify-items: center; gap: 10px; padding: 48px 20px; text-align: center; background: var(--soft); border-radius: var(--r-lg); }
.empty .ic { width: 40px; height: 40px; color: var(--muted); }
.empty p { color: var(--muted); max-width: 42ch; }
