.common, .portfolio-detail, .case {
  max-width: 100%;
  overflow-x: hidden;
}

.case__container {
  max-width: 100%;
  overflow: visible;
}

.case {
  --verb-purple: #7b6de4;
  --verb-yellow: #f5bb37;
  --verb-pink: #e26576;
  --verb-orange: #f5894b;
  --verb-black: #141414;
  --verb-soft: #f5f2ff;
  --verb-warm: #fff3cf;
  --verb-text: #83939c;
  font-family: Arial, sans-serif;
}

.case h1, .case h2, .case h3 {
  letter-spacing: 0;
}

.case-header {
  padding-top: 34px;
}

.case-header__left, .case-header__rigth {
  min-width: 0;
}

.case-header__left h1 {
  max-width: 960px;
  font-size: 56px;
  line-height: 1.08;
  margin-bottom: 24px;
  overflow-wrap: anywhere;
}

.case-header__left h1 span {
  color: var(--verb-purple);
}

.case-header__left p {
  max-width: 880px;
}

.case-header__rigth--verb {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.verb-logo-tile {
  width: 230px;
  height: 230px;
  border-radius: 45px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 44px rgba(123, 109, 228, .16), inset 0 0 0 1px rgba(20, 20, 20, .06);
}

.verb-logo-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.verb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--verb-black);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.service-hero {
  margin: 38px 0 48px;
  padding: 26px 0;
  border-radius: 30px;
  overflow: hidden;
  background: radial-gradient(circle at 14% 18%, rgba(245, 187, 55, .42), transparent 34%), linear-gradient(135deg, #efe9ff 0%, #fbf1ff 38%, #fff1c8 100%);
}

.service-hero__viewport {
  overflow: hidden;
  width: 100%;
}

.service-hero__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  animation: serviceSlider 34s linear infinite;
  will-change: transform;
}

.service-hero:hover .service-hero__track {
  animation-play-state: paused;
}

.service-hero__slide {
  flex: 0 0 clamp(520px, 64vw, 900px);
}

.service-hero__slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  cursor: zoom-in;
  box-shadow: 0 20px 48px rgba(20, 20, 20, .12);
}

@keyframes serviceSlider {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 14px));
  }
}

.case-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 58px;
}

.case-info__card {
  min-height: 128px;
  padding: 22px 24px;
  border-radius: 18px;
  color: #fff;
  overflow: hidden;
}

.case-info__card--1 {
  background: var(--verb-purple);
}

.case-info__card--2 {
  background: linear-gradient(135deg, var(--verb-purple), var(--verb-pink), var(--verb-yellow));
}

.case-info__card--3 {
  background: var(--verb-black);
}

.case-info__card p {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.05;
  color: #fff;
  font-weight: 700;
}

.case-info__card span {
  display: block;
  max-width: 330px;
  color: #fff;
  font-size: 16px;
  line-height: 1.34;
}

.case-paragraph {
  color: var(--verb-text);
  font-size: 20px;
  line-height: 1.45;
}

.verb-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 26px 0 30px;
  padding: 18px 22px;
  border-radius: 22px;
  background: #f5f0ff;
  color: #5b4bb8;
}

.verb-note::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--verb-yellow);
}

.verb-entity, .mechanics-grid, .service-results-grid, .service-table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 34px;
}

.verb-card, .mechanic-card, .result-card, .table-card {
  border-radius: 24px;
  padding: 24px;
  color: #141414;
  background: #fff;
  box-shadow: 0 5.24px 35.24px -8.8px rgba(0, 0, 0, .08);
}

.verb-card {
  background: var(--verb-warm);
  color: #674500;
  box-shadow: none;
}

.verb-card strong, .mechanic-card strong, .result-card span, .table-card span {
  display: block;
  margin-bottom: 8px;
  color: #141414;
  font-weight: 700;
}

