/* ─────────────────────────────────────────────
   workivo · страницы
   ───────────────────────────────────────────── */

/* ═══════════ ГЛАВНАЯ ═══════════ */
.hero {
  position: relative;
  padding: 58px 0 36px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: -120px 0 auto 0; height: 620px;
  background-image: radial-gradient(circle at center, #d9dee8 1px, transparent 1.1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 72%);
  opacity: .75;
  pointer-events: none;
}
.hero > * { position: relative; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 600; color: var(--accent);
  animation: fadeUp .6s var(--ease) both;
}
.hero__badge svg { color: var(--accent); }

.hero h1 { margin: 22px auto 0; max-width: 15ch; animation: fadeUp .6s .05s var(--ease) both; }
.hero h1 .accent { color: var(--accent); }

.hero__sub {
  margin: 16px auto 0;
  max-width: 660px;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--muted);
  line-height: 1.55;
  animation: fadeUp .6s .1s var(--ease) both;
}

/* ── поиск ── */
.hero__switch { margin: 26px auto 0; display: flex; justify-content: center; animation: fadeUp .6s .2s var(--ease) both; }

.searchbar {
  margin: 18px auto 0;
  max-width: 840px;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 9px 9px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--normal), border-color var(--normal), transform var(--normal);
  animation: fadeUp .6s .24s var(--ease) both;
}
.searchbar:focus-within { border-color: var(--accent-soft-2); box-shadow: 0 20px 44px -26px rgba(26, 107, 255, .55); }
.searchbar svg { color: var(--muted-2); flex: none; }
.searchbar input {
  flex: 1; min-width: 0; height: 46px;
  border: 0; outline: none; background: transparent;
  font-size: 16px; letter-spacing: -.01em;
}
.searchbar input::placeholder { color: var(--muted-2); }

.popular { margin: 16px auto 0; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; animation: fadeUp .6s .3s var(--ease) both; }
.popular__label { font-size: 13px; color: var(--muted-2); }
.popular .chip { height: 32px; font-size: 13px; background: var(--surface); }

/* ── два сценария ── */
.paths {
  margin: 38px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  max-width: 980px;
  animation: fadeUp .6s .36s var(--ease) both;
}
.path-card {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  text-align: left;
  cursor: pointer;
  transition: transform var(--normal), box-shadow var(--normal), border-color var(--normal);
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dbe1ea; }
.path-card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent);
}
.path-card--employer .path-card__icon { background: var(--success-soft); color: var(--success); }
.path-card__title { font-size: 17px; font-weight: 700; letter-spacing: -.025em; }
.path-card__text { font-size: 14px; color: var(--muted); margin-top: 3px; }
.path-card__arrow {
  margin-left: auto; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted);
  transition: all var(--normal);
}
.path-card:hover .path-card__arrow { background: var(--accent); color: #fff; transform: translateX(3px); }
.path-card--employer:hover .path-card__arrow { background: var(--success); }

/* ── категории ── */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--normal);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dbe1ea; }
.cat-card__icon {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink);
  transition: all var(--normal);
}
.cat-card:hover .cat-card__icon { background: var(--accent-soft); color: var(--accent); }
.cat-card__name { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.cat-card__count { font-size: 13px; color: var(--muted-2); }

/* ── статистика ── */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.stat-cell { background: var(--surface); padding: 28px 24px; text-align: center; }
.stat-cell__value { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.045em; }
.stat-cell__label { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ── преимущества ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: all var(--normal);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 16px;
}
.feature h3 { font-size: 17px; letter-spacing: -.025em; }
.feature p { color: var(--muted); font-size: 14.5px; margin-top: 7px; }

/* ── блок для работодателей / CTA ── */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--ink);
  color: #fff;
  padding: 54px;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .68); margin-top: 14px; font-size: 16px; max-width: 44ch; }
