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

:root {
  /* Colors */
  --color-primary: rgba(39, 97, 65, 1);
  --color-bg: rgba(247, 243, 240, 1);
  --color-text: rgba(56, 60, 61, 1);

  /* Typography */
  --font-base: "Gilroy", sans-serif;
  --font-size-base: 16px;
  --font-weight-normal: 500;
  --font-weight-bold: 700;

  /* Borders & Radius */
  --border-radius: 8px;
  --border-color: rgba(56, 60, 61, 1);
}

html,
body {
  height: 100%;
  font-family: var(--font-base);
  -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-color: var(--color-bg);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 70px;
}

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

.container {
  max-width: 1160px;
  padding: 0 20px;
  margin: 0 auto;
}

.link {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  text-decoration: underline;
}

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

.uppercase {
  text-transform: uppercase;
}

.logo {
  height: 47px;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-text);
}

/* Header */
.header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

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

.header__nav {
  display: flex;
  gap: 100px;
}

.header__link {
  font-size: 20px;
}

.header__link:hover {
  opacity: 0.7;
}

.burger {
  display: none;
}

/* Main */
.main {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.article__container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

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

.article__date {
  line-height: 1.5;
}

.article__title {
  font-size: 48px;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  text-align: center;
}

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

.article__content p {
  line-height: 1.5;
}

.article__content h3 {
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  font-size: 20px;
  text-transform: uppercase;
}

.article__content ul {
  padding-left: 20px;
}

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

/* COMMENTS */
.comments__container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.comments__title {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  text-transform: uppercase;
}

.comments__form {
  border: 1px solid rgba(56, 60, 61, 0.4);
  border-radius: 5px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.comments__input {
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

.comments__input::placeholder {
  color: rgba(56, 60, 61, 0.4);
}

.comments__submit {
  display: inline-block;
  align-self: flex-end;
  padding: 10px 20px;
  background-color: var(--color-primary);
  color: rgba(247, 243, 240, 1);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  transition: all 0.2s;
}

.comments__submit:hover {
  opacity: 0.7;
}

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

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

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

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

.comment__avatar {
  width: 30px;
  height: 30px;
  background-color: var(--color-primary);
  color: rgba(247, 243, 240, 1);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.comment__author-name {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  font-size: 20px;
  text-transform: uppercase;
}

.comment__date {
  line-height: 1.4;
  text-transform: uppercase;
}

.comment__text {
  line-height: 1.4;
}

.comment__reactions {
  display: flex;
  align-items: center;
  gap: 20px;
  text-transform: uppercase;
  line-height: 1.4;
}

.comment__reaction {
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment__reaction img {
  width: 15px;
  height: 15px;
}

.comment__reaction:hover {
  opacity: 0.7;
}

/* FOOTER */
.footer {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(56, 60, 61, 1);
  line-height: 1.4;
}

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

.footer__logo {
  display: inline-flex;
  align-self: center;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.footer__link {
  text-decoration: underline;
  font-size: 20px;
}

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

.footer__disclaimer {
  text-align: center;
}

.footer__companies {
  text-align: center;
}

.footer__companies p:not(:last-child) {
  margin-bottom: 30px;
}

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

  .header__nav {
    display: none;
  }

  .burger {
    display: block;
  }

  body {
    gap: 40px;
  }

  .article__header {
    gap: 20px;
  }

  .article__container {
    gap: 40px;
  }

  .article__title {
    font-size: 32px;
  }

  .article__content {
    line-height: 1.5;
  }

  .footer {
    font-size: 14px;
    line-height: 2;
  }

  .footer__nav {
    row-gap: 20px;
  }
}
