* {
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #f8f8f8;
}

:root {
  --font-family: "Roboto", sans-serif;
}

.iti {
  width: 100%;
}
.iti--separate-dial-code .iti__selected-flag {
  background-color: transparent;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
}

.header {
  padding: 36px 25px;
  background: #f8f8f8;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  width: 195px;
  height: 88px;
}
.navigation {
  display: flex;
  width: 985px;
}
.navigation__ul {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;

  list-style: none;
  padding: 0;
}

.navigation__ul li a {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 130%;
  text-transform: capitalize;
  color: #000;
  text-decoration: none;
}

.navigation__button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #65b763;
  border-radius: 30px;
  background-color: transparent;
  padding: 10px;
  width: 242px;
  height: 61px;
  transition: all 1000ms;
  cursor: pointer;
}
.navigation__button:hover {
  background-color: #65b763;
}

.navigation__mobile {
  display: none;
}
.nav-menu {
  display: none;
}
.nav-menu ul {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
  padding: 176px 0px 25px 0px;
}

.nav-menu a {
  display: flex;
  padding: 25px;
  color: #000;
  text-decoration: none;
}

/* --- БУРГЕР-ИКОНКА --- */

.burger-icon {
  display: none; /* Скрываем по умолчанию на больших экранах */
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
  outline: none;
}

.line {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  background-color: #000;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Анимация иконки в крестик (Состояние .open) */
.burger-icon.open .line-top {
  transform: translateY(8px) rotate(45deg);
}

.burger-icon.open .line-middle {
  opacity: 0;
}

.burger-icon.open .line-bottom {
  transform: translateY(-8px) rotate(-45deg);
}

/* Блокировка прокрутки тела страницы, когда модальное окно открыто */
body.modal-open {
  overflow: hidden;
}

/* --- Стили для Модального Оверлея --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-color: rgba(0, 0, 0, 0.7);  */
  background: url("../image/bgform.png") center center / cover no-repeat;
  z-index: 2000;

  /* Скрываем по умолчанию */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;

  /* Центрирование контента */
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-overlay.modal-active {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background-color: white;
  padding: 70px 130px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  position: relative;
  /* Анимация появления */
  transform: scale(0.9);
  transition: transform 0.3s ease-out;
  box-shadow: 0 1px 16px 0 rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.modal-content-header {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 25px;
  line-height: 130%;
  text-transform: uppercase;
  color: #1f1f1f;
}

.modal-active .modal-content {
  transform: scale(1);
}

/* Кнопка закрытия модального окна */
.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  font-size: 28px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #333;
}

.form__select_label {
  display: block;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 130%;
  color: #222;
  margin-bottom: 10px;
}

.hero {
  padding: 150px 25px;
  background: #fff;
}

.hero .container {
  display: flex;
  justify-content: space-between;
  gap: 25px;
}
.hero__dscr {
  max-width: 50%;
}
.hero__title {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 45px;
  line-height: 122%;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 25px;
}

.hero__text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: #353540;
  margin-bottom: 50px;
}
.hero__button {
  background: #65b763;
  border: none;
  border-radius: 30px;
  padding: 10px;
  width: 385px;
  height: 61px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 27px;
  line-height: 130%;
  text-transform: capitalize;
  color: #fff;
  outline: none;
  cursor: pointer;
}
.hero__button:hover {
  opacity: 0.7;
}
.hero__image {
  max-width: 50%;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about {
  padding: 100px 0;
}
.about__title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 46px;
  line-height: 122%;
  text-transform: uppercase;
  text-align: center;
  color: #222;
  margin-bottom: 40px;
}
.about__items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.about__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid #65b763;
  border-radius: 20px;
  max-width: 24%;
  padding: 25px;
}
.about__item_title {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 27px;
  line-height: 122%;
  text-transform: uppercase;
  text-align: center;
  color: #222;
  margin: 0;
  margin-bottom: 5px;
}
.about__item_subtitle {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 22px;
  line-height: 150%;
  text-align: center;
  color: #222;
  margin: 0;
  margin-bottom: 15px;
}
.about__item_image img {
  width: 100%;
  object-fit: contain;
}

