/* Витрина новых материалов в левой части родительского hero. */
.hud-latest {
  isolation: isolate;
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
}

.hud-latest .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hud-latest::after {
  display: none;
}

.hud-latest-stage {
  position: absolute;
  inset: 0;
  outline: none;
}

.hud-latest-stage:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -5px;
}

.hud-latest-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  isolation: isolate;
  opacity: 0;
  transform: scale(1.025);
  pointer-events: none;
  transition: opacity 420ms ease, transform 520ms ease;
}

.hud-latest-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hud-latest-slide img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transform-origin: center;
  will-change: transform;
}

@keyframes hud-latest-cover-zoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.045);
  }
}

.hud-latest-slide.is-active img {
  animation: hud-latest-cover-zoom 10s ease-in-out infinite alternate;
}

.hud-latest-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(11, 52, 59, 0.04) 24%, rgba(11, 52, 59, 0.16) 48%, rgba(11, 52, 59, 0.88) 100%);
}

.hud-latest-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 16px;
  color: #fffaf0;
}

.hud-latest-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffd49f;
}

.hud-latest-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 27px);
  line-height: 1.05;
  letter-spacing: 0;
  color: inherit;
}

.hud-latest-copy a {
  width: fit-content;
  margin-top: 2px;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
}

.hud-latest-copy a:hover,
.hud-latest-copy a:focus-visible {
  color: #ffd49f;
}

.hud-latest-access {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 50px;
  max-width: calc(100% - 108px);
  padding: 6px 8px;
  color: #fffaf0;
  background: var(--accent);
  box-shadow: 3px 3px 0 rgba(11, 52, 59, 0.52);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-align: right;
}

.hud-latest-dots {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 5px;
}

.hud-latest-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 250, 240, 0.9);
  background: rgba(11, 52, 59, 0.42);
}

.hud-latest-dots i.is-active {
  background: #ffd49f;
  border-color: #ffd49f;
}

.hud-latest-next {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fffaf0;
  background: rgba(11, 52, 59, 0.72);
  border: 1px solid rgba(255, 250, 240, 0.75);
  cursor: pointer;
}

.hud-latest-next:hover,
.hud-latest-next:focus-visible {
  color: #0f414a;
  background: #ffd49f;
  border-color: #ffd49f;
}

.hud-latest-next svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 720px) {
  .hud-latest-copy {
    padding: 18px;
  }

  .hud-latest-copy h2 {
    font-size: 24px;
  }

  .hud-latest-access {
    top: 12px;
    right: 50px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hud-latest-slide {
    transition: none;
  }

  .hud-latest-slide.is-active img {
    animation: none;
  }
}
