:root {
  --bg: #f4f7fa;
  --panel: #ffffff;
  --line: #dde5ee;
  --text: #071e49;
  --muted: #5f6f85;
  --blue: #071e49;
  --blue-2: #0b316c;
  --green: #18c94f;
  --green-2: #0fb83f;
  --green-soft: #eef7f1;
  --ice: #f1f4f8;
  --shadow: 0 18px 44px rgba(7, 31, 73, 0.07);
  --soft-shadow: 0 8px 24px rgba(7, 31, 73, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 38%, #eef3f8 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

a {
  color: var(--blue-2);
  text-decoration: none;
}

a:hover {
  color: var(--green-2);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  border-bottom: 1px solid #e5eaf0;
  background: #ffffff;
}

.topbar-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  width: min(1320px, calc(100% - 72px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  color: var(--blue);
  font-weight: 800;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(7, 31, 73, 0.16);
}

.brand-name {
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--green);
}

.topnav,
.top-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topnav {
  justify-content: center;
  font-weight: 650;
}

.topnav a,
.ghost-link {
  color: var(--blue);
}

.top-actions {
  justify-content: flex-end;
}

.logout-form {
  margin: 0;
}

.ghost-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ghost-button:hover {
  color: var(--green-2);
}

.user-chip {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  min-height: 34px;
  overflow: hidden;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ice);
  color: var(--blue);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-2) 100%);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(31, 211, 79, 0.24);
  cursor: pointer;
}

.post-button:hover,
.primary-button:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.page {
  width: min(1320px, calc(100% - 72px));
  margin: 0 auto 48px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  column-gap: 36px;
  row-gap: 0;
  min-height: 0;
  padding: 48px 8px 34px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(36px, 3.55vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--green);
}

.hero-subtitle {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-stats div {
  min-width: 124px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: var(--soft-shadow);
}

.hero-stats strong {
  display: block;
  color: var(--blue);
  font-size: 21px;
}

.hero-stats span {
  color: var(--muted);
}

.hero-art {
  position: relative;
  justify-self: end;
  width: min(500px, 100%);
  overflow: hidden;
  border-radius: 42px;
  background: transparent;
}

.hero-art::before {
  display: none;
}

.hero-art img {
  display: block;
  width: 100%;
  max-height: 356px;
  object-fit: cover;
  object-position: center bottom;
  border-radius: 0;
  filter: none;
  transform: scaleX(1.035);
  transform-origin: center;
}

.hero-card {
  position: absolute;
  right: 6%;
  bottom: 38px;
  width: 220px;
  padding: 20px;
  border: 1px solid rgba(226, 234, 244, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-card strong {
  display: block;
  color: var(--blue);
  font-size: 24px;
}

.hero-card span {
  color: var(--muted);
  line-height: 1.4;
}

.filters.hero-search {
  width: 100%;
  margin-top: 24px;
  grid-template-columns: minmax(220px, 1fr) minmax(145px, 0.46fr) minmax(190px, 0.58fr);
  grid-template-areas:
    "search city salary"
    "button button button";
}

.hero-search .search-field {
  grid-area: search;
}

.hero-search .city-field {
  grid-area: city;
}

.hero-search .salary-range-field {
  grid-area: salary;
}

.filters.hero-search .primary-button {
  grid-area: button;
  min-height: 54px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(145px, 0.5fr) minmax(190px, 0.68fr) 120px;
  gap: 8px;
  align-items: end;
  padding: 8px;
  border: 1px solid #cbd8e8;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fe 100%);
  box-shadow: 0 16px 34px rgba(7, 31, 73, 0.10);
}

label {
  display: grid;
  gap: 5px;
  min-height: 70px;
  padding: 8px 12px;
  border: 1px solid #d9e4f1;
  border-radius: 12px;
  background: #ffffff;
  color: #43536c;
  font-size: 12px;
  font-weight: 700;
}

.search-field {
  position: relative;
}

.city-field {
  position: relative;
}

.salary-range-field {
  min-width: 0;
}

.search-field::before,
.city-field::before {
  content: "";
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 17px;
  height: 17px;
  background: #8aa0ba;
}

.search-field::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.city-field::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 10c0 5-8 11-8 11s-8-6-8-11a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 10c0 5-8 11-8 11s-8-6-8-11a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.search-field::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: #ccd8e8;
}

input,
select {
  width: 100%;
  height: 34px;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
}

input::placeholder {
  color: #8b9ab0;
  font-weight: 400;
  opacity: 1;
}

.search-field input,
.city-field select {
  padding-left: 30px;
}

.salary-range-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.salary-range-inputs input {
  min-width: 0;
  padding: 0 8px;
}

input:focus,
select:focus {
  outline: 0;
}

label:focus-within {
  border-color: rgba(31, 211, 79, 0.75);
  box-shadow: 0 0 0 4px rgba(31, 211, 79, 0.14);
}

.filters .primary-button {
  width: 100%;
  min-height: 70px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  box-shadow: 0 12px 26px rgba(15, 183, 62, 0.32);
}

.reset-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--blue-2);
  font-weight: 700;
}

