@import url(./assets_main/css/fonts.css);

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --color-accent: rgba(60, 152, 202, 1);
  --color-bg: rgba(255, 255, 255, 1);
  --color-text: rgba(51, 51, 51, 1);

  /* Typography */
  --font-base: "Public Sans", sans-serif;
  --font-size-base: 16.6px;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --line-height-base: 1.4;

  /* Borders & Radius */
  --border-color: rgba(237, 237, 237, 1);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background-color: transparent;
}

ul,
ol {
  list-style: none;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.container {
  width: 100%;
  max-width: 1282px;
  padding-left: 42px;
  margin: 0 auto;
}

.link {
  color: var(--color-accent);
}

.link:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
  visibility: hidden;
}

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  zoom: 1;
}

/* Animations */
.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Header */
.header {
  position: relative;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logos {
  display: flex;
  gap: 62px;
  align-items: flex-start;
}

.header__logo-main {
  height: 90px;
}

.header__logo-network {
  height: 110px;
}

.header__socials {
  display: flex;
  gap: 9px;
}

.header__social-link img {
  width: 38px;
  height: 38px;
  transition: scale 0.2s;
}

.header__social-link img:hover {
  scale: 1.1;
}

.header__nav-bar {
  font-family: "Poppins", sans-serif;
  background: var(--color-accent);
  width: 100%;
}

.header__nav-inner {
  display: flex;
  align-items: center;
}

.header__menu-toggle,
.header__search {
  width: 26px;
  flex-shrink: 0;
}

.header__nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
}

.header__nav-link {
  color: rgba(240, 240, 240, 1);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  transition: opacity 0.2s;
  padding: 19px 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__nav-link:hover {
  opacity: 0.7;
}

/* Article */
.article {
  padding: 20px 0;
}

.article__breadcrumbs {
  font-size: 12px;
  color: rgba(153, 153, 153, 1);
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 9px;
  margin-bottom: 35px;
}

.article__breadcrumb-link:hover {
  text-decoration: underline;
}

.article__breadcrumb-current {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article__category {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 1px;
  margin-bottom: 17px;
}

.article__title {
  font-family: "Inter", sans-serif;
  font-size: 35px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.17px;
}

.article__excerpt {
  font-size: 17px;
  color: rgba(119, 119, 119, 1);
  margin-bottom: 19px;
}

.article__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(138, 138, 138, 1);
  margin-bottom: 20px;
  gap: 5px;
}

.article__author {
  display: flex;
  align-items: center;
  gap: 11px;
}

.article__author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.article__author-name {
  font-weight: 500;
  color: rgba(25, 25, 25, 1);
}

.article__readtime {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 17px;
}

.article__socials {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.article__social-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 31px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s;
}

.article__social-link--linkedin {
  background: rgba(2, 102, 154, 1);
  color: #fff;
}
.article__social-link--facebook {
  background: rgba(26, 109, 212, 1);
  color: #fff;
}
.article__social-link--twitter {
  background: rgba(85, 172, 239, 1);
  color: #fff;
}
.article__social-link--share {
  border: 1px solid rgba(221, 221, 221, 1);
  padding: 13px 14px;
}

.article__social-link img {
  height: 16px;
}

.article__social-link:hover {
  opacity: 0.85;
  box-shadow: 0 2px 6px #0001;
}

.article__cover {
  width: 100%;
  overflow: hidden;
}

.article__cover img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.article__content-wrapper {
  margin: 32px 0px 65px 0px;
  display: flex;
}

.article__content-container {
  padding: 0;
  padding-right: 32px;
  display: flex;
  gap: 32px;
  position: relative;
  height: 100%;
}

.article__content {
  display: flex;
  flex-direction: column;
  gap: 39px;
}

.article__list {
  display: flex;
  flex-direction: column;
  gap: 39px;
  padding-left: 40px;
}

.share-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  height: 100%;
  position: sticky;
  top: 10px;
}

.share-block__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.77px;
}

.share-block__list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.share-block__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0);
  box-shadow: 1px 3px 4px -1px rgba(0, 0, 0, 0.12),
    -1px -1px 2px 0px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s, background 0.2s;
}

.share-block__item:hover {
  background: #e6ebf2;
  box-shadow: 0 4px 12px #0002;
}

.share-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0px;
  border-bottom: 1px solid rgba(237, 237, 237, 1);
}

.share-horizontal__label {
  font-size: 13px;
  font-weight: 500;
}

.share-horizontal__buttons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.share-horizontal__button {
  width: 77px;
  height: 32px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s, opacity 0.2s;
}

.share-horizontal__button img {
  display: block;
}