.result-card strong, .table-card strong {
  display: block;
  font-size: 30px;
  line-height: 1.2;
}

.wide-gallery, .compact-gallery {
  width: 100%;
  max-width: 100%;
  margin: 34px 0 52px;
  padding: 26px;
  border-radius: 28px;
  background: #f4f0fb;
  overflow: hidden;
}

.wide-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.wide-gallery--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wide-gallery--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
}

.wide-gallery img, .compact-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
}

.wide-gallery--three img {
  align-self: center;
}

.review-section-title {
  margin-top: 70px;
}

.review-option {
  position: relative;
  display: block;
  height: 255px;
  overflow: visible;
  clip-path: inset(-44px 0 0 0 round 0 24px 24px 0);
  margin: 34px 0 78px;
  padding: 56px 380px 0 42px;
  border-left: 10px solid var(--verb-purple);
  border-bottom: 1px solid rgba(123, 109, 228, .32);
  border-radius: 0 24px 24px 0;
  background: transparent;
  box-shadow: none;
}

.review-option__text {
  max-width: 630px;
}

.review-option__text h3 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  color: var(--verb-text);
}

.review-option__text p {
  margin: 0;
  color: #563a79;
  font-size: 18px;
  line-height: 1.42;
}

.review-paper {
  position: absolute;
  right: 34px;
  top: -22px;
  aspect-ratio: 1 / 1.414;
  width: 292px;
  padding: 24px;
  background: #fff;
  color: #111;
  border: 1px solid #e8e8e8;
  box-shadow: 0 28px 58px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transform: rotate(3deg);
  transform-origin: center top;
}

.review-paper::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -16px;
  height: 18px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(0, 0, 0, .08);
  border-top: 0;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .12);
}

.review-paper b {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
}

.review-paper span {
  color: #333;
  font-size: 11px;
  line-height: 1.45;
}

.review-paper svg {
  width: 150px;
  height: 34px;
  align-self: flex-end;
  color: #111;
}

.client-letter {
  margin: 0;
  width: min(820px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 58px 64px;
  background: #fff;
  color: #111;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .24);
  border: 1px solid #e8e8e8;
  aspect-ratio: 1 / 1.414;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.client-letter__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 18px;
  margin-bottom: 28px;
}

.client-letter__mark {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: .08em;
}

.client-letter__date {
  color: var(--verb-text);
}

.client-letter h2 {
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 22px;
}

.client-letter blockquote {
  color: #333;
  font-size: 21px;
  line-height: 1.55;
}

.client-letter__sign {
  margin-top: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  color: #4e616b;
}

.client-letter__signature {
  display: block;
  width: 220px;
  height: 46px;
  color: #111;
}

.review-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.review-modal:target {
  display: flex;
}

.review-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .72);
}

.review-modal__paper {
  position: relative;
  z-index: 1;
}