.reset-button:hover,
.small-button:hover {
  border-color: var(--green);
  color: var(--green-2);
}

.popular-tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  max-width: 900px;
  margin-top: 16px;
  color: var(--muted);
  font-weight: 650;
}

.popular-tags a,
.category-strip a {
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
}

.popular-tags a:hover,
.category-strip a:hover {
  border-color: rgba(31, 211, 79, 0.5);
  background: var(--green-soft);
  color: var(--green-2);
}

.category-strip {
  display: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 34px;
}

.category-strip a {
  display: flex;
  align-items: center;
  min-height: 62px;
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
}

.results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 34px 0 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(221, 229, 238, 0.9);
}

.results-head h1 {
  margin: 0;
  color: var(--blue);
  font-size: 28px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.quick-filters a,
.found-badge,
.sort-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.quick-filters a:hover {
  border-color: rgba(24, 201, 79, 0.5);
  background: var(--green-soft);
  color: var(--green-2);
}

.found-badge {
  flex: 0 0 auto;
  border-color: rgba(24, 201, 79, 0.22);
  background: var(--green-soft);
  color: var(--green-2);
}

.results-head span,
.muted {
  color: var(--muted);
}

.results-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sort-note {
  flex: 0 0 auto;
  background: #ffffff;
  color: var(--muted);
}

.results-head .found-badge {
  color: var(--green-2);
}

.companies-head {
  align-items: center;
}

.company-search {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 0.45fr) minmax(170px, 0.45fr) 120px;
  max-width: 1120px;
  margin: 0 auto 18px;
}

.company-list {
  margin-top: 12px;
}

.company-count {
  white-space: nowrap;
}

.vacancy-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.vacancy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 290px);
  gap: 22px;
  min-height: 142px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 8px 26px rgba(7, 31, 73, 0.045);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.vacancy-row:hover {
  border-color: rgba(24, 201, 79, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.row-main {
  min-width: 0;
}

.vacancy-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.22;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.meta-line span:not(:last-child)::after {
  content: "·";
  padding-left: 8px;
}

.row-main p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 14px 0 0;
  color: #334155;
  line-height: 1.55;
}

.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
}

.contact-line a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #bcebc7;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-2);
  font-weight: 700;
}

.row-side {
  display: grid;
  grid-template-columns: 1fr;
  align-content: space-between;
  justify-items: end;
  gap: 10px;
  color: var(--muted);
}

.row-side strong {
  color: var(--blue);
  font-size: 18px;
  font-weight: 700;
}

.small-button {
  justify-self: end;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.row-side .small-button:last-child {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 30px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.pagination a,
.pagination span {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
  padding-top: 28px;
}

.detail-main,
.detail-side,
.setup-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.detail-heading h1 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 34px;
  line-height: 1.15;
}

.salary-band {
  margin: 22px 0;
  padding: 15px 18px;
  border-left: 5px solid var(--green);
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-2);
  font-size: 20px;
  font-weight: 900;
}

