/* ───────────────────────── Токены ───────────────────────── */

:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #f0f2f8;
  --text: #151a2d;
  --muted: #626a80;
  --border: #e3e6ef;
  --border-strong: #cdd2e0;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef0ff;
  --accent-text: #ffffff;
  --good: #16a34a;
  --good-text: #15803d;
  --good-soft: #e6f6ec;
  --mid: #e08a0b;
  --mid-text: #b45309;
  --mid-soft: #fdf2df;
  --bad: #dc2626;
  --bad-text: #b91c1c;
  --bad-soft: #fdecec;
  --blue-text: #1d4ed8;
  --blue-soft: #e7effe;
  --star: #f5a524;
  --star-empty: #d9dce6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 40, 0.04), 0 6px 22px rgba(20, 24, 40, 0.05);
  --shadow-lg: 0 20px 60px rgba(20, 24, 40, 0.18);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1120;
    --surface: #161a2c;
    --surface-2: #1e2339;
    --text: #e8eaf3;
    --muted: #9ba2b9;
    --border: #282e4a;
    --border-strong: #3a4166;
    --accent: #7c83f7;
    --accent-hover: #959bfa;
    --accent-soft: #23284d;
    --accent-text: #0e1120;
    --good: #34c46f;
    --good-text: #5bd88d;
    --good-soft: #143224;
    --mid: #f0a43a;
    --mid-text: #f4b55e;
    --mid-soft: #3a2b12;
    --bad: #f05252;
    --bad-text: #f87171;
    --bad-soft: #3a1a20;
    --blue-text: #8ab4ff;
    --blue-soft: #1b2748;
    --star-empty: #3a4060;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 22px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

/* ───────────────────────── База ───────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  outline: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.4em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
}

h2 {
  font-size: 22px;
  font-weight: 750;
}

h3,
.h3 {
  font-size: 18px;
  font-weight: 700;
}

.h4 {
  font-size: 15px;
  font-weight: 700;
  margin-top: 20px;
}

p {
  margin: 0 0 0.8em;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

code {
  font-size: 0.9em;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 6px;
}

button {
  font: inherit;
  color: inherit;
}

input,
select,
textarea {
  font: inherit;
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .container {
    padding: 0 24px;
  }
}

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

.small {
  font-size: 13px;
}

.center {
  text-align: center;
}

.spacer {
  flex: 1;
}

.link {
  font-weight: 600;
}

.row-end {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.stack > * + * {
  margin-top: 14px;
}

/* ───────────────────────── Шапка ───────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
}

.logo-sm {
  font-size: 16px;
  margin-bottom: 8px;
}

.logo-sm .logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 14px;
}

.top-search {
  flex: 1;
  max-width: 360px;
}

.top-search input {
  width: 100%;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.nav-link:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--accent);
}

.user-menu {
  position: relative;
}

.user-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.user-menu summary::-webkit-details-marker {
  display: none;
}

.user-menu summary:hover {
  background: var(--surface-2);
}

.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: flex;
  flex-direction: column;
}

.menu-head {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
}

.menu-head small {
  color: var(--muted);
}

.menu a,
.menu button {
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
}

.menu a:hover,
.menu button:hover {
  background: var(--surface-2);
  text-decoration: none;
}

@media (max-width: 760px) {
  .top-search,
  .hide-sm,
  .logo-text {
    display: none;
  }
  .topbar-inner {
    gap: 8px;
  }
}

/* ───────────────────────── Кнопки ───────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-light {
  background: #fff;
  color: #3730a3;
}

.btn-light:hover {
  background: #eef0ff;
}

.btn-danger {
  background: var(--bad);
  color: #fff;
}

.btn-success {
  background: var(--good);
  color: #fff;
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 10px;
}

.btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.link-btn {
  background: none;
  border: 0;
  padding: 4px 2px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

.link-btn.muted {
  color: var(--muted);
}

.link-btn.danger {
  color: var(--bad-text);
}

.link-btn:disabled {
  cursor: default;
  text-decoration: none;
  opacity: 0.7;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pill-btn:hover {
  border-color: var(--border-strong);
}

.pill-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.pill-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.icon-btn {
  border: 0;
  background: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--muted);
}

.icon-btn:hover {
  background: var(--surface-2);
}

/* ───────────────────────── Карточки, раскладка ───────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-pad {
  padding: 20px;
}

@media (min-width: 720px) {
  .card-pad {
    padding: 24px;
  }
}

.section {
  margin-top: 36px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 0;
}

.grid-2 {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 820px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 32px 0 20px;
}

.page-head h1 {
  margin-bottom: 4px;
}

.page-head p {
  margin: 0;
}

.crumbs {
  margin: 24px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.page-loading {
  display: grid;
  place-items: center;
  padding: 120px 0;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#app > *:last-child {
  margin-bottom: 56px;
}

/* ───────────────────────── Главная ───────────────────────── */

