/* --- Подключение шрифтов и базовые стили --- */
@import url('https://fonts.googleapis.com/css2?family=Sofia+Sans+Extra+Condensed:ital,wght@0,500;0,700;0,900;1,500;1,900&display=swap');
/* --- АНИМАЦИЯ ПУЛЬСАЦИИ ПЕРСОНАЖЕЙ --- */
 @keyframes pulse {
     0% {
         transform: scale(1);
    }
     50% {
         transform: scale(1.05);
    }
     100% {
         transform: scale(1);
    }
}

/* --- НОВЫЕ АНИМАЦИИ ПЛАВАНИЯ ДЛЯ ЛОГОТИПОВ --- */
 @keyframes float1 {
     0%, 100% {
         transform: translateY(0);
    }
     50% {
         transform: translateY(-15px);
    }
}
 @keyframes float2 {
     0%, 100% {
         transform: translate(0, 0);
    }
     50% {
         transform: translate(8px, -12px);
    }
}
 @keyframes float3 {
     0%, 100% {
         transform: translateY(0);
    }
     50% {
         transform: translateY(15px);
    }
}
 @keyframes float4 {
     0%, 100% {
         transform: translate(0, 0);
    }
     50% {
         transform: translate(-10px, 10px);
    }
}




* {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
}

body {
     font-family: 'Sofia Sans Extra Condensed', sans-serif;
     background-image: url('../img/bg.webp');
     background-size: cover;
     background-position: center;
     background-repeat: no-repeat;
     color: #ffffff;
     height: 100vh;
     overflow: hidden;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
     align-items: center;
}

.main-container {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     text-align: center;
     position: relative;
     height: 100%;
     width: 100%;
     overflow: hidden;
}


/* --- ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ (ЭФФЕКТ БАРАБАНА) --- */

/* Анимация увеличения и уменьшения */
@keyframes drum-roll {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15); /* Увеличиваем на 15% */
    opacity: 1;
  }
}

.deco-element {
  position: absolute;
  z-index: 0;
  opacity: 0.8;
  transform-origin: center center;
}

