/* ============================================================
   СТИЛИ ГЛАВНОЙ СТРАНИЦЫ (index.php)
   Шрифт Manrope и переменные из style.css
   ============================================================ */

/* === HERO === */
.hero {
  background: linear-gradient(122deg, var(--navy) 0%, rgba(16, 27, 47, 0.72) 100%), url(../img/DSC07738.jpg) center / cover;
  color: var(--white);
  padding: 110px 0 70px;
  transition: padding var(--t-base);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(241, 136, 23, 0.18), transparent 65%);
  pointer-events: none;
}
.hero .container { transition: opacity var(--t-slow); position: relative; z-index: 2; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-title {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 20px;
  max-width: 800px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.hero-title span { color: var(--orange); }
.hero-sub {
  font-size: 17px;
  opacity: 0.95;
  max-width: 520px;
  line-height: 1.55;
}

/* === HERO STATS (крупные оранжевые числа по ТЗ) === */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.hero-stats .stat {
  text-align: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-lg);
  padding: 22px 16px;
  transition: transform var(--t-spring), background var(--t-base);
  backdrop-filter: blur(8px);
}
.hero-stats .stat:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
}
.stat-icon {
  width: 44px; height: 44px;
  margin: 0 auto 10px;
  background: rgba(241, 136, 23, 0.2);
  color: var(--orange);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.stat-num {
  /* Крупные оранжевые числа (по ТЗ) */
 font-size: clamp(25px, 2.8vw, 25px);
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum" 1;
}
.stat-text {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.3;
}

.stat-icon img, .stat-icon svg { width: 22px; height: 22px; display: block; margin: 0 auto; }
.benefit-icon img, .benefit-icon svg { width: 22px; height: 22px; display: block; }

/* === FILTERS === */
.filters-wrap {
  margin-top: -30px;
  position: relative;
  z-index: 5;
  margin-bottom: 36px;
}
.filters {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  border: 1px solid var(--border);
}
/* Градиент справа — подсказка, что кнопки прокручиваются (мобильная версия) */
.filters-wrap::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 36px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.9));
  pointer-events: none;
  z-index: 2;
}
.filters-wrap.scroll-end::after { display: none; }
.filter-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--navy);
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-base);
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }
.filter-btn.active {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(241, 136, 23, 0.35);
}
.filter-btn .icon { font-size: 14px; display: inline-flex; align-items: center; }
.filter-btn .icon img, .filter-btn .icon svg { width: 16px; height: 16px; display: block; }
.filter-count {
  background: var(--orange-light);
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  font-feature-settings: "tnum" 1;
}
.filter-btn.active .filter-count { background: rgba(255,255,255,0.25); color: #fff; }

/* === JOB GRID (плитки одинаковой высоты по ТЗ) === */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  align-items: stretch;
}
.job-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-spring), box-shadow var(--t-base), border-color var(--t-base);
  position: relative;
  min-height: 320px;
  box-shadow: var(--shadow);
}
.job-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.job-card:hover .job-img { transform: scale(1.05); }
.job-img {
  width: 100%;
  /*height: 160px;*/
  object-fit: cover;
  background: #e5e7eb;
  transition: transform 0.5s ease;
}
.job-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.job-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.3; }
.job-title a { color: inherit; text-decoration: none; display: block; }
.job-title a:hover { color: var(--orange); }
.job-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.job-salary { color: var(--orange); font-weight: 700; font-size: 17px; margin-bottom: 12px; font-feature-settings: "tnum" 1; }
.job-desc { font-size: 14px; color: var(--text); margin-bottom: 16px; flex: 1; line-height: 1.5; }
.btn-details {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--navy);
  padding: 11px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), gap var(--t-fast);
  gap: 8px;
}
.btn-details:hover {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
  gap: 12px;
}

/* === BENEFITS === */
.benefits {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 36px 28px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.benefits::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, #ffb454 100%);
}
.benefit { display: flex; align-items: center; gap: 12px; color: var(--white); }
.benefit-icon {
  width: 30px; height: 30px;
  background: var(--orange);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  /*box-shadow: 0 6px 16px rgba(241, 136, 23, 0.4);*/
  transition: transform var(--t-base);
}
.benefit:hover .benefit-icon { transform: scale(1.1) rotate(-4deg); }
.benefit-text { font-size: 14px; font-weight: 500; line-height: 1.3; }

