.section-chill {
  background: url("/images/bg-grey.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  padding: 56px 0 64px 0;
  max-width: 100dvw;
  overflow-x: hidden;
  .container {
    padding: 0 56px;
  }
  .chill__inner {
    /* Внутренний контейнер для секции chill */
  }

  @media (max-width: 768px) {
    padding: 32px 0 0 0;
  }
}

.chill__swiper {
  margin-bottom: 50px;
  position: relative;
}

.chill__swiper__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.chill__swiper__title {
  font-family: Halvar Breitschrift;
  font-size: 46px;
  font-weight: 700;
  color: #1b1b1b;
  @media (max-width: 1190px) {
    font-size: 42px;
  }
  @media (max-width: 1024px) {
    font-size: 36px;
  }
  @media (max-width: 768px) {
    font-size: 27px;
  }
  @media (max-width: 550px) {
    font-size: 24px;
  }
}

.chill__swiper__navigation {
  display: flex;
  gap: 10px;
  @media (max-width: 768px) {
    display: none;
  }
}

.chill__swiper__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #4a90e2;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chill__swiper__btn:hover {
  background: #357abd;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.chill__swiper__btn:after {
  font-size: 18px;
  font-weight: bold;
}

.chill-swiper-1,
.chill-swiper-2 {
  overflow: visibles;
  position: relative;
}

.chill-swiper-2 {
  @media (max-width: 1024px) {
    display: none !important;
  }
}

.chill-swiper-1 .swiper-slide,
.chill-swiper-2 .swiper-slide {
  height: fit-content;
}

.chill-swiper-1 .chill__swiper__item {
  height: 278px;
}

.chill-swiper-2 .chill__swiper__item {
  height: 546px;
}

.section-chill .swiper-wrapper {
  height: fit-content;
}

.chill__swiper__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  box-shadow: 0 7px 29px 0 rgba(100, 100, 111, 0.2);
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;

  .chill__swiper__item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
  }

  .chill__swiper__item__img:hover {
    transform: scale(1.05);
  }
}

.chill__swiper--second {
  margin-top: 30px;
}

.chill__swiper--second .chill__swiper__header {
  display: none;
}

.offices {
  margin-top: 120px;
  @media (max-width: 1024px) {
    margin-top: 80px;
  }
  @media (max-width: 768px) {
    margin-top: 64px;
  }
}

.offices__title {
  font-family: Halvar Breitschrift;
  font-size: 46px;
  font-weight: 700;
  color: #1b1b1b;
  @media (max-width: 1024px) {
    font-size: 42px;
  }
  @media (max-width: 768px) {
    font-size: 30px;
  }
  @media (max-width: 550px) {
    font-size: 24px;
  }
}

.offices__list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  @media (max-width: 1024px) {
    grid-template-columns: repeat(2, 1fr);
  }
  @media (max-width: 768px) {
    margin-top: 16px;
    grid-template-columns: repeat(2, 1fr);
  }
}

.offices__item {
  position: relative;
  height: 496px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  @media (max-width: 768px) {
    height: 209px;
  }
  .offices__item__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .offices__item__img__title {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    font-family: Halvar Breitschrift;
    font-size: 38px;
    text-align: center;
    color: white;
    font-weight: 700;
    padding: 32px 0;
    @media (max-width: 1024px) {
      font-size: 32px;
      padding: 24px 0;
    }
    @media (max-width: 768px) {
      font-size: 18px;
      padding: 12.7px 0;
    }
  }
  .offices__item__img__descr {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    font-family: Halvar Breitschrift;
    font-size: 23px;
    color: white;
    padding: 8px 0;
    font-weight: 500;
    text-align: center;
    @media (max-width: 1024px) {
      font-size: 16px;
      padding: 8px 0;
    }
    @media (max-width: 768px) {
      font-size: 10px;
      padding: 2px 0;
    }
  }
}

.team-soul {
  margin-top: 120px;
  position: relative;
  @media (max-width: 1024px) {
    margin-top: 90px;
  }
  @media (max-width: 550px) {
    margin-top: 32px;
  }
}

.team-soul .swiper-pagination {
  display: none;
  @media (max-width: 768px) {
    display: block;
  }
}

.team-soul__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  @media (max-width: 1024px) {
    margin-bottom: 30px;
  }
  @media (max-width: 768px) {
    margin-bottom: 20px;
  }
}

