.main-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999999999999;
  padding: 20px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  display: none;
}

.header-title:hover,
.header-title:hover {
  span {
    color: #ffb912;
  }
}

.page-nav {
  display: none;
}

.menu-btn {
  display: block;
  margin-left: auto;

  svg {
    fill: none;
    stroke: #fff;
    transition: stroke 0.3s ease;
  }
}

.menu-btn:hover,
.menu-btn:focus {
  svg {
    stroke: #ffb912;
  }
}

.list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.link {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  color: #fff;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.link:hover,
.link:focus {
  color: #ffb912;
}

.active-link {
  color: #ffb912;
}

.header-subscribe {
  display: none;
}

@media screen and (min-width: 1436px) {
  .header-title {
    display: flex;
    align-items: center;
    gap: 5px;

    img {
      width: 40px;
    }

    span {
      font-family: var(--font-family);
      font-style: italic;
      font-weight: 800;
      font-size: 10px;
      line-height: 217%;
      color: #fff;
      transition: color 0.4s ease;
    }
  }

  .header-subscribe {
    display: block;
    width: fit-content;
    border-radius: 8px;
    padding: 15px 32px;
    background: #0004ff;

    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 111%;
    color: #fff;
    text-transform: capitalize;
    transition: color 0.3s ease;
  }

  .header-subscribe:hover,
  .header-subscribe:focus {
    color: #ffb912;
  }

  .page-nav {
    display: block;
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  overflow: hidden;
  top: 0;
  left: 50%;
  padding: 40px;
  padding-top: 60px;
  z-index: 88888888;
  backdrop-filter: blur(5px);
  background-color: #3d48a676;
  transform: translateX(-50%) translateY(-130%);
  transition: transform 2s ease;
  border-radius: 10px;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.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%);
  backdrop-filter: blur(5px);
  background-color: #3d48a676;
  transition: transform 0.4s ease;
}

.popup-text {
  font-family: var(--font3);
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  color: #fff;
  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: #fff;

  border: 2px solid #fff;
  border-radius: 6px;
  padding: 12px 36px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  border-color: #ffd119;
  color: #ffd119;
}

.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: 224px 0;
  background-position: center;
  background-size: cover;
}

.home-page {
  background-image: url(../images/hero.png);
}

.page-link {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 18px;
  line-height: 111%;
  color: #fff;

  display: block;
  width: fit-content;
  margin: 0 auto;
  border-radius: 8px;
  padding: 15px 32px;
  background: linear-gradient(90deg, #0004ff 0%, #7b00ff 100%);
  transition: color 0.3s ease;
  margin-top: 32px;
}

.page-link:hover {
  color: #ffb912;
}

@media screen and (min-width: 1436px) {
  .home-page {
    .title {
      max-width: 870px;
      margin: 0 auto;
      margin-bottom: 32px;
    }

    .text {
      max-width: 850px;
      margin: 0 auto;
    }
  }
}

/* about  */

.about-img {
  width: 100%;
  height: auto;
  margin-top: 32px;
}

@media screen and (min-width: 1436px) {
  .about-container {
    display: flex;
    align-items: center;
    gap: 22px;
  }
  .about-img {
    width: auto;
    flex-shrink: 0;
    margin: 0;
  }
}

/* era  */

.era {
  background-image: url(../images/era.png);
  background-position: center;
  background-size: cover;
}

.human {
  width: 100%;
  margin-bottom: 32px;
}

.era-list {
  display: flex;
  flex-direction: column;
  gap: 12px;

  li {
    padding: 17px;
    padding-left: 32px;
    border-left: 2px solid transparent;
    transition: border-color 0.3s ease;
    cursor: pointer;
  }

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 32px;
    line-height: 125%;
    color: #fff;
    margin-bottom: 16px;
    transition: color 0.3s ease;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 125%;
    color: #fff;
    transition: color 0.3s ease;
  }

  li:hover,
  li:focus {
    border-color: #ffb912;

    p,
    span {
      color: #ffb912;
    }
  }
}

@media screen and (min-width: 1436px) {
  .era-wrap {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .human {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }

  .era-list {
    gap: 40px;
  }
}

/* what  */

.what-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}

.what-item {
  border-radius: 20px;
  padding: 28px 18px;
  width: 280px;
  max-width: 100%;
  background: rgba(148, 0, 255, 0.3);

  img {
    margin-bottom: 28px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 178%;
    color: #fff;
    margin-bottom: 8px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 125%;
    color: #fff;
    opacity: 0.5;
  }
}

@media screen and (min-width: 768px) {
  .what-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media screen and (min-width: 1436px) {
  .what-list {
    width: 884px;
    margin: 0 auto;
  }
}

/* disclaimer */

.disclaimer-text {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 20px;
  line-height: 140%;
  text-align: center;
  color: #fff;
}

@media screen and (min-width: 1436px) {
  .disclaimer-text {
    font-size: 34px;
  }
}

/* subscribe  */

#subscribe {
  background-image: url(../images/gradient.png);
  background-position: center;
  background-size: cover;
}

