:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f7faf8;
  --ink: #17251b;
  --ink-2: #4b5a50;
  --ink-3: #8a978e;
  --green-800: #14532d;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --line: #e3ece5;
  --line-strong: #cfdfd3;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(23, 37, 27, 0.05);
  --shadow-md: 0 2px 8px rgba(23, 37, 27, 0.06), 0 8px 24px rgba(23, 37, 27, 0.05);
  --shadow-lg: 0 4px 12px rgba(23, 37, 27, 0.08), 0 16px 40px rgba(23, 37, 27, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Атрибут hidden всегда прячет элемент — какие бы display ни задавали классы */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Фиксированный масштаб: щипок-зум отключён, как у мобильных приложений
   (meta viewport для Android, touch-action — для iOS Safari).
   Горизонтальный сдвиг/скролл страницы невозможен в принципе. */
html, body { overflow-x: clip; }
body { touch-action: pan-y; }

body {
  font-family: 'Inter', 'Helvetica Neue', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--green-100); }

a { color: var(--green-700); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--green-600); }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; letter-spacing: normal; color: var(--ink); }

.container { max-width: 1128px; margin: 0 auto; padding: 0 24px; }

img, svg { vertical-align: middle; }

.icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ================= Шапка ================= */
.site-header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(227, 236, 229, 0.6);
  box-shadow: 0 1px 12px rgba(23, 37, 27, 0.03);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}
.brand { display: flex; align-items: center; }
.brand-mark {
  flex-shrink: 0;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(21, 128, 61, 0.22);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
}
.brand:hover .brand-mark {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 22px rgba(21, 128, 61, 0.38);
}

/* Блик, проходящий по плашке при наведении */
.logo-shine {
  transform: translateX(-36px) skewX(-18deg);
  transition: none;
}
.brand:hover .logo-shine {
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(112px) skewX(-18deg);
}

/* Зелёная точка подпрыгивает */
.logo-dot { transform-box: fill-box; transform-origin: center; }
.brand:hover .logo-dot { animation: dot-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s; }
@keyframes dot-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.75) translateY(-2px); }
  100% { transform: scale(1); }
}

.brand-name {
  font-size: 21.5px;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--ink);
  line-height: 1;
}
.brand-name em { font-style: normal; color: var(--green-600); }
.brand-name-sm { font-size: 19px; }

.logo-circle {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: normal;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.logo-circle:hover { color: #fff; transform: scale(1.05); box-shadow: var(--shadow-md); }

.mode-toggle {
  display: flex;
  background: #eef4ef;
  border-radius: 14px;
  padding: 4px;
  gap: 2px;
}
.mode-tab {
  padding: 9px 22px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  transition: all 0.15s;
}
.mode-tab:hover { color: var(--ink-2); }
.mode-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(23, 37, 27, 0.10);
}

.geo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  margin-right: 4px;
  white-space: nowrap;
}
.geo .icon { color: var(--ink-3); }

