.main-section {
  display: none;
}

.menu-btn {
  position: fixed;
  top: 20px;
  right: 20px;

  svg {
    fill: none;
    stroke: #000;
  }
}

.list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.link {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  color: #191a23;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.link:hover,
.link:focus {
  text-decoration: underline;
}

.active-link {
  text-decoration: underline;
}

@media screen and (min-width: 1436px) {
  .main-section {
    display: block;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 0;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header-title {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 6px;

    img {
      width: 50px;
    }

    span {
      font-family: var(--font-family);
      font-weight: 500;
      font-size: 12px;
      line-height: 167%;
      color: #191a23;
      transition: color 0.3s ease;
    }
  }

  .menu-open {
    display: none;
  }

  .header-subscribe {
    display: block;
    width: fit-content;
    border-radius: 8px;
    padding: 15px 32px;
    background: #b9ff66;

    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 111%;
    color: #191a23;
    text-transform: capitalize;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .header-subscribe:hover {
    background-color: #000;
    color: #fff;
  }
}

/* modal  */

.menu {
  position: fixed;
  overflow: hidden;
  top: 0;
  left: 0;
  width: 100%;
  padding: 100px;
  border-radius: 0 0 68px 68px;
  z-index: 88888888;
  background: #e4e4e4;
  transform: translateY(-100%);
  transition: transform 1s ease;
}

.menu-close {
  z-index: 99999999999999;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.modal-subscribe {
  display: inline-block;
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 150%;
  color: #fff;

  text-transform: capitalize;
  transition: color 0.3s ease;
  border: 1px solid #ffd119;
  border-radius: 12px;
  padding: 14px 20px;
}

.modal-subscribe:hover,
.modal-subscribe:focus {
  color: #ffd119;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 999999;
  bottom: 20px;
  border-radius: 10px;
  padding: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  border: 1px solid #b9ff66;
  transition: transform 0.4s ease;
}

.popup-text {
  font-family: var(--font3);
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  color: #000;
  text-align: center;
  margin-bottom: 32px;

  span {
    font-weight: 400;
  }

  a {
    text-decoration: underline;
  }
}

.popup-btn {
  font-family: var(--font3);
  font-weight: 600;
  font-size: 14px;
  line-height: 143%;
  color: #b9ff66;

  border: 2px solid #b9ff66;
  border-radius: 6px;
  padding: 12px 36px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background-color: #b9ff66;
  color: #fff;
}

.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: 44px;
  }

  .popup-wrap {
    gap: 38px;
    flex-shrink: 0;
  }
  .popup-btn {
    padding: 16px 48px;
  }
}

/* hero  */

.hero {
  padding-top: 80px;
  border-radius: 0 0 68px 68px;
  background-image: url(../images/bg.png);
  background-position: center;
  background-size: cover;
  background-color: #fff;
}

.hero-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 32px;
  line-height: 125%;
  color: #191a23;
  text-align: center;
  margin-bottom: 22px;
}

.hero-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 140%;
  text-align: center;
  color: #191a23;
  margin-bottom: 32px;
}

.page-link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 111%;
  color: #191a23;
  text-transform: capitalize;

  display: block;
  margin: 0 auto;
  width: fit-content;
  border-radius: 8px;
  padding: 15px 32px;
  background: #b9ff66;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-link:hover {
  background-color: #000;
  color: #fff;
}

.hero-img {
  width: 100%;
  height: 360px;
  border-radius: 45px;
  background-image: url(../images/home.jpg);
  background-position: center;
  background-size: cover;
  margin-top: 26px;
}

@media screen and (min-width: 1436px) {
  .hero {
    padding-top: 100px;
  }

  .hero-title {
    font-size: 52px;
    margin-bottom: 22px;
  }

  .hero-text {
    font-size: 20px;
    margin-bottom: 32px;
  }

  .page-link {
    padding: 15px 32px;
  }

  .hero-img {
    margin-top: 40px;
    height: 360px;
  }
}

