/* components.css — шапка, подвал, кнопки, карточки, бейджи, формы, состояния */

/* ---------- Header (светлый) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 254, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.header__brand { color: var(--navy); }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.logo__mark { flex: none; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
}
.logo__dot { color: var(--navy-300); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav__link {
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.nav__link:hover { color: var(--navy); }
.nav__link.is-active { color: var(--navy); }
.nav__link.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--navy);
}
.nav__divider { width: 1px; height: 22px; background: var(--line); }
.nav__user {
  max-width: 180px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: inline-block; vertical-align: middle;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.header__burger span {
  width: 22px; height: 2px; background: var(--navy);
  transition: transform 0.25s, opacity 0.2s;
}
.header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Footer (светлый) ---------- */
.footer {
  flex: none;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 36px;
  padding-bottom: 36px;
}
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__tagline { color: var(--muted); font-size: 0.92rem; margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer__nav a { font-weight: 600; color: var(--ink); }
.footer__nav a:hover { color: var(--navy); }
.footer__reqs { width: 100%; color: var(--muted); font-size: 0.84rem; line-height: 1.55; border-top: 1px solid var(--line-2); padding-top: 18px; }
.footer__reqs p { margin: 0 0 4px; }
.footer__reqs-title { font-weight: 700; color: var(--ink); margin-bottom: 6px !important; }
.footer__reqs a { color: var(--navy); }
.footer__copy { color: var(--muted-2); font-size: 0.85rem; margin: 0; width: 100%; border-top: 1px solid var(--line-2); padding-top: 18px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.06s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--line-2); }
.btn--danger-ghost { background: transparent; color: var(--danger); border-color: #e6c4c4; }
.btn--danger-ghost:hover { background: var(--danger-bg); }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; border-radius: var(--r-sm); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* ---------- Бейджи ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 5px 11px;
  line-height: 1.2;
}
.badge--spec {
  background: #eef2f9;
  color: var(--navy);
  border: 1px solid var(--line);
}
.badge--ok {
  background: #eaf5ef;
  color: var(--success);
  border: 1px solid #c7e6d5;
  font-family: var(--font-body);
  font-weight: 600;
}
.badge--muted {
  background: #f1f3f7;
  color: var(--muted);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-weight: 600;
}
.badge--spec .badge__code {
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge--spec .badge__name {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 7px;
}
.badge--new {
  background: var(--success);
  color: #fff;
  border: 1px solid var(--success);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge--featured {
  background: var(--featured-bg);
  color: var(--featured);
  border: 1px solid #f0e2bf;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---------- Карточки ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  color: var(--ink);
}
a.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--navy-300);
  transform: translateY(-2px);
}
.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 26px;
}
.card__title {
  font-size: 1.18rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
  /* предотвращаем переполнение длинных слов */
  overflow-wrap: anywhere;
}
.card__company {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  margin: 2px 0 2px;
  overflow-wrap: anywhere;
}
.card__company svg { flex: 0 0 auto; opacity: 0.85; }
.card__salary {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}
.card__salary--muted { color: var(--muted-2); font-weight: 500; font-size: 0.95rem; }
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: auto;
}
.card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}
.card__meta-item svg { color: var(--navy-300); flex: none; }

