.main-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999999999999;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0);
}

.header-logo {
  display: none;
}

.page-nav {
  display: none;
}

.menu-btn {
  display: block;
  margin-left: auto;

  svg {
    fill: none;
    stroke: white;
  }
}

.list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.link {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  color: #fff;
  padding: 4px 0;
  position: relative;
  display: block;
  transition: 0.3s;

  &::after {
    position: absolute;
    content: "";
    top: 100%;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s;
  }

  &:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.header-subscribe {
  display: none;
}

@media screen and (min-width: 1436px) {
  .main-section {
    padding: 12px 0;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header-logo {
    display: block;
    font-family: var(--third-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 163%;
    color: #fff;
    text-shadow: 1px 1px 0 0 #99cf63;
  }

  .header-subscribe {
    display: block;
    width: fit-content;
    border: 1px solid #fff;
    border-radius: 70px;
    padding: 15px 32px;

    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 125%;
    color: #fff;

    transition:
      color 0.3s ease,
      box-shadow 0.3s ease,
      background-color 0.3s ease;
  }

  .header-subscribe:hover,
  .header-subscribe:focus {
    background-color: #fff;
    color: #000;
    box-shadow: 5px 5px 10px #878c91;
  }

  .page-nav {
    display: block;
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: absolute;
  overflow: hidden;
  top: 0;
  width: 100%;
  padding: 30px;
  padding-top: 120px;
  z-index: 88888888;
  background: #010205;
  transform: translateY(-100%);
  transition: transform 1s ease;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 999999;
  bottom: 0;
  padding: 20px;
  left: 0;
  width: 100%;
  background: #010205;
  transition: transform 0.4s ease;
}

.popup-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  color: #fff;
  text-align: center;
  margin-bottom: 32px;

  span {
    font-weight: 400;
  }

  a:hover {
    text-decoration: underline;
  }
}

.popup-btn {
  font-weight: 600;
  font-size: 14px;
  line-height: 143%;
  color: #fff;

  border: 2px solid #fff;
  border-radius: 6px;
  padding: 12px 36px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.popup-btn:hover {
  background-color: #fff;
  color: #010205;
}

.popup-wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
}

@media screen and (min-width: 1436px) {
  .page-popup {
    padding: 30px 48px;
  }

  .popup-text {
    font-size: 16px;
    margin: 0;
    text-align: start;
  }

  .popup-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
  }

  .popup-wrap {
    gap: 38px;
    flex-shrink: 0;
  }
  .popup-btn {
    padding: 16px 48px;
  }
}

/* *************  PAGE 1  ******* */

/* hero  */

.hero {
  padding-top: 100px;
  padding-bottom: 413px;
  background-image: url(../images/hero.jpg);
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.people {
  width: 665px;
  max-width: max-content;
  position: absolute;
  bottom: 0;
  right: 0;
}

.hero-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 42px;
  line-height: 110%;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 42px;
}

.hero-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 180%;
  color: #fff;
  margin-bottom: 42px;
}

.page-link {
  display: flex;
  width: fit-content;
  background: #fff;
  align-items: center;
  justify-content: center;
  border-radius: 70px;
  padding: 16px 32px;
  gap: 42px;
  transition: box-shadow 0.4s ease;

  span {
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 111%;
    color: #010205;
  }

  img {
    transition: transform 0.4s ease;
  }
}

.page-link:hover {
  box-shadow: 5px 5px 10px #878c91;
  img {
    transform: rotate(45deg);
  }
}

@media screen and (min-width: 1436px) {
  .hero {
    padding-top: 260px;
    padding-bottom: 305px;
  }

  .hero-title {
    font-size: 72px;
    margin-bottom: 42px;
  }

  .hero-text {
    font-size: 16px;
    width: 635px;
    margin-bottom: 42px;
  }

  .page-link {
    margin: 0;
    border-radius: 70px;
    padding: 16px 32px;

    span {
      font-size: 18px;
    }
  }

  .people {
    width: auto;
  }
}

/* easy */

.easy-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 180%;
  text-align: center;
  color: #878c91;
  margin-bottom: 32px;
}

.easy-img {
  width: 100%;
  height: 382px;
  border-radius: 30px;
  background-image: url(../images/about.jpg);
  background-position: center;
  background-size: cover;
}

@media screen and (min-width: 1436px) {
  .easy-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 62px;

    .title {
      margin: 0;
      text-align: start;
    }
  }

  .easy-text {
    width: 620px;
    text-align: start;
    font-size: 16px;
    margin: 0;
  }
}

