/* Atwas — кадровое агентство. Светлая читаемая тема, боковая навигация */
:root {
  --bg: #F7F7F4;
  --surface: #FFFFFF;
  --ink: #14161F;
  --ink-2: #3B3F4E;
  --muted: #646979;
  --line: #E2E2DC;
  --line-2: #CFCFC7;
  --accent: #4B3BD6;
  --accent-ink: #2F2499;
  --accent-soft: #EEECFE;
  --ok: #1F7A4D;
  --err: #B42318;
  --font: "Onest", "Segoe UI", Roboto, Arial, sans-serif;
  --side: 280px;
  --r: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.tnum { font-variant-numeric: tabular-nums; }

/* логотип */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 24px; letter-spacing: -.03em; }
.logo i { width: 14px; height: 14px; background: var(--accent); border-radius: 3px; display: block; }
.logo small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 10px; font: 600 17px/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn.main { background: var(--accent); color: #fff; }
.btn.main:hover { background: var(--accent-ink); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.line:hover { border-color: var(--ink); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* боковая колонка */
.side { position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--side); background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 30px 24px 24px; }
.side .logo { margin-bottom: 36px; }
.snav { display: flex; flex-direction: column; gap: 2px; }
.snav a { display: flex; align-items: baseline; gap: 12px; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 16px; font-weight: 500; transition: background .15s, color .15s; }
.snav a span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; width: 18px; }
.snav a:hover { background: var(--bg); color: var(--ink); }
.snav a.on, .snav a[aria-current] { background: var(--accent-soft); color: var(--accent-ink); }
.snav a.on span, .snav a[aria-current] span { color: var(--accent-ink); }
.side-low { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.side-low a { color: var(--ink); font-weight: 600; text-decoration: none; }
.side-low .btn { width: 100%; margin-top: 14px; }

/* верхняя полоса (мобильная) */
.topbar { display: none; }

/* основная колонка */
.page { margin-left: var(--side); }
.col { max-width: 960px; padding: 0 56px; }
.blk { padding: 88px 0; border-bottom: 1px solid var(--line); }
.blk:last-child { border-bottom: 0; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.blk h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 18px; }
.lead { font-size: 20px; color: var(--ink-2); max-width: 62ch; }

/* обложка */
.hero { padding: 96px 0 80px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -.03em; line-height: 1.08; max-width: 17ch; margin-bottom: 26px; }
.hero h1 mark { background: none; color: var(--accent); }
.hero .lead { margin-bottom: 34px; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 20px 22px; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.facts b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.facts svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }

/* роли */
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; }
.role { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 26px 24px; display: flex; flex-direction: column; }
.role h3 { font-size: 22px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.role h3 svg { width: 24px; height: 24px; color: var(--accent); flex: 0 0 auto; }
.role p { color: var(--ink-2); font-size: 17px; }
.role .chk { margin: auto 0 0; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 15px; color: var(--muted); }
.role .chk b { color: var(--ink); font-weight: 600; }

/* конструктор запроса */
.builder { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 36px; align-items: start; }
.bq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; gap: 26px; }
.bq fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.bq legend { font-size: 15px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: 15px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: background .15s, border-color .15s, color .15s; user-select: none; }
.chip span:hover { border-color: var(--ink); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.stepper button { width: 46px; height: 46px; border: 0; background: var(--bg); font: 600 22px/1 var(--font); color: var(--ink); cursor: pointer; }
.stepper button:hover { background: var(--accent-soft); }
.stepper input { width: 72px; height: 46px; border: 0; border-left: 1.5px solid var(--line-2); border-right: 1.5px solid var(--line-2); text-align: center; font: 600 18px/1 var(--font); color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sum { position: sticky; top: 24px; background: var(--ink); color: #F3F3F7; border-radius: var(--r); padding: 26px; }
.sum small { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #A9ACBD; margin-bottom: 12px; font-weight: 600; }
.sum p { font-size: 19px; line-height: 1.55; color: #fff; min-height: 6.2em; }
.sum p b { color: #C9C2FF; font-weight: 600; }
.sum .btn { width: 100%; margin-top: 8px; }
.sum .btn.main:hover { background: #fff; color: var(--ink); }
.sum .note { font-size: 14px; color: #A9ACBD; margin: 14px 0 0; min-height: 0; }

/* процесс */
.flow { list-style: none; margin: 36px 0 0; padding: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.flow li { position: relative; padding: 0 0 30px 70px; }
.flow li:last-child { padding-bottom: 0; }
.flow .n { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.flow h3 { font-size: 21px; margin: 8px 0 6px; }
.flow p { color: var(--ink-2); font-size: 17px; margin: 0; max-width: 60ch; }
.flow .when { display: inline-block; font-size: 14px; color: var(--muted); margin-left: 8px; font-weight: 500; }

/* сравнение */
.cmp-wrap { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: 16px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; }
.cmp thead th { font-size: 14px; color: var(--muted); font-weight: 600; background: var(--bg); }
.cmp thead th.us { color: var(--accent-ink); background: var(--accent-soft); }
.cmp tbody th { font-weight: 600; width: 26%; }
.cmp td { color: var(--ink-2); }
.cmp td.us { color: var(--ink); background: #FBFAFF; }

/* соискателям */
.cand { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 30px 32px; }
.cand h2 { font-size: 28px; margin-bottom: 10px; }
.cand p { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 58ch; }

/* вопросы */
.qa { margin-top: 30px; border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 19px; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: 0 0 auto; width: 12px; height: 12px; margin-top: 6px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
.qa details[open] summary::after { transform: rotate(-135deg); margin-top: 12px; }
.qa summary:hover { color: var(--accent-ink); }
.qa details p { margin: 0; padding: 0 0 22px; color: var(--ink-2); font-size: 17px; max-width: 66ch; }

/* заявка */
.form { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fl { display: flex; flex-direction: column; gap: 7px; }
.fl.w { grid-column: 1 / -1; }
.fl label { font-size: 15px; font-weight: 600; }
.fl input, .fl select, .fl textarea { width: 100%; font: 400 17px/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line-2); border-radius: 10px; padding: 13px 14px; outline: 0; transition: border-color .15s, background .15s; -webkit-appearance: none; appearance: none; }
.fl select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314161F' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.fl textarea { min-height: 120px; resize: vertical; }
.fl input:focus, .fl select:focus, .fl textarea:focus { border-color: var(--accent); background: #fff; }
.fl .er { font-size: 14px; color: var(--err); min-height: 0; }
.fl.bad input, .fl.bad select { border-color: var(--err); }
.agree { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }
.agree.bad span { color: var(--err); }
.go { grid-column: 1 / -1; }
.thanks { display: none; grid-column: 1 / -1; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 10px; background: #E9F6EF; color: var(--ok); font-weight: 600; }
.thanks.on { display: flex; }
.thanks svg { width: 22px; height: 22px; flex: 0 0 auto; }

/* контакты */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; }
.card small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.card .big { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.02em; text-decoration: none; color: var(--ink); word-break: break-word; }
.card .big:hover { color: var(--accent-ink); }
.card p { margin: 0; font-size: 17px; }
.req { margin: 0; display: grid; }
.req div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.req div:last-child { border-bottom: 0; }
.req dt { color: var(--muted); }
.req dd { margin: 0; font-weight: 500; }
.card.wide { grid-column: 1 / -1; }
.map { margin-top: 16px; height: 420px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #ECECE6; position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* подвал */
.foot { margin-left: var(--side); background: var(--surface); border-top: 1px solid var(--line); }
.foot .col { padding-top: 40px; padding-bottom: 36px; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; font-size: 15px; color: var(--muted); }
.foot h4 { margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--accent-ink); text-decoration: underline; }
.foot .base { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* внутренние страницы */
.ptop { padding: 88px 0 56px; border-bottom: 1px solid var(--line); }
.crumb { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.crumb a { color: var(--ink-2); }
.ptop h1 { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -.03em; margin-bottom: 18px; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 30px; margin-top: 24px; }
.box h3 { font-size: 22px; margin-bottom: 12px; }
.box ul, .box ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); font-size: 17px; }
.box p { color: var(--ink-2); font-size: 17px; }
.box p:last-child { margin-bottom: 0; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { font-size: 17px; color: var(--ink-2); }
.doc ul { padding-left: 22px; display: grid; gap: 6px; }
.e404 { padding: 120px 0; }
.e404 b { display: block; font-size: clamp(90px, 14vw, 180px); line-height: 1; color: var(--accent); letter-spacing: -.05em; margin-bottom: 16px; }

/* адаптив */
@media (max-width: 1099px) {
  .side { display: none; }
  .side.open { display: flex; top: 64px; width: 100%; border-right: 0; border-bottom: 1px solid var(--line); bottom: auto; max-height: calc(100vh - 64px); overflow: auto; padding-top: 14px; }
  .side.open .logo { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 50; height: 64px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .topbar .logo { font-size: 22px; }
  .burger { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--surface); font: 600 15px/1 var(--font); color: var(--ink); cursor: pointer; }
  .page, .foot { margin-left: 0; }
  .col { margin: 0 auto; padding: 0 32px; }
  html { scroll-padding-top: 80px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .col { padding: 0 16px; }
  .topbar { padding: 0 16px; }
  .blk { padding: 64px 0; }
  .hero { padding: 56px 0 56px; }
  .lead { font-size: 18px; }
  .acts .btn { flex: 1 1 100%; }
  .facts, .roles, .cards, .builder { grid-template-columns: 1fr; }
  .sum { position: static; }
  .form { grid-template-columns: 1fr; padding: 22px 18px; }
  .cand { grid-template-columns: 1fr; padding: 24px 20px; }
  .req div { grid-template-columns: 1fr; gap: 2px; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .cmp tbody th { width: 100%; border: 0; padding: 14px 16px 6px; }
  .cmp td { border: 0; padding: 6px 16px; }
  .cmp td::before { content: attr(data-k); display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
  .cmp td.us { background: transparent; padding-bottom: 14px; }
  .map { height: 340px; }
  .foot .col { grid-template-columns: 1fr; }
  .box { padding: 22px 18px; }
  .flow li { padding-left: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
