.block-hero {
  position: relative;
  background: #fff;
  padding: 0;
}

.block-hero__topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  min-height: 78px;
  padding: 16px var(--layout-inline);
  background: #ffffff;
  border-bottom: 1px solid rgba(193, 195, 196, 0.55);
}

.block-hero__nav-backdrop {
  display: none;
}


.block-hero__frame {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-height: clamp(520px, 68vh, 920px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  background: #fff;
}


@media (min-width: 901px) {
  .block-hero {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }

  .block-hero__topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    min-height: 72px;
    padding: 16px clamp(18px, 2vw, 32px) 14px;
    border-bottom: none;
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.045) 0,
        rgba(0, 0, 0, 0.045) 1px,
        transparent 1px,
        transparent 100%
      ),
      #ffffff;
    background-size: 25% 100%, auto;
  }

  .block-hero__topbar-brand {
    display: none;
  }

  .block-hero__nav {
    width: 100%;
    justify-content: space-between;
    gap: clamp(8px, 1.1vw, 18px);
    min-width: 0;
  }

  .block-hero__nav a {
    flex: 0 1 auto;
    min-width: 0;
    font-size: clamp(10px, 0.72vw, 12px);
    line-height: clamp(12px, 0.86vw, 14px);
  }

  .block-hero__frame {
    height: 100%;
    min-height: 100%;
  }

  .block-hero__col--text {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .block-hero__col--media {
    min-height: 0;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .block-hero__topbar {
    min-height: 132px;
    align-items: flex-start;
    padding-top: 14px;
    padding-bottom: 12px;
    overflow: hidden;
  }

  .block-hero__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    row-gap: 12px;
    column-gap: 22px;
  }

  .block-hero__nav a {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    min-height: 32px;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
    line-height: 1.15;
  }
}

@supports (height: 100dvh) {
  @media (min-width: 901px) {
    .block-hero {
      height: 100dvh;
      min-height: 100dvh;
      max-height: 100dvh;
    }
  }
}


.block-hero__col--text {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding-bottom: 0;
  overflow: hidden;
  background-color: #1a1520;
}

.block-hero__col--text::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../../assets/hero.webp");
  background-size: cover;
  
  background-position: 72% center;
  filter: blur(22px);
  -webkit-filter: blur(22px);
  transform: scale(1.12);
  pointer-events: none;
}

.block-hero__col--text::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(20, 15, 32, 0.35);
  pointer-events: none;
}

.block-hero__col-surface {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: var(--hero-banner-h, 212px);
  background-color: #ffffff;
  background-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.045) 0,
    rgba(0, 0, 0, 0.045) 1px,
    transparent 1px,
    transparent 100%
  );
  background-size: 25% 100%;
}

.block-hero__text-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2.5vw, 28px) var(--layout-inline) clamp(10px, 1.5vw, 16px);
  flex-shrink: 0;
}

.block-hero__nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(18px, 2.3vw, 40px);
  margin-left: 0;
}

.block-hero__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  font-family: "Roboto", var(--font), system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(0.65rem, 1.1vw, 0.75rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  white-space: normal;
  transition: color 0.18s ease;
}

.block-hero__nav a:hover {
  color: #5c3788;
}

.block-hero__nav a:focus-visible {
  outline: 2px solid rgba(92, 55, 136, 0.22);
  outline-offset: 4px;
}

.block-hero__burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
}

.block-hero__burger-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.block-hero__text-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(12px, 2.5vw, 24px) var(--layout-inline) clamp(36px, 7vh, 80px);
}

.block-hero__badge {
  box-sizing: border-box;
  display: block;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  margin: 0 0 clamp(8px, 1.2vh, 14px);
  padding: clamp(8px, 1.2vw, 10px) clamp(12px, 2vw, 16px);
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  font-weight: 600;
  color: #333;
  border: 1px solid #e6c200;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
}

.block-hero__badge strong {
  font-weight: 800;
  color: #5c3788;
}

