/*
 * EuroWork — Main Stylesheet
 * version: 1.0.0
 */

/* ============================================
   CSS VARIABLES & THEMES
============================================ */
:root {
  --clr-primary:       #1d4ed8;
  --clr-primary-light: #3b82f6;
  --clr-primary-dark:  #1e3a8a;
  --clr-accent:        #f59e0b;
  --clr-accent-dark:   #d97706;
  --clr-success:       #10b981;
  --clr-danger:        #ef4444;
  --clr-warning:       #f59e0b;

  /* Light theme */
  --bg:          #f8faff;
  --bg-card:     #ffffff;
  --bg-header:   #ffffff;
  --bg-footer:   #0f172a;
  --bg-muted:    #f1f5f9;
  --text:        #0f172a;
  --text-muted:  #64748b;
  --text-light:  #94a3b8;
  --border:      #e2e8f0;
  --shadow:      0 2px 16px rgba(30,58,138,.07);
  --shadow-lg:   0 8px 40px rgba(30,58,138,.12);
  --hero-bg:     linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  --nav-text:    #0f172a;

  --radius:     14px;
  --radius-sm:   8px;
  --transition: .25s ease;
  --font-head:  'Syne', sans-serif;
  --font-body:  'Mulish', sans-serif;
}

[data-theme="dark"] {
  --bg:        #0a0f1e;
  --bg-card:   #111827;
  --bg-header: #0d1526;
  --bg-footer: #060b14;
  --bg-muted:  #1e293b;
  --text:      #f0f6ff;
  --text-muted:#94a3b8;
  --text-light:#64748b;
  --border:    #1e293b;
  --shadow:    0 2px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
  --hero-bg:   linear-gradient(135deg, #060b14 0%, #0d1526 50%, #1e3a8a 100%);
  --nav-text:  #f0f6ff;
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
textarea { resize: vertical; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   TOAST NOTIFICATIONS
============================================ */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--clr-primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  min-width: 300px;
  max-width: 420px;
  pointer-events: all;
  animation: toastIn .35s cubic-bezier(.175,.885,.32,1.275) forwards;
  position: relative;
  overflow: hidden;
}

.toast.removing {
  animation: toastOut .3s ease forwards;
}

.toast.toast-success { border-left-color: var(--clr-success); }
.toast.toast-error   { border-left-color: var(--clr-danger); }
.toast.toast-warning { border-left-color: var(--clr-warning); }
.toast.toast-info    { border-left-color: var(--clr-primary); }

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.toast-success .toast-icon { color: var(--clr-success); }
.toast-error   .toast-icon { color: var(--clr-danger); }
.toast-warning .toast-icon { color: var(--clr-warning); }
.toast-info    .toast-icon { color: var(--clr-primary); }

.toast-body { flex: 1; min-width: 0; }
.toast-title { font-weight: 700; font-size: .88rem; margin-bottom: 2px; }
.toast-message { font-size: .82rem; color: var(--text-muted); line-height: 1.4; }

.toast-close {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: .9rem;
  padding: 0;
  flex-shrink: 0;
  transition: color var(--transition);
}
.toast-close:hover { color: var(--text); }

.toast-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: currentColor;
  opacity: .3;
  animation: toastProgress linear forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px) scale(.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); max-height: 200px; }
  to   { opacity: 0; transform: translateX(30px); max-height: 0; padding: 0; margin: 0; }
}
@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ============================================
   TOP BAR
============================================ */
.top-bar {
  background: var(--clr-primary-dark);
  color: #cbd5e1;
  font-size: .82rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar-left { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.top-bar-left a { color: #cbd5e1; display: flex; align-items: center; gap: 5px; transition: color var(--transition); }
.top-bar-left a:hover { color: var(--clr-accent); }
.top-bar-right { display: flex; align-items: center; gap: 12px; }

.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #cbd5e1;
  padding: 2px 9px;
  border-radius: 20px;
  cursor: pointer;
  font-size: .78rem;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #000;
  font-weight: 700;
}

.bookmark-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.2);
  color: #cbd5e1;
  padding: 3px 11px;
  border-radius: 20px;
  cursor: pointer;
  font-size: .78rem;
  font-family: var(--font-body);
  display: flex; align-items: center; gap: 5px;
  transition: all var(--transition);
}
.bookmark-btn:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ============================================
   HEADER / NAV
