.main-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999999900999999999999999;
  padding: 20px 0;
  border-radius: 0 0 16px 16px;
  background: #fff;
}

.cor__header__ex__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cor__header__ex__title {
  width: 91px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.page-nav {
  display: none;
}

.menu-svg {
  fill: none;
  stroke: #000;
}

.cor__page__nav__ex__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.cor__page__nav__ex__link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 140%;
  text-align: center;
  color: #292b2d;
  transition: color 0.3s ease;
}

.cor__page__nav__ex__link:hover,
.page-cor__hero__ex__link:focus {
  color: #0368f5;
}

.active-link {
  color: #0368f5;
}

.search-container {
}

.search-input {
  width: 0;
  opacity: 0;
  transform: scaleX(0.85);
  transition: width 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  background: #fff;
  color: #000;
}
.search-input.active {
  width: 160px;
  opacity: 1;
  transform: scaleX(1);
}

/* подсветка найденного */
mark.find-highlight {
  background: #ffe58a;
  color: inherit;
  padding: 0 0.1em;
  border-radius: 2px;
}

.header-subscribe {
  display: none;
}

@media screen and (min-width: 1436px) {
  .main-section {
    padding: 24px 0;
  }

  .cor__header__ex__title {
    width: 236px;
  }

  .header-subscribe {
    display: inline-block;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
    text-transform: capitalize;
    transition: background-color 0.3s ease;
    border-radius: 1000px;
    padding: 16px 32px;
    background: #292b2d;
  }

  .header-subscribe:hover,
  .header-subscribe:focus {
    background-color: #000;
  }

  .search-container {
    display: flex;
    align-items: center;
    gap: 48px;
  }

  .page-nav {
    display: block;
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  overflow: hidden;
  top: 90px;
  left: 50%;
  border-radius: 40px;
  padding: 40px;
  z-index: 88888888;
  background: #fff;
  transform: translateX(-50%) translateY(-120%);
  transition: transform 2s ease;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 999999;
  bottom: 20px;
  border-radius: 7px;
  padding: 20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 5px 15px 20px 0 rgba(0, 0, 0, 0.25);
  background: #fff;
  transition: transform 0.4s ease;
}

.cor__popup__ex__text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 143%;
  color: #161616;
  margin-bottom: 24px;

  a {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    color: #6e7191;
  }
}

.cor__popup__ex__btn {
  font-family: var(--third-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 143%;
  color: #161616;

  border: 1px solid #161616;
  border-radius: 8px;
  padding: 14px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.cor__popup__ex__btn:hover {
  background: #161616;
  color: #fff;
}

.cor__popup__ex__wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
}

@media screen and (min-width: 1436px) {
  .page-popup {
    padding: 20px 88px;
  }

  .cor__popup__ex__text {
    font-size: 16px;
    margin: 0;
  }

  .cor__popup__ex__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
  }

  .cor__popup__ex__wrap {
    flex-shrink: 0;
  }
}

/* hero  */

.page-cor__hero__ex__title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 58px;
  line-height: 110%;
  color: #fff;
  margin-bottom: 24px;

  span {
    color: #c4c4c4;
  }
}

.page-hero-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 156%;
  color: #fff;
  margin-bottom: 36px;
}

.page-cor__hero__ex__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 335px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 100px;
  padding: 16px;
  background-color: #fff;
  background-image: linear-gradient(
    180deg,
    #06b7f4 0%,
    #0368f5 33.17%,
    #7a06e9 100%
  );
  transition: background-image 0.3s ease;
  border: 1px solid #0368f5;

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    line-height: 140%;
    color: #fff;
    transition: color 0.3s ease;
  }

  div {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 73px;
    background-color: #fff;
    transition: background-image 0.3s ease;
  }

  svg {
    transform: rotate(90deg);
  }
}

.page-cor__hero__ex__link:hover {
  background-image: none;

  div {
    background-image: linear-gradient(
      180deg,
      #06b7f4 0%,
      #0368f5 33.17%,
      #7a06e9 100%
    );
  }

  p {
    color: #000;
  }
}