.home,
.form-page {
  max-width: 760px;
  margin: 0 auto;
}

.home-hero {
  text-align: center;
  padding: 48px 0 8px;
}

.home-hero h1 {
  font-size: clamp(30px, 5.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
}

.home-hero .lead {
  margin: 0 auto 28px;
}

.btn-xl {
  height: 60px;
  padding: 0 40px;
  font-size: 18px;
  border-radius: 16px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent);
}

@media (max-width: 560px) {
  .btn-xl {
    width: 100%;
  }
}

.home-search {
  margin-top: 28px;
}

/* ───────────────────────── Поисковая строка с фильтрами ───────────────────────── */

.searchbar {
  width: 100%;
}

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

.searchbar-input {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  cursor: text;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.searchbar-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.searchbar-input svg {
  flex-shrink: 0;
}

.searchbar-input input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 17px;
  color: var(--text);
}

.searchbar-btn {
  height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 15px;
}

.searchbar-go {
  padding: 0 28px;
}

.searchbar-btn.is-open {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.filters-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 12px;
}

.filters {
  margin-top: 10px;
  padding: 6px 20px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
}

.filters[hidden] {
  display: none;
}

.filters-grid {
  display: grid;
  gap: 0 16px;
}

@media (min-width: 640px) {
  .filters-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .search-page .filters-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.filters .field input,
.filters .field select {
  min-height: 42px;
  padding: 8px 12px;
}

.filters-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 16px;
}

.filters-checks .check + .check {
  margin-top: 0;
}

.filters-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 560px) {
  .searchbar-row {
    flex-wrap: wrap;
  }
  .searchbar-input {
    flex: 1 1 100%;
  }
  .searchbar-btn {
    flex: 1;
  }
}

#s-bar {
  margin-bottom: 4px;
}

.feed {
  margin-top: 40px;
}

.mini-list {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.mini-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 12px;
  color: var(--text);
}

.mini-row:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.mini-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mini-main small {
  color: var(--muted);
}

/* ───────────────────────── Аватары, звёзды, бейджи, чипы ───────────────────────── */

.avatar {
  --h: 230;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  font-weight: 800;
  color: hsl(var(--h) 55% 32%);
  background: hsl(var(--h) 70% 90%);
  width: 44px;
  height: 44px;
  font-size: 15px;
}

@media (prefers-color-scheme: dark) {
  .avatar {
    color: hsl(var(--h) 80% 82%);
    background: hsl(var(--h) 35% 26%);
  }
}