============================================ */
.header {
  background: var(--bg-header);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
[data-theme="dark"] .header { box-shadow: 0 2px 20px rgba(0,0,0,.4); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
  width: 42px; height: 42px;
  background: var(--clr-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800; font-size: 1.3rem;
  color: #fff;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--clr-primary); line-height: 1; }
.logo-sub  { font-size: .68rem; color: var(--text-muted); font-weight: 500; letter-spacing: .5px; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--nav-text);
  font-size: .9rem; font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: rgba(29,78,216,.08);
  color: var(--clr-primary);
}
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: rgba(59,130,246,.15);
  color: var(--clr-primary-light);
}
.nav-link i.fa-chevron-down { font-size: .65rem; transition: transform var(--transition); }
.nav-item:hover > .nav-link i.fa-chevron-down { transform: rotate(180deg); }

/* Dropdown */
/* Dropdown */
.dropdown {
  position: absolute;
  top: 100%;                   /* прямо под элементом */
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;             /* небольшой отступ — здесь ключ */
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: 8px 0;              /* чуть больше вертикального padding */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0s 0.18s;       /* задержка на скрытие */
  pointer-events: none;
  z-index: 10;
}

.nav-item:hover > .dropdown,
.nav-item:focus-within > .dropdown {   /* + поддержка клавиатуры */
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;                /* сразу показываем */
  pointer-events: all;
}

/* Дополнительная "подушка" безопасности (самый надёжный способ) */
.nav-item {
  position: relative;
}

.nav-item::after {                     /* невидимая зона между ссылкой и дропдауном */
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 8px;                         /* высота "моста" */
  z-index: 5;
}
.dropdown a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--text);
  transition: all var(--transition);
}
.dropdown a:hover { background: var(--bg-muted); color: var(--clr-primary); }
.dropdown a i { width: 16px; color: var(--clr-primary-light); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 44px; height: 24px;
  background: var(--border);
  border-radius: 12px;
  border: none; cursor: pointer;
  position: relative;
  transition: background var(--transition);
  flex-shrink: 0;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--clr-primary);
  transition: transform var(--transition), background var(--transition);
}
[data-theme="dark"] .theme-toggle { background: rgba(59,130,246,.3); }
[data-theme="dark"] .theme-toggle::after { transform: translateX(20px); background: var(--clr-accent); }

.login-btn {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .88rem; font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.login-btn:hover { border-color: var(--clr-primary); color: var(--clr-primary); }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO
============================================ */
.hero {
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
  padding: 90px 0 80px;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-shape { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .15; pointer-events: none; }
.hero-shape-1 { width: 400px; height: 400px; background: #60a5fa; top: -100px; right: -100px; }
.hero-shape-2 { width: 300px; height: 300px; background: #f59e0b; bottom: -80px; left: 10%; }

.hero-inner { position: relative; z-index: 1; max-width: 780px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 6px 16px; border-radius: 30px;
  font-size: .82rem; font-weight: 600;
  margin-bottom: 24px; letter-spacing: .5px;
}
.hero-badge i { color: var(--clr-accent); }

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 20px; letter-spacing: -1px;
}
.hero h1 .accent { color: var(--clr-accent); }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.78); margin-bottom: 36px; max-width: 560px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero Search */
.hero-search {
  margin-top: 42px;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 8px 8px 8px 16px;
  display: flex; align-items: center; gap: 10px;
  max-width: 640px;
}
.hero-search input {
  flex: 1;
  background: transparent; border: none; outline: none;
  color: #fff; font-family: var(--font-body); font-size: .95rem; min-width: 0;
}
.hero-search input::placeholder { color: rgba(255,255,255,.5); }
.hero-search .search-divider { width: 1px; height: 24px; background: rgba(255,255,255,.2); }
.hero-search select {
  background: transparent; border: none; outline: none;
  color: rgba(255,255,255,.7); font-family: var(--font-body); font-size: .88rem; cursor: pointer;
}
.hero-search select option { background: #1e3a8a; }
.hero-search .search-btn {
  background: var(--clr-primary-light); color: #fff;
  border: none; padding: 10px 20px; border-radius: 8px;
  cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; gap: 7px;
  transition: all var(--transition); white-space: nowrap;
}
.hero-search .search-btn:hover { background: var(--clr-primary); }

/* Hero Stats */
/*
.hero-stats { display: flex; gap: 36px; margin-top: 36px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--clr-accent); }
.hero-stat .lbl { font-size: .78rem; color: rgba(255,255,255,.6); font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
*/

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(16px, 3vw, 32px);
  margin-top: clamp(28px, 6vw, 40px);
  justify-items: center;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-width: 140px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-stat .num {
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 900;
  color: var(--clr-accent);
  margin-bottom: 4px;
  line-height: 1;
}

.hero-stat .lbl {
  font-size: 0.775rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   BUTTONS
============================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: var(--clr-accent); color: #000;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary:hover { background: var(--clr-accent-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,158,11,.4); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: rgba(255,255,255,.1); color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  border-radius: var(--radius-sm); border: 2px solid rgba(255,255,255,.3);
  cursor: pointer; transition: all var(--transition); backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.6); transform: translateY(-2px); }

.btn-sm {
  flex: 1; padding: 11px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 700; font-size: .9rem;
  cursor: pointer; border: 2px solid var(--border);
  background: transparent; color: var(--text);
  transition: all var(--transition);
}
.btn-sm.primary { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.btn-sm.primary:hover { background: var(--clr-primary-dark); }
.btn-sm:not(.primary):hover { background: var(--bg-muted); }

/* ============================================
   TRUST BADGES
============================================ */
.trust { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 28px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.trust-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(29,78,216,.12), rgba(59,130,246,.08));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-primary); font-size: 1.1rem; flex-shrink: 0;
}
.trust-item h4 { font-size: .88rem; font-weight: 700; margin-bottom: 2px; font-family: var(--font-head); }
.trust-item p  { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }

/* ============================================
   SECTIONS
============================================ */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-muted); }