/* ---------- Скелетоны ---------- */
.card--skeleton { pointer-events: none; }
.sk {
  background: linear-gradient(90deg, #eef1f6 25%, #e3e8f0 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: sk-shimmer 1.3s ease infinite;
  border-radius: 6px;
}
.sk--badge { width: 90px; height: 22px; border-radius: 999px; }
.sk--title { width: 80%; height: 22px; }
.sk--line { width: 100%; height: 14px; }
.sk--short { width: 55%; }
.sk--meta { width: 65%; height: 14px; margin-top: 6px; }
@keyframes sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- Спиннер ---------- */
.spinner { display: flex; justify-content: center; padding: 48px 0; }
.spinner__circle {
  width: 38px; height: 38px;
  border: 3px solid var(--line);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Состояния пусто / ошибка ---------- */
.state-block {
  text-align: center;
  max-width: 460px;
  margin: 40px auto;
  padding: 48px 28px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.state-block__icon { color: var(--navy-300); display: flex; justify-content: center; margin-bottom: 16px; }
.state-block--error .state-block__icon { color: var(--danger); }
.state-block__title { font-size: 1.4rem; margin: 0 0 8px; }
.state-block__text { color: var(--muted); margin: 0 0 18px; }

/* ---------- Формы ---------- */
.field { margin-bottom: 18px; }
.field__label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
  color: var(--ink);
}
.field__hint { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.field__error { font-size: 0.84rem; color: var(--danger); margin-top: 6px; display: none; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--danger); }

.input, .select, .textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 43, 74, 0.1);
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.input.mono, .select.mono { font-family: var(--font-mono); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
}
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }

/* Мультивыбор специальностей (чекбоксы) */
.spec-multi__head { display: flex; align-items: baseline; justify-content: space-between; }
.spec-multi__count { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.spec-multi__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  max-height: 260px;
  overflow-y: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
}
.spec-multi__item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 3px 0;
}
.spec-multi__item input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--navy); flex: none; }
.spec-multi__item input:disabled { cursor: not-allowed; }
.spec-multi__item input:disabled + span { color: var(--muted); }
.spec-multi__hint { margin: 0; font-size: 0.9rem; }
@media (max-width: 640px) { .spec-multi__list { grid-template-columns: 1fr; } }

/* Широкий режим для фильтров: блок на всю ширину сетки .filters, без обрезки названий */
.spec-multi--wide { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; }
.spec-multi--wide > .field { margin-bottom: 0; }
/* Селект группы — компактный, не на всю ширину */
.spec-multi--wide #ff-group,
.spec-multi--wide #jf-group,
.spec-multi--wide #gf-group,
.spec-multi--wide #sp-group { max-width: 280px; }
.spec-multi--wide .spec-multi__list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  max-height: 220px;
  gap: 4px 24px;
}

/* Сегментированный выбор роли */
.segmented { display: flex; gap: 10px; }
.segmented label {
  flex: 1;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px;
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s;
}
.segmented input { position: absolute; opacity: 0; }
.segmented input:checked + label,
.segmented label.is-checked {
  border-color: var(--navy);
  background: #eef2f9;
  color: var(--navy);
}
.segmented__item { position: relative; flex: 1; }
.segmented__item label { width: 100%; }

/* ---------- Карточки выбора роли (регистрация) ---------- */
.role-cards { display: flex; gap: 12px; }
.role-card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.role-card input { position: absolute; opacity: 0; pointer-events: none; }
.role-card:hover { border-color: var(--navy-300); }
.role-card.is-selected {
  border-color: var(--navy);
  background: #eef2f9;
  box-shadow: 0 0 0 1px var(--navy) inset;
}
.role-card__title { font-weight: 700; color: var(--ink); font-size: 15px; }
.role-card.is-selected .role-card__title { color: var(--navy); }
.role-card__sub { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.role-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 520px) {
  .role-cards { flex-direction: column; }
}

/* ---------- Тосты ---------- */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.toast {
  background: var(--navy);
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s, transform 0.28s;
}
.toast--visible { opacity: 1; transform: translateY(0); }
.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }

