:root {
  --basis-black: #262626;        /* near-black (кнопки, шапка, акценты) */
  --basis-text: #474747;         /* основной текст (как на сайте) */
  --basis-gray: #919191;         /* приглушённый текст */
  --basis-light: #ffffff;        /* фон — белый, как на сайте */
  --basis-border: #dddddd;
  --basis-red: #c43a31;          /* только для ошибок */
}
* { box-sizing: border-box; }
body {
  font-family: 'Fira Sans', system-ui, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  color: var(--basis-text);
  background: var(--basis-light);
  margin: 0;
}
.wrap { max-width: 920px; margin: 0 auto; padding: 48px 24px; }
.center { min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px; }
.wordmark { font-weight: 400; font-size: 44px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--basis-black); }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--basis-gray); font-weight: 400; }
.card { background: #fff; border: 1px solid var(--basis-border);
  border-radius: 6px; padding: 28px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.btn { display: inline-block; background: var(--basis-black); color: #fff;
  border: 1px solid var(--basis-black); border-radius: 4px; padding: 12px 24px;
  font: inherit; font-weight: 400; letter-spacing: 0.04em; cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease; }
.btn:hover { opacity: 0.85; }
.btn-ghost { background: #fff; color: var(--basis-text);
  border: 1px solid var(--basis-border); }
.btn-ghost:hover { border-color: var(--basis-black); color: var(--basis-black);
  background: #fff; opacity: 1; }
input[type=text], input[type=password] {
  width: 100%; padding: 11px 13px; border: 1px solid var(--basis-border);
  border-radius: 4px; font: inherit; font-weight: 300; margin-top: 6px;
  transition: border-color 0.15s ease; }
input[type=text]:focus, input[type=password]:focus {
  outline: none; border-color: var(--basis-black); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; }
.tile { display: block; text-decoration: none; color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.tile:hover { border-color: var(--basis-black);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); }
.tile.disabled { opacity: 0.45; pointer-events: none; }
.err { color: var(--basis-red); font-size: 14px; margin-top: 12px; }
.row { display: flex; gap: 12px; align-items: center; }
/* Хедер во всю ширину окна, прижат к верху; контент выровнен по колонке .wrap (920px).
   Отрицательные боковые margin растягивают блок до краёв вьюпорта без 100vw
   (без горизонтальной прокрутки); margin-top компенсирует верхний padding .wrap;
   горизонтальный padding = (50vw − 460px + 24px) выравнивает содержимое по колонке. */
.topbar { display: flex; justify-content: space-between; align-items: center;
  background: var(--basis-black); color: #fff; gap: 16px;
  padding: 14px max(24px, calc(50vw - 436px)); border-radius: 0;
  margin-top: -48px; margin-bottom: 32px;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.topbar .label { color: #b5b5b5; }
.topbar .logo { filter: brightness(0) invert(1); }   /* белый логотип на тёмной шапке */
.topbar .btn-ghost { background: transparent; color: #fff; border-color: #4a4a4a; }
.topbar .btn-ghost:hover { background: rgba(255, 255, 255, 0.12);
  border-color: #6a6a6a; color: #fff; opacity: 1; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--basis-gray); font-weight: 400; }
::selection { background: var(--basis-black); color: #fff; }
.logo { display: block; height: auto; }
.logo-xl { width: 320px; max-width: 80vw; }
.logo-sm { height: 30px; width: auto; }
.brand { display: flex; align-items: center; gap: 12px; }
