:root {
  --page-orange: #d8a882;
  --orange-gap: #c99558;
  --orange-border: #b0783a;
  --blue-soft: #e6f2fc;
  --blue-btn: #c6e0f7;
  --blue-border: #689bc4;
  --blue-dark: #102a43;
  --bg: var(--page-orange);
  --surface: #f5faff;
  --text: #0c1a2e;
  --muted: #3d5a73;
  --border: var(--blue-border);
  --border-light: #d2e8f5;
  --accent: var(--blue-btn);
  --accent-warm: var(--orange-border);
  --accent-dark: #1e3a5f;
  --hero-bg: linear-gradient(135deg, #e6f2fc 0%, #f5faff 55%, #dce8f4 100%);
  --block-radius: 24px;
  --block-border: 3px solid var(--blue-border);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247, 251, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--blue-border);
  box-shadow: 0 4px 24px rgba(16, 42, 67, 0.1);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}

.logo__text {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.logo__mark {
  display: inline-flex;
  line-height: 0;
}

.lp-gap {
  height: 18px;
  background: transparent;
  width: 100%;
}

.lp-block {
  border: var(--block-border);
  background: var(--surface);
  border-radius: var(--block-radius);
  box-shadow: 0 8px 32px rgba(16, 42, 67, 0.08);
}

body.page-landing {
  background: var(--page-orange);
}

.page--landing {
  padding: 1.25rem 1rem 2rem;
}

.page--landing > .lp-block {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.page--landing > .lp-gap {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.header__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.header__inner--wide {
  max-width: 1120px;
}

.page--landing {
  max-width: none;
  padding: 0;
}

.page--landing .lp-section--dark.lp-block {
  border-color: #689bc4;
}

.page--landing .lp-section--dark .lp-section__head h2,
.page--landing .lp-section--dark h3 {
  color: #f7fbff;
}

.page--landing .lp-section--dark .lp-section__head p,
.page--landing .lp-section--dark .lp-checklist li,
.page--landing .lp-section--dark .lp-note {
  color: #c5d9eb;
}

.page-landing .footer--wide {
  margin-top: 0;
}

.footer--wide {
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer__grid {
  max-width: 1120px;
  margin: 0 auto 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.footer__title {
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.footer__grid a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.footer__grid a:hover {
  color: var(--text);
}

.footer__muted {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 28rem;
}

.footer__copy {
  text-align: center;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ——— Landing (Диполь) ——— */

.lp-hero {
  background: var(--hero-bg);
  padding: 3.5rem 2rem 4rem;
}

.lp-hero__inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.lp-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.lp-hero__slogan {
  font-size: clamp(2.35rem, 9vw, 4.75rem);
  line-height: 1.04;
  margin: 0 0 1.75rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--text);
  text-wrap: balance;
}

.lp-hero__slogan-main {
  display: block;
  margin-bottom: 0.15em;
  font-weight: 900;
}

.lp-hero__slogan-accent {
  display: block;
  font-weight: 900;
  color: var(--blue-dark);
}

.lp-hero__brand-word {
  position: relative;
  display: inline-block;
  font-weight: 900;
  color: var(--text);
}

.lp-hero__brand-word::after {
  content: "";
  position: absolute;
  left: -0.05em;
  right: -0.05em;
  bottom: 0.04em;
  height: 0.34em;
  background: rgba(200, 137, 74, 0.42);
  border-radius: 4px;
  z-index: -1;
}

.lp-hero__slogan::after {
  content: "";
  display: block;
  width: min(320px, 72%);
  height: 6px;
  margin: 1rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-border), var(--orange-border));
}

.lp-hero__lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 auto 1.75rem;
  max-width: 640px;
}

.lp-trust {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.lp-trust li {
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid var(--blue-border);
  border-radius: 999px;
}

.lp-split {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  border: none;
  background: transparent;
}

.page--landing .lp-split.lp-block {
  padding: 2rem 1.5rem;
  background: var(--surface);
}

.lp-split__card {
  background: var(--surface);
  border: 2px solid var(--blue-border);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  box-shadow: none;
}

.lp-split__card--candidate {
  border-top: 4px solid var(--blue-border);
}

.lp-split__card--employer {
  border-top: 4px solid var(--orange-border);
}

.lp-split__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.lp-split__card h2 {
  font-size: 1.35rem;
  margin: 0.5rem 0 1rem;
  line-height: 1.3;
}

.lp-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.lp-checklist li {
  padding: 0.45rem 0 0.45rem 1.35rem;
  position: relative;
  line-height: 1.5;
  color: var(--muted);
}

.lp-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.lp-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.page--landing .lp-section.lp-block {
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.page--landing .lp-section.lp-block > .lp-section__head,
.page--landing .lp-section.lp-block > .lp-steps,
.page--landing .lp-section.lp-block > .lp-showcase,
.page--landing .lp-section.lp-block > .lp-results,
.page--landing .lp-section.lp-block > .lp-table-wrap,
.page--landing .lp-section.lp-block > .lp-pricing,
.page--landing .lp-section.lp-block > .lp-pricing-note {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.lp-section--dark {
  background: #1a3550;
  color: #dceaf7;
  max-width: none;
}

.lp-section--muted {
  background: var(--blue-soft);
  max-width: none;
}

.lp-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.lp-section__head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.lp-section__head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.lp-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.lp-step {
  background: var(--surface);
  border: 2px solid var(--blue-border);
  border-radius: 16px;
  padding: 1.5rem;
}

.lp-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-btn), var(--orange-border));
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.lp-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.lp-step p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.lp-step__result {
  font-size: 0.85rem !important;
  color: var(--text) !important;
}

.lp-showcase {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.lp-showcase__mock {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #334155;
}

.lp-mock-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.lp-mock-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
}

.lp-mock-banner {
  height: 100px;
  border-radius: 8px;
  background: linear-gradient(90deg, #334155, #475569);
  margin-bottom: 1rem;
}

.lp-mock-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0 0 1rem;
}

.lp-mock-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lp-mock-tags li {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: #334155;
  border-radius: 999px;
}

.lp-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1rem 0;
}

.lp-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.lp-result {
  background: var(--surface);
  border: 2px solid var(--blue-border);
  border-radius: 16px;
  padding: 1.5rem;
}

.lp-result h3 {
  margin: 0 0 0.75rem;
  color: var(--accent-dark);
}

.lp-result p {
  margin: 0 0 0.5rem;
  line-height: 1.55;
  color: var(--muted);
  font-size: 0.95rem;
}

.lp-result__metric {
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.9rem !important;
}

.lp-table-wrap {
  max-width: 1120px;
  margin: 0 auto;
  overflow-x: auto;
}

.lp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.95rem;
}

.lp-table th,
.lp-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.lp-table th {
  background: #e2e8f0;
  font-weight: 700;
}

.lp-table tr:last-child td {
  border-bottom: none;
}

.lp-cta {
  text-align: center;
  padding: 3.5rem 2rem 4rem;
  background: var(--hero-bg);
}

.lp-cta h2 {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.lp-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.lp-price-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--blue-border);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
}

.lp-price-card--hit {
  border-color: var(--orange-border);
  border-width: 3px;
}

.lp-price-card__badge {
  position: absolute;
  top: -0.65rem;
  right: 1rem;
  background: var(--orange-border);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  text-transform: uppercase;
}

.lp-price-card__name {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--text);
}

