/* Page banner (шапка внутренних страниц с фоновым изображением).
   Верх картинки сдвинут вниз на реальную высоту фиксированной навигации
   (переменная --nav-height считается в hero.js), чтобы шапка сайта
   не перекрывала голову персонажа — тот же приём, что и в hero-секции
   главной страницы. */
.page-banner {
  position: relative;
  width: 100%;
  height: calc(420px + var(--nav-height, 76px));
  overflow: hidden;
}

.page-banner__img {
  position: absolute;
  top: var(--nav-height, 76px);
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center top;
}

.page-banner__veil {
  position: absolute;
  top: var(--nav-height, 76px);
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(
      180deg,
      hsl(220 18% 6% / 0.35) 0%,
      hsl(220 18% 6% / 0.55) 60%,
      hsl(220 18% 6%) 100%
    ),
    linear-gradient(
      90deg,
      hsl(220 18% 6% / 0.75) 0%,
      transparent 45%,
      transparent 55%,
      hsl(220 18% 6% / 0.75) 100%
    );
}

.page-banner__title {
  position: absolute;
  z-index: 1;
  top: var(--nav-height, 76px);
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-family: Cinzel, "King", Georgia, serif;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: hsl(45 71% 73%);
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
  text-align: center;
}

@media (max-width: 960px) {
  .page-banner {
    height: calc(300px + var(--nav-height, 76px));
  }
  .page-banner__img {
    height: 300px;
  }
  .page-banner__title {
    font-size: 28px;
  }
}

@media (max-width: 560px) {
  .page-banner {
    height: calc(220px + var(--nav-height, 76px));
  }
  .page-banner__img {
    height: 220px;
  }
  .page-banner__title {
    font-size: 22px;
  }
}

/* Timeline banner (компактный баннер для внутренних страниц) */
.timeline-banner {
  width: fit-content;
  gap: 10px;
  margin: 0 auto 32px;
  padding: 12px 26px;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    hsl(32 22% 12% / 0.9),
    hsl(30 18% 7% / 0.95)
  );
  box-shadow:
    0 16px 36px -20px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px hsl(45 60% 62% / 0.25);
}

.timeline-banner__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: hsl(140 60% 50%);
  box-shadow: 0 0 8px hsl(140 60% 50% / 0.8);
  flex-shrink: 0;
}

.timeline-banner__text {
  font-family: Cinzel, "King", Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: hsl(45 71% 73%);
  text-align: center;
}

@media (max-width: 640px) {
  .timeline-banner {
    margin-bottom: 22px;
    padding: 10px 18px;
  }
  .timeline-banner__text {
    font-size: 13px;
  }
}
.navigation__link-items {
  background: #252120 !important;
  padding: 0;
}
.navigation__link-items .navigation__link:not(:last-child) {
  border-bottom: 1px solid rgb(255 255 255 / 5%);
}

/* Chrome, Edge, Safari и браузеры на WebKit */
.hero__video::-webkit-media-controls {
  display: none !important;
}

.hero__video::-webkit-media-controls-panel {
  display: none !important;
}

.hero__video::-webkit-media-controls-overlay-play-button {
  display: none !important;
}

.hero__video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

#skip-button,
.container.underwave {
  display: none !important;
}

.header__fade {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 110px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    hsl(220 18% 6% / 0) 0%,
    hsl(220 18% 6% / 0.28) 42%,
    hsl(220 18% 6% / 0.72) 72%,
    hsl(220 18% 6%) 100%
  );
  z-index: -1;
}

html {
  scroll-behavior: smooth;
}

#about {
  scroll-margin-top: var(--nav-height, 76px);
}

/* ---------- Разделитель ---------- */
.divider {
  position: relative;
  height: 30px;
  margin: 0 auto;
  max-width: 1100px;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    hsl(45 60% 60% / 0.15) 12%,
    hsl(45 70% 70% / 0.55) 50%,
    hsl(45 60% 60% / 0.15) 88%,
    transparent
  );
}

.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: linear-gradient(135deg, #f6e7b4 0%, #bb9743 55%, #6d5320 100%);
  box-shadow: 0 0 16px hsl(42 85% 58% / 0.6);
}

/* ---------- Плавающие соц-иконки справа ---------- */
.soc-sticky {
  position: fixed;
  z-index: 45;
  top: 50%;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transform: translateY(-50%);
  background: linear-gradient(
    180deg,
    hsl(32 22% 12% / 0.95),
    hsl(30 18% 7% / 0.97)
  );
  border-radius: 12px 0 0 12px;
  box-shadow:
    0 16px 36px -20px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px hsl(45 60% 62% / 0.22);
  overflow: hidden;
}

.soc-sticky__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  transition: background 0.2s ease;
}

.soc-sticky__link:hover {
  background: hsl(45 60% 62% / 0.14);
}

.soc-sticky__link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .soc-sticky {
    display: none;
  }
}

/* ---------- Всплывающий призыв подписаться ---------- */
.soc-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 46;
  width: min(320px, calc(100vw - 40px));
  padding: 20px 22px;
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    hsl(32 22% 11% / 0.98),
    hsl(30 18% 6% / 0.99)
  );
  box-shadow:
    0 20px 48px -20px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px hsl(45 60% 62% / 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.soc-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.soc-toast__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: hsl(41 30% 65%);
  font-size: 20px;
  line-height: 1;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 50%;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.soc-toast__close:hover {
  color: hsl(45 71% 73%);
  background: hsl(45 60% 62% / 0.12);
}

.soc-toast__title {
  margin: 0 22px 6px 0;
  font-family: Cinzel, "King", Georgia, serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: hsl(45 71% 73%);
}

.soc-toast__text {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: hsl(41 30% 72%);
}

.soc-toast__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.soc-toast__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: hsl(45 60% 62% / 0.1);
  box-shadow: inset 0 0 0 1px hsl(45 60% 62% / 0.25);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.soc-toast__link:hover {
  background: hsl(45 60% 62% / 0.2);
  transform: translateY(-2px);
}

.soc-toast__link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

@media (max-width: 640px) {
  .soc-toast {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .soc-toast {
    top: 10px;
    right: 10px;
    bottom: auto;
    width: min(240px, calc(100vw - 20px));
    padding: 14px 16px;
    transform: translateY(-24px);
  }
  .soc-toast.is-visible {
    transform: translateY(0);
  }
  .soc-toast__title {
    margin-bottom: 4px;
    font-size: 14px;
  }
  .soc-toast__text {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.4;
  }
  .soc-toast__link {
    width: 36px;
    height: 36px;
  }
  .soc-toast__link img {
    width: 18px;
    height: 18px;
  }
}
