.main-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999999999999;
  padding: 16px 0;
  background: rgba(26, 26, 26, 0.8);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: block;
  width: 139px;
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(0.9);
}

.page-nav {
  display: none;
}

.menu-btn {
  display: block;
  border: 1px solid var(--fea917);
  border-radius: 40px;
  padding: 12px 16px;

  svg {
    fill: none;
    stroke: var(--fea917);
  }
}

.list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 156%;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--ffffff);
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.active-link {
  color: var(--fea917);
}

.link:hover,
.link:focus {
  color: var(--fea917);
}

.header-subscribe {
  display: none;
}

@media screen and (min-width: 1436px) {
  .header-logo {
    width: 139px;
  }

  .header-subscribe {
    display: block;
    width: fit-content;
    border: 1px solid var(--fea917);
    border-radius: 40px;
    padding: 12px 24px;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    text-transform: capitalize;
    color: var(--fea917);

    transition:
      color 0.3s ease,
      box-shadow 0.3s ease;
  }

  .header-subscribe:hover,
  .header-subscribe:focus {
    box-shadow: 5px 5px 10px var(--fea917);
  }

  .page-nav {
    display: block;
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  overflow: hidden;
  top: 96px;
  width: 100%;
  padding: 40px;
  z-index: 88888888;
  background: rgba(26, 26, 26, 0.96);
  transform: translateY(-140%);
  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: 20px;
  padding: 20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 10px 10px 10px 0 rgba(0, 0, 0, 0.18);
  background: #0d1615;
  transition: transform 0.4s ease;
}

.popup-text {
  font-family: var(--third-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 143%;
  color: var(--ffffff);
  margin-bottom: 20px;

  span {
    font-weight: 600;
  }

  a:hover {
    text-decoration: underline;
  }
}

.popup-btn {
  font-family: var(--third-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 143%;
  color: var(--fea917);

  border: 2px solid var(--fea917);
  border-radius: 6px;
  padding: 12px 58px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.popup-btn:hover {
  background: var(--fea917);
  color: #10182f;
}

.popup-wrap {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media screen and (min-width: 1436px) {
  .page-popup {
    padding: 24px;
  }

  .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;
  }
}

/* *************  PAGE 1  ******* */

/* hero  */

.hero {
  padding-top: 208px;
  padding-bottom: 260px;
  background-image: url(../images/home.jpg);
  background-position: center;
  background-size: cover;
}

.hero-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 64px;
  line-height: 100%;
  text-align: center;
  color: var(--fea917);
  margin-bottom: 24px;
}

.hero-text {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 140%;
  text-align: center;
  color: var(--ffffff);
  margin-bottom: 32px;
}

.page-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 40px;
  padding: 16px 56px;
  background: var(--fea917);
  transition: box-shadow 0.3s ease;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 24px;
  line-height: 133%;
  text-align: center;
  color: #212121;
}

.page-link:hover {
  box-shadow: 5px 5px 10px var(--fea917);
}

@media screen and (min-width: 1436px) {
  .hero {
    padding-top: 220px;
    padding-bottom: 180px;
  }

  .hero-title {
    font-size: 100px;
    max-width: 830px;
    margin: 0 auto;
    margin-bottom: 24px;
  }

  .hero-text {
    font-size: 32px;
    max-width: 830px;
    margin: 0 auto;
    margin-bottom: 32px;
  }
}

/* principles */

#principles {
  background: var(--fbfbfb);
}

.principles-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.first-item {
  border-radius: 8px;
  padding: 8px;
  background: var(--ffffff);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.first-item:hover {
  border-color: var(--fea917);

  .first-img {
    box-shadow: 5px 5px 10px #3e3b3b;
  }
}

.first-img {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.first-autor {
  display: block;
  width: fit-content;
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 14px;
  line-height: 143%;
  color: #212121;
  border-radius: 16px;
  padding: 4px 16px;
  background: var(--fea917);
  margin-bottom: 16px;
}

.first-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 28px;
  line-height: 114%;
  color: #212121;
  margin-bottom: 12px;
}

.first-text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #797e87;
}

.first-date {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 12px;
  line-height: 133%;
  color: var(--fea917);
}

@media screen and (min-width: 1436px) {
  .principles-list {
    flex-direction: row;
    gap: 32px;
  }

  .first-item {
    width: calc((100% - 64px) / 3);
  }
}

/* top list  */

#top-flex {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* detail */

.top-detail {
  width: 100%;
}

.top-item-detail {
  border-radius: 8px;
  padding: 8px;
  background: var(--ffffff);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.top-item-detail:hover {
  border-color: var(--fea917);

  .top-img-detail {
    box-shadow: 5px 5px 10px #3e3b3b;
  }
}

.top-img-detail {
  width: 100%;
  margin-bottom: 28px;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.top-title-detail {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 36px;
  line-height: 111%;
  color: #212121;
  margin-bottom: 12px;
}

.top-text-detail {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #797e87;
}

/* list  */

.top-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-item {
  border-radius: 8px;
  padding: 4px;
  background: var(--ffffff);

  transition: border-color 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.top-item:hover {
  border-color: var(--fea917);

  .top-img {
    box-shadow: 5px 5px 10px #3e3b3b;
  }
}

.top-wrapper {
  width: 100%;
}

.top-img {
  width: 136px;
  flex-shrink: 0;
  border-radius: 4px;
  transition: box-shadow 0.3s ease;
}

.top-autor {
  display: block;
  width: fit-content;
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 12px;
  line-height: 133%;
  color: #212121;
  background: var(--fea917);
  margin-bottom: 8px;
  border-radius: 16px;
  padding: 4px 16px;
}

.top-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 156%;
  color: #212121;
  margin-bottom: 10px;
}

.top-text {
  display: none;
}

.top-link {
  display: none;
}

.read-more {
  display: block;
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 12px;
  line-height: 133%;
  text-align: right;
  color: var(--fea917);
  text-align: end;
}

.top-item--small.is-active {
  outline: 2px solid #f5a623;
}

@media screen and (min-width: 1436px) {
  #top-flex {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }

  .top-detail {
    border-radius: 8px;
    padding: 8px;
    width: 771px;
    flex-shrink: 0;
  }
}

/* disclaimer  */

.disclaimer-img {
  border-radius: 8px;
  width: 100%;
  height: 400px;
  background-image: url(../images/disclaimer.jpg);
  background-position: center;
  background-size: cover;
  margin-bottom: 40px;
}

.disclaimer-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 36px;
  line-height: 111%;
  color: #212121;
  margin-bottom: 40px;
}

.form-wrap {
  border-radius: 8px;
  padding: 28px 20px;
  background: var(--fea917);
}

.subscribe-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 32px;
  line-height: 125%;
  color: #212121;
  margin-bottom: 24px;
}

.subscribe-text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #212121;
  margin-bottom: 40px;
}

