/* ==========================================================================
   Страница кейса в модальном окне (/#orbi).
   Макет: Figma «Section 1» (desktop 1920, mobile 360). Единицы rem, как на главной:
   на 1280–1920 всё масштабируется вместе с root, ниже 1280 — адаптивная раскладка.
   ========================================================================== */

:root {
  --font-aura: "Manrope", "Inter", "Helvetica Neue", Arial, sans-serif;
}

html.has-case {
  overflow: hidden;
}

/* ---------- Окно ---------- */
.case-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
}
.case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 46, 51, 0.55);
}
.case-modal__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin-inline: auto;
  width: 100%;
  max-width: var(--page-max);
  height: calc(100% - 3rem);
  background: var(--white);
  border-radius: var(--r-l) var(--r-l) 0 0;
  overflow: hidden;
  outline: 0;
  touch-action: pan-y;
}
.case-modal__scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gray) transparent;
}

.case {
  --cp: 4rem; /* боковое поле */
  position: relative;
  isolation: isolate;
  color: var(--black);
}
/* декоративная сетка за шапкой (Figma 89:874 / 141:2761) */
.case__bg {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 1920 / 720;
  overflow: hidden;
  border-radius: var(--r-l) var(--r-l) 0 0;
  pointer-events: none;
}
.case__bg img {
  position: absolute;
  inset: -1.06% -0.4%;
  width: 100.8%;
  height: auto;
  max-width: none;
  display: block;
}
@media (max-width: 767px) {
  .case__bg {
    left: 50%;
    right: auto;
    width: 90rem; /* 1440 */
    aspect-ratio: 1440 / 540;
    translate: -50% 0;
  }
}
:where(.case) dl,
:where(.case) dd,
:where(.case) ul,
:where(.case) ol,
:where(.case) h2,
:where(.case) h3,
:where(.case) h4 {
  margin: 0;
}
:where(.case) ul,
:where(.case) ol {
  padding: 0;
  list-style: none;
}

