:root {
  --blue: #F5C200;
  --blue-dark: #D4A700;
  --blue-light: #FFF8D0;
  --red: #e02424;
  --orange: #ff6b35;
  --green: #16a34a;
  --green-light: #dcfce7;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-400: #a1a1aa;
  --gray-600: #52525b;
  --gray-800: #27272a;
  --gray-900: #18181b;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --radius: 8px;
  --radius-lg: 12px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--gray-50);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: #18181b;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; border: none; cursor: pointer;
  transition: background .2s, transform .1s;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:active { transform: scale(.98); }
.btn-primary.btn-lg { padding: 14px 32px; font-size: 16px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--gray-600);
  padding: 10px 16px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; border: 1px solid var(--gray-200);
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--blue); color: #18181b; background: var(--blue-light); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: #18181b;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; border: 2px solid var(--blue);
  cursor: pointer; transition: all .2s;
}
.btn-outline:hover { background: var(--blue); color: #18181b; }

.btn-danger { background: var(--red); color: #fff; border: none; }
.btn-danger:hover { background: #c81e1e; }
.btn-success { background: var(--green); color: #fff; border: none; }
.btn-success:hover { background: #046c4e; }

/* ── HEADER ── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; color: var(--gray-900);
  flex-shrink: 0;
}
.logo:hover { color: var(--blue); }
.main-nav {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}
.main-nav a {
  padding: 8px 14px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  transition: all .15s;
}
.main-nav a:hover, .main-nav a.active {
  color: #18181b; background: var(--blue-light); font-weight: 600;
}
.header-auth {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
}
.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  margin-left: auto;
}
.burger span {
  display: block; width: 22px; height: 2px; background: var(--gray-800);
  border-radius: 2px; transition: all .2s;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding: 80px 0 64px;
  text-align: center;
  overflow: hidden;
  background: #1a1000;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero/hero.png');
  background-size: cover; background-position: center;
  opacity: .85;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.10);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 16px; color: #fff;
}
.hero h1 span { color: var(--blue); }
.hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.82); margin-bottom: 36px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-counters {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 44px; flex-wrap: wrap;
}
.hero-counter { text-align: center; }
.hero-counter .num {
  font-size: 30px; font-weight: 800; display: block; color: var(--blue);
}
.hero-counter .lbl {
  font-size: 13px; color: rgba(255,255,255,.7);
}

/* ── HERO CLASSES ── */
.hero-title {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 16px; color: #fff;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.82); margin-bottom: 36px;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.hero-search {
  display: flex; gap: 8px; align-items: center;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 8px; box-shadow: var(--shadow-lg);
  max-width: 680px; margin: 0 auto 32px;
}
.hero-search-input {
  flex: 1; border: none; outline: none;
  padding: 12px 16px; font-size: 15px; color: var(--gray-900);
  background: transparent; min-width: 0;
}
.hero-search-input::placeholder { color: var(--gray-400); }
.hero-search-select {
  border: none; outline: none; padding: 10px 12px;
  font-size: 14px; color: var(--gray-600); background: var(--gray-100);
  border-radius: 6px; cursor: pointer;
}
.hero-search-btn { white-space: nowrap; flex-shrink: 0; }
.hero-stats {
  display: flex; justify-content: center; gap: 40px;
  flex-wrap: wrap; margin-top: 8px;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 26px; font-weight: 800; color: var(--blue); }
.hero-stat span { font-size: 13px; color: rgba(255,255,255,.7); }

/* ── SEARCH BOX ── */
.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 8px;
  display: flex; gap: 8px; align-items: center;
  box-shadow: var(--shadow-lg);
  max-width: 720px; margin: 0 auto;
}
.search-box input {
  flex: 1; border: none; outline: none;
  padding: 12px 16px; font-size: 15px; color: var(--gray-900);
  background: transparent;
}
.search-box input::placeholder { color: var(--gray-400); }
.search-select {
  border: none; outline: none; padding: 12px 14px;
  font-size: 14px; color: var(--gray-600); background: var(--gray-100);
  border-radius: 6px; cursor: pointer; min-width: 160px;
}

/* ── FILTERS BAR ── */
.filters-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}
.filters-inner {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: nowrap; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.filters-inner::-webkit-scrollbar { display: none; }
.filter-chip {
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--gray-200); color: var(--gray-600);
  background: var(--white); cursor: pointer; transition: all .15s;
  white-space: nowrap;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--blue); color: #18181b; border-color: var(--blue-dark); font-weight: 600;
}
.filter-chip a { color: inherit; }

/* ── SECTION ── */
.section { padding-top: 40px; padding-bottom: 40px; }
.section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.section-title {
  font-size: 22px; font-weight: 700; color: var(--gray-900);
}

/* ── VACANCY CARD ── */
.vacancies-grid {
  display: flex; flex-direction: column; gap: 12px;
}
.vacancy-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: box-shadow .2s, border-color .2s;
  position: relative;
  display: block;
}
.vacancy-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.vacancy-card.is-top {
  border-color: #fbbf24;
  background: #fffbeb;
}
.vacancy-card.is-highlighted {
  border-left: 4px solid var(--blue);
  background: var(--blue-light);
}
.vacancy-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 10px;
}
.vacancy-title {
  font-size: 17px; font-weight: 600; color: var(--gray-900);
  line-height: 1.3;
}
.vacancy-title:hover { color: var(--blue); }
.vacancy-company {
  font-size: 14px; color: var(--gray-600); margin-bottom: 8px;
}
.vacancy-salary {
  font-size: 16px; font-weight: 700; color: var(--green);
  white-space: nowrap;
}
.vacancy-tags {
  display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px;
}
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500;
}
.tag-gray { background: var(--gray-100); color: var(--gray-600); }
.tag-blue { background: var(--blue-light); color: #92710a; }
.tag-top { background: #fef3c7; color: #92400e; }
.tag-urgent { background: #fee2e2; color: #991b1b; }
.tag-green { background: var(--green-light); color: var(--green); }

.vacancy-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  font-size: 13px; color: var(--gray-400);
}

/* ── PAGINATION ── */
.pagination {
  display: flex; gap: 4px; justify-content: center;
  margin-top: 32px; flex-wrap: wrap;
}
.page-btn {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--gray-200); color: var(--gray-600);
  background: var(--white); cursor: pointer; transition: all .15s;
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  background: var(--blue); color: #18181b; border-color: var(--blue-dark); font-weight: 700;
}

/* ── SIDEBAR ── */
.page-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 20px;
  align-items: start;
  min-width: 0;
}
.page-layout > * { min-width: 0; }
.sidebar {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 20px;
  position: sticky; top: 80px;
}
.sidebar h3 {
  font-size: 14px; font-weight: 600; color: var(--gray-900);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em;
}
.sidebar-group { margin-bottom: 20px; }
.sidebar label {
  display: block; font-size: 13px; color: var(--gray-600); margin-bottom: 4px;
}
.sidebar input, .sidebar select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--gray-200);
  border-radius: var(--radius); font-size: 14px; color: var(--gray-900);
  background: var(--white); outline: none; transition: border-color .15s;
}
.sidebar input:focus, .sidebar select:focus { border-color: var(--blue); }

