:root {
  --maincolor: #4B6DFE;
  --maindark: #272168;
  --window-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: sans-serif;
  background: #fff; /* фон под canvas, можно поменять на градиент или темный цвет */
  overflow-x: hidden;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* --- Overlay для десктопа --- */
#desktop-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100% - var(--header-height));
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 2500; /* ниже шапки (3000), выше остальных элементов */
}

#desktop-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-top: var(--header-height);

  
  background-image: url("../fonvac.png");
  background-size: cover;       /* растягиваем по ширине/высоте */
  background-position: center;  /* центрируем */
  background-repeat: no-repeat; /* не повторяем */
}

.hero .btn-primary{
  padding: 25px 50px;
  font-size: 2.4rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--window-width);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  text-align: left;
}

.hero-main-title {
  font-family: "Montserrat";
  font-size: clamp(2.8rem, 7vw, 3.5rem);
  font-weight: bold;
  line-height: 1.5;
  word-break: auto-phrase;
  hyphens: auto;
  max-width: 45%;
  margin: 0px 0px 100px;
  color: white;
}

/* --- Glass block with blur effect --- */
.hero-glass-block {
  position: relative;
  max-width: 600px;
  padding: 0;
  border-radius: 16px;
  z-index: 1;
}

.hero-glass-block p {
  font-family: "Montserrat";
  font-size: 1.5rem;
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 30px;
  color: white;
}

/* Кнопка с линиями */
.numbers-button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  gap: 50px;
}

.numbers-button-wrapper .btn-primary {
  font-size: 2.5rem;
  white-space: nowrap;
  text-align: center;
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Анимация при наведении */
.numbers-button-wrapper .btn-primary:hover {
  animation: tiltScale 0.6s ease-in-out;
}

/* Ключевые кадры: наклон влево → вправо → центр + масштаб */
@keyframes tiltScale {
  0% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-3deg) scale(1.05);
  }
  50% {
    transform: rotate(3deg) scale(1.05);
  }
  75% {
    transform: rotate(-2deg) scale(1.03);
  }
  100% {
    transform: rotate(0deg) scale(1);
  }
}

.numbers-button-wrapper .line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--maincolor);
}

/* vacancies section */
.vacancies-section {
  background-color: white;
  padding: 60px 20px;
  color: white;
}

.vacancies-container {
  max-width: var(--window-width);       /* ограничение ширины */
  margin: 0 auto;          /* центрирование по горизонтали */
  width: 100%;             /* чтобы занимать всю доступную ширину до 1200px */
  box-sizing: border-box;  /* чтобы padding не выходил за пределы */  
}

.numbers-text {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.5rem, 0.9vw + 0.8rem, 3.5rem);
  line-height: 1.6;
  color: black;
  font-weight: 800;
  margin: 30px 0;
  max-width: var(--window-width);
}

.vacancies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* две равные колонки */
  gap: 40px;
}

.vacancy-block {
  box-sizing: border-box;
  width: 100%; /* гарантирует равную ширину */
}


.vacancy-title {
  font-family: "Montserrat";
  font-size: 2rem;
  color: var(--maincolor);
  margin-bottom: 20px;
}

.vacancy-list {
  list-style-type: disc;
  padding-left: 20px;
  font-family: "Montserrat";
  font-size: 1.2rem;
  color: #333;
  line-height: 1.6;
}

/* bid section */
.bid-section {
  background-color: var(--maindark);
  padding: 50px 0px;
}

.bid-container{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Вторая кнопка */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-family: "Montserrat";
  font-size: 1.4rem;
  transition: text-decoration 0.3s ease;
}

.btn-secondary:hover span {
  text-decoration: underline;
}

.btn-secondary-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* --- Adaptive styles --- */
@media (max-width: 1024px) {
  .hero {
    height: 50vh;
    background-position: -300px center;
  }

  .hero-content {
    justify-content: flex-start; /* убираем центрирование по вертикали */
    height: auto; /* больше не растягиваем на всю высоту */
    padding: 10px;
  }

  .hero-main-title {
    font-size: clamp(1.2rem, 8vw, 2.5rem); /* больше на мобилке, но уменьшается для маленьких экранов */
    margin-bottom: 35px; /* больше отступа до блока */
    font-weight: 600;
    max-width: 100%;
  }

  .hero-glass-block p {
    font-size: 1.2rem;
    margin: 0;
  }

  .btn-primary {
    text-align: center;
  }

  .numbers-text{
    margin: 0;
  }

  .numbers-button-wrapper {
    gap: 10px;
    margin: 20px 0;
  }

  .numbers-button-wrapper .btn-primary {
    font-size: 1.2rem;
  }

  .hero-main-title {
    font-weight: 600;
    margin-bottom: 20px;
  }

  .vacancies-section {
    padding: 10px;
  }

  .vacancies-grid {
    grid-template-columns: 1fr; /* одна колонка */
    gap: 10px;
  }

  .vacancy-title {
    font-size: 1.6rem;
  }

  .vacancy-list {
    font-size: 1rem;
  }

  .btn-secondary {
    font-size: 1.2rem;
  }

  .btn-secondary-icon {
    width: 20px;
    height: 20px;
  }

  .bid-section{
    padding: 0;
  }

  .bid-container {
    gap: 0;
  }

}