.share-horizontal__button--facebook {
  background: rgba(26, 109, 212, 1);
}

.share-horizontal__button--linkedin {
  background: rgba(2, 102, 154, 1);
}

.share-horizontal__button--x {
  background: rgba(85, 172, 239, 1);
}

.share-horizontal__button--telegram {
  background: rgba(0, 136, 204, 1);
}

.share-horizontal__button--link {
  background: rgba(34, 36, 51, 1);
}
.share-horizontal__button--link img {
  filter: invert(1);
}

.share-horizontal__button--email {
  background: rgba(0, 0, 0, 1);
}
.share-horizontal__button--email img {
  filter: invert(1);
}

.share-horizontal__button:hover {
  opacity: 0.8;
  box-shadow: 0 4px 12px #0002;
}

.author-block {
  margin: 36px 0px 45px 0px;
}

.author-block__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  position: relative;
}

.author-block__title {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.author-block__info {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.author-block__details {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.author-block__author {
  display: flex;
  align-items: flex-start;
  gap: 25px;
}

.author-block__avatar {
  width: 95px;
  height: 95px;
  object-fit: cover;
}

.author-block__name {
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.author-block__socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.author-block__social img {
  transition: opacity 0.2s;
}

.author-block__social:hover img {
  opacity: 0.7;
}

/* Comments */
.comments-block {
  margin: 45px 0px 64px 0px;
}

.comments-block__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.comments-block__title {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 2px solid rgba(21, 43, 75, 1);
  padding-bottom: 15px;
  text-transform: uppercase;
  position: relative;
}

.comments-block__title::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 4px;
  width: 40px;
  background-color: rgba(60, 152, 202, 1);
}

.comments-block__count {
  color: rgba(60, 152, 202, 1);
  font-weight: 700;
  font-size: 18px;
}

.comments-block__comments {
  padding: 0px 32px;
  display: flex;
  flex-direction: column;
  gap: 39px;
}

.comment {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid rgba(237, 237, 237, 1);
  padding-bottom: 24px;
}

.comment.comment--reply {
  margin-left: 74px;
}

.comment__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment__author {
  font-weight: 700;
}

.comment__date {
  font-size: 10px;
  line-height: 24px;
  color: rgba(138, 138, 138, 1);
  font-weight: 300;
}

.comment__content {
  line-height: 24px;
}

.comment__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.comment__action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 300;
  color: rgba(138, 138, 138, 1);
  font-size: 10px;
  transition: opacity 0.18s;
}
.comment__action:hover {
  opacity: 0.7;
}

.comment__action img {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
}

.footer {
  background: rgba(247, 247, 247, 1);
  padding: 32px 0;
}

.footer__container {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.footer__menu {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.footer__menu-link {
  text-transform: uppercase;
  transition: color 0.15s;
  font-weight: 600;
  letter-spacing: 0.91px;
}

.footer__menu-link:hover {
  color: var(--color-accent);
}

.footer__menu-divider {
  width: 1px;
  height: 18px;
  background: var(--color-text);
  display: inline-block;
}

.footer__desc {
  text-align: center;
  font-weight: 400;
}

.footer__desc p {
  margin: 0 0 40px 0;
}

.footer__desc p:last-child {
  margin: 0;
}

.footer__link {
  color: var(--color-accent);
  transition: color 0.15s;
}

.footer__link:hover {
  color: var(--color-accent);
}

.footer__copyright {
  text-align: center;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .header__nav-link {
    font-size: 12px;
    padding: 17px 10px;
  }

  .comments-block__comments {
    padding: 0px 0px 0px 11px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .header__logos {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    gap: 35px;
  }

  .header__logo-main,
  .header__logo-network {
    max-height: 35px;
  }

  .header__nav,
  .header__socials {
    display: none;
  }

  .header__nav-inner {
    height: 65px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(34, 34, 34, 1);
  }

  .article__title {
    font-size: 29px;
  }

  body {
    font-size: 16px;
  }

  .article__social-link {
    flex: 1;
    align-items: center;
    justify-content: center;
  }

  .article__social-link.article__social-link--share {
    width: auto;
  }

  .article__social-link span {
    display: none;
  }

  .share-block {
    display: none;
  }

  .article__content {
    gap: 32px;
  }

  .share-horizontal__label {
    display: none;
  }

  .share-horizontal__buttons {
    width: 100%;
  }

  .share-horizontal__button {
    flex: 1;
  }

  .author-block__details {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }

  .comments-block__comments {
    padding: 0;
  }

  .footer__menu-divider {
    display: none;
  }
}

img,
.clickable {
  cursor: pointer;
}

#form {
  scroll-margin-top: 50px;
}