.section-header { text-align: center; margin-bottom: 48px; }

.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(29,78,216,.08); color: var(--clr-primary);
  font-size: .78rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
[data-theme="dark"] .section-label { background: rgba(59,130,246,.15); color: var(--clr-primary-light); }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -.5px; margin-bottom: 14px;
}
.section-sub { color: var(--text-muted); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* ============================================
   VACANCY CARDS
============================================ */
.vacancy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }

.vacancy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all var(--transition);
  position: relative; overflow: hidden;
}
.vacancy-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-primary-light));
  opacity: 0; transition: opacity var(--transition);
}
.vacancy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(29,78,216,.2); }
.vacancy-card:hover::before { opacity: 1; }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }

.company-logo {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: var(--bg-muted); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800;
  color: var(--clr-primary); overflow: hidden;
}
.company-logo img { width: 100%; height: 100%; object-fit: contain; }

.favorite-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 1.1rem;
  padding: 4px; transition: all var(--transition); line-height: 1;
}
.favorite-btn:hover, .favorite-btn.active { color: #ef4444; }
.favorite-btn.active { animation: heartPop .3s ease; }

@keyframes heartPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.card-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
}
.badge-new { background: rgba(16,185,129,.12); color: var(--clr-success); }
.badge-hot { background: rgba(239,68,68,.1);   color: var(--clr-danger); }
.badge-top { background: rgba(245,158,11,.12); color: var(--clr-accent-dark); }

.card-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.card-company { font-size: .84rem; color: var(--text-muted); margin-bottom: 14px; }

.card-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.card-meta-item { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--text-muted); }
.card-meta-item i { color: var(--clr-primary-light); font-size: .8rem; }

/*
.card-salary { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--clr-success); margin-bottom: 16px; }
  */

.card-salary {
  font-family: var(--font-body);          /* Mulish вместо Syne */
  font-size: 1.18rem;                     /* чуть больше, т.к. Mulish выглядит легче */
  font-weight: 900;                       /* 900 вместо 800 — жирнее и современнее */
  color: var(--clr-success);
  margin-bottom: 16px;

  letter-spacing: -0.5px;                 /* плотнее для цифр */
  line-height: 1.1;
}


















.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.card-date { font-size: .76rem; color: var(--text-light); }

.apply-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  background: var(--clr-primary); color: #fff;
  font-family: var(--font-body); font-weight: 700; font-size: .82rem;
  border-radius: var(--radius-sm); border: none; cursor: pointer;
  transition: all var(--transition);
}
.apply-btn:hover { background: var(--clr-primary-dark); transform: translateY(-1px); }

/* Country filter pills */
.country-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.country-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 30px; font-size: .82rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: all var(--transition);
}
.country-pill:hover, .country-pill.active {
  background: var(--clr-primary); border-color: var(--clr-primary); color: #fff;
}
.country-pill .count { background: rgba(255,255,255,.2); padding: 1px 7px; border-radius: 10px; font-size: .72rem; }
.country-pill:not(.active) .count { background: var(--bg-muted); color: var(--text-muted); }

