/* Первый экран варианта: фотография отдельным слоем над исходным видео.
   Общие токены, логотип, стеклянные кнопки и поведение — из style.css/main.js. */
.hero--portrait::before {
  background:
    linear-gradient(90deg, rgb(7 5 7 / 0.84), rgb(7 5 7 / 0.6) 38%, rgb(7 5 7 / 0.15) 72%),
    linear-gradient(180deg, rgb(7 5 7 / 0.12) 60%, rgb(7 5 7 / 0.65));
}

.hero--portrait .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  padding-block: 48px;
}

.hero__copy {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  transform: translateY(-20px);
}

.hero--portrait .hero__mark {
  height: clamp(96px, 9vw, 132px);
}

.hero--portrait .hero__word {
  margin-top: 12px;
  font-size: clamp(16px, 1.55vw, 23px);
}

.hero--portrait .hero__title {
  max-width: 100%;
  font-size: clamp(30px, 3.25vw, 48px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero--portrait .hero__subtitle {
  max-width: 100%;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.hero--portrait .hero__actions {
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
}

.hero--portrait .hero__actions .btn-glass {
  flex: 1;
  min-width: 0;
  gap: 14px;
  min-height: 68px;
  padding: 12px 18px;
  font-size: 14px;
}

.hero--portrait .hero__actions .btn-glass__text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hero--portrait .hero__actions .btn-glass__icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.hero--portrait .hero__actions .btn-glass__arrow {
  flex-shrink: 0;
  width: 20px;
  margin-left: auto;
}

.hero__portrait {
  position: absolute;
  z-index: 0;
  bottom: -3px;
  left: calc(50% - 110px);
  height: min(100%, 840px);
  aspect-ratio: 3 / 2;
  pointer-events: none;
  user-select: none;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
}

@media (min-width: 1800px) {
  .hero__portrait {
    left: calc(50% - 200px);
    height: min(100%, calc((50vw + 170px) / 1.5), 1100px);
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .hero--portrait .hero__inner {
    grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  }

  .hero--portrait .hero__actions {
    flex-direction: column;
    width: min(100%, 310px);
    gap: 12px;
    margin-top: 26px;
  }
}

@media (min-width: 900px) and (max-height: 680px) {
  .hero--portrait .hero__inner {
    padding-block: 24px;
  }

  .hero--portrait .hero__mark {
    height: 88px;
  }

  .hero--portrait .hero__title {
    margin-top: 20px;
    font-size: clamp(30px, 3.1vw, 44px);
  }

  .hero--portrait .hero__subtitle {
    margin-top: 18px;
  }

  .hero--portrait .hero__actions {
    margin-top: 26px;
  }
}

@media (max-width: 899px) {
  .hero--portrait {
    flex-direction: column;
    align-items: stretch;
  }

  .hero--portrait::before {
    background: linear-gradient(180deg, rgb(7 5 7 / 0.65), rgb(7 5 7 / 0.4) 65%, rgb(7 5 7 / 0.7));
  }

  .hero--portrait .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 32px 24px;
  }

  .hero__copy {
    grid-column: auto;
    width: min(100%, 560px);
    margin-inline: auto;
  }

  .hero--portrait .hero__mark {
    height: 80px;
  }

  .hero--portrait .hero__word {
    margin-top: 10px;
    font-size: 17px;
  }

  .hero--portrait .hero__title {
    margin-top: 22px;
    font-size: clamp(26px, 7vw, 42px);
  }

  .hero--portrait .hero__subtitle {
    margin-top: 18px;
    font-size: 13px;
  }

  .hero--portrait .hero__actions {
    margin-top: 24px;
  }

  .hero__portrait {
    position: relative;
    bottom: auto;
    left: auto;
    align-self: center;
    width: min(120%, 760px);
    height: auto;
    margin-top: -12px;
  }
}

@media (max-width: 599px) {
  .hero--portrait .hero__actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero--portrait .hero__actions .btn-glass {
    min-height: 60px;
    padding-inline: 24px;
    font-size: 14px;
  }
}
