@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-primary: rgba(34, 34, 34, 1);
  --color-bg: rgba(255, 255, 255, 1);
  --color-text: rgba(34, 34, 34, 1);
  --text-muted: rgba(118, 118, 118, 1);

  /* Typography */
  --font-base: "Helvetica", sans-serif;
  --font-size-base: 18px;
  --font-weight-normal: 400;
  --font-weight-bold: 700;

  /* Borders & Radius */
  --border-radius: 8px;
  --border-color: rgba(230, 230, 230, 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);
}

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

.container {
  width: 100%;
  max-width: 1560px;
  padding: 0 20px;
  margin: 0 auto;
}

.link {
  color: #180df4;
}

.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 {
  padding: 40px 0px;
  border-bottom: 1px solid var(--border-color);
}

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

.header__logo {
  width: auto;
  height: 24px;
}

.header__logo:hover {
  opacity: 0.8;
}

.header__menu-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}

.header__menu-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.header__nav-list {
  display: flex;
  gap: 25px;
}

.header__nav-link {
  font-size: 16px;
  font-weight: 400;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.header__nav-link--active,
.header__nav-link:hover {
  border-bottom: 1px solid var(--color-text);
}

.main {
  padding: 100px 0px;
}

/* Article */
.article__inner {
  display: flex;
  flex-direction: column;
  gap: 75px;
}

.article-meta {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 0px 100px;
}

.article-meta__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
}

.article-meta__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-meta__label {
  font-size: 16px;
  font-weight: 400;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  text-transform: uppercase;
}

.article-meta__value {
  font-size: 16px;
  font-weight: 400;
}

.article-meta__title {
  font-size: 64px;
  font-weight: 400;
}

.article-meta__author {
  display: flex;
  gap: 20px;
}

.article-meta__author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.article-meta__author-info {
  display: flex;
  flex-direction: column;
}

.article-meta__author-name {
  font-weight: 700;
  font-size: 16px;
  line-height: 26px;
}

.article-meta__author-date {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 26px;
}

.article__content {
  display: flex;
  gap: 140px;
  padding: 0px 100px;
}

/* Sidebar */
.article__aside {
  height: 100%;
  flex: 0 0 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: sticky;
  top: 20px;
}

.article__social-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.article__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.18s;
}

.article__social-link:hover {
  background: #f3f3f3;
}

.article__social-link img {
  width: 40px;
  height: 40px;
}

.article__text {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.article__title {
  font-size: 48px;
  font-weight: 400;
}

.article__text-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article__text h3 {
  font-size: 48px;
  font-weight: 400;
}

.article__list {
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Comments */
.comments {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.comments__title {
  font-size: 48px;
  font-weight: 400;
}

.comments__list {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.comments__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.comments__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comments__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.comments__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.comments__author {
  font-size: 16px;
  line-height: 26px;
  font-weight: 700;
}

.comments__date {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 26px;
}

.comments__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0px;
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.footer__logo {
  height: 25px;
}

.footer__body {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.footer__desc,
.footer-license {
  font-size: 16px;
  line-height: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.footer__copy {
  font-size: 16px;
  line-height: 26px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  row-gap: 20px;
  column-gap: 30px;
}

.footer__link {
  font-size: 16px;
  font-weight: 700;
  line-height: 26px;
}

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

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

  .header {
    padding: 30px 0px;
  }

  .main {
    padding: 75px 0px;
  }

  .article-meta {
    padding: 0px 50px;
  }

  .article__inner {
    gap: 50px;
  }

  .article__content {
    padding: 0px 50px;
    gap: 100px;
  }
}

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

  .header__nav {
    display: none;
  }

  .header__menu-btn {
    display: block;
  }

  .main {
    padding: 25px 0px;
  }

  .article__aside {
    position: static;
  }

  .article-meta__row {
    flex-direction: column;
    gap: 20px;
  }

  .article-meta {
    padding: 0px;
    gap: 40px;
  }

  .article-meta__item {
    gap: 5px;
  }

  .article-meta__label {
    padding-bottom: 5px;
    font-size: 14px;
  }

  .article-meta__value {
    font-size: 14px;
  }

  .article-meta__title {
    font-size: 48px;
  }

  .article-meta__author {
    align-items: center;
  }

  .article-meta__author-name,
  .article-meta__author-date {
    line-height: 1.1;
  }

  .article__content {
    flex-direction: column;
    padding: 0;
    gap: 40px;
  }

  .article__social-list {
    flex-direction: row;
  }

  .article__title,
  .article__text h3 {
    font-size: 32px;
    line-height: 1;
  }

  body {
    font-size: 14px;
  }

  .comments__item {
    gap: 10px;
  }

  .comments__author,
  .comments__text {
    font-size: 14px;
  }

  .footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 20px;
  }
}