.block-hero__title {
  /* зазор до лида ≈ одна строка подзаголовка (макет) */
  margin: 0 0 clamp(0.65rem, 1.1vw + 0.35rem, 1.75rem);
  font-size: clamp(1.35rem, 3.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.18;
  color: #111;
}

.block-hero__lead {
  margin: 0;
  font-family: "Roboto", var(--font), system-ui, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(0.9375rem, 1.35vw + 0.45rem, 1.5rem);
  line-height: 1.17;
  color: #59595b;
  max-width: min(40rem, 100%);
}

.block-hero__col--media {
  position: relative;
  min-width: 0;
  min-height: clamp(280px, 42vw, 560px);
  background-color: #2a2035;
  background-image: url("../../assets/hero.webp");
  background-size: cover;
  background-position: 58% center;
  background-repeat: no-repeat;
}

.block-hero__media-top {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(14px, 2.5vw, 28px) var(--layout-inline);
  pointer-events: none;
}

.block-hero__media-top a {
  pointer-events: auto;
}

.block-hero__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.block-hero__brand-img {
  display: block;
  height: clamp(28px, 5.2vw, 40px);
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.35));
}

.block-hero__social {
  display: flex;
  gap: clamp(6px, 1.5vw, 10px);
  flex-shrink: 0;
}

.block-hero__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* Telegram / VK: только белый глиф на фото, без «таблетки» */
.block-hero__social-btn--glyph {
  width: auto;
  min-width: clamp(28px, 4.5vw, 36px);
  height: clamp(28px, 4.8vw, 34px);
  padding: 0 2px;
}

.block-hero__social-btn--glyph .block-hero__social-icon {
  display: block;
  width: auto;
  height: clamp(22px, 4vw, 28px);
  max-width: 42px;
}

.block-hero__social-btn:hover {
  opacity: 0.88;
  transform: scale(1.05);
}

.block-hero__social-btn:focus-visible {
  outline: 2px solid #fcfefe;
  outline-offset: 3px;
}


.block-hero__video-widget {
  position: absolute;
  z-index: 6;
  right: var(--layout-inline);
  bottom: calc(var(--hero-banner-h, 212px) + 16px);
  width: min(132px, 28vw);
  min-width: 108px;
  padding: clamp(8px, 1.5vw, 10px) clamp(8px, 1.5vw, 10px) clamp(10px, 1.8vw, 12px);
  border-radius: 8px;
  background: rgba(20, 15, 30, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.block-hero__video-widget:hover {
  background: rgba(30, 22, 45, 0.9);
  border-color: rgba(255, 215, 0, 0.45);
}

.block-hero__video-widget:focus {
  outline: 2px solid var(--color-accent, #ffd700);
  outline-offset: 3px;
}

.block-hero__video-preview {
  position: relative;
  width: 100%;
  display: block;
}

.block-hero__video-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 14;
  border-radius: 4px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)),
    url("../../assets/hero-video-thumb.webp") center / cover no-repeat;
}

.block-hero__video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(38px, 8vw, 44px);
  height: clamp(38px, 8vw, 44px);
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.block-hero__video-play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #1a1a1a;
}

.block-hero__video-caption {
  font-size: clamp(0.58rem, 1.4vw, 0.68rem);
  font-weight: 600;
  line-height: 1.3;
}