.page-hero-image {
  width: 100%;
  margin-top: 40px;
}

@media screen and (min-width: 1436px) {
  .page-home-container {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 0;
  }

  .page-cor__hero__ex__title {
    font-size: 88px;
    margin-bottom: 24px;
  }

  .page-hero-text {
    font-size: 20px;
    margin-bottom: 36px;
  }

  .page-cor__hero__ex__link {
    width: 278px;
    margin: 0;
  }
  .page-hero-image {
    margin: 0;
    width: auto;
    flex-shrink: 0;
  }
}

/* about  */

.about-content {
  padding-top: 49px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #f8f8f8;
  margin-top: 48px;

  h2 {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #000;
    margin-bottom: 40px;
    padding: 0 20px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 24px;
    line-height: 133%;
    color: #000;
    margin-bottom: 49px;
    padding: 0 20px;
  }
}

.about-image {
  width: 100%;
}

@media screen and (min-width: 1436px) {
  .about-content {
    padding: 32px;

    display: flex;
    align-items: center;
    gap: 68px;

    h2 {
      font-size: 16px;
      margin-bottom: 40px;
    }

    p {
      font-size: 28px;
      margin: 0;
    }
  }

  .about-image {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* top articles  */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 60px;
}

.news-item {
  border: 1px solid #fff;
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.4s ease;
}

.thumb {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  cursor: pointer;
}
.news-item:hover,
.news-item:focus {
  box-shadow: 2px 2px 10px #fff;
  /* transform: translateY(-8px); */

  .article-img {
    transform: scale(1.1);
  }
}

.article-source {
  display: inline-block;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 133%;
  color: #fff;
  padding: 14px 16px;
  border: 1px solid #fff;
  border-radius: 100px;
  margin-bottom: 24px;
}

.article-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  color: #fff;
  margin-bottom: 24px;
}

.article-img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 24px;
  transition: transform 0.4s ease;
}

.article-desc {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #808080;
}

.article-date {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  color: #808080;
  margin-bottom: 8px;
}

.article-raiting {
  display: flex;
  gap: 8px;
  flex-shrink: 0;

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #808080;
  }
}

.article-author {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 143%;
  color: #fff;
}

.raiting-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media screen and (min-width: 768px) {
  .news-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .news-item {
    width: calc((100% - 12px) / 2);
  }
}

@media screen and (min-width: 1436px) {
  .news-item {
    width: calc((100% - 36px) / 4);
  }
}

/* more articles  */

.articles-swiper {
  padding: 10px 0;

  .swiper-slide {
    height: 796px;
  }
}

.button-cover {
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 60px;
  margin-bottom: 20px;

  h2 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    line-height: 140%;
    color: #fff;
  }
}

.navBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #fff;
  transition: border-color 0.3s ease;

  svg {
    fill: white;
    transition: fill 0.3s ease;
  }
}

#prevBtn {
  svg {
    transform: scaleX(-1);
  }
}

.navBtn:hover,
.navBtn:focus {
  border-color: #0368f5;
  box-shadow: 2px 2px 10px #0368f5;

  svg {
    fill: #0368f5;
  }
}

/* main-title  */

.main-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 48px;
  line-height: 117%;
  color: #c4c4c4;
  margin: 60px 0;

  span {
    font-weight: 600;
    color: #fff;
  }
}

@media screen and (min-width: 1436px) {
  .main-title {
    font-size: 76px;
    margin: 88px 0;
  }
}

/* subscribe  */

.subscribe {
  padding: 36px 20px;
  border-radius: 16px;
  background: #f8f8f8;

  h3 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 44px;
    line-height: 118%;
    text-align: center;
    color: #0c0c0c;
    margin-bottom: 40px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 24px;
    line-height: 133%;
    color: #0c0c0c;
    margin-bottom: 40px;
  }
}

