* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}
body {
  background: #fff;
}

.header {
  margin-top: 20px;
  margin-inline: auto;
  display: flex;
  padding: 25px 30px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  max-width: 1400px;
  background: #196dff;
  height: 102px;
  border-radius: 20px;
  box-shadow: 0 4px 24px 0 rgba(203, 212, 227, 0.4);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header__logo-image {
  width: 129.02px;
  height: 55.556px;
}

.header__logo-line {
  width: 1px;
  height: 55.556px;
  background: #ffffff;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.header__logo-title {
  color: #fff;
  font-family: Montserrat;
  font-size: 17px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}

.header__logo-subtitle {
  color: #fff;
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
}

.header__nav {
  display: flex;
  width: 562px;
  justify-content: space-between;
  align-items: center;
}

.header__nav-list {
  display: flex;
  padding: 8px 0;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  list-style: none;
}

.header__nav-item {
  color: #fff;
  font-family: Manrope;
  font-size: 17px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.header__nav-link {
  color: #fff;
  text-decoration: none;
  position: relative;
}

.header__nav-link:hover {
  color: #f4d943;
}

.header__nav-link:hover:after {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #f4d943;
  content: "";
}

.header__contact {
  display: flex;
  padding: 6px;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.header__contact-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

.header__contact-title {
  color: #fff;
  font-family: Montserrat;
  font-size: 17px;
  font-style: normal;
  font-weight: 800;
  line-height: normal;
}

.header__contact-subtitle {
  color: #fff;
  font-family: Manrope;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
}

.header__contact-im {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__contact-image {
  border-radius: 107.282px;
  border: 1.128px solid #fff;
  background: #fff;
}

.header__contact-image_tg {
  width: 37.155px;
  height: 37.155px;
  aspect-ratio: 1/1;
  background: url(images/tg.png) lightgray 50% / cover no-repeat;
}

.header__contact-image_mail {
  width: 37.155px;
  height: 37.155px;
  aspect-ratio: 1/1;
}

.header__contact-image_whatsapp {
  display: flex;
  width: 37.234px;
  height: 37.234px;
  padding: 9.799px 9.309px 9.309px 9.799px;
  align-items: flex-start;
  gap: 4.899px;
  border-radius: 440.933px;
  background: #32d951;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 1400px;
  margin-inline: auto;
}

.main__nav {
  display: flex;
  padding: 8px 0;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  list-style: none;
}

.main__nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  min-width: 0;
}

.main__nav-item {
  color: rgba(87, 87, 87, 0.8);
  font-family: Manrope;
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 25.5px */
}

.main__nav-item_last {
  color: #196dff;
}

.main__nav-link {
  color: inherit;
  text-decoration: none;
  position: relative;
}

.section {
  display: flex;
  align-items: flex-start;
  gap: 70px;
  align-self: stretch;
}

.section__article {
  display: flex;
  width: 950px;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  gap: 32px;
}

.article__title {
  color: #3a3a3a;
  font-family: Montserrat;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.article__title_span {
  color: #196dff;
}

.article__meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  align-self: stretch;
}

.article__author {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.article__author-image {
  display: flex;
  width: 47px;
  height: 47px;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 10px;
  aspect-ratio: 1/1;
  border-radius: 30px;
  background: url(images/author.png) lightgray no-repeat;
}

.article__author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.article__author-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article__author-name {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #494949;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%; /* 23.4px */
  letter-spacing: -0.54px;
}

.article__author-arrow {
  width: 8px;
  padding-top: 3px;
  height: 7px;
  stroke-width: 1px;
  stroke: rgba(73, 73, 73, 0.8);
}

.article__author-title {
  color: rgba(87, 87, 87, 0.7);
  font-family: Manrope;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 22.5px */
}

.article__info {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.article__info-item {
  display: flex;
  padding: 8px 12px;
  align-items: center;
  gap: 6px;
  border-radius: 30px;
  background: rgba(25, 109, 255, 0.07);
  color: rgba(87, 87, 87, 0.6);
  font-family: Manrope;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%; /* 21px */
}

.article__info-icon {
  fill: #196dff;
}

.article__info-icon_date {
  width: 13px;
  height: 13px;
}

.article__info-icon_views {
  width: 16px;
  height: 11px;
}

.article__info-icon_reading-time {
  width: 13px;
  height: 13px;
}

.article__image {
  align-self: stretch;
  border-radius: 20px;
  border: 1px solid rgba(58, 58, 58, 0.4);
  background-color: lightgray;
}

.article__subtitle {
  color: #3a3a3a;
  font-family: Montserrat;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.article__content {
  color: rgba(87, 87, 87, 0.9);
  font-family: Manrope;
  font-size: 19px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 28.5px */
}

.article__content_span {
  color: #575757;
  font-weight: 800;
}

.article__paragraph {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
}

.section__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.aside__article-content {
  display: flex;
  width: 380px;
  padding: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  border-radius: 25px;
  border: 1px solid rgba(25, 109, 255, 0.2);
  background: #fff;
  box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.1);
}

.aside__article-content_mobile {
  display: none;
}

.article-content__title {
  color: #196dff;
  font-family: Montserrat;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.article-content__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  list-style-type: decimal;
  padding-left: 20px;
}

.article-content__item {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 8px;
  color: rgba(87, 87, 87, 0.9);
  font-family: Manrope;
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%; /* 23.8px */

  align-self: stretch;
}

.article-content__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-content__item::marker {
  color: #196dff;
  line-height: 150%;
}

.article-content__link {
  color: rgba(87, 87, 87, 0.9);
}

.article-content__link:hover {
  color: #196dff;
}

.aside__related-paper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
}

.related-paper__maintitle {
  overflow: hidden;
  color: #196dff;
  text-overflow: ellipsis;
  font-family: Montserrat;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.related-paper__title {
  overflow: hidden;
  color: #494949;
  text-overflow: ellipsis;
  font-family: Montserrat;
  font-size: 19px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%; /* 24.7px */
  letter-spacing: -0.57px;
}

.related-paper__items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
}

.related-paper__item {
  display: flex;
  width: 380px;
  padding: 13px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 15px;
  border-radius: 25px;
  border: 1px solid rgba(58, 58, 58, 0.3);
  background: #f6f7fb;
}

.related-paper__image {
  align-self: stretch;
  aspect-ratio: 163/75;
  border-radius: 15px;
  border: 1px solid rgba(58, 58, 58, 0.4);
  background-color: lightgray;
}

.related-paper__info {
  display: flex;
  padding: 0 10px 10px 10px;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  align-self: stretch;
}

.related-paper__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  align-self: stretch;
  overflow: hidden;
  color: #494949;
  text-overflow: ellipsis;
  font-family: Montserrat;
  font-size: 19px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%; /* 24.7px */
  letter-spacing: -0.57px;
}

.related-paper__link {
  color: #196dff;
  text-align: right;
  font-family: Manrope;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 22.5px */
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

.related-paper__link-arrow {
  margin-left: 8px;
  margin-bottom: 1px;
  stroke-width: 1px;
  stroke: #196dff;
  width: 7px;
  height: 7px;
}

.advertising {
  position: relative;
  display: flex;
  width: 380px;
  height: 517px;
  padding: 32px;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
  border-radius: 25px;
  border: 1px solid rgba(58, 58, 58, 0.3);
  background: linear-gradient(0deg, #f6f7fb 0%, #f6f7fb 100%), #fff;
}

.advertising__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
}

.advertising__title {
  color: #47484a;
  font-family: Manrope;
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: 115%; /* 25.3px */
}

.advertising__divider {
  width: 316px;
  height: 1px;
  background: rgba(25, 109, 255, 0.3);
}

.advertising__subtitle {
  align-self: stretch;
  color: #47484a;
  font-family: Montserrat;
  font-size: 25px;
  font-style: normal;
  font-weight: 700;
  line-height: 110%; /* 27.5px */
  letter-spacing: -0.75px;
}

.advertising__subtitle-span {
  color: #196dff;
}

.advertising__image {
  width: 340px;
  height: 323.839px;
  position: absolute;
  left: 20px;
  bottom: 19.161px;
}

.advertising__tags {
  position: absolute;
  left: 28px;
  top: 164px;
  display: flex;
  gap: 4px;
  flex-direction: column;
  align-items: flex-start;
}

.advertising__tag {
  display: flex;
  padding: 9px 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 20px;
  background: #196dff;
  color: #fff;
  font-family: Montserrat;
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 100%; /* 22px */
}

.advertising__tag_price {
  color: #ffe014;
}

@media (max-width: 1400px) {
  .header {
    margin-inline: 20px;
  }
  .main {
    margin-inline: 20px;
  }
}

@media (max-width: 400px) {
  .header {
    padding: 13px 15px;
    height: 75px;
  }

  .header__logo-image {
    width: 115px;
    height: 37px;
  }

  .header__logo-line {
    display: none;
  }

  .header__logo-text {
    display: none;
  }

  .header__nav {
    display: none;
  }

  .header__contact-title {
    display: none;
  }

  .header__contact {
    flex-direction: column-reverse;
    gap: 0;
  }

  header__contact-image_tg {
    width: 30px;
    height: 30px;
  }

  .header__contact-image_mail {
    width: 30px;
    height: 30px;
  }

  .header__contact-image_mail svg {
    width: 30px;
    height: 30px;
  }

  .header__contact-image_whatsapp {
    width: 30.577px;
    height: 30.577px;
    padding: 6.046px 7.644px 7.644px 8.046px;
  }

  .main {
    gap: 8px;
  }

  .main__nav {
    min-width: 0;
  }

  .main__nav-item {
    font-size: 14px;
    flex: 0 0 auto;
  }

  .main__nav-item_last {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
  }

  .main__nav-item_last .main__nav-link {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .section {
    flex-direction: column;
    gap: 50px;
  }

  .section__article {
    display: flex;
    width: 100%;
    gap: 20px;
  }

  .article__title {
    font-size: 24px;
  }

  .article__meta {
    flex-direction: column-reverse;
    gap: 20px;
    align-items: flex-start;
  }

  .article__info-item {
    padding: 6px 10px;
    font-size: 14px;
  }

  .article__info-text {
    display: none;
  }

  .aside__article-content_mobile {
    display: flex;
    width: 100%;
  }

  .aside__article-content_decktop {
    display: none;
  }

  .article-content__title {
    font-size: 20px;
  }

  .article-content__item {
    font-size: 16px;
  }

  .article__subtitle {
    font-size: 20px;
  }

  .article__content {
    font-size: 16px;
  }

  .section__aside {
    width: 100%;
  }

  .aside__related-paper {
    width: 100%;
  }
  .related-paper__maintitle {
    font-size: 24px;
  }

  .related-paper__items {
    width: 100%;
  }
  .related-paper__item {
    width: 100%;
  }

  .related-paper__image {
    width: 100%;
  }

  .related-paper__title {
    font-size: 17px;
  }

  .advertising {
    width: 100%;
    height: 457px;
  }

  .advertising__title {
    font-size: 20px;
  }

  .advertising__subtitle {
    font-size: 22px;
  }

  .advertising__image {
    width: 305.997px;
    height: 291.456px;
    right: 20.003px;
    bottom: 20.544px;
  }

  .advertising__tags {
    left: 24px;
    top: 137px;
  }

  .advertising__tag {
    padding: 9px 10px;
    font-size: 18px;
  }
}