@media (max-width: 900px) {
  .block-hero {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .block-hero__topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 76px;
    gap: 16px;
    padding: 14px var(--layout-inline);
    justify-content: space-between;
    z-index: 60;
  }

  .block-hero__topbar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    line-height: 0;
  }

  .block-hero__topbar-brand-img {
    display: block;
    width: auto;
    height: 36px;
    max-width: min(172px, 48vw);
    object-fit: contain;
  }

  .block-hero__frame {
    grid-template-columns: 1fr;
    min-height: 0;
    height: auto;
    align-items: stretch;
    padding-top: 76px;
  }

  /* Фото на всю ширину, без «карточки» видео справа */
  .block-hero__col--media {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: clamp(240px, 44vh, 368px);
    order: -1;
    background-position: center top;
  }

  .block-hero__media-top {
    display: none;
  }

  .block-hero__video-widget {
    display: none;
  }

  .block-hero__burger {
    display: block;
    width: 56px;
    height: 56px;
    margin-left: auto;
    border: 1px solid #d7d7d7;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(37, 37, 41, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .block-hero__nav {
    display: flex;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 22px 14px;
    background: #fcfefe;
    border-top: 1px solid rgba(193, 195, 196, 0.45);
    border-bottom: 1px solid rgba(193, 195, 196, 0.45);
    box-shadow: 0 18px 44px rgba(37, 37, 41, 0.14);
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.24s ease,
      transform 0.24s ease,
      visibility 0.24s ease;
  }

  .block-hero__nav--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .block-hero__nav a {
    position: relative;
    padding: 16px 0;
    font-size: clamp(13px, 3.6vw, 15px);
    font-weight: 700;
    line-height: clamp(15px, 4vw, 18px);
    letter-spacing: 0.06em;
    color: #252529;
    text-align: left;
    border-bottom: 1px solid rgba(193, 195, 196, 0.36);
  }

  .block-hero__nav a:last-child {
    border-bottom: none;
  }

  .block-hero__nav a::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 999px;
    background: #eab300;
    transform: translateY(-50%);
    transition: height 0.18s ease;
  }

  .block-hero__nav a:hover::before,
  .block-hero__nav a:focus-visible::before {
    height: 16px;
  }

  .block-hero__col-surface {
    margin-bottom: 0;
    background-size: 33.333% 100%;
  }

  .block-hero__text-body {
    justify-content: flex-start;
    align-items: stretch;
    text-align: left;
    padding: 18px var(--layout-inline) 22px;
  }

  .block-hero__badge {
    align-self: flex-start;
    text-align: left;
    margin-bottom: 16px;
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .block-hero__title {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 7vw, 3.45rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: none;
    text-align: left;
  }

  .block-hero__lead {
    max-width: none;
    text-align: left;
    font-size: clamp(1.05rem, 3.4vw, 1.45rem);
    line-height: 1.2;
  }
}

@media (max-width: 520px) {
  .block-hero__topbar {
    min-height: 62px;
    padding: 12px 22px;
    justify-content: space-between;
  }

  .block-hero__frame {
    padding-top: 62px;
  }

  .block-hero__topbar-brand-img {
    height: 28px;
    max-width: 135px;
  }

  .block-hero__burger {
    width: 50px;
    height: 50px;
  }

  .block-hero__col--media {
    min-height: 238px;
  }

  .block-hero__video-widget {
    display: none;
  }

  .block-hero__video-caption {
    font-size: 0.74rem;
  }

  .block-hero__text-body {
    padding: 18px 22px 24px;
  }

  .block-hero__badge {
    font-size: 12px;
    line-height: 1.2;
  }

  .block-hero__title {
    font-size: 32px;
  }

  .block-hero__lead {
    font-size: 15px;
  }

  .block-hero__nav {
    padding: 10px 22px 14px;
  }
}

@media (min-width: 901px) and (max-width: 1320px) {
  .block-hero .block-hero__topbar {
    min-height: 132px;
    align-items: flex-start;
    padding: 14px 22px 12px;
    overflow: hidden;
  }

  .block-hero .block-hero__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(28px, auto);
    width: 100%;
    max-width: 100%;
    justify-content: stretch;
    align-content: start;
    column-gap: 24px;
    row-gap: 12px;
  }

  .block-hero .block-hero__nav a {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    font-size: 12px;
    line-height: 14px;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }
}


.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 24px);
}

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

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.video-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, min(92vw, 960px));
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #111;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.video-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.video-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.video-modal__ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal__iframe,
.video-modal__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-modal__video {
  object-fit: contain;
  background: #000;
}

.video-modal__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin: 0;
  color: #ccc;
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 600px) {
  .video-modal__panel {
    width: 100%;
    max-height: 85dvh;
  }

  .video-modal__ratio {
    aspect-ratio: 16 / 9;
    min-height: 200px;
  }
}
