.production-stories {
  position: relative;
  z-index: 1;
  min-height: clamp(860px, 73.9vw, 1064px);
  overflow: hidden;
  background: #f5f5f5;
  color: var(--ink);
}

.production-stories__layout {
  display: grid;
  width: min(calc(100% - 2 * var(--gutter)), var(--content-max));
  min-height: inherit;
  margin-inline: auto;
  grid-template-columns: minmax(350px, .64fr) minmax(680px, 1fr);
  grid-template-rows: minmax(600px, auto) auto;
  column-gap: clamp(48px, 7.4vw, 112px);
  align-items: start;
  padding: clamp(72px, 7.6vw, 116px) 0 clamp(70px, 6vw, 92px);
}

.production-stories__copy {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  align-items: flex-start;
}

.production-stories__eyebrow {
  max-width: 390px;
  margin: 0;
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.35;
}

.production-stories__title {
  margin: auto 0 0;
  font-size: clamp(48px, 4.167vw, 65px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.production-stories__cta {
  display: inline-flex;
  width: min(307px, 100%);
  min-height: 59px;
  margin-top: clamp(38px, 4.2vw, 60px);
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  background: #212529;
  color: #ffffff;
  font: 400 16px/1 "Inter", sans-serif;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out),
    transform .35s var(--ease-out);
}

.production-stories__cta img {
  display: block;
  width: 28px;
  height: 28px;
  transform: rotate(-45deg);
  transition: transform .45s var(--ease-out), filter .35s var(--ease-out);
}

.production-stories__cta:hover,
.production-stories__cta:focus-visible {
  background: #ffffff;
  color: #212529;
  transform: translateY(-2px);
}

.production-stories__cta:hover img,
.production-stories__cta:focus-visible img {
  filter: invert(1);
  transform: translate(4px, -4px) rotate(-45deg);
}

.production-stories__cta:focus-visible,
.production-stories__control:focus-visible,
.production-story-card__open:focus-visible,
.production-story-card__sound:focus-visible,
.production-story-modal__close:focus-visible {
  outline: 2px solid #f36d86;
  outline-offset: 4px;
}

.production-stories__media {
  position: relative;
  min-width: 0;
}

.production-stories__stage {
  position: relative;
  width: 100%;
  height: clamp(500px, 40.3vw, 580px);
}

.production-story-card {
  position: absolute;
  top: 0;
  height: 90%;
  overflow: hidden;
  border-radius: 30px;
  background: #d8d8d8;
  transition:
    left .8s var(--ease-smooth),
    width .8s var(--ease-smooth),
    height .8s var(--ease-smooth),
    transform .8s var(--ease-smooth),
    opacity .55s ease;
}

.production-story-card.is-primary {
  z-index: 2;
  left: 0;
  width: calc(50% - 10px);
  height: 100%;
}

.production-story-card.is-secondary {
  z-index: 1;
  left: calc(50% + 10px);
  width: calc(50% - 10px);
  height: 90%;
}

.production-story-card__open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.production-story-card__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
  transition: transform .9s var(--ease-out);
}

.production-story-card:first-child .production-story-card__video {
  object-position: center top;
}

.production-story-card:nth-child(2) .production-story-card__video {
  object-position: center 46%;
}

.production-story-card:hover .production-story-card__video {
  transform: scale(1.045);
}

.production-story-card__shade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to bottom, rgba(217, 217, 217, 0) 20%, rgba(33, 37, 41, .9) 112%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.production-story-card__number {
  position: absolute;
  right: 18px;
  bottom: -31px;
  color: rgba(255, 255, 255, .66);
  font-size: clamp(86px, 10.2vw, 147px);
  font-style: italic;
  line-height: 1;
  letter-spacing: -.07em;
  pointer-events: none;
}

.production-story-card__sound {
  position: absolute;
  z-index: 4;
  top: 28px;
  right: 25px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transition: opacity .35s ease, background-color .35s ease;
}

.production-story-card.is-primary .production-story-card__sound {
  opacity: 1;
}

.production-story-card__sound:hover {
  background: rgba(33, 37, 41, .35);
}

.production-story-card__sound img {
  display: block;
  width: 27px;
  height: 27px;
}

.production-story-card__track {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 13px;
  left: 28px;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, .3);
  opacity: 0;
  pointer-events: none;
}

.production-story-card.is-primary .production-story-card__track {
  opacity: 1;
}

