/* Основные переменные */
:root {
    --primary-color: #CC3333;
    --secondary-color: #FFC107;
    --dark-color: #0A0A0A;
    --light-color: #E0E0E0;
    --gray-color: #1F1F1F;
    --light-gray: #A0A0A0;
    --gradient-bg: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light-color);
    background-color: var(--dark-color);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

    .btn.primary {
        background-color: var(--primary-color);
        color: white;
    }

        .btn.primary:hover {
            background-color: #cc0000;
            transform: translateY(-3px);
            box-shadow: var(--box-shadow);
        }

    .btn.secondary {
        background-color: var(--secondary-color);
        color: #333;
    }

        .btn.secondary:hover {
            background-color: #e6c200;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
        }

/* Шапка */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.header-text {
    flex: 1;
    padding-right: 30px;
}

    .header-text h1 {
        font-size: 2.5rem;
        margin-bottom: 10px;
        color: var(--light-color);
    }

        .header-text h1 span {
            color: var(--primary-color);
            text-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
        }

    .header-text .subtitle {
        color: var(--secondary-color);
        font-size: 1.2rem;
        font-weight: 500;
    }

.logo {
    flex-shrink: 0;
    align-self: flex-start; /* чтобы не тянуло вниз */
    margin-top: 10px; /* или подбери по вкусу */
}

.logo-img {
    width: 100px; /* увеличиваем ширину */
    height: auto; /* сохраняем пропорции */
    object-fit: contain;
    transition: var(--transition);
}

    .logo-img:hover {
        transform: scale(1.05);
        filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
    }

.tagline {
    color: var(--light-gray);
    font-size: 0.9rem;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

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

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.image-slider {
    margin: 60px 0;
    text-align: center;
}

    .image-slider h2 {
        margin-bottom: 30px;
        color: var(--primary-color);
    }

.slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: 440px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    user-select: none;
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(204, 51, 51, 0.8);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 10;
}

    .slider-btn:hover {
        background-color: var(--primary-color);
    }

    .slider-btn.prev {
        left: 15px;
    }

    .slider-btn.next {
        right: 15px;
    }


/* Главный баннер */
.hero {
    margin-top: 30px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--light-color);
}

    .hero-content h1 span {
        color: var(--primary-color);
        text-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    }

.hero-content .subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 350px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-placeholder i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Особенности */
.features {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.02);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    background-color: rgba(255, 255, 255, 0.08);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

.feature-card p {
    color: #cccccc;
}

/* Как начать играть */
.how-to-join {
    padding: 80px 0;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 15px;
}

.step p {
    color: #cccccc;
}

.cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Discord секция */
.discord-section {
    padding: 80px 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.02);
}

.discord-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    color: #cccccc;
}

.discord-placeholder {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 50px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.discord-placeholder i {
    font-size: 5rem;
    color: #5865F2;
    margin-bottom: 20px;
}

/* Футер */
footer {
    background-color: rgba(0, 0, 0, 0.3);
    padding-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    text-align: left;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.footer-links, .footer-social {
    min-width: 200px;
}

.footer-links h3, .footer-social h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #cccccc;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.social-icons i {
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--gray-color);
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal h2 {
    margin-bottom: 20px;
}

.requirements {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
    margin: 20px 0;
    font-size: 0.9rem;
    color: #cccccc;
}

.download-launcher {
    margin: 20px 0;
    display: inline-block;
}

.download-info {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--light-gray);
}

#tos-text::-webkit-scrollbar {
    width: 8px;
}

#tos-text::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.btn:disabled {
    background-color: #555 !important;
    color: #aaa !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    box-shadow: none !important;
    transform: none !important;
}

.player-id-input {
    margin-top: 10px;
}

    .player-id-input input {
        padding: 8px 12px;
        border-radius: 5px;
        border: none;
        width: 100%;
    }

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.gold-shop-modal {
    width: 800px;
    max-width: 95vw;
    background: #1a1a1a;
    border: 2px solid #333;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.modal-header {
    background: #2a2a2a;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #333;
}

