:root {
  --bg: #ffffff;
  --fg: #1c2733;
  --muted: #6b7683;
  --brand: #ffdb4d;
  --brand-dark: #f0c400;
  --line: #e6eaef;
  --accent: #2f6fed;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 14px; }
h2 { font-size: 22px; margin: 32px 0 14px; }
h3 { font-size: 18px; margin: 18px 0 8px; }
p { margin: 0 0 12px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: 14px; }
code { background: #f2f4f7; padding: 1px 5px; border-radius: 4px; font-size: 13px; }

.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 700; font-size: 18px; color: var(--fg); }
.site-nav a { margin-left: 16px; color: var(--fg); }
main.wrap { padding-top: 28px; padding-bottom: 48px; min-height: 60vh; }

.hero { padding: 8px 0 8px; }
.hero h1 { font-size: 34px; }
.lead { font-size: 18px; color: #3a4653; max-width: 760px; }
.search { margin: 22px 0 8px; }
.search input { width: 100%; max-width: 420px; padding: 13px 16px; font-size: 16px; border: 1px solid var(--line); border-radius: var(--radius); }

.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.city-tile { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--fg); background: #fff; }
.city-tile:hover { border-color: var(--brand-dark); background: #fffdf3; text-decoration: none; }
.alpha-block { margin-bottom: 24px; }
.alpha-letter { font-size: 20px; color: var(--muted); margin: 18px 0 10px; }

.offer-list { display: grid; gap: 16px; }
.offer-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.offer-card h3 { margin-top: 0; }
.salary { font-weight: 700; color: #12805c; margin: 4px 0 10px; }
.salary.big { font-size: 24px; }
.btn { display: inline-block; background: var(--brand); color: #222; border: 0; border-radius: 10px; padding: 12px 22px; font-size: 16px; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn-lg { padding: 15px 30px; font-size: 18px; }
.btn.ghost { background: #f2f4f7; color: var(--fg); font-weight: 500; }
.btn.tiny { padding: 5px 10px; font-size: 13px; }
.offer-image { max-width: 100%; max-height: 360px; border-radius: var(--radius); margin: 12px 0 16px; display: block; }

.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs span { margin: 0 4px; }
.intro { max-width: 820px; }
.content-block { margin-top: 26px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq-item summary { font-weight: 600; cursor: pointer; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 13px; }

/* admin */
body.admin { background: #f6f8fa; }
.admin-header { background: #1c2733; color: #fff; }
.admin-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.admin-header .logo { color: #fff; }
.admin-nav a { color: #cdd6e0; margin-left: 14px; }
.admin-nav a:hover { color: #fff; }
.admin-main { padding-top: 24px; padding-bottom: 60px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table th { background: #f2f4f7; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 12px; }
.badge.on { background: #d6f5e5; color: #0d6b4b; }
.badge.off { background: #f1d9d9; color: #8a2b2b; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.alert.success { background: #d6f5e5; color: #0d6b4b; }
.alert.error { background: #f8d7da; color: #842029; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.stat-num { display: block; font-size: 26px; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 13px; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; max-width: 900px; }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 0 0 18px; }
.form legend { padding: 0 8px; font-weight: 600; }
.form label { display: block; margin-bottom: 12px; font-size: 14px; }
.form input[type=text], .form input[type=number], .form input[type=password], .form textarea, .form select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; margin-top: 4px; background: #fff;
}
.form .check { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; }
.form .check input { width: auto; margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-actions { margin-top: 8px; }
.repeater-row { border: 1px dashed var(--line); border-radius: 8px; padding: 10px; margin-bottom: 10px; background: #fafbfc; }
.repeater-row .remove { margin-top: 6px; }
.form-narrow { max-width: 360px; margin: 60px auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.form-narrow label { display: block; margin-bottom: 14px; font-size: 14px; }
.form-narrow input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-top: 4px; }

@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 26px; }
  h1 { font-size: 24px; }
}

.is-hidden { display: none !important; }

.city-picker {
  max-height: 320px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  column-width: 220px;
  column-gap: 18px;
}
.city-picker .check { break-inside: avoid; margin-bottom: 6px; font-size: 14px; }

.bar { height: 10px; background: var(--brand); border-radius: 6px; min-width: 2px; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.media-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.media-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; background: #f2f4f7; }
.media-card input { width: 100%; margin: 8px 0; padding: 6px 8px; font-size: 12px; border: 1px solid var(--line); border-radius: 6px; }
.media-card form { margin: 0; }

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

.admin-header .wrap { flex-wrap: wrap; height: auto; min-height: 58px; padding-top: 8px; padding-bottom: 8px; gap: 8px 0; }
.admin-nav { display: flex; flex-wrap: wrap; }
.admin-nav a { margin-left: 0; margin-right: 14px; font-size: 14px; }

@media (max-width: 760px) {
  .site-header .wrap { height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
}