/* ── VACANCY DETAIL ── */
.vacancy-detail {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 32px;
}
.vacancy-detail h1 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.detail-meta {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin: 16px 0 24px; padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}
.detail-meta-item { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.detail-meta-item .icon { color: var(--gray-400); }
.detail-section { margin-bottom: 28px; }
.detail-section h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.detail-section p, .detail-section li {
  font-size: 15px; color: var(--gray-600); line-height: 1.7;
}
.detail-section ul { padding-left: 20px; }
.detail-description { white-space: pre-wrap; }

.apply-box {
  background: var(--gray-50); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px;
}
.apply-box h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }

/* ── FORMS ── */
.form-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 32px;
  max-width: 560px; margin: 0 auto;
}
.form-card h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.form-card .subtitle { color: var(--gray-600); font-size: 14px; margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 500;
  color: var(--gray-700, #374151); margin-bottom: 6px;
}
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-size: 15px; color: var(--gray-900); background: var(--white);
  outline: none; transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(245,194,0,.25);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.form-error { font-size: 13px; color: var(--red); margin-top: 4px; }

/* ── ALERTS ── */
.alert {
  padding: 14px 18px; border-radius: var(--radius); font-size: 14px;
  margin-bottom: 16px;
}
.alert-success { background: var(--green-light); color: var(--green); }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-info { background: var(--blue-light); color: #78600a; }

/* ── CATEGORIES GRID ── */
.categories-grid {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}
.categories-grid .category-card {
  flex: 0 0 calc((100% - 5 * 12px) / 6);
  min-width: 150px;
}
.category-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 18px 16px;
  text-align: center; transition: all .2s;
  cursor: pointer;
}
.category-card:hover {
  border-color: var(--blue); background: var(--blue-light); box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.category-card .cat-icon {
  font-size: 28px; margin-bottom: 8px; display: block;
}
.category-card .cat-name {
  font-size: 14px; font-weight: 600; color: var(--gray-900);
}
.category-card .cat-count {
  font-size: 12px; color: var(--gray-400); margin-top: 4px;
}

/* ── DASHBOARD ── */
.dashboard-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
}
.dash-nav {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 16px; height: fit-content;
  position: sticky; top: 80px;
}
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--gray-600);
  transition: all .15s;
}
.dash-nav a:hover, .dash-nav a.active {
  background: var(--blue-light); color: #18181b; font-weight: 600;
}
.dash-content {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px;
}
.dash-content h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  padding: 12px 14px; text-align: left;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  color: var(--gray-400); border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
td {
  padding: 14px; border-bottom: 1px solid var(--gray-100);
  color: var(--gray-900); vertical-align: middle;
}
tr:hover td { background: var(--gray-50); }

