@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("../fonts/WorkSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-primary: #65714d;
  --color-text: #141414;
  --color-bg: #f5f5f5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
p {
  margin: 0;
}

.header {
  background: var(--color-bg);
  border-top: 1px solid var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  margin-top: 20px;
}

.header__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 11.053px;
}

.header__logo-icon {
  width: 59.779px;
  height: 35px;
}

.header__logo-text {
  font-size: 19.895px;
  font-weight: 600;
  line-height: 1;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__link {
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.header__button {
  background: var(--color-primary);
  padding: 5px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__button-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-bg);
}

.main {
  background: var(--color-bg);
}

.main__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 50px 10px;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.main__title {
  font-size: 64px;
  font-weight: 600;
  line-height: normal;
  color: var(--color-text);
}

.main__content {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 50px;
  padding-bottom: 30px;
}

.article {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.article__image img {
  width: 100%;
  height: 100%;
}

.article__text {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-text);
}

.article__subtitle {
  font-size: 24px;
  font-weight: 700;
  line-height: 24px;
  color: var(--color-text);
}

.article > .article__text p + p {
  margin-top: 24px;
}

.article__form {
  background: rgba(63, 63, 63, 0.3);
  padding: 70px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article__form p {
  width: 815.072px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  color: var(--color-text);
}

.comments {
  width: 600px;
  flex-shrink: 0;
  border-left: 1px solid var(--color-primary);
  padding-left: 50px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.comments__title {
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  color: var(--color-text);
}

.comments__field {
  border: 1px solid var(--color-primary);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-end;
}

.comments__placeholder {
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--color-text);
}

.comments__post {
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
  padding: 5px 15px;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  cursor: pointer;
}

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

.comment {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-primary);
}

.comment--last {
  border-bottom: none;
}

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

.comment__name {
  font-size: 18px;
  font-weight: 700;
  line-height: 27px;
  color: var(--color-text);
}

.comment__time {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--color-primary);
}

.comment__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: var(--color-text);
}

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

.comment__like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--color-primary);
}

.comment__like img {
  width: 16px;
  height: 16px;
}

.footer {
  border-top: 1px solid var(--color-primary);
  background: var(--color-bg);
}

.footer__top {
  max-width: 1520px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 11.053px;
}

.footer__logo-icon {
  width: 59.779px;
  height: 35px;
}

.footer__logo-text {
  font-size: 19.895px;
  font-weight: 600;
  line-height: normal;
  color: var(--color-text);
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer__link {
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  color: var(--color-text);
}

.footer__text {
  border-top: 1px solid var(--color-primary);
  max-width: 1520px;
  margin: 0 auto;
  padding: 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #3f3f3f;
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.footer__text p + p {
  margin-top: 0;
}

.link {
  color: red;
  font-weight: 700;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .main__title {
    font-size: 48px;
  }
  .main__content {
    flex-direction: column;
  }
  .comments {
    width: 100%;
    padding-left: 0px;
    border-left: none;
  }
  .article {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .header__link {
    display: none;
  }
  .main__title {
    font-size: 32px;
    word-break: break-all;
  }
  .footer__top {
    flex-wrap: wrap;
  }
  .footer__nav {
    gap: 10px 40px;
    flex-wrap: wrap;
  }
}
