   /* Основные стили в стиле PUBG */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Arial', sans-serif;
        }
        
        body {
            background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                        url('bg.jpg');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            color: #fff;
            min-height: 100vh;
            padding: 15px;
            line-height: 1.4;
        }

        /* Фон на мобильных — без fixed, чтобы не рвало картинку */
        @media (max-width: 768px) {
            body {
                background-attachment: scroll;
                background-size: cover;
                background-position: center top;
            }
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        /* Шапка с названием клана */
        .header {
            text-align: center;
            padding: 15px 0;
            margin-bottom: 20px;
            border-bottom: 2px solid #d4af37;
        }
        
        .clan-name {
            font-size: 2.2rem;
            color: #d4af37;
            text-transform: uppercase;
            letter-spacing: 2px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            margin-bottom: 8px;
            word-wrap: break-word;
        }
        
        .founder {
            font-size: 1rem;
            color: #aaa;
            font-style: italic;
        }
        
        /* Секция с кнопками кланов */
        .clans-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 30px 0;
        }
        
        .clan-button {
            background: rgba(30, 30, 30, 0.9);
            border: 2px solid #d4af37;
            border-radius: 8px;
            padding: 20px 15px;
            width: 100%;
            max-width: 500px;
            margin: 10px 0;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }
        
        .clan-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
            background: rgba(40, 40, 40, 0.95);
        }
        
        .clan-title {
            font-size: 1.6rem;
            color: #d4af37;
            margin-bottom: 10px;
            text-transform: uppercase;
        }
        
        .commander {
            font-size: 1rem;
            color: #fff;
            margin-bottom: 8px;
        }

        /* Блок и кнопка поддержки стримера */
        .donate-section {
            text-align: center;
            margin: 20px 0 10px;
        }

        .donate-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 12px 28px;
            border-radius: 999px;
            border: 2px solid #fbbf24;
            background: linear-gradient(135deg, #facc15, #d97706);
            color: #111827;
            font-weight: 700;
            font-size: 2rem;
            cursor: pointer;
            text-decoration: none;
            box-shadow: 0 10px 20px rgba(0,0,0,.5);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* На всех мобильных шрифт 1rem */
        @media (max-width: 768px) {
            .donate-button {
                font-size: 1rem;
            }
        }

        .donate-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 26px rgba(0,0,0,.7);
        }

        .donate-button-img {
            width: 24px;
            height: 24px;
            border-radius: 4px;
            object-fit: cover;
        }
        
        /* Секция с ссылками на мессенджеры */
        .messengers-section {
            background: rgba(20, 20, 20, 0.8);
            border-radius: 8px;
            padding: 20px 15px;
            margin: 30px 0;
            border: 1px solid #444;
        }
        
        .section-title {
            font-size: 1.4rem;
            color: #d4af37;
            margin-bottom: 15px;
            text-align: center;
            text-transform: uppercase;
        }
        
        .messenger-links {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .messenger-link {
            background: rgba(40, 40, 40, 0.9);
            border: 1px solid #555;
            border-radius: 6px;
            padding: 12px 20px;
            margin: 8px 0;
            width: 100%;
            max-width: 280px;
            text-align: center;
            transition: all 0.3s ease;
            text-decoration: none;
            color: #fff;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .messenger-link:hover {
            background: rgba(60, 60, 60, 0.9);
            transform: scale(1.03);
        }
        
        .discord { 
            border-left: 4px solid #5865F2; 
        }
        
        .telegram { 
            border-left: 4px solid #0088cc; 
        }
        
        /* Секция с ссылками на стримы */
        .streams-section {
            background: rgba(20, 20, 20, 0.8);
            border-radius: 8px;
            padding: 20px 15px;
            margin: 30px 0;
            border: 1px solid #444;
        }
        
        .stream-links {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .stream-link {
            background: rgba(40, 40, 40, 0.9);
            border: 1px solid #555;
            border-radius: 6px;
            padding: 12px 20px;
            margin: 8px 0;
            width: 100%;
            max-width: 280px;
            text-align: center;
            transition: all 0.3s ease;
            text-decoration: none;
            color: #fff;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .stream-link:hover {
            background: rgba(60, 60, 60, 0.9);
            transform: scale(1.03);
        }
        
        .youtube { border-left: 4px solid #ff0000; }
        .twitch { border-left: 4px solid #9146ff; }
        .vk { border-left: 4px solid #4a76a8; }
        
        /* Секции с правилами и инструкцией */
        .info-section {
            background: rgba(20, 20, 20, 0.8);
            border-radius: 8px;
            padding: 20px 15px;
            margin: 25px 0;
            border: 1px solid #444;
        }
        
        .info-content {
            line-height: 1.5;
            font-size: 0.95rem;
        }
        
        .info-content ul, .info-content ol {
            margin-left: 20px;
            margin-top: 10px;
            padding-left: 10px;
        }
        
        .info-content li {
            margin-bottom: 8px;
        }
        
        /* Иконки для кнопок */
        .icon {
            margin-right: 10px;
            font-size: 1.1rem;
        }
        
        /* Новый блок с призывом к действию */
        .cta-section {
            background: rgba(20, 20, 20, 0.9);
            border-radius: 8px;
            padding: 25px 15px;
            margin: 30px 0;
            border: 2px solid #d4af37;
            text-align: center;
        }
        
        .cta-title {
            font-size: 1.6rem;
            color: #d4af37;
            margin-bottom: 15px;
            text-transform: uppercase;
        }
        
        .cta-text {
            margin-bottom: 20px;
            font-size: 1.1rem;
            line-height: 1.6;
        }
        
        .cta-buttons {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
        }
        
        .cta-button {
            background: rgba(40, 40, 40, 0.9);
            border: 1px solid #555;
            border-radius: 6px;
            padding: 12px 25px;
            width: 100%;
            max-width: 280px;
            text-align: center;
            transition: all 0.3s ease;
            text-decoration: none;
            color: #fff;
            font-weight: bold;
            cursor: pointer;
            border-left: 4px solid #d4af37;
        }
        
        .cta-button:hover {
            background: rgba(60, 60, 60, 0.9);
            transform: scale(1.03);
        }
        
        /* Секция с QR-кодом (оставляем, но используем только как контейнер, теперь всё в модалке) */
        .qr-section {
            text-align: center;
            margin: 20px 0;
            padding: 15px;
            background: rgba(30, 30, 30, 0.8);
            border-radius: 8px;
            display: none; /* скрыто, логика перенесена в модалку */
        }
        
        .qr-code {
            max-width: 200px;
            margin: 0 auto 15px;
            border: 2px solid #d4af37;
            border-radius: 8px;
            padding: 10px;
            background: white;
        }
        
        .qr-code img {
            width: 100%;
            height: auto;
        }
        
        .already-used {
            color: #ff6b6b;
            font-weight: bold;
            margin-top: 15px;
            display: none;
        }
        
        .codes-info {
            margin-top: 10px;
            color: #d4af37;
            font-size: 0.9rem;
            display: none; /* остаток кодов не показываем публично */
        }
        
        /* Модальное окно (общие стили) */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
        }
        
        .modal-content {
            position: relative;
            background-color: rgba(30, 30, 30, 0.95);
            margin: 5% auto;
            padding: 20px;
            border: 2px solid #d4af37;
            border-radius: 8px;
            width: 95%;
            max-width: 900px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        }

        /* Центровка модалки кода по вертикали */
#codeModal .modal-content {
    margin: 0 auto;
    top: 50%;
    transform: translateY(-50%);
}

        /* Увеличенная адаптивная модалка для поддержки: 95% ширины и высоты */
        #donateModal .modal-content {
            width: 95vw;
            height: 95vh;
            max-width: none;
            margin: 2.5vh auto;
            padding: 10px 10px 16px;
            display: flex;
            flex-direction: column;
        }
        
        .close-button {
            position: absolute;
            top: 8px;
            right: 12px;
            color: #d4af37;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
        }
        .close-button:hover {
            color: #fff;
        }

        .video-container {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 56.25%; /* 16:9 соотношение сторон */
            margin-top: 20px;
        }
        
        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 4px;
        }

        /* Контейнер для фрейма DonationAlerts — на всю высоту модалки */
        .donate-frame-container {
            flex: 1;
            margin-top: 16px;
            border-radius: 6px;
            overflow: hidden;
            background: #000;
        }

        .donate-frame-container iframe {
            width: 100%;
            height: 100%;
            border: none;
        }

        /* Футер / копирайт разработчика */
        .developer-footer {
            max-width: 1200px;
            margin: 25px auto 5px;
            text-align: center;
            font-size: 0.85rem;
            color: #9ca3af;
        }
        .developer-footer a {
            color: #fbbf24;
            text-decoration: none;
        }
        .developer-footer a:hover {
            text-decoration: underline;
        }
        
        /* Адаптивность для планшетов */
        @media (min-width: 600px) {
            .clan-name {
                font-size: 2.8rem;
            }
            
            .clan-button {
                padding: 25px 20px;
            }
            
            .clan-title {
                font-size: 1.8rem;
            }
            
            .section-title {
                font-size: 1.6rem;
            }
            
            .cta-title {
                font-size: 1.8rem;
            }
            
            .messenger-links,
            .stream-links {
                flex-direction: row;
                justify-content: center;
                flex-wrap: wrap;
            }
            
            .messenger-link,
            .stream-link {
                width: auto;
                min-width: 180px;
                margin: 10px;
            }
            
            .cta-buttons {
                flex-direction: row;
                justify-content: center;
            }
            
            .cta-button {
                width: auto;
                min-width: 200px;
            }
        }
        
        /* Адаптивность для десктопов */
        @media (min-width: 900px) {
            body {
                padding: 25px;
            }
            
            .header {
                padding: 25px 0;
                margin-bottom: 35px;
            }
            
            .clan-name {
                font-size: 3.5rem;
            }
            
            .founder {
                font-size: 1.2rem;
            }
            
            .clans-section {
                flex-direction: row;
                justify-content: space-around;
                margin: 50px 0;
            }
            
            .clan-button {
                width: 45%;
                max-width: none;
                padding: 30px 25px;
                margin: 15px;
            }
            
            .clan-title {
                font-size: 2.2rem;
            }
            
            .section-title {
                font-size: 1.8rem;
            }
            
            .cta-title {
                font-size: 2.2rem;
            }
            
            .messengers-section,
            .streams-section,
            .info-section,
            .cta-section {
                padding: 30px 25px;
                margin: 40px 0;
            }
            
            .messenger-link,
            .stream-link {
                padding: 15px 25px;
                margin: 10px 15px;
            }
            
            .info-content {
                font-size: 1rem;
            }
            
            .cta-button {
                padding: 15px 30px;
            }
        }
        
        /* Очень маленькие экраны (до 360px) */
        @media (max-width: 360px) {
            body {
                padding: 10px;
            }
            
            .clan-name {
                font-size: 1.8rem;
                letter-spacing: 1px;
            }
            
            .founder {
                font-size: 0.9rem;
            }
            
            .clan-button {
                padding: 15px 10px;
            }
            
            .clan-title {
                font-size: 1.4rem;
            }
            
            .section-title {
                font-size: 1.2rem;
            }
            
            .cta-title {
                font-size: 1.4rem;
            }
            
            .icon {
                margin-right: 6px;
                font-size: 1rem;
            }
            
            .messenger-link,
            .stream-link,
            .cta-button {
                padding: 10px 15px;
                font-size: 0.9rem;
            }
        }


                /* Ряд из трёх кнопок скачивания */
        .download-row {
            display: flex;
            flex-direction: column;   /* по умолчанию как на мобилках – столбиком */
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

               @media (min-width: 900px) {
            .download-row {
                flex-direction: row;
                justify-content: center;
            }

            .cta-buttons {
                flex-direction: row;
                justify-content: center;
                flex-wrap: wrap;
            }

            /* Одинаковая ширина для ВСЕХ шести кнопок */
            .download-row .cta-button,
            .cta-buttons .cta-button {
                max-width: none;
                min-width: 0;
                flex: 0 0 calc(33.33% - 20px);
            }
        }

/* Выравниваем иконки старых кнопок под стиль новых */
.cta-buttons .cta-button .icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Приводим шрифт к тому же размеру, что и у кнопок скачивания */
.cta-buttons .cta-button {
    font-size: 1rem;
}