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

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

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

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

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

:root {
  --accent: #36c591;
  --text: #222;
  --muted: #575756;
  --line: #d3d3d3;
  --bg: #ebebeb;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.page {
  min-width: 320px;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background: white;
}

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

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.site-header {
  background: white;
}

.site-header__inner {
  max-width: 1646px;
  margin: 0 auto;
  padding: 21px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-header__logo {
  flex-shrink: 0;
  width: 454px;
}

.site-header__controls {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 17px;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav__link--icon img {
  width: 21px;
  height: 21px;
}

.site-nav__link--arrow {
  padding-right: 14px;
}

.site-nav__link--arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-40%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #000;
}

.site-search {
  position: relative;
  width: 234px;
}

.site-search__input {
  width: 100%;
  height: 30px;
  padding: 0 30px 0 12px;
  border: 1px solid #767676;
  border-radius: 2.5px;
  background: #fff;
  font-family: inherit;
  font-size: 16px;
}

.site-search__button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.site-search__button img {
  width: 16px;
  height: 16px;
}

.hero {
  min-height: 306px;
  background: url("/assets_main/images/Background.png") center/cover no-repeat;
}

.hero__inner {
  max-width: 1370px;
  margin: 0 auto;
  padding: 58px 12px 20px;
}

.hero__meta {
  margin: 0 0 2px;
  color: #fff;
  font-size: 15px;
  line-height: 22.5px;
}

.hero__title {
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 600;
  line-height: 52px;
}

.content {
  padding: 40px 30px 0;
}

.content__grid {
  max-width: 1800px;
  margin: 0 auto;
  display: grid;
  gap: 30px;
  align-items: start;
  grid-template-columns: 420px minmax(0, 960px) 420px;
}

.sidebar {
  width: 100%;
}

.sidebar--left {
  position: sticky;
  top: 16px;
  align-self: start;
}

.sidebar-panel__title,
.sidebar-right__title {
  margin: 0;
  display: inline-block;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--accent);
  font-size: 23px;
  font-weight: 700;
  line-height: 23px;
}

.sidebar-panel__social {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--muted);
}

.social-link--linkedin img {
  width: 17px;
  height: 21px;
}

.social-link--newsletter img {
  width: 20px;
  height: 15px;
}

.sidebar-panel__divider,
.sidebar-right__divider {
  margin-top: 20px;
  border-top: 2px dashed var(--line);
}

.sidebar-panel__toc {
  margin-top: 37px;
  position: static;
  background: #f9f9f9;
  padding: 30px;
}

.sidebar-panel__toc-title {
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 700;
  line-height: 32px;
}

.toc {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}

.toc__link {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 16px;
  font-size: 16px;
  line-height: 28px;
}

.toc__link--active {
  color: var(--accent);
}

.toc__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  color: #fff;
  background: #000;
  font-size: 14px;
  line-height: 28px;
}

.toc__number--active {
  background: var(--accent);
}

.article-card {
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.09);
  padding: 40px;
  position: relative;
  bottom: 95px;
}

.article-card__image {
  border: 1px solid #d1d1d1;
}

.article-card__lead {
  margin: 25px 0 0;
  font-size: 17.6px;
  line-height: 31.68px;
}

.article-card__lead--strong {
  font-weight: 700;
}

.article-card__meta {
  margin-top: 22px;
  display: grid;
  gap: 2px;
  font-size: 15.4px;
  line-height: 21.56px;
  color: #333;
}

.article-card__meta a {
  color: var(--accent);
}

.article-card__section {
  margin-top: 30px;
}

.article-card__section h2 {
  margin: 0 0 25px;
  font-size: 25.6px;
  font-weight: 700;
  line-height: 30.72px;
}

.article-card__section p {
  margin: 0 0 18px;
  font-size: 17.6px;
  line-height: 31.68px;
}

.article-card__section p:last-child {
  margin-bottom: 0;
}

.article-card__important {
  font-weight: 700;
}

