main {
  background-image: url('../../assets/img/cases-bg.png');
  background-size: contain;
  background-position: top;
  background-repeat: no-repeat;
  padding-left: 20px;
  padding-right: 20px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  background-color: #fff;
  position: relative;
  z-index: 2;
  scroll-behavior: smooth;
}


.wrapper {
  scroll-behavior: smooth;
}

/* INTRO */
.case__wrapper {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.case__back-wrapper {
  margin-top: 174px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case__back-wrapper a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.case__back-title {
  color: var(--black, #081A32);
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
  /* 21.6px */
}

.case__title {
  margin-top: 24px;
  color: var(--black, #081A32);
  text-align: center;
  font-size: 80px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  /* 80px */
}

.case__nav-wrapper {
  margin-top: 68px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
}

.case__nav-service {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  height: 28px;
  color: #FFF;
  font-family: Panton;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  border-radius: 32px;
  background: var(--red, #D7171F);
}

.case__nav-date {
  color: var(--black, #081A32);
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  /* 16px */
}

.case__nav-share-wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
}

.case__nav-share {
  color: var(--black, #081A32);
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
  /* 21.6px */
}

.case__nav-icons-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.case__user-img-wrapper {
  margin-top: 68px;
  max-width: 1280px;
  width: 100%;
  overflow: hidden;
  border-radius: 32px;
}

.case__user-img {
  max-width: 1280px;
  width: 100%;
  /*   height: 650px; */
  transition: all .5s ease;
}

.case__user-img:hover {
  transform: scale(1.05);
}

/* INTRO END */

/* FAQ */

.faq__wrapper {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  margin-top: 80px;
}

.faq__body {
  max-width: 844px;
  width: 100%;
  margin: 0 auto;
  border-radius: 32px;
  background: rgba(236, 241, 246, 0.60);
  backdrop-filter: blur(25px);
  padding: 32px;
}

.faq__title {
  color: var(--black, #081A32);
  font-size: 32px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%;
  /* 35.2px */
}

.faq__item {
  margin-top: 16px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  max-width: 780px;
  width: 100%;
  height: 60px;
  border-radius: 32px;
  background: #FFF;
  gap: 16px;
}

.faq__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 28px;
  border-radius: 32px;
  background: var(--red, #D7171F);

  color: #FFF;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  /* 16px */
}

.faq__subtitle {
  color: var(--black, #081A32);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  /* 21.6px */
}

.accordion__wrapper {
  margin-top: 8px;
}

.accordion__title-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.faq__item.last {
  margin-top: 8px;
}

.panel__subtitle {
  color: var(--gray, #757D87);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  /* 19.2px */
  margin-left: 60px;
}

.panel__subtitle.last {
  margin-bottom: 16px;
}


/*  */
.accordion {
  color: #444;
  cursor: pointer;
  padding: 16px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  transition: 0.4s;
  border-radius: 32px;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: none;
}

.accordion.active {
  padding-bottom: 11px;
  border-radius: 32px 32px 0 0;
}

.accordion.active .accordion__arrow {
  transform: rotate(180deg);
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 0 16px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
  border-radius: 0 0 32px 32px;
}

/*  */


/* FAQ END */

/* WHY */

.why__wrapper,
.content__wrapper {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  margin-top: 66px;
}

.why__wrapper.second {
  margin-top: 80px;
}

.why__title {
  color: var(--black, #081A32);
  font-size: 60px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  /* 60px */
}

.reason__wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.reason__wrapper.first {
  margin-top: 24px;
}

.reason__arrow {
  width: 8px;
  height: 10px;
}

.reason__text {
  color: var(--black, #081A32);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  /* 21.6px */
}

.why__text {
  margin-top: 24px;
  color: var(--black, #081A32);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  /* 21.6px */
}


/* WHY END  */


/* PROJECTS */

.projects__wrapper {
  max-width: 844px;
  width: 100%;
  margin: 0 auto;
  margin-top: 80px;
}

.projects__title {
  color: var(--black, #081A32);
  font-size: 60px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  /* 60px */
}

.requirement__wrapper {
  margin-top: 32px;
  display: flex;
  align-items: start;
  gap: 12px;
}

.requiment__wrapper.first {
  margin-top: 24px;
}

.requirement__arrow {
  margin-top: 5px;
  width: 8px;
  height: 10px;
}

.requirement__text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.requirement__title {
  color: var(--black, #081A32);
  font-size: 21px;
  font-style: normal;
  font-weight: 600;
  line-height: 120%;
  /* 25.2px */
}

.requirement__text {
  color: var(--black, #081A32);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  /* 21.6px */
}

.projects__text {
  margin-top: 24px;
  color: var(--black, #081A32);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  /* 21.6px */
}


/* PROJECTS END */

/* SWIPER WRAPPER */
.swiper__wrapper {
  margin: 0 auto;
  margin-top: 80px;
  max-width: 844px;
  width: 100%;
  height: 570px;
  position: relative;
  border-radius: 32px;
}

.swiper {
  width: 100%;
  height: 100%;
  border-radius: 32px;
}

.swiper-wrapper {
  border-radius: 32px;
}

.swiper-slide {
  height: 450px;
  border-radius: 32px;
  padding-right: 16px;
}

.swiper-slide-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 450px;
  border-radius: 32px;
}

.swiper-slide-img-wrapper img {
  top: 0;
  left: 0;
  position: absolute;
  border-radius: 32px;
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 32px;
  transition: .8s ease all;
}

.swiper-slide-img-wrapper:hover img {
  transform: scale(1.1);
}

.swiper-pagination-progressbar {
  position: absolute !important;
  top: 530px !important;
  left: 170px !important;
}

.swiper-pagination-progressbar-fill {
  background-color: #D7171F !important;
}

.swiper-horizontal>.swiper-pagination-progressbar, .swiper-pagination-progressbar.swiper-pagination-horizontal, .swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite, .swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite {
  max-width: 668px !important;
  width: 100% !important;
  height: 2px !important;
}

.swiper-button-prev {
  top: 530px !important;
}

.swiper-button-prev {
  left: 30px !important;
}

.next-btn,
.prev-btn {
  height: 60px !important;
  width: 60px !important;
  background-color: #ECF1F6 !important;
  border-radius: 50% !important;
  border: 1px solid #D8DFE5 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.prev-btn-img,
.next-btn-img {
  height: 16px !important;
  width: 16px !important;
}

.prev-btn-img {
  transform: rotate(-180deg) !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
  display: none !important;
}

.swiper-button-next {
  top: 530px !important;
  left: 100px !important;
}

/* SWIPER WRAPPER END  */


/* DOCUMENTS */

.documents__wrapper {
  max-width: 844px;
  width: 100%;
  margin: 0 auto;
  margin-top: 80px;
}

.documents__title {
  color: var(--black, #081A32);
  font-size: 60px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  /* 60px */
}

.instructions__wrapper {
  margin-top: 24px;
  display: flex;
  gap: 24px;
}

.instruction__wrapper {
  display: flex;
  flex-direction: column;
  max-width: 410px;
  width: 100%;
  padding: 32px;
  border-radius: 32px;
  background: rgba(236, 241, 246, 0.60);
  backdrop-filter: blur(25px);
  gap: 87.5px;
  transition: all .3s ease;

}

.instruction__title {
  color: var(--black, #081A32);
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%;
  /* 26.4px */
}

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

.download__size {
  color: var(--black, #081A32);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  /* 20.8px */
}

/* DOCUMENTS END */


/* VIDEO */
.video {
  max-width: 844px;
  width: 100%;
  margin: 0 auto;
  margin-top: 80px;
  height: 450px;
  margin-bottom: 140px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
}

.video__wrapper {
  height: 450px;
  background-size: contain !important;
  ;
  background-position: top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  position: relative;
  cursor: pointer;
}

.video__wrapper:before {
  content: '';
  position: absolute;
  width: 116px;
  height: 116px;
  transition: all .2s ease;
  background-image: url("../../assets/img/play-red.png");
  background-size: contain;
}

.video__wrapper:hover:before {
  transform: scale(.9);
}

.video__frame {
  display: none;
}



/* VIDEO END */


/* CONTACT */

.contact__wrapper {
  background-image: url('../../assets/img/contacts-bg.png');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  height: 832px;
  margin-bottom: -260px;
  margin-top: -27px;
  position: relative;
  z-index: 1;
}

.contact {
  margin-top: 180px;
  height: 832px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
}

.contact__title {
  color: #FFF;
  text-align: center;
  font-size: 80px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%;
  /* 80px */
}

.contact__text {
  margin-top: 24px;
  color: #FFF;
  text-align: center;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  /* 28.8px */
}

.contact__btn-wrapper {
  margin-top: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 224px;
  height: 60px;
  padding: 0 24px;
  border-radius: 32px;
  background: var(--red, #D7171F);
  transition: all .2s ease;
}

.contact__btn-wrapper:hover {
  background: var(--bg, #ECF1F6);
}

.contact__btn-wrapper:hover .contact__btn {
  color: var(--black, #081A32);
}

.contact__btn-wrapper:hover svg path {
  fill: #081A32;
}

.contact__btn {
  color: #FFF;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 110%;
  /* 19.8px */
}


.content__wrapper {
  color: var(--black, #081A32);
  line-height: 100%;
  font-style: normal;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 140px;
}

.content__wrapper h2 {
  font-size: 60px;
  font-weight: 600;
  margin: 80px 0;
  line-height: 100%;
}

.content__wrapper h3 {
  font-weight: 600;
  font-size: 36px;
  margin: 30px 0;
  line-height: 100%;
}

.content__wrapper p {
  margin: 24px 0;
  line-height: 120%;
}

.content__wrapper iframe {
  width: 100%;
  min-height: 450px;
}

.content__wrapper ul,
.content__wrapper ol {
  margin: 40px 0;
}

.content__wrapper ul>li,
.content__wrapper ol>li {
  position: relative;
  margin-bottom: 16px;
}

.content__wrapper ol {
  counter-reset: point;
}

.content__wrapper ul>li {
  padding-left: 20px;
}

.content__wrapper ol>li {
  padding-left: 32px;
}

.content__wrapper ul>li:before {
  content: "";
  width: 8px;
  height: 8px;
  background: url('../../assets/img/icons/red-arrows.svg');
  position: absolute;
  top: 4px;
  left: 0;
}

.content__wrapper ol>li:before {
  content: counter(point);
  counter-increment: point 1;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  text-align: center;
  border: 1px solid #D7171F;
  font-size: 13px;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  left: 0;
}

/* CONTACT END */

@media (max-width: 1720px) {
  .contact__wrapper {
    background-position: top center;
  }
}

@media (max-width: 1300px) {
  .case__user-img {
    height: 550px;
    object-fit: cover;
  }
}

@media (max-width: 930px) {

  .case__title,
  .contact__title {
    font-size: 60px;
  }

  .why__title,
  .projects__title,
  .documents__title .content__wrapper h2 {
    font-size: 48px;
  }
}

@media (max-width: 850px) {
  .case__nav-share {
    display: none;
  }

  .video__wrapper {
    background-size: cover !important;
    height: 100%;
    border-radius: 32px;
  }
}

@media (max-width: 580px) {
  .case__title {
    font-size: 32px;
  }

  .case__nav-wrapper {
    flex-direction: column;
    background: rgba(255, 255, 255, 0.80);
    backdrop-filter: blur(25px);
    padding: 16px 24px;
    height: 132px;
    align-items: start;
    margin-top: 32px;
  }

  main {
    background-image: url('../../assets/img/text-page-bg-mobile.png');
  }

  .case__back-wrapper {
    margin-top: 150px;
  }

  .case__user-img-wrapper {
    margin-top: 32px;
  }

  .case__user-img {
    height: 350px;
  }

  .faq__wrapper {
    margin-top: 68px;
  }

  .why__title,
  .projects__title,
  .documents__title,
  .content__wrapper h2 {
    font-size: 24px;
  }

  .requirement__title {
    font-size: 18px;
  }

  .reason__text,
  .why__text,
  .requirement__text,
  .projects__text {
    font-size: 16px;
  }

  .instructions__wrapper {
    flex-direction: column;
  }

  .instruction__wrapper {
    max-width: 100%;
    gap: 25.5px;
  }

  .instruction__title {
    font-size: 18px;
  }

  .video,
  .video__wrapper {
    max-width: 100%;
    height: 350px;
  }

  .video {
    margin-top: 68px;
    margin-bottom: 68px;
  }

  .faq__body {
    padding: 24px;
  }

  .faq__item,
  .accordion {
    height: 89px;
  }

  .accordion__arrow {
    flex-shrink: 0;
  }

  .accordion {
    gap: 16px;
  }

  .faq__number {
    flex-shrink: 0;
  }

  .faq__subtitle,
  .contact__btn {
    font-size: 16px;
  }

  .contact__title {
    font-size: 32px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .contact__text {
    font-size: 18px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .contact__btn-wrapper {
    width: 192px;
    padding: 0 16px;
  }

  .contact {
    margin-top: 140px;
  }

  .contact,
  .contact__wrapper {
    height: 750px;
  }
}

@media (max-width: 450px) {
  .swiper-slide img {
    height: 350px;
  }

  .swiper__wrapper {
    height: 350px;
  }

  .swiper__wrapper,
  .documents__wrapper {
    margin-top: 68px;
  }
}

:root {
  --content-max-width: calc(1280 / 1920 * 100%);
  --base-margin: 80px;
  --colum-width: calc(1280px / 12);
}

.mt-base {
  margin-top: var(--base-margin);
}

.mb-base {
  margin-bottom: var(--base-margin);
}

.case-content-new {
    background-image: url('../../assets/img/cases-bg.png');
    background-size: 100% 100vw;
    background-position: top;
    background-repeat: no-repeat;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    background-color: #fff;
    position: relative;
    z-index: 2;
    scroll-behavior: smooth;
    color: rgba(8, 26, 50, 1);

    display:flex;
    align-content: center;
    justify-content: center;
    text-align: center;

    width: 100%;

    padding: 0;

    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;

    a {
      color: rgb(13, 76, 161);
    }

  li {
      list-style: url("../../assets/img/icons/list-item-icon.svg");
        margin-bottom: 20px;
        list-style-position: outside;
    };

  ul {
    margin: 20px 0 20px 0;
    padding: 0 24px;
  }

  blockquote {
    padding: 8px;
    margin: 8px;
    background-color: rgb(236, 241, 246);
    border-radius: 32px;
    font-family: monospace;
    width: fit-content;
  }

}

.article-image {
  display: flex;
  flex-direction: column;
  gap: 32px;

  font-size: 14px;
  line-height: 120%;
  font-weight: 600;

  img {
    border-radius: 32px;
    max-width: 100%;
  }
}

#case__nav-wrapper {
  justify-self: center;
  max-width: var(--content-max-width);
  width: 100%;

  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}

#nav-info {
  display: flex;
  align-items: center;
  gap: 42px;

  margin-left: auto;
}

.w-12 {
  justify-self: center;
  max-width: var(--content-max-width);
  width: 100%;
}

.case__info-element {
  color: var(--black, #081A32);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 50%;

  display: flex;
  gap: 8px;
  align-items: center;

  position: relative;
}

#share-button {
  height: 100%;
}

#nav-info {
 height: 100%;
}

.case__share-wrapper {
  z-index: 2;

  display: flex;
  position: absolute;
  flex-direction: column;
  align-items: start;

  gap: 8px;
  padding: 14px;

  opacity: 0;
  background-color: rgba(255, 255, 255);
  border-radius: 22px;

  transition: opacity .3s ease;
  cursor: default;

  bottom: 100%;
  right: -20%;
}

.fade-in {
  opacity: 1;
}

.hidden {
  display: none;
}

.case_share-item {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;

  cursor: pointer;
}

.thumbnail {
  max-width: var(--content-max-width);

  width: 100%;
  height: auto;
  border-radius: 32px;
}

.article-layout {
  text-align: start;
  display: grid;
  grid-template-columns: 7fr 1fr 3fr;
  gap: 24px;
  max-width: 1280px;
  justify-self: center;
}

.article-content {
  text-align: start !important;

  display: flex;
  flex-direction: column;

  grid-column: 1;
  grid-row: 1;
  z-index: 1;

  h2 {
    text-align: start !important;

    font-weight: 600;
    font-size: 32px;

    margin-bottom: 16px;
  }
  max-width: calc(1280px * (7/12));
}

.article-quote {
  position: relative;
  padding: 80px 0 80px 0;
}

.article-quote::after {
  position: absolute;
  content: "";

  top: 0;
  bottom: 0;
  left: calc(75% - 50vw);
  width: 120vw;
  height: 100%;

  background: url(../../assets/img/bg_quote.png) no-repeat center;
  background-size: cover;
  background-color: rgba(236, 241, 246, 1);


  z-index: 0;
  pointer-events: none;
}

.article-quote > * {
  z-index: 2;
  position: relative;
}

.case__quote-inner-wrapper {
  font-size: 24px;
  font-weight: 400;

  :last-child {
    margin-bottom: 0;
  }
}

.case__quote-text {
  font-style: italic;

  line-height: 140%;

  margin-bottom: 80px;
}

.case__quote-author {
  font-weight: 500px;
  line-height: 120%;
}

.case__quote-job-title {
  font-size: 16px;
  margin-top: 6px;
}

.case__back-btn-wrapper > a {
  margin-top: 148px;
  display: flex;
  justify-content: baseline;
  justify-self: center;
  align-items: center;
  flex-direction: row;

  color: rgba(8, 26, 50, 1);
  font-size: 18px;
  font-weight: 500;

  svg {
    margin: 0 6px
  }
}

#right-container {
  max-width: calc(var(--colum-width) * 3);
  min-width: 180px;
  margin-top: var(--base-margin);
  margin-bottom: var(--base-margin);
  grid-column: 3;
}

#toc {
  top: 110px;
  z-index: 4;
  position: sticky;

  li {
    position: relative; /* Needed for absolute positioning of the pseudo-element */
    padding-left: 20px; /* Space for the line/marker */

    transition: font-size .2s ease, color .2s ease;
  }

  li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px; /* Thickness of the line */
    height: 100%; /* Full height of the list item */
    background-color: rgba(216, 223, 229, 1); /* Color of the line */

    transition: width .2s ease;
  }

  li:hover {
    color:rgba(8, 26, 50, 0.7 )
  }

  li.selected {
    font-size: 14px;
    font-weight: 600;
    color: rgba(8, 26, 50, 1);
  }

  li.selected::before {
    background-color: rgba(215, 23, 31, 1); /* Color of the line */
    width: 3px;
  }
}

.toc-target {
  scroll-margin-top: 80px;
  line-height: 120%;
}

.toc-author-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}


.toc-item {
  display: flex;
  position: relative;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px !important;

  font-weight: 400;
  font-size: 14px;
  line-height: 140%;

  cursor: pointer;
}

#toc-author-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  gap: 16px;

  line-height: 110%;
}

.toc-item-template {
  height: min-content;
}

.toc-author-name {
  color: rgba(8, 26, 50, 1);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.toc-author-job {
  color: rgba(117, 125, 135, 1);
  font-size: 14px;
  font-weight: 400;
}

.promo {
  display: flex;
  flex-direction: column;

  border-radius: 22px;
  padding-top: 20px;
  margin-top:50px;
  gap: 16px;

  background-color: rgba(236, 241, 246, 1);
  color: rgba(8, 26, 50, 1);

    font-size: 14px;

  button {
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 8px;
    padding: 12px 16px;
    border-radius: 32px;

    color: white;
    background-color: rgba(215, 23, 31, 1);

    width: fit-content;

    transition: color .2s ease, background-color .2s ease;

    svg path {
      transition: fill .2s ease;
    }
  }

  button:hover {
    background-color: white;

    color: rgb(8, 26, 50);
    
    svg path {
        fill: rgb(8, 26, 50);
    }
  }

  > * {
    padding: 0 20px;
  }

  img {
    padding: 0;

    border-radius: 22px;
  }
}

.promo-heading {
  font-size: 18px;
  line-height: 120%;
  font-weight: 600;
}

.promo_text {
  line-height: 140%;
}

.mt-3 {
  margin-top: 40px;
}

@media screen and (max-width: 1200px) {
  .desktop-only {
    display: none;
  }

  .article-content {
    padding: 0 52px;
    grid-column: 1;
  }

  .article-layout {
    grid-template-columns: 3fr 1fr;
  }
  
  .article-quote::after { 
    left: -20%;
  }

  #right-container {
    grid-column: 2;
    padding: 0 20px;
  }

  .thumbnail  {
      box-sizing: border-box;
      
    
      width: 100%;
      
      max-width: initial;
      border-radius: 42px;
  }
  
  img.container {
    padding: 20px;
  }

  #case__nav-wrapper {
    max-width: 96%;
    padding: 0 20px;
    justify-content: space-between;
  }

  #category-badge {
    margin-right: auto;
  }
  
  .w-12 {
    max-width: 100%;
    padding: 0 20px;
  }
}

.mobile-toc {
  z-index: 5;
  position: sticky;

  display: flex;
  justify-content: center;
  justify-items: center;
  
  top: 110px;
 
  margin-bottom: 42px;
  padding: 16px;
  gap: 16px;

  color: white;
  background-color: rgb(8, 26, 50);

  border-radius: 16px;

  font-size: 18px;
  font-weight: 500;

  transition: top .3s ease;
}

.mobile-toc.collapsed {
  top: -120px;
}

.adaptive-only {
  display: none;
}

.mobile-toc-hidden {
  top: -120px;
  pointer-events: none;
}

#mobile-toc-dialog {
  justify-self: center;
  align-self: flex-end;

  min-width: 100vw;
  max-height: 40%;
  overflow-y: scroll;
  overscroll-behavior: contain;

  border-radius: 32px 32px 0 0;
  transform: translateY(0);
  transition: transform .3s ease;
}

#mobile-toc-dialog.fading {
  transform: translateY(100%);
}

.mobile-toc__content {
  display: flex;
  flex-direction: column;

  width: 100%;
  padding: 20px 0;

  li {
    padding: 20px;
    width: 100%;

    font-size: 20px;
  }

  li.selected {
    font-size: 24px;
    font-weight: 600px;
    color: #D7171F;
  }
}

#mobile-toc-dialog::backdrop {
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.0); /* Semi-transparent background */
    backdrop-filter: blur(0px); /* Apply the blur */
    z-index: 100;

    transition: backdrop-filter .3s ease, background-color .3s ease;
}

#mobile-toc-dialog:focus {
  outline: none;
}

#mobile-toc-dialog.blur::backdrop {
    backdrop-filter: blur(5px); /* Apply the blur */
    background-color: rgba(0, 0, 0, 0.3)
}

.case-content-new {

table, th, td {
  border: 1px solid black; /* Applies a 1px solid black border */
  border-collapse: collapse; /* Merges adjacent borders into a single line */
  padding: 8px; /* Adds space between text and border */
}

  
h3 {
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 6px;
}
  
@media screen and (max-width: 1024px) {
  #right-container {
    display: none;
  }

  .article-content {
    position: relative;
    grid-column: 1 / -1;
  }

  .adaptive-only {
    display: flex;
  }
}


@media (max-width: 768px) {
  .mb-base {
    margin-bottom: 56px;
  }

  #case__nav-wrapper {
    align-items: center;

    padding: 20px;

    height: fit-content;
  }

  #category-badge {
    width: fit-content;
    margin: 0;
    padding: 12px;
  }

  #nav-info {
    width: fit-content;
    justify-content: space-evenly
  }

  .article-content {
    padding: 0 20px;
  }
}


@media (max-width: 660px) {
  .mobile-toc {
    top: 68px
  }
  .mobile-toc.collapsed {
    top: -80px;
  }
}

@media (max-width: 576px) {
  .case__quote-text {
    font-size: 18px;
  }

  .article-image {
    font-size: 16px;
  }

  #case__nav-wrapper {
    flex-direction: column;
  }

  #category-badge {
    align-self: start;
  }

  #nav-info {
    width: 100%;
    justify-content: space-between
  }

  
}

@media (max-width: 600px) {
  .case__info-element {
    line-height: 120%;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .case__info-element {
    font-size: 12px;
  }
}

}

.case__block-wrapper:last-child {
  margin-bottom: 0;
}

#related-articles {

display:flex;
justify-content: center;

width: 100vw;
margin: 80px 0;

#related-articles-container {
  justify-self: center;
  max-width: 100%;
  width: min(1280px, 100%);
}

h2 {
  font-size: 48px;
  font-weight: 600;
}

.related-articles__wrapper {
  display: flex;
  width: 100%;
  
  gap: 28px;
  margin-top: 60px;
}



.related-articles__card {
  flex: 1;
  display: flex;
  flex-direction: column;

  color: #081A32;

  max-width: calc(100% / 3);
  width: 100%;
  height: max();

  background-color: #ECF1F6;
  padding: 32px;
  border-radius: 32px;

  .related-articles__title {
    cursor: pointer;
    font-size: 32px;
    font-weight: 600;
    line-height: 120%;

    margin-bottom: 12px;
  }

  img {
    width: 100%;

    aspect-ratio: 15 / 9;
    border-radius: 32px;

    object-fit: cover;
    margin-top: auto;
    justify-self: flex-end;
  }
}

.related-articles__text {
  margin-bottom: 39px;

  line-height: 130%;
  font-size: 18px;
}

.related-articles__image {
  cursor: pointer;
}

.related-articles__card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 16px;

  > * {
    width: fit-content;
  }

  .nav-date {
    font-size: 16px;
    line-height: 100%;
    font-weight: 600;
  }
}

.related-articles__tag {
  cursor: pointer;
}

@media (max-width: 1300px) {

  .date {
    font-size: 1.6vw;
  }

  #related-articles-container {
    padding: 0 20px;

    .related-articles__title {
      font-size: 3vw;
    }
  }

  .related-articles__text {
      font-size: 1.7vw;
  }
}

@media (max-width: 800px) {
  .related-articles__tag {
    font-size: 3vw;
  }
  .related-articles__card {
    padding: 20px;
  }
  .related-articles__card:last-child {
    display: none;
  }


  .related-articles__text {
      font-size: 2vw;
  }

  .date {
    font-size: 2vw;
  }
}

@media (max-width: 512px) {
  #related-articles h2 {
    font-size: 32px;
  }

  .related-articles__wrapper {
    flex-direction: column;
  }

  #related-articles-container {
    related-articles__title {
      font-size: 4.4vw;
    }
  }

  .related-articles__text {
      font-size: 3.2vw;
  }

  .date {
    font-size: 3.9vw;
  }
  
}

}

#views-text::before {
  content: "Просмотры: ";
}

@media (max-width: 512px) {
  #case__nav-wrapper {
    padding: 20px;
    background-color:#ecececb9
  }

  #nav-info {
    gap: 16px;
  }

  #views-text::before {
    content: "";
  }
}

.top__wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;

  align-items: center;
  justify-content: center;
  padding: 20px;

}