/* View all */
.view-all { text-align: center; margin-top: 40px; }
.view-all a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  border: 2px solid var(--clr-primary); color: var(--clr-primary);
  border-radius: var(--radius-sm); font-weight: 700; transition: all var(--transition);
}
.view-all a:hover { background: var(--clr-primary); color: #fff; }

/* ============================================
   FEATURES / HOW IT WORKS
============================================ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  text-align: center; transition: all var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-light));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem; margin: 0 auto 18px;
}
.feature-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p  { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================
   WHY US
============================================ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.why-content h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 800; margin-bottom: 20px; line-height: 1.25; }
.why-list { display: flex; flex-direction: column; gap: 18px; }
.why-item {
  display: flex; gap: 14px; padding: 18px;
  background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border);
  transition: all var(--transition);
}
.why-item:hover { border-color: var(--clr-primary-light); box-shadow: var(--shadow); }
.why-item-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.why-item:nth-child(1) .why-item-icon { background: rgba(16,185,129,.1);  color: var(--clr-success); }
.why-item:nth-child(2) .why-item-icon { background: rgba(245,158,11,.1);  color: var(--clr-accent); }
.why-item:nth-child(3) .why-item-icon { background: rgba(29,78,216,.1);   color: var(--clr-primary); }
.why-item:nth-child(4) .why-item-icon { background: rgba(239,68,68,.1);   color: var(--clr-danger); }
.why-item h4 { font-family: var(--font-head); font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.why-item p  { font-size: .83rem; color: var(--text-muted); line-height: 1.55; }

.why-visual {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  border-radius: 20px; padding: 40px; color: #fff;
  position: relative; overflow: hidden;
}
.why-visual::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
.why-visual-content { position: relative; }

   /*
.why-stat { margin-bottom: 24px; }
.why-stat .number { font-family: var(--font-head); font-size: 2.8rem; font-weight: 800; color: var(--clr-accent); }
.why-stat .label  { font-size: .85rem; color: rgba(255,255,255,.7); }
   */

.why-stat {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-stat .number {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 7vw, 3.2rem);
  font-weight: 900;
  color: var(--clr-accent);
  padding: 8px 20px;
  background: rgba(245, 158, 11, 0.07);    /* лёгкий акцентный фон */
  border-radius: 16px;
  display: inline-block;
  line-height: 1;
  letter-spacing: -0.03em;
}

.why-stat .label {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 1px;
  text-transform: uppercase;
}




















.countries-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.country-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.15);
  color: #fff; padding: 5px 12px; border-radius: 20px;
  font-size: .8rem; font-weight: 600;
}