.admin-edit-button {
  margin-bottom: 14px;
  background: var(--blue);
  box-shadow: 0 10px 22px rgba(7, 31, 73, 0.18);
}

.text-section {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.text-section h2,
.contacts h2,
.setup-panel h1 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 18px;
}

.text-section p,
.setup-panel p {
  color: #334155;
  line-height: 1.65;
  white-space: pre-wrap;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.info-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.info-list dd {
  margin: 0;
}

.contacts {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.contacts a {
  overflow-wrap: anywhere;
}

.wide {
  width: 100%;
}

.setup-panel {
  max-width: 680px;
  margin: 70px auto;
  text-align: center;
}

.setup-panel pre {
  overflow-x: auto;
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  background: var(--blue);
  color: #ffffff;
  text-align: left;
}

.auth-layout {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 150px);
  padding: 44px 0;
}

.auth-panel {
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 22px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ice);
}

.auth-tabs-three {
  grid-template-columns: 1fr 1fr 1fr;
}

.auth-tabs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.auth-tabs a.active {
  background: #ffffff;
  color: var(--blue);
  box-shadow: var(--soft-shadow);
}

.auth-panel h1 {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 28px;
}

.auth-help,
.auth-domain-note {
  margin: -6px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-domain-note {
  margin: 14px 0 0;
  padding: 12px;
  border: 1px solid #d9e4f1;
  border-radius: 10px;
  background: #f8fbff;
  font-size: 13px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  min-height: auto;
}

.auth-form input {
  height: 40px;
  padding: 0;
}

.auth-error {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid #f3c4c4;
  border-radius: 10px;
  background: #fff4f4;
  color: #a32727;
  font-weight: 700;
}

.auth-notice,
.dev-code {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid #bcebc7;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-2);
  font-weight: 700;
}

.dev-code {
  margin: 0;
  text-align: center;
  font-size: 18px;
  letter-spacing: 0;
}

.secondary-auth-form {
  margin-top: 10px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.social-actions {
  display: grid;
  gap: 10px;
}

.social-button,
.telegram-login {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
  color: var(--blue);
  font-weight: 800;
}

.social-button:hover {
  border-color: var(--green);
}

.social-button.disabled {
  color: var(--muted);
  cursor: default;
}

.telegram-button,
.telegram-cta {
  border-color: rgba(45, 165, 224, 0.35);
  background: #eef8ff;
  color: #1677ad;
}

.telegram-register {
  display: grid;
  gap: 12px;
}

.telegram-frame-wrap {
  display: grid;
  min-height: 64px;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(45, 165, 224, 0.35);
  border-radius: 10px;
  background: #eef8ff;
}

.telegram-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(45, 165, 224, 0.45);
  border-radius: 9px;
  font-weight: 900;
}

.telegram-cta:hover,
.telegram-button:hover {
  border-color: #2da5e0;
  color: #0f6d9e;
}

.telegram-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #ffffff;
}

.telegram-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--blue);
}

.telegram-card-head a {
  font-size: 13px;
  font-weight: 800;
}

.telegram-frame {
  display: block;
  max-width: 100%;
  border: 0;
}

.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 36px auto 18px;
  padding: 0 24px;
}

.workspace-head.compact {
  padding: 0;
  margin: 0 0 20px;
}

.workspace-head h1 {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 32px;
}

.workspace-head p {
  margin: 0;
  color: var(--muted);
}

.admin-filters {
  max-width: 1120px;
  margin: 0 auto 16px;
  padding: 0 24px;
}

.admin-search {
  display: grid;
  grid-template-columns: minmax(170px, 1.35fr) minmax(150px, 1fr) minmax(130px, 0.75fr) minmax(150px, 1fr) minmax(130px, 0.8fr) minmax(120px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
  max-width: 1120px;
  margin: 0 auto 18px;
  padding: 0 24px;
}

.admin-search label {
  display: grid;
  gap: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 650;
}

.admin-search input,
.admin-search select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--blue);
  font: inherit;
  font-weight: 400;
}

