@font-face {
  font-family: "Comfortaa-Bold";
  src: url("../assets/fonts/Comfortaa-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Comfortaa-Medium";
  src: url("../assets/fonts/Comfortaa-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat-Medium";
  src: url("../assets/fonts/Montserrat-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat-Regular";
  src: url("../assets/fonts/Montserrat-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat-Bold";
  src: url("../assets/fonts/Montserrat-Bold.woff") format("woff2"),
    url("../assets/fonts/Montserrat-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

html {
  box-sizing: border-box;
  overflow-x: hidden;
}

*,
*::after,
*::before {
  box-sizing: inherit;
}

body {
  font-family: "Comfortaa-Bold", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  color: #121d2d;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1180px;
  padding-left: 10px;
  padding-right: 10px;
  margin: 0 auto;
}

.section__title {
  font-family: "Comfortaa-Bold", sans-serif;
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  text-align: left;
}

.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 6px;
  background: #39b857;
  border-radius: 10px;
}

/* header ============================================================== */
.header__main {
  position: relative;
  /* background: url(../assets/images/bg-gif.gif) no-repeat center center; */
  /* background-size: cover; */
  overflow: hidden;
  height: 750px;
  /* background-attachment: fixed; */
  /* background-position: 50% 50%; */
}

.header__main video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  object-fit: cover;
}

.header__main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(18, 29, 45, 0.8); /* затемнение */
  z-index: 1;
}

.header > .container {
  position: relative;
  z-index: 1;
}
.header__dark > .container {
  position: relative;
  z-index: 1;
}

.header {
  height: 750px;
  margin-bottom: 3em;
}

.header__inner {
  margin-top: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.logo__img {
  max-width: 8rem;
}

body.modal-open {
  overflow: hidden;
  position: relative;
  height: 100%;
}

nav.menu {
  display: flex;
  gap: 1.55em;
}
.sociallinks__wrapper {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.menu__list {
  display: flex;
  gap: 1.55em;
}

.menu__list-link {
  font-family: "Montserrat-Medium", sans-serif;
  font-weight: 500;
  color: #fff;
}

.menu__list-contacts {
  font-family: "Montserrat-Medium";
  font-weight: 500;
  font-size: 18px;
  border-radius: 8px;
  box-shadow: 0 0 0 1.5px #39b857;
  padding: 12px 36px;
  color: #fff;
}
.menu__list-contacts-dark {
  font-size: 18px;
  border-radius: 8px;
  box-shadow: 0 0 0 1.5px #39b857;
  padding: 12px 36px;
  color: #000000;
}
.menu__list-contacts2 {
  font-size: 18px;
  border-radius: 8px;
  box-shadow: 0 0 0 1.5px #39b857;
  padding: 12px 24px;
  text-align: center;
  background-color: #fff;
  color: #39b857;
  border: 1px solid #ffffff;
  border-radius: 30px;
  margin-bottom: 30px;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header__info {
  text-align: center;
  color: #fff;
  margin-top: 6em;
  position: relative;
  z-index: 0;
}

.header__info-title {
  font-weight: 700;
  color: #39b857;
  font-size: 2.7em;
}

.header__info-text {
  font-family: "Montserrat-Medium", sans-serif;
  font-weight: 500;
  font-size: 1em;
  padding: 2em 0;
  line-height: 1.4em;
}

.btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0em;
  gap: 1.6em;
}

.btn {
  border: none;
  color: #fff;
  background-color: #39b857;
  padding: 10px 30px;
  border-radius: 10px;
  font-family: "Montserrat-Medium", sans-serif;
  font-size: 1em;
  min-width: 15em;
  min-height: 3.5em;
  text-align: center;
  cursor: pointer;
  line-height: 1.4;
}

.menu__btn {
  display: none;
  cursor: pointer;
}
/* header end =========================================== */

/* Услуги======================================================== */

.services__title {
  margin-top: 60px;
  margin-bottom: 60px;
}

.services__elements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 150px;
}

.services__el {
  height: 171px;
  width: 376px;
  border-radius: 10px;
  background-color: #f5f5f5;
  position: relative;
  overflow: hidden;
  padding: 30px 25px;
}

.services__el-content-title {
  font-family: "Comfortaa-Bold", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  padding-bottom: 0.2em;
}

.services__el-content-btn {
  width: 171px;
  height: 46px;
  color: #fff;
  border-radius: 10px;
  border: none;
  background-color: #39b857;
  font-family: "Montserrat-Medium", sans-serif;
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 0.2em;
  cursor: pointer;
}

.services__el-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
}
/* Услуги конец======================================================== */

/* ДАРКАН ДАЛА в цифрах======================================================= */
.info {
  padding: 90px 0;
}

.info__elements {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 20px;
}
.info__el {
  background-color: #39b857;
  border-radius: 10px;
  padding: 5px 20px;
  position: relative;
  text-align: left;
  overflow: hidden;
  margin-top: 15px;
  height: 400px;
}
.info__el-title {
  position: relative;
  font-family: "Comfortaa-Bold", sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  z-index: 1;
  margin-top: 20px;
}
.info__el-text {
  position: relative;
  font-family: "Montserrat-Regular", sans-serif;
  font-size: 18px;
  line-height: 25px;
  font-weight: 400;
  z-index: 1;
  /* margin-top: 10px; */
  color: #fff;
  margin: 15px 5px 10rem 0;
  /* margin-bottom: 10rem; */
}

.info__el-img {
  position: absolute;
  left: 7px;
  bottom: 0;
  z-index: 0;
  max-width: 16.3rem;
}
.text-dark {
  background-color: #121d2d;
}
.text-green {
  color: #39b857;
}

/* ДАРКАН ДАЛА в цифрах end======================================================= */

/* History============================================================================ */
.history {
  position: relative;
  overflow: hidden;
}

.history__container {
  position: relative;
  margin-top: 36px;
}

.history__logo {
  position: absolute;
  right: -180px;
  top: -18px;
  z-index: 1;
}
.history__logo2 {
  display: none;
}
.history__logo-img {
  width: 250px;
}

.history__text {
  font-family: "Montserrat-Regular", sans-serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 40px;
  margin-top: 22px;
  position: relative;
  z-index: -2;
}

/* History end==================================================================================================== */
/* videosection======================================================================== */
.relative {
  position: relative;
  width: 100vw;
}
.frame {
  margin: 0;
  height: 450px;
  margin-bottom: 120px;
}
.i__frame {
  object-fit: contain;
  object-position: center;
  margin-top: 50px;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  /* background-color: #000; */
  max-height: 450px;
}

/* Почему стоит выбрать ДАРКАН ДАЛА? =========================================================*/
.info2 {
  padding: 60px 0;
}

.info2__elements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.info2__el {
  background-color: #f5f5f5;
  border-radius: 10px;
  position: relative;
  text-align: left;
  overflow: hidden;
}
.info2__el-img {
  position: relative;
  max-height: 140px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  display: block;
  width: 100%;
  height: 100%;
}
.info2__el-title {
  position: relative;
  font-family: "Comfortaa-Bold", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 31px;
  color: #39b857;
  z-index: 1;
  padding: 21px 20px 10px;
}
.info2__el-text {
  position: relative;
  font-family: "Montserrat-Regular", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
  z-index: 1;
  padding: 0 22px 45px 20px;
}
/* ==================================================================================== */

/* О нас ========================================================================= */
.about {
  margin: 40px 0;
}
.about__elements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  position: relative;
  /* overflow: hidden; */
}
.about__el {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 40px 30px 40px 40px;
  position: relative;
  text-align: left;
  overflow: visible;
  /* margin-top: 60px; */
  height: 250px;
  margin: 60px 0 -20px;
}
.about__el-img {
  position: absolute;
  top: -16%;
  left: 11%;
  width: 5rem;
  height: auto;
  max-height: none;
  z-index: 0;
}
.about__el-title {
  position: relative;
  font-family: "Comfortaa-Bold", sans-serif;
  font-size: 32px;
  line-height: 32px;
  font-weight: 700;
  color: #39b857;
  z-index: 1;
  margin-top: 20px;
}
.about__el-text {
  position: relative;
  font-family: "Montserrat-Regular", sans-serif;
  font-size: 18px;
  line-height: 25px;
  font-weight: 400;
  z-index: 1;
  margin-top: 10px;
}
/* =========================================================================================== */

/*certificates  ======================================================================================================*/

.cert {
  overflow-x: hidden;
  margin: 8rem 0 9rem;
  position: relative;
  overflow: hidden;
}
.slider9 {
  width: 100%;
  max-width: 416px;
  height: auto;
  aspect-ratio: 426/590;
  border: 15px solid transparent;
  margin: 2rem auto;
  position: relative;
}

.slider-line9 {
  display: flex;
  width: 130%; /* 3 картинки (может стать 400% при добавлении буфера) */
  height: 100%;
}

.slider-line9 img {
  flex-shrink: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease, filter 0.3s ease; /* Плавное изменение прозрачности */
}

/* Стили для кнопок навигации */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #e8e8e8;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
  transition: all 0.3s ease;
}

.slider-nav-btn:hover {
  background: #bdbcbc;
  transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn svg {
  width: 32px;
  height: 32px;
  fill: #39b857;
}

.left-btn {
  left: -155px;
}

.right-btn {
  right: -155px;
}

@media (max-width: 992px) {
  .slider9 {
    max-width: 380px;
  }

  .slider-nav-btn {
    width: 36px;
    height: 36px;
  }

  .slider-nav-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
  .slider9 {
    max-width: 320px;
    border-width: 10px;
  }

  .slider-line9 img {
    filter: none !important;
  }

  .slider-nav-btn {
    width: 32px;
    height: 32px;
  }

  .slider-nav-btn svg {
    width: 18px;
    height: 18px;
  }

  .left-btn {
    left: -55px;
  }

  .right-btn {
    right: -55px;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .slider9 {
    max-width: 280px;
    border-width: 8px;
  }

  .slider-nav-btn {
    width: 28px;
    height: 28px;
  }
  .left-btn {
    left: -25px;
  }

  .right-btn {
    right: -25px;
  }
}

.slider__indicators9 {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: -20px;
}

.indicator9 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #a3a2a2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator9.active {
  background: #000000;
}

.indicator9:hover:not(.active) {
  background: #000000;
}

.indicator9.active {
  pointer-events: none; /* Делаем не кликабельным */
}
.cert__title {
  margin-bottom: 25px;
}
/* ============================================================================ */

/* свяжитесь с нами ===============================================================*/

.connection__container {
  text-align: left;
  margin-bottom: 125px;
  position: relative;
}

.history__logo3 {
  position: absolute;
  right: -178px;
  top: 75px;
  z-index: 1;
  /* width: 0%; */
}

.connection__title {
  margin-bottom: 40px;
}

.connection__text {
  margin-bottom: 40px;
  line-height: 1;
}

.connection__text p {
  font-family: "Montserrat-Regular", sans-serif;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 30px;
}

.connection__elements {
  display: flex;
  gap: 80px;
  align-items: stretch;
  position: relative;
  min-height: 400px;
}

.connection__form {
  background-color: #121d2d;
  padding: 35px 40px;
  border-radius: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1 1 50%;
  position: relative;
  max-height: 440px;
}
.modal-form-container {
  position: relative;
  padding-bottom: 120px; /* место под кнопку */
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* margin: 25px 0; */
}
.connection__elements .contact__form {
  gap: 25px;
  /* margin: 25px 0; */
}

.contact__form input[type="text"],
.contact__form input[type="tel"] {
  font-family: "Comfortaa-Medium", sans-serif;
  font-size: 16px;
  line-height: 21px;
  font-weight: 500;
  padding: 21px 20px;
  border: none;
  border-radius: 10px;
  background-color: white;
  color: #333;
  outline: none;
  transition: box-shadow 0.3s ease;
  height: 60px;
}
.connection__form .contact__form input[type="text"] {
  padding: 25px 20px;
  font-family: "Comfortaa-Medium", sans-serif;
  font-size: 16px;
  line-height: 21px;
  font-weight: 500;
  height: 70px;
}

.contact__form input[type="text"]:focus,
.contact__form input[type="tel"]:focus {
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.phone-input {
  position: relative;
  margin: 15px 0;
}

.phone-wrapper {
  display: flex;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  height: 60px;
}
.modal-wrapper .phone-wrapper {
  height: 60px;
}
.h70 {
  height: 70px;
}
.country-selector {
  display: flex;
  align-items: center;
  padding: 15px 0 15px 15px;
  /* border-right: 1px solid #000000; */
  cursor: pointer;
  /* min-width: 120px; */
  position: relative;
}

.country-selector .flag {
  width: 24px;
  height: 16px;
  /* margin-right: 8px; */
  border-radius: 2px;
}

.country-selector .code {
  font-family: "Comfortaa-Medium", sans-serif;
  font-size: 16px;
  line-height: 21px;
  font-weight: 500;
  margin-right: 8px;
  color: #333;
}

.country-selector button {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 20px;
}

.phone-wrapper input[type="tel"] {
  flex: 1;
  border-radius: 0;
  border: none;
  padding: 15px 0;
  font-family: "Comfortaa-Medium", sans-serif;
  font-size: 16px;
  line-height: 21px;
  font-weight: 500;
  margin: auto;
}

.country-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.country-dropdown.show {
  display: block;
}

.country-dropdown li {
  list-style: none;
  padding: 12px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.country-dropdown li:hover {
  background-color: #f8f9fa;
}

.country-dropdown li .flag {
  width: 24px;
  height: 16px;
  margin-right: 10px;
  border-radius: 2px;
}

.country-dropdown li span {
  margin-left: auto;
  color: #666;
  font-weight: 500;
}

.connection__privacy {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.checkbox__span {
  /* display: none; */
  color: white;
  position: absolute;
  font-size: 12px;
  left: 5px;
  top: 5px;
  pointer-events: none;
}

.connection__privacy input[type="checkbox"] {
  border: 2px solid #abaaaa;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  margin-top: 4px;
  width: 24px;
  height: 20px;
  background: transparent;
  cursor: pointer;
  /* accent-color: #121d2d; */
}
.connection__privacy input[type="checkbox"]:checked {
  border: 2px solid #fff;
}
#privacyCheckbox + .checkbox__span {
  opacity: 0;
  transition: opacity 0.2s;
}
#privacyCheckbox:checked + .checkbox__span {
  opacity: 1;
}

.connection__privacy label {
  font-family: "Montserrat-Regular", sans-serif;
  color: white;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  font-weight: 300;
}

.contact__form button[type="submit"] {
  position: absolute;
  bottom: 45px;
  width: 100%;
  font-family: "Montserrat-Medium";
  font-weight: 500;
  background-color: #39b857;
  color: white;
  border: none;
  padding: 17px 30px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.connection__form .contact__form button[type="submit"] {
  bottom: 30px;
  padding: 23px 30px;
  font-size: 20px;
}

.contact__form button[type="submit"]:hover {
  background-color: #39b857;
  transform: translateY(-2px);
}

.contact__form button[type="submit"]:active {
  transform: translateY(0);
}

.connection__block {
  flex: 1 1 50%;
  position: relative;
}

.connection__block-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  object-position: center;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 2100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: #121d2d;
  padding: 40px 45px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideIn 0.3s ease;
}

.modal-content p {
  font-family: "Montserrat-Medium";
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  margin-bottom: 25px;
  line-height: 1.5;
}

.modal__closeBtn {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #45a049;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.submit__btn {
  position: relative;
  padding-bottom: 120px;
}
/* Стили для модального окна с формой */
#formModal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

#formModal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content.form-modal {
  background-color: #121d2d;
  color: #000000;
  padding: 40px 45px;
  max-width: 560px;
  max-height: 477px;
  position: relative;
  animation: slideIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.modal__connection-title {
  font-size: 34px;
  margin-bottom: 13px;
  color: #39b857;
}

.modal__connection-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: #ffffff;
}

.modal-success {
  display: none;
  text-align: center;
  padding: 30px 0;
}

.modal-success .success-content {
  background-color: #39b857;
  color: white;
  padding: 30px;
  border-radius: 10px;
}

.modal-success p {
  font-size: 18px;
  margin: 0;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .modal-content.form-modal {
    width: 80%;
    max-width: none;
  }
}
/* --------------------------------------------------- */
.error-messages {
  background-color: rgba(255, 107, 107, 0.1);
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.error-message {
  margin: 5px 0;
  font-size: 14px;
}
/* footer ========================================== */
.footer {
  background-color: #121d2d;
  color: #ffffff;
  padding: 6rem 0;
}

.footer__elements {
  display: grid;
  /* grid-template-columns: repeat(3, 1fr); */
  grid-template-columns: 34.5% 32% 32.5%;
  gap: 24px;
  margin-bottom: 2rem;
  margin: auto;
}

.footer__el-title {
  font-family: "Comfortaa-Bold", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 38px;
  margin-bottom: 10px;
}

.footer__el-text {
  font-family: "Comfortaa-Medium", sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 34px;
  margin-bottom: 10px;
}

.footer__el-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 12px;
  font-family: "Montserrat-Regular", sans-serif;
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 400;
}

.footer__el-info-text {
  line-height: 28px;
}

.footer__el-info img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.contacts__map iframe {
  max-width: 1450px;
  height: 500px;
  border: 0;
  display: block;
  /* border-radius: 10px; */
  margin-top: 20px;
}
.mb-20 {
  margin-bottom: 24px;
}
.f__br {
  display: none;
}
/* footer end ========================================== */

/* nauka======================================== */
.header__dark.header__nauka .menu__list-link {
  color: #000;
}

.geo__portal__container {
  margin: 75px 0;
}
.geo__portal__elements {
  margin-bottom: 35px;
}
.geo__portal__texts {
  line-height: 31px;
  overflow-x: hidden;
}
.geo__portal__texts p {
  font-family: "Montserrat-Regular", sans-serif;
  font-size: 20px;
  font-weight: 400;
  text-align: left;
}
.geo__portal__texts b {
  font-family: "Montserrat-Bold", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #000;
}
.geo__portal__texts ul {
  font-family: "Montserrat-Regular", sans-serif;
  font-size: 20px;
  font-weight: 400;
  padding-left: 20px;
}
.geo__portal__texts a {
  color: #ff8562;
  text-decoration: none;
}

.portal {
  margin-bottom: 80px;
}

.portal__el {
  background-color: #121d2d;
  border-radius: 10px;
  padding: 40px;
  position: relative;
  text-align: left;
  overflow: visible;
  /* margin-top: -27px; */
  margin-bottom: 140px;
  color: #fff;
  height: 215px;
  width: 360px;
  font-size: 24px;
  line-height: 28px;
}
.portal__el-img {
  position: absolute;
  top: -16%;
  left: 11%;
  width: 80px;
  height: auto;
  max-height: none;
  z-index: 0;
}
.minfert__el-title {
  padding: 20px;
  padding-bottom: 40px;
}
.minfert__info .info2__el {
  max-height: 320px;
}
.minfert__info .info2__el-img {
  max-height: 160px;
}

.bg-dark {
  background-color: #121d2d;
  color: #fff;
  max-height: 215px;
}
.services__el-img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
}
.agrolab__el-title {
  color: #fff;
  font-size: 24px;
  padding: 0;
  margin-top: 20px;
}

.geo__portal ul {
  list-style-type: disc;
}

.geo__portal ul li ul {
  list-style-type: circle;
}

.menu__footer {
  display: none;
}

/* Стили для открытого меню */
.header__inner.open .header__menu-list {
  height: calc(100vh);
}

.menu__footer {
  display: flex;
  position: fixed;
  right: 0;
  bottom: 0;
  width: 260px;
  background-color: #39b857;
  flex-direction: column;
  padding: 20px;
  transition: transform 0.5s, visibility 0.3s;
  transform: translateX(100%);
}

.header__inner.open .menu__footer {
  transform: translateX(0);
  visibility: visible;
}
.nauka__title {
  line-height: 55px;
}
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
  .logo__img {
    max-width: 7rem;
  }
  .menu__list {
    gap: 0;
  }
  .menu {
    position: relative;
  }
  .menu__list-contacts {
    display: none;
    font-size: 14px;
  }
  .menu__list-contacts-dark {
    display: none; /* По умолчанию скрыто */
    font-size: 14px;
  }

  .header {
    height: 650px;
  }
  .btns {
    gap: 1em;
  }

  .header__inner.open .menu-mobile-buttons {
    display: none;
  }
  .header__menu-list {
    position: fixed;
    right: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background-color: #39b857;
    visibility: hidden;
    color: #fff;
    flex-direction: column;
    padding: 45px 35px 20px 25px;
    transition: transform 0.5s, visibility 0.3s;
    transform: translateX(100%);
  }
  .menu__list-link-tr {
    transition: none !important;
  }
  /* Overlay для мобильного меню */
  #menuOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998; /* Ниже меню (z-index: 9999), но выше всего остального */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* Чтобы клики проходили сквозь оверлей, когда он скрыт */
  }

  #menuOverlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Теперь клики будут работать */
  }
  .header__inner.open {
    position: relative;
    z-index: 9999; /* Меню должно быть поверх оверлея */
  }

  .menu__list-link {
    font-size: 16px;
    display: block;
    padding: 10px;
    /* gap: 1em; */
  }

  .menu__list-contacts2 {
    font-size: 14px;
  }
  .menu__btn {
    display: flex;
    border: none;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    order: 1;
    z-index: 100000;
    position: relative;
  }
  .menu__btn-img {
    width: 45px;
  }
  .header__inner.open .menu__btn span {
    position: fixed;
    top: 25px;
    right: 15px;
    width: 24px;
    height: 2px;
    background-color: #fff;
    z-index: 100001;
  }
  .header__inner.open .menu__btn span:nth-child(3) {
    transform: rotate(45deg);
  }
  .header__inner.open .menu__btn span:nth-child(2) {
    transform: rotate(-45deg);
  }
  .header__inner.open .header__menu-list {
    transform: translateX(0);
    visibility: visible;
  }
  .header__inner.open .menu__btn-img {
    display: none;
  }
  .header__inner {
    margin: 3em 6em;
  }
  .header__inner__nauka {
    margin: 3em 6em -2em;
  }
  .header__info-text {
    padding: 1em 0;
    font-size: 0.9em;
  }
  .header__info-title {
    font-size: 2.3em;
  }
  .btn {
    font-size: 0.9em;
  }
  .section__title {
    font-size: 42px;
  }
  .footer__elements {
    gap: 10px;
  }
  .footer__el-title {
    font-size: 30px;
  }

  .footer__el-text {
    font-size: 20px;
  }

  .footer__el-info {
    font-size: 18px;
  }
  .services__el {
    height: 158px;
    width: 296px;
  }
  .services__el-content-title {
    font-size: 26px;
  }
  .services__el-content-btn {
    font-size: 18px;
    width: 158px;
    height: 39px;
  }
  .info__elements {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 40px;
  }
  .info__el-text {
    margin-bottom: 2rem;
  }
  .info__el-img {
    position: absolute;
    left: 210px;
    bottom: 0;
    z-index: 0;
    max-width: 15rem;
  }
  .info__el-title {
    font-size: 30px;
  }
  .info__el-text {
    font-size: 16px;
  }
  .info2__elements {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 40px;
  }
  .info2__el-img {
    max-height: 120px;
    width: 100%;
    object-fit: cover;
  }
  .info2__el-title {
    font-size: 24px;
  }
  .info2__el-text {
    font-size: 16px;
  }
  .history__logo {
    right: -100px;
    top: 18px;
  }
  .history__logo-img {
    width: 200px;
  }
  .history__text {
    font-size: 18px;
    line-height: 25px;
  }
  .about__el-title {
    font-size: 30px;
  }
  .about__el-text {
    font-size: 16px;
  }
  .frame {
    max-height: 400px;
  }
  .contact__form button[type="submit"] {
    padding: 20px 30px;
  }
  .connection__text br {
    display: none;
  }
  .connection__title {
    margin-bottom: 20px;
  }
  .connection__elements {
    gap: 40px;
    min-height: 380px;
  }
  .connection__form {
    padding: 20px 40px;
  }
  .contact__form {
    gap: 15px;
  }
  .history__logo3 {
    right: -121px;
    top: 33px;
  }
  .connection__text p {
    font-size: 18px;
  }

  .portal__el {
    padding: 40px;
    text-align: left;
    /* margin-top: -20px; */
    margin-bottom: 140px;
    color: #fff;
    height: 200px;
    width: 290px;
  }
  .portal__el-img {
    position: absolute;
    top: -20%;
    left: 13%;
    width: 5rem;
    height: auto;
    max-height: none;
    z-index: 0;
  }
}