.avatar-sm {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.avatar-lg {
  width: 76px;
  height: 76px;
  font-size: 26px;
}

.avatar-company {
  background: var(--surface-2);
  font-size: 34px;
}

.stars {
  position: relative;
  display: inline-block;
  line-height: 1;
  font-size: 16px;
  letter-spacing: 1px;
  white-space: nowrap;
  vertical-align: middle;
}

.stars-bg {
  color: var(--star-empty);
}

.stars-fg {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: var(--star);
}

.stars-sm {
  font-size: 13px;
}

.stars-lg {
  font-size: 22px;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
}

.tone-good {
  background: var(--good-soft);
  color: var(--good-text);
}

.tone-mid {
  background: var(--mid-soft);
  color: var(--mid-text);
}

.tone-bad {
  background: var(--bad-soft);
  color: var(--bad-text);
}

.tone-none {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.tone-text-good {
  color: var(--good-text);
}

.tone-text-mid {
  color: var(--mid-text);
}

.tone-text-bad {
  color: var(--bad-text);
}

.tone-text-none {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-green {
  background: var(--good-soft);
  color: var(--good-text);
}

.badge-red {
  background: var(--bad-soft);
  color: var(--bad-text);
}

.badge-neutral {
  background: var(--surface-2);
  color: var(--muted);
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue-text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  line-height: 1.3;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip-red {
  background: var(--bad-soft);
  color: var(--bad-text);
}

.chip-red .chip-dot {
  background: var(--bad);
}

.chip-green {
  background: var(--good-soft);
  color: var(--good-text);
}

.chip-green .chip-dot {
  background: var(--good);
}

.chip-count {
  background: color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 999px;
  padding: 0 7px;
  font-size: 12px;
}

button.chip {
  cursor: pointer;
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

button.chip:hover {
  border-color: currentColor;
}

button.chip.chip-red:hover,
button.chip.chip-red.is-active {
  border-color: var(--bad);
  color: var(--bad-text);
}

button.chip.chip-green:hover,
button.chip.chip-green.is-active {
  border-color: var(--good);
  color: var(--good-text);
}

button.chip.chip-red.is-active {
  background: var(--bad-soft);
}

button.chip.chip-green.is-active {
  background: var(--good-soft);
}

.chips-sm .chip {
  padding: 3px 9px;
  font-size: 12px;
}

.verified {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}

.verified-lg {
  width: 24px;
  height: 24px;
  font-size: 14px;
}

.verified-note {
  color: var(--accent);
  margin: 6px 0 0;
}

.ghost-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--bad-text);
}

/* ───────────────────────── Бары ───────────────────────── */

.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, 200px) 1fr 44px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  margin: 8px 0;
}


.bar-label {
  color: var(--text);
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
}

.tone-bg-good {
  background: var(--good);
}

.tone-bg-mid {
  background: var(--mid);
}

.tone-bg-bad {
  background: var(--bad);
}

.tone-bg-accent {
  background: var(--accent);
}

.bar-value {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .bar-row {
    grid-template-columns: 1fr 44px;
    gap: 4px 10px;
  }
  .bar-label {
    grid-column: 1 / -1;
    font-size: 13px;
  }
}

/* ───────────────────────── Поиск ───────────────────────── */

.toolbar {
  display: flex;
  gap: 10px;
  padding: 12px;
  flex-wrap: wrap;
}

.toolbar input {
  flex: 1 1 260px;
  min-width: 0;
}

.toolbar input,
.toolbar select,
.section-head select {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.toolbar select {
  flex: 0 1 auto;
}

.company-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.company-chip {
  display: inline-flex;
  flex-direction: column;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  line-height: 1.3;
}

.company-chip span {
  font-size: 12px;
  color: var(--muted);
}

.company-chip:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.results-meta {
  margin: 16px 0 10px;
}

.recruiter-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
}

.recruiter-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.rc-main {
  flex: 1;
  min-width: 0;
}

.rc-name {
  font-weight: 750;
  font-size: 17px;
}

.rc-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.rc-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .recruiter-card {
    flex-wrap: wrap;
  }
  .rc-side {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding-left: 60px;
    gap: 10px;
  }
}

.empty {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

.empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

/* ───────────────────────── Профиль рекрутера ───────────────────────── */

.profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 24px;
  align-items: start;
}

.profile h1 {
  margin-bottom: 6px;
}

.profile-sub {
  display: flex;
  gap: 6px 16px;
  flex-wrap: wrap;
  color: var(--muted);
}

.profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}

@media (max-width: 560px) {
  .profile {
    gap: 14px;
    padding: 18px;
  }
  .profile .avatar-lg {
    width: 52px;
    height: 52px;
    font-size: 18px;
  }
  .toolbar select {
    flex: 1 1 140px;
  }
  .profile-actions .btn {
    white-space: normal;
    height: auto;
    min-height: 42px;
    padding: 10px 16px;
    text-align: center;
  }
}

.profile-score {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.score-big {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

@media (min-width: 760px) {
  .profile {
    grid-template-columns: auto 1fr auto;
    padding: 28px;
  }
  .profile-score {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding: 0 0 0 28px;
    border-top: 0;
    border-left: 1px solid var(--border);
    min-width: 170px;
  }
  .score-big {
    font-size: 56px;
  }
}

.signals {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 720px) {
  .signals {
    grid-template-columns: repeat(3, 1fr);
  }
}

.signal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.signal b {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.signal span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.signal-bad {
  background: var(--bad-soft);
  border-color: transparent;
}

.signal-bad b {
  color: var(--bad-text);
}

.signal-good {
  background: var(--good-soft);
  border-color: transparent;
}

.signal-good b {
  color: var(--good-text);
}

.flag-group {
  margin-top: 16px;
}

.flag-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}

.outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.outcome-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#reviews {
  scroll-margin-top: 80px;
}

.bar-fill[style='width:0%'] {
  min-width: 0;
}

.active-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 14px;
}

