@font-face {
  font-family: "Open Sans";
  src: url("/fonts/OpenSans-VariableFont_wdth.ttf") format("truetype");
  font-weight: 300, 400, 500, 600, 700, 800;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype");
  font-weight: 400, 500, 600, 700, 800;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-VariableFont_opsz_wght.ttf") format("truetype");
  font-weight: 400, 600;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: #ebf3f7;
  padding-top: 64px;
}
main {
  padding: 20px 30px 30px 30px;
  background: white;
  max-width: 1000px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 50px;
  h1 {
    color: black;
    font-family: "Playfair Display";
    font-size: 48px;
    font-weight: 600;
  }
}
.content-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  h2 {
    color: black;
    font-family: "Playfair Display";
    font-size: 28px;
    font-weight: 600;
  }
  h3 {
    color: black;
    font-family: "Playfair Display";
    font-size: 24px;
    font-weight: 600;
  }
  p {
    color: black;
    font-family: "Open Sans";
    font-size: 18px;
    font-weight: 400;
  }
  a {
    color: #4073ff;
    text-decoration: none;
    font-weight: 600;
  }
}

.author-block {
  display: flex;
  align-items: start;
  gap: 16px;
  flex-direction: column;
}
.author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-info {
  display: flex;
  flex-direction: column;
  align-items: start;
  p:first-child {
    color: black;
    font-family: "Open Sans";
    font-size: 18px;
    font-weight: 400;
  }
  a {
    color: #4073ff;
    font-weight: 700;
  }
  p:last-child {
    color: #646464;
    font-family: "Open Sans";
    font-size: 14px;
    font-weight: 400;
  }
}
.published {
  display: flex;
  align-items: center;
  gap: 16px;
  .line {
    width: 1px;
    height: 19px;
    background: #646464;
  }
  p:first-child {
    font-family: "Open Sans";
    font-size: 14px;
    font-weight: 400;
    color: #646464;
  }
}
.likes,
.dislikes {
  display: flex;
  align-items: center;
  gap: 6px;
  p {
    font-family: "Open Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }
}
.dislikes p {
  color: #646464;
}
.marks {
  display: flex;
  align-items: center;
  gap: 16px;
}
.warning {
  border-radius: 6px;
  background: #4073ff;
  display: flex;
  padding: 6px 10px;
  align-items: center;
  gap: 16px;
  p {
    color: #fff;

    font-family: "Open Sans";
    font-size: 22px;
    font-weight: 700;
  }
}
.notice {
  display: flex;
  padding: 10px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border-radius: 6px;
  background: #ededed;
}
.notice h3 {
  color: black;
  font-family: "Playfair Display";
  font-size: 24px;
  font-weight: 600;
}
.notice p {
  display: block;
  color: black;
  font-family: "Open Sans";
  font-size: 18px;
  font-weight: 400;
  padding: 6px;
  border-radius: 4px;
  background: #fff;
}
footer {
  overflow-x: clip;
  background: #141414;
  padding-block: 40px;
  p,
  a {
    color: #fff;
    font-family: "Open Sans";
    font-size: 12px;
    font-weight: 400;
    line-height: 100%;
    text-decoration: none;
  }
}
.centered {
  width: 100%;
  max-width: 1040px;
  padding: 0 20px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 40px;
}
.footer-bottom p {
  text-align: center;
}
.system {
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.sys-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  gap: 16px;
  width: 100%;
  a {
    font-size: 14px;
    line-height: 150%;
    color: #e6e6e6;
  }
}
.sys-menu:first-child {
  justify-content: end;
  flex-shrink: 0;
}
.sys-menu:last-child {
  justify-content: start;
  flex-shrink: 0;
}
.li-line {
  width: 1px;
  height: 20px;
  background: #d9d9d9;
  flex-shrink: 0;
}
.comments-title {
  padding-top: 16px;
  border-bottom: 1px solid black;
  h2 {
    font-family: "Playfair Display";
    font-size: 24px;
    font-weight: 600;
    color: black;
  }
}
.comments {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.comment-block {
  width: 100%;
  display: flex;
  align-items: start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  padding: 5px;
}
.comm-with-sub {
  display: flex;
  align-items: start;
  gap: 16px;
}
.comment-info .name {
  font-family: "Open Sans";
  font-size: 16px;
  font-weight: 700;
  color: #3b5998;
}
.comment-info .text {
  color: black;
  font-family: "Open Sans";
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.2;
  a {
    text-decoration: none;
    color: #4073ff;
  }
}
.comment-info .marks {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: 32px;
  margin-bottom: 12px;
  a {
    color: #3b5998;
    font-family: "Open Sans";
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
  }
  p {
    color: rgba(0, 0, 0, 0.44);
    font-family: "Open Sans";
    font-size: 14px;
    font-weight: 400;
  }
}
.subcomment {
  border-bottom: none;
  margin-top: 24px;
  .text {
    margin-bottom: 10px;
  }
  .subcomment-cont-img {
    width: 100%;
    max-width: 317px;
  }
}
.form-wrapper {
  width: 100%;
  max-width: 370px;
  margin-inline: auto;
  border-radius: 20px;
  border: 1px solid #4073ff;
  background: #fff;
}
.form-header {
  padding: 16px;
  background: #4073ff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.form-title {
  color: #fff;
  text-align: center;
  font-family: "Inter";
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 4px;
}
.form-subtitle {
  color: #fff;
  text-align: center;
  font-family: "Inter";
  font-size: 22px;
  font-weight: 400;
}
@media (max-width: 800px) {
  .system {
    flex-direction: column;
    gap: 6px;
  }
  .sys-menu {
    gap: 12px;
    a {
      font-size: 12px;
    }
  }
  .sys-menu:first-child,
  .sys-menu:last-child {
    justify-content: center;
  }
  .li-line {
    height: 14px;
  }
  .li-line.desk {
    display: none;
  }
}
@media (max-width: 500px) {
  main {
    padding: 20px 16px;
    gap: 20px;
    margin-bottom: 0px;
  }
  body {
    padding-top: 0px;
  }
  h1 {
    font-size: 28px !important;
  }
  .content-block h2 {
    font-size: 20px;
  }
  .content-block h3 {
    font-size: 20px;
  }
  .content-block p {
    font-size: 14px;
  }
  .content-block {
    gap: 8px;
  }

  .notice {
    padding: 8px;
  }
  .warning p,
  .notice p {
    font-size: 14px;
  }
  .footer {
    p {
      font-size: 10px !important;
    }
  }

  .centered {
    gap: 20px;
  }
  .comment-block-with-sub {
    flex-direction: column;
    gap: 24px;
  }
  .comment-info .text {
    font-size: 14px;
  }
  .comment-info .marks p {
    font-size: 12px;
  }
  .comment-info .marks {
    margin-left: 0px;
  }

  .comments-title {
    h2 {
      font-size: 20px;
    }
  }
  .published {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: start;
    margin-bottom: 16px;
    .line {
      width: 100%;
      height: 1px;
    }
  }
}
