* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

a,
button {
  cursor: pointer;
  background: transparent;
  transition: all 0.2s linear;
  border: none;
}

main {
  background: #f0f2f5;
  flex-grow: 1;
}
:root {
  scroll-behavior: smooth;
}

body {
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
  padding-inline: 10px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.post {
  background: #f0f2f5;
  padding-block: 70px 50px;
  font-family: "Roboto", sans-serif !important;
}

.post__inner {
  max-width: 650px;
  width: 100%;
  margin-inline: auto;
  border-radius: 8px;
  border: 1px solid rgba(101, 103, 107, 0.2);
  background: #fff;
  box-shadow: 0px 0px 10px 0px rgba(26, 255, 1, 0.05);
}

.post__header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  padding: 20px 20px 0;
}
.post__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}
.post__wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
}
.post__name {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.post__name h2 {
  color: #050505;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.post__subtitle {
  color: #65676b;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.post__subtitle a {
  color: #0064d1;
  display: inline-block;
}
.post__wrapper2 {
  display: flex;
  align-items: center;
  gap: 5px;
}
.post__date {
  color: #65676b;

  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.post__dot {
  width: 2px;
  height: 2px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: #65676b;
}
.post__status svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}
.post__moreBtn {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
}
.post__content {
  padding: 15px 20px 2px;
  margin-bottom: 20px;
}
.post__moreText {
  transition: height 0.3s ease;
}
.post__moreText.hidden {
  height: 0;
  overflow: hidden;
  display: inline-block;
}
.post__points {
  cursor: pointer;
  display: none;
}
.post__points.show {
  display: inline-block;
}
.post__points span {
  color: #050505;

  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.post__text {
  color: #050505;
  margin: 0;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
  font-family: "Roboto", sans-serif !important;
}
.post__text p {
  margin: 0 0 12px;
}
.post__text p:last-child {
  margin-bottom: 0;
}
.post__text-intro {
  font-weight: 700;
}
.post__benefits {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 0;
}
.post__benefits li {
  position: relative;
  padding-left: 22px;
  line-height: 1.4;
}
.post__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0866ff;
  box-shadow: 0 0 0 3px rgba(8, 102, 255, 0.12);
}
.post__text-note {
  font-weight: 700;
}
.post__text--full {
  display: none;
}
.post__content.is-open .post__text--short {
  display: none;
}
.post__content.is-open .post__text--full {
  display: block;
}
.post__more {
  color: #1877f2;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: inline;
  font: inherit; /* той самий шрифт і розмір */
}
.post__more:hover {
  text-decoration: underline;
}
.post__img {
  display: block;
  background: #000;
  overflow: hidden;
}
.post__video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.post__info {
  border-top: 1px solid rgba(101, 103, 107, 0.2);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.post__links {
  max-width: 360px;
  width: 100%;
}
.post__site {
  color: #65676b;

  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: block;
  margin-bottom: 5px;
}
.post__label {
  color: #050505;

  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 5px;
}
.post__sublabel {
  color: #050505;

  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-top: 0;
  margin-bottom: 0;
}
.post__btn {
  display: block;
  width: auto;
  min-width: 150px;
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  padding: 15px 24px;
  border-radius: 8px;
  background: #0866ff;
  white-space: nowrap;
  animation: hoverWave linear 1.3s infinite;
  transition: all .2s linear;
}


@media (hover: hover) {
  .post__btn:hover  {
    background: #0053d8;
    text-decoration: none;
  }
}

@media (hover: none) {
  .post__btn:active  {
    background: #0053d8;
    text-decoration: none;
  }
}

.post__reactions {
  border-top: 1px solid rgba(101, 103, 107, 0.2);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.post__emojis {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post__icons {
  max-width: 50px;
  width: 100%;
}
.post__count {
  color: #65676b;

  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.post__actions {
  color: #65676b;

  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 12px;
}
.post__btns {
  display: flex;
  justify-content: space-around;
  gap: 15px;
  align-items: center;
  border-top: 1px solid rgba(101, 103, 107, 0.2);
  padding: 10px 20px;
}
.post__likeBtn,
.post__commentBtn,
.post__shareBtn {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #65676b;

  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.post__likeBtn svg,
.post__commentBtn svg,
.post__shareBtn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.post__bottom {
  padding: 15px 20px;
  border-top: 1px solid rgba(101, 103, 107, 0.2);
}
.post__suptitle {
  cursor: pointer;
  color: #65676b;

  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 10px;
}
.post__suptitle.hidden {
  display: none;
}
.comments {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comments__item {
  display: flex;
  /* justify-content: space-between; */
  gap: 10px;
}
.comments__item.hidden {
  display: none;
}
.comments__avatar {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.comments__avatar img {
  border-radius: 50%;
}

.comments__content {
  border-radius: 15px;
  background: #f0f2f5;
  padding: 10px;
  margin-bottom: 5px;
}
.comments__name {
  display: block;
  color: #050505;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 5px;
}
.comments__text {
  color: #050505;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-top: 2px;
  margin-bottom: 2px;
}
/* Нижня частина коментаря */
.comments__bottom {
  display: flex;
  align-items: center;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1;
  gap: 6px;
}

.comments__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}

/* Ліва частина (час, лайк, відповісти) */
.actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  min-width: 0;
}

.actions span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

.actions span:hover {
  text-decoration: underline;
}

/* Блок реакцій */
.reactions {
  margin-left: auto;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Число */
.count {
  font-size: 12px;
  line-height: 1;
  color: #65676b;
  margin-right: 6px;
}

/* Контейнер для іконок */
.reaction-icons {
  display: flex;
  align-items: center;
}

/* Іконки */
.reaction {
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
}

/* Перекриття тільки між іконками */
.reaction + .reaction {
  margin-left: -4px;
}

.reactions img {
  width: 16px;
  height: 16px;
  margin-left: -4px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.reactions span {
  margin-left: 6px;
  font-size: 12px;
  color: #65676b;
}

.comments__date {
  margin: 0;
  color: #65676b;
  white-space: nowrap;
}

.comments__btn {
  color: #65676b;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.comments__btn:hover {
  text-decoration: underline;
}

.comments__dot {
  color: #65676b;
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 450px) {
  .container {
    padding-inline: 10px;
  }
  .post {
    padding-block: 20px 40px;
  }

  .post__info {
    align-items: flex-start;
    flex-direction: column;
  }
  .post__links {
    max-width: initial;
  }

  .post__header {
    padding-inline: 12px;
  }
  .post__bottom,
  .post__info,
  .post__content {
    padding-inline: 16px;
  }
  .post__btn {
    padding: 12px;
    max-width: 100%;
    white-space: normal;
  }
  .post__header {
    gap: 7px;
  }
  .post__date {
    font-size: 12px;
  }
}
@media (max-width: 420px) {
}

@keyframes hoverWave {
  0% {
    box-shadow: 0 4px 5px rgba(8, 102, 255, .3),
                0 0 0 0 rgba(8, 102, 255, .2),
                0 0 0 0 rgba(8, 102, 255, .2);
  }
  40% {
    box-shadow: 0 4px 5px rgba(8, 102, 255, .3),
                0 0 0 5px rgba(8, 102, 255, .2),
                0 0 0 0 rgba(8, 102, 255, .2);
  }
  80% {
    box-shadow: 0 4px 5px rgba(8, 102, 255, .3),
                0 0 0 10px rgba(8, 102, 255, 0),
                0 0 0 8.35px rgba(8, 102, 255, .67);
  }
  100% {
    box-shadow: 0 4px 5px rgba(8, 102, 255, .3),
                0 0 0 10px rgba(8, 102, 255, 0),
                0 0 0 10px rgba(8, 102, 255, 0);
  }
  
}

.comments__wrapper {
  width: 100%;
}

@media (max-width: 390px) {
  .post__actions {
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
  }
  .post__likeBtn, .post__commentBtn, .post__shareBtn {
    font-size: 12px;
  }
}