.work {
  background: #2a332c;
  border-radius: 80px;
  padding: 100px 10px;
}
.work__title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 46px;
  line-height: 122%;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  margin: 0;
  margin-bottom: 50px;
}
.work__slider_slide {
  min-height: 425px;
  border-radius: 20px;
  background: #f8f8f8;
  padding: 50px;
}
.work__slider_slide_header {
  display: flex;
  align-items: center;
}
.work__slider_slide_header span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 22px;
  line-height: 150%;
  color: #f8f8f8;
  border-radius: 7px;
  padding: 10px;
  width: 44px;
  height: 44px;
  background: #65b763;
  margin-right: 20px;
}
.work__slider_slide_header h3 {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 24px;
  line-height: 150%;
  text-transform: uppercase;
  color: #000;
}
.work__slider_slide p {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 164%;
  color: #222;
}

.benefits {
  padding: 100px 15px;
}
.benefits__title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 46px;
  line-height: 122%;
  text-transform: uppercase;
  text-align: center;
  color: #222;
  margin: 0;
  margin-bottom: 50px;
}
.benefits__items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.benefits__item {
  padding: 45px 25px;
  border: 1px solid #65b763;
  border-radius: 20px;
  width: 33%;
  min-height: 350px;
  background: #fff;
}
.benefits__item_header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}
.benefits__item_header_icon {
  margin-right: 20px;
}
.benefits__item_header_title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 26px;
  line-height: 150%;
  color: #222;
  margin: 0;
  margin-right: 20px;
}
.benefits__item_text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 164%;
  color: #222;
}
.stages {
  padding: 100px 15px;
  background: url("../image/bgjob.png") center center / cover no-repeat;
  position: relative;
}
.stages__line {
  position: absolute;
  top: 57%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.stages__title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 46px;
  line-height: 122%;
  text-transform: uppercase;
  text-align: center;
  color: #222;
}
.stages__items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.stages__item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f8f8;
  border: 1px solid #65b763;
  border-radius: 20px;
  width: 48%;
  padding: 20px 59px 20px 27px;
}
.stages__item_number {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 220px;
  line-height: 120%;
  text-transform: uppercase;
  background: linear-gradient(178deg, #0a6c07 0%, rgba(19, 210, 14, 0) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 20px;
}
.reviews {
  padding: 100px 15px;
}
.reviews__title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 44px;
  line-height: 122%;
  text-transform: uppercase;
  text-align: center;
  color: #222;
}
.reviews__slider {
}
.reviews__slider_slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  box-shadow: 0 0 9px 0 rgba(176, 176, 176, 0.22);
  background: #fff;
  border-radius: 20px;
  min-height: 490px;
}
.reviews__slider_slide_header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.reviews__slider_slide_header_img {
  margin-right: 25px;
}
.reviews__slider_slide_header_img img {
  width: 100%;
  object-fit: contain;
}
.reviews__slider_slide_header_info {
}
.reviews__slider_slide_header_name {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 27px;
  line-height: 150%;
  color: #222;
  margin-bottom: 15px;
}
.reviews__slider_slide_header_from {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 130%;
  text-transform: capitalize;
  color: #353540;
}
.reviews__slider_slide_text {
  border: 1px solid #65b763;
  border-radius: 20px;
  padding: 25px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 164%;
  color: #000;
  min-height: 250px;
}

.questions {
  padding: 100px 15px;
}
.questions .container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}
.questions__dscr {
  border: 1px solid #65b763;
  border-radius: 20px;
  padding: 45px;
  max-width: 48%;
}
.questions__dscr_header {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 46px;
  line-height: 122%;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 20px;
}
.questions__dscr_text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 27px;
  line-height: 150%;
  color: #353540;
  margin-bottom: 60px;
}
.questions_image {
  max-width: 48%;
}
.questions_image img {
  width: 100%;
  object-fit: contain;
}