/* ── ADMIN ── */
.admin-layout {
  display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px);
}
.admin-sidebar {
  background: var(--gray-900); color: var(--white);
  padding: 24px 16px;
}
.admin-sidebar .admin-logo {
  font-size: 18px; font-weight: 700; color: var(--white);
  margin-bottom: 28px; display: flex; align-items: center; gap: 8px;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 14px; color: rgba(255,255,255,.7);
  transition: all .15s; margin-bottom: 2px;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,.1); color: var(--white);
}
.admin-main { padding: 28px; background: var(--gray-50); }
.admin-main h1 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }

.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 20px;
}
.stat-card .stat-num {
  font-size: 28px; font-weight: 800; color: #18181b; display: block;
}
.stat-card .stat-lbl { font-size: 13px; color: var(--gray-400); }

/* ── TOP PROMO BOX ── */
.promo-box {
  background: linear-gradient(135deg, #fff8cc 0%, #fff3a0 100%);
  color: #18181b; border-radius: var(--radius-lg);
  padding: 28px 32px; margin: 32px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  border: 2px solid var(--blue);
  box-shadow: 0 4px 20px rgba(245,194,0,.25);
}
.promo-box h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: #18181b; }
.promo-box p { font-size: 14px; color: var(--gray-600); max-width: 420px; }
.btn-white {
  background: #18181b; color: var(--blue);
  padding: 12px 24px; border-radius: var(--radius);
  font-size: 14px; font-weight: 800; white-space: nowrap;
  transition: transform .1s, background .15s;
}
.btn-white:hover { transform: scale(1.03); background: #2d2d2d; }

/* ── FOOTER ── */
.site-footer {
  background: var(--gray-900); color: rgba(255,255,255,.75);
  margin-top: 60px; overflow: hidden;
}
.footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  padding: 48px 0 36px;
}
.footer-brand .logo {
  color: var(--white); margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  flex-wrap: nowrap; white-space: nowrap;
}
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 {
  font-size: 13px; font-weight: 600; color: var(--white);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,.6);
  margin-bottom: 8px; transition: color .15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  font-size: 13px; color: rgba(255,255,255,.4);
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--gray-400);
}
.empty-state svg { margin: 0 auto 16px; opacity: .4; }
.empty-state p { font-size: 16px; }