/* desc  */

.desc {
  background: #191a23;
}

.desc-content {
  border-radius: 45px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #f3f3f3;

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: #191a23;
  }
}

@media screen and (min-width: 1436px) {
  .desc-content {
    flex-direction: row;
    gap: 180px;
    padding: 0;
    padding-left: 60px;

    img {
      flex-shrink: 0;
    }
  }
}

/* creativity  */

.creativity {
  background-color: #fff;
}

.creativity-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-radius: 45px;
  padding: 20px;
  background: #191a23;

  li {
    padding-bottom: 22px;
    border-bottom: 1px solid #fff;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
    color: #b9ff66;
    text-align: center;
    margin-bottom: 20px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: #fff;
    text-align: center;
  }
}

@media screen and (min-width: 1436px) {
  .creativity-list {
    flex-direction: row;
    gap: 64px;
    padding: 66px;

    li {
      padding: 0;
      padding-right: 64px;
      border: none;
      border-right: 1px solid #fff;
      width: calc((100% - 128px) / 2);
    }
  }
}

/* what  */

.what-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.what-item {
  border: 1px solid #191a23;
  border-radius: 45px;
  padding: 50px;
  box-shadow: 0 5px 0 0 #191a23;
  background: #f3f3f3;

  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 22px;

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 30px;
    color: #191a23;
    margin-bottom: 22px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
    color: #191a23;
  }
}

.black {
  background: #191a23;
  p,
  span {
    color: #fff;
  }
}

.green {
  background: #b9ff66;
}

@media screen and (min-width: 768px) {
  .what-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .what-item {
    width: calc((100% - 22px) / 2);
  }
}

@media screen and (min-width: 1436px) {
  .what {
    background-image: url(../images/Illustration.png);
    background-position: top right;
    background-repeat: no-repeat;
  }

  .what-list {
    gap: 40px;
  }

  .what-item {
    width: calc((100% - 40px) / 2);
    flex-direction: row;
    gap: 70px;
  }

  .item5 {
    transform: translateY(310px);
  }
}

/* disclaimer */

.disclaimer-text {
  border-radius: 45px;
  padding: 80px 20px;
  background: #191a23;

  font-family: var(--font-family);
  font-weight: 500;
  font-size: 22px;
  text-align: center;
  color: #fff;
}

@media screen and (min-width: 1436px) {
  .disclaimer-text {
    padding: 80px 105px;
    font-size: 28px;
  }
}

/* subscribe  */

.subscribe-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  color: #191a23;
  text-align: center;
  margin-bottom: 40px;
}

#consultation-form {
  border: 1px solid #191a23;
  border-radius: 45px;
  padding: 50px;
  box-shadow: 0 5px 0 0 #191a23;

  display: flex;
  flex-direction: column;
  gap: 22px;

  input,
  textarea {
    padding: 6px;
    resize: none;
    outline: none;
    border: none;
    width: 100%;
    border-bottom: 1px solid #191a23;
    background-color: transparent;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
    color: #191a23;
    transition: background-color 0.3s ease;
  }

  button {
    display: block;
    width: fit-content;
    margin: 0 auto;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
    text-align: center;
    color: #191a23;
    border: 1px solid #191a23;
    border-radius: 14px;
    padding: 20px 35px;
    flex-shrink: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  button:hover {
    color: #fff;
    background-color: #191a23;
  }

  input::placeholder,
  textarea::placeholder {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
    color: #191a23;
  }
}

.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: 768px) {
  #consultation-form {
    flex-direction: row;
    gap: 40px;
  }
}

@media screen and (min-width: 1436px) {
  #consultation-form {
    width: 742px;
    margin: 0 auto;
  }
}

/* page 2  */

/* all articles   */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 32px;
}

.news-item {
  border: 1px solid #191a23;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 5px 0 0 #000;
  background: #fff;
  border: 1px solid #000;
  transition: border-color 0.3s ease;
  cursor: pointer;
}