#consultation-form {
  display: flex;
  flex-direction: column;
  gap: 12px;

  input,
  textarea {
    border: 1px solid #808080;
    border-radius: 1000px;
    padding: 24px;
    resize: none;
    outline: none;
    width: 100%;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    color: #000;
    transition: background-color 0.3s ease;
  }

  button {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    color: #fff;
    padding: 24px;
    border-radius: 1000px;
    background: #151515;
    opacity: 0.8;
    margin-top: 12px;
    width: 100%;
  }

  button:hover,
  button:focus {
    background: #000;
  }

  input::placeholder,
  textarea::placeholder {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    color: #808080;
  }

  .btn-opacity {
    opacity: 1;
  }
}

.agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  #agree {
    border: 1px solid #908f9c;
    border-radius: 100px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 100%;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    color: #808080;
  }
}

.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 {
    padding: 64px 56px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    h3 {
      font-size: 64px;
      margin-bottom: 40px;
      flex-shrink: 0;
      text-align: start;
    }

    p {
      font-size: 32px;
      margin-bottom: 0;
    }
  }

  #consultation-form {
    display: flex;
    flex-direction: column;

    button {
      margin: 0;
      width: auto;
    }
  }

  .form-row {
    display: flex;
    gap: 12px;
  }
}

/* page 2  */

/* all  */

.all-articles-content {
  padding: 111px 12px;
  border-radius: 8px;
  background-image: linear-gradient(
      0deg,
      rgba(6, 15, 26, 0.6) 0%,
      rgba(6, 15, 26, 0.6) 100%
    ),
    url(../images/all.png);
  background-position: center;
  background-size: cover;

  h1 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 58px;
    line-height: 110%;
    text-align: center;
    color: #fff;
    margin-bottom: 24px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    text-align: center;
    color: #fff;
  }
}

#pagerButtons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px 17px;
  border-radius: 4px;
  border: 1px solid #fff;
  border-radius: 12px;
  margin-top: 20px;

  button {
    border: 1px solid #bbb;
    border-radius: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-family: var(--second-family);
    font-weight: 400;
    font-size: 12px;
    text-align: center;
    color: #fff;

    svg {
      fill: none;
      stroke: #fff;
    }
  }
}

.first {
  svg {
    transform: rotate(-90deg);
  }
}

.last {
  svg {
    transform: rotate(90deg);
  }
}

@media screen and (min-width: 1436px) {
  .all-articles-content {
    padding: 173px;

    h1 {
      font-size: 88px;
    }

    p {
      font-size: 20px;
    }
  }

  .all-item {
    width: calc((100% - 24px) / 3);
  }
}

/* page 3  */

/* about  */

.about-container {
  background-image: linear-gradient(
      0deg,
      rgba(6, 15, 26, 0.6) 0%,
      rgba(6, 15, 26, 0.6) 100%
    ),
    url(../images/about-page.png);
}

.about-list {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-top: 44px;
  margin-bottom: 84px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ddd;

  li {
    width: 57px;
  }
}

.about-text {
  padding: 40px 16px;
  border-radius: 16px;
  background-color: #f8f8f8;
  display: flex;
  flex-direction: column;
  gap: 32px;

  h4 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 125%;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    color: #242424;
    margin-bottom: 24px;
  }
  p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 24px;
    line-height: 133%;
    color: #242424;
    margin-bottom: 16px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 175%;
    color: #242424;
  }
}

@media screen and (min-width: 768px) {
  .about-list {
    li {
      width: 87px;
    }
  }
}

@media screen and (min-width: 1436px) {
  .about-container {
    div {
      max-width: 600px;
    }
  }

  .about-list {
    margin-bottom: 112px;
    li {
      width: 140px;
    }
  }

  .about-text {
    padding: 64px 112px;
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;

    h4 {
      font-size: 16px;
    }

    P {
      font-size: 28px;
      margin-bottom: 32px;
    }

    span {
      font-size: 16px;
    }
  }
}

/* page 4  */

/* contact */

