/* --- Base */
.phiston-hero {
  padding: 48px 20px;
  color: #fff;
}
.phiston-hero-inner { display: flex !important; gap: 30px; flex-direction: row; flex-wrap: nowrap; justify-content: space-between;}
.phiston-hero-left, .phiston-hero-right {
    width: 45%;
  }
.phiston-hero-inner {

  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 0 55px;
}
.phiston-breadcrumb {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  padding: 12px 25px;
  border-radius: 99px;
  font-weight: 300 !important;
}
.phiston-hero-title {
  font-size: 45px;
  margin: 20px 0 0;
  font-weight: 700;
  color: #fff;
}
.phiston-hero-right { display: flex !important; justify-content: center;}
/* Hero image */
.phiston-hero-image {
    
  width: auto;
  height: auto;
  display: block;
  margin: 0 5%;
  box-sizing: border-box; 
}

/* Body section */
.phiston-body {
  padding: 60px 20px 120px;
}
.phiston-openings-title {
  font-size: 40px;
  color: #040503;
  text-align: center;
  margin: 0 0 10px;
  display: block;
}
.phiston-openings-locations {
  color: #9BBF65;
  cursor: pointer;
  font-weight: 700;
}

/* Location dropdown inside title */
.phiston-openings-locations select {
  font-size: inherit;
  font-weight: 700;
  color: #9BBF65;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  appearance: none;
  padding: 0 5px;
}



/* Tabs */
.phiston-tabs {
  font-family: 'Montserrat', sans-serif;
  display: flex;
  gap: 24px;
  margin: 20px 0 30px;
  flex-wrap: nowrap; /* запрещаем перенос */
  overflow-x: auto;  /* горизонтальный скролл */
  -webkit-overflow-scrolling: touch; /* плавный скролл на iOS */
  scrollbar-width: none; /* Firefox */
  justify-content: flex-start; /* по умолчанию слева */
}
.phiston-tabs::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Desktop: центрируем */
@media (min-width: 981px) {
  .phiston-tabs {
    justify-content: center;
    overflow-x: visible; /* убираем скролл на десктопе */
  }
}

.phiston-tab {
  flex: 0 0 auto; /* чтобы табы не сжимались */
  font-size: 14px;
  text-transform: uppercase;
  cursor: pointer;
  padding-bottom: 8px;
  border-bottom: 1px solid transparent;
  font-weight: 300;
  transition: all 0.2s ease;
  white-space: nowrap; /* текст не переносится */
}
.phiston-tab.active {
  font-weight: 500;
  border-bottom-color: #111;
}







/* Grid */
.phiston-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
  justify-items: start;
}
@media (max-width: 980px) {
  .phiston-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .phiston-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.phiston-vacancy-card {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}
.phiston-card-inner {
  background: #fff;
  padding: 50px 25px;
  border-radius: 8px;
  transition: box-shadow 0.18s ease, transform 0.12s ease;
  box-shadow: none;
}
.phiston-vacancy-card:hover .phiston-card-inner {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}
.phiston-job-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 15px;
  color: #000;
}
.phiston-job-meta {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}
.phiston-job-meta img {
  display: inline-block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* Single */
.phiston-single-body {
  padding: 60px 20px 120px;
  max-width: 900px;
  margin: 0 auto;
}
.phiston-job-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  color: #111;
}

/* Utility */
.phiston-no-results {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* Responsive Hero */
@media (max-width: 980px) {
    .phiston-hero-left, .phiston-hero-right {
    width: 100%;
  }
    .phiston-hero-inner { display: flex; gap: 30px; flex-direction: column; }
    .phiston-hero-right { display: flex !important; justify-content: center;}
 
    /* Hero image */
.phiston-hero-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
  
}
  .phiston-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .phiston-hero-left, .phiston-hero-right {
    justify-self: center;
  }
  .phiston-hero-title {
    font-size: 32px;
  }
}
@media (max-width: 640px) {
  .phiston-hero-title {
    font-size: 28px;
  }
  .phiston-openings-title {
    font-size: 28px;
  }
}
