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

  /* Typography */
  --font-base: "Lora", sans-serif;
  --font-size-base: 18px;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --line-height-base: 1.4;
}

html {
  scroll-behavior: smooth;
}

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

img,
picture,
video,
canvas,
svg {
  display: block;
}

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: 1440px;
  padding: 0 10px;
  margin: 0 auto;
}

.link {
  color: rgb(8, 34, 210);
}

.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 {
  font-family: "Open Sans", sans-serif;
}

.header__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px 0;
  height: 106px;
}

.header__date {
  font-weight: 400;
  font-size: 12px;
  width: 100%;
}

.header__logo-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header__logo {
  max-height: 86px;
}

.header__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.header__search-form {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header__search-btn img {
  height: 19px;
  width: 19px;
}

.header__search-input {
  border: 1px solid rgba(228, 228, 226, 1);
  height: 24px;
  padding: 10px;
  font-size: 12px;
}

.header__ad-link img {
  width: 100%;
}

.header__burger {
  display: none;
}

.header__burger img {
  width: 20px;
  height: 20px;
}

.main-nav {
  background-color: rgba(240, 240, 238, 1);
}

.main-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 12px 0;
}

.main-nav__list a {
  color: rgba(123, 126, 133, 1);
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  white-space: nowrap;
}

.main-nav__list a:hover {
  color: #000;
}

.main-nav .header__date {
  display: none;
}

.main {
  padding-bottom: 100px;
}

/* Article */
.article__breadcrumb {
  font-family: "Open Sans", sans-serif;
  padding: 20px 0px;
  font-size: 12px;
  font-weight: 400;
  color: rgba(123, 126, 133, 1);
}

.article__breadcrumb a:hover {
  color: var(--color-text);
}

.article-wrap {
  font-family: "Open Sans", sans-serif;
  overflow: hidden;
  line-height: 1.5;
}

.article-wrap__image {
  float: left;
  width: 622px;
  margin-right: 40px;
  display: block;
}

.article-wrap .article-wrap__title {
  margin-top: 0;
}

.article-wrap ul {
  padding-left: 30px;
  list-style: disc;
}

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

.article__category {
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.article__date {
  font-size: 12px;
  line-height: 1;
}

.article__title {
  font-size: 40px;
  line-height: 50px;
  font-weight: 400;
}

.article__info {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article__info-list {
  list-style: disc;
  padding-left: 20px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  margin: 20px 0px;
}

.article__info-list--top {
  gap: 10px;
  margin-bottom: 0;
}

.article__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0px;
}

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

.author__photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.author__info {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 100%;
}

.article__actions-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.article__icon img {
  width: 25px;
  height: 25px;
  display: block;
  transition: all 0.2s ease-in-out;
}

.article__icon img:hover {
  scale: 1.1;
}

/* Article content */
.article__content {
  font-size: 18px;
  line-height: 26px;
}

.article__content p {
  margin: 20px 0px;
}

.article__content h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
  margin: 20px 0px;
  padding: 15px 0px;
  border-top: 1px solid rgba(228, 228, 226, 1);
  border-bottom: 1px solid rgba(228, 228, 226, 1);
}

.article__content h3 {
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
  margin: 20px 0px;
}

/* Comments */
.comments {
}

.comments__title {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  margin-bottom: 30px;
}

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

.comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comment__avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

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

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

.comment__author {
  font-size: 20px;
  line-height: 25px;
  font-weight: 600;
}

.comment__date {
  font-size: 13px;
}

.comment__text {
  font-size: 18px;
  font-weight: 400;
  line-height: 25px;
}

.comment__actions {
  display: flex;
  gap: 20px;
}

.comment__vote {
  display: flex;
  align-items: center;
  font-size: 18px;
  gap: 5px;
}

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

.comment--reply {
  margin-left: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Footer */
.footer {
  font-size: 13px;
  font-family: "Open Sans", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: rgba(123, 126, 133, 1);
}

.footer a:hover {
  color: var(--color-text);
}

.footer__top {
  background-color: rgba(240, 240, 238, 1);
  padding: 10px 0px;
}

.footer__top ul {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__top ul li {
  font-size: 16px;
  font-weight: 600;
}

.footer__main {
  background-color: rgba(240, 240, 238, 1);
  padding: 20px 0px;
}

.footer__columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer__column {
  width: 150px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer__column h4 {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.footer__column li {
  margin-bottom: 5px;
}

.footer__socials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-self: flex-start;
  gap: 10px;
}

.footer__socials img:hover {
  scale: 1.1;
}

.footer__bottom {
  background-color: rgba(240, 240, 238, 1);
  padding: 10px 0px;
}

.footer__legal p {
  margin-bottom: 10px;
}

.chat-button {
  position: fixed;
  bottom: 60px;
  right: 10px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(0, 84, 33, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.chat-button img {
  width: 42px;
}

.chat-button:hover {
  opacity: 0.8;
}

img,
.clickable {
  cursor: pointer;
}

@media (max-width: 1024px) {
  .main-nav__list {
    gap: 0;
    justify-content: space-between;
  }

  .article__info-list--top {
    font-size: 16px !important;
    padding-left: 20px !important;
  }

  .article__info {
    min-height: 250px;
  }

  .article-wrap__image {
    width: 444px;
  }

  .article__title {
    font-size: 32px;
    line-height: 1.3;
  }

  .footer__top li a.legal-link {
    display: inline-block;
  }

  .footer__top li a:not(.legal-link) {
    display: none;
  }

  .lander-form-field .lander-submit {
    font-size: 18px !important;
  }
  .lander-form-field .lander-submit:hover {
    font-size: 18px !important;
  }
}

@media (max-width: 768px) {
  .header__right {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .header__search-input,
  .header__ad-link {
    display: none;
  }

  .header__burger {
    display: block;
  }

  .main-nav__list {
    display: none;
  }

  .main-nav .header__date {
    width: 100%;
    text-align: center;
    display: block;
    padding: 5px 0px;
  }

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

  .article__info {
    min-height: auto;
  }

  .article-wrap__image {
    width: 100%;
    float: none;
    display: block;
    margin: 0 auto 10px auto;
  }

  .article__info {
    padding-top: 10px;
  }

  .header__top .header__date,
  .article__breadcrumb {
    display: none;
  }

  .header__top {
    height: 55px;
    display: flex;
    align-items: center;
  }

  .header__logo {
    height: 35px;
  }

  .article__title {
    font-size: 30px;
  }

  .article__info-list--top {
    display: none;
  }

  .article__meta {
    flex-direction: column-reverse;
    margin-left: -10px;
    margin-right: -10px;
    padding: 0;
  }

  .article__actions-wrapper {
    width: 100%;
    background-color: rgba(240, 240, 238, 1);
    padding: 0px 10px;
  }

  .article__actions {
    padding: 5px 0px;
    width: 100%;
  }

  .article__actions--bottom {
    justify-content: flex-end;
  }

  .article__icon--print,
  .article__icon--pdf {
    display: none;
  }

  .article__author {
    padding: 20px 10px 0px 10px;
  }

  .author__info {
    white-space: wrap;
  }

  .chat-button {
    width: 65px;
    height: 65px;
    right: 25px;
    bottom: 77px;
  }

  .chat-button img {
    width: 27px;
  }

  .comment--reply {
    margin-left: 0;
  }

  .main {
    padding: 0;
  }

  .footer__columns .footer__column:nth-child(-n + 3) {
    display: none;
  }
}
