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

body {
  background: var(--primary-color);
  overflow-x: hidden;
}

.blog-post-single {
  max-width: var(--max-content-width);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  --glow-rgb: 249 198 61;
  --glow-size: 660px;
  --glow-alpha: 0.24;
  color: var(--third-color);
}

.article__main {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 20px auto;
  width: 100%;
  max-width: calc(var(--max-content-width) * 0.68);
  color: var(--third-color);
  padding: 0 20px;
}

.article__main > figure {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

img,
figure > img {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

article {
  position: relative;
}

article::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: var(--glow-size);
  height: var(--glow-size);
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(var(--glow-rgb) / var(--glow-alpha)) 0%,
    rgba(var(--glow-rgb) / calc(var(--glow-alpha) * 0.55)) 35%,
    rgba(var(--glow-rgb) / calc(var(--glow-alpha) * 0.25)) 55%,
    rgba(var(--glow-rgb) / 0) 75%
  );
  mix-blend-mode: screen;
  z-index: -1;
}

article::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -15%;
  width: var(--glow-size);
  height: var(--glow-size);
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(var(--glow-rgb) / var(--glow-alpha)) 0%,
    rgba(249 198 61 / calc(0.24 * 0.55)) 35%,
    rgba(249 198 61 / calc(0.24 * 0.25)) 55%,
    rgba(var(--glow-rgb) / 0) 75%
  );
  mix-blend-mode: screen;
  z-index: -1;
}

h1 {
  font-size: 3rem;
  margin: 20px 0;
  color: var(--secondary-color);
}

h3 {
  font-size: 2rem;
  color: var(--secondary-color);
}

h2 {
  color: var(--secondary-color);
  font-size: 2.5rem;
}

.article__of__contest__header {
  white-space: pre-wrap;
  font-size: 2.5rem;
}

.left-text-right-image {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

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

figcaption a {
  text-decoration: none;
  color: unset;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 30px;
}

.left-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 0 55%;
}

.text-block > p,
.left-text > p,
.left-text > ul,
.text-block > ul,
.text-block > li,
.text {
  font-weight: 400;
  line-height: 30px;
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

article,
.table__of__contents,
.modal__ad {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  /* max-width: calc(var(--max-content-width) * 0.68); */
  /* margin: 20px auto; */
  padding: 0 20px;
}

article ul,
.text-block ul,
.left-text ul,
.article__description ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

article ul li,
.text-block ul li,
.left-text ul li,
.article__description ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  line-height: 1.6;
}

article ul li::before,
.text-block ul li::before,
.left-text ul li::before,
.article__description ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  background: var(--secondary-color);
  border-radius: 50%;
}

.article__link__topic {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px auto;
}

.modal__ad {
  width: 100% !important;
  background: var(--fourth-color);
  padding: 50px;
  border-radius: 20px;
}

.modal__ad__link {
  color: var(--secondary-color);
}

.list-text {
  margin-left: 20px;
  line-height: 30px;
}

.article__description {
  display: flex;
  flex-direction: column;
  gap: 20px;
  line-height: 30px;
}

.main__link {
  margin-left: 20px;
}

.additional__link {
  margin-left: 40px;
}

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

.table__of__contents__list li {
  position: relative;
  width: fit-content;
}

.table__of__contents__list li a {
  text-decoration: none;
  color: unset;
  position: relative;
}

.table__of__contents__list li a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--secondary-color);
  transition: width 0.3s ease-in-out;
}

.table__of__contents__list li a:hover::before {
  width: 100%;
  transition: width 0.3s ease-in-out;
}

#consequences__of__our__work h3 {
  font-weight: 300 !important;
}

.article__link__topic__image {
  margin: auto;
}

.similar__articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
}

.similar__articles-main {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.similar__articles-main::before {
  content: "";
  position: absolute;
  top: -15px;
  width: 100%;
  height: 1px;
  background: var(--secondary-color);
}

.similar__articles-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shortened {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article__link {
  color: unset;
  text-decoration: none;
}

.informations__about__image {
  display: flex;
  flex-direction: row;
  gap: 5px;
  font-weight: bold;
  max-height: 350px;
}

.informations__about__image img {
  object-fit: cover;
  max-height: 350px;
  width: 100%;
}

@media (max-width: 768px) {
  .blog-post-single {
    width: 100%;
    padding: 20px;
  }

  .article__header {
    font-size: 2rem;
    width: auto;
  }

  .left-text-right-image {
    flex-direction: column;
  }

  .list-text ul li {
    font-size: 1rem;
  }

  .similar__articles {
    display: flex;
    flex-direction: column;
    margin-bottom: unset;
  }

  .modal__ad {
    padding: 20px;
    border-radius: unset;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .article__of__contest__header {
    font-size: 1.75rem;
  }

  .article__main > figure > img {
    border-radius: unset;
  }

  article::after,
  article::before {
    all: unset;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .blog-post-single {
    width: 90%;
  }
}