/* section-cover */

.section-cover {
  background-image: url(../images/hero.jpg);
  background-position: center;
  background-size: cover;
}

/* why */

.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;

  li {
    border: 1px solid #fff;
    border-radius: 50px;
    padding: 13px 32px;
    cursor: pointer;
    transition: bacground-color 0.3s ease;
  }

  p {
    font-family: var(--font3);
    font-weight: 700;
    font-size: 20px;
    line-height: 140%;
    letter-spacing: -0.02em;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
    transition: color 0.3s ease;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #fff;
    transition: color 0.3s ease;
  }

  li:hover {
    background-color: #99cf63;

    p,
    span {
      color: #010205;
    }
  }
}

@media screen and (min-width: 1436px) {
  .why-list {
    width: 888px;
    margin: 0 auto;
    justify-content: center;
    flex-direction: row;
  }

  li {
    width: calc((100% - 48px) / 3);
  }
}

/* strategy-list */

.strategy-list {
  display: flex;
  flex-direction: column;
  gap: 24px;

  li {
    border-radius: 20px;
    padding: 30px 16px;
    background: #fff;
  }

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 26px;
    line-height: 150%;
    letter-spacing: -0.03em;
    color: #010205;
    text-align: center;
    margin-bottom: 22px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    line-height: 160%;
    color: #878c91;
    text-align: center;
  }
}

@media screen and (min-width: 768px) {
  .strategy-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;

    li {
      width: calc((100% - 24px) / 2);
    }
  }
}

@media screen and (min-width: 1436px) {
  .strategy-list {
    li {
      width: calc((100% - 48px) / 3);
    }
  }
}

/* disclaimer */

.disclaimer {
  background: #99cf63;
}

.disclaimer-text {
  padding: 50px 18px;
  border-radius: 30px;
  background: #020609;

  font-family: var(--font-family);
  font-weight: 600;
  font-size: 22px;
  line-height: 130%;
  letter-spacing: -0.03em;
  text-align: center;
  color: #fff;
}

@media screen and (min-width: 1436px) {
  .disclaimer-text {
    padding: 80px;
    font-size: 32px;
  }
}

/* subscribe  */

#subscribe {
  background-image: url(../images/subscribe.png);
  background-position: center;
  background-size: cover;
}

#consultation-form {
  display: flex;
  flex-direction: column;
  gap: 24px;

  input,
  textarea {
    border: 1px solid #010205;
    border-radius: 70px;
    padding: 12px;
    resize: none;
    outline: none;
    width: 100%;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    color: #010205;
    transition: background-color 0.3s ease;
  }

  button {
    margin: 0 auto;
    background: #010205;
    span {
      color: #fff;
    }
  }

  input::placeholder,
  textarea::placeholder {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    color: #878c91;
  }
}

.modal-form {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222221;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-form.show {
  opacity: 1;
}

@media screen and (min-width: 1436px) {
  #consultation-form {
    width: 800px;
    margin: 0 auto;
  }
}

/* ************ PAGE 2  ***************** */

/* articles-hero */

.art-hero {
  padding-bottom: 470px;
}

@media screen and (min-width: 1436px) {
  .art-hero {
    padding-bottom: 400px;
  }
}

/* all-articleas  */

#all-articleas {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.all-item {
  border-radius: 15px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  transition: background-color 0.4s ease;
  box-shadow: 5px 3px 10px 0 #838486;
}

.all-item:hover {
  background: #96cb61;
}

.all-img {
  width: 100%;
  height: 200px;
  border-radius: 6px;
  background-position: center;
  background-size: cover;
  margin-bottom: 24px;
  background-color: #000;
}

.all-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 24px;
  line-height: 133%;
  text-transform: capitalize;
  color: #010205;
  margin-bottom: 10px;
}

.all-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #010205;
  opacity: 0.6;
}

.article-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #000;

  div {
    display: flex;
    align-items: center;
    gap: 7px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 10px;
    line-height: 165%;
    color: #fff;
  }

  svg {
    stroke: #121212;
  }
}

#loadMore {
  display: block;
  width: fit-content;
  margin: 0 auto;
  margin-top: 55px;
  border: 1px solid #010205;
  border-radius: 70px;
  padding: 15px 32px;

  font-family: var(--second-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 125%;
  color: #010205;

  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

#loadMore:hover {
  background-color: #010205;
  color: #fff;
}

