@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

/* --- НОВЫЕ ЦВЕТА И ПЕРЕМЕННЫЕ --- */
:root {
    --main-color: #00aaff; /* Яркий, ледяной синий */
    --dark-color: #0e111a; /* Глубокий, почти черный фон */
    --light-color: #f5f5f5;
    --hover-color: #33bbff; /* Светло-синий для наведения */
    --text-color: #ffffff;
    --accent-glow-color: rgba(135, 206, 235, 0.7); /* Светло-голубой для свечения */
}

/* --- АНИМАЦИИ --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* --- ОСНОВНЫЕ СТИЛИ И СБРОС --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none; /* Гарантируем, что ссылки не подчеркнуты */
}

body {
    background-color: var(--dark-color);
    color: var(--text-color);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
}

.container {
    width: 80rem; /* 1280px */
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 .9375rem /* 15px */
}

/* --- HEADER / ШАПКА --- */
header {
    background: linear-gradient(to right, #000000, #0e111a);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 700;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--hover-color);
    transform: scale(1.05);
    text-shadow: 0 0 10px var(--accent-glow-color);
}

.logo img {
    height: 4vh;
}

.logo span {
    color: var(--text-color);
}

.account-btn {
    background-color: var(--main-color);
    color: var(--dark-color);
    border: none;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 170, 255, 0.6);
}

nav.desktop-nav ul {
    display: flex;
    list-style: none;
}

nav.desktop-nav ul li {
    margin-left: 30px;
    position: relative;
}

nav.desktop-nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 5px 0;
}

nav.desktop-nav ul li a:hover,
nav.desktop-nav ul li a.active {
    color: var(--main-color);
}

nav.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--main-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav.desktop-nav ul li a:hover::after,
nav.desktop-nav ul li a.active::after {
    width: 100%;
    box-shadow: 0 0 5px var(--accent-glow-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Мобильное меню (Стили для адаптивности) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background: rgba(14, 17, 26, 0.95); /* Полупрозрачный фон */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 80px 20px 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    margin-bottom: 20px;
}

.mobile-nav ul li a {
    color: var(--text-color);
    font-size: 18px;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav ul li a:hover {
    background: rgba(0, 170, 255, 0.15); /* Подсветка при наведении */
    color: var(--hover-color);
}

.close-mobile-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    /* Убедитесь, что путь к изображению верный! */
    background: url('img/background.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden; 
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: fadeIn 1s ease;
    text-shadow: 0 0 15px var(--accent-glow-color);
}

.hero h1 span {
    color: var(--main-color);
}

.hero p {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
    animation: fadeIn 1s ease 0.3s both;
}

.play-btn {
    background-color: var(--main-color);
    color: var(--dark-color);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeIn 1s ease 0.9s both;
    margin-bottom: 30px;
}

.play-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px var(--accent-glow-color);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    animation: fadeIn 1s ease 0.6s both;
}

.stat-item {
    background: rgba(0, 170, 255, 0.15); 
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid var(--main-color);
    min-width: 120px;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.3);
}

.stat-item .stat-value {
    color: var(--main-color);
    font-weight: 700;
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.stat-item .stat-label {
    font-size: 12px;
    opacity: 0.8;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color);
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 1;
}

/* --- DOWNLOAD SECTION --- */
.download-section {
    padding: 80px 20px;
    background: linear-gradient(to bottom, var(--dark-color), #000000);
    text-align: center;
}

.section-title {
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    color: #ffffff;
    text-shadow: 0 0 10px var(--accent-glow-color);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--main-color);
    bottom: -10px;
    left: 25%;
    box-shadow: 0 0 8px var(--accent-glow-color);
}

.download-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.download-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 300px;
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 170, 255, 0.2);
}

.download-card:hover {
    background: rgba(0, 170, 255, 0.1); 
    transform: translateY(-10px);
    box-shadow: 0 10px 40px var(--accent-glow-color);
}

.download-icon {
    font-size: 40px;
    color: var(--main-color);
    margin-bottom: 15px;
}

.download-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.download-card p {
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 14px;
}

.download-btn {
    background-color: var(--main-color);
    color: var(--dark-color);
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 14px;
}

.download-btn:hover {
    background-color: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--accent-glow-color); 
}