/* === FOOTER CTA (секция «Не нашли подходящую вакансию?») === */
.footer-cta {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 40% 60%;
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--border);
}
.footer-cta .cta-left {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, #fff 0%, var(--orange-light) 100%);
}
.footer-cta .cta-title { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 12px; text-transform: uppercase; line-height: 1.15; letter-spacing: -0.01em; }
.footer-cta .cta-title span { color: var(--orange); }
.footer-cta .cta-text { color: var(--muted); font-size: 14px; margin-bottom: 22px; line-height: 1.5; }
.footer-cta .cta-right { padding: 40px; border-left: 1px solid var(--border); }
.footer-cta .cta-right-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.02em; }
.directions { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-bottom: 24px; }
.direction {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  font-size: 14px; color: var(--text);
  border-bottom: 1px solid var(--border-soft);
  font-weight: 500;
}
.direction:last-child, .direction:nth-last-child(2) { border-bottom: none; }
.direction-badge {
  background: var(--orange-light);
  color: var(--orange);
  font-weight: 700;
  font-size: 14px;
  padding: 3px 12px;
  border-radius: 999px;
  min-width: 32px;
  text-align: center;
  font-feature-settings: "tnum" 1;
}
.btn-all {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--navy);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), gap var(--t-fast);
  gap: 8px;
}
.btn-all:hover {
  border-color: var(--orange);
  color: #fff;
  background: var(--orange);
  gap: 14px;
  box-shadow: 0 6px 18px rgba(241, 136, 23, 0.3);
}



/* === RESPONSIVE (главная) === */
@media (max-width: 1100px) {
  .jobs-grid { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .hero { padding: 88px 0 44px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .jobs-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* Компактнее карточки вакансий на планшетах */
  .job-card { min-height: 0; }
  /*.job-img { height: 130px; }*/
  .job-body { padding: 14px; }
  .job-salary { font-size: 16px; }
  .footer-cta { grid-template-columns: 1fr; }
  .footer-cta .cta-left, .footer-cta .cta-right { padding: 24px 20px; }
  .footer-cta .cta-right { border-left: none; border-top: 1px solid var(--border); }
  .benefits { grid-template-columns: repeat(2, 1fr); padding: 15px 14px; gap: 16px; }
  .benefit-text { font-size: 12px; }
  /* Статистику в hero держим в 2 колонки, чтобы не растягивать hero в высоту */
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat { padding: 16px 12px; }
}
@media (max-width: 640px) {
  .hero { padding: 76px 0 44px; }
  .filters-wrap { margin-top: -20px; margin-bottom: 24px; }
  .directions { gap: 0; }
  /* hero-stats — иконка слева, номер и текст справа */
  .hero-stats { gap: 8px; }
  .hero-stats .stat { padding: 10px 10px; border-radius: 10px; display: flex; align-items: center; gap: 10px; text-align: left; }
  .hero-stats .stat-icon { width: 50px; height: 50px; margin: 0; flex-shrink: 0; font-size: 18px; border-radius: 8px; }
  .hero-stats .stat-icon svg { width: 20px; height: 20px; }
  .hero-stats .stat-body { display: flex; flex-direction: column; min-width: 0; }
  .hero-stats .stat-num { font-size: 15px; margin-bottom: 2px; }
  .hero-stats .stat-text { font-size: 10px; line-height: 1.2; }
  /* Фильтры — шире контейнера, одна строка с прокруткой */
  .filters-wrap { margin-left: -24px; margin-right: -24px; margin-top: -20px; margin-bottom: 24px; }
  .filters { border-radius: 0 0 var(--r-md) var(--r-md); flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-left: 26px; scroll-snap-type: x proximity; }
  .filters::-webkit-scrollbar { display: none; }
  .filters-wrap::after { width: 40px; }
  .filters { scroll-padding-left: 26px; }
}
@media (max-width: 480px) {
  .jobs-grid { grid-template-columns: 1fr; }
  .job-card { min-height: 0; }
  /*.job-img { height: 120px; }*/
  .job-title { font-size: 15px; }
  .job-desc { font-size: 13px; margin-bottom: 12px; }
  .stat-num { font-size: 26px; }
  .benefit-text { font-size: 12px; }
  .directions { grid-template-columns: 1fr; }
  .logo-img { height: 40px; }
}
