/* LidStaff — общие стили: шрифты, цвета, кнопки, формы */

@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/manrope-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("fonts/manrope-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/manrope-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("fonts/manrope-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/manrope-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("fonts/manrope-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/manrope-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/manrope-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("fonts/manrope-cyrillic-800-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("fonts/manrope-latin-800-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/unbounded-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("fonts/unbounded-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --bg: #E8F2FC;
  --surface: #FFFFFF;
  --ink: #333F48;
  --muted: #5F6B7A;
  --line: #CFDDF0;
  --navy: #2A4B9B;
  --navy-deep: #1B377C;
  --blue: #3A86DA;
  --sky: #7CC4F8;
  --mint: #78E8A8;
  --mint-deep: #5FDB95;
  --on-mint: #1D3B2C;
  --blue-deep: #2A4B9B;
  --on-blue: #1B377C;
  --coral-deep: #C23B2A;
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-display: "Unbounded", "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --glow: 0 34px 60px -36px rgba(42, 99, 196, .5);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 1rem/1.55 var(--font-body); }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
strong { font-weight: 700; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; background: #E3EDF9; padding: .1em .35em; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--navy-deep); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }

.h1, .h2, .h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.h2 { font-size: 1.6rem; }
.h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { flex: none; }
.logo__bg { fill: var(--navy); }
.logo__bar { fill: #fff; }
.logo__text { font: 800 1.35rem/1 var(--font-head); letter-spacing: -.01em; }
.logo__accent { color: var(--navy); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .6rem 1.3rem;
  border: 1.5px solid transparent; border-radius: var(--r-sm); font: 600 .97rem/1.2 var(--font-body); text-decoration: none;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .12s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-deep); color: #fff; }
.btn--accent { background: var(--mint); color: var(--on-mint); }
.btn--accent:hover { background: var(--mint-deep); color: var(--on-mint); }
.btn--ghost { background: var(--surface); color: var(--navy); border-color: #B5C5E2; }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy-deep); }
.btn--light { background: rgba(27, 55, 124, .55); color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn--light:hover { background: rgba(27, 55, 124, .85); color: #fff; }
.btn--danger { background: var(--surface); color: var(--coral-deep); border-color: #F3C4BD; }
.btn--danger:hover { background: #FDECE9; color: var(--coral-deep); }
.btn--sm { min-height: 36px; padding: .35rem .85rem; font-size: .86rem; border-radius: 10px; }
.btn--lg { min-height: 60px; padding: .9rem 1.9rem; font-size: 1.15rem; font-weight: 500; border-radius: 14px; }
.btn--block { width: 100%; }
.btn__arrow { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Формы */
.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field__label { font-size: .875rem; font-weight: 600; color: var(--muted); }
.input { width: 100%; min-height: 46px; padding: .55rem .85rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: 500 1rem/1.4 var(--font-body); }
.input:hover { border-color: #A9BEDF; }
.input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(58, 134, 218, .28); }
textarea.input { resize: vertical; min-height: 5rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--navy); flex: none; }
/* Подпись у галочки переносится ровными строками, без одинокого слова на второй строке */
.check > span { text-wrap: balance; }
.req { color: #C23B2A; font-weight: 700; }
.req-note { font-size: .875rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Панели и сообщения */
.panel { background: var(--surface); border-radius: var(--r-lg); padding: 1.7rem; box-shadow: var(--glow); }
.panel--center { text-align: center; display: grid; gap: .8rem; justify-items: center; }
.flash { margin: 0 0 1rem; padding: .8rem 1rem; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; overflow-wrap: anywhere; }
.flash--success { background: #E2F8EC; border-color: #A9E6C5; color: #14573A; }
.flash--error { background: #FDECE9; border-color: #F3C4BD; color: #8A2417; }
.flash--info { background: #E1EEFD; border-color: #B7D3F7; color: var(--navy-deep); }
.flash--secret { background: #FFF6E0; border-color: #F2D48B; color: #5B4208; user-select: all; }

/* Метки статусов: скруглённые квадраты */
.dot { display: inline-block; width: .72rem; height: .72rem; border-radius: 3px; background: #A9B4C4; flex: none; }
.dot--new { background: #6DB5F7; }
.dot--in_work { background: #2A4B9B; }
.dot--interview { background: #19B8C4; }
.dot--offer { background: #F2B441; }
.dot--hired { background: #3CCB7F; }
.dot--rejected { background: #A9B4C4; }
.dot--declined { background: #6B7686; }

.narrow { max-width: 480px; margin: 0 auto; padding: 3.5rem 1.25rem 4rem; }
.narrow .panel { display: grid; gap: 1rem; }
.error-code { font: 700 3.2rem/1 var(--font-display); color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Поле пароля с кнопкой «Показать» */
.passwrap { position: relative; display: block; }
.passwrap .input { padding-right: 6.2rem; }
.passwrap__btn { position: absolute; top: 50%; right: .5rem; transform: translateY(-50%); padding: .3rem .6rem; border: 0; border-radius: 8px; background: transparent;
  color: var(--navy); font: 600 .85rem/1 var(--font-body); cursor: pointer; }
.passwrap__btn:hover { background: #E8F0FB; }

/* Выпадающие списки: своя стрелка с отступом от правого края (системная прилипает к рамке) */
select.input { -webkit-appearance: none; appearance: none; padding-right: 2.7rem; text-overflow: ellipsis;
  background-image: url("chevron.svg"); background-repeat: no-repeat; background-position: right 1.05rem center; background-size: 12px 8px; cursor: pointer; }
select.input::-ms-expand { display: none; }

/* Поле для кода подтверждения при входе */
.codeinput { font-size: 1.3rem; letter-spacing: .18em; text-align: center; }

/* Галочка «Я не робот» на входе и регистрации */
.botcheck { display: grid; gap: .35rem; }
.botcheck__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.botcheck__box { display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 54px; padding: .6rem .9rem; background: #F4F8FD;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); font: 600 1rem/1.3 var(--font-body); color: var(--ink, #333F48); text-align: left; cursor: pointer; }
.botcheck__box:hover, .botcheck__box:focus-visible { border-color: var(--blue-deep); }
.botcheck__mark { flex: none; width: 26px; height: 26px; border: 2px solid #9FB3CF; border-radius: 7px; background: #fff; position: relative; transition: background .2s, border-color .2s; }
.botcheck.is-busy .botcheck__mark { border-color: #9FB3CF; border-top-color: #2A4B9B; border-radius: 50%; animation: botspin .8s linear infinite; }
.botcheck.is-done .botcheck__mark { background: #2FB36B; border-color: #2FB36B; }
.botcheck.is-done .botcheck__mark::after { content: ""; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.botcheck.is-done .botcheck__box { cursor: default; }
.botcheck.is-error .botcheck__box { border-color: #D64545; }
.botcheck__note { font-size: .85rem; color: #5F6B7A; min-height: 0; }
.botcheck.is-error .botcheck__note { color: #B33A3A; }
@keyframes botspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .botcheck.is-busy .botcheck__mark { animation-duration: 2.4s; } }