@media screen and (min-width: 768px) {
  #all-articleas {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .all-item {
    width: calc((100% - 22px) / 2);
  }
}

@media screen and (min-width: 1436px) {
  .all-item {
    width: calc((100% - 44px) / 3);
  }
}

/********** PAGE 3 ************** */

/* about  */

.about-hero {
  padding-bottom: 380px;
}

/* mission  */
.mission {
  background: #010205;
}

.mission-list {
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.mission-item {
  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 32px;
    line-height: 130%;
    letter-spacing: -0.03em;
    text-align: center;
    color: #fff;
    margin-bottom: 22px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #fff;
  }
}

@media screen and (min-width: 1436px) {
  .mission-list {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 80px;
  }

  .mission-item {
    p {
      font-size: 48px;
    }

    span {
      font-size: 16px;
    }
  }
}

/* data */

.data {
  background: #96cb61;
}

.data-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 22px;
  line-height: 130%;
  letter-spacing: -0.03em;
  text-align: center;
  color: #010205;
}

@media screen and (min-width: 1436px) {
  .data-text {
    font-size: 32px;
  }
}

/* team */

.team-list {
  display: flex;
  flex-direction: column;
  gap: 18px;

  li {
    border-radius: 15px;
    padding: 32px;
    background-color: #fff;
  }
  img {
    width: 100%;
    margin-bottom: 10px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 24px;
    line-height: 133%;
    text-transform: capitalize;
    color: #010205;
    margin-bottom: 10px;
  }
  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #010205;
    opacity: 0.5;
  }
}

@media screen and (min-width: 1436px) {
  .team-list {
    flex-direction: row;

    li {
      width: calc((100% - 36px) / 3);
    }
  }
}

/********** PAGE 4 ************** */

/* contact-hero */

.contact-hero {
  padding-bottom: 400px;
}

/* contact */

.contact {
  background-image: url(../images/contact.png);
  background-position: center;
  background-size: cover;
}

.contact-flex {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 22px;

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    color: #010205;
  }

  a,
  span {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    color: #010205;
  }

  a:hover,
  a:focus {
    text-decoration: underline;
  }
}

.social-list {
  display: flex;
  gap: 22px;

  li {
    width: auto;
  }

  a {
    display: block;
    width: 32px;
    transition: transform 0.4s ease;
  }

  a:hover {
    transform: scale(1.2);
  }
}

/* важно: у контейнера карты должна быть высота */
.map-frame {
  overflow: hidden;
  height: 460px;
  width: 100%;
  border-radius: 22px;
}

.leaflet-container {
  background: #fff;
}

@media screen and (min-width: 1436px) {
  .contact-flex {
    flex-direction: row;
    align-items: center;
    gap: 50px;
  }

  .map-frame {
    border-radius: 22px;
    width: 680px;
    height: 460px;
    margin: 0;
  }

  .contact-list {
    width: 100%;
    margin-bottom: 32px;

    li {
      width: 100%;
    }
  }

  .social-list {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 32px;
  }
}

/* footer */

.footer {
  padding: 26px 0;
  background: #010205;
}

.footer-desc {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 163%;
  color: #fff;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #fff;
  margin-bottom: 18px;
}

.footer-list {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 8px;
  gap: 2px;

  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 163%;
  color: #fff;
  text-align: center;

  a:hover {
    text-decoration: underline;
  }
}

.footer-text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 15px;
  line-height: 163%;
  color: #fff;
  text-align: center;
}

@media screen and (min-width: 1436px) {
  .footer {
    padding: 54px 0;
  }

  .footer-list {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-bottom: 12px;
  }
}

/* loader */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(94, 95, 147, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  /* display: none; */
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #fff;
  border-top-color: blue;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* scroll */

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid blue;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999999999999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    box-sgadow 0.4s ease border-color 0.4s ease;

  svg {
    fill: none;
    stroke: blue;
    transition: stroke 0.3s ease;
  }
}

#scrollTopBtn.show {
  opacity: 0.3;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTopBtn:hover {
  opacity: 1;
  border-color: blue;
  box-shadow: 2px 2px 10px blue;

  svg {
    stroke: blue;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateY(0);
}

.click {
  background-image: url(../img/minus.png);
  transform: rotate(180deg);
}

.popup-click {
  transform: translateY(130%);
}

.overflow {
  overflow: hidden;
}