.production-story-card__progress {
  display: block;
  width: 100%;
  height: 100%;
  background: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.production-stories__controls {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.production-stories__control {
  position: relative;
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform .4s var(--ease-out);
}

.production-stories__control:hover,
.production-stories__control:focus-visible {
  transform: scale(1.13);
}

.production-stories__control-icon {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity .3s var(--ease-out);
}

.production-stories__control-icon--default {
  opacity: 1;
}

.production-stories__control-icon--hover {
  opacity: 0;
}

.production-stories__control:hover .production-stories__control-icon--default,
.production-stories__control:focus-visible .production-stories__control-icon--default {
  opacity: 0;
}

.production-stories__control:hover .production-stories__control-icon--hover,
.production-stories__control:focus-visible .production-stories__control-icon--hover {
  opacity: 1;
}

.production-stories__control:first-child .production-stories__control-icon {
  transform: rotate(180deg);
}

.production-stories__stats {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 78px);
  margin: 0;
  padding: 28px 0 0;
}

.production-stories__stats div {
  min-width: 0;
}

.production-stories__stats dt,
.production-stories__stats dd {
  margin: 0;
  font-weight: 400;
}

.production-stories__stats dt {
  font-size: clamp(30px, 2.43vw, 35px);
  line-height: 1;
}

.production-stories__stats dd {
  max-width: 230px;
  margin-top: 31px;
  color: #76777a;
  font-size: 16px;
  line-height: 1.25;
}

.production-story-modal[hidden] {
  display: none;
}

.production-story-modal {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.production-story-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(61, 63, 64, .74);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.production-story-modal__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, calc(90svh * .5625));
  max-height: 90svh;
  overflow: hidden;
  border-radius: 30px;
  background: #202529;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .22);
}

.production-story-modal__close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #202529;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.production-story-modal__video,
.production-story-modal__poster {
  display: block;
  width: 100%;
  height: 90svh;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #202529;
}

.production-story-modal__poster[hidden],
.production-story-modal__video[hidden] {
  display: none;
}

.production-story-modal__note {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  left: 20px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(33, 37, 41, .76);
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

body.production-story-modal-open {
  overflow: hidden;
}

@media (max-width: 1099px) {
  .production-stories {
      min-height: 0;
    }

  .production-stories__layout {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      gap: 58px;
      padding: 76px 0 84px;
    }

  .production-stories__copy {
      height: auto;
    }

  .production-stories__title {
      margin-top: 70px;
    }

  .production-stories__media,
    .production-stories__stats {
      grid-column: 1;
    }

  .production-stories__stage {
      height: min(72vw, 580px);
    }

  .production-stories__stats {
      padding-top: 0;
    }
}

@media (max-width: 767px) {
  .production-stories__layout {
      width: 100%;
      gap: 42px;
      padding: 58px 20px 68px;
    }

  .production-stories__eyebrow {
      max-width: 330px;
      font-size: 16px;
    }

  .production-stories__title {
      margin-top: 52px;
      font-size: clamp(38px, 11.4vw, 48px);
      line-height: 1.08;
    }

  .production-stories__cta {
      width: 100%;
      min-height: 58px;
      margin-top: 34px;
    }

  .production-stories__media {
      min-width: 0;
    }

  .production-stories__stage {
      /* было min(112vw, 470px) — карточки выглядели слишком узкими
         и длинными на телефоне, уменьшено на 15% */
      height: min(95vw, 400px);
    }

  .production-story-card {
      border-radius: 22px;
    }

  .production-story-card.is-primary {
      width: calc(63% - 7px);
    }

  .production-story-card.is-secondary {
      left: calc(63% + 7px);
      width: calc(37% - 7px);
      height: 70%;
    }

  .production-story-card__number {
      right: 10px;
      bottom: -15px;
      font-size: clamp(68px, 22vw, 96px);
    }

  .production-story-card__sound {
      top: 17px;
      right: 14px;
    }

  .production-story-card__track {
      right: 16px;
      bottom: 11px;
      left: 16px;
    }

  .production-stories__controls {
      margin-top: 12px;
    }

  .production-stories__control {
      width: 43px;
      height: 43px;
    }

  .production-stories__stats {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

  .production-stories__stats dt {
      font-size: clamp(23px, 7vw, 30px);
    }

  .production-stories__stats dd {
      margin-top: 16px;
      font-size: 12px;
      line-height: 1.25;
    }

  .production-story-modal__panel {
      width: min(94vw, 560px);
    }

  .production-story-modal__header {
      padding: 16px 16px 12px 20px;
    }

  .production-story-modal__note {
      padding: 14px 20px 20px;
    }
}