/* ── BADGE ── */
.badge {
  display: inline-block; padding: 2px 8px;
  border-radius: 20px; font-size: 11px; font-weight: 600;
  text-transform: uppercase;
}
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-active { background: var(--green-light); color: var(--green); }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* ── TIPS GRID ── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tip-card {
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .2s, box-shadow .2s;
}
.tip-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tip-icon { font-size: 32px; }
.tip-stat { font-size: 28px; font-weight: 800; line-height: 1; }
.tip-title { font-size: 14px; font-weight: 600; color: var(--gray-900); line-height: 1.3; }
.tip-desc { font-size: 13px; color: var(--gray-600); line-height: 1.5; margin-top: 4px; }
.tip-yellow { background: #fffbeb; border: 1px solid #fde68a; }
.tip-yellow .tip-stat { color: #b45309; }
.tip-green  { background: #f0fdf4; border: 1px solid #bbf7d0; }
.tip-green  .tip-stat { color: #16a34a; }
.tip-blue   { background: #eff6ff; border: 1px solid #bfdbfe; }
.tip-blue   .tip-stat { color: #2563eb; }
.tip-orange { background: #fff7ed; border: 1px solid #fed7aa; }
.tip-orange .tip-stat { color: #ea580c; }

@media (max-width: 1024px) { .tips-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .tips-grid { grid-template-columns: 1fr; } }

/* ── TYPE CHIPS ── */
.type-chip {
  display: inline-block; padding: 5px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 500;
  border: 1px solid var(--gray-200); background: var(--white);
  color: var(--gray-600); white-space: nowrap; transition: all .15s;
  user-select: none;
}
.type-chip:hover { border-color: var(--blue); background: var(--blue-light); color: #18181b; }
.type-chip.active { background: var(--blue); border-color: var(--blue-dark); color: #18181b; font-weight: 600; }

/* ── NEW BADGE ── */
.vacancy-card { position: relative; overflow: hidden; }
.new-badge {
  position: absolute; top: 12px; left: 12px;
  background: #16a34a; color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 1px 4px rgba(22,163,74,.3);
}
.vacancy-card.is-new {
  border: 2px solid #bbf7d0;
  padding-top: 36px;
}
.vacancy-card.is-new:hover { border-color: #16a34a; }

.badge-archived { background: #f3f4f6; color: #6b7280; }

/* ── INSTAGRAM ── */
.ig-btn {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gray-600); font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--radius);
  border: 1px solid var(--gray-200); transition: all .15s;
  white-space: nowrap;
}
.ig-btn:hover { color: #c13584; border-color: #c13584; background: #fff0f7; }

.ig-section { padding-bottom: 20px; }
.ig-block {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 24px 28px;
  margin-bottom: 16px;
}
.ig-block-left { display: flex; align-items: center; gap: 16px; }
.ig-handle { font-size: 20px; font-weight: 800; color: #18181b; margin-bottom: 4px; }
.ig-desc { font-size: 13px; color: var(--gray-600); max-width: 460px; line-height: 1.5; }
.ig-follow-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 12px 22px; border-radius: var(--radius);
  white-space: nowrap; transition: opacity .15s; flex-shrink: 0;
}
.ig-follow-btn:hover { opacity: .88; }

.ig-posts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.ig-post-placeholder {
  aspect-ratio: 1; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff8d0, #fff3a0);
  border: 2px dashed var(--blue);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--gray-400); font-size: 13px;
  transition: all .2s;
}
.ig-post-placeholder:hover { background: var(--blue-light); border-color: var(--blue-dark); transform: scale(1.02); }

/* ── TABLET ── */
@media (max-width: 1024px) {
  .categories-grid .category-card { flex: 0 0 calc((100% - 3 * 12px) / 4); }
}
@media (max-width: 768px) {
  .categories-grid .category-card { flex: 0 0 calc((100% - 2 * 12px) / 3); }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-layout > *, .vacancies-grid, .vacancy-card,
  .dashboard-layout > *, .admin-layout > * { min-width: 0; max-width: 100%; }
  .header-inner { align-items: center; }
  .sidebar {
    position: static;
    display: none;
    order: 2;
  }
  .sidebar.sidebar-open { display: block; }
  #filter-toggle { display: flex !important; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-nav { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 20px; padding: 32px 0 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .burger { display: flex; }
  .main-nav {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    padding: 12px 20px; z-index: 99;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .header-auth {
    display: none; flex-direction: column; align-items: stretch;
    position: absolute; top: auto; left: 0; right: 0;
    background: var(--white); padding: 12px 20px; z-index: 99;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .header-auth.open { display: flex; top: calc(64px + var(--nav-h, 0px)); }
  .ig-btn { display: none; }
  .search-box { flex-direction: column; }
  .search-select { width: 100%; }
  .search-box input { border-bottom: 1px solid var(--gray-200); }
  .search-box .btn-primary { width: 100%; justify-content: center; }
  .promo-box { flex-direction: column; text-align: center; }
  .promo-box img { display: none; }
  .hero { padding: 48px 0 40px; }
  .hero-counters { gap: 20px; }
  .hero-counter .num { font-size: 22px; }
  .section-header { flex-wrap: wrap; gap: 8px; }
  .vacancy-card { padding: 16px; }
  .vacancy-card-header { flex-direction: column; gap: 4px; }
  .vacancy-salary { align-self: flex-start; }
  .ig-block { flex-direction: column; align-items: flex-start; }
  .ig-follow-btn { width: 100%; justify-content: center; }
  .ig-posts { grid-template-columns: repeat(2, 1fr); }
  .detail-meta { gap: 12px; }
  .section { padding-top: 28px; padding-bottom: 28px; }
}

@media (max-width: 480px) {
  /* Layout */
  .container { padding: 0 16px; }
  .vacancies-grid { padding: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .categories-grid .category-card { flex: 0 0 calc((100% - 12px) / 2); }
  .stats-grid { grid-template-columns: 1fr; }

  /* Instagram */
  .ig-posts { grid-template-columns: repeat(2, 1fr); }
  .ig-block { flex-direction: column; align-items: flex-start; padding: 16px; }
  .ig-btn span { display: none; }

  /* Footer */
  .footer-col { word-break: break-word; }
  .footer-col h4 { font-size: 12px; }
  .footer-col a { font-size: 13px; word-break: break-word; }
  .footer-brand p { font-size: 12px; line-height: 1.5; word-break: break-word; }

  /* Forms */
  .form-control, select.form-control { width: 100% !important; max-width: 100% !important; }
  .form-card { padding: 20px; border-radius: 6px; }
  .apply-box { padding: 16px; }
  .dash-content { padding: 18px; }

  /* Hero */
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: clamp(24px, 5vw, 36px); line-height: 1.2; }
  .hero-counters { gap: 12px; }
  .hero-counter .num { font-size: 18px; }

  /* Vacancies */
  .vacancy-card { padding: 12px; }
  .vacancy-title { font-size: 15px; line-height: 1.3; }
  .vacancy-detail { padding: 16px; }

  /* Promo */
  .promo-box { padding: 18px 16px; margin: 16px 0; }

  /* Sections */
  .section { padding-top: 20px; padding-bottom: 20px; }

  /* Admin */
  .admin-main { padding: 16px; }

  /* Tables */
  table { font-size: 12px; }
  th { padding: 8px 6px; font-size: 11px; }
  td { padding: 8px 6px; }
}

/* Footer margin on mobile */
@media (max-width: 768px) {
  .site-footer { margin-top: 24px; }
  .site-footer .container { padding: 0 20px; }
  .footer-brand { padding-top: 10px; }
  .search-box input { padding: 10px 12px; font-size: 14px; }
  table { font-size: 13px; }
  th { padding: 10px; font-size: 11px; }
  td { padding: 10px; }
}

/* ── CATEGORIES GRID ── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.cat-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 18px 12px;
  text-decoration: none; color: var(--gray-900);
  transition: all .2s; text-align: center;
  position: relative;
}
.cat-card:hover { border-color: var(--yellow); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-icon  { font-size: 28px; line-height: 1; }
.cat-label { font-size: 13px; font-weight: 600; line-height: 1.3; }
.cat-count { font-size: 11px; color: var(--gray-400); }

@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } .cat-icon { font-size: 22px; } .cat-label { font-size: 12px; } }
@media (max-width: 480px)  { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── LISTINGS GRID ── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1024px) { .listings-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .listings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .listings-grid { grid-template-columns: 1fr; } }

.listing-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .2s; position: relative;
}
.listing-card:hover { border-color: var(--yellow); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.listing-card.is-top { border-color: #fde68a; background: #fffbeb; }
.listing-card-link { display: block; padding: 14px; text-decoration: none; color: inherit; }
.listing-cat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; border-radius: 20px;
  padding: 3px 8px; margin-bottom: 8px;
}
.listing-title { font-size: 14px; font-weight: 600; color: var(--gray-900); margin-bottom: 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-price { font-size: 16px; font-weight: 800; color: var(--green); margin-bottom: 8px; }
.listing-meta  { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--gray-400); }

/* ── FILTER SIDEBAR ── */
.filter-sidebar { width: 240px; flex-shrink: 0; }
.filter-section { margin-bottom: 20px; }
.filter-section h3 { font-size: 13px; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
@media (max-width: 768px) { .filter-sidebar { width: 100%; } }

/* ── SUBCAT TABS ── */
.subcat-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.subcat-tab  { padding: 5px 12px; border-radius: 20px; font-size: 13px; border: 1px solid var(--gray-200); color: var(--gray-600); text-decoration: none; white-space: nowrap; transition: all .15s; }
.subcat-tab:hover, .subcat-tab.active { background: var(--yellow); border-color: var(--yellow); color: var(--gray-900); font-weight: 600; }

/* ── CAT PICKER (post form) ── */
.cat-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cat-pick-item input { display: none; }
.cat-pick-item span {
  display: flex; align-items: center; gap: 6px; padding: 10px 12px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  cursor: pointer; font-size: 13px; font-weight: 500; transition: all .15s;
  white-space: nowrap; overflow: hidden;
}
.cat-pick-item input:checked + span { border-color: var(--yellow); background: #fffbeb; font-weight: 700; }
.cat-pick-item span:hover { border-color: var(--yellow); }
@media (max-width: 600px) { .cat-picker { grid-template-columns: repeat(2, 1fr); } }