.team-soul__title {
  font-family: Halvar Breitschrift;
  font-size: 46px;
  font-weight: 700;
  color: #1b1b1b;
  @media (max-width: 1024px) {
    font-size: 42px;
  }
  @media (max-width: 768px) {
    font-size: 30px;
  }
  @media (max-width: 550px) {
    font-size: 24px;
  }
}

.team-soul__navigation {
  display: flex;
  gap: 10px;
  @media (max-width: 768px) {
    display: none;
  }
}

.team-soul__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #4a90e2;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-soul__btn:hover {
  background: #357abd;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.team-soul__btn:after {
  font-size: 18px;
  font-weight: bold;
}

.team-soul-swiper {
  position: relative;
}

.team-soul-swiper .swiper-slide {
  height: auto;
  width: fit-content;
  @media (max-width: 768px) {
    width: 100%;
    max-width: 500px;
  }
}

.team-soul__item {
  display: flex;
  gap: 40px;
  align-items: center;
  background: #fff;
  height: 400px;
  width: 928px;
  box-sizing: border-box;
  box-shadow: 0 7px 29px 0 rgba(100, 100, 111, 0.2);
  @media (max-width: 1024px) {
    width: 800px;
  }
  @media (max-width: 890px) {
    width: 100%;
    height: 330px;
  }
  @media (max-width: 768px) {
    flex-direction: column-reverse;
    width: 100%;
    height: 400px;
    gap: 16px;
    align-items: start;
    padding: 20px 0 0 0;
  }
}

.team-soul__item__photo {
  flex-shrink: 0;
  width: 354px;
  height: 100%;
  overflow: hidden;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @media (max-width: 890px) {
    width: 290px;
  }

  @media (max-width: 768px) {
    width: 90%;
    height: 196px;
    margin: 15px auto;
  }
}

.team-soul__item__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 40px;
  @media (max-width: 768px) {
    width: 90%;
    margin: 0 auto;
    justify-content: space-between;
    padding-right: 0;
  }
}

.team-soul__item__text {
  font-family: Onest;
  font-size: 20px;
  color: #1b1b1b;
  line-height: 1.6;
  margin-bottom: 48px;
  @media (max-width: 1024px) {
    font-size: 16px;
    margin-bottom: 25px;
  }
  @media (max-width: 890px) {
    font-size: 13px;
  }
  @media (max-width: 768px) {
    font-size: 13px;
    margin-bottom: 8px;
    display: -webkit-box;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  p,
  span {
    @media (max-width: 1024px) {
      font-size: 16px !important;
    }
    @media (max-width: 890px) {
      font-size: 13px !important;
    }
    @media (max-width: 768px) {
      font-size: 13px !important;
    }
  }
}

.team-soul__item__author {
  font-family: Onest;
  font-size: 18px;
  font-weight: 400;
  color: #1b1b1b;
  @media (max-width: 890px) {
    font-size: 14px;
  }
  @media (max-width: 768px) {
    font-size: 12px;
  }
}

.vacancies {
  margin-top: 120px;
  padding-bottom: 100px;
  @media (max-width: 768px) {
    margin-top: 80px;
    padding-bottom: 80px;
  }
  @media (max-width: 550px) {
    margin-top: 60px;
    padding-bottom: 60px;
  }
  @media (max-width: 400px) {
    margin-top: 40px;
    padding-bottom: 40px;
  }
}

.vacancies__title {
  font-family: Halvar Breitschrift;
  font-size: 46px;
  font-weight: 700;
  color: #1b1b1b;
  margin-bottom: 40px;
  @media (max-width: 768px) {
    font-size: 28px;
    margin-bottom: 20px;
  }
  @media (max-width: 550px) {
    font-size: 24px;
    margin-bottom: 20px;
  }
  @media (max-width: 400px) {
    margin-bottom: 12px;
  }
}

.vacancies__filters {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  @media (max-width: 768px) {
    margin-bottom: 16px;
  }
}

.vacancies__filter-btn {
  padding: 12px 24px;
  border-radius: 24px;
  font-family: Onest;
  font-size: 24px;
  color: #1b1b1b;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #1b1b1b;
}

.vacancies__filter-btn:hover:not(.vacancies__filter-btn--active) {
  background: #e9ecef;
  color: #1b1b1b;
}

.vacancies__filter-btn--active {
  background: #4a90e2;
  color: white;
  border: none;
}

.vacancies__filter-btn--active:hover {
  background: #357abd;
}

.vacancies__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 16px;
}