#recruiter-page > .card + .card,
#recruiter-page > .grid-2 + .card {
  margin-top: 16px;
}

/* ───────────────────────── Отзыв ───────────────────────── */

.review {
  padding: 20px;
  position: relative;
}

@media (min-width: 720px) {
  .review {
    padding: 22px 24px;
  }
}

.review.is-pending,
.review.is-hidden {
  border-style: dashed;
}

.status-banner {
  margin: -6px 0 14px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.status-pending {
  background: var(--mid-soft);
  color: var(--mid-text);
}

.status-hidden {
  background: var(--surface-2);
  color: var(--muted);
}

.status-flags {
  font-weight: 500;
}

.review-recruiter {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.review-recruiter span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.review-recruiter small {
  color: var(--muted);
}

.review-recruiter:hover {
  text-decoration: none;
}

.review-recruiter:hover b {
  color: var(--accent);
}

.review-score {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.review-score-num {
  font-weight: 800;
}

.review-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  color: var(--muted);
  font-size: 13px;
}

.review-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 14px 0;
  font-size: 14px;
}

.fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fact i {
  font-style: normal;
  color: var(--muted);
  font-size: 13px;
}

.review .chips {
  margin: 12px 0;
}

.review-body {
  white-space: pre-line;
  margin: 12px 0;
  overflow-wrap: anywhere;
}

.crit-line {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13px;
  color: var(--muted);
}

.crit-line li {
  display: inline-flex;
  gap: 6px;
}

.photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}

.photo-thumb {
  width: 96px;
  height: 96px;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: zoom-in;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.photo-thumb:hover img {
  transform: scale(1.05);
}

.reply {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}

.reply-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 6px;
}

.reply-head .muted {
  font-size: 13px;
}

.verified-dot {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 800;
}

.reply p {
  margin: 0;
  white-space: pre-line;
}

.reply-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.reply-form {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface-2);
}

.review-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.admin-author {
  margin-top: 12px;
}

/* ───────────────────────── Формы ───────────────────────── */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.field-label {
  font-weight: 650;
  font-size: 14px;
}

.field input,
.field select,
.field textarea,
.combo input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.combo input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
}

.field-hint.is-low {
  color: var(--mid-text);
}

.req {
  color: var(--bad);
}

.form-error {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bad-soft);
  color: var(--bad-text);
  font-size: 14px;
  font-weight: 600;
}

.form-layout {
  display: grid;
  gap: 20px;
  align-items: start;
}

@media (min-width: 980px) {
  .form-layout {
    grid-template-columns: 1fr 300px;
  }
  .form-aside {
    position: sticky;
    top: 84px;
  }
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.form-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.form-section h2 .muted {
  font-weight: 500;
  font-size: 14px;
}

.step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  gap: 0 16px;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tips h3 {
  font-size: 16px;
}

.tips ul {
  padding-left: 18px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.tips li + li {
  margin-top: 8px;
}

.chosen {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
}

.chosen div {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.combo {
  position: relative;
  margin-bottom: 10px;
}

.combo-list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  max-height: 360px;
  overflow: auto;
}

.combo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  text-align: left;
}

.combo-item:hover {
  background: var(--surface-2);
}

.combo-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.combo-main small {
  color: var(--muted);
}

.combo-add {
  color: var(--accent);
  font-weight: 700;
  border-top: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  margin-top: 4px;
  padding-top: 12px;
}

.star-input {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.star-input button {
  border: 0;
  background: none;
  font-size: 40px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
  color: var(--star-empty);
  transition: transform 0.1s, color 0.1s;
}

.star-input button:hover {
  transform: scale(1.12);
}

.star-input button.on {
  color: var(--star);
}

.star-caption {
  margin-left: 12px;
  font-weight: 700;
  color: var(--muted);
}

.star-input[data-tone='good'] .star-caption {
  color: var(--good-text);
}

.star-input[data-tone='mid'] .star-caption {
  color: var(--mid-text);
}

.star-input[data-tone='bad'] .star-caption {
  color: var(--bad-text);
}

.crit-inputs {
  display: grid;
  gap: 4px 24px;
}

@media (min-width: 640px) {
  .crit-inputs {
    grid-template-columns: 1fr 1fr;
  }
}

.crit-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
}

.mini-stars button {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  padding: 0 1px;
  cursor: pointer;
  color: var(--star-empty);
}

.mini-stars button.on {
  color: var(--star);
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.photo-tile,
.photo-add {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
}

.photo-tile {
  border: 1px solid var(--border);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: rgba(15, 18, 32, 0.72);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px dashed var(--border-strong);
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
}

.photo-add span {
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
}

.photo-add small {
  font-size: 11px;
  line-height: 1.3;
}

.photo-add:hover {
  border-color: var(--accent);
}

#photo-section.is-drop {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
}

.check + .check {
  margin-top: 16px;
}

.check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.check > span {
  display: block;
}

.check b {
  display: block;
}

.check small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.inline-link {
  display: inline;
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
}

.inline-link:hover {
  text-decoration: underline;
}

.modal-list {
  padding-left: 18px;
  margin: 8px 0 0;
}

.modal-list li + li {
  margin-top: 8px;
}

.radio-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.radio:hover {
  background: var(--surface-2);
}

.radio input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  margin: 0;
}