.thumb {
  display: block;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-img {
  width: 100%;
  margin-bottom: 10px;
}

.article-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 30px;
  color: #191a23;
  margin-bottom: 10px;
}

.article-desc {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 140%;
  color: #191a23;
  margin-bottom: 10px;
}

.article-date {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 200%;
  color: #191a23;
  text-align: end;
}

.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: #000;
  }
}

.load-btn {
  display: block;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .news-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .news-item {
    width: calc((100% - 22px) / 2);
  }
}

@media screen and (min-width: 1436px) {
  .news-item {
    width: calc((100% - 44px) / 3);
  }
}

/* page 3  */

/* mission  */

.mission-list {
  border-radius: 45px;
  padding: 20px;
  background: #fff;

  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 46px;
}

.mission-item {
  border-bottom: 1px solid #191a23;
  padding-bottom: 20px;

  h2 {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
    color: #191a23;
    width: fit-content;
    margin: 0 auto;
    margin-bottom: 20px;
    padding: 7px;
    border-radius: 7px;
    background: #b9ff66;
  }

  p {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    text-align: center;
    color: #191a23;
  }
}

@media screen and (min-width: 1436px) {
  .mission-list {
    align-items: flex-start;
    flex-direction: row;
    gap: 64px;
    padding: 66px 96px;
  }

  .mission-item {
    padding: 0;
    padding-right: 64px;
    border: none;
    border-right: 1px solid #191a23;
    width: calc((100% - 64px) / 2);
  }
}

/* about-text  */

.about-text {
  border-radius: 45px;
  padding: 40px 20px;
  background: #e4e4e4;

  font-family: var(--font-family);
  font-weight: 500;
  font-size: 22px;
  text-align: center;
  color: #191a23;
}

@media screen and (min-width: 1436px) {
  .about-text {
    padding: 80px 105px;
    font-size: 28px;
  }
}

/* page 4  */

/* contact */

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  color: #191a23;
  margin-bottom: 22px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;

  li {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  img {
    width: 24px;
    flex-shrink: 0;
  }

  p,
  a {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    color: #191a23;
  }

  a:hover,
  a:focus {
    text-decoration: underline;
  }
}

.social-list {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 22px;

  li {
    width: 24px;
  }
}

/* важно: у контейнера карты должна быть высота */
.map-frame {
  border-radius: 45px;
  overflow: hidden;
  height: 360px;
  width: 100%;
}

.leaflet-container {
  background: #fff;
}

@media screen and (min-width: 1436px) {
  .contact-container {
    display: flex;
    flex-direction: column-reverse;
    gap: 100px;
  }

  .contact-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
  }

  .contact-content-list {
    width: calc((100% - 40px) / 2);

    .section-title {
      margin-left: 0;
    }
  }
}

/* footer */

.footer {
  border-radius: 68px 68px 0 0;
  background: #191a23;
  padding: 20px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;

  img {
    width: 50px;
  }

  span {
    color: #fff;
  }
}

.footer-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 163%;
  text-align: center;
  color: #fff;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #fff;
}

.footer-list {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 32px;
  margin-bottom: 12px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 186%;
  color: #fff;

  a:hover {
    text-decoration: underline;
  }
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 12px;
  line-height: 167%;
  color: #fff;
  text-align: center;
}

@media screen and (min-width: 1436px) {
  .footer {
    padding: 35px 0;
  }
}

/* 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: #b9ff66;
  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 #000;
  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, border-color 0.3s ease;

  svg {
    fill: none;
    stroke: #000;
    transition: stroke 0.3s ease;
  }
}

#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTopBtn:hover {
  opacity: 1;
  border-color: #b9ff66;

  svg {
    stroke: #b9ff66;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateY(0);
}

.click {
  background-image: url(../img/minus.png);
  transform: rotate(180deg);
}

.popup-click {
  transform: translateY(130%) translateX(-50%);
}

.overflow {
  overflow: hidden;
}
