/* Final visual quality pass. Kept separate so the core design remains easy to update. */
:root {
  --quality-shadow: 0 16px 40px rgba(30, 52, 84, .09);
  --quality-shadow-soft: 0 8px 24px rgba(30, 52, 84, .065);
}

body {
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#main-content { min-height: calc(100vh - 250px); }

.main-nav a,
.mobile-nav-panel a { font-size: 13px; }

.main-nav a {
  border-radius: 8px;
  padding: 7px 9px;
  transition: color .18s ease, background-color .18s ease;
}

.main-nav a:hover { background: rgba(36, 87, 178, .07); }

.btn {
  min-height: 40px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 650;
  border-radius: 10px;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn.primary:hover { box-shadow: 0 8px 20px rgba(36, 87, 178, .22); }

.hero { padding-top: clamp(36px, 5vw, 64px); }
.hero p,
.lead { font-size: 15px; line-height: 1.65; }

.search-box {
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(36, 87, 178, .14);
  border-radius: 16px;
  box-shadow: var(--quality-shadow);
}

.autocomplete-field,
.autocomplete-field > .field,
.search-box > .field {
  width: 100%;
  min-width: 0;
}

.field {
  font-size: 14px;
  border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field:focus {
  border-color: #3b6fc9;
  box-shadow: 0 0 0 3px rgba(36, 87, 178, .12);
  outline: 0;
}

.results-grid { grid-template-columns: 230px minmax(0, 1fr); gap: 22px; }

.filters,
.results {
  border: 1px solid rgba(30, 52, 84, .1);
  border-radius: 14px;
  background: var(--surface, #fff);
  box-shadow: var(--quality-shadow-soft);
}

.filters { padding: 16px; }
.filters label,
.filters legend,
.check { font-size: 12px; line-height: 1.4; }
.check { min-height: 30px; align-items: center; }

.results { padding: 20px; }
.results-head { margin-bottom: 16px; }
.results h2 { font-size: 20px; letter-spacing: -.015em; }

.vacancy-card {
  border-radius: 13px;
  padding: 20px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.vacancy-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--quality-shadow-soft);
}

.empty {
  min-height: 210px;
  padding: 36px 24px;
  border: 1px dashed rgba(36, 87, 178, .2);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(36, 87, 178, .035), rgba(56, 149, 118, .025));
  color: var(--muted, #627083);
  font-size: 14px;
}

.vacancy-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.vacancy-empty-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(36, 87, 178, .09);
  color: #2457b2;
  font-size: 27px;
  line-height: 1;
}

.vacancy-empty strong { color: var(--text, #172033); font-size: 17px; }
.vacancy-empty p { max-width: 470px; margin: 7px 0 17px; }

.site-footer { font-size: 12px; }
.site-footer .footer-row { gap: 18px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.legal-links a { font-size: 12px; line-height: 1.45; }

@media (max-width: 900px) {
  body { font-size: 14px; }
  .hero { padding-top: 30px; }
  .hero p, .lead { font-size: 14px; }
  .search-box { padding: 10px; border-radius: 14px; }
  .search-box .btn { width: 100%; }
  .results-grid { display: block; }
  .results { padding: 16px; border-radius: 13px; }
  .results-head { gap: 10px; align-items: flex-start; }
  .empty { min-height: 250px; padding: 32px 18px; }
}

@media (max-width: 520px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .site-header .container { width: calc(100% - 24px); }
  .hero h1 { font-size: clamp(29px, 9vw, 38px); line-height: 1.08; }
  .results { padding: 14px; }
  .results h2 { font-size: 18px; }
  .sort-select { max-width: 150px; }
  .site-footer { padding-block: 24px; }
  .site-footer .footer-row { align-items: flex-start; }
  .legal-links { gap: 7px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .field,
  .vacancy-card,
  .main-nav a { transition: none; }
}