.main-nav { display: flex; gap: 4px; }
.nav-link {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14.5px;
  padding: 7px 12px;
  border-radius: 8px;
}
.nav-link:hover { color: var(--ink); background: var(--green-50); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-chip {
  display: inline-flex;
  flex-shrink: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  line-height: 0;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.user-chip:hover { box-shadow: 0 0 0 3px var(--green-100); }
.user-avatar {
  width: 34px; height: 34px;
  min-width: 34px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.inline-form { display: inline; }

/* ================= Чаты ================= */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-600);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  margin-left: 5px;
  vertical-align: 1px;
}
.bn-icon-wrap { position: relative; display: inline-flex; }
.bn-badge {
  position: absolute;
  top: -4px; right: -8px;
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-sizing: content-box;
}

.dialog-list { display: flex; flex-direction: column; gap: 8px; }
.dialog-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid #e7efe9;
  border-radius: 14px;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.dialog-row:hover { border-color: #c8ddcd; color: var(--ink); }
.dialog-unread { background: var(--green-50); border-color: var(--green-100); }
.dialog-main { flex: 1; min-width: 0; }
.dialog-name { display: block; font-weight: 600; font-size: 14.5px; }
.dialog-vacancy {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--green-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.dialog-preview {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.dialog-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex-shrink: 0; }
.dialog-time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.dialog-badge {
  background: var(--green-600);
  color: #fff;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  min-width: 19px;
  height: 19px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-card {
  background: var(--surface);
  border: 1px solid #e7efe9;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.chat-head-info { min-width: 0; flex: 1; }
.chat-head-avatar { width: 36px; height: 36px; border-radius: 10px; font-size: 15px; }
.chat-head-name {
  font-weight: 600;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-head-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-head-sub a { color: var(--green-700); font-weight: 500; }
.chat-head-action { flex-shrink: 0; }

.chat-day {
  align-self: center;
  background: #eef4ef;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  padding: 3px 12px;
  margin: 8px 0 4px;
}
.chat-body {
  padding: 16px;
  overflow-y: auto;
  min-height: 280px;
  max-height: 56vh;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f7faf8;
}
.chat-empty {
  text-align: center;
  padding: 44px 16px;
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: auto 0;
}
.msg {
  max-width: 78%;
  padding: 9px 13px 6px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
}
.msg + .msg { margin-top: 2px; }
.msg-mine {
  align-self: flex-end;
  background: var(--green-600);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg-theirs {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 2px rgba(23, 37, 27, 0.04);
}
.msg-text { white-space: pre-wrap; word-break: break-word; }
.msg-time { font-size: 11px; color: var(--ink-3); margin-top: 3px; text-align: right; }
.msg-mine .msg-time { color: rgba(255, 255, 255, 0.75); }
.msg-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  margin-top: 4px;
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.msg-mine .msg-file { color: #fff; }
.msg-file .icon { width: 14px; height: 14px; flex-shrink: 0; }

.chat-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.chat-attach {
  display: inline-flex;
  padding: 9px;
  border-radius: 10px;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.chat-attach:hover { background: #f2f6f3; color: var(--ink); }
.chat-attach input { display: none; }
.chat-input {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  min-width: 0;
}
.chat-input:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.10); }
.chat-send { width: 42px; height: 42px; padding: 0; border-radius: 50%; flex-shrink: 0; }
.chat-file-hint { padding: 0 16px 10px; font-size: 12.5px; }

/* ================= Вход через Google ================= */
/* Сегментированный переключатель роли на регистрации */
.seg-toggle {
  display: flex;
  background: #f0f4f1;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 18px;
}
.seg-opt { flex: 1; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-opt span {
  display: block;
  text-align: center;
  padding: 10px 8px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.seg-opt input:checked + span {
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(23, 37, 27, 0.12);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--ink-3);
  font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.google-btn-wrap { display: flex; justify-content: center; min-height: 44px; }

/* ================= Профиль ================= */
.profile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.profile-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
  font-weight: 700;
  flex-shrink: 0;
}
.profile-head-info { min-width: 0; }
.profile-role {
  display: inline-block;
  margin-top: 6px;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 500;
}
.profile-block { margin-bottom: 14px; }
.profile-block-title { font-size: 15px; margin-bottom: 12px; }
.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.profile-row:last-of-type { border-bottom: none; }
.profile-row > span:last-child { text-align: right; font-weight: 500; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* ================= Кнопки =================
   Плоская система: сплошной цвет, фиксированная высота,
   на hover меняется только оттенок — без теней и движения. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  background: none;
  font-family: inherit;
  line-height: 1;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }

.btn-primary { background: var(--green-600); color: #fff; }
.btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-primary:active { background: var(--green-800); }

.btn-outline { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: #a9bfae; background: #fafcfa; color: var(--ink); }
.btn-outline:active { background: #f2f6f3; }

.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: #f2f6f3; color: var(--ink); }
.btn-ghost:active { background: #e9efe9; }

.btn-danger { border-color: #f3d2d2; color: var(--danger); background: var(--surface); }
.btn-danger:hover { background: var(--danger-bg); border-color: #e3b1b1; }

.btn-dark { background: var(--ink); color: #fff; border-radius: 999px; padding: 0 22px; }
.btn-dark:hover { background: #2b3a30; color: #fff; }
.btn-dark:active { background: #0f1a13; }

.btn-soft { background: #f0f4f1; color: var(--ink); border-radius: 999px; padding: 0 20px; }
.btn-soft:hover { background: #e6ede8; }
.btn-soft:active { background: #dce6de; }

.btn-light { background: #ffffff; color: var(--ink); }
.btn-light:hover { background: #f2f6f3; color: var(--ink); }
.btn-light:active { background: #e9efe9; }

.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { display: flex; width: 100%; margin-bottom: 8px; }

/* ================= Hero-карточка (как у hh) ================= */
.hero-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 380px;
  margin-top: 20px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 420px at 88% 0%, rgba(74, 222, 128, 0.16) 0%, transparent 55%),
    linear-gradient(120deg, #0b3d20 0%, #14532d 55%, #166534 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-card-content {
  position: relative;
  z-index: 2;
  padding: 56px 60px;
  max-width: 640px;
}
.hero-card-title {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.18;
  color: #fff;
}
.hero-card-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 3; }
.hero-card-foot { margin-top: 40px; color: rgba(255, 255, 255, 0.75); font-size: 14.5px; }
.hero-card-foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero-card-foot a:hover { color: #bbf7d0; }
.hero-card-art {
  position: absolute;
  right: 0; top: 50%;
  transform: translate(calc(var(--px, 0) * 1px), calc(-50% + var(--py, 0) * 1px));
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

/* Прожектор, следующий за курсором */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
  background:
    radial-gradient(340px circle at calc(var(--mx, 50) * 1%) calc(var(--my, 40) * 1%),
      rgba(74, 222, 128, 0.28) 0%,
      rgba(74, 222, 128, 0.10) 38%,
      transparent 68%);
}
.hero-card:hover .hero-glow { opacity: 1; }

/* Искра, вспыхивающая под курсором */
.hero-spark {
  position: absolute;
  z-index: 3;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #bbf7d0;
  pointer-events: none;
  animation: spark-fade 0.9s ease-out forwards;
}
@keyframes spark-fade {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 46px)) scale(0.2); }
}

/* ================= Секция поиска ================= */
.search-section { padding-top: 40px; padding-bottom: 8px; }
.search-section-title { font-size: 26px; font-weight: 600; letter-spacing: normal; margin-bottom: 18px; }
.search-panel { display: flex; gap: 10px; align-items: stretch; }
.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 0 18px;
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box:focus-within { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12); }
.search-box .icon { width: 19px; height: 19px; color: var(--ink-3); }
.search-box-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15.5px;
  padding: 16px 0;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
.search-box-input::placeholder { color: var(--ink-3); }
.search-panel .ui-select { min-width: 170px; }
.search-panel .ui-select-trigger { border-radius: 16px; padding: 14px 16px; height: 100%; }
.search-panel .search-city { border-radius: 16px; }
.btn-find { height: auto; min-height: 48px; border-radius: 14px; padding: 0 40px; font-size: 15px; }

/* ================= Популярное ================= */
.section-title .bolt { margin-right: 4px; position: relative; top: -1px; }
.popular-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pop-card {
  position: relative;
  background: var(--surface);
  border: 1px solid #e7efe9;
  border-radius: 20px;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  min-height: 142px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.pop-card::after {
  content: '';
  position: absolute;
  top: 20px; right: 20px;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.pop-card:hover {
  border-color: #c8ddcd;
  box-shadow: 0 2px 6px rgba(23, 37, 27, 0.04), 0 10px 28px rgba(23, 37, 27, 0.07);
  transform: translateY(-2px);
}
.pop-card:hover::after { opacity: 1; transform: none; }
.pop-title { font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: normal; }
.pop-salary { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 3px; }
.pop-count { margin-top: auto; padding-top: 18px; font-size: 13.5px; color: var(--ink-3); }

.search-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  background: var(--surface);
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  max-width: 720px;
}
.search-bar:focus-within { border-color: var(--green-500); }
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 14px;
  min-width: 0;
}
.search-field .icon { color: var(--ink-3); width: 18px; height: 18px; }
.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15.5px;
  padding: 10px 0;
  font-family: inherit;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
.search-input::placeholder { color: var(--ink-3); }
.search-select {
  border: none;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding: 8px 14px;
  font-size: 14.5px;
  font-family: inherit;
  background: transparent;
  color: var(--ink-2);
  outline: none;
  cursor: pointer;
  max-width: 180px;
}

.popular-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13.5px;
}
.popular-label { color: var(--ink-3); }
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.15s;
}
.chip:hover { border-color: var(--green-600); color: var(--green-700); background: var(--green-50); }

/* ================= Секции ================= */
.section { padding-top: 44px; padding-bottom: 8px; }
.section-title { font-size: 24px; font-weight: 600; margin-bottom: 20px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-head .section-title { margin-bottom: 0; }
.link-more { font-weight: 600; font-size: 14.5px; }

/* ================= Направления ================= */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.area-card {
  background: var(--surface);
  border: 1px solid #e7efe9;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.area-card:hover {
  border-color: #c8ddcd;
  box-shadow: 0 2px 6px rgba(23, 37, 27, 0.04), 0 8px 22px rgba(23, 37, 27, 0.06);
  transform: translateY(-1px);
}
.area-name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.area-count { color: var(--ink-3); font-weight: 600; font-size: 13.5px; }

/* ================= Карточка вакансии ================= */
.vacancy-list { display: flex; flex-direction: column; gap: 10px; }
.vacancy-card {
  background: var(--surface);
  border: 1px solid #e7efe9;
  border-radius: 16px;
  padding: 20px 24px 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vacancy-card:hover {
  border-color: #c8ddcd;
  box-shadow: 0 2px 6px rgba(23, 37, 27, 0.04), 0 10px 28px rgba(23, 37, 27, 0.07);
}
.vacancy-card-inactive { opacity: 0.55; }

.vc-head { display: flex; justify-content: space-between; gap: 18px; }
.vc-main { min-width: 0; }

.vacancy-title {
  font-size: 18.5px;
  font-weight: 500;
  color: var(--green-700);
  letter-spacing: normal;
  line-height: 1.35;
}
.vacancy-title:hover { color: var(--green-600); }
.vacancy-title-sm { font-size: 15px; }
.vacancy-date { color: var(--ink-3); font-size: 13px; white-space: nowrap; margin-left: auto; }

.vacancy-salary { font-size: 16.5px; font-weight: 700; margin-top: 5px; letter-spacing: normal; }
.salary-note { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.vacancy-salary-none { color: var(--ink-2); font-weight: 500; font-size: 14.5px; }

.vc-company {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  font-size: 14px;
}
.verified { display: inline-flex; align-items: center; }
.company-badge {
  width: 22px; height: 22px;
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.company-badge-lg {
  width: 46px; height: 46px;
  border-radius: 12px;
  font-size: 19px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.company-link { font-weight: 500; color: var(--ink-2); }
.company-link:hover { color: var(--green-700); }
.meta-sep { color: var(--line-strong); }

.vc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.vc-geo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  color: var(--ink-2);
  margin-right: 4px;
}
.vc-geo .icon { width: 14px; height: 14px; color: var(--ink-3); }
.vacancy-geo { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.vacancy-geo .icon { width: 14px; height: 14px; color: var(--ink-3); }
.vc-chip {
  background: #f2f6f3;
  border-radius: 7px;
  padding: 3.5px 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}
.vc-chip-accent { background: var(--green-50); color: var(--green-700); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 7px;
  padding: 2.5px 9px;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-2);
}

.vc-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.vacancy-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.badge {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-applied, .badge-status-neutral { background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100); }
.badge-status-ok { background: var(--green-600); color: #fff; }
.badge-status-no, .badge-no { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }

/* ================= Страницы ================= */
.page { padding-top: 32px; padding-bottom: 56px; }
.page > .container > h1, .page h1.page-title { font-size: 27px; font-weight: 600; margin-bottom: 20px; }
.page-narrow { max-width: 760px; }

.layout-sidebar {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: 24px;
  align-items: start;
}
.layout-vacancy { grid-template-columns: 1fr 328px; }

/* ================= Фильтры ================= */
.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 84px;
}
.filter-group { margin-bottom: 20px; }
.filter-group h4 {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 9px;
}
.radio-row, .check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}
.radio-row:hover, .check-row:hover { color: var(--ink); }
.radio-row input, .check-row input { accent-color: var(--green-600); width: 16px; height: 16px; cursor: pointer; }
.check-row { margin: 14px 0 20px; }

.results-title { font-size: 21px !important; font-weight: 600 !important; }

/* ================= Активация аккаунта ================= */
.activate-bar {
  background: var(--amber-bg);
  border-bottom: 1px solid #fde68a;
}
.activate-bar-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 24px;
  color: var(--amber);
  font-size: 13.5px;
}
.activate-bar-inner .icon { flex-shrink: 0; width: 16px; height: 16px; }
.activate-bar-inner span { flex: 1; }
.activate-bar-link { color: var(--amber); font-weight: 600; white-space: nowrap; text-decoration: underline; }

.activate-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.activate-step-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--amber-bg);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}
.activate-step-icon.done { background: var(--green-50); color: var(--green-600); }
.activate-step-body { min-width: 0; }
.activate-step-body h3 { font-size: 15.5px; margin-bottom: 4px; }
.activate-step-body p { margin-bottom: 10px; }
.activate-step-body code {
  background: #f2f6f3;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 12.5px;
}

/* ================= Формы ================= */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.input, select.input, textarea.input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:hover { border-color: var(--ink-3); }
.input:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a978e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
textarea.input { resize: vertical; line-height: 1.55; }

.field { display: block; margin-bottom: 18px; }
.field > span {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert-error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecaca; }
.alert-ok { background: var(--green-50); color: var(--green-800); border: 1px solid var(--green-100); }
.alert-warn { background: var(--amber-bg); color: var(--amber); border: 1px solid #fde68a; }

.muted { color: var(--ink-3); }

/* ================= Аутентификация ================= */
.auth-card { max-width: 440px; margin: 32px auto; padding: 36px; }
.auth-card h1 { margin-bottom: 24px; font-size: 24px; }
.auth-switch { margin-top: 20px; text-align: center; color: var(--ink-3); font-size: 14px; }
.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 22px;
  background: #f2f7f3;
  border-radius: var(--radius-sm);
  padding: 4px;
}
.role-option {
  border-radius: 8px;
  padding: 9px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
}
.role-option:has(input:checked) {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.role-option input { display: none; }

/* ================= Страница вакансии ================= */
.vacancy-page-title { font-size: 27px; font-weight: 600; margin-bottom: 6px; }
.vacancy-page-salary { font-size: 21px; font-weight: 700; margin-bottom: 20px; letter-spacing: normal; }
.vacancy-page-salary .muted { font-size: 14px; font-weight: 500; }

.vacancy-page-props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
  font-size: 14px;
}
.prop { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.prop .icon { color: var(--green-600); width: 17px; height: 17px; }
.prop .muted { margin-right: 2px; }

.apply-block { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.apply-form { margin-bottom: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.apply-form textarea { max-width: 560px; }
.vacancy-description { white-space: pre-line; margin-bottom: 26px; font-size: 15px; color: #26362b; }
.vacancy-page h3 { margin-bottom: 10px; font-size: 17px; }
.vacancy-published { margin-top: 26px; font-size: 13px; padding-top: 18px; border-top: 1px solid var(--line); }
.vacancy-aside { display: flex; flex-direction: column; gap: 16px; }
.vacancy-aside .card { padding: 24px; }
.company-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.company-card h3 { font-size: 16px; }
.company-card p { font-size: 14px; }
.similar-item { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.similar-item:first-of-type { padding-top: 6px; }
.similar-item:last-child { border-bottom: none; padding-bottom: 0; }
.similar-item .muted { font-size: 13px; }

/* ================= Компании ================= */
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.company-grid-card { display: block; color: var(--ink); transition: all 0.15s; }
.company-grid-card:hover { border-color: var(--green-500); box-shadow: var(--shadow-md); transform: translateY(-1px); color: var(--ink); }
.company-grid-card h3 { margin: 14px 0 2px; font-size: 17px; }
.company-desc { font-size: 13.5px; color: var(--ink-2); margin: 8px 0 14px; }
.company-avatar {
  width: 48px; height: 48px;
  color: #fff;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.company-avatar-lg { width: 76px; height: 76px; font-size: 32px; border-radius: 18px; flex-shrink: 0; }
.company-header { display: flex; gap: 22px; margin-bottom: 30px; align-items: flex-start; }
.company-header h1 { margin-bottom: 2px !important; }
.company-header p { max-width: 640px; }

/* ================= Отклики ================= */
.response-card { display: block; }
.response-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.response-head h3 { font-size: 17px; }
.response-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.response-card p { margin: 8px 0; font-size: 14.5px; }
.cover-letter {
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  margin: 14px 0;
  font-size: 14px;
}
.response-contacts { margin: 14px 0 4px; font-size: 14px; }
.response-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.resume-about {
  margin-top: 10px;
  font-size: 13.5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.employer-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; flex-shrink: 0; }

/* ================= CTA ================= */
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 20px; }
.cta-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green-500), var(--green-700));
}
.cta-card h3 { font-size: 19px; margin-bottom: 8px; }
.cta-card p { color: var(--ink-2); margin-bottom: 18px; font-size: 14.5px; max-width: 400px; }

/* ================= Пустые состояния ================= */
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  color: var(--ink-2);
}
.empty-state p { margin-bottom: 14px; }
.empty-state .btn { margin-top: 4px; }

/* ================= Подвал ================= */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 44px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand-name { font-size: 19px; font-weight: 700; letter-spacing: normal; }
.logo-circle-sm { width: 38px; height: 38px; font-size: 12px; }
.footer-note { color: var(--ink-3); font-size: 13.5px; margin-top: 8px; max-width: 240px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--ink-3);
}
.footer-cols a { display: block; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.footer-cols a:hover { color: var(--green-700); }
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 18px 24px;
  font-size: 13px;
  color: var(--ink-3);
}

/* ================= Кастомные селекты ================= */
.ui-select { position: relative; min-width: 0; }
.ui-select-native {
  position: absolute !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ui-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ui-select-trigger:hover { border-color: var(--ink-3); }
.ui-select-trigger:focus-visible,
.ui-select.open .ui-select-trigger {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.ui-select-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-select-label.is-placeholder { color: var(--ink-2); }
.ui-select-trigger .chev { color: var(--ink-3); transition: transform 0.18s; flex-shrink: 0; }
.ui-select.open .chev { transform: rotate(180deg); }

.ui-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-height: 288px;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 70;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.ui-select.open .ui-select-menu { opacity: 1; transform: none; pointer-events: auto; }
.ui-select.up .ui-select-menu { top: auto; bottom: calc(100% + 6px); transform-origin: bottom; }
.ui-select-menu::-webkit-scrollbar { width: 8px; }
.ui-select-menu::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; border: 2px solid var(--surface); }

.ui-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s, color 0.1s;
}
.ui-select-option.is-active { background: var(--green-50); color: var(--ink); }
.ui-select-option.selected { color: var(--green-700); font-weight: 600; }
.ui-select-option.selected::after {
  content: '';
  width: 15px; height: 15px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* селект внутри поисковой строки — без рамки, с разделителем слева */
.search-bar .ui-select-bare .ui-select-trigger {
  border: none;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  color: var(--ink-2);
  min-width: 150px;
  height: 100%;
}
.search-bar .ui-select-bare.open .ui-select-trigger { color: var(--ink); }

/* ================= Кастомные радио и чекбоксы ================= */
.radio-row input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  transition: border 0.15s;
  flex-shrink: 0;
}
.radio-row input[type="radio"]:hover { border-color: var(--green-500); }
.radio-row input[type="radio"]:checked { border: 5.5px solid var(--green-600); }

.check-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 2px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}
.check-row input[type="checkbox"]:hover { border-color: var(--green-500); }
.check-row input[type="checkbox"]:checked {
  background: var(--green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: var(--green-600);
}

/* ================= Модальное окно выбора города ================= */
.geo {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 10px;
  transition: background 0.15s;
}
.geo:hover { background: var(--green-50); color: var(--ink); }

.city-modal { position: fixed; inset: 0; z-index: 100; }
.city-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 37, 27, 0.28);
  opacity: 0;
  transition: opacity 0.18s;
}
.city-modal.open .city-modal-backdrop { opacity: 1; }
.city-modal-panel {
  position: absolute;
  top: 74px;
  right: max(24px, calc((100vw - 1128px) / 2));
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: min(660px, calc(100vh - 100px));
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 26px;
  box-shadow: 0 8px 24px rgba(23, 37, 27, 0.12), 0 24px 64px rgba(23, 37, 27, 0.18);
  padding: 26px;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.city-modal.open .city-modal-panel { opacity: 1; transform: none; }
.city-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.city-modal-head h3 { font-size: 21px; font-weight: 600; letter-spacing: normal; }
.city-modal-close {
  border: none;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
  transition: background 0.15s, color 0.15s;
}
.city-modal-close:hover { background: var(--green-50); color: var(--ink); }

.city-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--green-600);
  border-radius: 13px;
  padding: 0 14px;
  margin-bottom: 18px;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
  flex-shrink: 0;
}
.city-search .icon { color: var(--ink-3); width: 18px; height: 18px; }
.city-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  padding: 12px 0;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
.city-search input::placeholder { color: var(--ink-3); }

.city-list-label { font-size: 14px; color: var(--ink-3); margin-bottom: 10px; flex-shrink: 0; }
.city-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  margin-right: -4px;
}
.city-list::-webkit-scrollbar { width: 8px; }
.city-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
.city-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.13s, background 0.13s;
  flex-shrink: 0;
}
.city-row:hover { border-color: var(--green-500); }
.city-row.selected { border-color: var(--green-600); background: var(--green-50); }
.city-radio {
  width: 20px; height: 20px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border 0.13s;
}
.city-row.selected .city-radio { border: 6px solid var(--green-600); }

/* ================= Лендинг «Ищу сотрудника» ================= */
.hire-hero {
  position: relative;
  padding-top: 96px;
  padding-bottom: 72px;
  text-align: center;
  overflow: hidden;
}
.hire-hero-inner { position: relative; z-index: 2; }
.hire-title {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.type-word { color: var(--ink); }
.type-caret {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--ink);
  margin-left: 4px;
  vertical-align: -0.08em;
  animation: caret-blink 1.05s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.hire-subtitle {
  font-size: 19px;
  color: var(--ink-2);
  margin: 24px auto 36px;
  line-height: 1.55;
}
.hire-cta { display: flex; justify-content: center; }
.hire-cta .btn-lg { padding: 16px 34px; font-size: 16.5px; border-radius: 14px; }
.hire-doodle { position: absolute; top: 40px; z-index: 1; opacity: 0.9; }
.hire-doodle-left { left: max(0px, calc((100vw - 1400px) / 2)); }
.hire-doodle-right { right: max(0px, calc((100vw - 1400px) / 2)); }

.hire-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hire-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: var(--shadow-sm);
}
.hire-stat-num { font-size: 34px; font-weight: 600; letter-spacing: normal; color: var(--green-700); }
.hire-stat-label { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; }

.hire-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hire-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.hire-step-num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.hire-step h3 { font-size: 17px; margin-bottom: 6px; }
.hire-step p { color: var(--ink-2); font-size: 14.5px; }

/* ================= Экран входа (как у hh) ================= */
.auth-body {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}
.auth-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 60px;
  position: relative;
  z-index: 2;
}
.auth-panel {
  width: 100%;
  max-width: 464px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
  padding: 28px 36px 36px;
  animation: page-in 0.35s ease both;
}
.auth-panel-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 10px;
}
.auth-back {
  justify-self: start;
  border: none;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  display: inline-flex;
  transition: background 0.15s, color 0.15s;
}
.auth-back:hover { background: var(--green-50); color: var(--ink); }
.auth-top-spacer { justify-self: end; width: 36px; }
.auth-title {
  text-align: center;
  font-size: 25px;
  font-weight: 600;
  margin: 10px 0 24px;
}

.auth-role {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.auth-role:hover { border-color: var(--green-500); }
.auth-role.selected { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.10); }
.auth-role-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #f2f7f3;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.auth-role.selected .auth-role-icon { background: var(--green-100); color: var(--green-700); }
.auth-role-text { display: flex; flex-direction: column; gap: 1px; }
.auth-role-text b { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.auth-role-text span { font-size: 13.5px; color: var(--ink-3); }

.auth-main-btn { margin-top: 14px; }
.btn-soft-primary {
  background: var(--green-50);
  color: var(--green-700);
  border-radius: 12px;
}
.btn-soft-primary:hover { background: var(--green-100); color: var(--green-800); }
.btn-soft-primary:active { background: #c9f3d6; }

.auth-profile-chip {
  display: table;
  margin: 0 auto 18px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-800);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 5px 14px;
}
.auth-copy {
  margin-top: 28px;
  color: var(--ink-3);
  font-size: 13.5px;
  text-align: center;
}
.auth-terms {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  text-align: center;
}
.auth-doodle { position: fixed; bottom: 0; z-index: 1; pointer-events: none; }
.auth-doodle-left { left: max(8px, calc(50vw - 640px)); }
.auth-doodle-right { right: max(8px, calc(50vw - 640px)); }
@media (max-width: 1100px) {
  .auth-doodle { display: none; }
}
@media (max-width: 520px) {
  .auth-panel { padding: 22px 20px 28px; }
}

/* ================= Микроанимации и полировка ================= */
main { animation: page-in 0.35s ease both; }
@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.hero-card-art svg { animation: float 7s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; border: 3px solid var(--bg); }
body::-webkit-scrollbar-track { background: var(--bg); }

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

/* ================= Появление при прокрутке ================= */
.reveal-init { opacity: 0; transform: translateY(20px); transition: none; }
.reveal-init.revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================= Анимации для тач-устройств ================= */
.hero-card.hero-touch .hero-glow { opacity: 1; }

@media (hover: none) {
  /* Блик по логотипу пробегает сам, точка пульсирует */
  .logo-shine { animation: shine-auto 4.2s ease-in-out 1.2s infinite; }
  @keyframes shine-auto {
    0%, 52% { transform: translateX(-36px) skewX(-18deg); }
    72%, 100% { transform: translateX(112px) skewX(-18deg); }
  }
  .logo-dot { animation: dot-auto 4.2s cubic-bezier(0.34, 1.56, 0.64, 1) 1.9s infinite; }
  @keyframes dot-auto {
    0%, 14%, 28%, 100% { transform: scale(1); }
    21% { transform: scale(1.7) translateY(-2px); }
  }

  /* Отклик на касание: карточки и кнопки мягко «подаются» под пальцем */
  .vacancy-card, .pop-card, .area-card, .cta-card, .company-grid-card,
  .hire-step, .hire-stat, .auth-role, .city-row {
    transition: transform 0.16s ease, border-color 0.15s, box-shadow 0.15s;
  }
  .vacancy-card:active, .pop-card:active, .area-card:active,
  .company-grid-card:active, .auth-role:active, .city-row:active {
    transform: scale(0.976);
  }
  .btn:active { transform: scale(0.96); }
  .chip:active { transform: scale(0.94); background: var(--green-50); }
}

/* ================= Бургер и мобильное меню ================= */
.burger {
  display: none;
  border: none;
  background: none;
  color: var(--ink);
  cursor: pointer;
  padding: 10px;
  margin-right: -8px;
  border-radius: 10px;
}
.burger:hover { background: var(--green-50); }

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  bottom: 0;
  z-index: 90;
  background: var(--surface-alt);
  padding: 18px calc(18px + env(safe-area-inset-left)) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.mobile-menu.open { opacity: 1; transform: none; }

/* Каскадное появление содержимого меню */
.mobile-menu .mm-toggle,
.mobile-menu .mm-links a,
.mobile-menu .mm-city,
.mobile-menu .mm-actions { opacity: 0; transform: translateY(10px); }
.mobile-menu.open .mm-toggle,
.mobile-menu.open .mm-links a,
.mobile-menu.open .mm-city,
.mobile-menu.open .mm-actions {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.open .mm-toggle { transition-delay: 0.03s; }
.mobile-menu.open .mm-links a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open .mm-links a:nth-child(2) { transition-delay: 0.13s; }
.mobile-menu.open .mm-links a:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.open .mm-links a:nth-child(4) { transition-delay: 0.23s; }
.mobile-menu.open .mm-city { transition-delay: 0.28s; }
.mobile-menu.open .mm-actions { transition-delay: 0.33s; }
.mm-toggle {
  display: flex;
  background: #eef4ef;
  border-radius: 14px;
  padding: 4px;
  gap: 2px;
  margin-bottom: 16px;
}
.mm-toggle .mode-tab { flex: 1; text-align: center; padding: 12px; }
.mm-links {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
}
.mm-links a, .mm-city {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.mm-links a:last-child, .mm-city:last-child { border-bottom: none; }
.mm-links a:active, .mm-city:active { background: var(--green-50); }
.mm-city .icon { color: var(--green-600); }
.mm-city-hint { margin-left: auto; font-size: 13.5px; font-weight: 500; color: var(--green-700); }
.mm-user {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 16px;
  margin-top: 4px;
}
.mm-user-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--ink); }
.mm-user .user-avatar { width: 36px; height: 36px; font-size: 15px; }
.mm-user-name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= Нижняя навигация (мобильная) ================= */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}
.bn-item .bn-icon { width: 22px; height: 22px; transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1); }
.bn-item.active { color: var(--green-700); }
.bn-item.active .bn-icon { color: var(--green-600); animation: bn-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s; }
@keyframes bn-pop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.28) translateY(-2px); }
}
.bn-item:active { background: var(--green-50); }
.bn-item:active .bn-icon { transform: scale(1.22) translateY(-1px); }
.bn-item-cta .bn-icon {
  background: var(--green-600);
  color: #fff !important;
  border-radius: 50%;
  padding: 3px;
  width: 24px; height: 24px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4);
}

/* ================= Кнопка «Фильтры» (мобильный поиск) ================= */
.filters-toggle { display: none; margin-bottom: 14px; }

/* ================= Адаптив ================= */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .burger { display: inline-flex; }
}
@media (min-width: 1081px) {
  .mobile-menu { display: none !important; }
}
@media (max-width: 960px) {
  .layout-sidebar, .layout-vacancy { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .hero-card-art { opacity: 0.35; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .popular-grid { grid-template-columns: repeat(2, 1fr); }
  .hire-doodle { display: none; }
  .hire-title { font-size: 40px; }
  .hire-stats, .hire-steps { grid-template-columns: 1fr; }
  .city-modal-panel { right: 16px; left: 16px; width: auto; }
  .geo { display: none; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: flex; }
  .auth-body { padding-bottom: 0; }
  .container { padding: 0 18px; }

  /* Пальцевые тач-цели: минимум 38–44px по высоте */
  .btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; }
  .btn { height: 44px; font-size: 14.5px; }
  .btn-lg { height: 50px; font-size: 15px; }
  .filters-toggle { height: 42px; }
  .chip { padding: 8px 14px; }
  .nav-link { padding: 10px 12px; }
  .header-inner { height: 58px; gap: 12px; }
  .mobile-menu { top: 58px; }
  .activate-bar-inner { padding: 8px 18px; font-size: 12.5px; }
  .activate-step { flex-direction: column; align-items: flex-start; }
  .activate-step-icon { width: 36px; height: 36px; }
  .header-actions .btn-dark, .header-actions .user-chip,
  .header-actions .inline-form, .header-actions .nav-link { display: none; }
  .mode-toggle { display: none; }
  .site-footer { padding-top: 32px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-cols { gap: 28px; }

  .page { padding-top: 16px; padding-bottom: 36px; }
  .page > .container > h1, .page h1.page-title { font-size: 19px; margin-bottom: 14px; }
  .section { padding-top: 22px; padding-bottom: 4px; }
  .section-title { font-size: 17px; margin-bottom: 12px; }
  .card { padding: 18px; }
  .results-title { font-size: 17px !important; }
  .section-head { margin-bottom: 12px; }
  .vacancy-list { gap: 8px; }
  .company-grid { gap: 10px; }
  .company-grid-card h3 { font-size: 15.5px; }
  .empty-state { padding: 32px 20px; }
  .area-card { padding: 14px 16px; border-radius: 12px; }

  .hero-card { min-height: 0; margin-top: 12px; border-radius: 18px; }
  .hero-card-content { padding: 28px 20px; }
  .hero-card-title { font-size: 22px; }
  .hero-card-art { display: none; }
  .hero-card-foot { margin-top: 20px; font-size: 13px; }

  .search-section { padding-top: 20px; padding-bottom: 4px; }
  .search-section-title { font-size: 18px; margin-bottom: 12px; }
  .search-panel { flex-direction: column; }
  .search-box-input { padding: 14px 0; font-size: 16px; }
  .btn-find { padding: 14px; }
  .search-bar { flex-direction: column; padding: 10px; }
  .search-select { border-left: none; border-top: 1px solid var(--line); max-width: none; }
  .search-bar .ui-select-bare .ui-select-trigger { border-left: none; border-top: 1px solid var(--line); }

  .input, .ui-select-trigger, .search-input { font-size: 16px; }

  .vacancy-card { padding: 14px 16px; border-radius: 12px; }
  .vacancy-title { font-size: 15.5px; }
  .vacancy-salary { font-size: 15px; }
  .company-badge-lg { width: 40px; height: 40px; border-radius: 11px; font-size: 17px; }
  .vc-footer { flex-wrap: wrap; row-gap: 10px; }
  .vc-footer .btn-primary { flex: 1 1 auto; }
  .vacancy-actions .btn { width: 100%; }
  .vacancy-actions { flex-wrap: wrap; }
  .employer-actions .btn { width: 100%; }

  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: 1fr; }
  .popular-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pop-card { padding: 14px 16px 12px; min-height: 96px; border-radius: 14px; }
  .pop-title { font-size: 14.5px; }
  .pop-salary { font-size: 13px; }
  .cta-row { grid-template-columns: 1fr; }
  .cta-card { padding: 18px; }

  .hire-hero { padding-top: 52px; padding-bottom: 40px; }
  .hire-title { font-size: 26px; }
  .hire-subtitle { font-size: 16px; }

  .vacancy-page-props { grid-template-columns: 1fr; }
  .company-header { flex-direction: column; gap: 14px; }
  .response-head { flex-direction: column; gap: 8px; }
  .response-side { flex-direction: row; align-items: center; }
  .response-actions .btn { flex: 1; justify-content: center; }

  /* Выбор города — нижняя шторка */
  .city-modal-panel {
    top: auto;
    bottom: 0;
    left: 0; right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 84vh;
    border-radius: 24px 24px 0 0;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    transform: none;
  }
  .city-modal.open .city-modal-panel { transform: none; }
  .city-row { padding: 15px 16px; }

  /* Чаты на телефоне: тред во весь экран, поле ввода над нижней навигацией */
  .chat-card { border-radius: 14px; }
  .chat-body { max-height: none; height: calc(100vh - 340px); min-height: 240px; }
  .msg { max-width: 85%; }
  .chat-input { font-size: 16px; }
  .chat-send { width: 44px; height: 44px; }
  .chat-attach { padding: 11px; }
  .dialog-row { padding: 13px 14px; }

  /* Профиль */
  .profile-head { gap: 14px; }
  .profile-avatar { width: 54px; height: 54px; font-size: 23px; }
  .profile-actions .btn { flex: 1 1 auto; }

  /* Формы: комфортная высота полей под палец */
  .input { padding: 12px 14px; }
  .field { margin-bottom: 16px; }
  .auth-panel { padding: 22px 18px 26px; border-radius: 20px; }
  .auth-screen { padding: 20px 14px 40px; }
  .seg-opt span { padding: 11px 6px; font-size: 13.5px; }
}
@media (max-width: 480px) {
  .popular-grid { grid-template-columns: 1fr; }
  .hero-card-title { font-size: 20px; }
  .vc-footer .btn { flex: 1 1 auto; }
}