.lp-price-card__sub {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.lp-price-card__price {
  margin: 0 0 1.25rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.lp-price-card__price span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.lp-pricing-note {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.lp-pricing-promo {
  max-width: 1120px;
  margin: 0 auto 1.75rem;
  padding: 1.75rem 1.5rem;
  text-align: center;
  border: 3px solid var(--orange-border);
  border-radius: 20px;
  background: linear-gradient(135deg, #f5faff 0%, #f0e4d4 100%);
}

.lp-pricing-promo__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-border);
}

.lp-pricing-promo__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  line-height: 1.25;
}

.lp-pricing-promo__lead {
  margin: 0 auto 1.25rem;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.6;
}

.lp-pricing-promo__fine {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.lp-price-card__promo {
  margin: -0.5rem 0 0.75rem;
  font-size: 0.9rem;
  color: var(--orange-border);
  font-weight: 600;
}

.lp-price-card__plus {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

.lp-cta h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
}

.lp-cta p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

@media (max-width: 960px) {
  /* Карточки объявлений: мобильные правила — в конце файла (после .card--vacancy). */
}

@media (max-width: 900px) {
  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-sidebar {
    position: static;
    max-height: none;
  }

  .services-sidebar__nav {
    max-height: 14rem;
  }
}

@media (max-width: 640px) {
  .lp-hero {
    padding-top: 2rem;
  }

  .header__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav__links,
  .nav__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nav__actions .btn,
  .nav__actions .nav__link {
    flex: 1 1 auto;
    text-align: center;
  }

  .lp-hero__slogan {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }
}


.badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
}

.hero {
  flex: 1;
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.5rem 2rem;
}

.hero__card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 700;
}