.cta-band__list { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.cta-band__list li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .82); font-size: 15px; }
.cta-band__list svg { color: #5ee2a0; flex: none; }
.cta-band__actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.cta-band .btn-outline { --btn-bg: rgba(255,255,255,.08); --btn-ink: #fff; --btn-border: rgba(255,255,255,.2); }
.cta-band .btn-outline:hover { --btn-bg: rgba(255,255,255,.16); }

.cta-preview {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  padding: 18px;
}
.cta-preview__row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.cta-preview__row:last-child { border-bottom: 0; }
.cta-preview__name { font-weight: 600; font-size: 14.5px; }
.cta-preview__meta { font-size: 12.5px; color: rgba(255,255,255,.55); }
.cta-preview__score { margin-left: auto; font-size: 13px; font-weight: 700; color: #5ee2a0; }

/* ═══════════ КАРТОЧКА ВАКАНСИИ ═══════════ */
.job-card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px;
  background: var(--surface);
  /* цвет задаём явно: карточка бывает и внутри тёмной секции */
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: transform var(--normal), box-shadow var(--normal), border-color var(--normal);
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dbe1ea; }
.job-card__top { display: flex; align-items: flex-start; gap: 13px; }
.job-card__title { font-size: 17px; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.job-card__company { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-top: 3px; }
.job-card__salary { font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.job-card__salary span { font-size: 13px; font-weight: 500; color: var(--muted-2); }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.job-card__desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
.job-card__foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }
.job-card__date { font-size: 12.5px; color: var(--muted-2); margin-right: auto; }
.job-card__save { position: absolute; top: 18px; right: 18px; }

.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.job-grid-2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }

/* горизонтальная лента (подработка) */
.rail { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { flex: 0 0 330px; scroll-snap-align: start; }
.rail::-webkit-scrollbar { height: 6px; }

/* карточка подработки */
.gig-card { border-color: #e8e2ff; background: linear-gradient(180deg, #fbfaff, var(--surface) 40%); }
.gig-card .job-card__salary { color: var(--violet); }

/* ═══════════ ПОИСК: ФИЛЬТРЫ ═══════════ */
.search-layout { display: grid; grid-template-columns: 296px 1fr; gap: 26px; align-items: start; }
.filters {
  position: sticky; top: calc(var(--header-h) + 18px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 20px;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow: auto;
}
.filters__group { display: flex; flex-direction: column; gap: 10px; }
.filters__title { font-size: 13px; font-weight: 700; letter-spacing: -.01em; }
.filters__head { display: flex; align-items: center; justify-content: space-between; }

.search-topbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.search-topbar .searchbar { margin: 0; flex: 1; min-width: 260px; box-shadow: var(--shadow-sm); animation: none; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.results-count { font-size: 14.5px; color: var(--muted); }
.results-count b { color: var(--ink); }

.sort { display: flex; align-items: center; gap: 8px; }
.sort__label { font-size: 13.5px; color: var(--muted-2); }

.filter-drawer-btn { display: none; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; }
.pagination button {
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all var(--fast);
}
.pagination button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pagination button.is-active { background: var(--accent); color: #fff; border-color: transparent; }
.pagination button:disabled { opacity: .4; cursor: default; }

/* ═══════════ СТРАНИЦА ВАКАНСИИ ═══════════ */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 18px; }
.detail-side { position: sticky; top: calc(var(--header-h) + 18px); display: flex; flex-direction: column; gap: 16px; }

.detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; }
.detail-card h2 { font-size: 20px; letter-spacing: -.03em; }
.detail-head__title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.04em; line-height: 1.14; }
.detail-head__salary { font-size: clamp(22px, 2.8vw, 28px); font-weight: 800; letter-spacing: -.04em; margin-top: 12px; }
.detail-head__salary span { font-size: 15px; font-weight: 500; color: var(--muted); }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.prose { font-size: 15.5px; line-height: 1.65; color: #333c4c; }
.prose p + p { margin-top: 12px; }
.list-check { display: flex; flex-direction: column; gap: 11px; margin-top: 6px; }
.list-check li { display: flex; gap: 11px; font-size: 15px; line-height: 1.55; color: #333c4c; }
.list-check svg { flex: none; margin-top: 3px; color: var(--accent); }
.list-check.is-success svg { color: var(--success); }

.match-panel {
  background: linear-gradient(150deg, #f2f7ff, #f7f4ff);
  border: 1px solid #e2e8fb;
  border-radius: var(--r-lg);
  padding: 20px;
}
.match-ring { display: flex; align-items: center; gap: 16px; }
.match-ring__circle {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 800; color: var(--accent);
  background: conic-gradient(var(--accent) var(--pct), #e3e9f5 0);
  position: relative;
}
.match-ring__circle::after {
  content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #fff;
}
.match-ring__circle span { position: relative; z-index: 1; }
.match-reasons { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.match-reasons li { display: flex; gap: 8px; font-size: 13.5px; color: #40485a; }

.company-card__row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; font-size: 14px; border-bottom: 1px solid var(--line-2); }
.company-card__row:last-child { border-bottom: 0; }

.share-row { display: flex; gap: 8px; }

.similar-job { padding: 10px; border-radius: 14px; transition: background var(--fast); }
.similar-job:hover { background: var(--surface-2); }

/* ═══════════ КАНДИДАТЫ ═══════════ */
.cand-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--normal);
}
.cand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #dbe1ea; }
.cand-card__head { display: flex; gap: 14px; align-items: flex-start; }
.cand-card__name { font-size: 16.5px; font-weight: 700; letter-spacing: -.025em; }
.cand-card__title { font-size: 14px; color: var(--accent); font-weight: 600; }
.cand-card__meta { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.cand-card__salary { font-size: 15.5px; font-weight: 700; letter-spacing: -.025em; }
.cand-card__foot { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); margin-top: auto; }
/* формат работы ужимается многоточием, а не ломается в столбик рядом с кнопками */
.cand-card__foot > .badge { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 24px; }
.cand-card__foot > .row { flex: none; }

.open-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--success); }
.open-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }

/* профиль кандидата */
.profile-hero {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.profile-hero__name { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; letter-spacing: -.04em; }
.profile-hero__title { font-size: 17px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.profile-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.profile-hero__actions { margin-left: auto; display: flex; flex-direction: column; gap: 10px; min-width: 210px; }

.timeline { display: flex; flex-direction: column; gap: 22px; }
.timeline__item { display: flex; gap: 16px; }
.timeline__marker { display: flex; flex-direction: column; align-items: center; flex: none; }
.timeline__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); margin-top: 6px; }
.timeline__line { flex: 1; width: 2px; background: var(--line); margin: 6px 0 -12px; }
.timeline__role { font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; }
.timeline__company { font-size: 14px; color: var(--muted); }
.timeline__period { font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }
.timeline__text { font-size: 14px; color: #414a5a; margin-top: 7px; line-height: 1.55; }

.portfolio-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: all var(--fast);
}
.portfolio-item:hover { border-color: var(--accent); background: #fafcff; }

/* ═══════════ МАСТЕРА (резюме / вакансия) ═══════════ */
.wizard { display: grid; grid-template-columns: 240px 1fr; gap: 30px; align-items: start; }
.wizard__steps { position: sticky; top: calc(var(--header-h) + 18px); display: flex; flex-direction: column; gap: 2px; }
.wizard__step {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--muted); cursor: pointer;
  transition: all var(--fast);
}
.wizard__step:hover { background: var(--surface); }
.wizard__step.is-active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-xs); }
.wizard__step.is-done { color: var(--ink); }
.wizard__num {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700;
  background: var(--bg-soft); color: var(--muted);
  transition: all var(--fast);
}
.wizard__step.is-active .wizard__num { background: var(--accent); color: #fff; }
.wizard__step.is-done .wizard__num { background: var(--success-soft); color: var(--success); }

.wizard__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px;
}
.wizard__panel h2 { font-size: 24px; letter-spacing: -.035em; }
.wizard__panel > .muted { margin-top: 6px; }
.wizard__body { margin-top: 26px; display: flex; flex-direction: column; gap: 20px; }
.wizard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.wizard__mobile-progress { display: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.form-grid .span-2 { grid-column: span 2; }

.entry-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface-2);
}

.skill-input-wrap { display: flex; gap: 8px; }
.skill-suggest { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.skill-tag {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 8px 0 13px;
  border-radius: var(--r-full);
  background: var(--accent-soft); color: var(--accent);
  font-size: 13.5px; font-weight: 600;
}
.skill-tag button { border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; opacity: .6; padding: 2px; }
.skill-tag button:hover { opacity: 1; }

.preview-frame {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}

/* публикация резюме — отдельное согласие на распространение */
.publish-box {
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
}
.publish-box h3 { margin: 0; font-size: 17px; }
.publish-box p { margin: 0; }
.publish-box .label { margin-top: 4px; }
.publish-box .checkbox { align-items: flex-start; line-height: 1.45; }
.publish-box .checkbox input { flex: none; margin-top: 1px; }
.publish-box .checkbox .hint { display: block; margin-top: 2px; }
.publish-box .terms-check { margin: 4px 0 0; }
.publish-box__off { align-self: flex-start; }

/* регистрация: имя и фамилия в одну строку, на узком экране — друг под другом */
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .name-row { grid-template-columns: 1fr; } }

/* шаг со звонком на странице входа и регистрации. Главное здесь — номер:
   крупно, моноширинными цифрами, на телефоне нажимается и набирается */
.call-step { margin-top: 24px; }
.call-step[hidden] { display: none; }
.call-step__head { display: flex; align-items: center; gap: 14px; }
.call-step__ring {
  position: relative; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
/* единственное движение на странице: волна вокруг трубки, пока ждём звонка */
.call-step__ring::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0;
  animation: call-ring 1.8s ease-out infinite;
}
@keyframes call-ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.65); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .call-step__ring::after { animation: none; } }
.call-step__title { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.call-step__from { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.call-step__number {
  display: inline-block; margin: 22px 0 16px;
  font-size: clamp(30px, 8vw, 40px); font-weight: 800; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink); text-decoration: none;
}
.call-step__number:hover, .call-step__number:focus-visible { color: var(--accent); }
.call-step__steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.call-step__steps b { color: var(--ink); }
.call-step__status { margin-top: 14px; font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* подтверждение входа звонком: номер, на который нужно позвонить */
.call-check {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface-2);
}
.call-check[hidden] { display: none; }
.call-check__title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.call-check__text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.call-check__number {
  align-self: flex-start;
  font-size: 24px; font-weight: 800; letter-spacing: .01em;
  color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums;
}
.call-check__number:hover { color: var(--accent); }
.call-check__status { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* сведения о запретах соискателя — оператор обязан их публиковать (ч. 10 ст. 10.1 152-ФЗ) */
.publish-note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-md, 12px);
  background: var(--surface-2); color: var(--muted);
  font-size: 13px; line-height: 1.5;
}
.publish-note b { color: var(--ink); }