#consultation-form {
  display: flex;
  border-radius: 30px;
  background: var(--fbfbfb);

  input,
  textarea {
    padding: 12px 24px;
    border-radius: 30px;
    background: transparent;
    resize: none;
    outline: none;
    border: none;
    width: 100%;

    font-family: var(--second-family);
    font-weight: 400;
    font-size: 14px;
    color: #000;
    transition: background-color 0.3s ease;
  }

  button {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--ffffff);

    display: block;
    width: fit-content;
    margin: 0 auto;
    background: #212121;
    padding: 13px 30px;
    padding: 12px 24px;
    border-radius: 30px;

    transition:
      color 0.3s ease,
      background-color 0.3s ease,
      box-shadow 0.3s ease;
  }

  input::placeholder,
  textarea::placeholder {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 14px;
    color: #6f6f6f;
  }

  button:hover {
    background-color: #3f3636;
  }
}

.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) {
  .disclaimer-img {
    margin-bottom: 52px;
  }

  .disclaimer-text {
    font-size: 40px;
    margin-bottom: 52px;
  }

  .form-wrap {
    border-radius: 8px;
    padding: 64px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .subscribe-title {
    font-size: 36px;
    margin: 0;
  }

  .subscribe-text {
    font-size: 16px;
    margin: 0;
  }

  #consultation-form {
    flex-direction: row;
    width: 450px;
    margin: 0;

    input {
      width: 100%;
    }

    button {
      flex-shrink: 0;
    }
  }
}

/* ************ PAGE 2  ***************** */

/* articles-hero */

.articles-hero {
  padding-top: 120px;
  padding-bottom: 96px;
  background-image: url(../images/articles.jpg);
  background-position: center;
  background-size: cover;
}

.articles-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 64px;
  line-height: 100%;
  text-align: center;
  color: var(--fea917);
  margin-bottom: 24px;
}

.articles-text {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 140%;
  text-align: center;
  color: var(--ffffff);
}

@media screen and (min-width: 1436px) {
  .articles-hero {
    padding-top: 156px;
    padding-bottom: 150px;
  }

  .articles-title {
    font-size: 100px;
    margin-bottom: 24px;
  }

  .articles-text {
    font-size: 32px;
  }
}

/* all-articleas  */

#articleas {
  background: var(--fbfbfb);
}

#all-articleas {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.all-item {
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 16px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.all-item:hover {
  border-color: var(--fea917);

  .all-img {
    box-shadow: 5px 5px 10px #3e3b3b;
  }
}

.all-img {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  transition: box-shadow 0.4s ease;
}

.all-author {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 14px;
  line-height: 143%;
  color: #212121;
  border-radius: 16px;
  padding: 4px 16px;
  background: var(--fea917);
  width: fit-content;
  margin-bottom: 16px;
}

.all-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 28px;
  line-height: 114%;
  color: #212121;
  margin-bottom: 12px;
}

.all-text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #797e87;
}

.all-date {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 13px;
  line-height: 165%;
  color: #2a2a2a;
  opacity: 0.7;
  text-align: end;
  padding: 0 22px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.pag-numbers {
  display: flex;
  gap: 8px;
}

.pag-btn {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

.pag-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.pag-num.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

@media screen and (min-width: 768px) {
  #all-articleas {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .all-item {
    width: calc((100% - 24px) / 2);
  }
}

@media screen and (min-width: 1436px) {
  #all-articleas {
    gap: 32px;
  }
  .all-item {
    width: calc((100% - 64px) / 3);
  }
}

