.video-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: -2;
  background: url('fallback-image.jpg') center/cover no-repeat;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background: transparent;
  overflow-x: hidden;
}

.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.top-nav {
  position: sticky;
  top: 0;
  right: 40px;
  padding: 20px;
  z-index: 10;
  display: flex;
  gap: 20px;
  width: 100%;
  display: flex; 
  justify-content: flex-end; 
  background: transparent; 
  transition: background 0.5s; 
}

.top-nav a {
  text-decoration: none;
  color: red;
  font-weight: bold;
  border: 2px solid red;
  padding: 12px 18px;
  text-transform: uppercase;
  font-size: 14px;
  transition: 0.3s;
}

.top-nav a:hover {
  background: red;
  color: black;
}

.top-nav.scrolled {
    background: rgba(0, 0, 0, 0.9); 
}

.logo-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 1000px;
  z-index: 5;
  position: relative;
  width: 100%;
}

.logo-container img {
  height: auto;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 100px;
}

.logo {
    width: 450px;
    height: auto;
    transition: transform 1s ease, width 1s ease; 
    cursor: pointer;
}

.main-logo {
    height: auto;
    transform: scale(1.2); 
}

.shadow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    pointer-events: none; /* Чтобы клики проходили сквозь затемнение */
    transition: background-color 0.5s ease-in-out;
    z-index: 1000;
}

.shadow.disabled {
    display: none;
}

.shadow.active-back {
    background-color: rgba(0, 0, 0, 1); /* Уровень затемнения */
}

.join-btn {
  margin-top: 30px;
  padding: 14px 40px;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid red;
  border-radius: 8px;
  background: red;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 24px rgba(255,0,0,0.08);
  text-decoration: none;
  outline: none;
  display: inline-block;
}
.join-btn:hover, .join-btn:focus {
  color: #fff;
  background: red; /* Цвет не меняется */
  box-shadow: 0 6px 32px rgba(255,0,0,0.15);
}

.banners {
  display: flex;
  width: 100vw;
  height: 500px;
  margin: 0 auto;
  overflow: hidden;
  z-index: 2;
  gap: 6px;
  padding: 0 20px 0 10px;
  position: relative;
}

.banner {
  flex: 1 1 0%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  /* border-radius: 14px; */
  transition:
    flex-grow 1.35s cubic-bezier(.22,1,.36,1),
    box-shadow 1.1s cubic-bezier(.22,1,.36,1),
    filter 1s ease;
  box-shadow: 0 3px 18px rgba(0,0,0,0.18);
  cursor: pointer;
  background: #191919;
  will-change: flex-grow;
  z-index: 1;
}

.banner:nth-child(1).active,
.banner:nth-child(2).active,
.banner:nth-child(3).active,
.banner:nth-child(4).active {
  flex: 3.1 1 0% !important;
  z-index: 2 !important;
  filter: brightness(0.85);
}

.banner img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  pointer-events: none;
  border-radius: 12px;
  transition: none;
}

.banner:hover img,
.banner.active img {
  transform: translate(-50%, -50%);
}

.banner-overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  display: flex;
  align-items: center; justify-content: center;
  z-index: 3;
  background: rgba(0,0,0,0.0); /* теперь нет затемнения всей картинки */
  pointer-events: none;
  transition: background 0.8s cubic-bezier(.22,1,.36,1), font-size 0.8s;
}

.banner-label-window {
  background: rgba(0,0,0,0.92);
  /* border-radius: 16px; */
  padding: 16px 30px;
  min-width: 120px;
  min-height: 42px;
  max-width: 250px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 54px #0008;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid #fff2;
 -webkit-transform: skew(20deg);
        -moz-transform: skew(20deg);
            -o-transform: skew(20deg);
}

.banner-label-text{
    -webkit-transform: skew(-20deg);
        -moz-transform: skew(-20deg);
            -o-transform: skew(-20deg);
}

.banner.active .banner-overlay {
  background: rgba(0,0,0,0.10);
  font-size: 2.2rem;
}