/* --- SOCIAL SECTION --- */
.social-section {
    padding: 60px 20px;
    background-color: #000000;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--main-color);
    color: var(--dark-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 20px var(--accent-glow-color); 
}

/* --- FORBES SECTION --- */
.forbes-section {
    padding-bottom: 6rem;
}

.forbes-title {
    text-shadow: 0 0 15px var(--accent-glow-color);
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 1rem;
    padding-top: 100px;
}

.forbes-subtitle {
    color: #e0e6f0;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

.forbes__top {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.top-item {
    text-align: center;
    color: #fff;
    width: 280px;
    transition: all 0.3s ease;
    border-radius: 15px;
    padding: 10px;
    background: rgba(0, 170, 255, 0.05);
}

.top-item:hover {
    background: rgba(0, 170, 255, 0.1);
}

.top-item--gold {
    order: 2;
    transform: scale(1.15);
    margin-bottom: 2rem;
    box-shadow: 0 0 25px var(--accent-glow-color), 0 0 45px rgba(252, 204, 1, 0.4); 
    border: 2px solid var(--main-color);
}

.top-item--gold:hover {
    transform: scale(1.18);
    box-shadow: 0 0 35px var(--accent-glow-color), 0 0 60px rgba(252, 204, 1, 0.5);
}

.top-item--silver {
    order: 1;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
    border: 1px solid rgba(212, 218, 239, 0.4);
}

.top-item--bronze {
    order: 3;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
    border: 1px solid rgba(177, 112, 64, 0.4);
}

.top-item__position {
    font-size: 2.5rem;
    font-weight: 200;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
}
/* Градиенты позиций */
.top-item--gold .top-item__position {
    background-image: linear-gradient(208deg, #fccc01, #ff3500); 
}

.top-item--silver .top-item__position {
    background-image: linear-gradient(208deg, #d4daef, #9aa7d7);
}

.top-item--bronze .top-item__position {
    background-image: linear-gradient(208deg, #b17040, #8a420e);
}

.top-item__figure {
    position: relative;
    padding: 0;
    margin-top: 1rem;
}

.top-item__rect {
    width: 100%;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-item__skin {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px var(--accent-glow-color));
}

.top-item__nickname {
    font-size: 1.35rem; 
    font-weight: 700;
    margin-top: 1rem;
    color: var(--main-color); 
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.top-item__balance {
    font-size: 1.1rem; 
    font-weight: 500;
    color: #e0e6f0;
    margin-top: 0.5rem;
}

.forbes-table-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--main-color);
    border-radius: 12px;
    padding: 0; 
    box-shadow: 0 0 25px rgba(0, 170, 255, 0.2); 
    overflow: hidden; 
}

.forbes-table {
    width: 100%;
    border-collapse: collapse;
    color: #e0e6f0;
}

/* Заголовки таблицы */
.forbes-table th {
    background-color: var(--main-color); 
    color: var(--dark-color); 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 1.5rem;
    text-align: center;
}

/* Ячейки данных */
.forbes-table td {
    padding: 1rem 1.5rem;
    text-align: center;
    vertical-align: middle;
}

.forbes-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
    transition: background-color 0.2s ease;
}

.forbes-table tbody tr:last-child {
    border-bottom: none;
}

.forbes-table tbody tr:hover {
    background-color: rgba(0, 170, 255, 0.2);
}

/* Выделение позиции */
.forbes-table td:first-child {
    color: var(--main-color);
    font-weight: 700;
}

/* --- СТИЛИ SHOP (МАГАЗИН) --- */

.shop-page {
    position: relative;
    padding: 100px 0 80px;
}

.shop-section {
    padding: 40px 0;
    text-align: center;
}

.section-header {
    font-size: 28px;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    color: #ffffff;
    text-shadow: 0 0 10px var(--accent-glow-color);
    padding-bottom: 15px;
}

.section-header::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 3px;
    background: var(--main-color);
    bottom: 0;
    left: 10%;
    box-shadow: 0 0 8px var(--accent-glow-color);
}

.item-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.shop-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    max-width: 320px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 170, 255, 0.3);
}

.shop-item:hover {
    box-shadow: 0 0 25px var(--accent-glow-color);
    transform: translateY(-5px);
    background: rgba(0, 170, 255, 0.1);
}

.item-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background-color: #ff3500;
    color: var(--text-color);
    padding: 5px 30px;
    font-size: 14px;
    font-weight: 700;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.item-title {
    color: var(--main-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.item-picture {
    height: 200px;
    /* Убедитесь, что изображения для товаров установлены через стили `style="background: url(...)"` в HTML */
    background-size: contain !important;
    background-repeat: no-repeat;
    background-position: center;
    margin: 15px 0;
}

.shop-item:nth-child(1) .item-picture,
.shop-item:nth-child(2) .item-picture,
.shop-item:nth-child(3) .item-picture {
    background-size: 85% !important; /* Для админок, чтобы не были растянуты */
}

.item-info {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
    padding-left: 0;
}

.item-info li {
    font-size: 15px;
    color: #cccccc;
    margin-bottom: 5px;
    line-height: 1.4;
}

.item-price-old {
    text-decoration: line-through;
    color: #ff6b6b;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.item-price-new {
    font-size: 28px;
    font-weight: 800;
    color: #65c466;
    margin-bottom: 20px;
}

.buy_button {
    background-color: var(--main-color);
    color: var(--dark-color);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.buy_button:hover {
    background: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--accent-glow-color);
}

/* --- MODAL / МОДАЛЬНОЕ ОКНО --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 29, 29, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 4999;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.check__wrapper {
    width: 24.5625rem;
    background-color: #1e1d1d;
    min-height: 18.75rem;
    max-height: 48rem;
    position: relative;
    border-radius: 12px;
    padding: 2.5625rem 2rem 4rem;
    border: 1px solid var(--main-color); 
}

.modal-close-button {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    z-index: 5000;
}

.type-of-product {
    text-align: center;
    font-weight: 700;
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 1.3rem;
    color: var(--main-color);
}

.form__inputs {
    display: grid;
    grid-row-gap: 1rem;
    row-gap: 1rem;
}

.input__element {
    width: 100%;
    line-height: 1.1875rem;
    padding: 1rem;
    background-color: #f8f8f8;
    border-radius: 5px;
    outline: none;
    border: .0625rem solid transparent;
    font-weight: 600;
    color: #1a1a1a;
}

.input__element:focus {
    background-color: #fff;
    border-color: var(--main-color);
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.form__buttons {
    margin-top: 2rem;
    text-align: center;
}

.submit-button {
    line-height: 3.25rem;
    border-radius: 5px;
    background: var(--main-color);
    width: 100%;
    color: var(--dark-color);
    font-size: 1.5rem;
    font-weight: 700;
    transition: all .3s ease;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.submit-button:hover {
    background: var(--hover-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--accent-glow-color); 
}

.payment-details {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--main-color);
    border-radius: 5px;
    background-color: rgba(0, 170, 255, 0.1);
}

/* Стили для формы оплаты... (оставлены без изменений) */

/* --- FOOTER / ПОДВАЛ --- */
footer {
    background: var(--dark-color);
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    color: rgba(236, 240, 241, 0.6);
}

footer p {
    color: #777777;
    font-size: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(236, 240, 241, 0.8);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--main-color);
    text-shadow: 0 0 5px var(--accent-glow-color);
}

/* --- Media Queries / АДАПТИВНОСТЬ --- */

@media (max-width: 992px) {
    /* Скрываем десктопную навигацию */
    nav.desktop-nav, .account-btn {
        display: none;
    }
    
    /* Показываем мобильную кнопку */
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 14px;
    }

    /* Адаптив для ТОПа Forbes */
    .top-item--gold {
        order: 1; /* Золотой элемент сверху */
        transform: scale(1.1);
        margin-bottom: 0;
    }
    .top-item--silver {
        order: 2;
    }
    .top-item--bronze {
        order: 3;
    }
    .forbes__top {
        align-items: center;
    }
}

@media (max-width: 80rem) {
    .container {
        width: 64rem; /* Уменьшаем ширину контейнера на больших экранах */
    }
}

@media (max-width: 768px) {
    .forbes-title {
        font-size: 2.5rem;
    }
    .forbes-subtitle {
        font-size: 1rem;
    }
    .forbes-table th, .forbes-table td {
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 640px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
    .shop-item {
        max-width: 280px;
    }
    .item-title {
        font-size: 20px;
    }
    .item-picture {
        height: 160px;
    }
    .item-price-new {
        font-size: 24px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media(max-width:36rem) {
    .container {
        width: 95%;
    }
    .modal-overlay {
        padding: 20px;
    }
    .check__wrapper {
        width: 100%;
    }
}