/* ---------- Шапка ---------- */
.case__top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 4rem var(--cp) 0;
}
.case__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.case__logo {
  display: block;
  width: 9.6296rem; /* 154 */
  height: 2.6804rem; /* 43 */
  background: var(--black);
  -webkit-mask: url("../assets/aura.svg") left center / contain no-repeat;
  mask: url("../assets/aura.svg") left center / contain no-repeat;
}
.case__close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 3rem;
  padding: 0.4375rem 2rem;
  border: 1px solid var(--gray);
  border-radius: var(--r-s);
  background: var(--white);
  color: var(--gray);
  transition: color 0.2s, border-color 0.2s;
}
.case__close svg {
  width: 2rem;
  height: 2rem;
}
.case__close:hover {
  color: var(--black);
  border-color: var(--black);
}
.case__titlerow {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.case__title {
  flex: 0 1 59.5rem; /* 952 */
  text-wrap: balance;
}
.case__titlerow .case__cta {
  margin-bottom: 0.5rem;
}

/* ---------- Обложка и мета ---------- */
.case__cover {
  height: 43.75rem; /* 700 */
  margin: 3rem var(--cp) 0;
  border-radius: var(--r-l);
}
.case__meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin: 3rem var(--cp) 0;
  padding: 0 0.5rem 5rem;
}
.case__meta > div {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.case__meta > div:last-child {
  flex: 0 1 auto;
}
.case__meta dt {
  color: var(--gray);
}

/* ---------- Ряд «метка слева / текст справа» ---------- */
.case__row {
  display: grid;
  grid-template-columns: 37.5rem minmax(0, 1fr); /* 600 / 1192 */
  align-items: start;
  padding: 5rem var(--cp);
}
.case__lead {
  text-wrap: pretty;
}
.case__lead .accent {
  color: var(--orange);
}
.case__result-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

/* ---------- Решения ---------- */
.case__solutions {
  padding: 5rem var(--cp);
}
.case__solutions > .case__label {
  margin-bottom: 4rem;
}
.sol {
  display: grid;
  grid-template-columns: 27.625rem minmax(0, 1fr); /* 442 / остальное */
  column-gap: 9.875rem; /* 158 */
}
.sol + .sol {
  padding-block: 0.5rem;
}
.sol__text {
  display: flex;
  gap: 2rem;
  align-items: stretch;
}
.sol + .sol .sol__text {
  padding-top: 0.5rem;
}
.sol__num {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.sol__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 3rem;
  height: 3.625rem;
  padding-top: 0.125rem;
  border-radius: 3.125rem;
  background: var(--orange);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.sol__line {
  flex: 1;
  width: 2px;
  min-height: 1px;
  border-radius: 10px;
  background: var(--orange);
  transform-origin: 50% 0;
}
.sol__body {
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.sol__media {
  min-width: 0;
}
.sol__media--pair {
  display: flex;
  gap: 1rem;
  height: 31.25rem; /* 500 */
  padding-bottom: 0.5rem;
}

/* палитра */
.palette {
  flex: none;
  width: 36.75rem; /* 588 */
  height: 30.75rem; /* 492 */
  padding: 2.5rem;
  border-radius: var(--r-l);
}
.palette__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.5rem;
  height: 100%;
}
.swatch {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 1.25rem;
  border-radius: var(--r-m);
  background: var(--c);
  color: var(--fg);
}
.swatch b {
  font-weight: 800;
}
.swatch span {
  font-family: var(--font-aura);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.photo {
  flex: 1;
  min-width: 0;
  height: 30.75rem;
  border-radius: var(--r-l);
}
.bento {
  height: 43.75rem; /* 700 */
  border-radius: var(--r-l);
}

/* «три шага»: макет Aura в масштабе контейнера (1192 → 100cqw) */
.steps {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1192 / 600;
  border-radius: var(--r-l);
  background: #f8f3ee;
  overflow: hidden;
}
.steps__inner {
  --u: calc(100cqw / 1192);
  position: absolute;
  left: 50%;
  top: calc(50% + 0.25 * var(--u));
  translate: -50% -50%;
  width: calc(1037.312 * var(--u));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(47.151 * var(--u));
  isolation: isolate;
  font-family: var(--font-aura);
  font-weight: 500;
}
.steps__head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(12.573 * var(--u));
  width: calc(338.698 * var(--u));
}
.steps__kicker {
  display: flex;
  align-items: center;
  gap: calc(6.287 * var(--u));
  color: #b4b4b4;
  font-size: calc(15.717 * var(--u));
  line-height: 1.4;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.steps__star {
  width: calc(11 * var(--u));
  height: calc(11 * var(--u));
  background: #b4b4b4;
  -webkit-mask: url("../assets/asterisk.svg") center / contain no-repeat;
  mask: url("../assets/asterisk.svg") center / contain no-repeat;
}
.steps__title {
  color: #070c11;
  text-align: center;
  font-size: calc(31.434 * var(--u));
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.steps__list {
  position: relative;
  z-index: 1;
  width: 100%;
}
.steps__row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: calc(25.147 * var(--u));
  border-top: calc(0.786 * var(--u)) solid rgba(180, 180, 180, 0.35);
  outline: 0;
  cursor: default;
}
.steps__row:first-child {
  border-top-color: transparent;
}
.steps__row:nth-child(1) { z-index: 3; }
.steps__row:nth-child(2) { z-index: 2; }
.steps__row:nth-child(3) { z-index: 1; }
.steps__main {
  display: flex;
  align-items: center;
  gap: calc(31.434 * var(--u));
}
.steps__n {
  width: calc(31.434 * var(--u));
  color: #8e8e8e;
  font-size: calc(15.717 * var(--u));
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.steps__name {
  width: calc(280.546 * var(--u));
  white-space: nowrap;
  color: #1e1d1b;
  font-size: calc(25.147 * var(--u));
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.steps__desc {
  width: calc(270.33 * var(--u));
  color: #737370;
  font-size: calc(15.717 * var(--u));
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.steps__thumb {
  position: absolute;
  left: 50%;
  top: calc(var(--top) * var(--u));
  translate: -50% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(153.182 * var(--u));
  height: calc(161.368 * var(--u));
  opacity: 0;
  pointer-events: none;
}
.steps__thumb i {
  display: block;
  width: calc(147.817 * var(--u));
  height: calc(156.304 * var(--u));
  border-radius: calc(16.974 * var(--u));
  rotate: var(--rot);
  background:
    radial-gradient(circle at 50% 56%, #fff 0 21%, rgba(255, 255, 255, 0) 22%),
    linear-gradient(135deg, #d6b697, #f1e4d3);
  box-shadow: 0 calc(10 * var(--u)) calc(28 * var(--u)) rgba(43, 46, 51, 0.14);
}
.steps__row.is-active .steps__thumb {
  opacity: 1;
}

/* ---------- Другие кейсы ---------- */
.case__more {
  padding: 5rem var(--cp);
}
.case__more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
}
.case__arrows {
  display: flex;
  gap: 1rem;
}
.arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0.4375rem 2rem;
  border: 1px solid var(--black);
  border-radius: var(--r-s);
  color: var(--black);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.arrow-btn:hover:not(:disabled) {
  background: var(--black);
  color: var(--white);
}
.arrow-btn:disabled {
  border-color: var(--gray);
  color: var(--gray);
  cursor: default;
}
.more-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.more-track::-webkit-scrollbar {
  display: none;
}
.more-card {
  flex: 1 0 calc(50% - 0.25rem);
  min-width: 0;
  scroll-snap-align: start;
}
.more-card a {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.more-card__media {
  height: 31.25rem; /* 500 */
  border-radius: var(--r-l);
  overflow: hidden;
}
.more-card__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-inline: 0.5rem;
}
.more-card__text .t-h5 {
  transition: color 0.2s;
}
.more-card a:hover .t-h5 {
  color: var(--orange);
}

/* ---------- Картинки в блоках (под ними — запасной градиент) ---------- */
.ph {
  position: relative;
  overflow: hidden;
}
.ph__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}
.palette__grid {
  position: relative;
}
.bento .ph__img {
  object-position: 50% 54%;
}
.steps__row:nth-child(1) .steps__thumb i {
  background: url("../assets/case/step-1.jpg") center / cover;
}

/* ---------- Заглушки картинок (то, что ещё без файлов) ---------- */
.ph--sky {
  background:
    radial-gradient(38% 34% at 16% 18%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(30% 30% at 84% 26%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%),
    radial-gradient(40% 30% at 58% 92%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #4fa3e8, #a6cdf2);
}
.case__cover.ph--sky {
  background:
    radial-gradient(34% 40% at 12% 22%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(30% 40% at 90% 18%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 70%),
    radial-gradient(40% 36% at 50% 100%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #b8d6f6, #dbe9fa);
}
.ph--warm {
  background:
    radial-gradient(45% 50% at 78% 38%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    linear-gradient(135deg, #8f9a7c, #d8c3a8 55%, #e9dac6);
}
.ph--water {
  background:
    radial-gradient(60% 50% at 50% 62%, #f3f6fb, rgba(243, 246, 251, 0) 75%),
    linear-gradient(180deg, #b7c7dc, #dde6f1);
}
.ph--aura {
  display: grid;
  place-items: center;
  background:
    radial-gradient(34% 30% at 10% 20%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 70%),
    radial-gradient(30% 30% at 92% 80%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #3d95d6, #6db5e8);
}
.ph--aura img {
  width: 19.25rem;
  height: auto;
}
.ph--orbi {
  display: grid;
  place-items: center;
  background:
    linear-gradient(115deg, transparent 0 8%, #55b6ef 8% 26%, transparent 26% 33%, #f283e8 33% 51%, transparent 51% 62%, #55b6ef 62% 80%, transparent 80%),
    #fff;
}
.orbi-tag {
  display: block;
  padding: 0.5rem 1.5rem 0.75rem;
  border-radius: 1.25rem;
  background: #ff4a0a;
  color: var(--white);
  font-size: 3.5rem;
  line-height: 0.95;
  text-align: center;
  rotate: -3deg;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1279px) {
  .case {
    --cp: 2rem;
  }
  .case__top {
    padding-top: 2.5rem;
  }
  .case__title {
    flex-basis: 40rem;
    font-size: 2.5rem;
  }
  .case__cover {
    height: min(28rem, 56vw);
    margin-top: 2rem;
  }
  .case__meta {
    margin-top: 2rem;
    flex-wrap: wrap;
    padding-bottom: 3rem;
    row-gap: 1.5rem;
  }
  .case__row {
    grid-template-columns: 9rem minmax(0, 1fr);
    padding-block: 3rem;
  }
  .case__lead {
    font-size: 2.5rem;
  }
  .case__solutions,
  .case__more {
    padding-block: 3rem;
  }
  .case__solutions > .case__label,
  .case__more-head {
    margin-bottom: 2.5rem;
  }
  .sol {
    grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
    column-gap: 2.5rem;
  }
  .sol__title {
    font-size: 2rem;
  }
  .sol__media--pair {
    height: 24rem;
  }
  .palette {
    width: 52%;
    height: 23.5rem;
    padding: 1.5rem;
  }
  .swatch {
    padding: 1rem;
  }
  .swatch b {
    font-size: 2rem;
  }
  .photo {
    height: 23.5rem;
  }
  .bento,
  .shot {
    height: auto;
    aspect-ratio: 1192 / 700;
  }
  .more-card__media {
    height: min(26rem, 42vw);
  }
  .more-card a {
    gap: 1.5rem;
  }
  .case__more .t-h2 {
    font-size: 4rem;
  }
}

/* планшет: текст решения над картинкой, линия идёт вдоль обоих */
@media (max-width: 1023px) {
  .case__titlerow {
    flex-direction: column;
    align-items: stretch;
  }
  .case__titlerow .case__cta {
    margin-bottom: 0;
  }
  .case__row {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }
  .sol {
    grid-template-columns: 3rem minmax(0, 1fr);
    column-gap: 1.5rem;
    row-gap: 1.5rem;
  }
  .sol__text {
    display: contents;
  }
  .sol + .sol .sol__text {
    padding-top: 0;
  }
  .sol__num {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  .sol__body {
    grid-column: 2;
    grid-row: 1;
  }
  .sol__media {
    grid-column: 2;
    grid-row: 2;
  }
  .sol + .sol {
    padding-top: 1.5rem;
    padding-bottom: 0;
  }
  .sol--last .sol__num {
    grid-row: 1;
  }
}

/* мобильная: макет 360 */
@media (max-width: 767px) {
  .case-modal__sheet {
    height: calc(100% - 1.5rem);
  }
  .case {
    --cp: 1rem;
  }
  .case .t-h2 {
    font-size: 2.5rem;
    font-weight: 800;
  }
  .case .t-h3 {
    font-size: 2rem;
    line-height: 1.1;
  }
  .case .t-h4 {
    font-size: 1.75rem;
  }
  .case .t-h5 {
    font-size: 1.5rem;
  }
  .case .t-txt-l {
    font-size: 1.125rem;
  }
  .case .t-txt-xl {
    font-size: 1.25rem;
  }
  .case .btn--cta {
    height: 4rem;
    padding-block: 1.5rem;
    font-size: 1rem;
  }
  .case .btn--cta .icon--24 {
    width: 1rem;
    height: 1rem;
  }
  .case__top {
    padding-top: 2.5rem;
    gap: 2rem;
  }
  .case__logo {
    width: 7.2222rem; /* 115,5 */
    height: 2.0104rem;
  }
  .case__titlerow {
    gap: 2rem;
  }
  .case__title {
    flex: none;
    font-size: 2rem;
  }
  .case__cover {
    height: 12.5rem; /* 200 */
    margin-top: 1.5rem;
  }
  .case__meta {
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 0 0 2.5rem;
  }
  .case__meta > div {
    gap: 0.5rem;
  }
  .case__row {
    padding-block: 2.5rem;
    row-gap: 1.5rem;
  }
  .case__label {
    font-size: 1.5rem;
  }
  .case__solutions,
  .case__more {
    padding-block: 2.5rem;
  }
  .case__solutions > .case__label,
  .case__more-head {
    margin-bottom: 1.5rem;
  }
  .sol {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 1.5rem;
  }
  .sol + .sol {
    padding-top: 1.5rem;
  }
  .sol__badge {
    width: 2.5rem;
    height: 3.25rem;
    font-size: 1.375rem;
  }
  .sol__title {
    font-size: 1.75rem;
  }
  .sol__media--pair {
    flex-direction: column;
    height: auto;
    padding-bottom: 0;
    gap: 1rem;
  }
  .palette {
    width: 100%;
    height: auto;
    padding: 1rem;
  }
  .palette__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 0.5rem;
    height: auto;
  }
  .swatch {
    gap: 0.625rem;
  }
  .swatch b {
    font-size: 1.75rem;
  }
  .swatch span {
    font-family: var(--font-mono);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.4;
  }
  .photo {
    flex: none;
    width: 100%;
    height: 16.25rem; /* 260 */
  }
  .bento,
  .shot {
    aspect-ratio: 1;
  }
  .case__more .t-h2 {
    font-size: 2.5rem;
  }
  .case__arrows {
    display: none;
  }
  .more-track {
    margin-inline: calc(-1 * var(--cp));
    padding-inline: var(--cp);
    scroll-padding-inline: var(--cp);
  }
  .more-card {
    flex: 0 0 19.25rem; /* 308 */
  }
  .more-card__media {
    height: 10.79rem; /* 172,6 */
    border-radius: var(--r-s);
  }
  .more-card a {
    gap: 1.5rem;
  }
  .more-card__text {
    gap: 0.5rem;
  }
  .ph--aura img {
    width: 9rem;
  }
  .orbi-tag {
    font-size: 2rem;
  }
}

/* ==========================================================================
   Анимация (только html.motion)
   ========================================================================== */
html.motion .case-modal__backdrop {
  opacity: 0;
  transition: opacity 0.5s ease;
}
html.motion .case-modal.is-open .case-modal__backdrop {
  opacity: 1;
}
html.motion .case-modal__sheet {
  translate: 0 100%;
  transition: translate 0.75s var(--ease-out);
}
html.motion .case-modal.is-open .case-modal__sheet {
  translate: 0 0;
}
html.motion .case-modal.is-closing .case-modal__sheet {
  transition-duration: 0.5s;
}

/* появление блоков при прокрутке окна */
html.motion .case [data-rv] {
  opacity: 0;
  translate: 0 2rem;
  transition: opacity 0.8s var(--ease-out) var(--rd, 0ms), translate 0.9s var(--ease-out) var(--rd, 0ms);
}
html.motion .case [data-rv].is-in {
  opacity: 1;
  translate: 0 0;
}
html.motion .case .btn[data-rv] {
  transition:
    opacity 0.8s var(--ease-out) var(--rd, 0ms),
    translate 0.9s var(--ease-out) var(--rd, 0ms),
    background-color 0.2s,
    color 0.2s;
}
html.motion .case [data-rv-media] {
  opacity: 0;
  clip-path: inset(10% 5% 10% 5% round var(--r-l));
  transition: opacity 0.9s var(--ease-out), clip-path 1.2s var(--ease-out);
}
html.motion .case [data-rv-media].is-in {
  opacity: 1;
  clip-path: inset(0 0 0 0 round var(--r-l));
}
html.motion .case [data-rv-pop] {
  opacity: 0;
  scale: 0.4;
  transition: opacity 0.4s ease, scale 0.7s var(--ease-pop);
}
html.motion .case [data-rv-pop].is-in {
  opacity: 1;
  scale: 1;
}
html.motion .case .sol__line {
  scale: 1 0;
  transition: scale 1.5s cubic-bezier(0.5, 0, 0.2, 1) 0.25s;
}
html.motion .case .sol.is-in .sol__line {
  scale: 1 1;
}

/* картинка внутри маски чуть «оседает» */
html.motion .case [data-rv-media] > .ph__img {
  scale: 1.1;
  transition: scale 1.8s var(--ease-out);
}
html.motion .case [data-rv-media].is-in > .ph__img {
  scale: 1;
}

/* слова в крупных абзацах выезжают по очереди */
html.motion .case .w {
  display: inline-block;
  opacity: 0;
  translate: 0 0.35em;
  transition:
    opacity 0.6s ease calc(min(var(--wi), 36) * 28ms),
    translate 0.8s var(--ease-out) calc(min(var(--wi), 36) * 28ms);
}
html.motion .case .is-in .w,
html.motion .case .w.is-in {
  opacity: 1;
  translate: 0 0;
}

/* превью шага плавно сменяют друг друга */
html.motion .steps__thumb {
  transition: opacity 0.3s ease;
}
html.motion .steps__thumb i {
  transition: translate 0.5s var(--ease-out), scale 0.5s var(--ease-out);
  translate: 0 calc(10 * var(--u));
  scale: 0.9;
}
html.motion .steps__row.is-active .steps__thumb i {
  translate: 0 0;
  scale: 1;
}

@media (prefers-reduced-motion: reduce) {
  .case-modal__sheet,
  .case-modal__backdrop {
    transition: none !important;
  }
}

/* ==========================================================================
   Общие блоки кейсов: логотип-надпись, медиа решений, мокапы в обложке, кнопки итога
   ========================================================================== */
.case__logo--text {
  width: auto;
  height: auto;
  background: none;
  -webkit-mask: none;
  mask: none;
  color: var(--black);
  font-size: 2rem;
  line-height: 1;
  white-space: nowrap;
}
.case__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.shot {
  height: 43.75rem; /* 700 */
  border-radius: var(--r-l);
}
.shot--short {
  height: 37.5rem; /* 600 */
}
.ph--soft {
  background:
    radial-gradient(50% 50% at 50% 45%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 75%),
    linear-gradient(135deg, #dfe6ee, #f2ede7);
}
.ph--rozavam { background: linear-gradient(135deg, #f6d9dc, #fbeee4); }
.ph--fosagro { background: linear-gradient(135deg, #e6e1c4, #f3efdc); }
.shot.ph--orbi { display: block; background: linear-gradient(135deg, #d6ecfb, #f9dff5); }
.case__cover--mock,
.case__cover--phone {
  background: #cfe3f5;
}
.case__cover--mock .lm,
.case__cover--phone .pm {
  border-radius: 0;
}
.case__cover--phone .pm {
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
}
.brand-tag {
  font-size: 3.5rem;
  line-height: 0.95;
  color: var(--white);
  text-align: center;
}
.ph--brand.ph--rozavam { display: grid; place-items: center; background: linear-gradient(135deg, #e86d78, #f6a48f); }
.ph--brand.ph--fosagro { display: grid; place-items: center; background: linear-gradient(135deg, #5a8f3c, #c9b24a); }

/* обложка ФосАгро — видео с ноутбуком */
.case__cover--video { overflow: hidden; background: #8a6b45; }
.case__video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* логотипы кейсов-картинки */
.case__logo--img {
  width: auto;
  height: 2.6804rem; /* как у Aura, 43 */
  background: none;
  -webkit-mask: none;
  mask: none;
}
@media (max-width: 767px) {
  .case__logo--img { height: 2.0104rem; }
}
/* плитка с 3D-иконками в «Роза вам»: рамка уже в картинке; на мобильном — вертикальная версия */
.palette.ph--rozavam { padding: 0; background: none; }
.palette.ph--rozavam picture { display: contents; }
@media (max-width: 767px) {
  .palette.ph--rozavam { aspect-ratio: 544 / 1470; height: auto; }
}

/* Фото решений на планшете и телефоне: высота по пропорциям самого снимка, а не фиксированные 700/600 px
   (базовое правило .shot стоит ниже адаптивных блоков, поэтому адаптив нужно повторить здесь) */
@media (max-width: 1023px) {
  .shot,
  .shot--short {
    height: auto;
    aspect-ratio: var(--ar, 4 / 3);
  }
}
@media (max-width: 767px) {
  .photo.ph--rozavam {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}
