/* #region HEADER */
.header {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  max-width: 1344px;
  width: 100%;
  margin-inline: auto;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 44px;
}

.header__action {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header__wrapper {
  border-block: 1px solid #eaeaea;
  background: #e60505;
}

.header__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 14px 16px;
  max-width: 1312px;
  width: 100%;
  margin-inline: auto;
  color: #fff;
}
.header__news {
  flex-shrink: 0;
}
.header__nav {
  ul {
    display: flex;
    align-items: center;
    gap: 48px;
  }
}
.header__more {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 4px;
  border: 1px solid #fff;

  .header__section {
    display: none;
  }
}

@media (width < 1280px) {
  .header__nav ul {
    li {
      &:nth-last-child(-n + 2) {
        display: none;
      }
    }
  }
}

@media (width < 1024px) {
  .header__nav ul {
    li {
      &:nth-last-child(-n + 3) {
        display: none;
      }
    }
  }
}

@media (width < 992px) {
  .header__menu {
    span {
      display: none;
    }
  }
  .header__actions {
    gap: 4px;
  }
  .header__action {
    padding: 4px 12px;
    span {
      display: none;
    }
  }
  .header__nav ul {
    li {
      &:nth-last-child(-n + 5) {
        display: none;
      }
    }
  }
}

@media (width < 744px) {
  .header__nav {
    display: none;
  }
  .header__more {
    .header__section {
      display: block;
    }
    .header__more-text {
      display: none;
    }
  }
}
/* #endregion HEADER */

/* #region CONTENT */
.content__wrapper {
  padding-inline: 32px;
}
.content__title {
  margin-block: 20px;
}
.content__info-wrapper {
  margin-bottom: 20px;
}
.content__info {
  display: flex;
  align-items: flex-start;
  padding-inline: 16px;
  gap: 4px;
  margin-top: 10px;
  color: #18191a;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.content__author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  gap: 8px;
  padding-block: 12px 0;
  margin-bottom: 20px;
}

.content__author-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;

  img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }

  .content__author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;

    color: #666;
    font-size: 14px;
    line-height: 1.1;

    h3 {
      color: #18191a;
      font-size: 15px;
      font-weight: 700;
    }
  }
}
.content__date {
  color: #989898;
  font-size: 13px;
  line-height: 1.15;
}
.content__text {
  display: flex;
  flex-direction: column;
  gap: 25px;

  p {
    a {
      color: #d8232a;
      font-weight: 400;
      text-decoration-line: underline;
      text-decoration-style: solid;
      text-decoration-skip-ink: auto;
      text-decoration-thickness: auto;
      text-underline-offset: auto;
      text-underline-position: from-font;
    }
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 25px;
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 30px;
    margin-bottom: 18px;
  }
}

.content__experts {
  margin-block: 24px 20px;

  h2 {
    margin-bottom: 16px;
  }
}
.content__experts-wrapper {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 30px;
}
.content__expert-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid #989898;
  margin-bottom: 40px;

  img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
  }

  h3 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
  }

  p {
    color: #787878;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
  }
}

.content__expert-quote {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.5;
  padding-bottom: 16px;
  border-bottom: 1px solid #989898;
}

.content__registration {
  margin-block: 25px 55px;

  h2 {
    font-size: 36px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 30px;

    a {
      color: #e6463c;
    }
  }

  ul {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 32px;
    margin-bottom: 18px;
  }
}

.content__registration-warning {
  b {
    color: #d10a10;

    font-size: 18;
    font-weight: 700;
    line-height: 1.44;
  }
}

.content__comments-input {
  display: flex;
  padding: 12px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
  border-radius: 4px;
  border: 1px solid #e8e8e8;
  background: #fff;

  textarea {
    display: flex;
    height: 88px;
    border: none;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    resize: none;
    font-size: 14px;
    line-height: 1.3;
    outline: none;
    &::placeholder {
      color: #757575;
      line-height: 1.25;
    }
  }

  span {
    color: #b3b3b3;
    font-size: 14px;
    line-height: 1.3;
    align-self: end;
  }
}

.content__comments-btn {
  display: flex;
  padding: 12px 16px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  border-radius: 4px;
  opacity: 0.4;
  background: #e8e8e8;
  cursor: not-allowed;
  pointer-events: none;
  color: #b3b3b3;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.34;
  margin-top: 16px;
}

