/* Отделочная страница кейса*/

.case-show-inner {
  max-width: 1344px;
  margin: 0 auto;
}

.case-cover {
  margin: 80px 0;
  border-radius: 24px;
  overflow: hidden;
  background: #f5f6fa;
}

.case-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 24px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.case-breadcrumbs a {
  color: #ACAFBF;
  text-decoration: none;
}

.case-breadcrumbs span.sep,
.case-breadcrumbs span.current {
  color: #ACAFBF;
}

.case-header-title {
  font-size: 64px;
  font-weight: 800;
  color: #262626;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 32px;
  max-width: 1116px;
}

.case-header-title:has(+ .case-header-row .case-header-btn) {
  margin-bottom: 8px;
}

.case-header-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 80px;
}

.case-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.case-header-tag {
  font-size: 16px;
  font-weight: 800;
  color: #8249F2;
  background: #F1EBFF;
  border-radius: 100px;
  padding: 16px 24px;
  letter-spacing: -0.03em;
  line-height: 100%;
}

.case-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-left: auto;
  background: #FF8040;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  border-radius: 100px;
  padding: 24px 46px;
  transition: opacity .2s;
  line-height: 100%;
}

.case-header-btn:hover {
  opacity: .88;
  color: #fff;
}

.case-header-btn svg {
  width: 23px;
  height: 23px;
}

.case-blocks {
  display: flex;
  flex-direction: column;
}

.case-section{
  margin-bottom: 160px;
}

.case-section__items {
  display: flex;
  flex-direction: column;
}

.case-section__item--paragraph + .case-section__item--heading {
  margin-top: 64px;
}

.case-section__heading {
  font-size: 64px;
  font-weight: 800;
  color: #262626;
  letter-spacing: -0.03em;
  line-height: 100%;
  margin: 0;
  max-width: 892px;
  margin-bottom: 32px;
}

.case-section__paragraph {
  font-size: 24px;
  font-weight: 500;
  color: #262626;
  letter-spacing: -0.03em;
  line-height: 120%;
  margin: 0;
  text-wrap: pretty;
  max-width: 892px;
}

.case-section__item--paragraph:has(+ .case-section__item--paragraph) {
  margin-bottom: 29px;
}

.case-section__item--paragraph:has(+ .case-section__item--image) {
  margin-bottom: 64px;
}

.case-section:not(:first-child) .case-section__item--heading + .case-section__item--image {
  margin-top: 160px;
}

.case-section__item--image + .case-section__item--image {
  margin-top: 32px;
}

.case-section__image--full img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

.case-section__image--contained {
  display: flex;
  justify-content: center;
}

.case-section__image--contained img {
  width: 100%;
  max-width: 1080px;
  height: auto;
  display: block;
  border-radius: 24px;
}

.case-section__image--gray-bg {
  background: #f5f6fa;
  border-radius: 24px;
  padding: 48px;
}

.case-section__image--gray-bg img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.case-block-text h2 {
  font-size: 64px;
  font-weight: 800;
  color: #262626;
  letter-spacing: -0.03em;
  line-height: 100%;
  margin-bottom: 32px;
  max-width: 892px;
}

.case-block-text p {
  font-size: 24px;
  font-weight: 500;
  color: #262626;
  letter-spacing: -0.03em;
  line-height: 120%;
  margin-bottom: 30px;
  text-wrap: pretty;
  max-width: 892px;
}

.case-block-text + .case-block-image,
.case-block-image + .case-block-text {
  margin-top: 160px;
}

.case-blocks > .case-block-text:first-child + .case-block-image {
  margin-top: 64px;
}

.case-block-image + .case-block-image {
  margin-top: 32px;
}

.case-block-image--full img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

.case-block-image--contained {
  display: flex;
  justify-content: center;
}

.case-block-image--contained img {
  width: 100%;
  max-width: 1080px;
  height: auto;
  display: block;
  border-radius: 24px;
}

.case-block-image--gray-bg {
  background: #f5f6fa;
  border-radius: 24px;
  padding: 48px;
}