@media (max-width: 1100px) {
  .header__inner {
    margin: 3em 2em;
  }
  .header__inner__nauka {
    margin: 2em 3em -2em;
  }
  .container {
    max-width: 980px;
  }
  .services__elements {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
  /* .about__elements {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  } */
  .services__el-content-title {
    line-height: 31px;
  }
}

@media (max-width: 1000px) {
  .header__inner {
    margin: 2.5em 1em;
  }
  .header__inner__nauka {
    margin: 2.5em 1em -1em;
  }
  .container {
    max-width: 880px;
  }
  .container__nauka {
    max-width: 940px;
  }
  .services__el {
    max-width: 275px;
  }
  .info__el-img {
    left: 170px;
  }

  .info__el {
    max-height: 160px;
  }
  .info__el-title {
    margin-top: 15px;
  }
  .info__el-text {
    margin-top: 7px;
  }
}

@media (max-width: 960px) {
  .container {
    max-width: 640px;
  }
  .header__info {
    text-align: left;
  }
  .btns {
    align-items: start;
  }
  .header__inner {
    margin: 2.5em 8em;
  }
  .header__inner__nauka {
    margin: 1.8em 8em -1.8em;
  }
  .header__info-title {
    font-size: 1.8em;
  }
  .header__info-text {
    padding: 1em 0;
    font-size: 0.8em;
  }
  .header {
    height: 600px;
  }
  .btn {
    font-size: 0.8em;
  }
  .footer__elements {
    grid-template-columns: repeat(2, 1fr);
  }
  .section__title {
    font-size: 36px;
  }
  .footer__el-title {
    font-size: 26px;
  }

  .footer__el-text {
    font-size: 18px;
  }

  .footer__el-info {
    font-size: 16px;
  }
  .services__elements {
    margin-bottom: 30px;
  }
  .info__elements {
    grid-template-columns: repeat(1, minmax(260px, 1fr));
    gap: 30px;
  }
  .info__el-text {
    max-width: 28rem;
  }
  .info__el-img {
    left: 377px;
  }
  .info__el-title {
    font-size: 28px;
  }
  .services__elements {
    grid-template-columns: repeat(1, minmax(260px, 1fr));
  }
  .services__el {
    max-width: 800px;
    width: 100%;
  }
  .services__el-content {
    padding-left: 20px;
    padding-top: 20px;
  }
  .services__el-content-title {
    font-size: 24px;
  }
  .history__logo {
    display: none;
  }
  .history__logo2 {
    display: block;
    position: absolute;
    right: -90px;
    top: -90px;
    z-index: -1;
  }
  .history__logo2-img {
    width: 200px;
  }

  .history__text {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .frame {
    margin: 0;
    margin-bottom: 100px;
  }
  .info2__elements {
    grid-template-columns: repeat(1, minmax(260px, 1fr));
  }
  .about__elements {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
  .about__el-title {
    font-size: 28px;
  }
  .connection__elements {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    margin: 0 auto;
  }
  .connection__text br {
    display: block;
  }

  .connection__form {
    max-width: 100%;
    margin-bottom: 0;
  }

  .connection__block {
    display: none;
  }

  .country-selector {
    min-width: 100px;
    padding: 12px;
  }
  .history__logo3 {
    right: -83px;
    top: 78px;
    z-index: -1;
  }
  .connection__container {
    margin-bottom: 120px;
  }
  .connection__form {
    height: -webkit-fill-available;
  }
  .connection__text p {
    font-size: 16px;
  }
  .contact__form button[type="submit"] {
    font-size: 18px;
  }
  .connection__privacy label {
    font-size: 13px;
  }
  .frame video {
    margin-top: 10px;
  }
  .nauka__title {
    line-height: 43px;
  }
  .portal__el {
    margin-bottom: 120px;
  }
}

@media (max-width: 900px) {
  .container {
    max-width: 640px;
  }
  .header__inner {
    margin: 2.5em 6em;
  }
  .header__inner__nauka {
    margin: 1.8em 5em -1.8em;
  }
  .services__el {
    max-width: 800px;
    width: 100%;
  }
  .services__elements {
    grid-template-columns: repeat(1, minmax(260px, 1fr));
  }
  .history__logo2 {
    right: -95px;
    top: -95px;
  }
  .info__el-img {
    left: 420px;
  }
  .footer__elements {
    grid-template-columns: repeat(1, 1fr);
  }
  .frame {
    max-height: 320px;
  }
  .contacts__map iframe {
    height: 400px;
  }
  .img-box {
    height: 190px;
  }
  .portal__el-img {
    width: 4rem;
  }
}

@media (max-width: 820px) {
  .header__inner {
    margin: 3em 4em;
  }
  .header__inner__nauka {
    margin: 1.8em 3em -1.8em;
  }
  .container {
    max-width: 640px;
  }
  .info__el-img {
    left: 380px;
  }
  .history__logo2 {
    right: -95px;
  }
}

@media (max-width: 720px) {
  .container {
    max-width: 620px;
  }
  .header__inner {
    margin: 3em 2em;
  }
  .history__logo3 {
    top: 60px;
  }
  .connection__container {
    margin-bottom: 80px;
  }
  .info__el-img {
    left: 360px;
  }
  .history__logo2 {
    overflow: hidden;
    right: -85px;
  }
  .header__inner__nauka {
    margin: 1.5em 1em -2em;
  }
  .portal__el {
    margin-bottom: 80px;
  }
  .nauka__title {
    line-height: 36px;
  }
}

@media (max-width: 640px) {
  .container {
    margin: 0 30px;
    max-width: 520px;
  }
  .header__info-title {
    font-size: 1.7em;
  }
  .header__info-text {
    font-size: 0.7em;
  }
  .logo__img {
    max-width: 6rem;
  }
  .header {
    margin-bottom: 0em;
  }
  .header__info {
    margin-top: 5em;
    padding-left: 1.5em;
  }
  .header__inner {
    margin: 1.5em 1em;
  }
  .header__inner__nauka {
    margin: 1.5em 1em -1.8em;
  }
  .btns {
    gap: 1em;
  }
  .footer {
    padding: 3em 1em;
  }
  .footer__elements {
    grid-template-columns: repeat(1, 1fr);
  }
  .section__title {
    font-size: 32px;
  }
  .footer__el-title {
    font-size: 24px;
  }

  .footer__el-text {
    font-size: 16px;
  }

  .footer__el-info {
    font-size: 14px;
  }
  .services__el {
    padding: 0;
    margin: 10px;
  }
  .info {
    padding: 30px 0;
  }
  .services__el-content-title {
    font-size: 22px;
  }
  .services__el-content-btn {
    font-size: 16px;
    width: 220px;
    height: 54px;
  }
  .info__el-title {
    font-size: 26px;
  }
  .info2__el-title {
    font-size: 22px;
  }
  .about__el-title {
    font-size: 26px;
  }
  .info__el-img {
    left: 260px;
  }
  .about__elements {
    grid-template-columns: repeat(1, minmax(260px, 1fr));
  }
  .contacts__map iframe {
    height: 350px;
  }
  .img-box {
    display: none;
  }
  .connection__container {
    margin-bottom: 20px;
  }
  .connection__elements {
    min-height: 350px;
  }
  .connection {
    margin-bottom: 50px;
  }
}

@media (max-width: 520px) {
  .container {
    margin: 0 15px;
  }
  .info__el-img {
    left: 40px;
  }
  .info__el-title {
    font-size: 24px;
  }
  .info__el-text {
    font-size: 14px;
  }
  .header__inner {
    margin-top: 20px;
    margin-bottom: -2em;
  }
  .header__info {
    margin-top: 50px;
  }
  .info__el-img {
    left: 195px;
  }
  .history__text {
    padding: 20px;
    margin-top: 2px;
  }
  .portal__el {
    width: 100%;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .connection {
    padding: 40px 0 0;
  }

  .connection__title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .connection__title::after {
    width: 150px;
  }

  .connection__text {
    margin-bottom: 40px;
  }

  .connection__text p {
    font-size: 16px;
  }

  .contact__form input[type="text"],
  .contact__form input[type="tel"] {
    padding: 12px 15px;
    font-size: 14px;
  }

  .phone-wrapper input[type="tel"] {
    padding: 12px 15px;
  }

  .contact__form button[type="submit"] {
    padding: 12px 25px;
    font-size: 16px;
  }

  .connection__privacy label {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .connection__title {
    font-size: 28px;
  }

  .connection__form {
    padding: 25px 15px;
  }
  .info__el-img {
    left: 90px;
  }
  .modal-content {
    padding: 25px 20px;
    margin: 20px;
  }

  .modal-content p {
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  .nauka__title::after {
    width: 1200px;
  }

  .connection__block-img {
    width: 560px;
    height: 440px;
  }

  .f__br {
    display: block;
  }
  .info2__el {
    height: 495px;
  }
}

.img-box {
  border-radius: 10px;
  margin: 50px auto;
  overflow: hidden;
}

.img-box img {
  position: relative;
  object-fit: cover;
  width: 100%;
  height: 215px;
  border-radius: 10px;
}