/********** PAGE 3 ************** */

/* about  */

.about {
  padding-top: 155px;
  padding-bottom: 97px;
  background-image: url(../images/about.jpg);
  background-position: center;
  background-size: cover;
}

.about-title {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 28px;
  line-height: 129%;
  text-align: center;
  color: var(--ffffff);
}

@media screen and (min-width: 1436px) {
  .about {
    padding: 239px 0;
  }

  .about-title {
    width: 996px;
    margin: 0 auto;
    font-size: 32px;
  }
}

/* mission */

.mission-wrap {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.mission-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mission-list {
  border-radius: 8px;
  padding: 24px 20px;
  background: var(--fea917);

  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mission-item {
  display: flex;
  align-items: center;
  gap: 16px;

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 24px;
    line-height: 133%;
    color: #212121;
    flex-shrink: 0;
  }

  span {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #212121;
  }
}

.mission-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 36px;
  line-height: 111%;
  color: #212121;
}

@media screen and (min-width: 1436px) {
  .mission-wrap {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .mission-text {
    font-size: 40px;
  }

  .mission-list {
    border-radius: 8px;
    padding: 64px 60px;
    width: 683px;
    flex-shrink: 0;
  }

  .mission-item {
    gap: 32px;

    p {
      font-size: 36px;
    }

    span {
      font-size: 16px;
    }
  }
}

/* team */

.team-list {
  display: flex;
  flex-direction: column;
  gap: 32px;

  li {
    border-radius: 8px;
    padding: 8px;
    background: var(--ffffff);
  }

  img {
    width: 100%;
    margin-bottom: 16px;
  }

  h4 {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 28px;
    line-height: 114%;
    color: #212121;
    margin-bottom: 12px;
  }

  p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #797e87;
  }
}

@media screen and (min-width: 1436px) {
  .team-list {
    flex-direction: row;

    li {
      width: calc((100% - 64px) / 3);
      border-radius: 8px;
      padding: 8px;
    }
  }
}

/********** PAGE 4 ************** */

/* contact */

.contact {
  background-color: #fff;
  padding-top: 130px;
}

.contact-frame {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 28px;
}

.contact-flex {
  border-radius: 8px;
  padding: 32px 40px;
  background: var(--fea917);
}

.contact-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 36px;
  line-height: 111%;
  color: #212121;
  margin-bottom: 20px;
}

.contact-text {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  color: #212121;
  margin-bottom: 20px;
}

.contact-list {
  margin-bottom: 20px;

  p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #212121;
  }

  a:hover,
  a:focus {
    text-decoration: underline;
  }
}

.soc-list {
  display: flex;
  gap: 16px;

  a {
    display: block;
    transition: transform 0.3s ease;
  }

  a:hover {
    transform: scale(1.2);
  }
}

/* важно: у контейнера карты должна быть высота */
.map-frame {
  overflow: hidden;
  height: 356px;
  width: 100%;
  border-radius: 8px;
}

.leaflet-container {
  background: #fff;
}

.contact-desc {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 36px;
  line-height: 111%;
  text-align: center;
  color: #212121;
}

@media screen and (min-width: 1436px) {
  .contact-frame {
    flex-direction: row;
    gap: 40px;
    margin-bottom: 40px;
  }

  .map-frame {
    width: 755px;
    flex-shrink: 0;
  }

  .contact-flex {
    border-radius: 8px;
    padding: 32px 40px;
  }

  .contact-desc {
    font-size: 40px;
  }
}

/* footer */

.footer {
  padding: 40px 0;
  background: #0d1615;
}

.footer-logo {
  display: block;
  width: 202px;
  margin: 0 auto;
  transition: transform 0.3s ease;
  margin-bottom: 20px;
}

.footer-logo:hover {
  transform: scale(0.9);
}

.footer-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  text-align: center;
  color: var(--ffffff);
  transition: color 0.3s ease;

  a:hover {
    color: var(--fea917);
  }
}

.footer-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 125%;
  text-align: center;
  color: var(--ffffff);
  margin-bottom: 20px;
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  line-height: 143%;
  text-align: center;
  color: var(--ffffff);
}

@media screen and (min-width: 1436px) {
  .footer-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
  }

  .footer-logo {
    width: 139px;
    margin: 0;
  }

  .footer-list {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin: 0;
  }

  .footer-title {
    font-size: 16px;
    margin: 0;
  }

  .footer-text {
    font-size: 16px;
  }
}

/* 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: var(--fea917);
  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 #020202;
  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: #020202;
    transition: stroke 0.3s ease;
  }
}

#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTopBtn:hover {
  opacity: 1;
  border-color: var(--fea917);
  box-shadow: 2px 2px 10px var(--fea917);

  svg {
    stroke: var(--fea917);
  }
}

/* ********************* */

.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;
}