/* Общая длительность анимации 4 секунды, бесконечный цикл */
.deco-top-left,
.deco-top-right,
.deco-bottom-left,
.deco-bottom-right {
  animation-name: drum-roll;
  animation-duration: 4s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

/* Расставляем задержки, чтобы анимация шла по кругу */
.deco-top-left {
  top: 0;
  left: 0;
  width: 196px;
  animation-delay: 0s; /* Начинает сразу */
}
.deco-top-right {
  top: 0;
  right: 0;
  width: 192px;
  animation-delay: 1s; /* Начинает через 1 секунду */
}
.deco-bottom-right {
  bottom: 0;
  right: 0;
  width: 219px;
  animation-delay: 2s; /* Начинает через 2 секунды */
}
.deco-bottom-left {
  bottom: 0;
  left: 0;
  width: 276px;
  animation-delay: 3s; /* Начинает через 3 секунды */
}


.header {
     position: absolute;
     top: 37px;
     left: 50%;
     transform: translateX(-50%);
}

.header .logo {
     height: 28px;
}

.title-section {
     position: absolute;
     top: 90px;
     width: 100%;
}

.main-title {
     font-family: 'Sofia Sans Extra Condensed', sans-serif;
     font-weight: 900;
     font-style: italic;
     font-size: 80px;
     line-height: 80%;
     text-align: center;
     text-transform: uppercase;
     letter-spacing: 2px;
     color: rgba(255, 255, 255, 0.9);
}

.subtitle {
     font-family: 'Sofia Sans Extra Condensed', sans-serif;
     font-weight: 500;
     font-style: italic;
     font-size: 32px;
     line-height: 90%;
     text-align: center;
     text-transform: uppercase;
     letter-spacing: 1px;
     color: rgba(255, 255, 255, 0.9);
     margin-top: 15px;
}

.game-logo {
     position: absolute;
     opacity: 0.5;
}

.logo-cs {
     top: 32%;
     left: 30px;
     transform: translateY(-60%);
}
 .logo-cs img {
     width: 303px;
     animation: float1 8s ease-in-out infinite;
}
 .logo-valorant {
     top: 70%;
     left: 180px;
     transform: translateY(-50%);
}
 .logo-valorant img {
     width: 194px;
     animation: float2 10s ease-in-out infinite;
}
 .logo-lol {
     top: 29%;
     right: 50px;
     transform: translateY(-60%);
}
 .logo-lol img {
     width: 198px;
     animation: float3 9s ease-in-out infinite;
}
 .logo-dota {
     top: 70%;
     right: 175px;
     transform: translateY(-50%);
}
 .logo-dota img {
     width: 223px;
     animation: float4 11s ease-in-out infinite;
}
 .characters-section {
     position: relative;
     display: flex;
     justify-content: center;
     align-items: flex-end;
     margin-top: 120px;
     height: 530px;
}
 .character {
     animation-name: pulse;
     animation-duration: 3s;
     animation-iteration-count: infinite;
     animation-timing-function: ease-in-out;
}
 .char-1 {
     z-index: 1;
     margin-right: -93px;
     animation-delay: 0s;
}
 .char-2 {
     z-index: 3;
     margin-right: -65px;
     animation-delay: 0.25s;
}
 .char-3 {
     z-index: 2;
     margin-right: -155px;
     margin-bottom: 50px;
     animation-delay: 0.5s;
}
 .char-4 {
     z-index: 4;
     animation-delay: 0.75s;
}
 .cta-button-container {
     position: absolute;
     top: 70%;
     left: 50%;
     transform: translate(-50%, -50%);
     z-index: 5;
}
 .cta-button {
     display: block;
     width: 320px;
     height: 109px;
     background-image: url('../img/btn.png');
     background-size: contain;
     background-repeat: no-repeat;
     background-position: center;
     text-align: center;
     color: #1a1a1a;
     font-family: 'Sofia Sans Extra Condensed', sans-serif;
     font-weight: 900;
     font-style: italic;
     font-size: 48px;
     padding: 15px 0px;
     line-height: 75px;
    /* Этот параметр можно настроить или убрать, если padding справляется */
     text-decoration: none;
     text-transform: uppercase;
     letter-spacing: 1px;
     transition: all 0.2s ease;
     cursor: pointer;
}
 .cta-button:hover {
     background-image: url('../img/btn_hover.png');
     transform: scale(1.05);
     color: #000000;
}
 .cta-button:active {
     transform: scale(0.95);
}

 .footer {
     position: absolute;
     bottom: 20px;
     left: 50%;
     transform: translateX(-50%);
     display: flex;
     align-items: center;
}
 .footer img {
     height: 50px;
}
/* --- СТИЛИ ДЛЯ POPUP ОКНА --- */
 .popup-overlay {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(14, 0, 41, 0.7);
     backdrop-filter: blur(5px);
     display: none;
    /* По умолчанию скрыт */
     align-items: center;
     justify-content: center;
     z-index: 1000;
}
 .popup-overlay.active {
     display: flex;
    /* Показываем при добавлении класса .active */
}
 .popup-content {
     position: relative;
     width: 378px;
     border-style: solid;
     border-width: 25px;
     border-image-source: url('../img/bgpop.png');
     border-image-slice: 30 fill;
     border-image-width: 25px;
}
 .popup-title {
     font-size: 28px;
     font-weight: 700;
     text-align: center;
     text-transform: uppercase;
     margin-bottom: 0px;
}
 .popup-close {
     position: absolute;
     top: 0px;
     right: 0px;
     background: none;
     border: none;
     cursor: pointer;
}
 .popup-close img {
     width: 24px;
     height: 24px;
     display: block;
}
 .form-placeholder {
     min-height: 250px;
     display: flex;
     align-items: center;
     justify-content: center;
     color: rgba(255,255,255,0.5);
     font-size: 1.5rem;
     font-style: italic;
}


@media (max-width: 1440px) {

.deco-top-left {
    width: 165px;
}

.deco-top-right {
    top: -10px;
    width: 140px;
}
.deco-bottom-left {
    width: 185px;
}

.deco-bottom-right {
    width: 155px;
}

.logo-cs {
    top: 32%;
    left: 10px;
    transform: translateY(-60%);
}

.logo-cs img {
    width: 250px;
}

.logo-valorant {
    top: 74%;
    left: 60px;
    transform: translateY(-50%);
}

.logo-valorant img {
    width: 128px;
}

.logo-lol {
    top: 52%;
    right: 20px;
    transform: translateY(-60%);
}

.logo-lol img {
    width: 155px;
}

.logo-dota {
    top: 77%;
    right: 0px;
    transform: translateY(-50%);
}

.logo-dota img {
    width: 170px;
}

.footer img {
    height: 40px;
}
}

@media (max-width: 1024px) {

body {
    overflow-y: auto;
    height: 100%;
}

.main-container {
    min-height: 900px;
    height: 100vh;
    width: 100%;
}
.main-title {
    font-size: 56px;
}

.subtitle {
    font-size: 28px;
    width: 394px;
    margin: 10px auto;
}
.deco-top-left {
    width: 140px;
}
.deco-top-right {
    width: 110px;
}
.deco-bottom-left {
    width: 160px;
}
.deco-bottom-right {
    width: 120px;
}
.footer img {
    height: 34px;
}
.characters-section {
    transform: scale(0.82);
    height: 580px;
    margin-top: 15px;
}

.logo-cs {
    top: 32%;
    left: 10px;
    transform: translateY(-60%);
}
.logo-cs img {
     width: 210px;
}

.logo-valorant {
    top: 83%;
    left: 140px;
    transform: translateY(-50%);
}
.logo-valorant img {
    width: 115px;
}

.logo-lol {
    top: 22%;
    right: 46px;
    transform: translateY(-60%);
}
.logo-lol img {
    width: 114px;
}

.logo-dota {
    top: 82%;
    right: 74px;
    transform: translateY(-50%);
}

.logo-dota img {
    width: 170px;
}

.footer {
    bottom: 40px;
}

}

@media (max-width: 768px) {

.main-container {
    min-height: 812px;
    height: 100vh;
    width: 100%;
}

.deco-top-left {
    width: 150px;    
    top: -50px;
    left: -25px;
}
.deco-top-right {
    width: 110px;
    top: -50px;
    right: -30px;
}

.deco-bottom-left {
    bottom: -35px;
}

.deco-bottom-right {
    bottom: -45px;
}

.main-title {
    font-size: 40px;
    letter-spacing: 0px;
}

.subtitle {
    font-size: 28px;
    width: 375px;
    letter-spacing: 0px;
}

.logo-cs {
display: none;
}

.logo-valorant {
display: none;
}

.logo-lol {
display: none;
}
.logo-dota {
display: none;
}

.footer img {
    content: url('../img/logo_partner_mob.png');
    height: 84px;
}

.characters-section {
    transform: scale(0.62);
    height: 440px;
    margin-top: 15px;
}

.cta-button-container {
    position: absolute;
    top: 105%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
}

.popup-content {
    width: 340px;
}
}