.hub {
  --hub-gutter: 32px;
  --hub-left: max(var(--hub-gutter), env(safe-area-inset-left, 0px));
  --hub-right: max(var(--hub-gutter), env(safe-area-inset-right, 0px));
}
.hub :is(.shell, .hero-content) {
  width: min(1200px, calc(100% - var(--hub-left) - var(--hub-right)));
  margin-inline: auto;
  position: relative;
  left: calc((var(--hub-left) - var(--hub-right)) / 2);
}
.hub .header { padding-top: env(safe-area-inset-top, 0px); }
.hub .footer { padding-bottom: max(25px, calc(env(safe-area-inset-bottom, 0px) + 12px)); }
.hub .hub-links .hub-jump-contacts { display: none; }

@media (max-width: 810px), (max-width: 1000px) and (max-height: 500px) {
  .hub .header { background: #0e0e0d; }
  .hub .header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 60px; padding: 5px 0; gap: 8px; }
  .hub .navigation { display: none; }
  .hub .languages { grid-row: 1; grid-column: 2; }
  .hub .languages a { min-width: 44px; min-height: 44px; padding-inline: 5px; }
  .hub .hero { margin-top: 0; padding-top: 0; }
  .hub .hub-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub .hub-links .hub-jump-video { display: none; }
  .hub .hub-links .hub-jump-contacts { display: grid; }
  .hub .hub-links a:nth-child(2) { border-left: 0; }
}

@media (max-width: 590px) {
  .hub { --hub-gutter: clamp(14px, 4.5vw, 22px); }
  .hub .header-inner { min-height: 56px; }
  .hub .wordmark { font-size: .9rem; }
  .hub .wordmark img { width: 32px; height: 32px; }
  .hub .languages a { font-size: .875rem; }

  .hub .hero {
    --hub-photo: clamp(174px, 52vw, 252px);
    min-height: 0;
    align-items: start;
    background: #0e0e0d;
  }
  .hub .hero-image, .hub .hero::after { height: var(--hub-photo); }
  .hub .hero-image { object-position: center 47%; transform-origin: center bottom; }
  .hub .hero::after {
    background: linear-gradient(180deg, transparent 30%, #0e0e0d55 63%, #0e0e0d 100%);
  }
  .hub .hero-content { padding: calc(var(--hub-photo) - 39px) 0 18px; }
  .hub .accent-bar { width: 30px; margin-bottom: 11px; }
  .hub .hero h1 {
    font-size: clamp(2rem, 9.6vw, 3.45rem);
    line-height: 1.02;
    letter-spacing: -.047em;
    text-wrap: initial;
  }
  .hub .hero p { margin: 10px 0 17px; line-height: 1.4; }
  .hub .hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hub .button { min-height: 48px; padding: 10px 12px; text-align: center; border-radius: 4px; }
  .hub .hub-links { grid-template-columns: minmax(0, 1.24fr) minmax(0, .8fr) minmax(0, 1fr); }
  .hub .hub-links a { min-height: 48px; padding: 7px 3px; font-size: .875rem; line-height: 1.2; }

  .hub .section { margin-block-start: 34px; }
  .hub .section-head { align-items: start; gap: 10px; margin-bottom: 13px; padding-bottom: 11px; }
  .hub .section h2 { font-size: clamp(1.45rem, 6.6vw, 2rem); line-height: 1.1; }
  .hub .section-head > span { margin-top: 4px; }
  .hub .video-card { min-height: 0; aspect-ratio: 16 / 9; border-radius: 6px; }
  .hub .play { width: 54px; height: 54px; }
  .hub .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub .chips li { min-height: 49px; gap: 7px; padding: 9px; font-size: .875rem; }
  .hub .person { padding: 13px; border-radius: 5px; }
  .hub .footer { margin-top: 34px; }
  .hub .footer a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 380px) {
  .hub .wordmark { font-size: .82rem; letter-spacing: .045em; }
  .hub .wordmark img { width: 28px; height: 28px; }
  .hub .chips li { overflow-wrap: anywhere; }
}

@media (min-width: 591px) and (max-width: 1000px) and (max-height: 500px) {
  .hub .hero { min-height: 290px; }
  .hub .hero-content { padding-block: 28px; }
  .hub .hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.5rem); }
  .hub .hero p { margin-block: 14px 21px; }
  .hub .accent-bar { margin-bottom: 15px; }
}

@media (max-width: 810px), (max-width: 1000px) and (max-height: 500px) {
  .hub .player {
    width: min(430px, calc(100% - var(--hub-left) - var(--hub-right)));
    max-height: calc(100% - max(12px, env(safe-area-inset-top, 0px)) - max(12px, env(safe-area-inset-bottom, 0px)));
    padding: 10px;
    border-radius: 7px;
  }
  .hub .player-header { margin-bottom: 8px; }
  .hub .player-header button { width: 44px; height: 44px; }
  .hub .player video {
    height: min(
      650px,
      calc((100vw - var(--hub-left) - var(--hub-right) - 22px) * 910 / 512),
      calc(100svh - max(12px, env(safe-area-inset-top, 0px)) - max(12px, env(safe-area-inset-bottom, 0px)) - 74px)
    );
  }
}
