@font-face{font-family:'Unbounded';font-style:normal;font-weight:500 900;font-display:swap;src:url(/fonts/Unbounded-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:500 900;font-display:swap;src:url(/fonts/Unbounded-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/GolosText-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Golos Text';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/GolosText-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500 700;font-display:swap;src:url(/fonts/JetBrainsMono-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500 700;font-display:swap;src:url(/fonts/JetBrainsMono-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  --bg: #f1efea;
  --surface: #ffffff;
  --ink: #121316;
  --ink-2: #4a4d55;
  --ink-3: #6b6f78;
  --line: rgba(18, 19, 22, 0.1);
  --line-2: rgba(18, 19, 22, 0.18);
  --pill: #e4e2dc;
  --accent: #0b7a78;
  --btn: #17181c;
  --btn-ink: #f6f5f1;
  --ok: #2fa84f;
  --err: #a3321f;
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Golos Text', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(18px, 4vw, 64px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
p, h1, h2 { margin: 0; }
a { color: inherit; text-decoration: none; }
b { font-weight: 600; color: var(--ink); }

.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad);
}
.bar__brand { display: flex; align-items: center; gap: 10px; font: 700 1.05rem var(--display); letter-spacing: -0.02em; }
.bar__brand img { width: 38px; height: auto; filter: brightness(0.25) contrast(1.2); }
.bar__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--pill);
  color: var(--ink);
  font: 500 0.92rem var(--body);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.pill[hidden] { display: none; }
a.pill:hover, button.pill:hover { background: var(--btn); color: var(--btn-ink); }
.me { display: flex; align-items: center; gap: 10px; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.me[hidden] { display: none; }
.me__ava { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: #fff; font: 700 0.9rem/1 var(--display); }
.me__text { display: flex; flex-direction: column; line-height: 1.2; padding-right: 12px; }
.me__text b { font-size: 0.92rem; font-weight: 600; }
.me__text small { color: var(--ink-3); font-size: 0.78rem; }
.me__text small:empty { display: none; }

.main {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 72px) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 520px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.auth__h {
  font: 800 clamp(2.8rem, 7.4vw, 6rem)/0.92 var(--display);
  letter-spacing: -0.05em;
}
.auth__h span { display: block; color: var(--accent); }
.auth__p { margin-top: 24px; max-width: 34ch; color: var(--ink-2); font-size: 1.15rem; }
.auth__note { margin-top: 14px; max-width: 40ch; color: var(--ink-3); font-size: 0.98rem; }

.card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card__h { font: 700 1.5rem/1.15 var(--display); letter-spacing: -0.03em; }
.card__p { margin-top: 10px; color: var(--ink-2); }

.form { display: grid; gap: 14px; margin-top: 24px; }
.field { display: grid; gap: 7px; }
.field__label { font: 500 0.74rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.field__box { position: relative; }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: 500 1.05rem var(--body);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.field input::placeholder { color: #a7a9ae; }
.field input:focus { outline: none; background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #c2412d; }
.field input.is-pass { padding-right: 52px; }
.eye {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
}
.eye:hover { background: var(--pill); color: var(--ink); }
.eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eye[aria-pressed="true"] .eye__line { display: inline; }
.eye__line { display: none; }
.caps { color: #9a6a06; font-size: 0.9rem; }
.caps[hidden] { display: none; }

.msg { padding: 12px 14px; border-radius: 12px; background: rgba(194, 65, 45, 0.08); color: var(--err); font-size: 0.98rem; animation: drop 0.35s var(--ease); }
.msg:empty { display: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 14px;
  background: var(--btn);
  color: var(--btn-ink);
  font: 600 1.02rem var(--body);
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.go:hover { background: #000; }
.go:active { transform: scale(0.985); }
.go[disabled] { cursor: progress; background: #3a3c42; }
.go.is-done { background: #23813d; }
.go--auto { width: auto; margin-top: 24px; }

.or { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; color: var(--ink-3); font-size: 0.9rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tg[hidden] { display: none; }
.tg { display: grid; gap: 14px; }
#tg-slot { display: flex; justify-content: center; min-height: 40px; }

.depts-head__h { font: 800 clamp(2.2rem, 5.4vw, 4.4rem)/0.95 var(--display); letter-spacing: -0.05em; }
.depts-head__p { margin-top: 16px; color: var(--ink-2); font-size: 1.15rem; }
.depts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.dept {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
a.dept:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--accent), 0 18px 36px -22px rgba(11, 122, 120, 0.45); }
.dept__tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--ink-2);
  font: 500 0.82rem var(--mono);
}
.dept__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.dept__h { margin-top: 0; font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.05 var(--display); letter-spacing: -0.035em; }
.dept__p { margin-top: 10px; max-width: 38ch; color: var(--ink-2); }
.dept__go { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.dept__arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); transition: transform 0.35s var(--ease), background 0.3s var(--ease); }
.dept__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
a.dept:hover .dept__arrow { transform: translateX(4px); background: var(--accent); }
.dept__tag + .dept__h { margin-top: 22px; }
.dept.is-locked { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.dept.is-locked .dept__tag::before { background: #c2412d; }
.dept.is-locked .dept__h, .dept.is-locked .dept__p { color: var(--ink-3); }
.dept.is-locked .dept__go { color: var(--ink-3); font-weight: 500; }
.dept.is-locked .dept__arrow { display: none; }

.solo { width: min(560px, 100%); margin: 0 auto; }
.solo .card__h { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.05em; font-weight: 800; }

@media (max-width: 880px) {
  .auth { grid-template-columns: 1fr; gap: 28px; }
  .auth__p { margin-top: 16px; font-size: 1.05rem; }
}
@media (max-width: 520px) {
  .bar__brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.me__ava { position: relative; overflow: hidden; }
.me__ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.me__ava.has-img { color: transparent; background: var(--pill); }