.review-modal__close {
  position: absolute;
  right: 20px;
  top: 20px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.process-slider--static .slick-list {
  overflow: visible;
}

.process-slider--static .slick-track {
  transform: none !important;
  width: auto !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.process-slider--static .slick-track::before, .process-slider--static .slick-track::after {
  content: none !important;
  display: none !important;
}

.process-slider--static .process-slider__slide {
  display: block;
  width: auto !important;
  min-height: 235px;
  margin: 0 !important;
  padding: 30px 32px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(0, 0, 0, .08);
}

.process-slider.process-slider--static .process-slider__slide::before, .process-slider.process-slider--static .process-slider__slide::after {
  content: none !important;
  counter-increment: none !important;
  display: none !important;
}

.process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  color: #141414 !important;
  background: #fff;
  border: 2px solid var(--verb-yellow);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.case-technologies {
  background-image: none;
  background: var(--verb-black);
  margin-bottom: 80px;
}

.case-technologies ul {
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

.case-technologies ul li {
  min-width: 104px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 13px;
  line-height: 1.2;
}

.tech-symbol {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .72;
}

.service-questions {
  display: grid;
  gap: 14px;
  margin: 20px 0 40px;
}

.service-questions details {
  border-radius: 24px;
  box-shadow: 0 5.24px 35.24px -8.8px rgba(0, 0, 0, .08);
  padding: 22px 26px;
  color: var(--verb-text);
}

.service-questions summary {
  cursor: pointer;
  color: #000;
  font-weight: 700;
  font-size: 20px;
}

.service-questions p {
  margin-top: 12px;
}

.mechanic-card, .result-card, .table-card, .process-slider--static .process-slider__slide, .service-questions details {
  border: 1px solid rgba(20, 20, 20, .06);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: rgba(17, 17, 17, .82);
  cursor: zoom-out;
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox img {
  display: block;
  max-width: min(1280px, 96vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.image-lightbox__close {
  position: absolute;
  right: 24px;
  top: 22px;
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  background: #fff;
  color: #111;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 991px) {
  .case-header {
    display: flex;
    flex-direction: column;
  }

  .case-header__rigth--verb {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 22px;
  }

  .case-header__left {
    order: 1;
  }

  .verb-logo-tile {
    width: 190px;
    height: 190px;
    border-radius: 38px;
  }

  .case-header__rigth--verb {
    justify-content: center;
  }

  .service-hero {
    padding: 22px 0;
  }

  .service-hero__track {
    gap: 22px;
    padding: 0 22px;
    animation-duration: 28s;
  }

  .service-hero__slide {
    flex-basis: 78vw;
  }

  .case-info, .verb-entity, .mechanics-grid, .service-results-grid, .service-table-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  .case-info {
    gap: 12px;
    margin-bottom: 44px;
  }

  .case-info__card {
    min-height: 108px;
    padding: 18px 20px;
    border-radius: 16px;
  }

  .case-info__card p {
    margin-bottom: 6px;
    font-size: 30px;
  }

  .wide-gallery, .wide-gallery--two, .wide-gallery--three, .compact-gallery {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding: 18px;
  }

  .wide-gallery img, .compact-gallery img {
    width: 100%;
    max-height: none;
  }

  .review-option {
    height: 560px;
    clip-path: none;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-bottom: 2px solid var(--verb-purple);
    background: transparent;
    border-radius: 0;
  }

  .review-option__text {
    max-width: 640px;
    margin: 0 0 22px;
    padding-left: 18px;
    border-left: 8px solid var(--verb-purple);
  }

  .review-paper {
    left: 50%;
    right: auto;
    top: 178px;
    width: min(360px, calc(100% - 48px));
    transform: translateX(-50%) rotate(2deg);
  }

  .process-slider--static .slick-track {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .case-header__left h1 {
    font-size: 38px;
    line-height: 1.12;
  }

  .verb-logo-tile {
    width: 160px;
    height: 160px;
    border-radius: 34px;
  }

  .service-hero {
    border-radius: 24px;
    padding: 18px 0;
  }

  .service-hero__track {
    gap: 18px;
    padding: 0 18px;
    animation-duration: 24s;
  }

  .service-hero__slide {
    flex-basis: 86vw;
  }

  .case-info__card p {
    font-size: 28px;
  }

  .case-info__card span {
    font-size: 15px;
  }

  .wide-gallery, .compact-gallery {
    padding: 14px;
    border-radius: 22px;
  }

  .review-option {
    height: 520px;
  }

  .review-option__text {
    padding-left: 14px;
  }

  .review-option__text h3 {
    font-size: 28px;
  }

  .review-option__text p {
    font-size: 17px;
  }

  .review-paper {
    top: 220px;
    width: min(310px, calc(100% - 34px));
  }

  .process-slider--static .slick-track {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .client-letter {
    padding: 42px 34px;
  }

  .client-letter h2 {
    font-size: 28px;
  }

  .client-letter blockquote {
    font-size: 18px;
  }
}