/* Общие стили */
body {
    margin: 0;
    padding: 0;
    background: #020c22;
    color: white;
    font-family: Montserrat, sans-serif;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../img/pathern.webp") repeat;
    mix-blend-mode: saturation;
    opacity: 0.8; /* Регулируйте насыщенность через прозрачность */
    pointer-events: none;
    z-index: -1;
}


/* Обертка */
.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Хедер */
.header {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 140px;
}

/* Герой секция */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 40px;
}

.container {
    width: 1280px;
}

/* Блок с заголовком */
.title-block {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Декоративная картинка под буквой M */
.sniper-icon {
    position: absolute;
    left: 25px;
    bottom: 10px;
    width: 140px;
    height: auto;
    z-index: 0;
}

.cursor {
    position: absolute;
    right: 0px;
    top: 110px;
    width: 36px;
    height: auto;
    z-index: 0;
}


/* Основной заголовок */
.main-title {
    font-weight: 900;
    font-size: 80px;
    line-height: 100%;
    text-transform: uppercase;
    text-shadow: 0px 6px 0px #9642eb;
    margin: 0;
    position: relative;
    z-index: 1; /* Поднимаем текст выше sniper.png */
}


/* Подзаголовок */
.subtitle {
    font-weight: 900;
    font-size: 48px;
    line-height: 100%;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Дата */
.date {
    font-family: Roboto, sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 100%;
    text-align: center;
    margin-top: 10px;
}

/* Картинка аватара */
.avatar {
    display: block;
    width: 1549px;
    height: auto;
    margin: -100px auto 0;
}

/* Секция шагов */
.steps {
    position: relative; /* Для позиционирования псевдоэлемента */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 60px auto;
    z-index: 1; /* Поднимаем шаги выше фона */
}

/* Декоративный дым */
.steps::before {
    content: "";
    position: absolute;
    width: 1612px;
    height: auto;
    aspect-ratio: 500 / 500;
    bottom: -300px;
    left: 50%;
    transform: translateX(-50%);
    background: url('../img/fog.webp') no-repeat center bottom;
    background-size: contain;
    z-index: -1;
    opacity: 1;
}


/* Каждый блок */
.step {
    font-family: inter, sans-serif;
    position: relative;
    background: #07080a;
    border: 1px solid #b173f0;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
    min-height: 180px;
}

/* Число в углу */
.step-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
    background: white;
    color: black;
    font-size: 24px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Текст */
.step-text {
    font-family: Montserrat, sans-serif;
    font-weight: 900;
    font-size: 32px;
    line-height: 120%;
    text-transform: uppercase;
    color: white;
    margin-bottom: 0px;
    max-width: 100%;
}

/* Картинка справа */
.step-icon1 {
    position: absolute;
    right: 50px;
    bottom: 90px;
    width: 109px;
    height: auto;
}

.step-icon2 {
    position: absolute;
    right: 20px;
    bottom: 155px;
    width: 170px;
    height: auto;
}

.step-icon3 {
    position: absolute;
    right: 10px;
    bottom: 55px;
    width: 213px;
    height: auto;
}

.step-icon4 {
    position: absolute;
    right: -30px;
    bottom: 75px;
    width: 278px;
    height: auto;
}


/* Секция кнопки */
.signup-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0px;
    z-index: 2;
}

/* Кнопка */
.signup-button {
    width: 450px;
    height: 100px;
    background: #FF7C1E;
    border: none;
    font-family: Montserrat, sans-serif;
    font-weight: 900;
    font-size: 48px;
    line-height: 100%;
    text-transform: uppercase;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Ховер */
.signup-button:hover {
    background: #E86C14;
}

/* Нажатие */
.signup-button:active {
    background: #C25610;
}

/* Текст под кнопкой */
.signup-text {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    text-transform: uppercase;
    text-align: center;
    color: white;
    margin-top: 25px;
}


/* Общий стиль секции */
.leaderboard {
    text-align: center;
    margin-top: 10px;
    position: relative; /* Для позиционирования декоративных элементов */
    margin-bottom: 80px;
}

/* Заголовок секции */
.leaderboard-title {
    font-family: Montserrat, sans-serif;
    font-weight: 900;
    font-size: 60px;
    text-transform: uppercase;
    color: white;
    text-shadow: 0px 6px 0px #9642eb;
    margin-bottom: 0px;
}


/* Контейнер для декоративных элементов */
.decor-elements {
    position: absolute;
    top: -270px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* Чтобы картинки не мешали кликам */
}

/* Декоративный элемент слева */
.decor-card {
    width: 448px;
    height: auto;
    position: absolute;
    left: -235px;
    top: 0;
}

/* Декоративный элемент справа */
.decor-x {
    width: 240px;
    height: auto;
    position: absolute;
    right: -180px;
    top: 120px;
}

/* Контейнер карточек */
.leaderboard-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

/* Карточка */
.leaderboard-card {
    position: relative;
    width: 380px;
}

.leaderboard-card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("../img/bgcard.webp") no-repeat center;
    background-size: contain;
    left: -15px;
    bottom: 15px;
    z-index: -1;
}

/* Фон под карточкой */
.card-shadow {
    position: absolute;
    width: 100%;
    left: -15px;
    bottom: -15px;
    z-index: -1;
}

/* Контент карточки */
.card-content {
    background: #07080a;
    border: 4px solid #b173f0;
    padding: 10px;
    text-align: center;
}

/* Заголовки */
.card-title {
    font-family: Montserrat, sans-serif;
    font-weight: 900;
    font-size: 40px;
    text-transform: uppercase;
    color: white;
    text-shadow: 0px 5px 0px #9642eb;
    margin-top: 0px;
    margin-bottom: 0px;
}

.card-date {
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    color: white;
    margin-top: 5px;
    margin-bottom: 0px;
}

.card-subtitle {
    font-family: Montserrat, sans-serif;
    font-weight: 900;
    font-size: 50px;
    text-transform: uppercase;
    color: white;
    text-shadow: 0px 5px 0px #9642eb;
    margin-top: 10px;
    margin-bottom: 0px;
}

/* Таблица лидерборда */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.leaderboard-table td {
    font-family: Montserrat, sans-serif;
    color: white;
    padding: 5px 5px;
    height: 36px;
    
}

/* Стиль для позиций */
.position {
    font-weight: 900;
    text-transform: uppercase;
    width: 10%;
}

/* Первые 3 места - крупные цифры */
.top .position {
    font-size: 32px;
    color: white;
    text-shadow: 0px 6px 0px #9642eb;
}

/* Остальные места */
.position {
    font-size: 24px;
    text-align: left;
}

/* ID игрока */
.id {
    font-size: 20px;
    font-weight: 700;
    width: 35%;
    text-align: left;
}

/* Очки */
.points {
    font-size: 11px;
    font-weight: 700;
    width: 10%;
    text-align: center;
    text-transform: uppercase;
}

/* Призы */
.reward {
    font-size: 14px;
    font-weight: 700;
    width: 25%;
    text-align: right;
}

.reward span {
    font-size: 20px;
    font-weight: 700;
}

/* Кнопки стрелки */
.leaderboard-arrow {
    position: absolute;
    top: 51%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.2s ease-in-out;
}

.left-arrow {
    left: -35px;
}

.right-arrow {
    right: -25px;
}

.leaderboard-arrow img {
    width: 50px;
    height: auto;
    transition: opacity 0.2s ease-in-out;
}

/* Ховер-эффект - смена изображения */
.left-arrow:hover .arrow-img {
    content: url("../img/lefth.webp");
}

.right-arrow:hover .arrow-img {
    content: url("../img/righth.webp");
}


/* Контейнер для карточек (слайдер) */
.leaderboard-wrapper {
    overflow: hidden;
    width: 1200px; /* Подстраивай под количество карточек */
    position: relative;
}

/* Карточки в ряд */
.leaderboard-cards {
    display: flex;
    transition: transform 0.3s ease-in-out;
}


/* Текст под карточками */
.leaderboard-footer {
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    color: white;
    margin-top: 30px;
}

/* Текст обновления */
.update-time {
    font-family: Roboto, sans-serif;
    font-weight: 700;
    font-size: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 20px;
}


/* Стили для попапа */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Скрыт по умолчанию */
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Затемнение фона */
.popup-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(2, 12, 34, 0.85); /* Цвет 020C22 с прозрачностью 20% */
}