.admin-search-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 1120px;
  margin: 0 auto 14px;
  padding: 0 24px;
  color: var(--muted);
  font-weight: 650;
}

.admin-table {
  max-width: 1120px;
  margin: 0 auto 56px;
  padding: 0 24px;
  overflow-x: auto;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #1f2a44;
  font-weight: 400;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--blue);
  font-size: 13px;
  font-weight: 650;
}

.admin-table .check-cell {
  width: 42px;
  padding-right: 6px;
  text-align: center;
}

.admin-table .check-cell input {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.admin-table small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.45;
}

.admin-table strong {
  color: var(--blue);
  font-weight: 600;
  line-height: 1.35;
}

.status-pill {
  display: inline-flex;
  min-width: 88px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-approved {
  background: #e9f9ef;
  color: #0b8f3a;
}

.status-pending {
  background: #fff8dd;
  color: #9a6a00;
}

.status-rejected {
  background: #ffecec;
  color: #b42318;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions form {
  margin: 0;
}

.small-button.danger {
  border-color: rgba(180, 35, 24, 0.28);
  color: #b42318;
}

.form-shell {
  max-width: 820px;
  margin: 36px auto 64px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
}

.editor-form {
  display: grid;
  gap: 14px;
}

.ai-draft-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid #bcebc7;
  border-radius: 10px;
  background: var(--green-soft);
}

.ai-draft-panel div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ai-draft-panel strong {
  color: var(--green-2);
}

.ai-draft-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.editor-form label {
  display: grid;
  gap: 7px;
  color: var(--blue);
  font-weight: 650;
}

.editor-form input,
.editor-form textarea,
.editor-form select {
  width: 100%;
  min-height: 42px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 13px;
  color: var(--blue);
  font: inherit;
  font-weight: 400;
  line-height: 1.45;
}

.editor-form textarea {
  resize: vertical;
}

.field-with-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.72fr);
  gap: 8px;
}

.field-with-menu input,
.field-with-menu select {
  min-width: 0;
}

.field-with-menu select {
  padding-right: 34px;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 8px;
}

@media (max-width: 1100px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
  }

  .topnav {
    display: none;
  }

  .hero,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: none;
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters.hero-search {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "city"
      "salary"
      "button";
  }

  .popular-tags {
    flex-wrap: wrap;
  }

  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vacancy-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1240px) and (min-width: 1101px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.62fr);
    column-gap: 28px;
  }

  .filters.hero-search {
    grid-template-columns: minmax(220px, 1fr) minmax(145px, 0.46fr) minmax(190px, 0.58fr);
    grid-template-areas:
      "search city salary"
      "button button button";
  }

  .filters.hero-search .primary-button {
    min-height: 54px;
  }
}

@media (max-width: 1460px) and (min-width: 1101px) {
  .hero {
    grid-template-columns: minmax(0, 0.98fr) minmax(420px, 0.68fr);
    column-gap: 34px;
  }

  .filters.hero-search {
    grid-template-columns: minmax(220px, 1fr) minmax(145px, 0.46fr) minmax(190px, 0.58fr);
    grid-template-areas:
      "search city salary"
      "button button button";
  }

  .filters.hero-search .primary-button {
    min-height: 54px;
  }
}

@media (max-width: 700px) {
  .topbar {
    min-height: 66px;
  }

  .topbar-inner {
    width: min(100% - 20px, 1320px);
    min-height: 66px;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 22px;
  }

  .top-actions {
    display: none;
  }

  .page {
    width: min(100% - 20px, 1320px);
  }

  .hero {
    min-height: 0;
    padding: 30px 0 24px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .filters,
  .category-strip,
  .vacancy-list,
  .field-with-menu {
    grid-template-columns: 1fr;
  }

  .filters.hero-search {
    grid-template-areas:
      "search"
      "city"
      "salary"
      "button";
  }

  .row-side {
    grid-template-columns: 1fr;
  }

  .small-button {
    justify-self: start;
  }

  .detail-main,
  .detail-side {
    padding: 18px;
  }

  .detail-heading h1 {
    font-size: 26px;
  }
}