.modal-title {
    color: #4CAF50;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.modal-subtitle {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

.citizen-id-section {
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #333;
}

.citizen-id-input {
    padding: 10px 15px;
    border: 2px solid #444;
    background: #2a2a2a;
    color: white;
    border-radius: 5px;
    font-size: 1rem;
    width: 250px;
    text-align: center;
}

    .citizen-id-input:focus {
        outline: none;
        border-color: #4CAF50;
    }

.packs-container {
    padding: 30px;
    background: #1a1a1a;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pack-item {
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

    .pack-item:hover {
        border-color: #4CAF50;
        transform: translateY(-2px);
    }

.pack-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}

.gold-amount {
    color: #FFD700;
    font-size: 1.4rem;
    font-weight: bold;
}

.gold-icon {
    color: #FFD700;
    font-size: 1.2rem;
}

.pack-price {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.pack-name {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.buy-btn {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .buy-btn:hover {
        background: #45a049;
    }

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .close-btn:hover {
        color: white;
    }

@media (max-width: 768px) {
    .packs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gold-shop-modal {
        width: 95vw;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .packs-grid {
        grid-template-columns: 1fr;
    }
}

/* Модальное окно доната */
.donate-modal-content {
    max-width: 1000px;
    width: 95%;
    padding: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(204, 51, 51, 0.5);
}

/* Заголовок магазина */
.shop-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #aa2222 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.player-avatar {
    font-size: 3rem;
    color: var(--secondary-color);
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.player-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.player-gold {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary-color);
    font-weight: 600;
}

.player-id-input {
    margin-top: 10px;
}

    .player-id-input input {
        padding: 8px 12px;
        border-radius: 5px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        background: rgba(0, 0, 0, 0.3);
        color: white;
        width: 200px;
        font-size: 0.9rem;
    }

        .player-id-input input:focus {
            outline: none;
            border-color: var(--secondary-color);
            box-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
        }

        .player-id-input input::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

/* Вкладки */
.shop-tabs {
    display: flex;
    gap: 10px;
}

.tab {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

    .tab.active {
        background: var(--secondary-color);
        color: #333;
    }

    .tab:hover:not(.active) {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

.coming-soon {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Кнопка закрытия */
.shop-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    transition: var(--transition);
    padding: 5px;
}

    .shop-close:hover {
        color: var(--secondary-color);
        transform: scale(1.1);
    }

/* Контент магазина */
.shop-content {
    padding: 30px;
    min-height: 400px;
}

.tab-content {
    display: none;
}

    .tab-content.active {
        display: block;
    }

/* Сетка паков */
.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Карточка пака */
.pack-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .pack-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
        transition: left 0.5s;
    }

    .pack-card:hover::before {
        left: 100%;
    }

    .pack-card:hover {
        border-color: var(--secondary-color);
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(255, 193, 7, 0.2);
    }

.pack-header {
    margin-bottom: 20px;
}

.pack-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.pack-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.pack-content {
    margin-bottom: 25px;
}

.pack-amount {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 15px;
}

.amount-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.amount-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.pack-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 3px;
}

.price-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price-currency {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.pack-footer {
    margin-top: 20px;
}

.buy-pack-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Сообщение "В разработке" */
.coming-soon-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
}

    .coming-soon-message i {
        font-size: 4rem;
        margin-bottom: 20px;
        color: var(--light-gray);
    }

    .coming-soon-message h3 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        color: white;
    }

/* === МОДАЛЬНОЕ ОКНО ОПЛАТЫ === */
.payment-modal-content {
    max-width: 400px;
    width: 90%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.3);
}

.payment-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e6c200 100%);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

    .payment-header h3 {
        margin: 0;
        color: #333;
        font-weight: 600;
    }

.payment-close {
    font-size: 1.3rem;
    cursor: pointer;
    color: #333;
    transition: var(--transition);
    padding: 5px;
}

    .payment-close:hover {
        color: var(--primary-color);
        transform: scale(1.1);
    }

.payment-info {
    padding: 25px;
}

.payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .payment-item:last-child {
        border-bottom: none;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .payment-item span:first-child {
        color: rgba(255, 255, 255, 0.8);
    }

    .payment-item span:last-child {
        color: white;
        font-weight: 500;
    }

.payment-actions {
    padding: 0 25px 25px;
    display: flex;
    gap: 10px;
}

    .payment-actions .btn {
        flex: 1;
        text-align: center;
        padding: 12px;
        font-weight: 600;
    }

/* Адаптивность для модального окна доната */
@media (max-width: 768px) {
    .donate-modal-content {
        width: 98%;
        margin: 10px;
    }

    .shop-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .player-info {
        flex-direction: column;
        text-align: center;
    }

    .shop-tabs {
        justify-content: center;
    }

    .packs-grid {
        grid-template-columns: 1fr;
    }

    .player-id-input input {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .shop-content {
        padding: 20px 15px;
    }

    .pack-card {
        padding: 15px;
    }

    .amount-value {
        font-size: 2rem;
    }

    .price-value {
        font-size: 1.5rem;
    }
}




/* Адаптивность */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .header-text {
        padding-right: 0;
        margin-bottom: 20px;
    }

        .header-text h1 {
            font-size: 2rem;
        }

    .logo-img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 576px) {
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

.image-slider {
    margin: 60px 0;
    text-align: center;
}

    .image-slider h2 {
        margin-bottom: 30px;
        color: var(--primary-color);
    }

.slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    height: 440px;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    user-select: none;
}

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(204, 51, 51, 0.8);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 10;
}

    .slider-btn:hover {
        background-color: var(--primary-color);
    }

    .slider-btn.prev {
        left: 15px;
    }

    .slider-btn.next {
        right: 15px;
    }