.footer {
  border-radius: 80px 80px 0 0;
  background: #2a332c;
  padding: 70px 15px;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 80px;
}
.footer__wrap_1 {
}
.footer__wrap_2 {
}
.footer__wrap_3 {
}
.footer__logo {
  margin-bottom: 12px;
}
.footer__c {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 164%;
  color: #fff;
}
.footer__pol {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 164%;
  color: #fff;
}
.footer__cook {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 164%;
  color: #fff;
  margin-bottom: 25px;
}
.footer__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__socials img {
  cursor: pointer;
}
.footer__text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 164%;
  color: #fff;
}

@media screen and (max-width: 1023px) {
  .header {
    padding: 25px;
  }
  .modal-content {
    padding: 25px;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .navigation {
    display: none;
  }
  .burger-icon {
    display: block; /* Показываем иконку на мобильных */
  }

  .nav-menu {
    /* Делаем меню полноэкранным и скрываем его */
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Позволяем прокручивать, если много пунктов */
    background-color: #f8f8f8; /* Темный фон для мобильного меню */
    transform: translateX(100%); /* Сдвигаем за пределы экрана справа */
    transition: transform 0.3s ease-in-out;
  }

  .nav-menu.open {
    transform: translateX(0); /* Сдвигаем обратно для показа */
  }

  .nav-menu ul {
    display: flex;
  }

  .hero {
    padding: 25px;
  }
  .hero__button {
    width: 100%;
  }
  .hero__title {
    font-size: 30px;
  }
  .hero .container {
    flex-direction: column;
  }
  .hero__dscr {
    max-width: 100%;
  }
  .hero__image {
    max-width: 100%;
  }
  .about__items {
    flex-direction: column;
  }
  .about__item {
    max-width: 100%;
    min-height: 390px;
  }
  .benefits__items {
    flex-direction: column;
  }
  .benefits__item {
    width: 100%;
  }
  .benefits__title {
    font-size: 30px;
  }
  .stages__item {
    width: 100%;
  }
  .stages__item_number {
    font-size: 150px;
  }
  .stages__item-3 {
    order: 1;
  }
  .stages__item-4 {
    order: 2;
  }
  .stages__line {
    display: none;
  }
  .questions__dscr_header {
    font-size: 35px;
  }
  .questions .hero__button {
    font-size: 16px;
  }

  .questions__dscr {
    max-width: 100%;
  }
  .questions_image {
    max-width: 100%;
  }
  .footer .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .footer__cook {
    text-align: center;
  }
  .footer__socials {
    align-items: center;
    justify-content: center;
  }
}
/* Главный контейнер слайдера */
.swiper {
  width: 100%;
  /* Фиксированная высота для работы Grid. 
               На десктопе (>=1024px) это будет высота для 2-х рядов. */
  /* height: 100%; */
  padding-bottom: 3rem; /* Отступ для пагинации/кнопок */
}
.swiper2 {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Слайд: стили для центрирования контента */
.swiper-slide {
  transition: all 0.3s ease;
}

/* Стили для Grid: Адаптация высоты слайда для 2-х рядов */
/* Используется calc() для учета spaceBetween (30px в JS) */
@media (min-width: 1024px) {
  /* 100% высоты контейнера минус spaceBetween между двумя рядами (30px), деленное на 2 */
  .swiper-slide {
    height: calc((100% - 30px) / 2) !important;
  }
}

/* Стили для мобильных: Полная высота слайда в один ряд */
@media (max-width: 1023.98px) {
  .swiper-slide {
    height: 100% !important;
  }
  .work {
    padding-right: 15px;
    padding-left: 15px;
  }
}

/* Кастомизация пагинации */
.swiper-pagination-bullet {
  opacity: 1;
  background: #d9d9d9;
}
.swiper-pagination-bullet-active {
  opacity: 1;
  background: #65b763 !important;
}
.swiper-pagination2 {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  .modal-content {
    overflow-y: scroll;
  }
}

@media (max-width: 321px) {
  .work__slider_slide_header h3 {
    font-size: 18px;
  }
  .benefits__item_header_title {
    font-size: 16px;
  }
  .questions__dscr_header {
    font-size: 25px;
  }
  .stages__item_number {
    display: none;
  }
}
