/* Variant 11 — Oswald split type (stable sizes, light fluid scale) */

.hero-variant-11 .hero {
  background: var(--hero-milk);
  overflow: visible;
}

.hero-variant-11 .hero__frame--split {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  column-gap: clamp(4px, 0.8vw, 14px);
  width: 100%;
  max-width: 1680px;
  min-height: min(86dvh, 920px);
  padding: 0 clamp(12px, 2vw, 28px);
  box-sizing: border-box;
}

.hero-variant-11 .hero__panel--left,
.hero-variant-11 .hero__panel--right {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  height: max-content;
  /* Soft scale — stays ~87px on large screens, gently smaller mid-desktop */
  font-size: clamp(56px, 5.5vw, 87px);
  overflow: visible;
}

.hero-variant-11 .hero__panel--left {
  align-items: flex-end;
  text-align: right;
}

.hero-variant-11 .hero__panel--right {
  align-items: flex-start;
  text-align: left;
  gap: 0;
  width: max-content;
  max-width: 100%;
}

.hero-variant-11 .hero__side-title {
  margin: 0;
  color: #040404;
  font-family: var(--font-tt);
  font-size: 1em;
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  width: max-content;
}

.hero-variant-11 .hero__side-word {
  display: inline-flex;
  overflow: visible;
  white-space: nowrap;
}

/*
  VIDEOPRODUCTION — fixed ratio to СТУДИО (25px @ 87px), scales with panel via em.
  No JS resize fitting (that caused size jumps).
*/
.hero-variant-11 .hero__side-tagline {
  position: absolute;
  top: 100%;
  left: 50%;
  margin: 0;
  padding: 10px 0 0;
  width: max-content;
  color: #ee0c0c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.287em; /* 25 / 87 */
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  box-sizing: border-box;
  overflow: visible;
  pointer-events: none;
  display: block;
  opacity: 0;
  transform: translate3d(calc(-50% + 48px), 0, 0);
}

.hero-variant-11 .hero__panel--left .hero__side-title {
  opacity: 0;
  transform: translate3d(-64px, 0, 0);
}

.hero-variant-11 .hero__panel--right .hero__side-title {
  opacity: 0;
  transform: translate3d(64px, 0, 0);
}

.hero-variant-11 .hero.hero--ready .hero__panel--left .hero__side-title,
.hero-variant-11 .hero.hero--ready .hero__panel--right .hero__side-title {
  animation: hvWordSideIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-variant-11 .hero.hero--ready .hero__panel--right .hero__side-title {
  animation-delay: 0.06s;
}

.hero-variant-11 .hero.hero--ready .hero__side-tagline {
  animation: hvTaglineIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}

.hero-variant-11 .hero__media {
  position: relative;
  z-index: 2;
  width: min(calc(36vw * 1.2), calc(min(78dvh, 740px) * 482 / 649 * 1.2));
  height: min(calc(78dvh * 1.2), calc(740px * 1.2));
  aspect-ratio: 482 / 649;
  background: transparent;
  overflow: visible;
  isolation: auto;
  padding-left: 40px;
  box-sizing: content-box;
}

.hero-variant-11 .hero__image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 40px;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  transform-origin: center center;
  will-change: transform;
}

@media (max-width: 900px) {
  .hero-variant-11 .hero {
    overflow-x: clip;
    overflow-y: hidden;
  }

  .hero-variant-11 .hero__frame--split {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 10px;
    min-height: auto;
    padding-bottom: 24px;
  }

  .hero-variant-11 .hero__panel--left,
  .hero-variant-11 .hero__panel--right {
    text-align: center;
    padding: 0 16px;
    margin-inline: auto;
    font-size: clamp(38px, 9vw, 50px);
    align-items: center;
  }

  .hero-variant-11 .hero__media {
    width: min(calc(72vw * 1.2), calc(min(52dvh, 520px) * 482 / 649 * 1.2));
    height: min(calc(52dvh * 1.2), calc(520px * 1.2));
    max-width: calc(100% - 24px);
    margin: 0 auto;
    padding-left: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  .hero-variant-11 .hero__image {
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    will-change: auto;
  }

  .hero-variant-11 .hero__side-tagline {
    left: 50%;
    transform: translate3d(-50%, 0, 0);
  }

  .hero-variant-11 .hero.hero--ready .hero__side-tagline {
    animation: none;
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }

  .hero-variant-11 .hero__panel--left .hero__side-title,
  .hero-variant-11 .hero__panel--right .hero__side-title {
    transform: none;
  }

  .hero-variant-11 .hero.hero--ready .hero__panel--left .hero__side-title,
  .hero-variant-11 .hero.hero--ready .hero__panel--right .hero__side-title {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 639px) {
  .hero-variant-11 .hero__panel--left,
  .hero-variant-11 .hero__panel--right {
    font-size: clamp(32px, 9vw, 38px);
  }
}

@keyframes hvWordSideIn {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hvTaglineIn {
  to {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-variant-11 .hero__panel--left .hero__side-title,
  .hero-variant-11 .hero__panel--right .hero__side-title {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-variant-11 .hero__side-tagline {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
    animation: none;
  }
}