/* ───────────────────────── Авторизация ───────────────────────── */

.auth-wrap {
  display: grid;
  place-items: center;
  padding: 48px 0;
}

.auth-card {
  width: 100%;
  max-width: 440px;
}

.auth-footer {
  margin: 18px 0 0;
  text-align: center;
  font-size: 14px;
}

.demo-box {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  line-height: 1.8;
}

.demo-box code {
  background: var(--surface);
}

/* ───────────────────────── Кабинет и модерация ───────────────────────── */

.table-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  flex-wrap: wrap;
}

.table-row + .table-row {
  border-top: 1px solid var(--border);
}

.table-row a {
  flex: 1;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}

.tab {
  padding: 10px 14px;
  font-weight: 650;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab:hover {
  color: var(--text);
  text-decoration: none;
}

.tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-count {
  background: var(--bad);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  padding: 1px 7px;
}

.mod-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mod-reports {
  background: var(--bad-soft);
  border-color: transparent;
  box-shadow: none;
}

.mod-reports .h4 {
  margin-top: 0;
}

.mod-report {
  padding: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}

.mod-report p {
  width: 100%;
  margin: 2px 0 0;
}

.mod-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.mod-claim {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

blockquote {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-left: 3px solid var(--border-strong);
  background: var(--surface-2);
  border-radius: 0 10px 10px 0;
}

/* ───────────────────────── Правила ───────────────────────── */

.prose-wrap {
  max-width: 760px;
  margin: 32px auto 0;
}

.prose h2 {
  margin-top: 28px;
  scroll-margin-top: 84px;
}

.prose ul {
  padding-left: 20px;
}

.prose li + li {
  margin-top: 8px;
}

/* ───────────────────────── Модалка, тосты, лайтбокс ───────────────────────── */

.modal {
  border: 0;
  padding: 0;
  border-radius: 20px;
  width: min(520px, calc(100vw - 32px));
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.modal::backdrop {
  background: rgba(10, 12, 24, 0.55);
  backdrop-filter: blur(2px);
}

.modal-form {
  padding: 22px 24px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.modal-head h3 {
  margin: 0;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.toasts {
  position: fixed;
  z-index: 100;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

@media (min-width: 720px) {
  .toasts {
    left: auto;
    right: 24px;
    bottom: 24px;
    align-items: flex-end;
  }
}

.toast {
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #1f2437;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.toast-success {
  background: #15803d;
}

.toast-error {
  background: #b91c1c;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 10, 20, 0.9);
  display: grid;
  place-items: center;
  padding: 56px 16px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}

.lb-btn {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

.lb-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lb-close {
  top: 12px;
  right: 12px;
  font-size: 16px;
}

.lb-prev {
  left: 12px;
  top: 50%;
}

.lb-next {
  right: 12px;
  top: 50%;
}

.lb-count {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
}

/* ───────────────────────── Подвал ───────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
  max-width: 420px;
}

.footer-links {
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a {
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
  }
}

/* ───────────────────────── Карточка в ленте: компания, рекрутер, Telegram, фото ───────────────────────── */

:root {
  --shadow: 0 1px 2px rgba(20, 24, 40, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --shadow: none;
  }
}

.avatar-photo {
  object-fit: cover;
  background: var(--surface-2);
}

.avatar-xl {
  width: 96px;
  height: 96px;
  font-size: 32px;
}

@media (max-width: 560px) {
  .profile .avatar-xl {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }
}

.subject {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.subject-photo:hover {
  text-decoration: none;
}

.subject .avatar-lg {
  width: 60px;
  height: 60px;
  font-size: 20px;
}

.subject-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.subject-company {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow-wrap: anywhere;
}

.subject-person {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.subject-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.subject-company:hover,
.subject-name:hover {
  color: var(--accent);
  text-decoration: none;
}

.tg-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #229ed9;
}

.review-feed .review-score {
  margin-bottom: 10px;
}

.review-feed .review-title {
  font-size: 17px;
}

.review-score-num {
  font-weight: 800;
}

.review > .review-meta {
  margin-top: 14px;
}

.shots {
  margin: 14px 0 4px;
}

.shots-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}

.shots .photos {
  margin: 0;
}

.review-feed .photo-thumb {
  width: 132px;
  height: 132px;
}

/* ───────────────────────── Профиль рекрутера ───────────────────────── */

.profile-company {
  display: inline-block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-sub {
  align-items: center;
}

/* ───────────────────────── Форма ───────────────────────── */

.chosen-company {
  font-size: 17px;
}

.chosen span {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
}

.rphoto {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}

.rphoto .avatar-lg {
  width: 60px;
  height: 60px;
}

.rphoto-add {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px dashed var(--border-strong);
  background: var(--surface-2);
  color: var(--accent);
  font-size: 26px;
  cursor: pointer;
  flex-shrink: 0;
}

.rphoto-add:hover {
  border-color: var(--accent);
}

.field input:disabled {
  background: var(--surface-2);
  color: var(--muted);
}

.found-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.found-hint.is-ok {
  background: var(--good-soft);
  color: var(--good-text);
}

.found-hint.is-warn {
  background: var(--mid-soft);
  color: var(--mid-text);
  display: block;
}

.found-hint[hidden] {
  display: none;
}

.custom-add {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.custom-add input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  font-size: 14px;
}

.custom-add input:focus {
  outline: none;
  border-style: solid;
  border-color: var(--accent);
}

.chip-x {
  font-size: 11px;
  opacity: 0.7;
  margin-left: 2px;
}

details.more {
  margin-top: 4px;
}

details.more > summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  color: var(--accent);
  list-style: none;
  padding: 4px 0;
}

details.more > summary::-webkit-details-marker {
  display: none;
}

details.more > summary::before {
  content: '+ ';
}

details.more[open] > summary::before {
  content: '− ';
}

.form-section details.more > summary {
  font-size: 15px;
}

.star-input + details.more {
  margin-top: 12px;
}

/* ───────────────────────── Отзыв без регистрации ───────────────────────── */

.guest-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 14px;
  line-height: 1.5;
}

/* ───────────────────────── Юридические документы ───────────────────────── */

.draft-note {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--mid-soft);
  color: var(--mid-text);
  font-size: 14px;
}

mark.ph {
  padding: 0 4px;
  border-radius: 4px;
  background: var(--mid-soft);
  color: var(--mid-text);
}

.legal h2 {
  font-size: 18px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

/* Замаскированный Telegram — текст, а не ссылка */
.tg-masked {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ───────────────────────── Инструмент «Замазать» ───────────────────────── */

.photo-redact {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(15, 18, 32, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.photo-redact:hover {
  background: var(--accent);
}

.redactor {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  background: #0b0d18;
  color: #fff;
}

.redactor-bar,
.redactor-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: #151a2c;
}

.redactor-title {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
  line-height: 1.35;
}

.redactor-title span {
  font-size: 13px;
  color: #aab0c6;
}

.redactor-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.redactor .seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: #0b0d18;
}

.redactor .seg button {
  border: 0;
  background: none;
  color: #c9cde0;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.redactor .seg button.is-active {
  background: #4f46e5;
  color: #fff;
}

.redactor .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #3a4166;
}

.redactor .btn-ghost:hover {
  background: #232a45;
}

.redactor .muted {
  color: #aab0c6;
}

.redactor-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: auto;
}

.redactor-stage canvas {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  background: #fff;
  cursor: crosshair;
  touch-action: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 560px) {
  .redactor-foot .spacer {
    display: none;
  }
  .redactor-foot [data-count] {
    flex: 1 1 100%;
  }
  .redactor-foot .btn {
    flex: 1;
  }
}