/* ---------- Адаптив ---------- */
@media (max-width: 820px) {
  .header__burger { display: flex; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav--open { display: flex; }
  .nav__link { padding: 12px 0; font-size: 1.05rem; }
  .nav__divider { display: none; }
  .nav__user { max-width: none; }
  .nav .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Автодополнение DaData ---------- */
/* Обёртка поля с автоподсказкой (должность): позиционирует выпадающий список .dd */
.spec-ac { position: relative; }
.dd {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: 0 12px 32px rgba(20, 30, 50, 0.16);
  max-height: 320px;
  overflow-y: auto;
  display: none;
}
.dd.dd--open { display: block; }
.dd__item {
  display: flex; flex-direction: column; gap: 3px;
  width: 100%; text-align: left;
  padding: 11px 14px;
  background: none; border: none; cursor: pointer;
  border-bottom: 1px solid var(--line-2);
}
.dd__item:last-child { border-bottom: none; }
.dd__item:hover, .dd__item.is-active { background: var(--line-2); }
.dd__name { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.dd__sub { font-size: 0.8rem; color: var(--muted); }
.dd__status {
  display: inline-block; margin-left: 8px;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--danger); background: var(--danger-bg);
  border-radius: 4px; padding: 1px 6px; vertical-align: middle;
}
.dd__loading, .dd__empty {
  padding: 12px 14px; font-size: 0.88rem; color: var(--muted);
}

/* ---------- Бейдж типа элемента ленты ---------- */
.badge--type {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
}
.badge--type-job {
  background: #e9eff8;
  color: var(--navy);
  border-color: #cdd9ee;
}
.badge--type-gig {
  background: #eaf6ef;
  color: var(--success);
  border-color: #bfe3cd;
}
.badge--type-profile {
  background: #f3edfb;
  color: #6b3fa0;
  border-color: #ddcdf0;
}

/* ---------- Бейдж режима резюме (ищу работу / открыт к заказам) ---------- */
.badge--mode {
  background: #eef2f9;
  color: var(--muted);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-weight: 600;
}

/* ---------- Доп. элементы карточек ---------- */
.card__subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: -4px;
  overflow-wrap: anywhere;
}
.card__pay-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-2);
}
.card--feed,
.card--profile { /* наследуют базовый .card */ }

/* ---------- Чипы навыков ---------- */
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--navy);
  background: #eef2f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  line-height: 1.2;
}

/* ---------- Лента: слим-хедер ---------- */
.feed-hero {
  background: var(--navy);
  color: #fff;
  padding: 48px 0 40px;
}
.feed-hero .eyebrow { color: var(--navy-300); }
.feed-hero .page__title {
  color: #fff;
  margin: 6px 0 10px;
}
.feed-hero .page__sub {
  color: #c7d1e6;
  max-width: 640px;
}