.content__comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.content__comment {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #18191a;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;

  &.content__comment-reply {
    padding-left: 32px;
  }
}
.content__comment-author {
  display: flex;
  align-items: center;
  justify-content: space-between;

  h4 {
    font-weight: 700;
  }

  span {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
  }
}

.content__share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
}
.content__share-link {
  display: flex;
  padding: 12px;
  gap: 4px;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  background: #d10a10;
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.32;

  &.content__share-whatsapp {
    background: #25d366;
  }
  &.content__share-facebook {
    background: #0866ff;
  }
  &.content__share-twitter {
    background: #18191a;
  }
}

@media (width <= 1024px) {
  .content__wrapper {
    padding-inline: 0;
  }
  .content__author {
    padding-inline: 15px;
  }
}

@media (width < 744px) {
  .content__date {
    font-size: 10px;
  }
  .content__expert-info {
    flex-direction: column;
    text-align: center;
  }
}
/* #endregion CONTENT */

/* #region NEWS */
.news {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 300px;
  margin-top: 32px;
}

.news__logg {
  display: flex;
  padding: 40px 5px 34px 5px;
  flex-direction: column;
  align-items: center;
  background: #f6f6f6;
  text-align: center;
  color: #292929;
  font-size: 14px;
  line-height: 1.4;

  h2 {
    color: #292929;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
  }
}
.news__btn {
  margin-block: 10px 16px;
  gap: 10px;
}
.news__join {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.32;

  img {
    display: inline;
    vertical-align: middle;
    margin-right: 8px;
  }
}
.news__latest {
  h2 {
    color: #18191a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-left: 1px solid #e8e8e8;
    padding-left: 15px;

    li {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding-bottom: 11px;
      border-bottom: 1px solid #e8e8e8;
      color: #18191a;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.4;

      &:last-child {
        padding-bottom: 0;
        border-bottom: none;
      }

      span {
        color: #666;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.15;
      }

      &:before {
        content: '';
        position: absolute;
        top: 5px;
        left: -19px;
        display: block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #666;
      }

      &:hover {
        opacity: 0.8;

        &:before {
          background: #d10a10;
        }
      }
    }
  }
}

.news__latest-btn {
  margin-top: 12px;
  color: #d10a10;
  background-color: #fff;
  border-color: #d10a10;

  &:hover {
    color: #fff;
    background-color: #d10a10;
  }
}

.news__most-read {
  h2 {
    color: #18191a;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
  }
}

.news__most-read-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.news__most-read-item {
  display: flex;
  gap: 12px;
  color: #18191a;
  font-size: 14px;
  line-height: 1.3;
  transition: color 0.3s ease;
  img {
    max-width: 118px;
  }

  &:hover {
    color: #d10a10;
  }
}
.news__wrapper {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
@media (width <= 1024px) {
  .news {
    margin-top: 0;
  }
  .news__wrapper {
    position: static;
  }
  .news__most-read-item {
    font-size: 18px;
  }
}

@media (width < 744px) {
  .news__most-read-item {
    font-size: 16px;
  }
}
/* #endregion NEWS */

/* #region FOOTER */
.footer {
  border-top: 1px solid #eaeaea;
  background: #fff;
}
.footer__container {
  max-width: 1312px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}
.footer__top {
  padding-block: 16px;
}
.footer__inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  justify-content: space-between;
  gap: 16px;
}
.footer__column {
  max-width: 180px;

  h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    line-height: 1.2;

    a {
      color: #0550c8;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}
.footer__bottom {
  padding-block: 16px;
  background: #000;
}
.footer__bottom-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}
@media (width <= 1024px) {
  .footer__inner {
    gap: 32px 16px;
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__column {
    max-width: 100%;
    &:nth-child(5) {
      grid-area: 2/2 span;
    }
    &:nth-child(6) {
      grid-area: 2/3 span;
    }
  }
}

@media (width < 744px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
  .footer__column {
    max-width: 100%;
    &:nth-child(5) {
      grid-area: unset;
    }
    &:nth-child(6) {
      grid-area: unset;
    }
  }
  .footer__bottom-wrapper {
    flex-direction: column;
  }
}
/* #endregion FOOTER */