/* Контейнер попапа */
.popup-content {
    position: relative;
    background: #07080a;
    padding: 40px;
    width: 400px;
    border-radius: 12px;
    text-align: center;
    z-index: 1001;
    border: 2px solid #b173f0;
}

/* Кнопка закрытия */
.popup-close {
    position: absolute;
    top: 18px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px; /* Подстрой размер */
    height: 24px;
    padding: 0;
}

.popup-close img {
    width: 100%;
    height: auto;
}


/* Анимация появления */
.popup.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Форма */
.registration-form {
    display: flex;
    flex-direction: column;
}

.registration-form h2 {
    font-family: Montserrat, sans-serif;
    font-size: 24px;
    color: white;
    margin-bottom: 20px;
}

.registration-form input {
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    background: #1C1C1F;
    color: white;
    font-size: 16px;
}

.registration-form button {
    background: #FF7C1E;
    padding: 12px;
    font-size: 18px;
    font-weight: 700;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.registration-form button:hover {
    background: #E86C14;
}
.board {
    display: flex;
    width: 1200px;
    padding-left: 20px;
    justify-content: flex-start;
    overflow-x: scroll;
    scrollbar-width: none; /* Для Firefox */
    -ms-overflow-style: none; /* Для Internet Explorer и Edge */
}

.board::-webkit-scrollbar {
    display: none;
}

@media (max-width: 1300px) {
    .main-title {
        font-size: 60px; 
    }

    .sniper-icon {
        left: 180px;
        bottom: 8px;
        width: 100px;
    }

    .avatar {
        content: url('../img/avatar2.webp');
        width: 1024px;
        margin: -130px auto 0;
    }

    .step {
        padding: 20px;
        min-height: 138px;
    }

    .step-number {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .step-text {
        font-size: 24px;
    }
    .step-icon1 {
        width: 78px; 
        bottom: 65px;
    }
    .step-icon2 {
        position: absolute;
        right: 20px;
        bottom: 98px;
        width: 133px;
        height: auto;
    }
    .step-icon4 {
        position: absolute;
        right: -33px;
        bottom: 75px;
        width: 204px;
        height: auto;
    }
    .step-icon3 {
        position: absolute;
        right: 10px;
        bottom: 31px;
        width: 157px;
        height: auto;
    }
    .signup-button {
        width: 340px;
        height: 75px;
        font-size: 36px;
    }
    .leaderboard-title {
        font-size: 48px;
        margin-top: 15px;  
    }
    .card-title {
        font-size: 30px;
    }
    .card-date {
        font-size: 18px;
    }
    .card-subtitle {
        font-size: 38px;
    }
    .top .position {
        font-size: 24px;
    }
    .position {
        font-size: 18px;
    }
    .id {
        font-size: 16px;
    }
    .points {
        font-size: 10px;
    }
    .reward {
        font-size: 10px;
    }
    .reward span {
        font-size: 16px;
    }
    .leaderboard-arrow {
        top: 48%;
    }
    .leaderboard-card {
        width: 290px;
    }
    .leaderboard-table td {
        height: 26px;
    }
    .right-arrow {
        right: -27px;
    }
    .leaderboard {
        margin-bottom: 30px;
    }
    .decor-x {
        width: 190px;
        right: 0px;
    }
    .decor-card {
        width: 309px;
        left: -115px;
        z-index: 1;
    }
    .board {
        display: flex;
        width: 930px;
        overflow-x: scroll;
    }
}

@media (max-width: 1024px) {
    .main-title {
        font-size: 48px;
    }
    .sniper-icon {
        left: 265px;
        bottom: 4px;
        width: 94px;
    }
    .avatar {
        width: 768px;
    }
    .steps {
        gap: 10px;
    }
    .step {
        padding: 15px;
        min-height: 160px;
        width: 320px;
    }
    .step-icon1 {
        width: 66px;
        bottom: 94px;
        right: 28px;
    }
    .step-icon2 {
        position: absolute;
        right: 20px;
        bottom: 130px;
        width: 100px;
        height: auto;
    }
    .step-icon3 {
        position: absolute;
        right: 10px;
        bottom: 70px;
        width: 130px;
        height: auto;
    }
    .step-icon4 {
        position: absolute;
        right: -15px;
        bottom: 100px;
        width: 150px;
        height: auto;
    }
    .signup-button {
        width: 227px;
        height: 50px;
        font-size: 24px;
    }
    .signup-text {
        font-size: 16px;
        margin-top: 20px;
    }
    .leaderboard-title {
        font-size: 44px;
        margin-top: 5px;
    }
    
    .card-content {
        background: #07080a;
        border: 4px solid #b173f0;
        padding: 10px;
        text-align: center;
        width: 260px;
    }
    .board {
        display: flex;
        width: 96vw;
        margin-left: 20px;
        padding-right: 20px;
    }
    
}

@media (max-width: 768px) {
    .logo {
        width: 100px;
    }
    .avatar {
        content: url('../img/avatar3.webp');
        width: 348px;
        margin: 0px auto 0;
    }
    .container {
        width: 100%;
        margin-left: 15px;
        margin-right: 15px;
    }
    .main-title {
        font-size: 36px;
    }
    .sniper-icon {
        display: none;
    }
    .cursor {
        display: none;
    }
    .subtitle {
        font-size: 24px;
    }
    .date {
        font-size: 24px;
    }
    .header {
        height: 70px;
    }
    .hero {
        margin-top: 5px;
    }
    .steps {
        grid-template-columns: repeat(1, 1fr);
        margin: 20px auto;
    }
    .step {
        width: 308px;
        min-height: 108px;
    }
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
        top: 10px;
        left: 13px;
    }
    .step-text {
        font-size: 20px;
    }
    .step-icon1 {
        width: 45px;
        bottom: 73px;
        right: 28px;
    }
    .step-icon2 {
        position: absolute;
        right: 14px;
        bottom: 33px;
        width: 84px;
        height: auto;
    }
    .step-icon3 {
        position: absolute;
        right: 6px;
        bottom: 40px;
        width: 90px;
        height: auto;
    }
    .step-icon4 {
        position: absolute;
        right: -14px;
        bottom: 33px;
        width: 100px;
        height: auto;
    }
    .decor-elements {
        display: none;
    }
    .leaderboard-title {
        font-size: 36px;
        margin-top: 5px;
    }
    .leaderboard-container {
        margin-top: 20px;
    }
    
    .update-time {
        font-size: 16px;
    }
}