/* ============================================
   EMPLOYERS
============================================ */
.employers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.employer-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 18px;
  text-align: center; transition: all var(--transition); cursor: pointer;
  display: block;
}
.employer-card:hover { border-color: var(--clr-primary-light); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.employer-logo {
  width: 64px; height: 64px;
  background: var(--bg-muted); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 800;
  color: var(--clr-primary); margin: 0 auto 12px;
}
.employer-name { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.employer-vacancies { font-size: .78rem; color: var(--clr-primary); font-weight: 600; }
.employer-country { font-size: .76rem; color: var(--text-muted); }

/* ============================================
   FAQ
============================================ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; cursor: pointer; font-weight: 700; font-size: .93rem; gap: 12px;
}
.faq-question i { color: var(--clr-primary); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 22px 18px; color: var(--text-muted); font-size: .9rem; line-height: 1.65; }

/* ============================================
   CTA
============================================ */
.cta {
  background: linear-gradient(135deg, var(--clr-primary-dark), var(--clr-primary));
  color: #fff; padding: 72px 0; text-align: center;
}
.cta h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,.75); font-size: 1rem; margin-bottom: 36px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-actions .btn-primary, .cta-actions .btn-outline { padding: 15px 32px; font-size: 1rem; }

/* ============================================
   FOOTER
============================================ */
.footer { background: var(--bg-footer); color: #94a3b8; padding: 60px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-sub  { color: #64748b; }
.footer-desc { font-size: .87rem; line-height: 1.7; margin: 16px 0 22px; max-width: 300px; }
.footer-contact-item { display: flex; align-items: center; gap: 9px; font-size: .87rem; margin-bottom: 10px; }
.footer-contact-item i { color: var(--clr-primary-light); width: 16px; flex-shrink: 0; }
.footer-contact-item a { color: #94a3b8; transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--clr-accent); }

.social-links { display: flex; gap: 10px; margin-top: 18px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; transition: all var(--transition);
}
.social-link:hover { background: var(--clr-primary); color: #fff; transform: translateY(-2px); }

.footer-col h5 { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .95rem; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: .87rem; color: #94a3b8; transition: color var(--transition); display: flex; align-items: center; gap: 5px; }
.footer-links a:hover { color: #fff; }
.footer-links a::before { content: '›'; color: var(--clr-primary-light); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-size: .82rem; flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: #64748b; transition: color var(--transition); }
.footer-bottom a:hover { color: #fff; }

/* ============================================
   FLOATING BUTTONS
============================================ */
.float-menu { position: fixed; bottom: 28px; right: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 900; }
.float-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-size: 1.1rem; color: #fff;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  position: relative; text-decoration: none;
}
.float-btn::before {
  content: attr(data-tip);
  position: absolute; right: 58px;
  background: rgba(0,0,0,.8); color: #fff;
  padding: 4px 10px; border-radius: 6px;
  font-size: .75rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.float-btn:hover::before { opacity: 1; }
.float-btn:hover { transform: scale(1.1); }
.float-phone  { background: var(--clr-primary); }
.float-tg     { background: #229ed9; }
.float-viber  { background: #7360f2; }
.float-fb     { background: #1877f2; }

/* ============================================
   BREADCRUMBS
============================================ */
.breadcrumbs { padding: 12px 0; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.breadcrumb-list { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-muted); flex-wrap: wrap; }
.breadcrumb-list a { color: var(--clr-primary); }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--text-light); font-size: .65rem; }
.breadcrumb-list .current { color: var(--text); font-weight: 600; }

/* ============================================
   PAGINATION
============================================ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  min-width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); padding: 0 8px;
  text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.page-btn.dots { cursor: default; border-color: transparent; background: transparent; }
.page-btn.dots:hover { background: transparent; color: var(--text); }

/* ============================================
   MODALS
============================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px;
  max-width: 420px; width: 100%;
  box-shadow: var(--shadow-lg);
  animation: slideUp .3s ease;
}
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal h3 { font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.modal p  { color: var(--text-muted); font-size: .9rem; margin-bottom: 24px; }

/* Language modal */
.lang-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.lang-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition);
}
.lang-option:hover, .lang-option.selected { border-color: var(--clr-primary); background: rgba(29,78,216,.04); }
.lang-option .flag { font-size: 1.6rem; }
.lang-option .lang-name { font-weight: 700; }
.lang-option .lang-native { font-size: .82rem; color: var(--text-muted); }
.lang-option .check { margin-left: auto; color: var(--clr-primary); display: none; }
.lang-option.selected .check { display: block; }
.modal-actions { display: flex; gap: 10px; }

/* Apply modal */
.apply-modal { max-width: 460px; }
.apply-modal h3 { margin-bottom: 4px; }
.apply-job { color: var(--clr-primary); font-size: .88rem; font-weight: 600; margin-bottom: 20px; display: block; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: .92rem;
  transition: border-color var(--transition); outline: none;
}
.form-control:focus { border-color: var(--clr-primary); }
.form-control.error { border-color: var(--clr-danger); }

/* ============================================
   MOBILE NAV DRAWER
============================================ */
.mobile-nav {
  position: fixed; top: 0; right: -100%;
  width: min(320px, 100%); height: 100%;
  background: var(--bg-card); z-index: 1100;
  padding: 24px; box-shadow: -10px 0 40px rgba(0,0,0,.2);
  transition: right .35s cubic-bezier(.4,0,.2,1); overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.mobile-nav-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text); padding: 4px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 10px; transition: all var(--transition);
}
.mobile-nav-links a:hover { background: var(--bg-muted); color: var(--clr-primary); }
.mobile-nav-links a i { width: 18px; color: var(--clr-primary-light); }

.overlay-bg { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1050; display: none; }
.overlay-bg.show { display: block; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { display: none; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-right .login-btn { display: none; }
  .hamburger { display: flex; }
  .top-bar-left .phone-link { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); }
  .trust-item:nth-child(odd)  { border-right: 1px solid var(--border); }
  .trust-item:last-child,
  .trust-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 60px 0 50px; }
  .hero-stats { gap: 20px; }
  .section { padding: 48px 0; }
}

@media (max-width: 480px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; }
  .hero h1 { font-size: 1.9rem; }
  #toast-container { right: 10px; left: 10px; }
  .toast { min-width: auto; }
}