.hero__tagline {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.hero__list {
  list-style: none;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.75rem;
  text-align: left;
  display: inline-block;
  border: 1px solid var(--border-light);
  background: var(--bg);
  max-width: 100%;
}

.hero__list li {
  padding: 0.45rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

.hero__list li:last-child {
  border-bottom: none;
}

.hero__note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.footer {
  text-align: center;
  padding: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 3px solid var(--blue-border);
}

.footer a {
  color: var(--text);
}

.nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.nav__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.nav__logout {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

.nav__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
  font-weight: 600;
}

.nav__link--cta {
  color: var(--text);
  font-weight: 600;
  border: 2px solid var(--orange-border);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: var(--blue-btn);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page {
  flex: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
}

.page:has(.services-layout) {
  max-width: 1200px;
}

.page-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.page-head__meta {
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border: 2px solid var(--orange-border);
  background: var(--blue-btn);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-radius: 12px;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn--employer {
  background: var(--blue-soft);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--blue-border);
  color: var(--muted);
}

.btn--nav {
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
  white-space: nowrap;
}

.btn--candidate {
  background: var(--blue-btn);
}

.nav__link--cabinet {
  font-weight: 700;
}

.card {
  background: var(--surface);
  border: 3px solid var(--blue-border);
  border-radius: var(--block-radius);
  padding: 1rem 1.15rem;
  box-shadow: 0 8px 32px rgba(16, 42, 67, 0.08);
}

.card--vacancy {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 148px;
  gap: 1rem;
  align-items: stretch;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Без блока работодателя — две колонки */
.card--vacancy:not(:has(> .card__employer)) {
  grid-template-columns: 112px minmax(0, 1fr);
}

/* Превью без фото (хаб города и урезанные карточки) — на всю ширину */
.card--vacancy:not(:has(> .card__thumb)) {
  grid-template-columns: minmax(0, 1fr);
}

.card--vacancy:not(:has(> .card__thumb)) > .card__body {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 100%;
}

/* Явный класс для превью на хабе города */
.card.card--vacancy.card--hub-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  grid-template-columns: none;
  grid-template-areas: none;
}

.card--hub-preview .card__body {
  min-width: 0;
  max-width: 100%;
}

.card--hub-preview .card__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: normal;
}

.card__thumb {
  flex: 0 0 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 84px;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-light);
  background: var(--blue-soft);
  text-decoration: none;
}

.card__thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.ui-frame {
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  margin: 0 0 0.45rem;
}

.card__block:last-child {
  margin-bottom: 0;
}

.card__block--desc .card__excerpt {
  margin: 0;
}

.card__meta-row {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

.card__code {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.card__employer {
  width: 148px;
  min-width: 0;
  max-width: 148px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  padding: 0.65rem;
  margin: 0;
  align-self: start;
  overflow: hidden;
}

.card__employer-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  gap: 0.35rem;
  height: 100%;
  min-height: 116px;
  min-width: 0;
  max-width: 100%;
}

.card__employer-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card__employer-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}

.card__employer-initials {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
}

.card__employer-name {
  margin: 0;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
  word-break: break-word;
}

.card__employer-stats {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.card__employer-badge {
  display: inline-block;
  margin-top: auto;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #d1e9ff;
  color: #1e4a7a;
  font-size: 0.68rem;
  font-weight: 600;
}

.card__thumb-placeholder {
  font-size: 1.75rem;
  opacity: 0.45;
}

.card__body {
  flex: 1;
  min-width: 0;
}

.card__title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.card__title a {
  color: var(--text);
  text-decoration: none;
}

.card__title a:hover {
  text-decoration: underline;
  color: var(--accent, #9c6b3d);
}

.card--vacancy .card__title {
  max-width: 40rem;
}

.card__shift-badge {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.tag--shift {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #1e3a5f;
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card__work-where {
  font-weight: 600;
  color: #1e3a5f;
  font-size: 0.95rem;
}

.card__company,
.card__meta {
  margin: 0.25rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card__geo {
  margin: 0.2rem 0 0.35rem;
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.35;
}

.card__salary {
  margin: 0.45rem 0 0.2rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.card__salary .vacancy-salary-piecework {
  color: var(--accent, #c45c00);
}

.card__excerpt {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 62ch;
}

.tag {
  font-size: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.empty {
  background: var(--surface);
  border: 1px dashed var(--border-light);
  padding: 2rem;
  text-align: center;
}

.empty__hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail__back a {
  color: var(--muted);
}

.detail h1 {
  margin: 0.5rem 0;
}

.detail__body {
  margin-top: 1.25rem;
  line-height: 1.6;
}

/* ——— Стена объявлений ——— */

.wall-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.wall-tab {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border: 2px solid var(--blue-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.wall-tab:hover {
  filter: brightness(1.03);
}

.wall-tab--active {
  background: var(--blue-btn);
  border-color: var(--orange-border);
}

/* Переключатель Работа / Услуги на публичных стенах (раньше без стилей выглядел как мелкие ссылки) */
.product-switcher--public {
  display: flex;
  width: 100%;
  max-width: 420px;
  margin: 0 0 0.35rem;
  border: 2px solid var(--blue-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
}

.product-switcher--public .product-switcher__item {
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 1rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--surface);
  border: 0;
}

.product-switcher--public .product-switcher__item:hover {
  background: var(--blue-soft);
}

.product-switcher--public .product-switcher__item.is-active {
  background: var(--blue-btn);
  color: var(--blue-dark);
  box-shadow: inset 0 0 0 1px var(--blue-border);
}

.product-switcher__hint {
  margin: 0 0 1rem;
  font-size: 0.85rem;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 0.75rem;
}

.services-sidebar {
  position: sticky;
  top: 5.75rem;
  padding: 0.85rem;
  max-height: calc(100vh - 6.5rem);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.services-sidebar__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  flex-shrink: 0;
}

.services-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
  min-height: 0;
  flex: 1 1 auto;
  -webkit-overflow-scrolling: touch;
}

.services-sidebar__link {
  display: block;
  padding: 0.55rem 0.7rem;
  border: 2px solid var(--blue-border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
}

.services-sidebar__link:hover {
  filter: brightness(1.03);
}

.services-sidebar__link--active {
  background: var(--blue-btn);
  border-color: var(--orange-border);
}

.services-content {
  min-width: 0;
}

.wall-search {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
}

.wall-search__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.wall-search__field {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
}

.wall-search__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.wall-search__field input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.wall-search__btn {
  flex: 0 0 auto;
  cursor: pointer;
  border: 2px solid var(--orange-border);
}

.wall-search__reset {
  align-self: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.city-hub-search .wall-search {
  margin-bottom: 0;
}

.city-hub-search .wall-search + .wall-search {
  margin-top: 0.75rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border: 3px solid var(--blue-border);
  border-radius: 16px;
  background: var(--surface);
}

.pagination a {
  color: var(--text);
  font-weight: 600;
}

.card--resume {
  border: 2px solid var(--blue-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
}

.card__hint {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.btn--active {
  background: var(--blue-soft);
}

.btn--login,
.btn--auth {
  background: var(--surface);
  border: 1.5px solid var(--orange-border, #c9956a);
  font-weight: 600;
}

/* ——— Модальные окна входа / регистрации ——— */

body.auth-modal-open {
  overflow: hidden;
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 26, 46, 0.45);
}

.auth-modal__panel {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--surface);
  border: 3px solid var(--blue-border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 16px 48px rgba(16, 42, 67, 0.2);
}

.auth-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.auth-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.auth-modal__lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.auth-modal__form .form-row {
  margin: 0 0 1rem;
}

.auth-modal__form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-modal__form input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--border-light);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.auth-modal__links {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  text-align: center;
}

.auth-modal__links a {
  color: var(--muted);
}

.auth-modal__footer {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-modal__link-btn {
  border: none;
  background: none;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
}

.auth-modal__choices {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-modal__choice {
  display: block;
  padding: 1rem 1.1rem;
  border: 2px solid var(--blue-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: var(--blue-soft);
}

.auth-modal__choice strong {
  display: block;
  margin-bottom: 0.25rem;
}

.auth-modal__choice span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.auth-modal__choice:hover {
  border-color: var(--orange-border);
}

/* === Mobile vacancy cards (MUST be after .card--vacancy base rules) === */
@media (max-width: 960px) {
  .card--vacancy {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
      "thumb body"
      "employer employer";
    gap: 0.75rem;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .card--vacancy:not(:has(> .card__thumb)) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "body"
      "employer";
  }

  .card--vacancy:not(:has(> .card__employer)) {
    grid-template-areas: "thumb body";
  }

  .card--vacancy:not(:has(> .card__thumb)):not(:has(> .card__employer)) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "body";
  }

  .card--vacancy > .card__thumb {
    grid-area: thumb;
    flex: 0 0 auto;
    width: 72px;
    max-width: 72px;
    height: 54px;
  }

  .card--vacancy > .card__body {
    grid-area: body;
    min-width: 0;
    max-width: 100%;
  }

  .card--vacancy > .card__employer {
    grid-area: employer;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 0;
    flex-direction: row;
    align-self: stretch;
  }

  .card--vacancy .card__employer-link {
    flex-direction: row;
    align-items: center;
    text-align: left;
    min-height: 0;
    gap: 0.65rem;
    width: 100%;
  }

  .card--vacancy .card__employer-name,
  .card--vacancy .card__employer-stats {
    text-align: left;
  }

  .card--vacancy .card__employer-badge {
    margin-top: 0;
    margin-left: auto;
    flex-shrink: 0;
  }

  .card--vacancy .card__title {
    max-width: none;
    font-size: 1.15rem;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .card--vacancy .card__salary,
  .card--vacancy .card__excerpt,
  .card--vacancy .card__geo,
  .card--vacancy .card__meta-row {
    overflow-wrap: break-word;
    word-break: normal;
  }

  .wall-search__row,
  .city-hub-search .wall-search__row {
    flex-direction: column;
    align-items: stretch;
  }

  .wall-search__field {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .wall-search__field input,
  .wall-search__field select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .wall-search__btn,
  .city-hub-search .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .wall-search__reset {
    align-self: flex-start;
  }

  .card.card--vacancy.card--hub-preview {
    display: block;
    grid-template-columns: none;
    grid-template-areas: none;
  }
}

@media (max-width: 640px) {
  .card--vacancy {
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 0.85rem;
    gap: 0.65rem;
  }

  .card--vacancy:not(:has(> .card__thumb)),
  .card--vacancy:not(:has(> .card__thumb)):not(:has(> .card__employer)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .card--vacancy > .card__thumb {
    width: 64px;
    max-width: 64px;
    height: 48px;
  }

  .card--vacancy .card__title {
    font-size: 1.05rem;
  }

  .page {
    padding: 1rem 0.85rem;
  }

  .page-head h1 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
    overflow-wrap: break-word;
  }

  .card.card--vacancy.card--hub-preview {
    display: block;
    grid-template-columns: none;
    grid-template-areas: none;
  }
}