.contact-container {
  display: flex;
  flex-direction: column;
  gap: 32px;

  .contact-flex {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 0;
    border: none;
  }

  div {
    padding-bottom: 40px;
    border-bottom: 1px solid #bbb;
  }

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 156%;
    color: #fff;
    margin-bottom: 28px;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  li {
    border: 1px solid #424242;
    border-radius: 6px;
    padding: 14px 20px;
    background: #1a1a1a;
  }

  a {
    display: flex;
    align-items: center;
    gap: 5px;

    font-family: var(--second-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 143%;
    color: #808080;
    transition: color 0.3s ease;
  }

  a:hover,
  a:focus {
    color: #fff;
  }

  img {
    width: 20px;
    transition: transform 0.3s ease;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #808080;
    margin-bottom: 20px;
  }
}

/* важно: у контейнера карты должна быть высота */
.map-frame {
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.leaflet-container {
  background: #0d0d0d;
}

.social-list {
  display: flex;
  flex-direction: row;
  gap: 12px;

  a {
    border: 1px solid #424242;
    border-radius: 6px;
    padding: 12px;
    width: calc((100% - 24px) / 3);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
  }

  a:hover,
  a:focus {
    img {
      transform: scale(1.2s);
    }
  }
}

.contact-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 32px;
  line-height: 125%;
  text-align: center;
  color: #fff;
  margin-top: 60px;
}

@media screen and (min-width: 768px) {
  .contact-container {
    /* width: 100%; */

    .contact-flex {
      /* width: 100%; */
      display: flex;
      flex-direction: row;
      gap: 32px;
      align-items: flex-start;
      padding-bottom: 40px;
      border-bottom: 1px solid #bbb;

      div {
        width: calc((100% - 32px) / 2);
        padding: 0;
        border: none;
      }
    }
  }

  .map-frame {
    height: 250px;
  }
}

@media screen and (min-width: 1436px) {
  .contact-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    padding: 0;
    border: none;

    .contact-flex {
      gap: 30px;
      align-items: flex-start;
      padding: 0;
      border: none;

      .contact-wrap {
        width: 325px;
        padding-right: 10px;
        border-right: 1px solid #bbb;
      }
    }

    .contact-map-wrap {
      display: flex;
      align-items: center;
      gap: 30px;
      padding: 0;
      border: none;

      div {
        padding: 0;
        border: none;
      }

      .map-frame {
        display: block;
        border-radius: 16px;
        width: 465px;
        height: 216px;
      }
    }

    .social-wrapper {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 30px;
      padding: 0;
      border: none;

      p {
        margin: 0;
      }
    }

    .social-list {
      gap: 10px;

      a {
        width: 144px;
      }
    }
  }

  .contact-title {
    font-size: 40px;
  }
}

/* footer */

.footer {
  padding: 40px 0;
}

.footer-title {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 140%;
  text-align: center;
  color: #ddd;
  margin-bottom: 10px;
}
.footer-logo {
  margin: 0 auto;
  margin-bottom: 10px;
}

.cor__footer__ex__list {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;

  font-family: var(--second-family);
  font-weight: 500;
  font-size: 14px;
  line-height: 143%;
  text-align: center;
  color: #ddd;

  a {
    transition: color 0.3s ease;
  }

  a:hover {
    color: #0368f5;
  }
}

.cor__footer__ex__text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #fff;
  text-align: center;
  margin-bottom: 32px;
}

@media screen and (min-width: 1436px) {
  .footer-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer-logo {
    width: 236px;
    margin: 0;
  }

  .cor__footer__ex__text {
    font-size: 16px;
    margin: 0;
  }

  .cor__footer__ex__list {
    font-size: 16px;
    gap: 24px;
    margin: 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 #f8f8f8;
  border-top-color: #0368f5;
  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 #0368f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 7;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;

  svg {
    stroke: #0368f5;
  }
}

#scrollTopBtn.show {
  opacity: 0.5;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTopBtn:hover {
  opacity: 1;
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateX(-50%) translateY(0);
}

.click {
  background-image: url(../img/minus.png);
  transform: rotate(180deg);
}

.cor__popup__ex__click {
  transform: translateY(130%) translateX(-50%);
}

.overflow {
  overflow: hidden;
}