#consultation-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 60px;

  input,
  textarea {
    border-radius: 8px;
    border: 1px solid #ebebeb;
    padding: 12px;
    resize: none;
    outline: none;
    width: 100%;
    background: #fff;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #030308;
    transition: background-color 0.3s ease;
  }

  button {
    margin: 0;
  }

  input::placeholder,
  textarea::placeholder {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #030308;
    opacity: 0.5;
  }
}

.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) {
  .subscribe-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .title {
      margin: 0;
      text-align: start;
      flex-shrink: 0;
    }

    .text {
      margin: 0;
      text-align: start;
      max-width: 436px;
    }
  }
}

/* page 2  */

/* article  */

.articles {
  background-image: url(../images/articles.png);
}

/* all articles   */

#all-articles {
  background-image: url(../images/art-list.png);
  background-position: center;
  background-size: cover;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 50px;
}

.news-item {
  border-radius: 15px;
  padding: 32px;
  background: #030308;
  border: 1px solid transparent;
  transition: border-color 0.3s ease;
  cursor: pointer;
}

.news-item:hover,
.news-item:focus {
  border-color: #ffb912;
}

.thumb {
  display: block;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-img {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 6px;
}

.article-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 24px;
  line-height: 133%;
  text-transform: capitalize;
  color: #fff;
  margin-bottom: 10px;
}

.article-desc {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #fff;
  margin-bottom: 10px;
}

.article-date {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #fff;
  text-align: end;
  margin-bottom: 10px;
}

.article-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding-top: 20px;
  border-top: 1px solid #fff;

  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;
  }
}

@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  */

/* about  */

.about-us {
  background-image: url(../images/about-us.png);
}

/* who  */

.who1 {
  width: 100%;
  margin-top: 22px;
}

.who2 {
  width: 100%;
  margin-top: 22px;
}

@media screen and (min-width: 1436px) {
  .who-wrap {
    display: flex;
    gap: 32px;
  }

  .who1 {
    width: auto;
    margin-top: 22px;
  }

  .who2 {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* bitstep   */

.bitstep {
  background-image: url(../images/vector.png);
  background-position: center;
  background-size: cover;
}

.bitstep-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  margin-top: 32px;

  li {
    border-radius: 20px;
    padding: 28px 18px;
    width: 200px;
    background: rgba(148, 0, 255, 0.3);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;

    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 178%;
    color: #fff;
  }
}

@media screen and (min-width: 768px) {
  .bitstep-list {
    flex-direction: row;
    width: 500px;
    margin: 0 auto;
    margin-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media screen and (min-width: 1436px) {
  .bitstep-list {
    width: 100%;
    margin-top: 70px;
  }
}

/* page 4  */

/* contact */

.contact {
  background-image: url(../images/contact.png);
}

/* info */

.info {
  background-position: center;
  background-size: cover;
  background-image: url(../images/info.png);
}

.info-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;

  li {
    display: flex;
    align-items: center;
    gap: 26px;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    color: #fff;
  }

  a {
    transition: color 0.3s ease;
  }

  a:hover,
  a:focus {
    color: #0004ff;
  }
}

.social-list {
  display: flex;
  gap: 22px;
}

/* важно: у контейнера карты должна быть высота */
.map-frame {
  border-radius: 6px;
  overflow: hidden;
  height: 335px;
  width: 100%;
}

.leaflet-container {
  background: #fff;
}

@media screen and (min-width: 1436px) {
  .info-container {
    align-items: center;
    flex-direction: row-reverse;
    justify-content: center;
  }

  .map-frame {
    width: 480px;
    height: 388px;
    margin: 0;
    flex-shrink: 0;
  }
}

/* footer */

.footer {
  padding: 40px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;

  img {
    width: 40px;
  }

  span {
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 800;
    font-size: 10px;
    line-height: 217%;
    color: #fff;
    transition: color 0.3s ease;
  }
}

.footer-logo:hover,
.footer-logo:focus {
  span {
    color: #ffb912;
  }
}

.footer-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 163%;
  color: #fff;
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid #fff;
}

.footer-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 163%;
  color: #fff;

  a {
    transition: color 0.3s ease;
  }

  a:hover {
    color: #ffb912;
  }
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 163%;
  color: #fff;
  text-align: center;
}

@media screen and (min-width: 1436px) {
  .footer {
    padding: 30px 0;
  }

  .footer-list {
    gap: 32px;
  }
}

/* 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: #ffb912;
  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 #fff;
  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: #fff;
    transition: stroke 0.3s ease;
  }
}

#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTopBtn:hover {
  opacity: 1;
  border-color: #ffb912;

  svg {
    stroke: #ffb912;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateX(-50%) translateY(0);
}

.click {
  background-image: url(../img/minus.png);
  transform: rotate(180deg);
}

.popup-click {
  transform: translateY(130%) translateX(-50%);
}

.overflow {
  overflow: hidden;
}