/* ---------- Лента: вкладки по типу ---------- */
.feed-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.feed-tab {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.feed-tab:hover {
  color: var(--navy);
  border-color: var(--navy-300);
}
.feed-tab.is-active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

/* ---------- Блок контактов ---------- */
.contacts {
  margin-top: 28px;
  padding: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.contacts .section-label { margin-top: 0; }
.contacts__row {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.contacts__row:last-child { border-bottom: none; }
.contacts__label {
  flex: 0 0 110px;
  color: var(--muted);
  font-size: 0.9rem;
}
.contacts__value {
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
a.contacts__value { color: var(--navy); }
a.contacts__value:hover { color: var(--navy-600); text-decoration: underline; }

.contacts--empty { text-align: left; }

/* ---------- Блок контактов: заглушка для гостей ---------- */
.contacts--locked {
  text-align: center;
  padding: 36px 24px;
  border-style: dashed;
}
.contacts__lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #eef2f9;
  color: var(--navy);
}
.contacts__lock-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--navy);
}
.contacts--locked .muted { margin: 0 auto 18px; max-width: 380px; }

/* ---------- Секция деталки ---------- */
.detail__section { margin-top: 22px; }
.detail__section .section-label { margin-bottom: 10px; }

/* ============================================================
   Колокольчик уведомлений (notif-bell.js)
   Живёт внутри .nav между ссылкой «Сообщения» и именем пользователя.
   ============================================================ */
.notif { position: relative; display: inline-flex; align-items: center; }
.notif__btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  padding: 0;
  background: none; border: 0; cursor: pointer;
  color: var(--ink);
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
}
.notif__btn:hover { background: var(--line-2); color: var(--navy); }
.notif__badge {
  position: absolute; top: 3px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--danger); color: #fff;
  font-size: 0.66rem; font-weight: 700; line-height: 1;
  border-radius: 999px;
  border: 2px solid var(--white);
}
.notif__dropdown {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  width: 340px; max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  overflow: hidden;
}
.notif__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
}
.notif__title { font-weight: 700; font-size: 0.96rem; color: var(--navy); }
.notif__readall {
  background: none; border: 0; cursor: pointer;
  color: var(--navy-600); font-size: 0.82rem; font-weight: 600;
  padding: 0;
}
.notif__readall:hover { color: var(--navy); text-decoration: underline; }
.notif__list { max-height: 360px; overflow-y: auto; }
.notif__loading { padding: 26px 16px; }
.notif__empty { padding: 22px 16px; font-size: 0.88rem; text-align: center; }
.notif__item {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  transition: background 0.15s;
}
.notif__item:last-child { border-bottom: 0; }
.notif__item:hover { background: var(--bg-soft); color: var(--ink); }
.notif__item--unread { background: var(--featured-bg); }
.notif__item--unread:hover { background: #fbefd4; }
.notif__item-title {
  font-weight: 600; font-size: 0.9rem; color: var(--navy);
  line-height: 1.35;
}
.notif__item-body {
  font-size: 0.84rem; color: var(--muted); margin-top: 3px;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.notif__item-time { font-size: 0.74rem; color: var(--muted-2); margin-top: 5px; }
.notif__all {
  display: block;
  padding: 11px 16px;
  text-align: center;
  font-size: 0.86rem; font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--line-2);
  background: var(--bg-soft);
}
.notif__all:hover { background: var(--line-2); color: var(--navy); }

@media (max-width: 820px) {
  /* В мобильном выпадающем меню колокольчик встаёт в ряд. */
  .notif { align-self: flex-start; }
  .notif__dropdown {
    position: fixed;
    top: 68px; right: 12px; left: auto;
    width: auto; min-width: 280px; max-width: calc(100vw - 24px);
  }
}

/* ---- Меню аккаунта (имя пользователя → выпадающее меню) ---- */
.acct { position: relative; display: inline-flex; align-items: center; }
.acct__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 4px 0; cursor: pointer;
  font-weight: 600; font-size: 0.96rem; color: var(--ink);
  position: relative; font-family: inherit;
}
.acct__trigger:hover { color: var(--navy); }
.acct__trigger.is-active { color: var(--navy); }
.acct__trigger.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 18px; bottom: -2px;
  height: 2px; background: var(--navy);
}
.acct__caret {
  flex: none; color: var(--muted);
  transition: transform 0.18s ease;
}
.acct__trigger[aria-expanded="true"] .acct__caret { transform: rotate(180deg); color: var(--navy); }
.acct__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px); right: 0;
  min-width: 230px; max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  z-index: 60;
  overflow: hidden;
}
.acct__dropdown--open { display: block; }
.acct__head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
}
.acct__name {
  display: block;
  font-weight: 700; font-size: 0.94rem; color: var(--navy);
  line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acct__email {
  display: block;
  font-size: 0.8rem; color: var(--muted); margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acct-menu__item {
  display: block; width: 100%;
  padding: 11px 16px;
  font-size: 0.9rem; font-weight: 500;
  color: var(--ink);
  text-align: left;
  transition: background 0.15s;
}
.acct-menu__item:hover { background: var(--bg-soft); color: var(--navy); }
.acct-menu__item.is-active { color: var(--navy); font-weight: 600; background: var(--bg-soft); }
.acct-menu__item--logout {
  background: none; border: 0; cursor: pointer;
  font-family: inherit; color: var(--danger);
}
.acct-menu__item--logout:hover { background: var(--bg-soft); color: var(--danger); }
.acct__sep { height: 1px; background: var(--line-2); margin: 4px 0; }

@media (max-width: 820px) {
  /* В стопочном мобильном меню триггер стоит слева, выпадашка — фиксированно. */
  .acct { align-self: flex-start; }
  .acct__dropdown {
    position: fixed;
    top: 68px; right: 12px; left: auto;
    width: auto; min-width: 240px; max-width: calc(100vw - 24px);
  }
}