.vacancies__card {
  background: #fff;
  padding: 28px 40px;
  box-sizing: border-box;
  box-shadow: 0 7px 29px 0 rgba(100, 100, 111, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #f0f0f0;
  height: 206px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;

  @media (max-width: 1400px) {
    padding: 24px 32px;
  }
  @media (max-width: 1024px) {
    padding: 20px 24px;
  }
  @media (max-width: 768px) {
    padding: 16px;
    height: 108px;
  }
}

.vacancies__card:hover {
  text-decoration: none;
  color: inherit;
}

.vacancies__card__img {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 30%;
  max-height: 100%;
}

.vacancies__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.vacancies__card__title {
  font-family: Halvar Breitschrift;
  position: relative;
  font-size: 32px;
  font-weight: 500;
  color: #1b1b1b;
  margin-bottom: 12px;
  line-height: 1.3;

  @media (max-width: 1400px) {
    font-size: 28px;
  }
  @media (max-width: 1024px) {
    font-size: 24px;
  }
  @media (max-width: 768px) {
    font-size: 18px;

    display: -webkit-box;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

.vacancies__card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: Onest;
  font-size: 24px;
  font-weight: 400;
  position: relative;
  color: #3e464f;

  @media (max-width: 1400px) {
    font-size: 20px;
  }
  @media (max-width: 1024px) {
    font-size: 18px;
  }
  @media (max-width: 768px) {
    font-size: 16px;
  }
}

.vacancies__cta {
  box-shadow: 0 7px 29px 0 rgba(100, 100, 111, 0.2);
  box-sizing: border-box;
  background: white;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;

  @media (max-width: 768px) {
    padding: 0;
    box-shadow: none;
    background: transparent;
    gap: 8px;
  }
}

.vacancies__cta__text {
  font-family: Onest;
  font-size: 24px;
  color: #1b1b1b;

  @media (max-width: 1400px) {
    font-size: 20px;
  }
  @media (max-width: 1024px) {
    font-size: 18px;
  }
  @media (max-width: 768px) {
    max-width: 263px;
    font-size: 14px;
  }

  @media (max-width: 550px) {
    font-size: 12px;
  }
}

.vacancies__cta__btn {
  background: #008dd2;
  color: white;
  border: none;
  border-radius: 64px;
  padding: 16px 64px;
  font-family: Onest;
  font-size: 24px;
  width: fit-content;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s ease;

  @media (max-width: 1400px) {
    font-size: 20px;
  }
  @media (max-width: 1024px) {
    font-size: 18px;
  }
  @media (max-width: 768px) {
    font-size: 12px;
    padding: 10px 24px;
  }
}

.vacancies__cta__btn:hover {
  background: #357abd;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .vacancies__grid {
    grid-template-columns: 1fr;
  }

  .vacancies__filters {
    gap: 8px;
  }

  .vacancies__filter-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Стили для пустого состояния вакансий */
.vacancies__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 2px dashed rgba(74, 144, 226, 0.3);
}

.vacancies__empty p {
  font-size: 18px;
  color: #666;
  margin: 0;
  font-style: italic;
}

/* Стили для пагинации слайдеров */
.team-soul-swiper .swiper-pagination {
  position: static;
  margin-top: 24px;
  text-align: center;
}

.team-soul-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ccc;
  opacity: 1;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
}

.team-soul-swiper .swiper-pagination-bullet-active {
  background: #008dd2;
}

/* Стили для слайдера фильтров вакансий */
.vacancies__filters {
  /* overflow: hidden; */
}

.vacancies-filters-swiper {
  width: 100%;
  padding: 0 0 20px 0;
}

.vacancies-filters-swiper .swiper-slide {
  width: auto;
  flex-shrink: 0;
}

.vacancies__filter-btn {
  white-space: nowrap;
  padding: 12px 24px;
  border-radius: 24px;
  font-family: Onest;
  font-size: 24px;
  color: #1b1b1b;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #1b1b1b;
  background: transparent;

  @media (max-width: 768px) {
    font-size: 18px;
    padding: 10px 20px;
  }

  @media (max-width: 550px) {
    font-size: 12px;
    padding: 8px 24px;
  }
}

.vacancies__filter-btn:hover:not(.vacancies__filter-btn--active) {
  background: #e9ecef;
  color: #1b1b1b;
}

.vacancies__filter-btn--active {
  background: #4a90e2;
  color: white;
  border: none;
}

.vacancies__filter-btn--active:hover {
  background: #357abd;
}

/* На мобилке делаем слайдер активным */
@media (max-width: 767px) {
  .vacancies-filters-swiper {
    overflow: visible;
  }
}