@media (max-width: 900px) {
  .banners { flex-direction: column; height: auto; }
  .banner { height: 180px; }
  .banner img { border-radius: 10px; }
}

.pulse-caption {
  position: absolute;
  top: 60px;
  width: 100%;
  text-align: center;
  z-index: 10;
  overflow: hidden;
  height: 40px;
}

.pulse-text {
  position: relative;
  color: #ccc;
  font-size: 2rem;
  font-weight: bold;
  opacity: 0;
  animation: fade-in-text 2.2s ease-out 1.8s forwards, wave-stroke 1.2s ease-in-out 2.3s forwards, fade-out-text 1s ease-out 7s forwards;
  text-shadow: 0 0 6px #ff0000cc, 0 0 12px #ff000088;
  background: none;
}

@keyframes fade-in-text {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wave-stroke {
  0% {
    text-shadow: 0 0 2px transparent, 0 0 6px transparent;
  }
  50% {
    text-shadow: 0 0 6px #ff0000cc, 0 0 14px #ff0000aa;
  }
  100% {
    text-shadow: 0 0 2px transparent, 0 0 6px transparent;
  }
}

@keyframes fade-out-text {
  0% { opacity: 1; }
  100% { opacity: 0; }
}
/* === SEO strip: full-width + side images pinned to edges (final) === */
.seo-strip {
  position: relative;
  z-index: 2;
  padding: clamp(40px, 6vw, 100px) 20px;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.65) 100%);
  border-top: 1px solid rgba(200,0,0,.35);
  border-bottom: 1px solid rgba(200,0,0,.35);
  overflow: hidden;                /* скрываем выступающие части картинок */
  content-visibility: auto;        /* рендерим секцию только во вьюпорте */
  contain-intrinsic-size: 800px;   /* резервная высота для плавной раскладки */
}
.seo-strip::before {               /* лёгкий красный глоу сверху */
  content: "";
  position: absolute;
  inset: -20px 0 auto 0;
  height: 20px;
  pointer-events: none;
  box-shadow: 0 -24px 64px rgba(200,0,0,.25);
}

/* Центральный контент */
.seo-container {
  position: relative;
  z-index: 2;                      /* текст поверх боковых картинок */
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  color: #f0f0f0;
  line-height: 1.7;
  font-size: 1.05rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.seo-container h1,
.seo-container h2 {
  margin: 0 0 14px 0;
  color: #ff2d2d;
  letter-spacing: .2px;
}
.seo-container h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.seo-container h2 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.seo-container p  { margin: 14px 0; }
.seo-container ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 22px;
}
.seo-container li {
  margin: 8px 0;
  padding-left: 22px;
  position: relative;
}
.seo-container li::before {
  content: "◆";
  color: #c80000;
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(2px);
}
.seo-container .final-text {
  margin-top: 26px;
  font-size: 1.18rem;
  font-weight: 700;
  color: #ff3b3b;
}

/* Боковые изображения по краям секции (не касаются текста) */
.side-img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 1;
  opacity: 0;                      /* для reveal-анимации */
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
  pointer-events: none;            /* декоративные */
  user-select: none;
}
.side-img img {
  width: auto; height: auto;
  max-width: none; max-height: none; /* показываем оригинальный размер на десктопе */
  object-fit: contain;
}
.side-left  { left: 3%;  text-align: left;  }
.side-right { right: 3%; text-align: right; }

/* Reveal-анимации (дешёво: только opacity/transform) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal-left  { transform: translate(-40px, -50%); }
.reveal-right { transform: translate( 40px, -50%); }
.reveal-left.in-view,
.reveal-right.in-view { transform: translateY(-50%); }

/* Адаптация: на мобильных переносим картинки под текст и ограничиваем размер */
@media (max-width: 900px) {
  .seo-strip { padding: 32px 16px; }
  .side-img {
    position: static;
    transform: none;
    margin: 18px auto 0;
    opacity: 1 !important;
    text-align: center;
  }
  .side-img img {
    max-width: 90vw;
    max-height: 50vh;
  }
}

/* Уважение к пользователям без анимаций */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.in-view,
  .reveal-left,
  .reveal-right {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