/* ═══════════ ЛИЧНЫЙ КАБИНЕТ ═══════════ */
.dash-layout { display: grid; grid-template-columns: 244px 1fr; gap: 26px; align-items: start; }
.dash-nav {
  position: sticky; top: calc(var(--header-h) + 18px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.dash-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 14.5px; color: var(--muted); cursor: pointer;
  transition: all var(--fast);
}
.dash-nav a:hover { background: var(--surface-2); color: var(--ink); }
.dash-nav a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.dash-nav .count { margin-left: auto; font-size: 12px; font-weight: 700; background: var(--bg-soft); color: var(--muted); padding: 1px 7px; border-radius: 99px; }
.dash-nav a.is-active .count { background: #fff; color: var(--accent); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card {
  padding: 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.stat-card__label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.stat-card__value { font-size: 30px; font-weight: 800; letter-spacing: -.045em; margin-top: 8px; }
.stat-card__hint { font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }

.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.list-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-2);
  transition: background var(--fast);
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--surface-2); }
.list-row__main { min-width: 0; flex: 1; }
.list-row__title { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.list-row__sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.list-row__actions { display: flex; gap: 8px; flex: none; }

.status-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-full); font-size: 12.5px; font-weight: 600; }
.status-sent { background: var(--accent-soft); color: var(--accent); }
.status-viewed { background: #eceef2; color: #4a5364; }
.status-invited { background: var(--success-soft); color: var(--success); }
.status-rejected { background: var(--danger-soft); color: var(--danger); }
.status-hired { background: var(--violet-soft); color: var(--violet); }

.bar-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.bar-row__name { width: 190px; font-size: 14px; font-weight: 500; }
.bar-row__track { flex: 1; height: 10px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.bar-row__fill { height: 100%; border-radius: 99px; background: var(--accent); transition: width .6s var(--ease); }
.bar-row__val { width: 56px; text-align: right; font-size: 13.5px; font-weight: 600; }

/* ═══════════ ЧАТ ═══════════ */
.chat-layout {
  display: grid; grid-template-columns: 330px 1fr;
  height: calc(100vh - var(--header-h) - 60px);
  min-height: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.chat-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.chat-list__head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line-2); }
.chat-list__items { overflow-y: auto; flex: 1; }
.chat-item {
  display: flex; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer; transition: background var(--fast);
}
.chat-item:hover { background: var(--surface-2); }
.chat-item.is-active { background: var(--accent-soft); }
.chat-item__name { font-size: 14.5px; font-weight: 600; letter-spacing: -.02em; }
.chat-item__preview { font-size: 13px; color: var(--muted); margin-top: 2px; }
.chat-item__time { font-size: 11.5px; color: var(--muted-2); flex: none; }
.chat-item__badge { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center; }

.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.chat-body { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.chat-day { align-self: center; font-size: 12px; color: var(--muted-2); background: var(--surface); padding: 4px 12px; border-radius: 99px; margin: 6px 0; }
.bubble {
  max-width: min(72%, 520px);
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 14.5px; line-height: 1.5;
  background: var(--surface);
  border: 1px solid var(--line);
  align-self: flex-start;
  animation: bubbleIn .3s var(--ease);
  word-break: break-word;
}
.bubble.is-mine { align-self: flex-end; background: var(--accent); color: #fff; border-color: transparent; border-bottom-right-radius: 6px; }
.bubble:not(.is-mine) { border-bottom-left-radius: 6px; }
.bubble__time { display: block; font-size: 11px; margin-top: 4px; opacity: .55; text-align: right; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } }

.chat-input { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line-2); background: var(--surface); }
.chat-input textarea {
  flex: 1; min-height: 44px; max-height: 130px;
  padding: 11px 15px; border: 1px solid var(--line); border-radius: var(--r-lg);
  resize: none; font-size: 14.5px; outline: none;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.chat-input textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(26, 107, 255, .1); }

.chat-empty { display: grid; place-items: center; height: 100%; text-align: center; padding: 30px; }

/* ═══════════ АВТОРИЗАЦИЯ ═══════════ */
.auth-wrap { display: grid; place-items: center; padding: 40px 0 80px; }
.auth-card {
  width: min(480px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.auth-card h1 { font-size: 27px; letter-spacing: -.035em; }
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-card {
  padding: 18px; border: 1.5px solid var(--line); border-radius: var(--r-lg);
  cursor: pointer; text-align: left; background: var(--surface);
  transition: all var(--fast);
}
.role-card:hover { border-color: #cbd5e6; transform: translateY(-2px); }
.role-card.is-active { border-color: var(--accent); background: #f7faff; box-shadow: 0 0 0 4px rgba(26, 107, 255, .1); }
.role-card__icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 12px; }
.role-card__title { font-weight: 700; font-size: 15.5px; letter-spacing: -.02em; }
.role-card__text { font-size: 13px; color: var(--muted); margin-top: 3px; }

.role-card[data-role="employer"].is-active {
  border-color: var(--success);
  background: #f5fcf8;
  box-shadow: 0 0 0 4px rgba(15, 157, 88, .1);
}

/* пометка у подборок: работают рекомендательные технологии */
.rec-notice { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.rec-notice svg { flex: none; margin-top: 2px; color: var(--accent); }
.results-note { margin: -4px 0 14px; }
.results-note .rec-notice { margin-top: 0; }
.auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0;
  font-size: 13px; color: var(--muted-2);
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* шаг подтверждения телефона */
.auth-code { text-align: center; padding-top: 24px; }
.auth-code__icon {
  width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 16px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.auth-code__title { font-family: var(--font-display, inherit); font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.auth-code__text { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.auth-code__input {
  margin: 22px auto 0;
  max-width: 260px;
  height: 62px;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: .34em;
  text-indent: .34em;
  font-variant-numeric: tabular-nums;
}

.demo-box {
  margin-top: 18px; padding: 14px 16px;
  background: var(--surface-2); border: 1px dashed var(--line);
  border-radius: var(--r-md);
  font-size: 13.5px; color: var(--muted);
}
.demo-box b { color: var(--ink); }
.demo-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; }

/* ═══════════ АДАПТИВ ═══════════ */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-layout { grid-template-columns: 1fr 300px; }
}

@media (max-width: 980px) {
  .search-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.is-open {
    display: flex; position: fixed; inset: auto 0 0 0; z-index: 140;
    max-height: 82vh; border-radius: var(--r-xl) var(--r-xl) 0 0;
    animation: sheetIn .3s var(--ease);
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .filter-drawer-btn { display: inline-flex; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .wizard { grid-template-columns: 1fr; }
  .wizard__steps { display: none; }
  .wizard__mobile-progress { display: block; margin-bottom: 16px; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-nav { position: static; flex-direction: row; overflow-x: auto; padding: 8px; }
  .dash-nav a { white-space: nowrap; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 34px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .chat-layout { grid-template-columns: 1fr; height: calc(100vh - var(--header-h) - 100px); }
  .chat-list { border-right: 0; }
  .chat-layout.is-open .chat-list { display: none; }
  .chat-layout:not(.is-open) .chat-main { display: none; }
}

@media (max-width: 720px) {
  .hero { padding: 40px 0 24px; }
  .hero h1 { max-width: 100%; }
  .paths { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .job-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .profile-hero { flex-direction: column; padding: 22px; }
  .profile-hero__actions { margin-left: 0; width: 100%; }
  .detail-card { padding: 20px; }
  .wizard__panel { padding: 22px 18px; }
  .searchbar { padding: 7px 7px 7px 16px; }
  .searchbar input { font-size: 15px; height: 42px; }
  .rotator { padding: 6px 6px 6px 16px; gap: 8px; }
  .rotator__label { font-size: 13.5px; }
  .rotator__slot { height: 36px; }
  .rotator__item { font-size: 14px; }
  .rail > * { flex: 0 0 84%; }
  .stat-cell { padding: 20px 14px; }
}

@media (max-width: 460px) {
  .rotator {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; max-width: 340px; gap: 8px;
    padding: 12px; border-radius: var(--r-lg);
  }
  .rotator__spark { align-self: center; }
  .rotator__label { text-align: center; }
  .rotator__slot { width: 100% !important; justify-content: center; }
  .rotator__item { font-size: 14.5px; }
}

/* ═══════════ РЕКЛАМНЫЕ БЛОКИ ═══════════ */
/* Колонки — часть разметки, а не плавающий слой: они занимают собственное
   место, прокручиваются вместе со страницей и ничего не перекрывают. */
.shell { display: block; }

.ad-rail { display: none; }

@media (min-width: 1500px) {
  .shell {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) 132px;
    gap: 24px;
    padding-inline: 18px;
    align-items: start;
  }
  .shell.is-bare { display: block; padding-inline: 0; }
  .ad-rail { display: block; padding-top: 36px; }
  .shell.is-bare .ad-rail { display: none; }
}

@media (min-width: 1680px) {
  .shell { grid-template-columns: 176px minmax(0, 1fr) 176px; gap: 32px; }
}

.ad-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  transition: transform var(--normal), box-shadow var(--normal), border-color var(--normal);
}
.ad-card--live:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #d9dfea;
}
.ad-card--free {
  background: var(--surface-2);
  border-style: dashed;
  text-align: center;
  align-items: center;
}
.ad-card__slot {
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.ad-card__label {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 99px;
  padding: 2px 9px;
}
.ad-card__free-icon {
  width: 42px; height: 42px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin: 2px 0 4px;
}
.ad-card__title { font-size: 14px; font-weight: 650; line-height: 1.3; letter-spacing: -.02em; }
.ad-card__text { font-size: 12px; line-height: 1.45; color: var(--muted); }
@media (min-width: 1680px) {
  .ad-card__title { font-size: 14.5px; }
  .ad-card__text { font-size: 12.5px; }
}
.ad-card__go {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px;
  font-size: 13px; font-weight: 600; color: var(--accent);
}
.ad-card--live:hover .ad-card__go svg { transform: translateX(3px); }
.ad-card__go svg { transition: transform var(--normal); }
.ad-card__note { font-size: 11px; color: var(--muted-2); margin-top: 2px; }

/* ═══════════ СТРАНИЦА РЕКЛАМЫ ═══════════ */
.adv-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.adv-plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px;
  border-radius: var(--r-xl);
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: all var(--fast);
}
.adv-plan:hover { border-color: #cfd7e6; transform: translateY(-2px); }
.adv-plan.is-active { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(26, 107, 255, .1); }
.adv-plan__badge {
  position: absolute; top: -11px; left: 26px;
  height: 22px; padding: 0 10px;
  border-radius: 99px;
  background: var(--accent); color: #fff;
  font-size: 11.5px; font-weight: 700; line-height: 22px;
}
.adv-plan__name { font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.adv-plan__summary { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.adv-plan__price { font-size: 32px; font-weight: 800; letter-spacing: -.045em; margin: 16px 0 2px; }
.adv-plan__period { font-size: 13px; color: var(--muted-2); }
.adv-plan__perks { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.adv-plan__perks li { display: flex; gap: 9px; font-size: 13.5px; color: #3e4655; }
.adv-plan__perks svg { flex: none; margin-top: 2px; color: var(--success); }

.adv-layout { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.adv-preview { position: sticky; top: calc(var(--header-h) + 18px); }
.adv-preview__frame {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--line);
}
.adv-preview__label { font-size: 12.5px; color: var(--muted-2); margin-bottom: 12px; text-align: center; }

.adv-campaign {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-2);
}
.adv-campaign:last-child { border-bottom: 0; }
.adv-campaign__stat { text-align: center; min-width: 62px; }
.adv-campaign__value { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.adv-campaign__cap { font-size: 11.5px; color: var(--muted-2); }

@media (max-width: 980px) {
  .adv-layout { grid-template-columns: 1fr; }
  .adv-preview { position: static; max-width: 320px; }
  .adv-plans { grid-template-columns: 1fr; }
}

/* быстрый вход через Mail.ru: фирменный синий, чтобы кнопку узнавали сразу */
.auth-mailru {
  justify-content: center; gap: 10px; font-weight: 600;
  background: #005ff9; border-color: #005ff9; color: #fff;
}
.auth-mailru:hover, .auth-mailru:focus-visible { background: #0050d4; border-color: #0050d4; color: #fff; }
.auth-mailru__mark {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  color: #005ff9;
  font-size: 14px; font-weight: 800; line-height: 1;
}
/* вход через Яндекс ID: чёрная кнопка с красным знаком, как у самого Яндекса */
.auth-yandex {
  justify-content: center; gap: 10px; font-weight: 600;
  background: #000; border-color: #000; color: #fff;
}
.auth-yandex:hover, .auth-yandex:focus-visible { background: #262626; border-color: #262626; color: #fff; }
.auth-yandex__mark {
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fc3f1d;
  color: #fff;
  font-size: 14px; font-weight: 800; line-height: 1;
}
.auth-quick__note { margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-quick .error-text:not(:empty) { margin-top: 8px; }

/* ─────────── выбор фото ─────────── */
.photo-pick__row { display: flex; gap: 16px; align-items: flex-start; }
.photo-pick__preview {
  width: 92px; height: 92px; flex: none;
  border-radius: 22px; overflow: hidden;
  background: var(--bg-soft); border: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: center;
}
.photo-pick__preview--round { border-radius: 50%; }
/* картинка объявления шире, чем высокая: показываем её в тех же пропорциях */
.photo-pick__preview--wide { width: 180px; height: 92px; border-radius: 16px; }
.photo-pick__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick__empty { color: var(--muted-2); display: flex; }
.photo-pick__actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

@media (max-width: 560px) {
  .photo-pick__row { flex-direction: column; }
}

/* метка «Пример» — приглушённая, чтобы не спорить с настоящими значками.
   Селектор из двух классов: у .badge своя рамка, и одного класса не хватает */
.badge.badge-example {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line);
}

/* ── кабинет администратора: настройки площадки ── */
.admin-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.admin-settings__card { padding: 20px; }
.admin-settings__card code { font-size: 12.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 860px) { .admin-settings { grid-template-columns: 1fr; } }