.case-block-image--gray-bg img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.case-next {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid #e8eaf0;
}

.case-next-label {
  font-size: 14px;
  font-weight: 700;
  color: #828899;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 24px;
}

.case-next-link {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-decoration: none;
  color: inherit;
}

.case-next-img {
  background: #f5f6fa;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
}

.case-next-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}

.case-next-link:hover .case-next-img img {
  transform: scale(1.05);
}

.case-next-title {
  font-size: 36px;
  font-weight: 800;
  color: #262626;
  letter-spacing: -1.08px;
  line-height: 1.1;
  margin: 0;
}


@media (min-width: 651px) and (max-width: 1344px) {
  .case-show{
    padding: 0 12px;
  }

  .case-cover {
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: 24px;
    margin: 64px 0 48px 0;
  }

  .case-section{
    margin-bottom: 64px;
  }

  .case-section__heading{
    font-size: 48px;
  }

  .case-header-tags {
    gap: 10px;
    min-height: 46px;
  }

  .case-header-tag {
    padding: 12px 20px;
  }

  .case-header-row {
    flex-wrap: wrap;
    gap: 30px;
  }

  .case-header-title:has(+ .case-header-row .case-header-btn){
    margin-bottom: 32px;
  }

  .case-header-btn {
    flex-basis: 100%;
    width: 100%;
    margin-left: 0;
    justify-content: center;
    box-sizing: border-box;
  }

  .case-section__paragraph{
    font-size: 18px;
    line-height: 130%;
  }

  .case-section__item--paragraph:has(+ .case-section__item--paragraph) {
    margin-bottom: 22px;
  }

  .case-section__item--paragraph + .case-section__item--heading {
    margin-top: 32px;
  }

  .case-section__item--paragraph:has(+ .case-section__item--image) {
    margin-bottom: 48px;
  }

  .case-section__image--full img,
  .case-section__image--contained img,
  .case-section__image--gray-bg,
  .case-section__image--gray-bg img,
  .case-block-image--full img,
  .case-block-image--contained img,
  .case-block-image--gray-bg,
  .case-block-image--gray-bg img {
    border-radius: 16px;
  }

  .case-section__item--image + .case-section__item--image{
    margin-top: 24px;
  }

}


@media (max-width: 650px) {

  .case-show{
    padding: 0 8px;
  }

  .case-blocks,.case-breadcrumbs,.case-header-title,.case-header-row {
    padding: 0 16px;
  }

  .case-cover {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    margin: 40px 0 32px 0;
  }

  .case-breadcrumbs {
    font-size: 16px;
    gap: 3px;
    margin-bottom: 24px;
  }

  .case-header-title {
    font-size: 32px;
    margin-bottom: 24px;
  }

  .case-header-row {
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
  }

  .case-header-tags {
    gap: 10px;
  }

  .case-header-tag {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 43px;
    padding: 12px 20px;
  }

  .case-header-btn {
    flex-basis: 100%;
    width: 100%;
    height: 49px;
    margin-left: 0;
    justify-content: center;
    box-sizing: border-box;
    font-size: 18px;
    padding: 12px 12px;
  }

  .case-header-btn svg {
    width: 17px;
    height: 17px;
  }

  .case-header-title:has(+ .case-header-row .case-header-btn){
    margin-bottom: 24px;
  }

  .case-section__heading{
    font-size: 32px;
    margin-bottom: 25px;
  }

  .case-section__paragraph{
    font-size: 16px;
    line-height: 130%;
  }

  .case-section__image--full img{
    border-radius: 12px;
  }

  .case-section__item--paragraph:has(+ .case-section__item--paragraph) {
    margin-bottom: 22px;
  }

  .case-section__item--paragraph:has(+ .case-section__item--image) {
    margin-bottom: 32px;
  }

  .case-section__item--image + .case-section__item--image {
    margin-top: 20px;
  }
  
  .case-section{
    margin-bottom: 48px;
  }
}
