/* Направления: экраны своего цвета наезжают друг на друга, предмет поворачивается при прокрутке. */
.ds-hero { padding: clamp(130px, 13vw, 220px) 0 clamp(40px, 5vw, 90px); }
.ds-hero__lbl { color: var(--o-mut); margin-bottom: 16px; }
.ds-hero__h { font-size: clamp(56px, 10vw, 190px); letter-spacing: -.045em; }
.ds-hero__p { margin-top: 18px; max-width: 30em; color: var(--o-mut); font-size: clamp(17px, 1.4vw, 22px); line-height: 1.35; }

.ds-stack { position: relative; }
.ds { --bg: var(--o-gray); --ink: #000; position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--bg); color: var(--ink);
  border-radius: clamp(18px, 2vw, 32px) clamp(18px, 2vw, 32px) 0 0; box-shadow: 0 -30px 70px -24px rgba(0, 0, 0, .65); }
.ds--dark { --bg: #000; --ink: var(--o-fg); }
.ds--yellow { --bg: var(--o-yellow); --ink: var(--o-ink); }
.ds--stone { --bg: #9AA0A2; --ink: #000; }
.ds__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(16px, 3vw, 60px); height: 100%; padding: 70px var(--o-pad) 0; }
.ds__st { display: inline-block; padding: .32em .95em .34em; border: 1.5px solid currentColor; border-radius: 999px; font-size: var(--o-fs-ui); text-transform: uppercase; }
.ds__h { margin: .28em 0 .3em; font-size: clamp(44px, 6.8vw, 130px); }
.ds__p { max-width: 18em; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.3; }
.ds__go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: clamp(20px, 2.4vw, 36px); font-size: var(--o-fs-ui); text-transform: uppercase; }
.ds__btn { display: inline-flex; gap: .5em; align-items: center; min-height: 48px; padding: .6em 1.35em; border-radius: 999px; background: var(--ink); color: var(--bg); }
.ds__lnk { display: inline-flex; gap: .5em; align-items: center; min-height: 44px; border-bottom: 1px solid currentColor; }
.ds__btn span, .ds__lnk span { transition: transform .5s var(--o-ease); }
.ds__btn:hover span, .ds__lnk:hover span { transform: translateX(5px); }
.ds__btn:focus-visible, .ds__lnk:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.ds__art { display: block; justify-self: end; width: 100%; max-width: min(900px, 86vh); }
.ds__img { display: block; width: 100%; height: auto; animation: ds-turn linear both; animation-timeline: view(); animation-range: entry 0% exit 60%; }
@keyframes ds-turn { from { transform: translateY(12%) rotate(-6deg) scale(.86); } to { transform: translateY(-6%) rotate(4deg) scale(1.06); } }
html.ds-js .ds__img { animation: none; transform: translateY(var(--ty, 0)) rotate(var(--rt, 0deg)) scale(var(--sc, 1)); }
.ds-end { height: 16vh; }

@media (max-width: 899px) {
  .ds__in { grid-template-columns: 1fr; align-content: center; gap: 8px; padding-top: 76px; }
  .ds__art { order: 2; justify-self: center; max-width: min(78vw, 46vh); }
  .ds__h { font-size: clamp(36px, 10.5vw, 64px); }
  .ds__p { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds__img { animation-name: ds-turn-calm; }
  @keyframes ds-turn-calm { from { transform: translateY(3%) rotate(-1.5deg) scale(.97); } to { transform: translateY(-2%) rotate(1deg) scale(1.01); } }
  .ds__btn span, .ds__lnk span { transition: none; }
}