.article-card__form-banner {
  margin-top: 30px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 25.6px;
  font-weight: 700;
  line-height: 30.72px;
  padding: 10px 12px;
}

.comments {
  margin-top: 40px;
  padding-top: 44px;
  border-top: 7px solid #666;
}

.comments__title {
  margin: 0 0 30px;
  font-size: 25.6px;
  font-weight: 700;
  line-height: 30.72px;
}

.comments__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment {
  display: flex;
  gap: 18px;
  padding: 29px 0;
  border-bottom: 1px solid #ccc;
}

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

.comment__body {
  flex: 1;
  min-width: 0;
}

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

.comment__author {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.comment__date {
  margin: 0;
  color: var(--accent);
  text-align: right;
  font-size: 11px;
  line-height: 16.5px;
}

.comment__text {
  margin: 22px 0;
  font-size: 16px;
  line-height: 24px;
}

.comment__reply {
  color: var(--accent);
  font-size: 11px;
  line-height: 16.5px;
}

.comment--reply {
  border: 1px solid #ccc;
  border-top: 0;
  padding: 29px 18px 29px 34px;
  position: relative;
}

.comment__arrow {
  position: absolute;
  left: 12px;
  top: 30px;
  font-size: 16px;
  line-height: 16px;
}

.comment-form {
  margin-top: 40px;
}

.comment-form__title {
  margin: 0 0 10px;
  font-size: 25.6px;
  font-weight: 700;
  line-height: 30.72px;
}

.comment-form__description {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 24px;
}

.comment-form__label {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
}

.comment-form__field {
  width: 100%;
  height: 46px;
  margin-bottom: 18px;
  border: 1px solid #adadad;
  border-radius: 2px;
  background: #fff;
  font: inherit;
}

.comment-form__field--textarea {
  height: 110px;
  resize: vertical;
}

.comment-form__captcha {
  width: 302px;
  height: 76px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fafafa;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
}

.comment-form__checkbox {
  width: 30px;
  height: 30px;
  border: 1px solid #555;
  border-radius: 4px;
  background: #fafafa;
  flex-shrink: 0;
}

.comment-form__captcha-text {
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1;
  color: #333;
}

.comment-form__captcha img {
  margin-left: auto;
  width: 44px;
  height: 50px;
}

.comment-form__required {
  margin: 7px 0;
  font-size: 16px;
  line-height: 24px;
}

.comment-form__submit {
  width: 288px;
  height: 50px;
  border: 0;
  border-radius: 2px;
  background: #1bab78;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  cursor: pointer;
}

.sidebar-right {
  position: sticky;
  top: 16px;
}

.sidebar-right__line {
  width: 100px;
  height: 2px;
  background: var(--accent);
}

.sidebar-right__post {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-right__post img {
  width: 124.78px;
  height: 70.31px;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-right__post span {
  color: #222;
  font-size: 15px;
  font-weight: 700;
  line-height: 16.5px;
}

.sidebar-right__banner {
  display: block;
  margin-top: 37px;
}

.sidebar-right__banner img {
  width: 100%;
}

.sidebar-right__comments {
  margin: 20px 0 0;
  padding-left: 26px;
}

.sidebar-right__comments li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 24px;
}

.sidebar-right__comments a {
  color: var(--accent);
}

.site-footer {
  margin-top: 60px;
  background: #f7f7f7;
}

.site-footer__top {
  max-width: 1354px;
  margin: 0 auto;
  padding: 109px 0 174px;
  display: flex;
  justify-content: space-between;
  gap: 60px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer__brand img {
  width: 430px;
}

.site-footer__social {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  line-height: 24px;
}

.site-footer__social img {
  width: 30px;
  height: 30px;
}

.site-footer__newsletter {
  width: 463px;
}

.site-footer__newsletter h2 {
  margin: 0 0 17px;
  font-size: 28px;
  font-weight: 500;
  line-height: 33.6px;
}

.site-footer__newsletter h2 strong {
  font-weight: 700;
}

.site-footer__fields {
  display: flex;
  gap: 10px;
}

.site-footer__fields label {
  width: 226px;
  font-size: 16px;
  line-height: 16px;
  color: #666;
}

.site-footer__fields input {
  width: 100%;
  height: 37px;
  margin-top: 8px;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
}

.site-footer__privacy {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  line-height: 24px;
}

.site-footer__privacy input {
  width: 13px;
  height: 13px;
  margin: 0;
}

.site-footer__privacy a,
.site-footer__recaptcha a,
.site-footer__bottom a {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer__recaptcha {
  margin: 20px 0;
  font-size: 16px;
  line-height: 24px;
}

.site-footer__newsletter button {
  width: 147px;
  height: 40px;
  border: 0;
  background: var(--accent);
  color: #fff;
  text-transform: uppercase;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  cursor: pointer;
}

.site-footer__bottom {
  border-top: 2px solid #eee;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #999;
  font-size: 16px;
  line-height: 24px;
}
.site-header__burger {
  display: none;
  width: 36px;
  height: 31px;
}

.content__element {
  display: none;
}

@media (max-width: 1760px) {
  .content__grid {
    grid-template-columns: 340px minmax(0, 1fr) 300px;
  }
}

@media (max-width: 1500px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .site-header__controls {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav {
    gap: 20px;
    padding: 0;
  }

  .content__grid {
    grid-template-columns: 340px minmax(0, 1fr) 260px;
  }
}

@media (max-width: 1024px) {
  .content__element {
    display: block;
    width: 80px;
    height: 80px;
    position: fixed;
    right: 0px; 
    bottom: 160px;
    z-index: 1000;
  }
  .hero__title {
    font-size: 33px;
    line-height: 1.3;
  }

  .content {
    padding: 30px 16px 0;
  }

  .sidebar--left,
  .sidebar-panel__toc,
  .sidebar-right {
    position: static;
  }

  .site-footer__top {
    padding: 60px 16px 80px;
    flex-direction: column;
  }
  .sidebar-panel__toc {
    display: none;
  }
  .site-footer__newsletter {
    width: 100%;
  }
  .site-footer__fields label {
    width: 50%;
  }
}

@media (max-width: 1024px) {
  .site-header__controls {
    display: none;
  }
  .site-header__burger {
    display: block;
  }
  .site-header__inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 960px) {
  .content__grid {
    grid-template-columns: 1fr;
    max-width: 960px;
  }
  .sidebar-panel {
    display: none;
  }
  .content {
    padding: 0px;
  }
  .content__grid {
    gap: 0px;
  }
  .article-card,
  .sidebar {
    padding: 30px;
  }
  .sidebar-right__section {
    padding-top: 30px;
  }
}

@media (max-width: 860px) {
  .site-header__logo {
    max-width: 270px;
  }
  .site-footer__bottom {
    flex-wrap: wrap;
  }

  .site-header__controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .site-search {
    width: 100%;
    max-width: 340px;
  }

  .hero {
    min-height: 220px;
  }

  .hero__inner {
    padding: 32px 16px 20px;
    text-align: center;
  }

  .hero__title {
    font-size: 27px;
  }

  .article-card__lead,
  .article-card__section p {
    font-size: 16px;
    line-height: 1.7;
  }

  .article-card__section h2,
  .comments__title,
  .comment-form__title {
    font-size: 23px;
    line-height: 1.35;
  }

  .comment {
    gap: 12px;
  }

  .comment__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment__date {
    text-align: left;
  }

  .comment--reply {
    margin-left: 0;
    padding-left: 28px;
  }

  .comment-form__captcha,
  .comment-form__submit,
  .site-footer__newsletter,
  .site-footer__fields label,
  .site-footer__brand img {
    width: 100%;
  }

  .site-footer__fields {
    flex-direction: column;
  }
}
